base-screen 0.3.0 → 0.4.2

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 (424) hide show
  1. package/README.md +5 -2
  2. package/dist/_internal/contracts/diagnostics/material-error.d.ts +1 -1
  3. package/dist/_internal/contracts/diagnostics/material-error.js +1 -1
  4. package/dist/_internal/contracts/document/blueprint-graph.d.ts +3 -3
  5. package/dist/_internal/contracts/document/blueprint-graph.js +4 -4
  6. package/dist/_internal/contracts/document/component-states.d.ts +1 -1
  7. package/dist/_internal/contracts/document/component-states.js +1 -1
  8. package/dist/_internal/contracts/document/image-url.js +1 -1
  9. package/dist/_internal/contracts/document/json-schema.js +1 -1
  10. package/dist/_internal/contracts/document/limits.d.ts +5 -5
  11. package/dist/_internal/contracts/document/limits.js +5 -5
  12. package/dist/_internal/contracts/document/references.js +3 -3
  13. package/dist/_internal/contracts/document/schema.d.ts +9 -2
  14. package/dist/_internal/contracts/document/schema.js +4 -4
  15. package/dist/_internal/contracts/document/sub-canvas.d.ts +2 -2
  16. package/dist/_internal/contracts/document/sub-canvas.js +2 -2
  17. package/dist/_internal/contracts/document/theme.d.ts +2 -2
  18. package/dist/_internal/contracts/document/theme.js +2 -2
  19. package/dist/_internal/contracts/document/validate-blueprint.d.ts +1 -1
  20. package/dist/_internal/contracts/document/validate-blueprint.js +1 -1
  21. package/dist/_internal/contracts/document/validate-component.js +2 -2
  22. package/dist/_internal/contracts/document/validate-data-source.js +2 -2
  23. package/dist/_internal/contracts/document/validate-sub-canvas.d.ts +1 -1
  24. package/dist/_internal/contracts/document/validate-sub-canvas.js +1 -1
  25. package/dist/_internal/contracts/document/validate-value-ref.js +6 -1
  26. package/dist/_internal/contracts/index.d.ts +1 -1
  27. package/dist/_internal/contracts/migration/blueprint-graph-migration.d.ts +1 -1
  28. package/dist/_internal/contracts/migration/migrate-document.js +2 -2
  29. package/dist/_internal/contracts/push/delivery.d.ts +1 -1
  30. package/dist/_internal/contracts/push/delivery.js +1 -1
  31. package/dist/_internal/contracts/push/level-scale.d.ts +1 -1
  32. package/dist/_internal/contracts/push/level-scale.js +1 -1
  33. package/dist/_internal/contracts/screen-document.schema.json +15 -3
  34. package/dist/_internal/contracts/types/diagnostics.d.ts +1 -1
  35. package/dist/_internal/contracts/types/document.d.ts +21 -19
  36. package/dist/_internal/contracts/types/execution.d.ts +3 -3
  37. package/dist/_internal/contracts/types/host.d.ts +23 -5
  38. package/dist/_internal/contracts/types/host.js +1 -1
  39. package/dist/_internal/contracts/types/push.d.ts +3 -3
  40. package/dist/_internal/contracts/types/variable.d.ts +3 -3
  41. package/dist/_internal/contracts/variable/parse.js +5 -1
  42. package/dist/_internal/core/blueprint/runtime-compile.d.ts +1 -1
  43. package/dist/_internal/core/blueprint/runtime-compile.js +1 -1
  44. package/dist/_internal/core/blueprint/runtime-dispatch.js +1 -1
  45. package/dist/_internal/core/blueprint/runtime-simulate.d.ts +57 -0
  46. package/dist/_internal/core/blueprint/runtime-simulate.js +177 -0
  47. package/dist/_internal/core/blueprint/runtime-types.d.ts +4 -4
  48. package/dist/_internal/core/blueprint/runtime.d.ts +1 -0
  49. package/dist/_internal/core/blueprint/runtime.js +1 -0
  50. package/dist/_internal/core/commands/apply-collection-commands.d.ts +32 -0
  51. package/dist/_internal/core/commands/apply-collection-commands.js +174 -0
  52. package/dist/_internal/core/commands/apply-component-commands.d.ts +1 -1
  53. package/dist/_internal/core/commands/apply-component-commands.js +2 -2
  54. package/dist/_internal/core/commands/apply.js +15 -2
  55. package/dist/_internal/core/commands/parse-command.js +12 -0
  56. package/dist/_internal/core/commands/types.d.ts +33 -5
  57. package/dist/_internal/core/data/data-candidates.d.ts +38 -0
  58. package/dist/_internal/core/data/data-candidates.js +186 -0
  59. package/dist/_internal/core/data/data-source-dependents.d.ts +1 -1
  60. package/dist/_internal/core/data/data-source-dependents.js +1 -1
  61. package/dist/_internal/core/data/dataset-profile.d.ts +71 -0
  62. package/dist/_internal/core/data/dataset-profile.js +170 -0
  63. package/dist/_internal/core/data/host-dataset.d.ts +2 -2
  64. package/dist/_internal/core/data/host-dataset.js +2 -2
  65. package/dist/_internal/core/data/sample-values.d.ts +25 -0
  66. package/dist/_internal/core/data/sample-values.js +45 -0
  67. package/dist/_internal/core/data/value-ref.d.ts +2 -2
  68. package/dist/_internal/core/data/value-ref.js +1 -1
  69. package/dist/_internal/core/diff/screen-diff.js +6 -0
  70. package/dist/_internal/core/index.d.ts +7 -1
  71. package/dist/_internal/core/index.js +7 -1
  72. package/dist/_internal/core/state/state-preset.d.ts +32 -0
  73. package/dist/_internal/core/state/state-preset.js +37 -0
  74. package/dist/_internal/core/validation/layout-audit.d.ts +17 -0
  75. package/dist/_internal/core/validation/layout-audit.js +228 -0
  76. package/dist/_internal/core/validation/legibility.d.ts +9 -0
  77. package/dist/_internal/core/validation/legibility.js +33 -0
  78. package/dist/_internal/core/validation/validate-semantics.js +1 -1
  79. package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-canvas-bridge.d.ts +1 -1
  80. package/dist/_internal/engine/browser/controllers/dataset/designer-data-source-authoring.d.ts +1 -1
  81. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-catalog-controller.d.ts +21 -0
  82. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-controller-context.d.ts +7 -2
  83. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-draft-controller.d.ts +7 -2
  84. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-effective-value.d.ts +1 -1
  85. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-surface-controller.d.ts +1 -1
  86. package/dist/_internal/engine/browser/controllers/dataset/designer-update-policy-authoring.d.ts +1 -1
  87. package/dist/_internal/engine/browser/controllers/designer-artboard-controller.d.ts +1 -1
  88. package/dist/_internal/engine/browser/controllers/designer-canvas-runtime-controller.d.ts +2 -2
  89. package/dist/_internal/engine/browser/controllers/designer-change-controller.d.ts +27 -0
  90. package/dist/_internal/engine/browser/controllers/designer-command-palette-controller.d.ts +1 -1
  91. package/dist/_internal/engine/browser/controllers/designer-intent-controller.d.ts +5 -0
  92. package/dist/_internal/engine/browser/controllers/designer-page-preview-controller.d.ts +1 -1
  93. package/dist/_internal/engine/browser/controllers/designer-popup-preview-controller.d.ts +1 -1
  94. package/dist/_internal/engine/browser/controllers/designer-reference-layer-controller.d.ts +1 -1
  95. package/dist/_internal/engine/browser/controllers/designer-text-edit-controller.d.ts +2 -2
  96. package/dist/_internal/engine/browser/controllers/designer-viewport-controller.d.ts +7 -1
  97. package/dist/_internal/engine/browser/controllers/gesture/designer-drag-gesture.d.ts +6 -1
  98. package/dist/_internal/engine/browser/controllers/gesture/designer-gesture-callbacks.d.ts +1 -1
  99. package/dist/_internal/engine/browser/controllers/panel/designer-component-states-controller.d.ts +1 -1
  100. package/dist/_internal/engine/browser/controllers/panel/designer-panel-controller-callbacks.d.ts +6 -6
  101. package/dist/_internal/engine/browser/controllers/panel/designer-panel-property-controller.d.ts +7 -0
  102. package/dist/_internal/engine/browser/controllers/variables/designer-variable-catalog-controller.d.ts +9 -1
  103. package/dist/_internal/engine/browser/controllers/variables/designer-variable-editor-controller.d.ts +6 -1
  104. package/dist/_internal/engine/browser/controllers/variables/designer-variables-controller.d.ts +16 -1
  105. package/dist/_internal/engine/browser/controllers/workbench/designer-workbench-controller.d.ts +2 -0
  106. package/dist/_internal/engine/browser/controllers/workbench/designer-workbench-tabs-controller.d.ts +2 -0
  107. package/dist/_internal/engine/browser/dom/blueprint/designer-blueprint-inspector-configuration.d.ts +1 -1
  108. package/dist/_internal/engine/browser/dom/change/designer-change-dom.d.ts +21 -5
  109. package/dist/_internal/engine/browser/dom/color/designer-color-palette-model.d.ts +3 -3
  110. package/dist/_internal/engine/browser/dom/color/designer-color-palette-types.d.ts +2 -2
  111. package/dist/_internal/engine/browser/dom/color/designer-color-theme-slots.d.ts +1 -1
  112. package/dist/_internal/engine/browser/dom/dataset/designer-data-group-dom.d.ts +1 -1
  113. package/dist/_internal/engine/browser/dom/dataset/designer-data-panel-notice.d.ts +1 -1
  114. package/dist/_internal/engine/browser/dom/dataset/designer-data-section-diff.d.ts +4 -6
  115. package/dist/_internal/engine/browser/dom/dataset/designer-data-state.d.ts +1 -1
  116. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-authoring-dom.d.ts +1 -1
  117. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-catalog-dom.d.ts +1 -1
  118. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-sections.d.ts +1 -1
  119. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-types.d.ts +11 -4
  120. package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-control-dom.d.ts +1 -1
  121. package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-model.d.ts +1 -1
  122. package/dist/_internal/engine/browser/dom/designer-field-primitives.d.ts +1 -1
  123. package/dist/_internal/engine/browser/dom/designer-icons.d.ts +2 -0
  124. package/dist/_internal/engine/browser/dom/designer-text-edit-dom.d.ts +2 -2
  125. package/dist/_internal/engine/browser/dom/designer-variable-inspector-dom.d.ts +7 -0
  126. package/dist/_internal/engine/browser/dom/designer-variables-dom.d.ts +5 -1
  127. package/dist/_internal/engine/browser/dom/designer-variables-editor-dom.d.ts +30 -1
  128. package/dist/_internal/engine/browser/dom/designer-variables-toolbar-dom.d.ts +4 -2
  129. package/dist/_internal/engine/browser/dom/intent/designer-intent-reference-picker-dom.d.ts +2 -0
  130. package/dist/_internal/engine/browser/dom/material-library/designer-material-library-dom.d.ts +1 -1
  131. package/dist/_internal/engine/browser/dom/menu/designer-menu-model.d.ts +3 -3
  132. package/dist/_internal/engine/browser/dom/menu/designer-plugin-command-menu.d.ts +5 -2
  133. package/dist/_internal/engine/browser/dom/panel/designer-canvas-transactions.d.ts +1 -1
  134. package/dist/_internal/engine/browser/dom/panel/designer-component-states-dom.d.ts +2 -2
  135. package/dist/_internal/engine/browser/dom/panel/designer-multi-selection-dom.d.ts +1 -1
  136. package/dist/_internal/engine/browser/dom/panel/designer-panel-primitives.d.ts +2 -2
  137. package/dist/_internal/engine/browser/dom/panel/designer-property-transactions.d.ts +1 -1
  138. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-picker-dom.d.ts +1 -1
  139. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-picker-mount.d.ts +1 -1
  140. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-summary-dom.d.ts +1 -1
  141. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-types.d.ts +6 -4
  142. package/dist/_internal/engine/browser/viewport/designer-canvas-aids-types.d.ts +3 -3
  143. package/dist/_internal/engine/browser/viewport/designer-canvas-aids.d.ts +5 -3
  144. package/dist/_internal/engine/browser/viewport/designer-canvas-measurements.d.ts +2 -14
  145. package/dist/_internal/engine/browser/viewport/designer-guide-overlay-nodes.d.ts +2 -0
  146. package/dist/_internal/engine/browser/viewport/designer-snap-tuning.d.ts +14 -0
  147. package/dist/_internal/engine/common/observability/designer-metrics.d.ts +1 -1
  148. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-capabilities.d.ts +1 -1
  149. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-graph.d.ts +5 -5
  150. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-model.d.ts +1 -1
  151. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-protocol-types.d.ts +2 -2
  152. package/dist/_internal/engine/common/operations/canvas/canvas-background-image.d.ts +1 -1
  153. package/dist/_internal/engine/common/operations/catalog/designer-catalog-refresh.d.ts +1 -1
  154. package/dist/_internal/engine/common/operations/change/designer-change-events.d.ts +2 -0
  155. package/dist/_internal/engine/common/operations/change/designer-change-proposal.d.ts +35 -2
  156. package/dist/_internal/engine/common/operations/designer-clipboard.d.ts +5 -1
  157. package/dist/_internal/engine/common/operations/designer-text-edit-operations.d.ts +1 -1
  158. package/dist/_internal/engine/common/operations/designer-variable-operations.d.ts +3 -3
  159. package/dist/_internal/engine/common/operations/display/designer-target-display.d.ts +2 -2
  160. package/dist/_internal/engine/common/operations/element/designer-element-operation-types.d.ts +1 -1
  161. package/dist/_internal/engine/common/operations/intent/designer-parameter-intent.d.ts +1 -1
  162. package/dist/_internal/engine/common/operations/material-component/material-component-fragment-extract.d.ts +2 -2
  163. package/dist/_internal/engine/common/operations/material-library/material-library-fragments.d.ts +1 -1
  164. package/dist/_internal/engine/common/operations/material-library/material-library-grouping.d.ts +1 -1
  165. package/dist/_internal/engine/common/operations/plugin/designer-plugin-commands.d.ts +2 -0
  166. package/dist/_internal/engine/common/operations/selection/designer-multi-selection-operations.d.ts +9 -9
  167. package/dist/_internal/engine/common/operations/style/designer-component-states.d.ts +12 -7
  168. package/dist/_internal/engine/common/operations/style/designer-material-appearance.d.ts +1 -1
  169. package/dist/_internal/engine/common/session/designer-artboard.d.ts +1 -1
  170. package/dist/_internal/engine/common/session/designer-session.d.ts +1 -1
  171. package/dist/_internal/engine/common/ui-text/designer-blueprint-ui-text.d.ts +3 -3
  172. package/dist/_internal/engine/common/ui-text/designer-ui-text.d.ts +127 -70
  173. package/dist/_internal/engine/{designer-blueprint-workbench-panel-CJ3iZo5v.js → designer-blueprint-workbench-panel-DVvKcSvJ.js} +269 -349
  174. package/dist/_internal/engine/{designer-dataset-controller-CrfOg2Ys.js → designer-dataset-controller-bSR5OB6n.js} +1512 -1348
  175. package/dist/_internal/engine/designer-element/api/designer-element-catalog.d.ts +2 -2
  176. package/dist/_internal/engine/designer-element/api/designer-element-change.d.ts +24 -0
  177. package/dist/_internal/engine/designer-element/api/designer-element-configuration-types.d.ts +4 -4
  178. package/dist/_internal/engine/designer-element/api/designer-element-fragment-save.d.ts +2 -2
  179. package/dist/_internal/engine/designer-element/api/designer-element-host-resource-selection.d.ts +1 -1
  180. package/dist/_internal/engine/designer-element/base-screen-designer-element.d.ts +21 -9
  181. package/dist/_internal/engine/designer-element/designer-element-public-api.d.ts +2 -1
  182. package/dist/_internal/engine/designer-element/runtime/designer-element-plugin-commands.d.ts +3 -3
  183. package/dist/_internal/engine/designer-element/runtime/designer-element-rendering.d.ts +3 -3
  184. package/dist/_internal/engine/designer-element/runtime/designer-element-runtime.d.ts +4 -1
  185. package/dist/_internal/engine/designer-element/runtime/designer-element-sample-data.d.ts +23 -0
  186. package/dist/_internal/engine/designer-element/runtime/designer-element-state.d.ts +7 -7
  187. package/dist/_internal/engine/{designer-field-primitives-KBZuWN_D.js → designer-field-primitives-C_StzrUa.js} +240 -180
  188. package/dist/_internal/engine/{designer-left-panel-groups-dom-N2OHOWjl.js → designer-left-panel-groups-dom-DBpI3Nc2.js} +19 -19
  189. package/dist/_internal/engine/{host-resource-selection-xo2mLCD4.js → host-resource-selection-BCRU23WQ.js} +446 -446
  190. package/dist/_internal/engine/index.js +5477 -4677
  191. package/dist/_internal/host-kit/index.d.ts +1 -0
  192. package/dist/_internal/host-kit/index.js +1 -0
  193. package/dist/_internal/host-kit/intent/index.d.ts +17 -0
  194. package/dist/_internal/host-kit/intent/index.js +14 -0
  195. package/dist/_internal/host-kit/intent/intent-behavior.d.ts +59 -0
  196. package/dist/_internal/host-kit/intent/intent-behavior.js +812 -0
  197. package/dist/_internal/host-kit/intent/intent-block.d.ts +66 -0
  198. package/dist/_internal/host-kit/intent/intent-block.js +438 -0
  199. package/dist/_internal/host-kit/intent/intent-catalog.d.ts +108 -0
  200. package/dist/_internal/host-kit/intent/intent-catalog.js +60 -0
  201. package/dist/_internal/host-kit/intent/intent-compile-types.d.ts +222 -0
  202. package/dist/_internal/host-kit/intent/intent-compile-types.js +10 -0
  203. package/dist/_internal/host-kit/intent/intent-compile.d.ts +35 -0
  204. package/dist/_internal/host-kit/intent/intent-compile.js +465 -0
  205. package/dist/_internal/host-kit/intent/intent-data-check.d.ts +50 -0
  206. package/dist/_internal/host-kit/intent/intent-data-check.js +163 -0
  207. package/dist/_internal/host-kit/intent/intent-data-context.d.ts +53 -0
  208. package/dist/_internal/host-kit/intent/intent-data-context.js +200 -0
  209. package/dist/_internal/host-kit/intent/intent-dataset.d.ts +52 -0
  210. package/dist/_internal/host-kit/intent/intent-dataset.js +125 -0
  211. package/dist/_internal/host-kit/intent/intent-format.d.ts +33 -0
  212. package/dist/_internal/host-kit/intent/intent-format.js +94 -0
  213. package/dist/_internal/host-kit/intent/intent-freeform.d.ts +48 -0
  214. package/dist/_internal/host-kit/intent/intent-freeform.js +412 -0
  215. package/dist/_internal/host-kit/intent/intent-kpi-bind.d.ts +29 -0
  216. package/dist/_internal/host-kit/intent/intent-kpi-bind.js +59 -0
  217. package/dist/_internal/host-kit/intent/intent-layout.d.ts +102 -0
  218. package/dist/_internal/host-kit/intent/intent-layout.js +264 -0
  219. package/dist/_internal/host-kit/intent/intent-parse.d.ts +41 -0
  220. package/dist/_internal/host-kit/intent/intent-parse.js +931 -0
  221. package/dist/_internal/host-kit/intent/intent-prepare.d.ts +55 -0
  222. package/dist/_internal/host-kit/intent/intent-prepare.js +156 -0
  223. package/dist/_internal/host-kit/intent/intent-session.d.ts +202 -0
  224. package/dist/_internal/host-kit/intent/intent-session.js +1001 -0
  225. package/dist/_internal/host-kit/intent/intent-stream.d.ts +28 -0
  226. package/dist/_internal/host-kit/intent/intent-stream.js +183 -0
  227. package/dist/_internal/host-kit/intent/intent-style.d.ts +37 -0
  228. package/dist/_internal/host-kit/intent/intent-style.js +77 -0
  229. package/dist/_internal/host-kit/intent/intent-types.d.ts +277 -0
  230. package/dist/_internal/host-kit/intent/intent-types.js +10 -0
  231. package/dist/_internal/host-kit/push-result.d.ts +1 -1
  232. package/dist/_internal/host-kit/push-result.js +1 -1
  233. package/dist/_internal/host-kit/sse-subscribe.d.ts +1 -1
  234. package/dist/_internal/host-kit/sse-subscribe.js +1 -1
  235. package/dist/_internal/host-kit/subscription-hub.d.ts +3 -3
  236. package/dist/_internal/host-kit/subscription-hub.js +1 -1
  237. package/dist/_internal/material/base-material.d.ts +3 -3
  238. package/dist/_internal/material/chart.js +34 -12
  239. package/dist/_internal/material/editor-descriptor.d.ts +3 -3
  240. package/dist/_internal/material/table.js +52 -21
  241. package/dist/_internal/plugin-core/contracts.d.ts +18 -16
  242. package/dist/_internal/plugin-core/contracts.js +1 -0
  243. package/dist/_internal/plugin-core/contribution-kind.d.ts +5 -5
  244. package/dist/_internal/plugin-core/contribution-kind.js +14 -6
  245. package/dist/_internal/plugin-core/editor/editor-descriptor-inference.d.ts +1 -1
  246. package/dist/_internal/plugin-core/editor/editor-descriptor-inference.js +2 -2
  247. package/dist/_internal/plugin-core/editor/editor-descriptor-items.d.ts +1 -1
  248. package/dist/_internal/plugin-core/editor/editor-descriptor-items.js +1 -1
  249. package/dist/_internal/plugin-core/editor/editor-descriptor-model.d.ts +2 -2
  250. package/dist/_internal/plugin-core/editor/editor-descriptor.js +1 -1
  251. package/dist/_internal/plugin-core/fragment/fragment.d.ts +4 -4
  252. package/dist/_internal/plugin-core/fragment/fragment.js +1 -1
  253. package/dist/_internal/plugin-core/material/material-manifest-fields.js +1 -1
  254. package/dist/_internal/plugin-core/material/material-manifest.js +1 -1
  255. package/dist/_internal/plugin-core/material/material-theme.d.ts +2 -2
  256. package/dist/_internal/plugin-core/material/material-theme.js +2 -2
  257. package/dist/_internal/plugin-manager/contribution-kind-plan.d.ts +5 -1
  258. package/dist/_internal/plugin-manager/contribution-kind-plan.js +20 -12
  259. package/dist/_internal/plugin-manager/manager.js +47 -30
  260. package/dist/_internal/plugin-manager/resolver.js +7 -13
  261. package/dist/_internal/plugin-manager/types.d.ts +2 -2
  262. package/dist/_internal/plugin-sdk/authoring-finding.d.ts +3 -3
  263. package/dist/_internal/plugin-sdk/fragment-audit.d.ts +6 -6
  264. package/dist/_internal/plugin-sdk/fragment-audit.js +8 -8
  265. package/dist/_internal/plugin-sdk/fragment-definition.d.ts +3 -3
  266. package/dist/_internal/plugin-sdk/fragment-definition.js +3 -3
  267. package/dist/_internal/plugin-sdk/index.d.ts +6 -0
  268. package/dist/_internal/plugin-sdk/index.js +6 -0
  269. package/dist/_internal/plugin-sdk/material-config-groups.d.ts +2 -2
  270. package/dist/_internal/plugin-sdk/material-definition.d.ts +5 -1
  271. package/dist/_internal/plugin-sdk/material-definition.js +3 -3
  272. package/dist/_internal/plugin-sdk/material-editor-audit.d.ts +9 -8
  273. package/dist/_internal/plugin-sdk/material-editor-audit.js +19 -11
  274. package/dist/_internal/plugin-sdk/material-isolated-csp.d.ts +38 -0
  275. package/dist/_internal/plugin-sdk/material-isolated-csp.js +67 -0
  276. package/dist/_internal/plugin-sdk/material-isolated-runtime.d.ts +22 -0
  277. package/dist/_internal/plugin-sdk/material-isolated-runtime.js +262 -0
  278. package/dist/_internal/plugin-sdk/material-isolated.d.ts +94 -0
  279. package/dist/_internal/plugin-sdk/material-isolated.js +1044 -0
  280. package/dist/_internal/plugin-sdk/material-package.d.ts +3 -3
  281. package/dist/_internal/plugin-sdk/material-package.js +7 -7
  282. package/dist/_internal/plugin-sdk/material-rendered-element.d.ts +22 -7
  283. package/dist/_internal/plugin-sdk/material-rendered-element.js +103 -10
  284. package/dist/_internal/plugin-sdk/material-spec-audit.d.ts +20 -10
  285. package/dist/_internal/plugin-sdk/material-spec-audit.js +108 -22
  286. package/dist/_internal/plugin-sdk/material-spec.d.ts +81 -16
  287. package/dist/_internal/plugin-sdk/material-spec.js +241 -42
  288. package/dist/_internal/plugin-sdk/material-style-keys.d.ts +6 -6
  289. package/dist/_internal/plugin-sdk/material-style-keys.js +7 -7
  290. package/dist/_internal/plugin-sdk/material-template-audit.d.ts +12 -0
  291. package/dist/_internal/plugin-sdk/material-template-audit.js +302 -0
  292. package/dist/_internal/plugin-sdk/material-template-expression.d.ts +98 -0
  293. package/dist/_internal/plugin-sdk/material-template-expression.js +549 -0
  294. package/dist/_internal/plugin-sdk/material-template-render.d.ts +32 -0
  295. package/dist/_internal/plugin-sdk/material-template-render.js +579 -0
  296. package/dist/_internal/plugin-sdk/material-template.d.ts +185 -0
  297. package/dist/_internal/plugin-sdk/material-template.js +879 -0
  298. package/dist/_internal/plugin-sdk/plugin-package.d.ts +2 -2
  299. package/dist/_internal/plugin-sdk/plugin-package.js +3 -3
  300. package/dist/_internal/plugin-sdk/plugin-registration.d.ts +2 -5
  301. package/dist/_internal/plugin-sdk/plugin-registration.js +3 -3
  302. package/dist/_internal/renderer/renderer/renderer-candidates.d.ts +1 -1
  303. package/dist/_internal/renderer/renderer/renderer-component-states.d.ts +1 -1
  304. package/dist/_internal/renderer/renderer/renderer-effective-style.d.ts +1 -1
  305. package/dist/_internal/renderer/renderer/renderer-material-dom.d.ts +1 -1
  306. package/dist/_internal/renderer/renderer/renderer-state.d.ts +2 -2
  307. package/dist/_internal/renderer/renderer/renderer-theme.d.ts +1 -1
  308. package/dist/_internal/renderer/renderer/renderer-types.d.ts +1 -1
  309. package/dist/_internal/renderer/renderer/renderer.d.ts +5 -5
  310. package/dist/_internal/renderer/resource/data-source-runtime.d.ts +3 -3
  311. package/dist/_internal/renderer/resource/push-window.d.ts +1 -1
  312. package/dist/_internal/renderer/resource/request-coordinator.d.ts +1 -1
  313. package/dist/_internal/renderer/resource/source-query-port.d.ts +3 -3
  314. package/dist/_internal/renderer/sub-canvas-layer.d.ts +2 -2
  315. package/dist/_internal/renderer/viewer/viewer-configuration.d.ts +1 -1
  316. package/dist/_internal/renderer/viewer/viewer.d.ts +3 -3
  317. package/dist/auto-register.js +10 -10
  318. package/dist/contracts.js +5 -5
  319. package/dist/contracts.js.map +1 -1
  320. package/dist/contrast-DRPezUIl.js +131 -0
  321. package/dist/contrast-DRPezUIl.js.map +1 -0
  322. package/dist/core.js +156 -136
  323. package/dist/core.js.map +1 -1
  324. package/dist/dataset-port-D993nOlT.js.map +1 -1
  325. package/dist/dataset-profile-Dk6xdtsM.js +261 -0
  326. package/dist/dataset-profile-Dk6xdtsM.js.map +1 -0
  327. package/dist/{designer-3Tb0EIDV.js → designer-DzBm8tXS.js} +2 -2
  328. package/dist/{designer-3Tb0EIDV.js.map → designer-DzBm8tXS.js.map} +1 -1
  329. package/dist/designer-auto-register.js +5 -5
  330. package/dist/{designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js → designer-blueprint-workbench-panel-DVvKcSvJ-CkRMBKZA.js} +452 -531
  331. package/dist/designer-blueprint-workbench-panel-DVvKcSvJ-CkRMBKZA.js.map +1 -0
  332. package/dist/{designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js → designer-dataset-controller-bSR5OB6n-DfUP24S6.js} +1355 -1191
  333. package/dist/designer-dataset-controller-bSR5OB6n-DfUP24S6.js.map +1 -0
  334. package/dist/{designer-field-primitives-KBZuWN_D-B3h4jpYe.js → designer-field-primitives-C_StzrUa-QZpcn0yX.js} +241 -181
  335. package/dist/designer-field-primitives-C_StzrUa-QZpcn0yX.js.map +1 -0
  336. package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js → designer-left-panel-groups-dom-DBpI3Nc2-D8kYJLCg.js} +18 -18
  337. package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js.map → designer-left-panel-groups-dom-DBpI3Nc2-D8kYJLCg.js.map} +1 -1
  338. package/dist/designer.js +5 -5
  339. package/dist/{dist-6GRboBs-.js → dist-B2bW2Tru.js} +4 -4
  340. package/dist/{dist-6GRboBs-.js.map → dist-B2bW2Tru.js.map} +1 -1
  341. package/dist/{dist-BjLjFUy1.js → dist-YCmniYuO.js} +5636 -4838
  342. package/dist/dist-YCmniYuO.js.map +1 -0
  343. package/dist/engine.js +5 -5
  344. package/dist/{fragment-Y6YnW6wy.js → fragment-B-oP0Fru.js} +3 -3
  345. package/dist/fragment-B-oP0Fru.js.map +1 -0
  346. package/dist/host-kit.js +4388 -187
  347. package/dist/host-kit.js.map +1 -1
  348. package/dist/{host-resource-selection-xo2mLCD4-BR5XCcim.js → host-resource-selection-BCRU23WQ-Cedz0d14.js} +208 -208
  349. package/dist/host-resource-selection-BCRU23WQ-Cedz0d14.js.map +1 -0
  350. package/dist/image-url-D6mUcjY1.js.map +1 -1
  351. package/dist/index.js +10 -10
  352. package/dist/legibility-CS28ivEz.js +12 -0
  353. package/dist/legibility-CS28ivEz.js.map +1 -0
  354. package/dist/{level-scale-BzUjE31V.js → level-scale-CwHqFEVd.js} +2 -2
  355. package/dist/level-scale-CwHqFEVd.js.map +1 -0
  356. package/dist/{manager-Ch0RTu_i.js → manager-BcvdcZjM.js} +230 -210
  357. package/dist/manager-BcvdcZjM.js.map +1 -0
  358. package/dist/{material-UbSfiuZq.js → material-ReRzBIbb.js} +2 -2
  359. package/dist/{material-UbSfiuZq.js.map → material-ReRzBIbb.js.map} +1 -1
  360. package/dist/material-auto-register.js +1 -1
  361. package/dist/{material-definition-BeW34dJr.js → material-definition-BcjFM-B-.js} +9 -9
  362. package/dist/material-definition-BcjFM-B-.js.map +1 -0
  363. package/dist/material-manifest-B1XatGPx.js.map +1 -1
  364. package/dist/material-theme-C91eus78.js.map +1 -1
  365. package/dist/material.js +2 -2
  366. package/dist/{migrate-document-D3HhCVlZ.js → migrate-document-BM888PtC.js} +2 -2
  367. package/dist/migrate-document-BM888PtC.js.map +1 -0
  368. package/dist/{parse-B1OD1teS.js → parse-1U_-Qtn4.js} +4 -4
  369. package/dist/parse-1U_-Qtn4.js.map +1 -0
  370. package/dist/{parse-AOTE9WnD.js → parse-Ji7kE9ZT.js} +9 -4
  371. package/dist/parse-Ji7kE9ZT.js.map +1 -0
  372. package/dist/{parse-parts-BNrpdG5o.js → parse-parts-qzl4suzk.js} +2 -2
  373. package/dist/{parse-parts-BNrpdG5o.js.map → parse-parts-qzl4suzk.js.map} +1 -1
  374. package/dist/{plugin-DHgh9uHh.js → plugin-BH-4oNvT.js} +63 -55
  375. package/dist/plugin-BH-4oNvT.js.map +1 -0
  376. package/dist/plugin-core.js +2 -2
  377. package/dist/plugin-manager.js +1 -1
  378. package/dist/plugin-package-Cj-3iLv3.js +4369 -0
  379. package/dist/plugin-package-Cj-3iLv3.js.map +1 -0
  380. package/dist/{plugin-registration-rsmb4GvS.js → plugin-registration-C9_IxTxc.js} +9 -9
  381. package/dist/{plugin-registration-rsmb4GvS.js.map → plugin-registration-C9_IxTxc.js.map} +1 -1
  382. package/dist/plugin-sdk.js +6 -6
  383. package/dist/{plugins-DGRHgREK.js → plugins-CwATlfr0.js} +2 -2
  384. package/dist/{plugins-DGRHgREK.js.map → plugins-CwATlfr0.js.map} +1 -1
  385. package/dist/plugins.js +8 -8
  386. package/dist/renderer.js +1 -1
  387. package/dist/{runtime-dispatch-BfnRDtMe.js → runtime-dispatch-C0gyIrTv.js} +2 -2
  388. package/dist/runtime-dispatch-C0gyIrTv.js.map +1 -0
  389. package/dist/runtime-simulate-aSYO9yDX.js +147 -0
  390. package/dist/runtime-simulate-aSYO9yDX.js.map +1 -0
  391. package/dist/{src-Bm7u11mN-_0u6cMEw.js → src-Bm7u11mN-DFLnFQSk.js} +39 -39
  392. package/dist/{src-Bm7u11mN-_0u6cMEw.js.map → src-Bm7u11mN-DFLnFQSk.js.map} +1 -1
  393. package/dist/state-preset-DtpygJOH.js +22 -0
  394. package/dist/state-preset-DtpygJOH.js.map +1 -0
  395. package/dist/{text-BNksUr5J.js → text-DfKom8EG.js} +88 -35
  396. package/dist/text-DfKom8EG.js.map +1 -0
  397. package/dist/theme-CcBXf4Ay.js.map +1 -1
  398. package/dist/{value-ref-BG_MV9C-.js → value-ref-XkLuckGV.js} +2 -2
  399. package/dist/{value-ref-BG_MV9C-.js.map → value-ref-XkLuckGV.js.map} +1 -1
  400. package/dist/{viewer-CrJupI8I-D9dVcNw4.js → viewer-CrJupI8I-CeQS58mA.js} +5 -5
  401. package/dist/{viewer-CrJupI8I-D9dVcNw4.js.map → viewer-CrJupI8I-CeQS58mA.js.map} +1 -1
  402. package/dist/viewer-auto-register.js +2 -2
  403. package/dist/viewer.js +2 -2
  404. package/dist/{viewport-CiCKeAQH.js → viewport-BNIRWjiT.js} +354 -155
  405. package/dist/viewport-BNIRWjiT.js.map +1 -0
  406. package/package.json +12 -12
  407. package/dist/designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js.map +0 -1
  408. package/dist/designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js.map +0 -1
  409. package/dist/designer-field-primitives-KBZuWN_D-B3h4jpYe.js.map +0 -1
  410. package/dist/dist-BjLjFUy1.js.map +0 -1
  411. package/dist/fragment-Y6YnW6wy.js.map +0 -1
  412. package/dist/host-resource-selection-xo2mLCD4-BR5XCcim.js.map +0 -1
  413. package/dist/level-scale-BzUjE31V.js.map +0 -1
  414. package/dist/manager-Ch0RTu_i.js.map +0 -1
  415. package/dist/material-definition-BeW34dJr.js.map +0 -1
  416. package/dist/migrate-document-D3HhCVlZ.js.map +0 -1
  417. package/dist/parse-AOTE9WnD.js.map +0 -1
  418. package/dist/parse-B1OD1teS.js.map +0 -1
  419. package/dist/plugin-DHgh9uHh.js.map +0 -1
  420. package/dist/plugin-package-Dr5ro6h6.js +0 -1221
  421. package/dist/plugin-package-Dr5ro6h6.js.map +0 -1
  422. package/dist/runtime-dispatch-BfnRDtMe.js.map +0 -1
  423. package/dist/text-BNksUr5J.js.map +0 -1
  424. package/dist/viewport-CiCKeAQH.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { m as e } from "./image-url-D6mUcjY1.js";
2
- import { jt as t } from "./parse-AOTE9WnD.js";
3
- import { i as n, n as r, r as i, t as a } from "./catalog-BHp6jn2A.js";
4
- import { a as o, c as s, i as c, l, o as u, r as d, s as f, t as ee } from "./plugin-DHgh9uHh.js";
5
- import { t as p } from "./material-manifest-B1XatGPx.js";
1
+ import { i as e, m as t } from "./image-url-D6mUcjY1.js";
2
+ import { jt as n } from "./parse-Ji7kE9ZT.js";
3
+ import { i as r, n as i, r as a, t as o } from "./catalog-BHp6jn2A.js";
4
+ import { a as s, c, i as l, l as u, o as d, r as f, s as p, t as ee } from "./plugin-BH-4oNvT.js";
5
+ import { t as m } from "./material-manifest-B1XatGPx.js";
6
6
  //#region ../plugin-manager/dist/contribution-command-port.js
7
- function m(e) {
7
+ function h(e) {
8
8
  return Object.freeze({ execute(t) {
9
9
  return e.executeContributionCommand(t);
10
10
  } });
11
11
  }
12
12
  //#endregion
13
13
  //#region ../plugin-manager/dist/contribution-kind-plan.js
14
- var h = {
14
+ var g = {
15
15
  material: {},
16
16
  command: {},
17
17
  dataResourceType: { index(e, t) {
@@ -23,9 +23,13 @@ var h = {
23
23
  t.blueprintActions.set(e.id, e);
24
24
  }
25
25
  },
26
- dataProcessor: { index(e, t) {
27
- t.dataProcessors.set(e.id, e);
28
- } },
26
+ dataProcessor: {
27
+ requiresGrant: !0,
28
+ requiredCapability: "data.process",
29
+ index(e, t) {
30
+ t.dataProcessors.set(e.id, e);
31
+ }
32
+ },
29
33
  blueprintCapability: {
30
34
  requiresGrant: !0,
31
35
  index(e, t) {
@@ -38,24 +42,30 @@ var h = {
38
42
  t.fragments.set(e.id, e);
39
43
  } }
40
44
  };
41
- function g(e) {
42
- return h[e.kind];
45
+ function _(e) {
46
+ return g[e.kind];
47
+ }
48
+ function v(e) {
49
+ let t = _(e);
50
+ if (t.requiredCapability !== void 0) return t.requiredCapability;
51
+ let n = l(e.kind);
52
+ if (n !== void 0) {
53
+ let t = e[n];
54
+ if (typeof t == "string") return t;
55
+ }
56
+ return e.kind === "blueprintCapability" ? e.id : void 0;
43
57
  }
44
58
  function te(e, t, n) {
45
- let r = g(e);
59
+ let r = _(e);
46
60
  r.index !== void 0 && (r.requiresGrant === !0 && !ne(e, t) || r.index(e, n));
47
61
  }
48
62
  function ne(e, t) {
49
- let n = e.requiredCapability;
50
- return typeof n == "string" ? t.includes(n) : t.includes(_(e));
51
- }
52
- function _(e) {
53
- let t = e;
54
- return typeof t.id == "string" ? t.id : "";
63
+ let n = v(e);
64
+ return n !== void 0 && t.includes(n);
55
65
  }
56
66
  //#endregion
57
67
  //#region ../plugin-manager/dist/contributions.js
58
- function v(e) {
68
+ function y(e) {
59
69
  let t = {
60
70
  resourceTypes: /* @__PURE__ */ new Map(),
61
71
  blueprintActions: /* @__PURE__ */ new Map(),
@@ -97,10 +107,10 @@ function v(e) {
97
107
  }
98
108
  //#endregion
99
109
  //#region ../plugin-manager/dist/diagnostics.js
100
- var y = 100, b = class {
110
+ var b = 100, x = class {
101
111
  #e = [];
102
112
  add(e, t, n) {
103
- this.#e.length < y && this.#e.push({
113
+ this.#e.length < b && this.#e.push({
104
114
  severity: "error",
105
115
  code: e,
106
116
  path: t,
@@ -116,14 +126,14 @@ var y = 100, b = class {
116
126
  failure() {
117
127
  return {
118
128
  ok: !1,
119
- diagnostics: S(this.#e)
129
+ diagnostics: C(this.#e)
120
130
  };
121
131
  }
122
132
  };
123
- function x(e, t, n) {
133
+ function S(e, t, n) {
124
134
  return {
125
135
  ok: !1,
126
- diagnostics: S([{
136
+ diagnostics: C([{
127
137
  severity: "error",
128
138
  code: e,
129
139
  path: t,
@@ -131,9 +141,9 @@ function x(e, t, n) {
131
141
  }])
132
142
  };
133
143
  }
134
- function S(t) {
135
- let n = e(t);
136
- return n.length < y ? n : [...n.slice(0, 99), {
144
+ function C(e) {
145
+ let n = t(e);
146
+ return n.length < b ? n : [...n.slice(0, 99), {
137
147
  severity: "error",
138
148
  code: "DIAGNOSTIC_LIMIT_REACHED",
139
149
  path: [],
@@ -144,12 +154,12 @@ function S(t) {
144
154
  //#region ../plugin-manager/dist/input.js
145
155
  var re = 128, ie = 512;
146
156
  function ae(e) {
147
- let t = new b();
148
- if (!T(e)) return t.add("PLUGIN_CORE_MANIFEST_NOT_OBJECT", [], "Manager options must be an object."), t.failure();
157
+ let t = new x();
158
+ if (!O(e)) return t.add("PLUGIN_CORE_MANIFEST_NOT_OBJECT", [], "Manager options must be an object."), t.failure();
149
159
  try {
150
- let n = oe(e, t);
160
+ let n = w(e, t);
151
161
  if (n === void 0) return t.failure();
152
- let r = C(n.standaloneMaterialTagNames, ["standaloneMaterialTagNames"], ie, t), i = w(n.plugins, ["plugins"], re, t), a = se(n.grantedCapabilities, t), o = ce(n.registry, t), s = n.instanceId;
162
+ let r = E(n.standaloneMaterialTagNames, ["standaloneMaterialTagNames"], ie, t), i = D(n.plugins, ["plugins"], re, t), a = T(n.grantedCapabilities, t), o = oe(n.registry, t), s = n.instanceId;
153
163
  (typeof s != "string" || s.length === 0 || s.length > 128) && t.add("PLUGIN_CORE_IDENTITY_INVALID", ["instanceId"], "Instance id is invalid."), n.createCommandPort !== void 0 && typeof n.createCommandPort != "function" && t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["createCommandPort"], "Command port factory is invalid."), n.createDesignReadPort !== void 0 && typeof n.createDesignReadPort != "function" && t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["createDesignReadPort"], "Design read port factory is invalid.");
154
164
  let c = n.activation === void 0 || n.activation === "eager" ? "eager" : "lazy";
155
165
  return n.activation !== void 0 && c !== n.activation && t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["activation"], "Activation must be \"eager\" or \"lazy\"."), t.hasErrors || r === void 0 || i === void 0 || a === void 0 || o === void 0 ? t.failure() : {
@@ -171,7 +181,7 @@ function ae(e) {
171
181
  return t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", [], "Manager options cannot be safely read."), t.failure();
172
182
  }
173
183
  }
174
- function oe(e, t) {
184
+ function w(e, t) {
175
185
  let n = [
176
186
  "instanceId",
177
187
  "standaloneMaterialTagNames",
@@ -190,8 +200,8 @@ function oe(e, t) {
190
200
  let o = Object.getOwnPropertyDescriptor(e, "activation");
191
201
  return o !== void 0 && !Object.hasOwn(o, "value") ? t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["activation"], "Manager option must be an own data property.") : r.activation = o?.value, t.hasErrors ? void 0 : r;
192
202
  }
193
- function se(e, t) {
194
- if (!T(e)) {
203
+ function T(e, t) {
204
+ if (!O(e)) {
195
205
  t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["grantedCapabilities"], "Granted capabilities must be an object.");
196
206
  return;
197
207
  }
@@ -202,13 +212,13 @@ function se(e, t) {
202
212
  t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["grantedCapabilities", r], "Capability grant must be data.");
203
213
  continue;
204
214
  }
205
- let a = C(i.value, ["grantedCapabilities", r], 128, t);
206
- a !== void 0 && n.set(r, Object.freeze(a.sort(E)));
215
+ let a = E(i.value, ["grantedCapabilities", r], 128, t);
216
+ a !== void 0 && n.set(r, Object.freeze(a.sort(se)));
207
217
  }
208
218
  return t.hasErrors ? void 0 : n;
209
219
  }
210
- function ce(e, t) {
211
- if (!T(e)) {
220
+ function oe(e, t) {
221
+ if (!O(e)) {
212
222
  t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["registry"], "Registry port is invalid.");
213
223
  return;
214
224
  }
@@ -222,8 +232,8 @@ function ce(e, t) {
222
232
  get: n.value.bind(e)
223
233
  };
224
234
  }
225
- function C(e, t, n, r) {
226
- let i = w(e, t, n, r);
235
+ function E(e, t, n, r) {
236
+ let i = D(e, t, n, r);
227
237
  if (i !== void 0) {
228
238
  if (i.some((e) => typeof e != "string")) {
229
239
  r.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", t, "Expected a string array.");
@@ -232,7 +242,7 @@ function C(e, t, n, r) {
232
242
  return i;
233
243
  }
234
244
  }
235
- function w(e, t, n, r) {
245
+ function D(e, t, n, r) {
236
246
  if (!Array.isArray(e)) {
237
247
  r.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", t, "Expected an array.");
238
248
  return;
@@ -252,15 +262,15 @@ function w(e, t, n, r) {
252
262
  }
253
263
  return r.hasErrors ? void 0 : i;
254
264
  }
255
- function T(e) {
265
+ function O(e) {
256
266
  return typeof e == "object" && !!e && !Array.isArray(e);
257
267
  }
258
- function E(e, t) {
268
+ function se(e, t) {
259
269
  return e < t ? -1 : +(e > t);
260
270
  }
261
271
  //#endregion
262
272
  //#region ../plugin-manager/dist/registry.js
263
- function D(e, t, n) {
273
+ function ce(e, t, n) {
264
274
  let r = fe(e, t), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
265
275
  for (let t of r) {
266
276
  let r = pe(e, t, n);
@@ -303,7 +313,7 @@ function le(e, t, n) {
303
313
  "manifest",
304
314
  "contributions",
305
315
  e
306
- ], c = O(t, o.tagName, s, n, "Panel tag is not registered.");
316
+ ], c = k(t, o.tagName, s, n, "Panel tag is not registered.");
307
317
  if (c === void 0) continue;
308
318
  let l = i.get(o.tagName);
309
319
  if (l !== void 0 && l !== o.id) {
@@ -329,7 +339,7 @@ function ue(e, t, n) {
329
339
  "manifest",
330
340
  "contributions",
331
341
  e
332
- ], c = O(t, o.tagName, s, n, "Inspector control tag is not registered.");
342
+ ], c = k(t, o.tagName, s, n, "Inspector control tag is not registered.");
333
343
  if (c === void 0) continue;
334
344
  let l = i.get(o.tagName);
335
345
  if (l !== void 0 && l !== o.id) {
@@ -344,7 +354,7 @@ function ue(e, t, n) {
344
354
  }
345
355
  return [...r.values()];
346
356
  }
347
- function O(e, t, n, r, i) {
357
+ function k(e, t, n, r, i) {
348
358
  let a;
349
359
  try {
350
360
  a = e(t);
@@ -383,8 +393,8 @@ function fe(e, t) {
383
393
  ]
384
394
  }] : []));
385
395
  return [...n, ...r].sort((e, t) => {
386
- let n = k(e.tagName, t.tagName);
387
- return n === 0 ? k(e.type ?? "", t.type ?? "") : n;
396
+ let n = A(e.tagName, t.tagName);
397
+ return n === 0 ? A(e.type ?? "", t.type ?? "") : n;
388
398
  });
389
399
  }
390
400
  function pe(e, t, n) {
@@ -407,7 +417,7 @@ function me(e, t, n) {
407
417
  n.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", t.path, "Material constructor manifest is invalid.");
408
418
  return;
409
419
  }
410
- let i = p(r.value);
420
+ let i = m(r.value);
411
421
  if (!i.ok) {
412
422
  for (let e of i.diagnostics) n.add(e.code, [...t.path, ...e.path], e.message);
413
423
  return;
@@ -418,12 +428,12 @@ function me(e, t, n) {
418
428
  return;
419
429
  }
420
430
  }
421
- function k(e, t) {
431
+ function A(e, t) {
422
432
  return e < t ? -1 : +(e > t);
423
433
  }
424
434
  //#endregion
425
435
  //#region ../plugin-manager/dist/resolver.js
426
- var he = 16384, A = Object.freeze([
436
+ var he = 16384, ge = Object.freeze([
427
437
  {
428
438
  id: "command.execute",
429
439
  port: "command"
@@ -434,13 +444,13 @@ var he = 16384, A = Object.freeze([
434
444
  },
435
445
  { id: "data.process" },
436
446
  { id: "blueprint.action.execute" },
437
- ...t.map((e) => ({
447
+ ...n.map((e) => ({
438
448
  id: e,
439
449
  blueprint: !0
440
450
  }))
441
- ]), j = new Map(A.map((e) => [e.id, e]));
442
- function M(e, t) {
443
- let n = [...e].sort(I), r = /* @__PURE__ */ new Map(), i = [];
451
+ ]), j = new Map(ge.map((e) => [e.id, e]));
452
+ function _e(e, t) {
453
+ let n = [...e].sort(P), r = /* @__PURE__ */ new Map(), i = [];
444
454
  for (let e of n) {
445
455
  if (r.has(e.manifest.id)) {
446
456
  t.add("PLUGIN_CORE_IDENTITY_CONFLICT", [
@@ -453,7 +463,7 @@ function M(e, t) {
453
463
  }
454
464
  r.set(e.manifest.id, e), i.push(e);
455
465
  }
456
- F(i, t);
466
+ N(i, t);
457
467
  let a = 0, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
458
468
  for (let e of i) {
459
469
  o.set(e.manifest.id, e);
@@ -484,11 +494,11 @@ function M(e, t) {
484
494
  let e = s.get(t) - 1;
485
495
  s.set(t, e);
486
496
  let n = o.get(t);
487
- e === 0 && n !== void 0 && !l.has(t) && (d.push(n), d.sort(I));
497
+ e === 0 && n !== void 0 && !l.has(t) && (d.push(n), d.sort(P));
488
498
  }
489
499
  }
490
500
  }
491
- for (let e of [...o.values()].sort(I)) l.has(e.manifest.id) || t.add("PLUGIN_CORE_DEPENDENCY_CYCLE", [
501
+ for (let e of [...o.values()].sort(P)) l.has(e.manifest.id) || t.add("PLUGIN_CORE_DEPENDENCY_CYCLE", [
492
502
  "plugins",
493
503
  e.index,
494
504
  "manifest",
@@ -496,7 +506,7 @@ function M(e, t) {
496
506
  ], "Plugin dependency graph contains a cycle.");
497
507
  return u;
498
508
  }
499
- function N(e, t, n) {
509
+ function ve(e, t, n) {
500
510
  let r = /* @__PURE__ */ new Map();
501
511
  for (let i of e) {
502
512
  let e = new Set(t.grantedCapabilities.get(i.manifest.id) ?? []), a = [];
@@ -507,7 +517,7 @@ function N(e, t, n) {
507
517
  i.index,
508
518
  "manifest",
509
519
  "capabilities"
510
- ], "Plugin capability is not supported by this host.") : o.port !== void 0 && !P(t, o.port) ? n.add("PLUGIN_CORE_CAPABILITY_INCOMPATIBLE", [
520
+ ], "Plugin capability is not supported by this host.") : o.port !== void 0 && !M(t, o.port) ? n.add("PLUGIN_CORE_CAPABILITY_INCOMPATIBLE", [
511
521
  "plugins",
512
522
  i.index,
513
523
  "manifest",
@@ -519,17 +529,17 @@ function N(e, t, n) {
519
529
  "capabilities"
520
530
  ], "Plugin capability is not approved by the host.");
521
531
  }
522
- r.set(i, Object.freeze(a.sort(L)));
532
+ r.set(i, Object.freeze(a.sort(F)));
523
533
  }
524
534
  return r;
525
535
  }
526
- function P(e, t) {
536
+ function M(e, t) {
527
537
  switch (t) {
528
538
  case "command": return e.createCommandPort !== void 0;
529
539
  case "design": return e.createDesignReadPort !== void 0;
530
540
  }
531
541
  }
532
- function F(e, t) {
542
+ function N(e, t) {
533
543
  let n = /* @__PURE__ */ new Set();
534
544
  for (let r of e) {
535
545
  let e = r.manifest.capabilities;
@@ -540,28 +550,24 @@ function F(e, t) {
540
550
  "manifest",
541
551
  "contributions",
542
552
  i
543
- ], s = u(a);
553
+ ], s = d(a);
544
554
  if (s === void 0) continue;
545
555
  n.has(s) && t.add(a.kind === "material" ? "PLUGIN_CORE_IDENTITY_CONFLICT" : "PLUGIN_CORE_CONTRIBUTION_CONFLICT", o, "Contribution identity conflicts with another plugin."), n.add(s);
546
- let l = c(a.kind);
547
- if (l !== void 0) {
548
- let n = a[l];
549
- typeof n == "string" && !e.includes(n) && t.add("PLUGIN_CORE_CAPABILITY_UNDECLARED", o, "Contribution requires an undeclared capability.");
550
- }
551
- a.kind === "blueprintCapability" && (j.get(a.id)?.blueprint !== !0 && t.add("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", o, "Blueprint contribution is not supported by this host."), e.includes(a.id) || t.add("PLUGIN_CORE_CAPABILITY_UNDECLARED", o, "Blueprint contribution requires a declared capability."));
556
+ let c = v(a);
557
+ c !== void 0 && !e.includes(c) && t.add("PLUGIN_CORE_CAPABILITY_UNDECLARED", o, "Contribution requires an undeclared capability."), a.kind === "blueprintCapability" && j.get(a.id)?.blueprint !== !0 && t.add("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", o, "Blueprint contribution is not supported by this host.");
552
558
  }
553
559
  }
554
560
  }
555
- function I(e, t) {
556
- return L(e.manifest.id, t.manifest.id) || e.index - t.index;
561
+ function P(e, t) {
562
+ return F(e.manifest.id, t.manifest.id) || e.index - t.index;
557
563
  }
558
- function L(e, t) {
564
+ function F(e, t) {
559
565
  return e < t ? -1 : +(e > t);
560
566
  }
561
567
  //#endregion
562
568
  //#region ../plugin-manager/dist/session.js
563
- function R(e, t, n) {
564
- let r = !0, i = n.includes("command.execute") ? ge(e, t, () => r) : void 0, a = n.includes("design.read") ? z(e, t, () => r) : void 0;
569
+ function ye(e, t, n) {
570
+ let r = !0, i = n.includes("command.execute") ? be(e, t, () => r) : void 0, a = n.includes("design.read") ? xe(e, t, () => r) : void 0;
565
571
  return {
566
572
  context: Object.freeze({
567
573
  instanceId: e.instanceId,
@@ -578,7 +584,7 @@ function R(e, t, n) {
578
584
  }
579
585
  };
580
586
  }
581
- function ge(e, t, n) {
587
+ function be(e, t, n) {
582
588
  let r = e.createCommandPort({
583
589
  instanceId: e.instanceId,
584
590
  pluginId: t.manifest.id
@@ -586,10 +592,10 @@ function ge(e, t, n) {
586
592
  if (typeof r != "object" || !r || typeof Object.getOwnPropertyDescriptor(r, "execute")?.value != "function") throw TypeError("Command port factory returned an invalid port.");
587
593
  let i = Object.getOwnPropertyDescriptor(r, "execute").value;
588
594
  return Object.freeze({ async execute(e) {
589
- return n() ? i.call(r, e) : x("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
595
+ return n() ? i.call(r, e) : S("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
590
596
  } });
591
597
  }
592
- function z(e, t, n) {
598
+ function xe(e, t, n) {
593
599
  let r = e.createDesignReadPort({
594
600
  instanceId: e.instanceId,
595
601
  pluginId: t.manifest.id
@@ -597,22 +603,22 @@ function z(e, t, n) {
597
603
  if (typeof r != "object" || !r || typeof Object.getOwnPropertyDescriptor(r, "read")?.value != "function") throw TypeError("Design read port factory returned an invalid port.");
598
604
  let i = Object.getOwnPropertyDescriptor(r, "read").value;
599
605
  return Object.freeze({ async read() {
600
- return n() ? i.call(r) : x("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
606
+ return n() ? i.call(r) : S("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
601
607
  } });
602
608
  }
603
609
  //#endregion
604
610
  //#region ../plugin-manager/dist/preflight.js
605
- function _e(e) {
611
+ function Se(e) {
606
612
  let t = ae(e);
607
613
  if (!t.ok) return t;
608
- let n = new b(), r = be(t.value.runtimes, n), i = r.candidates, a = [...V(B(n.items), r.identities)];
614
+ let n = new x(), r = Te(t.value.runtimes, n), i = r.candidates, a = [...L(I(n.items), r.identities)];
609
615
  for (;;) {
610
- let e = new b(), n = M(i, e), o = N(n, t.value, e), s = D(t.value, n, e), c = le(n, t.value.registryGet, e), l = ue(n, t.value.registryGet, e), u = ve(e.items);
616
+ let e = new x(), n = _e(i, e), o = ve(n, t.value, e), s = ce(t.value, n, e), c = le(n, t.value.registryGet, e), l = ue(n, t.value.registryGet, e), u = Ce(e.items);
611
617
  if (u.length > 0) return {
612
618
  ok: !1,
613
- diagnostics: U([...a.flatMap((e) => e.diagnostics), ...u])
619
+ diagnostics: z([...a.flatMap((e) => e.diagnostics), ...u])
614
620
  };
615
- let d = B(e.items), f = new Set(d.map((e) => e.index));
621
+ let d = I(e.items), f = new Set(d.map((e) => e.index));
616
622
  if (f.size === 0) return {
617
623
  ok: !0,
618
624
  value: {
@@ -620,13 +626,13 @@ function _e(e) {
620
626
  panels: c,
621
627
  inspectorControls: l,
622
628
  activation: t.value.activation,
623
- failures: ye(V(a, r.identities)),
629
+ failures: we(L(a, r.identities)),
624
630
  plugins: n.map((e) => {
625
631
  let n = o.get(e);
626
632
  return Object.freeze({
627
633
  ...e,
628
634
  grantedCapabilities: n,
629
- createSession: () => R(t.value, e, n)
635
+ createSession: () => ye(t.value, e, n)
630
636
  });
631
637
  })
632
638
  },
@@ -635,10 +641,10 @@ function _e(e) {
635
641
  a.push(...d), i = i.filter((e) => !f.has(e.index));
636
642
  }
637
643
  }
638
- function B(e) {
644
+ function I(e) {
639
645
  let t = /* @__PURE__ */ new Map();
640
646
  for (let n of e) {
641
- let e = H(n.path);
647
+ let e = R(n.path);
642
648
  if (e === void 0) continue;
643
649
  let r = t.get(e) ?? [];
644
650
  r.push(n), t.set(e, r);
@@ -646,10 +652,10 @@ function B(e) {
646
652
  return [...t.entries()].map(([e, t]) => ({
647
653
  index: e,
648
654
  pluginId: "",
649
- diagnostics: U(t)
655
+ diagnostics: z(t)
650
656
  })).sort((e, t) => e.index - t.index);
651
657
  }
652
- function V(e, t) {
658
+ function L(e, t) {
653
659
  return e.map((e) => {
654
660
  if (e.pluginId !== "") return e;
655
661
  let n = t.get(e.index);
@@ -659,21 +665,21 @@ function V(e, t) {
659
665
  };
660
666
  });
661
667
  }
662
- function ve(e) {
663
- return e.filter((e) => H(e.path) === void 0);
668
+ function Ce(e) {
669
+ return e.filter((e) => R(e.path) === void 0);
664
670
  }
665
- function H(e) {
671
+ function R(e) {
666
672
  if (e[0] !== "plugins") return;
667
673
  let t = e[1];
668
674
  return typeof t == "number" ? t : void 0;
669
675
  }
670
- function ye(e) {
676
+ function we(e) {
671
677
  return [...e].sort((e, t) => e.index - t.index);
672
678
  }
673
- function U(t) {
674
- return e(t);
679
+ function z(e) {
680
+ return t(e);
675
681
  }
676
- function be(e, t) {
682
+ function Te(e, t) {
677
683
  let n = [], r = /* @__PURE__ */ new Map();
678
684
  for (let i = 0; i < e.length; i++) try {
679
685
  let a = e[i];
@@ -681,7 +687,7 @@ function be(e, t) {
681
687
  t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["plugins", i], "Plugin runtime must be an object.");
682
688
  continue;
683
689
  }
684
- let o = W(a, "manifest"), s = W(a, "activate"), c = W(a, "deactivate"), l = W(a, "dispose"), u = W(a, "commands"), d = W(a, "blueprintActions"), f = W(a, "dataProcessors");
690
+ let o = B(a, "manifest"), s = B(a, "activate"), c = B(a, "deactivate"), l = B(a, "dispose"), u = B(a, "commands"), d = B(a, "blueprintActions"), f = B(a, "dataProcessors");
685
691
  if (o === void 0 || s === void 0 || c === void 0 || l === void 0) {
686
692
  t.add("PLUGIN_CORE_MANIFEST_FIELD_INVALID", ["plugins", i], "Plugin runtime must use own data properties.");
687
693
  continue;
@@ -700,7 +706,7 @@ function be(e, t) {
700
706
  ], e.message);
701
707
  continue;
702
708
  }
703
- if (!K(o, p.value)) {
709
+ if (!H(o, p.value)) {
704
710
  t.add("PLUGIN_CORE_IDENTITY_CONFLICT", [
705
711
  "plugins",
706
712
  i,
@@ -709,11 +715,11 @@ function be(e, t) {
709
715
  continue;
710
716
  }
711
717
  r.set(i, p.value.id);
712
- let m = xe(u, p.value, i, t);
718
+ let m = Ee(u, p.value, i, t);
713
719
  if (m === void 0) continue;
714
- let h = Se(d, p.value, i, t);
720
+ let h = De(d, p.value, i, t);
715
721
  if (h === void 0) continue;
716
- let g = Ce(f, p.value, i, t);
722
+ let g = Oe(f, p.value, i, t);
717
723
  if (g === void 0) continue;
718
724
  n.push({
719
725
  index: i,
@@ -734,12 +740,12 @@ function be(e, t) {
734
740
  identities: r
735
741
  };
736
742
  }
737
- function W(e, t) {
743
+ function B(e, t) {
738
744
  let n = Object.getOwnPropertyDescriptor(e, t);
739
745
  return n !== void 0 && Object.hasOwn(n, "value") ? n.value : void 0;
740
746
  }
741
- function G(e, t, n, r, i, a) {
742
- let o = l({
747
+ function V(e, t, n, r, i, a) {
748
+ let o = u({
743
749
  kind: i,
744
750
  manifest: t,
745
751
  field: a,
@@ -749,23 +755,23 @@ function G(e, t, n, r, i, a) {
749
755
  for (let e of o.diagnostics) r.add(e.code, e.path, e.message);
750
756
  return o.handlers;
751
757
  }
752
- function xe(e, t, n, r) {
753
- return G(e, t, n, r, "command", "commands");
758
+ function Ee(e, t, n, r) {
759
+ return V(e, t, n, r, "command", "commands");
754
760
  }
755
- function Se(e, t, n, r) {
756
- return G(e, t, n, r, "blueprintAction", "blueprintActions");
761
+ function De(e, t, n, r) {
762
+ return V(e, t, n, r, "blueprintAction", "blueprintActions");
757
763
  }
758
- function Ce(e, t, n, r) {
759
- return G(e, t, n, r, "dataProcessor", "dataProcessors");
764
+ function Oe(e, t, n, r) {
765
+ return V(e, t, n, r, "dataProcessor", "dataProcessors");
760
766
  }
761
- function K(e, t) {
767
+ function H(e, t) {
762
768
  if (Object.is(e, t)) return !0;
763
769
  if (e === null || t === null || typeof e != "object" || typeof t != "object") return !1;
764
770
  try {
765
771
  let n = Object.getOwnPropertyNames(e).sort(), r = Object.getOwnPropertyNames(t).sort();
766
772
  return n.length !== r.length || n.some((e, t) => e !== r[t]) ? !1 : n.every((n) => {
767
- let r = W(e, n), i = W(t, n);
768
- return r !== void 0 && i !== void 0 && K(r, i);
773
+ let r = B(e, n), i = B(t, n);
774
+ return r !== void 0 && i !== void 0 && H(r, i);
769
775
  });
770
776
  } catch {
771
777
  return !1;
@@ -773,16 +779,16 @@ function K(e, t) {
773
779
  }
774
780
  //#endregion
775
781
  //#region ../plugin-manager/dist/manager.js
776
- function we(e) {
777
- return new Te(e);
782
+ function ke(e) {
783
+ return new Ae(e);
778
784
  }
779
- var Te = class {
785
+ var Ae = class {
780
786
  options;
781
787
  #e = "inactive";
782
788
  #t;
783
789
  #n = [];
784
790
  #r = [];
785
- #i = new Ee();
791
+ #i = new Ne();
786
792
  #a;
787
793
  #o = Promise.resolve();
788
794
  #s;
@@ -824,49 +830,49 @@ var Te = class {
824
830
  return this.#o = t.then(() => void 0, () => void 0), t;
825
831
  }
826
832
  async performActivate() {
827
- if (this.#e !== "inactive") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot activate from its current state.");
833
+ if (this.#e !== "inactive") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot activate from its current state.");
828
834
  this.#e = "activating";
829
- let e = _e(this.options);
835
+ let e = Se(this.options);
830
836
  if (!e.ok) return this.#e = "inactive", e;
831
837
  if (e.value.activation === "lazy") return this.publishLazyActivation(e.value);
832
- let t = [], o = e.value.failures.map((e) => ({ ...e })), s = new Set(o.flatMap((e) => e.pluginId === "" ? [] : [e.pluginId]));
833
- for (let n of e.value.plugins) {
834
- if (n.manifest.dependencies.find((e) => s.has(e.id)) !== void 0) {
835
- o.push({
836
- index: n.index,
837
- pluginId: n.manifest.id,
838
+ let t = [], n = e.value.failures.map((e) => ({ ...e })), s = new Set(n.flatMap((e) => e.pluginId === "" ? [] : [e.pluginId]));
839
+ for (let r of e.value.plugins) {
840
+ if (r.manifest.dependencies.find((e) => s.has(e.id)) !== void 0) {
841
+ n.push({
842
+ index: r.index,
843
+ pluginId: r.manifest.id,
838
844
  diagnostics: [Q("PLUGIN_CORE_DEPENDENCY_MISSING", [
839
845
  "plugins",
840
- n.index,
846
+ r.index,
841
847
  "manifest",
842
848
  "dependencies"
843
849
  ], "Plugin dependency failed to activate.")]
844
- }), s.add(n.manifest.id);
850
+ }), s.add(r.manifest.id);
845
851
  continue;
846
852
  }
847
- let e = await q(n);
853
+ let e = await U(r);
848
854
  if (!e.ok) {
849
- o.push(e.failure), s.add(n.manifest.id);
855
+ n.push(e.failure), s.add(r.manifest.id);
850
856
  continue;
851
857
  }
852
858
  t.push({
853
- plugin: n,
859
+ plugin: r,
854
860
  session: e.session
855
- }), this.recordActivated(n);
861
+ }), this.recordActivated(r);
856
862
  }
857
- o.sort((e, t) => e.index - t.index);
863
+ n.sort((e, t) => e.index - t.index);
858
864
  let c = t.map(({ plugin: e }) => ({
859
865
  manifest: e.manifest,
860
866
  grantedCapabilities: e.grantedCapabilities,
861
867
  contributions: e.manifest.contributions
862
- })), l = r(c);
868
+ })), l = i(c);
863
869
  return this.#n = t, this.#i.merge(t), this.#t = {
864
- materials: a(e.value.materials),
865
- panels: n(e.value.panels),
866
- inspectorControls: i(e.value.inspectorControls),
870
+ materials: o(e.value.materials),
871
+ panels: r(e.value.panels),
872
+ inspectorControls: a(e.value.inspectorControls),
867
873
  plugins: l,
868
- contributions: v(l),
869
- failures: Object.freeze(o.map((e) => Object.freeze({ ...e })))
874
+ contributions: y(l),
875
+ failures: Object.freeze(n.map((e) => Object.freeze({ ...e })))
870
876
  }, this.#e = "active", {
871
877
  ok: !0,
872
878
  value: this.#t,
@@ -874,9 +880,9 @@ var Te = class {
874
880
  };
875
881
  }
876
882
  async performDeactivate() {
877
- if (this.#e !== "active") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager is not active.");
883
+ if (this.#e !== "active") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager is not active.");
878
884
  this.#e = "deactivating", this.#t = void 0, this.#i.clear(), this.#s = void 0, this.#c = !1, this.#l = Z(), this.#u = /* @__PURE__ */ new Map();
879
- let e = await Y(this.#n);
885
+ let e = await J(this.#n);
880
886
  return this.#n = [], this.#e = e.length === 0 ? "inactive" : "failed", e.length === 0 ? {
881
887
  ok: !0,
882
888
  value: null,
@@ -890,7 +896,7 @@ var Te = class {
890
896
  diagnostics: []
891
897
  };
892
898
  this.#e = "disposing", this.#t = void 0, this.#i.clear(), this.#s = void 0, this.#c = !1, this.#l = Z(), this.#u = /* @__PURE__ */ new Map();
893
- let e = await Y(this.#n);
899
+ let e = await J(this.#n);
894
900
  this.#n = [];
895
901
  for (let t of [...this.#r].reverse()) try {
896
902
  await t.dispose();
@@ -908,13 +914,13 @@ var Te = class {
908
914
  manifest: e.manifest,
909
915
  grantedCapabilities: e.grantedCapabilities,
910
916
  contributions: e.manifest.contributions
911
- })), o = r(t);
912
- return this.#n = [], this.#i.clear(), this.#s = e, this.#c = !0, this.#u = /* @__PURE__ */ new Map(), this.#l = Oe(e.plugins), this.#t = {
913
- materials: a(e.materials),
914
- panels: n(e.panels),
915
- inspectorControls: i(e.inspectorControls),
916
- plugins: o,
917
- contributions: v(o),
917
+ })), n = i(t);
918
+ return this.#n = [], this.#i.clear(), this.#s = e, this.#c = !0, this.#u = /* @__PURE__ */ new Map(), this.#l = Pe(e.plugins), this.#t = {
919
+ materials: o(e.materials),
920
+ panels: r(e.panels),
921
+ inspectorControls: a(e.inspectorControls),
922
+ plugins: n,
923
+ contributions: y(n),
918
924
  failures: Object.freeze(e.failures.map((e) => Object.freeze({ ...e })))
919
925
  }, this.#e = "active", {
920
926
  ok: !0,
@@ -923,13 +929,13 @@ var Te = class {
923
929
  };
924
930
  }
925
931
  async performEnsureActive(e) {
926
- if (this.#e !== "active") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot ensure activation from its current state.");
932
+ if (this.#e !== "active") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot ensure activation from its current state.");
927
933
  let t = this.#s;
928
934
  if (t === void 0) return this.#n.some((t) => t.plugin.manifest.id === e) ? {
929
935
  ok: !0,
930
936
  value: null,
931
937
  diagnostics: []
932
- } : x("PLUGIN_CORE_IDENTITY_INVALID", ["pluginId"], "Plugin id is unknown.");
938
+ } : S("PLUGIN_CORE_IDENTITY_INVALID", ["pluginId"], "Plugin id is unknown.");
933
939
  if (this.#n.some((t) => t.plugin.manifest.id === e)) return {
934
940
  ok: !0,
935
941
  value: null,
@@ -937,7 +943,7 @@ var Te = class {
937
943
  };
938
944
  let n = this.#u.get(e);
939
945
  if (n !== void 0) return $([...n.diagnostics]);
940
- if (t.plugins.find((t) => t.manifest.id === e) === void 0) return x("PLUGIN_CORE_IDENTITY_INVALID", ["pluginId"], "Plugin id is unknown.");
946
+ if (t.plugins.find((t) => t.manifest.id === e) === void 0) return S("PLUGIN_CORE_IDENTITY_INVALID", ["pluginId"], "Plugin id is unknown.");
941
947
  let r = /* @__PURE__ */ new Set([e]), i = !0;
942
948
  for (; i;) {
943
949
  i = !1;
@@ -970,7 +976,7 @@ var Te = class {
970
976
  };
971
977
  }
972
978
  async #d(e) {
973
- let t = await q(e);
979
+ let t = await U(e);
974
980
  if (!t.ok) return this.#u.set(e.manifest.id, t.failure), this.#f(t.failure), t.failure;
975
981
  let n = {
976
982
  plugin: e,
@@ -996,66 +1002,55 @@ var Te = class {
996
1002
  return r.ok ? void 0 : r;
997
1003
  }
998
1004
  async performExecuteBlueprintAction(e) {
999
- if (this.#e !== "active") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot execute blueprint actions from its current state.");
1005
+ if (this.#e !== "active") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot execute blueprint actions from its current state.");
1000
1006
  let t = await this.#p("blueprintAction", e.actionId);
1001
1007
  if (t !== void 0) return t;
1002
1008
  let n = this.#i.get("blueprintAction", e.actionId);
1003
- if (n === void 0) return x("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", ["actionId"], "Blueprint action is not declared by any active plugin.");
1004
- if (!n.isValid()) return x("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1009
+ if (n === void 0) return S("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", ["actionId"], "Blueprint action is not declared by any active plugin.");
1010
+ if (!n.isValid()) return S("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1005
1011
  try {
1006
- let t = await n.handler(e.payload);
1007
- return t === void 0 ? {
1008
- ok: !0,
1009
- value: null,
1010
- diagnostics: []
1011
- } : typeof t != "object" || !t || typeof t.ok != "boolean" ? x("PLUGIN_CORE_COMMAND_RESULT_INVALID", [], "Plugin blueprint action returned an invalid result.") : t;
1012
+ return W(await n.handler(e.payload), !0, "Plugin blueprint action returned an invalid result.");
1012
1013
  } catch {
1013
- return x("PLUGIN_CORE_LIFECYCLE_INVALID", ["actionId"], "Plugin blueprint action failed.");
1014
+ return S("PLUGIN_CORE_LIFECYCLE_INVALID", ["actionId"], "Plugin blueprint action failed.");
1014
1015
  }
1015
1016
  }
1016
1017
  async performApplyDataProcessor(e) {
1017
- if (this.#e !== "active") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot apply data processors from its current state.");
1018
+ if (this.#e !== "active") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot apply data processors from its current state.");
1018
1019
  let t = await this.#p("dataProcessor", e.processorId);
1019
1020
  if (t !== void 0) return t;
1020
1021
  let n = this.#i.get("dataProcessor", e.processorId);
1021
- if (n === void 0) return x("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", ["processorId"], "Data processor is not declared by any active plugin.");
1022
- if (!n.isValid()) return x("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1022
+ if (n === void 0) return S("PLUGIN_CORE_CONTRIBUTION_UNKNOWN", ["processorId"], "Data processor is not declared by any active plugin.");
1023
+ if (!n.isValid()) return S("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1023
1024
  try {
1024
- let t = await n.handler(e.value, e.config);
1025
- return typeof t != "object" || !t || typeof t.ok != "boolean" ? x("PLUGIN_CORE_COMMAND_RESULT_INVALID", [], "Plugin data processor returned an invalid result.") : t;
1025
+ return W(await n.handler(e.value, e.config), !1, "Plugin data processor returned an invalid result.");
1026
1026
  } catch {
1027
- return x("PLUGIN_CORE_LIFECYCLE_INVALID", ["processorId"], "Plugin data processor failed.");
1027
+ return S("PLUGIN_CORE_LIFECYCLE_INVALID", ["processorId"], "Plugin data processor failed.");
1028
1028
  }
1029
1029
  }
1030
1030
  async performExecuteContributionCommand(e) {
1031
- let t = d(e);
1031
+ let t = f(e);
1032
1032
  if (!t.ok) return t;
1033
- if (this.#e !== "active") return x("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot execute contribution commands from its current state.");
1033
+ if (this.#e !== "active") return S("PLUGIN_CORE_LIFECYCLE_INVALID", [], "Plugin manager cannot execute contribution commands from its current state.");
1034
1034
  let n = await this.#p("command", t.value.commandId);
1035
1035
  if (n !== void 0) return n;
1036
1036
  let r = this.#i.get("command", t.value.commandId);
1037
- if (r === void 0) return x("PLUGIN_CORE_COMMAND_UNAUTHORIZED", ["commandId"], "Plugin contribution command is not available.");
1038
- if (!r.isValid()) return x("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1037
+ if (r === void 0) return S("PLUGIN_CORE_COMMAND_UNAUTHORIZED", ["commandId"], "Plugin contribution command is not available.");
1038
+ if (!r.isValid()) return S("PLUGIN_CORE_SESSION_INVALID", [], "Plugin activation session is no longer valid.");
1039
1039
  try {
1040
- let e = await r.handler(t.value.args);
1041
- return e === void 0 ? {
1042
- ok: !0,
1043
- value: null,
1044
- diagnostics: []
1045
- } : typeof e != "object" || !e || typeof e.ok != "boolean" ? x("PLUGIN_CORE_COMMAND_RESULT_INVALID", [], "Plugin contribution command returned an invalid result.") : e;
1040
+ return W(await r.handler(t.value.args), !0, "Plugin contribution command returned an invalid result.");
1046
1041
  } catch {
1047
- return x("PLUGIN_CORE_LIFECYCLE_INVALID", ["commandId"], "Plugin contribution command failed.");
1042
+ return S("PLUGIN_CORE_LIFECYCLE_INVALID", ["commandId"], "Plugin contribution command failed.");
1048
1043
  }
1049
1044
  }
1050
1045
  };
1051
- async function q(e) {
1046
+ async function U(e) {
1052
1047
  let t;
1053
1048
  try {
1054
1049
  t = e.createSession();
1055
1050
  } catch {
1056
1051
  return {
1057
1052
  ok: !1,
1058
- failure: J(e, "session")
1053
+ failure: q(e, "session")
1059
1054
  };
1060
1055
  }
1061
1056
  try {
@@ -1063,7 +1058,7 @@ async function q(e) {
1063
1058
  } catch {
1064
1059
  return t.invalidate(), {
1065
1060
  ok: !1,
1066
- failure: J(e, "hook")
1061
+ failure: q(e, "hook")
1067
1062
  };
1068
1063
  }
1069
1064
  return {
@@ -1071,14 +1066,39 @@ async function q(e) {
1071
1066
  session: t
1072
1067
  };
1073
1068
  }
1074
- function J(e, t) {
1069
+ function W(t, n, r) {
1070
+ if (t === void 0 && n) return {
1071
+ ok: !0,
1072
+ value: null,
1073
+ diagnostics: []
1074
+ };
1075
+ let i = e(t);
1076
+ if (!i.ok || !G(i.value)) return K(r);
1077
+ let a = i.value;
1078
+ return je(a.diagnostics) && (a.ok === !0 && Object.hasOwn(a, "value") || a.ok === !1) ? i.value : K(r);
1079
+ }
1080
+ function G(e) {
1081
+ return typeof e == "object" && !!e && !Array.isArray(e);
1082
+ }
1083
+ function je(e) {
1084
+ return Array.isArray(e) && e.every(Me);
1085
+ }
1086
+ function Me(e) {
1087
+ if (!G(e)) return !1;
1088
+ let t = e.path;
1089
+ return (e.severity === "error" || e.severity === "warning") && typeof e.code == "string" && typeof e.message == "string" && Array.isArray(t) && t.every((e) => typeof e == "string" || typeof e == "number" && Number.isFinite(e));
1090
+ }
1091
+ function K(e) {
1092
+ return S("PLUGIN_CORE_COMMAND_RESULT_INVALID", [], e);
1093
+ }
1094
+ function q(e, t) {
1075
1095
  return {
1076
1096
  index: e.index,
1077
1097
  pluginId: e.manifest.id,
1078
1098
  diagnostics: [Q("PLUGIN_CORE_LIFECYCLE_INVALID", ["plugins", e.index], t === "session" ? "Plugin activation session setup failed." : "Plugin activation hook failed.")]
1079
1099
  };
1080
1100
  }
1081
- async function Y(e) {
1101
+ async function J(e) {
1082
1102
  for (let t of e) t.session.invalidate();
1083
1103
  let t = [];
1084
1104
  for (let n of [...e].reverse()) try {
@@ -1088,64 +1108,64 @@ async function Y(e) {
1088
1108
  }
1089
1109
  return t;
1090
1110
  }
1091
- var Ee = class {
1111
+ var Ne = class {
1092
1112
  #e = /* @__PURE__ */ new Map();
1093
1113
  constructor() {
1094
- for (let e of s()) this.#e.set(e, /* @__PURE__ */ new Map());
1114
+ for (let e of c()) this.#e.set(e, /* @__PURE__ */ new Map());
1095
1115
  }
1096
1116
  clear() {
1097
1117
  for (let e of this.#e.values()) e.clear();
1098
1118
  }
1099
1119
  merge(e) {
1100
- for (let t of s()) {
1120
+ for (let t of c()) {
1101
1121
  let n = this.#e.get(t);
1102
- for (let [r, i] of De(e, t)) n.set(r, i);
1122
+ for (let [r, i] of X(e, t)) n.set(r, i);
1103
1123
  }
1104
1124
  }
1105
1125
  get(e, t) {
1106
1126
  return this.#e.get(e)?.get(t);
1107
1127
  }
1108
1128
  };
1109
- function X(e, t) {
1110
- let n = o(t);
1129
+ function Y(e, t) {
1130
+ let n = s(t);
1111
1131
  if (n === void 0) return /* @__PURE__ */ new Map();
1112
1132
  let r = e[n];
1113
1133
  if (r.size === 0) return /* @__PURE__ */ new Map();
1114
- let i = h[t].requiresGrant === !0, a = /* @__PURE__ */ new Map();
1134
+ let i = g[t].requiresGrant === !0, a = /* @__PURE__ */ new Map();
1115
1135
  for (let n of e.manifest.contributions) {
1116
1136
  if (n.kind !== t) continue;
1117
- let e = f(t, [n])[0];
1137
+ let e = p(t, [n])[0];
1118
1138
  e !== void 0 && a.set(e, n);
1119
1139
  }
1120
- let s = /* @__PURE__ */ new Map();
1140
+ let o = /* @__PURE__ */ new Map();
1121
1141
  for (let [t, n] of r) {
1122
1142
  let r = a.get(t);
1123
- r !== void 0 && (i && !ke(e, r) || s.set(t, n));
1143
+ r !== void 0 && (i && !Fe(e, r) || o.set(t, n));
1124
1144
  }
1125
- return s;
1145
+ return o;
1126
1146
  }
1127
- function De(e, t) {
1147
+ function X(e, t) {
1128
1148
  let n = /* @__PURE__ */ new Map();
1129
- for (let r of e) for (let [e, i] of X(r.plugin, t)) n.set(e, {
1149
+ for (let r of e) for (let [e, i] of Y(r.plugin, t)) n.set(e, {
1130
1150
  handler: i,
1131
1151
  isValid: () => r.session.isValid()
1132
1152
  });
1133
1153
  return n;
1134
1154
  }
1135
- function Oe(e) {
1155
+ function Pe(e) {
1136
1156
  let t = Z();
1137
- for (let n of s()) {
1157
+ for (let n of c()) {
1138
1158
  let r = t.get(n);
1139
- for (let t of e) for (let e of X(t, n).keys()) r.set(e, t);
1159
+ for (let t of e) for (let e of Y(t, n).keys()) r.set(e, t);
1140
1160
  }
1141
1161
  return t;
1142
1162
  }
1143
1163
  function Z() {
1144
- return new Map(s().map((e) => [e, /* @__PURE__ */ new Map()]));
1164
+ return new Map(c().map((e) => [e, /* @__PURE__ */ new Map()]));
1145
1165
  }
1146
- function ke(e, t) {
1147
- let n = t.requiredCapability, r = typeof n == "string" ? n : t.id;
1148
- return r !== void 0 && e.grantedCapabilities.includes(r);
1166
+ function Fe(e, t) {
1167
+ let n = v(t);
1168
+ return n !== void 0 && e.grantedCapabilities.includes(n);
1149
1169
  }
1150
1170
  function Q(e, t, n) {
1151
1171
  return {
@@ -1158,10 +1178,10 @@ function Q(e, t, n) {
1158
1178
  function $(e) {
1159
1179
  return {
1160
1180
  ok: !1,
1161
- diagnostics: S(e)
1181
+ diagnostics: C(e)
1162
1182
  };
1163
1183
  }
1164
1184
  //#endregion
1165
- export { m as n, we as t };
1185
+ export { h as n, ke as t };
1166
1186
 
1167
- //# sourceMappingURL=manager-Ch0RTu_i.js.map
1187
+ //# sourceMappingURL=manager-BcvdcZjM.js.map