Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension Manifest Map: Theme extension #2354

Merged
merged 5 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/packages/core/extension-registry/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -145,7 +143,6 @@ export type ManifestTypes =
| ManifestSectionSidebarAppMenuKind
| ManifestSectionView
| ManifestStore
| ManifestTheme
| ManifestTinyMcePlugin
| ManifestTreeStore
| ManifestUfmComponent
Expand Down
1 change: 1 addition & 0 deletions src/packages/core/themes/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './theme.context.js';
export type * from './theme.extension.js';
4 changes: 1 addition & 3 deletions src/packages/core/themes/manifests.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/packages/core/themes/theme.context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Loading