diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context-token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context-token.ts new file mode 100644 index 0000000000..19a71b3408 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context-token.ts @@ -0,0 +1,4 @@ +import type { UmbDefaultCollectionContext } from './collection-default.context.js'; +import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; + +export const UMB_COLLECTION_CONTEXT = new UmbContextToken('UmbCollectionContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context.ts index c02479852f..7c595650ac 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context.ts @@ -10,7 +10,6 @@ import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registr import { UmbArrayState, UmbNumberState, UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; -import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; import { UmbExtensionApiInitializer } from '@umbraco-cms/backoffice/extension-api'; import { UmbSelectionManager, UmbPaginationManager } from '@umbraco-cms/backoffice/utils'; import type { ManifestCollection, ManifestRepository } from '@umbraco-cms/backoffice/extension-registry'; @@ -262,5 +261,3 @@ export class UmbDefaultCollectionContext< super.destroy(); } } - -export const UMB_COLLECTION_CONTEXT = new UmbContextToken('UmbCollectionContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/index.ts new file mode 100644 index 0000000000..0f40bd6552 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/index.ts @@ -0,0 +1 @@ +export { UMB_COLLECTION_CONTEXT } from './collection-default.context-token.js';