move theme extension
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export * from './theme.context.js';
|
||||
export type * from './theme.extension.js';
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user