Skip to content

Commit c12d967

Browse files
committed
move section extensions
1 parent 2b31fcd commit c12d967

27 files changed

+37
-42
lines changed

src/apps/backoffice/backoffice.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
55
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
66
import { UmbExtensionsManifestInitializer } from '@umbraco-cms/backoffice/extension-api';
77
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
8-
import type { ManifestSection } from '@umbraco-cms/backoffice/extension-registry';
8+
import type { ManifestSection } from '@umbraco-cms/backoffice/section';
99
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
1010
import type { UmbExtensionManifestInitializer } from '@umbraco-cms/backoffice/extension-api';
1111
import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';

src/apps/backoffice/components/backoffice-header-sections.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { UMB_BACKOFFICE_CONTEXT } from '../backoffice.context.js';
22
import type { UmbBackofficeContext } from '../backoffice.context.js';
33
import type { CSSResultGroup } from '@umbraco-cms/backoffice/external/lit';
44
import { css, html, customElement, state, repeat, ifDefined } from '@umbraco-cms/backoffice/external/lit';
5-
import type { ManifestSection } from '@umbraco-cms/backoffice/extension-registry';
5+
import type { ManifestSection } from '@umbraco-cms/backoffice/section';
66
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
77
import type { UmbExtensionManifestInitializer } from '@umbraco-cms/backoffice/extension-api';
88

src/apps/backoffice/components/backoffice-main.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UMB_BACKOFFICE_CONTEXT } from '../backoffice.context.js';
33
import { css, html, customElement, state, nothing } from '@umbraco-cms/backoffice/external/lit';
44
import { UmbSectionContext, UMB_SECTION_CONTEXT, UMB_SECTION_PATH_PATTERN } from '@umbraco-cms/backoffice/section';
55
import type { PageComponent, UmbRoute, UmbRouterSlotChangeEvent } from '@umbraco-cms/backoffice/router';
6-
import type { ManifestSection, UmbSectionElement } from '@umbraco-cms/backoffice/extension-registry';
6+
import type { ManifestSection, UmbSectionElement } from '@umbraco-cms/backoffice/section';
77
import type { UmbExtensionManifestInitializer } from '@umbraco-cms/backoffice/extension-api';
88
import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api';
99
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';

src/libs/extension-api/controller/extension-api-initializer.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
66
import { UmbControllerHostElementMixin } from '@umbraco-cms/backoffice/controller-api';
77
import type { UmbControllerHostElement, UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
88
import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
9-
import { type ManifestSection, UmbSwitchCondition } from '@umbraco-cms/backoffice/extension-registry';
9+
import { UmbSwitchCondition } from '@umbraco-cms/backoffice/extension-registry';
10+
import type { ManifestSection } from '@umbraco-cms/backoffice/section';
1011

1112
@customElement('umb-test-controller-host')
1213
// Element is used in tests

src/libs/extension-api/controller/extension-element-initializer.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { UmbExtensionElementInitializer } from './index.js';
33
import { expect, fixture } from '@open-wc/testing';
44
import { UmbControllerHostElementMixin, type UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
55
import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
6-
import { type ManifestSection, UmbSwitchCondition } from '@umbraco-cms/backoffice/extension-registry';
6+
import { UmbSwitchCondition } from '@umbraco-cms/backoffice/extension-registry';
7+
import type { ManifestSection } from '@umbraco-cms/backoffice/section';
78

89
@customElement('umb-test-controller-host')
910
class UmbTestControllerHostElement extends UmbControllerHostElementMixin(HTMLElement) {}

src/packages/core/extension-registry/interfaces/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ export * from './file-upload-preview.interface.js';
44
export * from './menu-item-element.interface.js';
55
export * from './modal-extension-element.interface.js';
66
export * from './property-editor-ui-element.interface.js';
7-
export * from './section-element.interface.js';
8-
export * from './section-sidebar-app-element.interface.js';
9-
export * from './section-view-element.interface.js';

src/packages/core/section/extensions/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export type * from './section-sidebar-app.extension.js';
88
export type * from './section-view.extension.js';
99
export type * from './section.extension.js';
1010

11+
export type * from './types.js';
12+
1113
type UmbSectionExtensions =
1214
| ManifestSection
1315
| ManifestSectionRoute

src/packages/core/extension-registry/interfaces/section-element.interface.ts renamed to src/packages/core/section/extensions/section-element.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ManifestSection } from '../models/index.js';
1+
import type { ManifestSection } from './section.extension.js';
22

33
export interface UmbSectionElement extends HTMLElement {
44
manifest?: ManifestSection;

src/packages/core/extension-registry/interfaces/section-sidebar-app-element.interface.ts renamed to src/packages/core/section/extensions/section-sidebar-app-element.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ManifestSectionSidebarApp } from '../models/index.js';
1+
import type { ManifestSectionSidebarApp } from './section-sidebar-app.extension.js';
22

33
export interface UmbSectionSidebarAppElement extends HTMLElement {
44
manifest?: ManifestSectionSidebarApp;

src/packages/core/section/extensions/section-sidebar-app.extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
2-
import type { UmbSectionSidebarAppElement } from '@umbraco-cms/backoffice/extension-registry';
2+
import type { UmbSectionSidebarAppElement } from '@umbraco-cms/backoffice/section';
33

44
export interface ManifestSectionSidebarApp
55
extends ManifestElement<UmbSectionSidebarAppElement>,

0 commit comments

Comments
 (0)