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: property action #2357

Merged
merged 3 commits into from
Sep 29, 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
5 changes: 0 additions & 5 deletions src/packages/core/extension-registry/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import type { ManifestLocalization } from './localization.model.js';
import type { ManifestMenu } from './menu.model.js';
import type { ManifestMenuItem, ManifestMenuItemLinkKind, ManifestMenuItemTreeKind } from './menu-item.model.js';
import type { ManifestPreviewAppProvider } from './preview-app.model.js';
import type { ManifestPropertyAction, ManifestPropertyActionDefaultKind } from './property-action.model.js';
import type { ManifestPropertyEditorUi, ManifestPropertyEditorSchema } from './property-editor.model.js';
import type { ManifestRepository } from './repository.model.js';
import type { ManifestSection } from './section.model.js';
Expand Down Expand Up @@ -75,7 +74,6 @@ export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './picker-search-result-item.model.js';
export type * from './preview-app.model.js';
export type * from './property-action.model.js';
export type * from './property-editor.model.js';
export type * from './repository.model.js';
export type * from './section-sidebar-app.model.js';
Expand Down Expand Up @@ -105,8 +103,6 @@ export type ManifestEntityActions =
| ManifestEntityActionTrashKind
| ManifestEntityActionUpdateFolderKind;

export type ManifestPropertyActions = ManifestPropertyAction | ManifestPropertyActionDefaultKind;

export type ManifestTypes =
| ManifestAppEntryPoint
| ManifestAuthProvider
Expand Down Expand Up @@ -140,7 +136,6 @@ export type ManifestTypes =
| ManifestMonacoMarkdownEditorAction
| ManifestPickerSearchResultItem
| ManifestPreviewAppProvider
| ManifestPropertyActions
| ManifestPropertyEditorSchema
| ManifestPropertyEditorUi
| ManifestRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { UmbPropertyActionArgs } from '../property-action/types.js';
import { css, customElement, html, nothing, property, repeat, state } from '@umbraco-cms/backoffice/external/lit';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestPropertyAction, MetaPropertyAction } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestPropertyAction, MetaPropertyAction } from '@umbraco-cms/backoffice/property-action';
import { UmbExtensionsElementAndApiInitializer } from '@umbraco-cms/backoffice/extension-api';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { UmbPropertyAction } from '../index.js';
import { UmbActionExecutedEvent } from '@umbraco-cms/backoffice/event';
import { html, customElement, property, state, ifDefined, nothing } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import type {
ManifestPropertyActionDefaultKind,
MetaPropertyActionDefaultKind,
} from '@umbraco-cms/backoffice/extension-registry';
} from '../../../extensions/property-action.extension.js';
import { UmbActionExecutedEvent } from '@umbraco-cms/backoffice/event';
import { html, customElement, property, state, ifDefined, nothing } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';

import type { UUIMenuItemEvent } from '@umbraco-cms/backoffice/external/uui';

@customElement('umb-property-action')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UmbPropertyAction } from '../../property-action/components/property-action/property-action.interface.js';
import type { UmbPropertyAction } from '../components/property-action/property-action.interface.js';
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';

Expand Down Expand Up @@ -39,3 +39,11 @@ export interface MetaPropertyActionDefaultKind extends MetaPropertyAction {
*/
label: string;
}

export type UmbPropertyActionExtensions = ManifestPropertyAction | ManifestPropertyActionDefaultKind;

declare global {
interface UmbExtensionManifestMap {
UmbPropertyActionExtensions: UmbPropertyActionExtensions;
}
}
1 change: 1 addition & 0 deletions src/packages/core/property-action/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './components/index.js';
export * from './extensions/property-action.extension.js';
Loading