From 5daa0ed25006d0299ddfd0efa5dba891ef3d38bd Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 30 Sep 2024 14:27:18 +0200 Subject: [PATCH] move files --- src/packages/core/extension-registry/models/index.ts | 4 ---- .../input-content-picker-document-root.element.ts | 5 +---- .../content-picker/dynamic-root/dynamic-root.extension.ts} | 7 +++++++ .../property-editors/content-picker/dynamic-root/index.ts | 1 + .../modals/dynamic-root-origin-picker-modal.element.ts | 2 +- .../modals/dynamic-root-query-step-picker-modal.element.ts | 2 +- .../content-picker/dynamic-root/modals/index.ts | 5 +---- 7 files changed, 12 insertions(+), 14 deletions(-) rename src/packages/{core/extension-registry/models/dynamic-root.model.ts => property-editors/content-picker/dynamic-root/dynamic-root.extension.ts} (77%) diff --git a/src/packages/core/extension-registry/models/index.ts b/src/packages/core/extension-registry/models/index.ts index 06257b9f62..c58c656892 100644 --- a/src/packages/core/extension-registry/models/index.ts +++ b/src/packages/core/extension-registry/models/index.ts @@ -1,15 +1,11 @@ -import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from './dynamic-root.model.js'; import type { ManifestFileUploadPreview } from './file-upload-preview.model.js'; import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api'; -export type * from './dynamic-root.model.js'; export type * from './file-upload-preview.model.js'; export type ManifestTypes = | ManifestBundle | ManifestCondition - | ManifestDynamicRootOrigin - | ManifestDynamicRootQueryStep | ManifestFileUploadPreview | ManifestBase; diff --git a/src/packages/property-editors/content-picker/dynamic-root/components/input-content-picker-document-root.element.ts b/src/packages/property-editors/content-picker/dynamic-root/components/input-content-picker-document-root.element.ts index aa75ca190b..901b185141 100644 --- a/src/packages/property-editors/content-picker/dynamic-root/components/input-content-picker-document-root.element.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/components/input-content-picker-document-root.element.ts @@ -3,6 +3,7 @@ import { UMB_CONTENT_PICKER_DOCUMENT_ROOT_ORIGIN_PICKER_MODAL, UMB_CONTENT_PICKER_DOCUMENT_ROOT_QUERY_STEP_PICKER_MODAL, } from '../modals/index.js'; +import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from '../dynamic-root.extension.js'; import { html, css, customElement, property, ifDefined, state, repeat } from '@umbraco-cms/backoffice/external/lit'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { UmbId } from '@umbraco-cms/backoffice/id'; @@ -10,10 +11,6 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'; import { UmbSorterController } from '@umbraco-cms/backoffice/sorter'; import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal'; -import type { - ManifestDynamicRootOrigin, - ManifestDynamicRootQueryStep, -} from '@umbraco-cms/backoffice/extension-registry'; import type { UmbModalContext } from '@umbraco-cms/backoffice/modal'; import { UmbFormControlMixin } from '@umbraco-cms/backoffice/validation'; diff --git a/src/packages/core/extension-registry/models/dynamic-root.model.ts b/src/packages/property-editors/content-picker/dynamic-root/dynamic-root.extension.ts similarity index 77% rename from src/packages/core/extension-registry/models/dynamic-root.model.ts rename to src/packages/property-editors/content-picker/dynamic-root/dynamic-root.extension.ts index a9280cb7a5..ff327efc9d 100644 --- a/src/packages/core/extension-registry/models/dynamic-root.model.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/dynamic-root.extension.ts @@ -23,3 +23,10 @@ export interface MetaDynamicRootQueryStep { description?: string; icon?: string; } + +declare global { + interface UmbExtensionManifestMap { + umbDynamicRootOrigin: ManifestDynamicRootOrigin; + umbDynamicRootQueryStep: ManifestDynamicRootQueryStep; + } +} diff --git a/src/packages/property-editors/content-picker/dynamic-root/index.ts b/src/packages/property-editors/content-picker/dynamic-root/index.ts index aaec6ea6d6..ffa8abc835 100644 --- a/src/packages/property-editors/content-picker/dynamic-root/index.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/index.ts @@ -1,3 +1,4 @@ export * from './modals/index.js'; export * from './repository/index.js'; export * from './components/index.js'; +export * from './dynamic-root.extension.js'; diff --git a/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-origin-picker-modal.element.ts b/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-origin-picker-modal.element.ts index 1e11a7acfc..a922316bf3 100644 --- a/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-origin-picker-modal.element.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-origin-picker-modal.element.ts @@ -1,9 +1,9 @@ import type { UmbContentPickerDynamicRoot } from '../../types.js'; +import type { ManifestDynamicRootOrigin } from '../dynamic-root.extension.js'; import type { UmbContentPickerDocumentRootOriginModalData } from './index.js'; import { html, customElement, state, ifDefined, repeat } from '@umbraco-cms/backoffice/external/lit'; import { UmbDocumentPickerInputContext } from '@umbraco-cms/backoffice/document'; import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal'; -import type { ManifestDynamicRootOrigin } from '@umbraco-cms/backoffice/extension-registry'; @customElement('umb-dynamic-root-origin-picker-modal') export class UmbDynamicRootOriginPickerModalModalElement extends UmbModalBaseElement { diff --git a/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-query-step-picker-modal.element.ts b/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-query-step-picker-modal.element.ts index 3546497199..a613d61828 100644 --- a/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-query-step-picker-modal.element.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/modals/dynamic-root-query-step-picker-modal.element.ts @@ -1,10 +1,10 @@ import type { UmbContentPickerDynamicRootQueryStep } from '../../types.js'; +import type { ManifestDynamicRootQueryStep } from '../dynamic-root.extension.js'; import type { UmbContentPickerDocumentRootQueryStepModalData } from './index.js'; import { UmbDocumentTypePickerInputContext } from '@umbraco-cms/backoffice/document-type'; import { UmbId } from '@umbraco-cms/backoffice/id'; import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal'; import { html, customElement, state, ifDefined, repeat } from '@umbraco-cms/backoffice/external/lit'; -import type { ManifestDynamicRootQueryStep } from '@umbraco-cms/backoffice/extension-registry'; @customElement('umb-dynamic-root-query-step-picker-modal') export class UmbDynamicRootQueryStepPickerModalModalElement extends UmbModalBaseElement { diff --git a/src/packages/property-editors/content-picker/dynamic-root/modals/index.ts b/src/packages/property-editors/content-picker/dynamic-root/modals/index.ts index 7f33922319..f77d455ed8 100644 --- a/src/packages/property-editors/content-picker/dynamic-root/modals/index.ts +++ b/src/packages/property-editors/content-picker/dynamic-root/modals/index.ts @@ -1,11 +1,8 @@ +import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from '../dynamic-root.extension.js'; import { UMB_CONTENT_PICKER_DOCUMENT_ROOT_ORIGIN_PICKER_MODAL_ALIAS, UMB_CONTENT_PICKER_DOCUMENT_ROOT_QUERY_STEP_PICKER_MODAL_ALIAS, } from './constants.js'; -import type { - ManifestDynamicRootOrigin, - ManifestDynamicRootQueryStep, -} from '@umbraco-cms/backoffice/extension-registry'; import { UmbModalToken } from '@umbraco-cms/backoffice/modal'; export interface UmbContentPickerDocumentRootOriginModalData {