From 47c3e68fca7bbbbd5f77da005103a034f72716fa Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 17 May 2024 14:50:48 +0200 Subject: [PATCH] move token --- .../collection/default/collection-default.context-token.ts | 4 ++++ .../core/collection/default/collection-default.context.ts | 3 --- .../src/packages/core/collection/default/index.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.context-token.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/collection/default/index.ts 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';