move theme extension

This commit is contained in:
Niels Lyngsø
2024-09-28 21:02:52 +02:00
parent 94d230c0f6
commit adbf51de96
4 changed files with 8 additions and 6 deletions

View File

@@ -38,7 +38,6 @@ import type { ManifestSection } from './section.model.js';
import type { ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind } from './section-sidebar-app.model.js';
import type { ManifestSectionView } from './section-view.model.js';
import type { ManifestStore, ManifestTreeStore, ManifestItemStore } from './store.model.js';
import type { ManifestTheme } from './theme.model.js';
import type { ManifestTinyMcePlugin } from './tinymce-plugin.model.js';
import type { ManifestUfmComponent } from './ufm-component.model.js';
import type { ManifestUfmFilter } from './ufm-filter.model.js';
@@ -86,7 +85,6 @@ export type * from './section-sidebar-app.model.js';
export type * from './section-view.model.js';
export type * from './section.model.js';
export type * from './store.model.js';
export type * from './theme.model.js';
export type * from './tinymce-plugin.model.js';
export type * from './ufm-component.model.js';
export type * from './ufm-filter.model.js';
@@ -156,7 +154,6 @@ export type ManifestTypes =
| ManifestSectionSidebarAppMenuKind
| ManifestSectionView
| ManifestStore
| ManifestTheme
| ManifestTinyMcePlugin
| ManifestTreeStore
| ManifestUfmComponent

View File

@@ -1 +1,2 @@
export * from './theme.context.js';
export type * from './theme.extension.js';

View File

@@ -1,6 +1,4 @@
import type { ManifestGlobalContext, ManifestTheme } from '@umbraco-cms/backoffice/extension-registry';
export const themes: Array<ManifestGlobalContext | ManifestTheme> = [
export const themes: Array<UmbExtensionManifest> = [
{
type: 'globalContext',
alias: 'Umb.GlobalContext.Theme',

View File

@@ -5,3 +5,9 @@ import type { ManifestPlainCss } from '@umbraco-cms/backoffice/extension-api';
export interface ManifestTheme extends ManifestPlainCss {
type: 'theme';
}
declare global {
interface UmbExtensionManifestMap {
UMB_THEME: ManifestTheme;
}
}