diff --git a/plugin-api/beta/client/services/index.js b/plugin-api/beta/client/services/index.js index ddaa346ab..4e94a782a 100644 --- a/plugin-api/beta/client/services/index.js +++ b/plugin-api/beta/client/services/index.js @@ -1,3 +1,9 @@ export {t} from 'coral-framework/services/i18n'; export {can} from 'coral-framework/services/perms'; -export {isSlotEmpty} from 'coral-framework/helpers/plugins'; +import {isSlotEmpty as ise} from 'coral-framework/helpers/plugins'; + +// @TODO: Deprecated. +export function isSlotEmpty(...args) { + console.warn('A plugin is using `isSlotEmpty` which has been deprecated, please port to the new API using the `IfSlotIsEmpty` and `IfSlotIsNotEmpty` components.'); + return ise(...args); +}