add workspace actions to document + add default element for a workspace action
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-ui/uui-base/lib/types/index'
|
||||
import type { InterfaceColor, InterfaceLook } from '@umbraco-ui/uui-base/lib/types/index';
|
||||
import type { ManifestElement } from './models';
|
||||
|
||||
export interface ManifestWorkspaceAction extends ManifestElement {
|
||||
type: 'workspaceAction';
|
||||
meta: MetaEditorAction;
|
||||
meta: MetaWorkspaceAction;
|
||||
}
|
||||
|
||||
export interface MetaEditorAction {
|
||||
export interface MetaWorkspaceAction {
|
||||
workspaces: Array<string>;
|
||||
label?: string, //TODO: Use or implement additional label-key
|
||||
look?: InterfaceLook,
|
||||
color?: InterfaceColor,
|
||||
label?: string; //TODO: Use or implement additional label-key
|
||||
look?: InterfaceLook;
|
||||
color?: InterfaceColor;
|
||||
api: any; //TODO: Implement UmbEntityAction
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
FolderTreeItem,
|
||||
ProblemDetails,
|
||||
} from '@umbraco-cms/backend-api';
|
||||
import { UmbControllerHostInterface } from '@umbraco-cms/controller';
|
||||
|
||||
// Extension Manifests
|
||||
export * from '@umbraco-cms/extensions-registry';
|
||||
@@ -157,3 +158,7 @@ export interface DataSourceResponse<T = undefined> {
|
||||
data?: T;
|
||||
error?: ProblemDetails;
|
||||
}
|
||||
|
||||
export interface UmbRepositoryFactory<T> {
|
||||
new (host: UmbControllerHostInterface): T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user