1
- import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } from '../entity.js' ;
1
+ import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE } from '../entity.js' ;
2
2
import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace' ;
3
3
import type {
4
4
ManifestTypes ,
5
5
ManifestWorkspace ,
6
6
ManifestWorkspaceActions ,
7
- ManifestWorkspaceView ,
8
7
} from '@umbraco-cms/backoffice/extension-registry' ;
9
8
10
9
export const UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS = 'Umb.Workspace.DocumentBlueprint' ;
@@ -20,26 +19,16 @@ const workspace: ManifestWorkspace = {
20
19
} ,
21
20
} ;
22
21
23
- const workspaceViews : Array < ManifestWorkspaceView > = [
24
- {
25
- type : 'workspaceView' ,
26
- kind : 'contentEditor' ,
27
- alias : 'Umb.WorkspaceView.DocumentBlueprint.Edit' ,
28
- name : 'Document Blueprint Workspace Edit View' ,
29
- weight : 200 ,
30
- meta : {
31
- label : '#general_content' ,
32
- pathname : 'content' ,
33
- icon : 'document' ,
34
- } ,
35
- conditions : [
36
- {
37
- alias : 'Umb.Condition.WorkspaceAlias' ,
38
- match : workspace . alias ,
39
- } ,
40
- ] ,
22
+ const rootWorkspace : ManifestWorkspace = {
23
+ type : 'workspace' ,
24
+ kind : 'routable' ,
25
+ alias : 'Umb.Workspace.DocumentBlueprint.Root' ,
26
+ name : 'Document Blueprint Root Workspace' ,
27
+ api : ( ) => import ( './document-blueprint-workspace.context.js' ) ,
28
+ meta : {
29
+ entityType : UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE ,
41
30
} ,
42
- ] ;
31
+ } ;
43
32
44
33
const workspaceActions : Array < ManifestWorkspaceActions > = [
45
34
{
@@ -63,4 +52,4 @@ const workspaceActions: Array<ManifestWorkspaceActions> = [
63
52
} ,
64
53
] ;
65
54
66
- export const manifests : Array < ManifestTypes > = [ workspace , ... workspaceViews , ...workspaceActions ] ;
55
+ export const manifests : Array < ManifestTypes > = [ rootWorkspace , workspace , ...workspaceActions ] ;
0 commit comments