Skip to content

Commit d6eeef4

Browse files
committed
move icons
1 parent 336e565 commit d6eeef4

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import type { ManifestExternalLoginProvider } from './external-login-provider.mo
2424
import type { ManifestGlobalContext } from './global-context.model.js';
2525
import type { ManifestHeaderApp, ManifestHeaderAppButtonKind } from './header-app.model.js';
2626
import type { ManifestHealthCheck } from './health-check.model.js';
27-
import type { ManifestIcons } from './icons.model.js';
2827
import type { ManifestLocalization } from './localization.model.js';
2928
import type { ManifestMenu } from './menu.model.js';
3029
import type { ManifestMenuItem, ManifestMenuItemLinkKind, ManifestMenuItemTreeKind } from './menu-item.model.js';
@@ -67,7 +66,6 @@ export type * from './external-login-provider.model.js';
6766
export type * from './global-context.model.js';
6867
export type * from './header-app.model.js';
6968
export type * from './health-check.model.js';
70-
export type * from './icons.model.js';
7169
export type * from './localization.model.js';
7270
export type * from './menu-item.model.js';
7371
export type * from './menu.model.js';
@@ -129,7 +127,6 @@ export type ManifestTypes =
129127
| ManifestHeaderApp
130128
| ManifestHeaderAppButtonKind
131129
| ManifestHealthCheck
132-
| ManifestIcons
133130
| ManifestItemStore
134131
| ManifestLocalization
135132
| ManifestMenu

src/packages/core/extension-registry/models/icons.model.ts renamed to src/packages/core/icon-registry/extensions/icons.extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ import type { ManifestPlainJs } from '@umbraco-cms/backoffice/extension-api';
44
export interface ManifestIcons extends ManifestPlainJs<{ default: UmbIconDictionary }> {
55
type: 'icons';
66
}
7+
8+
declare global {
9+
interface UmbExtensionManifestMap {
10+
UmbIconsExtension: ManifestIcons;
11+
}
12+
}

src/packages/core/icon-registry/icon-registry.context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
55
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
66
import { loadManifestPlainJs } from '@umbraco-cms/backoffice/extension-api';
77
import { UmbArrayState } from '@umbraco-cms/backoffice/observable-api';
8-
import { type ManifestIcons, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
8+
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
9+
import type { ManifestIcons } from '@umbraco-cms/backoffice/icon';
910

1011
export class UmbIconRegistryContext extends UmbContextBase<UmbIconRegistryContext> {
1112
#registry: UmbIconRegistry;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
export * from './icon-picker-modal/index.js';
12
export * from './icon-registry.context-token.js';
23
export * from './icon-registry.context.js';
34
export * from './icon.registry.js';
45
export * from './types.js';
5-
export * from './icon-picker-modal/index.js';
6+
export type * from './extensions/icons.extension.js';

0 commit comments

Comments
 (0)