Skip to content

Commit 2b31fcd

Browse files
committed
move section extensions
1 parent 3b8ec46 commit 2b31fcd

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ import type { ManifestPreviewAppProvider } from './preview-app.model.js';
3434
import type { ManifestPropertyAction, ManifestPropertyActionDefaultKind } from './property-action.model.js';
3535
import type { ManifestPropertyEditorUi, ManifestPropertyEditorSchema } from './property-editor.model.js';
3636
import type { ManifestRepository } from './repository.model.js';
37-
import type { ManifestSection } from './section.model.js';
38-
import type { ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind } from './section-sidebar-app.model.js';
39-
import type { ManifestSectionView } from './section-view.model.js';
4037
import type { ManifestStore, ManifestTreeStore, ManifestItemStore } from './store.model.js';
4138
import type { ManifestTheme } from './theme.model.js';
4239
import type { ManifestTinyMcePlugin } from './tinymce-plugin.model.js';
@@ -50,7 +47,6 @@ import type { ManifestAppEntryPoint } from './app-entry-point.model.js';
5047
import type { ManifestBackofficeEntryPoint } from './backoffice-entry-point.model.js';
5148
import type { ManifestEntryPoint } from './entry-point.model.js';
5249
import type { ManifestMonacoMarkdownEditorAction } from './monaco-markdown-editor-action.model.js';
53-
import type { ManifestSectionRoute } from './section-route.model.js';
5450
import type { ManifestPickerSearchResultItem } from './picker-search-result-item.model.js';
5551
import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api';
5652

@@ -82,9 +78,6 @@ export type * from './preview-app.model.js';
8278
export type * from './property-action.model.js';
8379
export type * from './property-editor.model.js';
8480
export type * from './repository.model.js';
85-
export type * from './section-sidebar-app.model.js';
86-
export type * from './section-view.model.js';
87-
export type * from './section.model.js';
8881
export type * from './store.model.js';
8982
export type * from './theme.model.js';
9083
export type * from './tinymce-plugin.model.js';
@@ -150,11 +143,6 @@ export type ManifestTypes =
150143
| ManifestPropertyEditorSchema
151144
| ManifestPropertyEditorUi
152145
| ManifestRepository
153-
| ManifestSection
154-
| ManifestSectionRoute
155-
| ManifestSectionSidebarApp
156-
| ManifestSectionSidebarAppMenuKind
157-
| ManifestSectionView
158146
| ManifestStore
159147
| ManifestTheme
160148
| ManifestTinyMcePlugin
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { ManifestSectionRoute } from './section-route.extension.js';
2+
import type { ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind } from './section-sidebar-app.extension.js';
3+
import type { ManifestSectionView } from './section-view.extension.js';
4+
import type { ManifestSection } from './section.extension.js';
5+
6+
export type * from './section-route.extension.js';
7+
export type * from './section-sidebar-app.extension.js';
8+
export type * from './section-view.extension.js';
9+
export type * from './section.extension.js';
10+
11+
type UmbSectionExtensions =
12+
| ManifestSection
13+
| ManifestSectionRoute
14+
| ManifestSectionSidebarApp
15+
| ManifestSectionSidebarAppMenuKind
16+
| ManifestSectionView;
17+
18+
declare global {
19+
interface UmbExtensionManifestMap {
20+
UmbSectionExtensions: UmbSectionExtensions;
21+
}
22+
}

src/packages/core/extension-registry/models/section-route.model.ts renamed to src/packages/core/section/extensions/section-route.extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { UmbRouteEntry } from '../../router/types.js';
21
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
32
import type { ManifestElementAndApi } from '@umbraco-cms/backoffice/extension-api';
3+
import type { UmbRouteEntry } from '@umbraco-cms/backoffice/router';
44

55
export interface ManifestSectionRoute extends ManifestElementAndApi<UmbControllerHostElement, UmbRouteEntry> {
66
type: 'sectionRoute';

src/packages/core/extension-registry/models/section-sidebar-app.model.ts renamed to 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 @@
1-
import type { UmbSectionSidebarAppElement } from '../interfaces/section-sidebar-app-element.interface.js';
21
import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
2+
import type { UmbSectionSidebarAppElement } from '@umbraco-cms/backoffice/extension-registry';
33

44
export interface ManifestSectionSidebarApp
55
extends ManifestElement<UmbSectionSidebarAppElement>,

src/packages/core/extension-registry/models/section-view.model.ts renamed to src/packages/core/section/extensions/section-view.extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { UmbSectionViewElement } from '../interfaces/section-view-element.interface.js';
21
import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
2+
import type { UmbSectionViewElement } from '@umbraco-cms/backoffice/extension-registry';
33

44
export interface ManifestSectionView
55
extends ManifestElement<UmbSectionViewElement>,

src/packages/core/extension-registry/models/section.model.ts renamed to src/packages/core/section/extensions/section.extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { UmbSectionElement } from '../interfaces/index.js';
21
import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
2+
import type { UmbSectionElement } from '@umbraco-cms/backoffice/extension-registry';
33

44
export interface ManifestSection
55
extends ManifestElement<UmbSectionElement>,

src/packages/core/section/section-default.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ManifestSectionRoute } from '../extension-registry/models/section-route.model.js';
1+
import type { ManifestSectionRoute } from './extensions/section-route.extension.js';
22
import type { UmbSectionMainViewElement } from './section-main-views/section-main-views.element.js';
33
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
44
import { css, html, nothing, customElement, property, state, repeat } from '@umbraco-cms/backoffice/external/lit';

0 commit comments

Comments
 (0)