Merge pull request #2354 from umbraco/v15/feature/emm-theme
Extension Manifest Map: Theme extension
This commit is contained in:
@@ -35,7 +35,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';
|
||||
@@ -80,7 +79,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';
|
||||
@@ -145,7 +143,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',
|
||||
|
||||
@@ -3,7 +3,7 @@ import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registr
|
||||
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import { UmbStringState } from '@umbraco-cms/backoffice/observable-api';
|
||||
import type { ManifestTheme } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import type { ManifestTheme } from '@umbraco-cms/backoffice/themes';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import type { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
|
||||
|
||||
|
||||
@@ -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