Skip to content

Commit e58b0f8

Browse files
committed
move theme extension
1 parent 3b8ec46 commit e58b0f8

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import type { ManifestSection } from './section.model.js';
3838
import type { ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind } from './section-sidebar-app.model.js';
3939
import type { ManifestSectionView } from './section-view.model.js';
4040
import type { ManifestStore, ManifestTreeStore, ManifestItemStore } from './store.model.js';
41-
import type { ManifestTheme } from './theme.model.js';
4241
import type { ManifestTinyMcePlugin } from './tinymce-plugin.model.js';
4342
import type { ManifestUfmComponent } from './ufm-component.model.js';
4443
import type { ManifestUfmFilter } from './ufm-filter.model.js';
@@ -86,7 +85,6 @@ export type * from './section-sidebar-app.model.js';
8685
export type * from './section-view.model.js';
8786
export type * from './section.model.js';
8887
export type * from './store.model.js';
89-
export type * from './theme.model.js';
9088
export type * from './tinymce-plugin.model.js';
9189
export type * from './ufm-component.model.js';
9290
export type * from './ufm-filter.model.js';
@@ -156,7 +154,6 @@ export type ManifestTypes =
156154
| ManifestSectionSidebarAppMenuKind
157155
| ManifestSectionView
158156
| ManifestStore
159-
| ManifestTheme
160157
| ManifestTinyMcePlugin
161158
| ManifestTreeStore
162159
| ManifestUfmComponent

src/packages/core/themes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './theme.context.js';
2+
export type * from './theme.extension.js';

src/packages/core/themes/manifests.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import type { ManifestGlobalContext, ManifestTheme } from '@umbraco-cms/backoffice/extension-registry';
2-
3-
export const themes: Array<ManifestGlobalContext | ManifestTheme> = [
1+
export const themes: Array<UmbExtensionManifest> = [
42
{
53
type: 'globalContext',
64
alias: 'Umb.GlobalContext.Theme',

src/packages/core/extension-registry/models/theme.model.ts renamed to src/packages/core/themes/theme.extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ import type { ManifestPlainCss } from '@umbraco-cms/backoffice/extension-api';
55
export interface ManifestTheme extends ManifestPlainCss {
66
type: 'theme';
77
}
8+
9+
declare global {
10+
interface UmbExtensionManifestMap {
11+
UMB_THEME: ManifestTheme;
12+
}
13+
}

0 commit comments

Comments
 (0)