@umbraco-cms/backoffice 14.0.0--preview005-011edded → 14.0.0--preview005-ca61ea2b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cms/custom-elements.json +27 -5
  2. package/dist-cms/libs/extension-api/controller/extensions-element-initializer.controller.d.ts +0 -1
  3. package/dist-cms/libs/extension-api/controller/extensions-element-initializer.controller.js +5 -4
  4. package/dist-cms/mocks/data/data-type/data-type.data.js +2 -1
  5. package/dist-cms/mocks/data/document/document.data.js +8 -1
  6. package/dist-cms/packages/block/block/conditions/block-workspace-has-settings.condition.d.ts +10 -0
  7. package/dist-cms/packages/block/block/conditions/block-workspace-has-settings.condition.js +37 -0
  8. package/dist-cms/packages/block/block/conditions/index.d.ts +1 -0
  9. package/dist-cms/packages/block/block/conditions/index.js +1 -0
  10. package/dist-cms/packages/block/block/context/{block.context.d.ts → block-entity.context.d.ts} +1 -1
  11. package/dist-cms/packages/block/block/context/{block.context.js → block-entity.context.js} +2 -2
  12. package/dist-cms/packages/block/block/context/index.d.ts +1 -1
  13. package/dist-cms/packages/block/block/context/index.js +1 -1
  14. package/dist-cms/packages/block/block/index.d.ts +2 -1
  15. package/dist-cms/packages/block/block/index.js +2 -1
  16. package/dist-cms/packages/block/block/manager/block-manager.context.js +1 -0
  17. package/dist-cms/packages/block/block/manifests.js +2 -1
  18. package/dist-cms/packages/block/block/workspace/block-workspace.context.d.ts +1 -0
  19. package/dist-cms/packages/block/block/workspace/block-workspace.element.js +1 -1
  20. package/dist-cms/packages/block/block/workspace/manifests.js +23 -0
  21. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-no-router.element.js +0 -1
  22. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-properties.element.d.ts +5 -3
  23. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-properties.element.js +44 -9
  24. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-tab.element.d.ts +4 -4
  25. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-tab.element.js +43 -14
  26. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit.element.d.ts +4 -4
  27. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit.element.js +56 -21
  28. package/dist-cms/packages/block/block-list/components/block-list-block/block-list-block.element.d.ts +4 -0
  29. package/dist-cms/packages/block/block-list/components/block-list-block/block-list-block.element.js +26 -3
  30. package/dist-cms/packages/block/block-list/components/inline-list-block/inline-list-block.element.d.ts +1 -1
  31. package/dist-cms/packages/block/block-list/components/inline-list-block/inline-list-block.element.js +6 -8
  32. package/dist-cms/packages/block/block-list/components/ref-list-block/ref-list-block.element.d.ts +1 -1
  33. package/dist-cms/packages/block/block-list/components/ref-list-block/ref-list-block.element.js +3 -5
  34. package/dist-cms/packages/core/components/extension-slot/extension-slot.element.js +4 -2
  35. package/dist-cms/packages/core/extension-registry/conditions/manifests.js +3 -2
  36. package/dist-cms/packages/core/extension-registry/conditions/types.d.ts +2 -1
  37. package/dist-cms/packages/core/extension-registry/models/block-editor-custom-view.model.d.ts +5 -0
  38. package/dist-cms/packages/core/extension-registry/models/block-editor-custom-view.model.js +1 -0
  39. package/dist-cms/packages/core/extension-registry/models/index.d.ts +3 -1
  40. package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit.element.d.ts +1 -2
  41. package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit.element.js +4 -0
  42. package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
  43. package/dist-cms/umbraco-package-schema.json +74 -8
  44. package/dist-cms/vscode-html-custom-data.json +15 -9
  45. package/package.json +1 -1
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "definitions": {
4
+ "BlockWorkspaceHasSettingsConditionConfig": {
5
+ "properties": {
6
+ "alias": {
7
+ "const": "Umb.Condition.BlockWorkspaceHasSettings",
8
+ "type": "string"
9
+ }
10
+ },
11
+ "required": [
12
+ "alias"
13
+ ],
14
+ "type": "object"
15
+ },
4
16
  "CollectionAliasConditionConfig": {
5
17
  "allOf": [
6
18
  {
@@ -34,6 +46,9 @@
34
46
  {
35
47
  "$ref": "#/definitions/WorkspaceAliasConditionConfig"
36
48
  },
49
+ {
50
+ "$ref": "#/definitions/BlockWorkspaceHasSettingsConditionConfig"
51
+ },
37
52
  {
38
53
  "$ref": "#/definitions/WorkspaceEntityTypeConditionConfig"
39
54
  },
@@ -106,6 +121,54 @@
106
121
  ],
107
122
  "type": "object"
108
123
  },
124
+ "ManifestBlockEditorCustomView": {
125
+ "properties": {
126
+ "alias": {
127
+ "description": "The alias of the extension, ensure it is unique",
128
+ "type": "string"
129
+ },
130
+ "element": {
131
+ "description": "The file location of the element javascript file to load",
132
+ "type": "string"
133
+ },
134
+ "elementName": {
135
+ "description": "The HTML web component name to use such as 'my-dashboard'\nNote it is NOT <my-dashboard></my-dashboard>, just the element name.",
136
+ "type": "string"
137
+ },
138
+ "js": {
139
+ "description": "The file location of the javascript file to load",
140
+ "type": "string"
141
+ },
142
+ "kind": {
143
+ "description": "The kind of the extension, used to group extensions together",
144
+ "examples": [
145
+ "button"
146
+ ]
147
+ },
148
+ "meta": {
149
+ "description": "This contains properties specific to the type of extension"
150
+ },
151
+ "name": {
152
+ "description": "The friendly name of the extension",
153
+ "type": "string"
154
+ },
155
+ "type": {
156
+ "const": "bockEditorCustomView",
157
+ "description": "The type of extension such as dashboard etc...",
158
+ "type": "string"
159
+ },
160
+ "weight": {
161
+ "description": "Extensions such as dashboards are ordered by weight with lower numbers being first in the list",
162
+ "type": "number"
163
+ }
164
+ },
165
+ "required": [
166
+ "alias",
167
+ "name",
168
+ "type"
169
+ ],
170
+ "type": "object"
171
+ },
109
172
  "ManifestBundle<ManifestTypes>": {
110
173
  "description": "This type of extension takes a JS module and registers all exported manifests from the pointed JS file.",
111
174
  "properties": {
@@ -2023,6 +2086,15 @@
2023
2086
  },
2024
2087
  "ManifestTypes": {
2025
2088
  "anyOf": [
2089
+ {
2090
+ "$ref": "#/definitions/ManifestDashboard"
2091
+ },
2092
+ {
2093
+ "$ref": "#/definitions/ManifestExternalLoginProvider"
2094
+ },
2095
+ {
2096
+ "$ref": "#/definitions/ManifestMenuItem"
2097
+ },
2026
2098
  {
2027
2099
  "$ref": "#/definitions/ManifestBase"
2028
2100
  },
@@ -2042,16 +2114,10 @@
2042
2114
  "$ref": "#/definitions/ManifestModal"
2043
2115
  },
2044
2116
  {
2045
- "$ref": "#/definitions/ManifestDashboard"
2046
- },
2047
- {
2048
- "$ref": "#/definitions/ManifestExternalLoginProvider"
2049
- },
2050
- {
2051
- "$ref": "#/definitions/ManifestMenuItem"
2117
+ "$ref": "#/definitions/ManifestBundle<ManifestTypes>"
2052
2118
  },
2053
2119
  {
2054
- "$ref": "#/definitions/ManifestBundle<ManifestTypes>"
2120
+ "$ref": "#/definitions/ManifestBlockEditorCustomView"
2055
2121
  },
2056
2122
  {
2057
2123
  "$ref": "#/definitions/ManifestCollection"
@@ -266,21 +266,27 @@
266
266
  },
267
267
  {
268
268
  "name": "umb-property-editor-ui-block-list-block",
269
- "description": "Properties:\n\n * `layout` - \n\n * `_layout` - \n\n * `_contentUdi` {`string | undefined`} - \n\n * `_label` {`string`} - \n\n * `_workspaceEditPath` {`string | undefined`} - \n\n * `_inlineEditingMode` {`boolean | undefined`} - \n\n * `styles` {`any[]`} - ",
269
+ "description": "Properties:\n\n * `layout` - \n\n * `_layout` - \n\n * `_contentUdi` {`string | undefined`} - \n\n * `_hasSettings` {`boolean`} - \n\n * `_label` {`string`} - \n\n * `_workspaceEditPath` {`string | undefined`} - \n\n * `_inlineEditingMode` {`boolean | undefined`} - \n\n * `_blockViewProps` {`{ label?: string | undefined; }`} - \n\n * `styles` {`any[]`} - ",
270
270
  "attributes": []
271
271
  },
272
272
  {
273
273
  "name": "umb-inline-list-block",
274
- "description": "Properties:\n\n * `_label` {`string`} - \n\n * `_isOpen` {`boolean`} - \n\n * `styles` {`any[]`} - ",
275
- "attributes": []
274
+ "description": "Attributes:\n\n * `label` {`string | undefined`} - \n\nProperties:\n\n * `label` {`string | undefined`} - \n\n * `_isOpen` {`boolean`} - \n\n * `styles` {`any[]`} - ",
275
+ "attributes": [
276
+ {
277
+ "name": "label",
278
+ "description": "`label` {`string | undefined`} - \n\nProperty: label",
279
+ "values": []
280
+ }
281
+ ]
276
282
  },
277
283
  {
278
284
  "name": "umb-ref-list-block",
279
- "description": "Attributes:\n\n * `name` {`string | undefined`} - \n\nProperties:\n\n * `name` {`string | undefined`} - \n\n * `_workspaceEditPath` {`string | undefined`} - \n\n * `styles` {`any[]`} - ",
285
+ "description": "Attributes:\n\n * `label` {`string | undefined`} - \n\nProperties:\n\n * `label` {`string | undefined`} - \n\n * `_workspaceEditPath` {`string | undefined`} - \n\n * `styles` {`any[]`} - ",
280
286
  "attributes": [
281
287
  {
282
- "name": "name",
283
- "description": "`name` {`string | undefined`} - \n\nProperty: name",
288
+ "name": "label",
289
+ "description": "`label` {`string | undefined`} - \n\nProperty: label",
284
290
  "values": []
285
291
  }
286
292
  ]
@@ -367,7 +373,7 @@
367
373
  },
368
374
  {
369
375
  "name": "umb-block-workspace-view-edit-properties",
370
- "description": "Attributes:\n\n * `container-name` {`string | undefined`} - \n\n * `container-type` - \n\nProperties:\n\n * `containerName` {`string | undefined`} - \n\n * `containerType` - \n\n * `_propertyStructureHelper` - \n\n * `_propertyStructure` {`UmbPropertyTypeModel[]`} - \n\n * `styles` {`any[]`} - ",
376
+ "description": "Attributes:\n\n * `container-name` {`string | undefined`} - \n\n * `container-type` - \n\nProperties:\n\n * `managerName` {`UmbBlockWorkspaceElementManagerNames | undefined`} - \n\n * `containerName` {`string | undefined`} - \n\n * `containerType` - \n\n * `_propertyStructure` {`UmbPropertyTypeModel[]`} - \n\n * `styles` {`any[]`} - ",
371
377
  "attributes": [
372
378
  {
373
379
  "name": "container-name",
@@ -382,7 +388,7 @@
382
388
  },
383
389
  {
384
390
  "name": "umb-block-workspace-view-edit-tab",
385
- "description": "Attributes:\n\n * `tabName` {`string | undefined`} - \n\n * `noTabName` {`boolean`} - \n\n * `ownerTabId` {`string | null | undefined`} - \n\n * `hideSingleGroup` {`boolean`} - If true, the group box will be hidden, if we are to only represents one group.\nThis is used by Inline Editing Mode of Block List Editor.\n\nProperties:\n\n * `_tabName` {`string | undefined`} - \n\n * `tabName` {`string | undefined`} - \n\n * `noTabName` {`boolean`} - \n\n * `_ownerTabId` {`string | null | undefined`} - \n\n * `ownerTabId` {`string | null | undefined`} - \n\n * `hideSingleGroup` {`boolean`} - If true, the group box will be hidden, if we are to only represents one group.\nThis is used by Inline Editing Mode of Block List Editor.\n\n * `_groupStructureHelper` - \n\n * `_groups` {`PropertyTypeContainerModelBaseModel[]`} - \n\n * `_hasProperties` {`boolean`} - \n\n * `styles` {`any[]`} - ",
391
+ "description": "Attributes:\n\n * `tabName` {`string | undefined`} - \n\n * `noTabName` {`boolean`} - \n\n * `ownerTabId` {`string | null | undefined`} - \n\n * `hideSingleGroup` {`boolean`} - If true, the group box will be hidden, if we are to only represents one group.\nThis is used by Inline Editing Mode of Block List Editor.\n\nProperties:\n\n * `managerName` {`UmbBlockWorkspaceElementManagerNames | undefined`} - \n\n * `tabName` {`string | undefined`} - \n\n * `_tabName` {`string | undefined`} - \n\n * `noTabName` {`boolean`} - \n\n * `_ownerTabId` {`string | null | undefined`} - \n\n * `ownerTabId` {`string | null | undefined`} - \n\n * `hideSingleGroup` {`boolean`} - If true, the group box will be hidden, if we are to only represents one group.\nThis is used by Inline Editing Mode of Block List Editor.\n\n * `_groups` {`PropertyTypeContainerModelBaseModel[]`} - \n\n * `_hasProperties` {`boolean`} - \n\n * `styles` {`any[]`} - ",
386
392
  "attributes": [
387
393
  {
388
394
  "name": "tabName",
@@ -408,7 +414,7 @@
408
414
  },
409
415
  {
410
416
  "name": "umb-block-workspace-view-edit",
411
- "description": "Properties:\n\n * `_hasRootGroups` {`boolean`} - \n\n * `_routes` {`UmbRoute[]`} - \n\n * `_tabs` {`PropertyTypeContainerModelBaseModel[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `_activePath` {`string`} - \n\n * `_workspaceContext` - \n\n * `_tabsStructureHelper` - \n\n * `styles` {`any[]`} - ",
417
+ "description": "Properties:\n\n * `manifest` - \n\n * `_hasRootGroups` {`boolean`} - \n\n * `_routes` {`UmbRoute[]`} - \n\n * `_tabs` {`PropertyTypeContainerModelBaseModel[] | undefined`} - \n\n * `_routerPath` {`string | undefined`} - \n\n * `_activePath` {`string`} - \n\n * `styles` {`any[]`} - ",
412
418
  "attributes": []
413
419
  },
414
420
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
3
  "license": "MIT",
4
- "version": "14.0.0--preview005-011edded",
4
+ "version": "14.0.0--preview005-ca61ea2b",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": null,