move header app button kind interfaces into extensions registry
This commit is contained in:
@@ -11,3 +11,15 @@ export interface MetaHeaderApp {
|
||||
label: string;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
export interface ManifestHeaderAppButtonKind extends Omit<ManifestHeaderApp, 'kind'> {
|
||||
type: 'headerApp';
|
||||
kind: 'button';
|
||||
meta: MetaHeaderAppButtonKind;
|
||||
}
|
||||
|
||||
export interface MetaHeaderAppButtonKind {
|
||||
href: string;
|
||||
label: string;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { ManifestHeaderAppButtonKind } from '../../src/backoffice/shared/components/header-app/header-app-button.element';
|
||||
import type { ManifestMenuItemTreeKind } from '../../src/backoffice/shared/components/tree/tree-menu-item/tree-menu-item.element';
|
||||
import type { ManifestCollectionView } from './collection-view.models';
|
||||
import type { ManifestDashboard } from './dashboard.models';
|
||||
@@ -6,7 +5,7 @@ import type { ManifestDashboardCollection } from './dashboard-collection.models'
|
||||
import type { ManifestEntityAction } from './entity-action.models';
|
||||
import type { ManifestEntityBulkAction } from './entity-bulk-action.models';
|
||||
import type { ManifestExternalLoginProvider } from './external-login-provider.models';
|
||||
import type { ManifestHeaderApp } from './header-app.models';
|
||||
import type { ManifestHeaderApp, ManifestHeaderAppButtonKind } from './header-app.models';
|
||||
import type { ManifestHealthCheck } from './health-check.models';
|
||||
import type { ManifestPackageView } from './package-view.models';
|
||||
import type { ManifestPropertyAction } from './property-action.models';
|
||||
@@ -28,7 +27,6 @@ import type { ManifestModal } from './modal.models';
|
||||
import type { ManifestStore, ManifestTreeStore } from './store.models';
|
||||
import type { ClassConstructor } from '@umbraco-cms/models';
|
||||
|
||||
export * from '../../src/backoffice/shared/components/header-app/header-app-button.element';
|
||||
export * from '../../src/backoffice/shared/components/tree/tree-menu-item/tree-menu-item.element';
|
||||
export * from './collection-view.models';
|
||||
export * from './dashboard-collection.models';
|
||||
|
||||
@@ -2,21 +2,9 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { css, CSSResultGroup, html, LitElement } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { ifDefined } from 'lit/directives/if-defined.js';
|
||||
import { ManifestHeaderApp, ManifestKind } from '@umbraco-cms/extensions-registry';
|
||||
import { ManifestHeaderAppButtonKind, ManifestKind } from '@umbraco-cms/extensions-registry';
|
||||
import { umbExtensionsRegistry } from '@umbraco-cms/extensions-api';
|
||||
|
||||
export interface ManifestHeaderAppButtonKind extends Omit<ManifestHeaderApp, 'kind'> {
|
||||
type: 'headerApp';
|
||||
kind: 'button';
|
||||
meta: MetaHeaderAppButtonKind;
|
||||
}
|
||||
|
||||
export interface MetaHeaderAppButtonKind {
|
||||
href: string;
|
||||
label: string;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
const manifest: ManifestKind = {
|
||||
type: 'kind',
|
||||
alias: 'Umb.Kind.Button',
|
||||
|
||||
Reference in New Issue
Block a user