base-screen 0.2.0 → 0.3.0
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.
- package/README.md +3 -12
- package/dist/_internal/contracts/document/blueprint-capabilities.d.ts +9 -1
- package/dist/_internal/contracts/document/blueprint-capabilities.js +16 -0
- package/dist/_internal/contracts/document/blueprint-graph.d.ts +68 -0
- package/dist/_internal/contracts/document/blueprint-graph.js +424 -0
- package/dist/_internal/contracts/document/blueprint-strict.d.ts +3 -1
- package/dist/_internal/contracts/document/blueprint-strict.js +77 -91
- package/dist/_internal/contracts/document/component-states.d.ts +54 -0
- package/dist/_internal/contracts/document/component-states.js +171 -0
- package/dist/_internal/contracts/document/json-schema.js +49 -17
- package/dist/_internal/contracts/document/limits.d.ts +40 -8
- package/dist/_internal/contracts/document/limits.js +40 -8
- package/dist/_internal/contracts/document/parse-parts.d.ts +12 -0
- package/dist/_internal/contracts/document/parse-parts.js +56 -0
- package/dist/_internal/contracts/document/parse.js +1 -1
- package/dist/_internal/contracts/document/references.js +108 -41
- package/dist/_internal/contracts/document/schema.d.ts +525 -186
- package/dist/_internal/contracts/document/schema.js +234 -95
- package/dist/_internal/contracts/document/sub-canvas.d.ts +27 -0
- package/dist/_internal/contracts/document/sub-canvas.js +38 -0
- package/dist/_internal/contracts/document/theme.d.ts +22 -0
- package/dist/_internal/contracts/document/theme.js +65 -0
- package/dist/_internal/contracts/document/validate-blueprint.d.ts +7 -0
- package/dist/_internal/contracts/document/validate-blueprint.js +223 -25
- package/dist/_internal/contracts/document/validate-component.d.ts +2 -0
- package/dist/_internal/contracts/document/validate-component.js +111 -54
- package/dist/_internal/contracts/document/validate-data-source.js +84 -9
- package/dist/_internal/contracts/document/validate-sub-canvas.d.ts +9 -0
- package/dist/_internal/contracts/document/validate-sub-canvas.js +92 -0
- package/dist/_internal/contracts/document/validate-theme.d.ts +4 -0
- package/dist/_internal/contracts/document/validate-theme.js +20 -0
- package/dist/_internal/contracts/document/validate.js +19 -2
- package/dist/_internal/contracts/index.d.ts +11 -4
- package/dist/_internal/contracts/index.js +8 -2
- package/dist/_internal/contracts/migration/blueprint-graph-migration.d.ts +21 -0
- package/dist/_internal/contracts/migration/blueprint-graph-migration.js +328 -0
- package/dist/_internal/contracts/migration/migrate-document.d.ts +2 -1
- package/dist/_internal/contracts/migration/migrate-document.js +11 -3
- package/dist/_internal/contracts/push/delivery.d.ts +16 -0
- package/dist/_internal/contracts/push/delivery.js +70 -0
- package/dist/_internal/contracts/push/level-scale.d.ts +7 -0
- package/dist/_internal/contracts/push/level-scale.js +91 -0
- package/dist/_internal/contracts/screen-document.schema.json +1056 -383
- package/dist/_internal/contracts/types/document.d.ts +277 -76
- package/dist/_internal/contracts/types/execution.d.ts +12 -2
- package/dist/_internal/contracts/types/execution.js +0 -5
- package/dist/_internal/contracts/types/host.d.ts +35 -1
- package/dist/_internal/contracts/types/host.js +7 -1
- package/dist/_internal/contracts/types/push.d.ts +86 -0
- package/dist/_internal/contracts/types/push.js +1 -0
- package/dist/_internal/contracts/types/variable.d.ts +5 -0
- package/dist/_internal/contracts/variable/parse.js +30 -1
- package/dist/_internal/core/blueprint/runtime-compile.d.ts +4 -0
- package/dist/_internal/core/blueprint/runtime-compile.js +45 -21
- package/dist/_internal/core/blueprint/runtime-dispatch.js +270 -156
- package/dist/_internal/core/blueprint/runtime-types.d.ts +112 -6
- package/dist/_internal/core/blueprint/runtime.d.ts +1 -1
- package/dist/_internal/core/commands/apply-component-commands.d.ts +5 -0
- package/dist/_internal/core/commands/apply-component-commands.js +74 -2
- package/dist/_internal/core/commands/apply.js +63 -3
- package/dist/_internal/core/commands/parse-command.js +12 -0
- package/dist/_internal/core/commands/types.d.ts +28 -3
- package/dist/_internal/core/diff/screen-diff.js +1 -1
- package/dist/_internal/core/index.d.ts +1 -1
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-canvas-bridge-helpers.d.ts +1 -1
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-canvas-bridge.d.ts +11 -1
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-panels-controller.d.ts +18 -4
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-timer-scheduler.d.ts +21 -0
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-workbench-panel.d.ts +8 -1
- package/dist/_internal/engine/browser/controllers/dataset/designer-data-source-authoring.d.ts +25 -1
- package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-controller-context.d.ts +6 -2
- package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-draft-controller.d.ts +8 -0
- package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-surface-controller.d.ts +14 -0
- package/dist/_internal/engine/browser/controllers/dataset/designer-update-policy-authoring.d.ts +52 -0
- package/dist/_internal/engine/browser/controllers/designer-artboard-controller.d.ts +80 -0
- package/dist/_internal/engine/browser/controllers/designer-canvas-runtime-controller.d.ts +21 -3
- package/dist/_internal/engine/browser/controllers/designer-change-controller.d.ts +2 -0
- package/dist/_internal/engine/browser/controllers/designer-command-palette-controller.d.ts +2 -0
- package/dist/_internal/engine/browser/controllers/designer-notification-controller.d.ts +7 -0
- package/dist/_internal/engine/browser/controllers/designer-page-preview-controller.d.ts +34 -0
- package/dist/_internal/engine/browser/controllers/designer-popup-preview-controller.d.ts +40 -0
- package/dist/_internal/engine/browser/controllers/designer-preview-controller.d.ts +1 -3
- package/dist/_internal/engine/browser/controllers/designer-reference-layer-controller.d.ts +45 -0
- package/dist/_internal/engine/browser/controllers/designer-viewport-controller.d.ts +10 -0
- package/dist/_internal/engine/browser/controllers/gesture/designer-gesture-callbacks.d.ts +5 -1
- package/dist/_internal/engine/browser/controllers/gesture/designer-gesture-controller.d.ts +2 -0
- package/dist/_internal/engine/browser/controllers/gesture/designer-gesture-environment.d.ts +18 -7
- package/dist/_internal/engine/browser/controllers/gesture/designer-group-editing-controller.d.ts +8 -1
- package/dist/_internal/engine/browser/controllers/layers/designer-layers-controller.d.ts +11 -0
- package/dist/_internal/engine/browser/controllers/panel/designer-component-states-controller.d.ts +26 -0
- package/dist/_internal/engine/browser/controllers/panel/designer-inspector-focus.d.ts +30 -0
- package/dist/_internal/engine/browser/controllers/panel/designer-panel-controller-callbacks.d.ts +23 -6
- package/dist/_internal/engine/browser/controllers/panel/designer-panel-controller.d.ts +2 -2
- package/dist/_internal/engine/browser/controllers/panel/designer-panel-material-controller.d.ts +4 -0
- package/dist/_internal/engine/browser/controllers/panel/designer-panel-property-controller.d.ts +2 -0
- package/dist/_internal/engine/browser/controllers/workbench/designer-snap-controller.d.ts +5 -1
- package/dist/_internal/engine/browser/controllers/workbench/designer-workbench-controller.d.ts +7 -1
- package/dist/_internal/engine/browser/dom/blueprint/designer-blueprint-inspector-configuration.d.ts +12 -0
- package/dist/_internal/engine/browser/dom/blueprint/designer-blueprint-library-dom.d.ts +18 -2
- package/dist/_internal/engine/browser/dom/change/designer-change-dom.d.ts +1 -0
- package/dist/_internal/engine/browser/dom/color/designer-color-palette-dom.d.ts +1 -0
- package/dist/_internal/engine/browser/dom/color/designer-color-palette-theme.d.ts +10 -0
- package/dist/_internal/engine/browser/dom/color/designer-color-palette-types.d.ts +13 -0
- package/dist/_internal/engine/browser/dom/color/designer-color-theme-slots.d.ts +10 -0
- package/dist/_internal/engine/browser/dom/dataset/designer-dataset-types.d.ts +17 -6
- package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-control-dom.d.ts +17 -1
- package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-model.d.ts +2 -0
- package/dist/_internal/engine/browser/dom/designer-field-primitives.d.ts +43 -1
- package/dist/_internal/engine/browser/dom/designer-icons.d.ts +2 -0
- package/dist/_internal/engine/browser/dom/designer-select-dom.d.ts +2 -0
- package/dist/_internal/engine/browser/dom/designer-ui-primitives.d.ts +5 -0
- package/dist/_internal/engine/browser/dom/layers/designer-layers-model.d.ts +28 -0
- package/dist/_internal/engine/browser/dom/material-library/designer-material-library-dom.d.ts +18 -2
- package/dist/_internal/engine/browser/dom/material-library/designer-material-library-group-view.d.ts +1 -0
- package/dist/_internal/engine/browser/dom/menu/designer-menu-model.d.ts +4 -2
- package/dist/_internal/engine/browser/dom/panel/designer-canvas-properties-dom.d.ts +10 -2
- package/dist/_internal/engine/browser/dom/panel/designer-canvas-transactions.d.ts +5 -1
- package/dist/_internal/engine/browser/dom/panel/designer-chrome-primitives.d.ts +12 -0
- package/dist/_internal/engine/browser/dom/panel/designer-color-group-dom.d.ts +45 -0
- package/dist/_internal/engine/browser/dom/panel/designer-component-properties-dom.d.ts +4 -3
- package/dist/_internal/engine/browser/dom/panel/designer-component-states-dom.d.ts +22 -0
- package/dist/_internal/engine/browser/dom/panel/designer-panel-primitives.d.ts +18 -2
- package/dist/_internal/engine/browser/dom/workspace/designer-workspace-template.d.ts +13 -0
- package/dist/_internal/engine/browser/dom/workspace/designer-workspace.d.ts +2 -1
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids-types.d.ts +8 -2
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids.d.ts +14 -4
- package/dist/_internal/engine/browser/viewport/designer-canvas-coordinates.d.ts +7 -0
- package/dist/_internal/engine/browser/viewport/designer-canvas-measurements.d.ts +12 -1
- package/dist/_internal/engine/browser/viewport/designer-canvas-snap-alignment-index.d.ts +27 -0
- package/dist/_internal/engine/browser/viewport/designer-canvas-snap-geometry.d.ts +13 -2
- package/dist/_internal/engine/browser/viewport/designer-canvas-snap-preview.d.ts +1 -1
- package/dist/_internal/engine/browser/viewport/designer-canvas-snap-spacing.d.ts +12 -0
- package/dist/_internal/engine/browser/viewport/designer-guide-overlay-nodes.d.ts +2 -0
- package/dist/_internal/engine/common/observability/designer-metrics.d.ts +1 -1
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-geometry.d.ts +12 -0
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-graph.d.ts +203 -0
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-model-types.d.ts +6 -2
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-model.d.ts +58 -7
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-protocol-types.d.ts +131 -51
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-value-sources.d.ts +7 -3
- package/dist/_internal/engine/common/operations/catalog/designer-catalog-refresh.d.ts +13 -1
- package/dist/_internal/engine/common/operations/designer-operation-registry.d.ts +5 -1
- package/dist/_internal/engine/common/operations/designer-variable-operations.d.ts +8 -0
- package/dist/_internal/engine/common/operations/element/designer-element-operation-types.d.ts +8 -0
- package/dist/_internal/engine/common/operations/host-resource/host-resource-authoring.d.ts +1 -1
- package/dist/_internal/engine/common/operations/material-component/material-component-fragment-extract.d.ts +34 -0
- package/dist/_internal/engine/common/operations/material-component/material-component-fragment.d.ts +24 -41
- package/dist/_internal/engine/common/operations/material-component/material-component.d.ts +1 -1
- package/dist/_internal/engine/common/operations/material-library/material-library-fragments.d.ts +46 -0
- package/dist/_internal/engine/common/operations/material-library/material-library-grouping.d.ts +11 -0
- package/dist/_internal/engine/common/operations/selection/designer-group.d.ts +16 -4
- package/dist/_internal/engine/common/operations/selection/designer-multi-selection-operations.d.ts +4 -3
- package/dist/_internal/engine/common/operations/selection/designer-selection-actions.d.ts +6 -0
- package/dist/_internal/engine/common/operations/selection/designer-selection.d.ts +8 -0
- package/dist/_internal/engine/common/operations/style/designer-component-states.d.ts +62 -0
- package/dist/_internal/engine/common/operations/style/designer-material-appearance.d.ts +30 -0
- package/dist/_internal/engine/common/session/designer-artboard.d.ts +40 -0
- package/dist/_internal/engine/common/session/designer-session.d.ts +21 -0
- package/dist/_internal/engine/common/ui-text/designer-blueprint-ui-text.d.ts +169 -0
- package/dist/_internal/engine/common/ui-text/designer-ui-text.d.ts +422 -88
- package/dist/_internal/engine/designer-blueprint-workbench-panel-CJ3iZo5v.js +2872 -0
- package/dist/_internal/engine/{designer-dataset-controller-CPytVNBK.js → designer-dataset-controller-CrfOg2Ys.js} +1764 -1507
- package/dist/_internal/engine/designer-element/api/designer-element-catalog.d.ts +4 -3
- package/dist/_internal/engine/designer-element/api/designer-element-configuration-types.d.ts +11 -8
- package/dist/_internal/engine/designer-element/api/designer-element-fragment-save.d.ts +16 -0
- package/dist/_internal/engine/designer-element/api/designer-element-host-properties.d.ts +0 -5
- package/dist/_internal/engine/designer-element/api/designer-element-insert-component-fragment.d.ts +9 -2
- package/dist/_internal/engine/designer-element/api/designer-element-material-library-fragments.d.ts +17 -0
- package/dist/_internal/engine/designer-element/api/designer-element-project.d.ts +0 -1
- package/dist/_internal/engine/designer-element/base-screen-designer-element.d.ts +24 -24
- package/dist/_internal/engine/designer-element/designer-element-public-api.d.ts +5 -5
- package/dist/_internal/engine/designer-element/runtime/designer-element-guards.d.ts +0 -2
- package/dist/_internal/engine/designer-element/runtime/designer-element-host.d.ts +6 -7
- package/dist/_internal/engine/designer-element/runtime/designer-element-rendering.d.ts +11 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-runtime.d.ts +15 -14
- package/dist/_internal/engine/designer-element/runtime/designer-element-state.d.ts +29 -10
- package/dist/_internal/engine/{designer-ui-primitives-CH4RNiMa.js → designer-field-primitives-KBZuWN_D.js} +876 -346
- package/dist/_internal/engine/designer-left-panel-groups-dom-N2OHOWjl.js +1282 -0
- package/dist/_internal/engine/host-resource-selection-xo2mLCD4.js +2482 -0
- package/dist/_internal/engine/host-tokens.css +12 -12
- package/dist/_internal/engine/index.js +8643 -6102
- package/dist/_internal/host-kit/index.d.ts +2 -0
- package/dist/_internal/host-kit/index.js +2 -0
- package/dist/_internal/host-kit/push-result.d.ts +5 -0
- package/dist/_internal/host-kit/push-result.js +8 -0
- package/dist/_internal/host-kit/sse-subscribe.d.ts +59 -0
- package/dist/_internal/host-kit/sse-subscribe.js +253 -0
- package/dist/_internal/host-kit/subscription-hub.d.ts +41 -0
- package/dist/_internal/host-kit/subscription-hub.js +179 -0
- package/dist/_internal/material/base-material.d.ts +1 -0
- package/dist/_internal/material/chart.d.ts +4 -0
- package/dist/_internal/material/chart.js +101 -58
- package/dist/_internal/material/container.js +19 -33
- package/dist/_internal/material/{base-material-BArgjOeL.js → editor-descriptor-DJZYygOa.js} +49 -20
- package/dist/_internal/material/editor-descriptor.d.ts +18 -0
- package/dist/_internal/material/image.js +30 -34
- package/dist/_internal/material/rule.js +29 -42
- package/dist/_internal/material/shapes.js +57 -74
- package/dist/_internal/material/table.d.ts +4 -0
- package/dist/_internal/material/table.js +118 -71
- package/dist/_internal/material/text.js +40 -68
- package/dist/_internal/plugin-core/contracts.d.ts +38 -49
- package/dist/_internal/plugin-core/contribution-kind.js +47 -2
- package/dist/_internal/plugin-core/editor/editor-ai-description.d.ts +3 -0
- package/dist/_internal/plugin-core/editor/editor-ai-description.js +124 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-conditions.js +5 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-inference.d.ts +32 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-inference.js +83 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-items.d.ts +6 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-items.js +41 -12
- package/dist/_internal/plugin-core/editor/editor-descriptor-model.d.ts +24 -1
- package/dist/_internal/plugin-core/editor/editor-descriptor-model.js +6 -1
- package/dist/_internal/plugin-core/editor/editor-descriptor-schema.js +21 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor-sections.js +5 -7
- package/dist/_internal/plugin-core/editor/editor-descriptor.d.ts +1 -0
- package/dist/_internal/plugin-core/editor/editor-descriptor.js +55 -2
- package/dist/_internal/plugin-core/fragment/fragment.d.ts +96 -0
- package/dist/_internal/plugin-core/fragment/fragment.js +535 -0
- package/dist/_internal/plugin-core/index.d.ts +7 -4
- package/dist/_internal/plugin-core/index.js +5 -2
- package/dist/_internal/plugin-core/material/material-manifest.js +14 -2
- package/dist/_internal/plugin-core/material/material-schema.d.ts +9 -0
- package/dist/_internal/plugin-core/material/material-schema.js +31 -1
- package/dist/_internal/plugin-core/material/material-theme.d.ts +25 -0
- package/dist/_internal/plugin-core/material/material-theme.js +77 -0
- package/dist/_internal/plugin-core/material/material-validation-constants.js +2 -0
- package/dist/_internal/plugin-core/material/material.d.ts +1 -1
- package/dist/_internal/plugin-core/material/material.js +1 -1
- package/dist/_internal/plugin-manager/contribution-kind-plan.d.ts +2 -1
- package/dist/_internal/plugin-manager/contribution-kind-plan.js +6 -0
- package/dist/_internal/plugin-manager/contributions.js +10 -0
- package/dist/_internal/plugin-sdk/authoring-finding.d.ts +19 -0
- package/dist/_internal/plugin-sdk/authoring-finding.js +12 -0
- package/dist/_internal/plugin-sdk/fragment-audit.d.ts +14 -0
- package/dist/_internal/plugin-sdk/fragment-audit.js +170 -0
- package/dist/_internal/plugin-sdk/fragment-definition.d.ts +11 -0
- package/dist/_internal/plugin-sdk/fragment-definition.js +16 -0
- package/dist/_internal/plugin-sdk/index.d.ts +9 -0
- package/dist/_internal/plugin-sdk/index.js +9 -0
- package/dist/_internal/plugin-sdk/material-config-groups.d.ts +44 -0
- package/dist/_internal/plugin-sdk/material-config-groups.js +80 -0
- package/dist/_internal/plugin-sdk/material-editor-audit.d.ts +24 -0
- package/dist/_internal/plugin-sdk/material-editor-audit.js +160 -0
- package/dist/_internal/plugin-sdk/material-rendered-element.d.ts +69 -0
- package/dist/_internal/plugin-sdk/material-rendered-element.js +165 -0
- package/dist/_internal/plugin-sdk/material-spec-audit.d.ts +22 -0
- package/dist/_internal/plugin-sdk/material-spec-audit.js +184 -0
- package/dist/_internal/plugin-sdk/material-spec.d.ts +114 -0
- package/dist/_internal/plugin-sdk/material-spec.js +635 -0
- package/dist/_internal/plugin-sdk/material-style-keys.d.ts +17 -0
- package/dist/_internal/plugin-sdk/material-style-keys.js +82 -0
- package/dist/_internal/renderer/index.d.ts +2 -0
- package/dist/_internal/renderer/index.js +1745 -616
- package/dist/_internal/renderer/renderer/renderer-component-states.d.ts +34 -0
- package/dist/_internal/renderer/renderer/renderer-effective-style.d.ts +12 -6
- package/dist/_internal/renderer/renderer/renderer-material-dom.d.ts +19 -3
- package/dist/_internal/renderer/renderer/renderer-mounted-material.d.ts +11 -10
- package/dist/_internal/renderer/renderer/renderer-state.d.ts +17 -1
- package/dist/_internal/renderer/renderer/renderer-theme.d.ts +11 -0
- package/dist/_internal/renderer/renderer/renderer-types.d.ts +15 -5
- package/dist/_internal/renderer/renderer/renderer.d.ts +30 -9
- package/dist/_internal/renderer/resource/data-source-runtime.d.ts +25 -2
- package/dist/_internal/renderer/resource/push-window.d.ts +43 -0
- package/dist/_internal/renderer/resource/source-query-port.d.ts +8 -1
- package/dist/_internal/renderer/sub-canvas-layer.d.ts +83 -0
- package/dist/_internal/renderer/viewer/viewer-blueprint-timer-scheduler.d.ts +23 -0
- package/dist/_internal/renderer/viewer/viewer-configuration-guards.d.ts +0 -1
- package/dist/_internal/renderer/viewer/viewer-configuration.d.ts +6 -3
- package/dist/_internal/renderer/viewer/viewer-stale-style.d.ts +3 -0
- package/dist/_internal/renderer/viewer/viewer-variable-controller.d.ts +2 -0
- package/dist/_internal/renderer/viewer/viewer.d.ts +18 -7
- package/dist/_internal/sdk/auto-register.js +7 -7
- package/dist/_internal/sdk/designer-auto-register.js +3 -3
- package/dist/_internal/sdk/designer.d.ts +1 -1
- package/dist/_internal/sdk/designer.js +8 -8
- package/dist/_internal/sdk/host-tokens.css +12 -12
- package/dist/_internal/sdk/index.d.ts +1 -1
- package/dist/_internal/sdk/index.js +6 -6
- package/dist/auto-register.js +11 -11
- package/dist/auto-register.js.map +1 -1
- package/dist/contracts.js +73 -43
- package/dist/contracts.js.map +1 -1
- package/dist/core.js +151 -23
- package/dist/core.js.map +1 -1
- package/dist/{data-contracts-BFld0hw_.js → data-contracts-CnnB5KC9.js} +2 -2
- package/dist/{data-contracts-BFld0hw_.js.map → data-contracts-CnnB5KC9.js.map} +1 -1
- package/dist/dataset-port-D993nOlT.js +182 -0
- package/dist/dataset-port-D993nOlT.js.map +1 -0
- package/dist/{designer-Byw45cUM.js → designer-3Tb0EIDV.js} +3 -3
- package/dist/designer-3Tb0EIDV.js.map +1 -0
- package/dist/designer-auto-register.js +6 -6
- package/dist/designer-auto-register.js.map +1 -1
- package/dist/designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js +2852 -0
- package/dist/designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js.map +1 -0
- package/dist/{designer-dataset-controller-CPytVNBK-DWL3SRTP.js → designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js} +1487 -1232
- package/dist/designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js.map +1 -0
- package/dist/{designer-ui-primitives-CH4RNiMa-BNXQwJPZ.js → designer-field-primitives-KBZuWN_D-B3h4jpYe.js} +871 -343
- package/dist/designer-field-primitives-KBZuWN_D-B3h4jpYe.js.map +1 -0
- package/dist/designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js +1265 -0
- package/dist/designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js.map +1 -0
- package/dist/designer.js +5 -5
- package/dist/dist-6GRboBs-.js +3305 -0
- package/dist/dist-6GRboBs-.js.map +1 -0
- package/dist/{dist-BHTClwId.js → dist-BjLjFUy1.js} +8564 -6030
- package/dist/dist-BjLjFUy1.js.map +1 -0
- package/dist/engine.js +5 -4
- package/dist/fragment-Y6YnW6wy.js +393 -0
- package/dist/fragment-Y6YnW6wy.js.map +1 -0
- package/dist/host-kit.js +297 -3
- package/dist/host-kit.js.map +1 -1
- package/dist/{host-resource-selection-5Cf_gclK-Sv4Z8UXS.js → host-resource-selection-xo2mLCD4-BR5XCcim.js} +1233 -937
- package/dist/host-resource-selection-xo2mLCD4-BR5XCcim.js.map +1 -0
- package/dist/host-tokens.css +12 -12
- package/dist/index.js +10 -10
- package/dist/level-scale-BzUjE31V.js +139 -0
- package/dist/level-scale-BzUjE31V.js.map +1 -0
- package/dist/{manager-B2CZ2b5I.js → manager-Ch0RTu_i.js} +20 -10
- package/dist/manager-Ch0RTu_i.js.map +1 -0
- package/dist/material-UbSfiuZq.js +12 -0
- package/dist/{material-BPlvEmDi.js.map → material-UbSfiuZq.js.map} +1 -1
- package/dist/material-auto-register.js +6 -6
- package/dist/material-auto-register.js.map +1 -1
- package/dist/{material-definition-B9xCZcD-.js → material-definition-BeW34dJr.js} +2 -2
- package/dist/{material-definition-B9xCZcD-.js.map → material-definition-BeW34dJr.js.map} +1 -1
- package/dist/{material-manifest-bsGl6vZZ.js → material-manifest-B1XatGPx.js} +222 -137
- package/dist/material-manifest-B1XatGPx.js.map +1 -0
- package/dist/material-schema-CLoDx-Tl.js +203 -0
- package/dist/material-schema-CLoDx-Tl.js.map +1 -0
- package/dist/{editor-descriptor-schema-Be30Wv8w.js → material-theme-C91eus78.js} +90 -28
- package/dist/material-theme-C91eus78.js.map +1 -0
- package/dist/material-validation-utils-ku_6Xxk2.js +125 -0
- package/dist/material-validation-utils-ku_6Xxk2.js.map +1 -0
- package/dist/material.js +3 -3
- package/dist/migrate-document-D3HhCVlZ.js +768 -0
- package/dist/migrate-document-D3HhCVlZ.js.map +1 -0
- package/dist/parse-AOTE9WnD.js +2308 -0
- package/dist/parse-AOTE9WnD.js.map +1 -0
- package/dist/{parse-B0hwp_yj.js → parse-B1OD1teS.js} +69 -61
- package/dist/{parse-B0hwp_yj.js.map → parse-B1OD1teS.js.map} +1 -1
- package/dist/parse-parts-BNrpdG5o.js +42 -0
- package/dist/parse-parts-BNrpdG5o.js.map +1 -0
- package/dist/{plugin-B9Xxtw7G.js → plugin-DHgh9uHh.js} +140 -94
- package/dist/plugin-DHgh9uHh.js.map +1 -0
- package/dist/plugin-core.js +93 -8
- package/dist/plugin-core.js.map +1 -0
- package/dist/plugin-manager.js +1 -1
- package/dist/plugin-package-Dr5ro6h6.js +1221 -0
- package/dist/plugin-package-Dr5ro6h6.js.map +1 -0
- package/dist/{plugin-registration-BjS_CXJU.js → plugin-registration-rsmb4GvS.js} +4 -4
- package/dist/{plugin-registration-BjS_CXJU.js.map → plugin-registration-rsmb4GvS.js.map} +1 -1
- package/dist/plugin-sdk.js +6 -6
- package/dist/{plugins-B9bwk-t6.js → plugins-DGRHgREK.js} +2 -2
- package/dist/{plugins-B9bwk-t6.js.map → plugins-DGRHgREK.js.map} +1 -1
- package/dist/plugins.js +8 -8
- package/dist/renderer.js +1 -1
- package/dist/runtime-dispatch-BfnRDtMe.js +479 -0
- package/dist/runtime-dispatch-BfnRDtMe.js.map +1 -0
- package/dist/{src-Bm7u11mN-BMeb9fvV.js → src-Bm7u11mN-_0u6cMEw.js} +60 -60
- package/dist/{src-Bm7u11mN-BMeb9fvV.js.map → src-Bm7u11mN-_0u6cMEw.js.map} +1 -1
- package/dist/{text-BVzTcUas.js → text-BNksUr5J.js} +401 -360
- package/dist/text-BNksUr5J.js.map +1 -0
- package/dist/theme-CcBXf4Ay.js +48 -0
- package/dist/theme-CcBXf4Ay.js.map +1 -0
- package/dist/{value-ref-y4_YKUP5.js → value-ref-BG_MV9C-.js} +2 -2
- package/dist/{value-ref-y4_YKUP5.js.map → value-ref-BG_MV9C-.js.map} +1 -1
- package/dist/{viewer-CrJupI8I-DZZfdHXr.js → viewer-CrJupI8I-D9dVcNw4.js} +5 -5
- package/dist/{viewer-CrJupI8I-DZZfdHXr.js.map → viewer-CrJupI8I-D9dVcNw4.js.map} +1 -1
- package/dist/viewer-auto-register.js +2 -2
- package/dist/viewer.js +2 -2
- package/dist/{contrast-CZFqj1I5.js → viewport-CiCKeAQH.js} +369 -411
- package/dist/viewport-CiCKeAQH.js.map +1 -0
- package/package.json +11 -11
- package/dist/_internal/contracts/document/blueprint-relations.d.ts +0 -16
- package/dist/_internal/contracts/document/blueprint-relations.js +0 -196
- package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-panel-mutations.d.ts +0 -5
- package/dist/_internal/engine/browser/controllers/designer-guard-controller.d.ts +0 -27
- package/dist/_internal/engine/browser/controllers/designer-scene-controller.d.ts +0 -47
- package/dist/_internal/engine/browser/controllers/panel/designer-style-rules-controller.d.ts +0 -12
- package/dist/_internal/engine/browser/dom/guard/designer-contrast-measure.d.ts +0 -24
- package/dist/_internal/engine/browser/dom/guard/designer-guard-dom.d.ts +0 -15
- package/dist/_internal/engine/browser/dom/workspace/designer-canvas-hint-dom.d.ts +0 -6
- package/dist/_internal/engine/browser/viewport/designer-canvas-snap-index.d.ts +0 -9
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-connection.d.ts +0 -14
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-mutation-helpers.d.ts +0 -20
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-mutations.d.ts +0 -15
- package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-node-ids.d.ts +0 -12
- package/dist/_internal/engine/common/operations/designer-name-validation.d.ts +0 -2
- package/dist/_internal/engine/common/operations/scene/designer-scene.d.ts +0 -55
- package/dist/_internal/engine/common/operations/style/designer-host-conditional-style.d.ts +0 -21
- package/dist/_internal/engine/common/operations/style/designer-style-rules.d.ts +0 -25
- package/dist/_internal/engine/common/validation/designer-guard.d.ts +0 -49
- package/dist/_internal/engine/designer-blueprint-workbench-panel-C2MoZwKA.js +0 -3548
- package/dist/_internal/engine/designer-element/api/designer-element-guard.d.ts +0 -13
- package/dist/_internal/engine/designer-element/api/designer-element-scene.d.ts +0 -14
- package/dist/_internal/engine/designer-left-panel-groups-dom-WMsH33zw.js +0 -573
- package/dist/_internal/engine/host-resource-selection-5Cf_gclK.js +0 -2188
- package/dist/_internal/renderer/style-rules.d.ts +0 -9
- package/dist/contrast-CZFqj1I5.js.map +0 -1
- package/dist/dataset-port-CUsMmX2x.js +0 -65
- package/dist/dataset-port-CUsMmX2x.js.map +0 -1
- package/dist/designer-Byw45cUM.js.map +0 -1
- package/dist/designer-blueprint-workbench-panel-C2MoZwKA-CbXkv78O.js +0 -3517
- package/dist/designer-blueprint-workbench-panel-C2MoZwKA-CbXkv78O.js.map +0 -1
- package/dist/designer-dataset-controller-CPytVNBK-DWL3SRTP.js.map +0 -1
- package/dist/designer-left-panel-groups-dom-WMsH33zw-B9pl8loh.js +0 -557
- package/dist/designer-left-panel-groups-dom-WMsH33zw-B9pl8loh.js.map +0 -1
- package/dist/designer-ui-primitives-CH4RNiMa-BNXQwJPZ.js.map +0 -1
- package/dist/dist-BHTClwId.js.map +0 -1
- package/dist/dist-DfAV2jGI.js +0 -2185
- package/dist/dist-DfAV2jGI.js.map +0 -1
- package/dist/editor-descriptor-schema-Be30Wv8w.js.map +0 -1
- package/dist/host-resource-selection-5Cf_gclK-Sv4Z8UXS.js.map +0 -1
- package/dist/manager-B2CZ2b5I.js.map +0 -1
- package/dist/material-BPlvEmDi.js +0 -12
- package/dist/material-manifest-bsGl6vZZ.js.map +0 -1
- package/dist/material-schema-CtxTkCP2.js +0 -267
- package/dist/material-schema-CtxTkCP2.js.map +0 -1
- package/dist/migrate-document-BJUN7NPv.js +0 -436
- package/dist/migrate-document-BJUN7NPv.js.map +0 -1
- package/dist/parse-BQw3u9_4.js +0 -1126
- package/dist/parse-BQw3u9_4.js.map +0 -1
- package/dist/plugin-B9Xxtw7G.js.map +0 -1
- package/dist/plugin-package-BT-pCoTt.js +0 -174
- package/dist/plugin-package-BT-pCoTt.js.map +0 -1
- package/dist/runtime-dispatch-Dt9fhcI5.js +0 -360
- package/dist/runtime-dispatch-Dt9fhcI5.js.map +0 -1
- package/dist/schema-C38FI_z2.js +0 -541
- package/dist/schema-C38FI_z2.js.map +0 -1
- package/dist/text-BVzTcUas.js.map +0 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { type ScreenBlueprint, type ScreenBlueprintCondition, type ScreenBlueprintEdge, type ScreenBlueprintLayoutNode, type ScreenBlueprintLayoutViewport, type ScreenBlueprintNode, type ScreenBlueprintNodeKind, type ScreenBlueprintSemanticRole, type ScreenBlueprintValueExpression, type ScreenBlueprintVisibilityTransition, type ScreenDocument } from '../../../../contracts/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* 蓝图节点图的作者期操作(ADR-0107 §2.1、§2.6)。
|
|
4
|
+
*
|
|
5
|
+
* 全部是纯函数:输入当前蓝图(必要时连同文档),输出新蓝图或 `null`(拒绝)。结构合法性的最终裁决仍是
|
|
6
|
+
* contracts 的文档解析;这里提前拒绝作者面能识别的非法操作(锚点不属于节点、重复连线、条件成环),
|
|
7
|
+
* 并为新连线补齐目标锚点要求的附加字段默认值。
|
|
8
|
+
*/
|
|
9
|
+
export interface DesignerBlueprintNodePosition {
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
}
|
|
13
|
+
/** 单例节点 id:宿主(业务系统)与实例就绪。 */
|
|
14
|
+
export declare const HOST_BLUEPRINT_NODE_ID = "host";
|
|
15
|
+
export declare const LIFECYCLE_BLUEPRINT_NODE_ID = "lifecycle";
|
|
16
|
+
/** 语义连线在画布上的锚点:组件节点右侧的独立圆点,不进入文档。 */
|
|
17
|
+
export declare const SEMANTIC_BLUEPRINT_PORT = "semantic";
|
|
18
|
+
export declare const DEFAULT_BLUEPRINT_TIMER_SECONDS = 5;
|
|
19
|
+
export declare const DEFAULT_BLUEPRINT_TRANSITION: ScreenBlueprintVisibilityTransition;
|
|
20
|
+
export declare const DEFAULT_BLUEPRINT_CONDITION: ScreenBlueprintCondition;
|
|
21
|
+
export declare function componentBlueprintNodeId(componentId: string): string;
|
|
22
|
+
export declare function variableBlueprintNodeId(variableId: string): string;
|
|
23
|
+
export declare function findBlueprintNode(blueprint: ScreenBlueprint, nodeId: string): ScreenBlueprintNode | undefined;
|
|
24
|
+
export declare function findBlueprintEdge(blueprint: ScreenBlueprint, edgeId: string): ScreenBlueprintEdge | undefined;
|
|
25
|
+
export declare function findComponentBlueprintNode(blueprint: ScreenBlueprint, componentId: string): ScreenBlueprintNode | undefined;
|
|
26
|
+
export declare function subCanvasBlueprintNodeId(canvasId: string): string;
|
|
27
|
+
export declare const MAIN_CANVAS_BLUEPRINT_NODE_ID = "main-canvas";
|
|
28
|
+
export declare function findSubCanvasBlueprintNode(blueprint: ScreenBlueprint, canvasId: string): ScreenBlueprintNode | undefined;
|
|
29
|
+
export declare function findVariableBlueprintNode(blueprint: ScreenBlueprint, variableId: string): ScreenBlueprintNode | undefined;
|
|
30
|
+
/** 在已用 id 之外分配 `<prefix>-<n>`;节点与连线共用一个 id 空间,便于选择与诊断定位。 */
|
|
31
|
+
export declare function allocateBlueprintId(blueprint: ScreenBlueprint, prefix: string): string;
|
|
32
|
+
export type DesignerBlueprintNodeSpec = {
|
|
33
|
+
readonly kind: 'component';
|
|
34
|
+
readonly componentId: string;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: 'variable';
|
|
37
|
+
readonly variableId: string;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'sub-canvas';
|
|
40
|
+
readonly canvasId: string;
|
|
41
|
+
} | {
|
|
42
|
+
readonly kind: 'host';
|
|
43
|
+
} | {
|
|
44
|
+
readonly kind: 'lifecycle';
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: 'main-canvas';
|
|
47
|
+
} | {
|
|
48
|
+
readonly kind: 'timer';
|
|
49
|
+
readonly intervalSeconds?: number;
|
|
50
|
+
readonly name?: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: 'condition';
|
|
53
|
+
readonly condition?: ScreenBlueprintCondition;
|
|
54
|
+
readonly name?: string;
|
|
55
|
+
};
|
|
56
|
+
export interface DesignerBlueprintInsertResult {
|
|
57
|
+
readonly blueprint: ScreenBlueprint;
|
|
58
|
+
readonly nodeId: string;
|
|
59
|
+
/** 实体 / 单例节点已存在时为 false:返回已有节点,蓝图只在给了位置时移动它。 */
|
|
60
|
+
readonly created: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 加入节点。组件 / 变量 / 宿主 / 实例就绪各自唯一:已有节点时不重复创建;定时器与条件每次新建。
|
|
64
|
+
* 引用的组件或变量不存在于文档时拒绝。
|
|
65
|
+
*/
|
|
66
|
+
export declare function insertDesignerBlueprintNode(document: ScreenDocument, spec: DesignerBlueprintNodeSpec, position?: DesignerBlueprintNodePosition): DesignerBlueprintInsertResult | null;
|
|
67
|
+
export type DesignerBlueprintConnectionFailureReason = 'invalid' | 'duplicate' | 'cycle' | 'unavailable';
|
|
68
|
+
export type DesignerBlueprintConnectionResult = {
|
|
69
|
+
readonly ok: true;
|
|
70
|
+
readonly blueprint: ScreenBlueprint;
|
|
71
|
+
readonly edgeId: string;
|
|
72
|
+
} | {
|
|
73
|
+
readonly ok: false;
|
|
74
|
+
readonly reason: DesignerBlueprintConnectionFailureReason;
|
|
75
|
+
};
|
|
76
|
+
export interface DesignerBlueprintConnectionContext {
|
|
77
|
+
/** 组件节点的事件锚点是否可连(manifest 声明且能力可用)。 */
|
|
78
|
+
readonly isEventAvailable: (componentId: string, eventName: string) => boolean;
|
|
79
|
+
/** 宿主动作锚点是否已声明;宿主事件锚点总可连(事件名由作者决定)。 */
|
|
80
|
+
readonly isHostActionAvailable: (actionId: string) => boolean;
|
|
81
|
+
/** 组件声明的状态 id(ADR-0110):没有状态时不能连状态锚点;`set-state` 默认取第一个。 */
|
|
82
|
+
readonly componentStateIds?: (componentId: string) => readonly string[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 连线:输出锚点 → 输入锚点;两端都是组件节点且锚点为 `semantic` 时连语义线。
|
|
86
|
+
* 新连线按目标锚点补默认附加字段:变量 `set` 写入事件负载、宿主出口传递事件负载、组件显隐带淡入过渡。
|
|
87
|
+
*/
|
|
88
|
+
export declare function connectDesignerBlueprintPorts(blueprint: ScreenBlueprint, from: {
|
|
89
|
+
readonly node: string;
|
|
90
|
+
readonly port: string;
|
|
91
|
+
}, to: {
|
|
92
|
+
readonly node: string;
|
|
93
|
+
readonly port: string;
|
|
94
|
+
}, context: DesignerBlueprintConnectionContext): DesignerBlueprintConnectionResult;
|
|
95
|
+
/** 删除节点:一并删除其全部连线与布局位置。 */
|
|
96
|
+
export declare function removeDesignerBlueprintNodes(blueprint: ScreenBlueprint, nodeIds: ReadonlySet<string>): ScreenBlueprint;
|
|
97
|
+
export declare function removeDesignerBlueprintEdges(blueprint: ScreenBlueprint, edgeIds: ReadonlySet<string>): ScreenBlueprint;
|
|
98
|
+
/** 删除选区:节点(含连线)与连线混合;空选区或全部不存在时返回 `null`。 */
|
|
99
|
+
export declare function deleteDesignerBlueprintSelection(blueprint: ScreenBlueprint, selection: {
|
|
100
|
+
readonly nodes: readonly string[];
|
|
101
|
+
readonly edges: readonly string[];
|
|
102
|
+
}): ScreenBlueprint | null;
|
|
103
|
+
/** 文档删除了组件 / 变量:移除引用它们的实体节点(及连线、布局)。 */
|
|
104
|
+
export declare function pruneDesignerBlueprintEntities(blueprint: ScreenBlueprint, removed: {
|
|
105
|
+
readonly componentIds?: ReadonlySet<string>;
|
|
106
|
+
readonly variableIds?: ReadonlySet<string>;
|
|
107
|
+
readonly subCanvasIds?: ReadonlySet<string>;
|
|
108
|
+
}): ScreenBlueprint;
|
|
109
|
+
export type DesignerBlueprintNodePatch = {
|
|
110
|
+
readonly type: 'name';
|
|
111
|
+
readonly name: string | null;
|
|
112
|
+
} | {
|
|
113
|
+
readonly type: 'interval';
|
|
114
|
+
readonly intervalSeconds: number;
|
|
115
|
+
} | {
|
|
116
|
+
readonly type: 'condition';
|
|
117
|
+
readonly condition: ScreenBlueprintCondition;
|
|
118
|
+
} | {
|
|
119
|
+
readonly type: 'enabled';
|
|
120
|
+
readonly enabled: boolean;
|
|
121
|
+
};
|
|
122
|
+
export declare function updateDesignerBlueprintNode(blueprint: ScreenBlueprint, nodeId: string, patch: DesignerBlueprintNodePatch): ScreenBlueprint | null;
|
|
123
|
+
export declare function setDesignerBlueprintNodesEnabled(blueprint: ScreenBlueprint, nodeIds: ReadonlySet<string>, enabled: boolean): ScreenBlueprint;
|
|
124
|
+
export type DesignerBlueprintEdgePatch = {
|
|
125
|
+
readonly type: 'value';
|
|
126
|
+
readonly value: ScreenBlueprintValueExpression;
|
|
127
|
+
}
|
|
128
|
+
/** `null` 去掉参数:只对参数可选的锚点(弹框打开 / 切换)有效。 */
|
|
129
|
+
| {
|
|
130
|
+
readonly type: 'payload';
|
|
131
|
+
readonly payload: ScreenBlueprintValueExpression | null;
|
|
132
|
+
} | {
|
|
133
|
+
readonly type: 'transition';
|
|
134
|
+
readonly transition: ScreenBlueprintVisibilityTransition | null;
|
|
135
|
+
} | {
|
|
136
|
+
readonly type: 'role';
|
|
137
|
+
readonly role: ScreenBlueprintSemanticRole;
|
|
138
|
+
}
|
|
139
|
+
/** 改目标锚点(如显示 → 隐藏);附加字段按新锚点的要求保留、补齐或去掉。 */
|
|
140
|
+
| {
|
|
141
|
+
readonly type: 'target-port';
|
|
142
|
+
readonly port: string;
|
|
143
|
+
readonly stateId?: string;
|
|
144
|
+
}
|
|
145
|
+
/** 「设置状态」的目标状态(ADR-0110 §2.4)。 */
|
|
146
|
+
| {
|
|
147
|
+
readonly type: 'state';
|
|
148
|
+
readonly stateId: string;
|
|
149
|
+
};
|
|
150
|
+
export declare function updateDesignerBlueprintEdge(blueprint: ScreenBlueprint, edgeId: string, patch: DesignerBlueprintEdgePatch): ScreenBlueprint | null;
|
|
151
|
+
/**
|
|
152
|
+
* 调整同源连线的执行顺序(深度优先按 `edges` 顺序,ADR-0107 §2.3):与同一输出锚点的上一条 / 下一条
|
|
153
|
+
* 连线交换位置。已在端点时返回 `null`。
|
|
154
|
+
*/
|
|
155
|
+
export declare function reorderDesignerBlueprintEdge(blueprint: ScreenBlueprint, edgeId: string, direction: 'earlier' | 'later'): ScreenBlueprint | null;
|
|
156
|
+
/** 同源连线中的执行序号(从 1 起)与同源总数;不是 flow 连线时返回 `undefined`。 */
|
|
157
|
+
export declare function readDesignerBlueprintEdgeOrder(blueprint: ScreenBlueprint, edgeId: string): {
|
|
158
|
+
readonly order: number;
|
|
159
|
+
readonly count: number;
|
|
160
|
+
} | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* 复制节点:只复制可重复的定时器与条件节点,连同复制集合内部的连线;实体与单例节点不可复制。
|
|
163
|
+
* 新节点相对原节点平移 `offset`。没有可复制节点时返回 `null`。
|
|
164
|
+
*/
|
|
165
|
+
export declare function duplicateDesignerBlueprintNodes(blueprint: ScreenBlueprint, nodeIds: readonly string[], offset?: DesignerBlueprintNodePosition): {
|
|
166
|
+
readonly blueprint: ScreenBlueprint;
|
|
167
|
+
readonly nodeIds: readonly string[];
|
|
168
|
+
} | null;
|
|
169
|
+
/** 布局提交:只保留仍存在的节点的位置。 */
|
|
170
|
+
export declare function commitDesignerBlueprintLayout(blueprint: ScreenBlueprint, nodes: readonly ScreenBlueprintLayoutNode[], viewport?: ScreenBlueprintLayoutViewport): ScreenBlueprint;
|
|
171
|
+
export declare function commitDesignerBlueprintViewport(blueprint: ScreenBlueprint, viewport: ScreenBlueprintLayoutViewport): ScreenBlueprint;
|
|
172
|
+
/** 蓝图里引用该变量的位置:变量节点、条件表达式、连线写入值 / 负载。 */
|
|
173
|
+
export declare function designerBlueprintReferencesVariable(blueprint: ScreenBlueprint, variableId: string): boolean;
|
|
174
|
+
export declare function expressionReferencesVariable(expression: ScreenBlueprintValueExpression, variableId: string): boolean;
|
|
175
|
+
/** 连线上游最近的触发节点(跳过条件节点);用于判断写入值能否取事件字段。 */
|
|
176
|
+
export declare function designerBlueprintEdgeTriggers(blueprint: ScreenBlueprint, edgeId: string): readonly {
|
|
177
|
+
readonly node: ScreenBlueprintNode;
|
|
178
|
+
readonly port: string;
|
|
179
|
+
}[];
|
|
180
|
+
export declare function blueprintNodeKindOf(blueprint: ScreenBlueprint): (nodeId: string) => ScreenBlueprintNodeKind | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* 把分片节点图并入文档蓝图(ADR-0100 F5、ADR-0107):组件节点的 `componentId`(分片 key)改写为新组件 id,
|
|
183
|
+
* 节点 / 连线 id 在文档内去重;宿主与实例就绪并入文档已有单例;与已有连线重复的连线跳过。
|
|
184
|
+
*/
|
|
185
|
+
export declare function mergeDesignerBlueprintFragment(blueprint: ScreenBlueprint, fragment: {
|
|
186
|
+
readonly nodes: readonly ScreenBlueprintNode[];
|
|
187
|
+
readonly edges: readonly ScreenBlueprintEdge[];
|
|
188
|
+
}, componentIdsByKey: ReadonlyMap<string, string>): {
|
|
189
|
+
readonly blueprint: ScreenBlueprint;
|
|
190
|
+
readonly edgeIds: readonly string[];
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* 从文档蓝图取出只涉及所选组件的子图(「将选区存为分片」):组件节点的 `componentId` 改写为分片 key;
|
|
194
|
+
* 两端都在子图里的连线保留,连到子图外的连线与引用变量的连线计为舍弃。条件 / 定时器 / 宿主 /
|
|
195
|
+
* 实例就绪节点只在被保留的连线用到时带上。
|
|
196
|
+
*/
|
|
197
|
+
export declare function extractDesignerBlueprintFragment(blueprint: ScreenBlueprint, componentKeys: ReadonlyMap<string, string>): {
|
|
198
|
+
readonly nodes: readonly ScreenBlueprintNode[];
|
|
199
|
+
readonly edges: readonly ScreenBlueprintEdge[];
|
|
200
|
+
readonly dropped: number;
|
|
201
|
+
};
|
|
202
|
+
export declare function isTimerInterval(value: number): boolean;
|
|
203
|
+
//# sourceMappingURL=designer-blueprint-graph.d.ts.map
|
package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-model-types.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DesignerBlueprintEventOption
|
|
1
|
+
/** 组件事件在作者面的可用性投影:manifest 声明 + 能力门禁。 */
|
|
2
|
+
export interface DesignerBlueprintEventOption {
|
|
3
3
|
readonly componentId: string;
|
|
4
4
|
readonly componentName: string;
|
|
5
5
|
readonly materialType: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly available: boolean;
|
|
9
|
+
readonly requiredCapability?: string;
|
|
6
10
|
}
|
|
7
11
|
//# sourceMappingURL=designer-blueprint-model-types.d.ts.map
|
|
@@ -1,12 +1,63 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ScreenBlueprintNode, type ScreenDocument } from '../../../../contracts/index.js';
|
|
2
2
|
import type { BaseScreenMaterialCatalog, BaseScreenRuntimeContributionIndex } from '../../../../plugin-core/index.js';
|
|
3
|
+
import { type DesignerBlueprintConnectionContext } from './designer-blueprint-graph.js';
|
|
3
4
|
import type { DesignerBlueprintEventOption } from './designer-blueprint-model-types.js';
|
|
4
|
-
import type { BaseScreenBlueprintCanvasGraph, BaseScreenBlueprintCanvasNode } from './designer-blueprint-protocol.js';
|
|
5
|
+
import type { BaseScreenBlueprintCanvasGraph, BaseScreenBlueprintCanvasNode, BaseScreenBlueprintCanvasSimulationTrigger } from './designer-blueprint-protocol.js';
|
|
6
|
+
export * from './designer-blueprint-graph.js';
|
|
5
7
|
export type { DesignerBlueprintEventOption } from './designer-blueprint-model-types.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 投影所需的作者面文案。common/operations 不依赖 ui-text 子层(engine-import 门禁),
|
|
10
|
+
* 由浏览器层传入 `DESIGNER_UI_TEXT.blueprint`;这里只声明结构。
|
|
11
|
+
*/
|
|
12
|
+
export interface DesignerBlueprintProjectionText {
|
|
13
|
+
readonly graph: {
|
|
14
|
+
readonly nodeKinds: Readonly<Record<ScreenBlueprintNode['kind'], string>>;
|
|
15
|
+
readonly nodeKindHints: Readonly<Record<ScreenBlueprintNode['kind'], string>>;
|
|
16
|
+
readonly ports: Readonly<Record<string, string>>;
|
|
17
|
+
/** 从画布锚点文案按显示方式区分(锚点 id 相同):页面「进入 / 返回」,弹框「打开 / 关闭」。 */
|
|
18
|
+
readonly subCanvasPorts: Readonly<Record<'page' | 'popup', Readonly<Record<string, string>>>>;
|
|
19
|
+
readonly mainCanvasPorts: Readonly<Record<string, string>>;
|
|
20
|
+
readonly subCanvasKinds: Readonly<Record<'page' | 'popup', string>>;
|
|
21
|
+
readonly hostEventPort: (name: string) => string;
|
|
22
|
+
readonly hostActionPort: (name: string) => string;
|
|
23
|
+
readonly newHostEventPort: string;
|
|
24
|
+
readonly missingEventPort: (name: string) => string;
|
|
25
|
+
readonly unavailablePort: string;
|
|
26
|
+
readonly missingEntity: string;
|
|
27
|
+
readonly timerTitle: (seconds: number) => string;
|
|
28
|
+
readonly conditionTitle: string;
|
|
29
|
+
};
|
|
30
|
+
readonly variableKind: Readonly<Record<'static' | 'data-source' | 'url-query', string>>;
|
|
31
|
+
readonly semanticRoles: Readonly<Record<'related' | 'detail' | 'group' | 'drill-down', string>>;
|
|
32
|
+
readonly conditionOperator: (operator: string) => string;
|
|
33
|
+
readonly hostActionUndeclared: (actionId: string) => string;
|
|
34
|
+
}
|
|
8
35
|
export declare function buildDesignerBlueprintEventOptions(document: ScreenDocument, catalog: BaseScreenMaterialCatalog | undefined, runtimeContributions: BaseScreenRuntimeContributionIndex | undefined): readonly DesignerBlueprintEventOption[];
|
|
9
|
-
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
36
|
+
/** 连线判定所需的可用性上下文:事件锚点看 manifest 与能力,动作锚点看插件声明。 */
|
|
37
|
+
export declare function buildDesignerBlueprintConnectionContext(document: ScreenDocument, catalog: BaseScreenMaterialCatalog | undefined, runtimeContributions: BaseScreenRuntimeContributionIndex | undefined): DesignerBlueprintConnectionContext;
|
|
38
|
+
/** 左侧节点库的一项:文档里的组件 / 变量,标出是否已在图中。 */
|
|
39
|
+
export interface DesignerBlueprintLibraryEntry {
|
|
40
|
+
readonly kind: 'component' | 'variable';
|
|
41
|
+
readonly entityId: string;
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly subtitle: string;
|
|
44
|
+
readonly depth: number;
|
|
45
|
+
readonly nodeId?: string;
|
|
46
|
+
readonly eventCount: number;
|
|
47
|
+
}
|
|
48
|
+
export declare function buildDesignerBlueprintComponentLibrary(document: ScreenDocument, catalog: BaseScreenMaterialCatalog | undefined, runtimeContributions: BaseScreenRuntimeContributionIndex | undefined): readonly DesignerBlueprintLibraryEntry[];
|
|
49
|
+
export declare function buildDesignerBlueprintVariableLibrary(document: ScreenDocument, text: DesignerBlueprintProjectionText): readonly DesignerBlueprintLibraryEntry[];
|
|
50
|
+
/**
|
|
51
|
+
* 文档节点图 → 画布图。节点、连线一一对应文档,不再派生结构 / 依赖边(ADR-0107 D2)。
|
|
52
|
+
* 没有布局位置的节点按连线分层自动摆放:列 = 距最近触发源的最长路径,行 = 列内顺序。
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildDesignerBlueprintGraph(document: ScreenDocument, catalog: BaseScreenMaterialCatalog | undefined, runtimeContributions: BaseScreenRuntimeContributionIndex | undefined, text: DesignerBlueprintProjectionText): BaseScreenBlueprintCanvasGraph;
|
|
55
|
+
/** 可模拟的触发锚点:启用节点上已有连线的触发输出(事件、就绪、tick、值更新)。 */
|
|
56
|
+
export declare function buildDesignerBlueprintSimulationTriggers(graph: BaseScreenBlueprintCanvasGraph, document: ScreenDocument): readonly BaseScreenBlueprintCanvasSimulationTrigger[];
|
|
57
|
+
/**
|
|
58
|
+
* 卡片几何来自 `designer-blueprint-geometry.ts`(标题 44 + 上下内边距 25 + 描边 2 + 每行锚点 27,
|
|
59
|
+
* 最小 108),与画布 `height()` 同一公式。
|
|
60
|
+
* 自动摆放的节点按实际卡片高度在列内重新堆叠,避免高卡片互相压住;已保存位置的节点不动。
|
|
61
|
+
*/
|
|
62
|
+
export declare function estimateDesignerBlueprintNodeHeight(node: BaseScreenBlueprintCanvasNode): number;
|
|
12
63
|
//# sourceMappingURL=designer-blueprint-model.d.ts.map
|
package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-protocol-types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScreenBlueprintLayoutNode, ScreenBlueprintLayoutViewport, ScreenDiagnostic, ScreenJsonValue } from '../../../../contracts/index.js';
|
|
1
|
+
import type { ScreenBlueprintCondition, ScreenBlueprintLayoutNode, ScreenBlueprintLayoutViewport, ScreenBlueprintSemanticRole, ScreenBlueprintValueExpression, ScreenBlueprintVisibilityTransition, ScreenDiagnostic, ScreenJsonValue } from '../../../../contracts/index.js';
|
|
2
2
|
export declare const BASE_SCREEN_DESIGNER_BLUEPRINT_CANVAS_SLOT: 'base-screen-designer-blueprint-canvas';
|
|
3
3
|
export declare const BASE_SCREEN_BLUEPRINT_CANVAS_STATE_EVENT: 'base-screen-blueprint-canvas-state';
|
|
4
4
|
export declare const BASE_SCREEN_BLUEPRINT_CANVAS_COMMAND_EVENT: 'base-screen-blueprint-canvas-command';
|
|
@@ -6,10 +6,13 @@ export declare const BASE_SCREEN_BLUEPRINT_NODE_DRAG_MIME: 'application/x-base-s
|
|
|
6
6
|
export declare const BASE_SCREEN_DESIGNER_WORKBENCH_MODE_CHANGE_EVENT: 'base-screen-designer-workbench-mode-change';
|
|
7
7
|
export type BaseScreenDesignerWorkbenchMode = 'canvas' | 'blueprint';
|
|
8
8
|
export type BaseScreenDesignerWorkbenchModeChangeReason = 'user' | 'api' | 'fallback';
|
|
9
|
-
export type BaseScreenBlueprintCanvasNodeKind = 'component' | 'variable' | 'host';
|
|
10
|
-
export type BaseScreenBlueprintCanvasEdgeKind = '
|
|
9
|
+
export type BaseScreenBlueprintCanvasNodeKind = 'component' | 'variable' | 'host' | 'lifecycle' | 'timer' | 'condition' | 'sub-canvas' | 'main-canvas';
|
|
10
|
+
export type BaseScreenBlueprintCanvasEdgeKind = 'flow' | 'semantic';
|
|
11
|
+
/** 连线的作者面分类:交互联动、数据共享、流程控制、业务出口、语义关联。 */
|
|
12
|
+
export type BaseScreenBlueprintCanvasEdgeCategory = 'interaction' | 'data' | 'flow' | 'exit' | 'semantic';
|
|
13
|
+
/** 工作台聚焦目标:组件 / 变量定位到其节点,`node` / `edge` 直接给蓝图 id。 */
|
|
11
14
|
export interface BaseScreenDesignerWorkbenchFocus {
|
|
12
|
-
readonly kind: 'component' | 'variable' | '
|
|
15
|
+
readonly kind: 'component' | 'variable' | 'node' | 'edge';
|
|
13
16
|
readonly id: string;
|
|
14
17
|
}
|
|
15
18
|
export interface BaseScreenDesignerSetWorkbenchModeOptions {
|
|
@@ -20,55 +23,66 @@ export interface BaseScreenDesignerWorkbenchModeChangeEventDetail {
|
|
|
20
23
|
readonly mode: BaseScreenDesignerWorkbenchMode;
|
|
21
24
|
readonly reason: BaseScreenDesignerWorkbenchModeChangeReason;
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
/** 节点上的一个锚点。`id` 即文档里的锚点 id;语义锚点固定为 `semantic`,不进入 flow 连线。 */
|
|
27
|
+
export interface BaseScreenBlueprintCanvasPort {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly direction: 'in' | 'out';
|
|
25
30
|
readonly label: string;
|
|
31
|
+
/** 能力或声明缺失时为 false:可见但不可连,提示原因。 */
|
|
26
32
|
readonly available: boolean;
|
|
27
|
-
readonly
|
|
33
|
+
readonly connected: boolean;
|
|
34
|
+
readonly unavailableReason?: string;
|
|
28
35
|
}
|
|
29
36
|
export interface BaseScreenBlueprintCanvasNode {
|
|
30
37
|
readonly id: string;
|
|
31
38
|
readonly kind: BaseScreenBlueprintCanvasNodeKind;
|
|
32
39
|
readonly x: number;
|
|
33
40
|
readonly y: number;
|
|
34
|
-
readonly
|
|
41
|
+
readonly title: string;
|
|
42
|
+
readonly subtitle: string;
|
|
43
|
+
readonly enabled: boolean;
|
|
44
|
+
/** 锚点行先输出后输入;语义锚点单列。 */
|
|
45
|
+
readonly outputs: readonly BaseScreenBlueprintCanvasPort[];
|
|
46
|
+
readonly inputs: readonly BaseScreenBlueprintCanvasPort[];
|
|
47
|
+
readonly semantic: boolean;
|
|
48
|
+
/** 仅定时器 / 条件可改名、可复制。 */
|
|
49
|
+
readonly renamable: boolean;
|
|
50
|
+
readonly duplicable: boolean;
|
|
35
51
|
readonly componentId?: string;
|
|
36
|
-
readonly componentName?: string;
|
|
37
52
|
readonly materialType?: string;
|
|
38
53
|
readonly hidden?: boolean;
|
|
39
|
-
readonly parentId?: string;
|
|
40
|
-
readonly childCount?: number;
|
|
41
|
-
readonly isContainer?: boolean;
|
|
42
|
-
readonly events?: readonly BaseScreenBlueprintCanvasEventOption[];
|
|
43
54
|
readonly variableId?: string;
|
|
44
|
-
readonly variableName?: string;
|
|
45
55
|
readonly variableType?: 'static' | 'data-source' | 'url-query';
|
|
46
|
-
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
56
|
+
/** 从画布节点(ADR-0109)引用的从画布 id 与其显示方式(从画布缺失时无显示方式)。 */
|
|
57
|
+
readonly canvasId?: string;
|
|
58
|
+
readonly canvasDisplay?: 'page' | 'popup';
|
|
59
|
+
readonly intervalSeconds?: number;
|
|
60
|
+
readonly name?: string;
|
|
61
|
+
readonly condition?: ScreenBlueprintCondition;
|
|
62
|
+
readonly inboundCount: number;
|
|
63
|
+
readonly outboundCount: number;
|
|
54
64
|
}
|
|
55
65
|
export interface BaseScreenBlueprintCanvasEdge {
|
|
56
66
|
readonly id: string;
|
|
67
|
+
readonly kind: BaseScreenBlueprintCanvasEdgeKind;
|
|
68
|
+
readonly category: BaseScreenBlueprintCanvasEdgeCategory;
|
|
57
69
|
readonly source: string;
|
|
70
|
+
readonly sourcePort: string;
|
|
58
71
|
readonly target: string;
|
|
59
|
-
readonly
|
|
60
|
-
|
|
61
|
-
readonly
|
|
62
|
-
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
+
readonly targetPort: string;
|
|
73
|
+
/** 悬停 / 选中时显示的短标签。 */
|
|
74
|
+
readonly label: string;
|
|
75
|
+
/** flow 连线:同源锚点内的执行序号(从 1 起)与同源总数。 */
|
|
76
|
+
readonly order?: number;
|
|
77
|
+
readonly siblingCount?: number;
|
|
78
|
+
readonly role?: ScreenBlueprintSemanticRole;
|
|
79
|
+
readonly value?: ScreenBlueprintValueExpression;
|
|
80
|
+
readonly payload?: ScreenBlueprintValueExpression;
|
|
81
|
+
readonly transition?: ScreenBlueprintVisibilityTransition;
|
|
82
|
+
/** 「设置状态」的目标状态(ADR-0110)。 */
|
|
83
|
+
readonly stateId?: string;
|
|
84
|
+
/** 任一端点停用时为 false:连线淡显。 */
|
|
85
|
+
readonly active: boolean;
|
|
72
86
|
}
|
|
73
87
|
export interface BaseScreenBlueprintCanvasGraph {
|
|
74
88
|
readonly nodes: readonly BaseScreenBlueprintCanvasNode[];
|
|
@@ -87,25 +101,62 @@ export type BaseScreenBlueprintCanvasInsertNode = {
|
|
|
87
101
|
readonly kind: 'variable';
|
|
88
102
|
readonly variableId: string;
|
|
89
103
|
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
104
|
+
} | {
|
|
105
|
+
readonly kind: 'sub-canvas';
|
|
106
|
+
readonly canvasId: string;
|
|
107
|
+
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
108
|
+
} | {
|
|
109
|
+
readonly kind: 'main-canvas';
|
|
110
|
+
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
90
111
|
} | {
|
|
91
112
|
readonly kind: 'host';
|
|
92
113
|
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
114
|
+
} | {
|
|
115
|
+
readonly kind: 'lifecycle';
|
|
116
|
+
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
117
|
+
} | {
|
|
118
|
+
readonly kind: 'timer';
|
|
119
|
+
readonly intervalSeconds?: number;
|
|
120
|
+
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
121
|
+
} | {
|
|
122
|
+
readonly kind: 'condition';
|
|
123
|
+
readonly position?: BaseScreenBlueprintCanvasNodePosition;
|
|
93
124
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
readonly
|
|
97
|
-
|
|
125
|
+
/** 多选:节点与连线可同时选中;两者都空即无选择。 */
|
|
126
|
+
export interface BaseScreenBlueprintCanvasSelection {
|
|
127
|
+
readonly nodes: readonly string[];
|
|
128
|
+
readonly edges: readonly string[];
|
|
129
|
+
}
|
|
130
|
+
export declare const EMPTY_BLUEPRINT_CANVAS_SELECTION: BaseScreenBlueprintCanvasSelection;
|
|
131
|
+
export interface BaseScreenBlueprintCanvasTraceStep {
|
|
132
|
+
readonly kind: 'trigger' | 'condition' | 'action' | 'cascade' | 'request' | 'error';
|
|
133
|
+
readonly nodeId?: string;
|
|
134
|
+
readonly edgeId?: string;
|
|
135
|
+
readonly passed?: boolean;
|
|
136
|
+
readonly depth: number;
|
|
137
|
+
readonly text: string;
|
|
138
|
+
}
|
|
98
139
|
export interface BaseScreenBlueprintCanvasTrace {
|
|
140
|
+
readonly trigger: {
|
|
141
|
+
readonly nodeId: string;
|
|
142
|
+
readonly port: string;
|
|
143
|
+
};
|
|
99
144
|
readonly executedEdgeIds: readonly string[];
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
145
|
+
readonly visitedNodeIds: readonly string[];
|
|
146
|
+
readonly steps: readonly BaseScreenBlueprintCanvasTraceStep[];
|
|
147
|
+
readonly failed: boolean;
|
|
103
148
|
}
|
|
104
149
|
export interface BaseScreenBlueprintCanvasCommandResult {
|
|
105
150
|
readonly commandId: string;
|
|
106
151
|
readonly status: 'accepted' | 'rejected';
|
|
107
152
|
readonly diagnostics: readonly ScreenDiagnostic[];
|
|
108
153
|
}
|
|
154
|
+
/** 可模拟的触发锚点:每个启用节点上有连线的事件 / 就绪 / tick / data-updated 输出。 */
|
|
155
|
+
export interface BaseScreenBlueprintCanvasSimulationTrigger {
|
|
156
|
+
readonly nodeId: string;
|
|
157
|
+
readonly port: string;
|
|
158
|
+
readonly label: string;
|
|
159
|
+
}
|
|
109
160
|
export interface BaseScreenBlueprintCanvasState {
|
|
110
161
|
readonly generation: number;
|
|
111
162
|
readonly documentRevision: number;
|
|
@@ -117,10 +168,12 @@ export interface BaseScreenBlueprintCanvasState {
|
|
|
117
168
|
readonly selection: BaseScreenBlueprintCanvasSelection;
|
|
118
169
|
readonly diagnostics: readonly ScreenDiagnostic[];
|
|
119
170
|
readonly trace: BaseScreenBlueprintCanvasTrace | null;
|
|
171
|
+
readonly simulationTriggers: readonly BaseScreenBlueprintCanvasSimulationTrigger[];
|
|
172
|
+
readonly showSemantic: boolean;
|
|
120
173
|
readonly viewRequest?: {
|
|
121
174
|
readonly id: number;
|
|
122
|
-
readonly type: 'focus';
|
|
123
|
-
readonly targetId
|
|
175
|
+
readonly type: 'focus' | 'fit' | 'auto-layout';
|
|
176
|
+
readonly targetId?: string;
|
|
124
177
|
};
|
|
125
178
|
readonly lastCommand?: BaseScreenBlueprintCanvasCommandResult;
|
|
126
179
|
}
|
|
@@ -129,6 +182,16 @@ interface BaseScreenBlueprintCanvasCommandBase {
|
|
|
129
182
|
readonly generation: number;
|
|
130
183
|
readonly documentRevision: number;
|
|
131
184
|
}
|
|
185
|
+
export type BaseScreenBlueprintCanvasNodeUpdate = {
|
|
186
|
+
readonly type: 'name';
|
|
187
|
+
readonly name: string | null;
|
|
188
|
+
} | {
|
|
189
|
+
readonly type: 'interval';
|
|
190
|
+
readonly intervalSeconds: number;
|
|
191
|
+
} | {
|
|
192
|
+
readonly type: 'enabled';
|
|
193
|
+
readonly enabled: boolean;
|
|
194
|
+
};
|
|
132
195
|
export type BaseScreenBlueprintCanvasCommand = (BaseScreenBlueprintCanvasCommandBase & {
|
|
133
196
|
readonly type: 'ready';
|
|
134
197
|
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
@@ -136,15 +199,30 @@ export type BaseScreenBlueprintCanvasCommand = (BaseScreenBlueprintCanvasCommand
|
|
|
136
199
|
readonly selection: BaseScreenBlueprintCanvasSelection;
|
|
137
200
|
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
138
201
|
readonly type: 'connect';
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
202
|
+
readonly from: {
|
|
203
|
+
readonly node: string;
|
|
204
|
+
readonly port: string;
|
|
205
|
+
};
|
|
206
|
+
readonly to: {
|
|
207
|
+
readonly node: string;
|
|
208
|
+
readonly port: string;
|
|
209
|
+
};
|
|
143
210
|
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
144
211
|
readonly type: 'delete-selection';
|
|
145
|
-
readonly selection:
|
|
212
|
+
readonly selection: BaseScreenBlueprintCanvasSelection;
|
|
146
213
|
}) | (BaseScreenBlueprintCanvasCommandBase & BaseScreenBlueprintCanvasInsertNode & {
|
|
147
214
|
readonly type: 'insert-node';
|
|
215
|
+
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
216
|
+
readonly type: 'update-node';
|
|
217
|
+
readonly nodeIds: readonly string[];
|
|
218
|
+
readonly update: BaseScreenBlueprintCanvasNodeUpdate;
|
|
219
|
+
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
220
|
+
readonly type: 'reorder-edge';
|
|
221
|
+
readonly edgeId: string;
|
|
222
|
+
readonly direction: 'earlier' | 'later';
|
|
223
|
+
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
224
|
+
readonly type: 'duplicate-nodes';
|
|
225
|
+
readonly nodeIds: readonly string[];
|
|
148
226
|
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
149
227
|
readonly type: 'commit-layout';
|
|
150
228
|
readonly nodes: readonly ScreenBlueprintLayoutNode[];
|
|
@@ -158,9 +236,11 @@ export type BaseScreenBlueprintCanvasCommand = (BaseScreenBlueprintCanvasCommand
|
|
|
158
236
|
readonly type: 'history-redo';
|
|
159
237
|
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
160
238
|
readonly type: 'run-simulation';
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
239
|
+
readonly nodeId: string;
|
|
240
|
+
readonly port: string;
|
|
163
241
|
readonly payload: ScreenJsonValue;
|
|
242
|
+
}) | (BaseScreenBlueprintCanvasCommandBase & {
|
|
243
|
+
readonly type: 'clear-simulation';
|
|
164
244
|
});
|
|
165
245
|
export interface BaseScreenBlueprintCanvasStateEventDetail {
|
|
166
246
|
readonly state: BaseScreenBlueprintCanvasState;
|
package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-value-sources.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { ScreenBlueprintValueExpression, ScreenDocument } from '../../../../contracts/index.js';
|
|
2
2
|
import type { BaseScreenMaterialCatalog } from '../../../../plugin-core/index.js';
|
|
3
3
|
export type DesignerBlueprintSetVariableSource = 'literal' | 'event' | 'event-field' | 'variable' | 'advanced';
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 连线能否取事件字段:上游(越过条件节点)至少有一个组件事件触发锚点,
|
|
6
|
+
* 或从画布「已打开」(负载是打开参数)/ 主画布「页面已切换」(负载 `{ from, to }`)锚点。
|
|
7
|
+
*/
|
|
8
|
+
export declare function designerBlueprintTriggerSupportsEventField(document: ScreenDocument, edgeId: string): boolean;
|
|
6
9
|
/**
|
|
7
10
|
* 事件字段路径的输入词法:点号分隔,每段与文档取值引用同词法,最多 8 段。
|
|
8
11
|
* 声明字段只是建议,物料没写 payloadSchema 时也允许手填 `row.city`。
|
|
9
12
|
*/
|
|
10
13
|
export declare function parseDesignerBlueprintEventFieldPath(input: string): readonly string[] | null;
|
|
11
14
|
export declare function designerBlueprintSetVariableSource(expression: ScreenBlueprintValueExpression): DesignerBlueprintSetVariableSource;
|
|
12
|
-
|
|
15
|
+
/** 上游组件事件声明的负载字段(并集,去重);物料未声明 payloadSchema 时为空。 */
|
|
16
|
+
export declare function designerBlueprintEventFieldPaths(document: ScreenDocument, edgeId: string, catalog: BaseScreenMaterialCatalog | undefined): readonly (readonly string[])[];
|
|
13
17
|
//# sourceMappingURL=designer-blueprint-value-sources.d.ts.map
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ScreenDiagnostic, type ScreenDocument } from '../../../../contracts/index.js';
|
|
2
2
|
import type { BaseScreenMaterialCatalog, BaseScreenMaterialCatalogDiff } from '../../../../plugin-core/index.js';
|
|
3
|
+
import type { BaseScreenMaterialLibraryGrouping } from '../material-library/material-library-grouping.js';
|
|
3
4
|
/** `refreshCatalog` 的公共结果:只报告 type,不携带 Manifest 或 constructor。 */
|
|
4
5
|
export interface BaseScreenMaterialCatalogRefreshResult {
|
|
5
6
|
readonly added: readonly string[];
|
|
6
7
|
readonly changed: readonly string[];
|
|
7
8
|
readonly removed: readonly string[];
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* `refreshCatalog` 的可选项(base-screen-docs ADR-0105 §4 范式改进 P2)。
|
|
12
|
+
*
|
|
13
|
+
* 宿主配置了物料库分组时,分组必须覆盖每个可见物料、且不能引用不存在或已下架的类型——
|
|
14
|
+
* 新增 / 下架在线物料时,旧分组对新 catalog 必然不成立,而先改分组又会对旧 catalog 不成立。
|
|
15
|
+
* 因此分组随 catalog 一起交换:`materialLibraryGrouping` 按**新** catalog 校验,与 catalog
|
|
16
|
+
* 同一次全有或全无;省略时沿用当前分组(仍须对新 catalog 成立)。
|
|
17
|
+
*/
|
|
18
|
+
export interface BaseScreenMaterialCatalogRefreshOptions {
|
|
19
|
+
readonly materialLibraryGrouping?: BaseScreenMaterialLibraryGrouping;
|
|
20
|
+
}
|
|
9
21
|
/**
|
|
10
22
|
* 纯文档兼容性检查:子级能力收回与 Blueprint 物料事件引用。
|
|
11
23
|
*
|
|
@@ -110,6 +110,10 @@ export declare const DESIGNER_OPERATION_TEXT: {
|
|
|
110
110
|
readonly tooltip: '取消选中组件的编组';
|
|
111
111
|
readonly shortcut: 'Ctrl+Shift+G';
|
|
112
112
|
};
|
|
113
|
+
readonly 'save-as-fragment': {
|
|
114
|
+
readonly label: '存为组合';
|
|
115
|
+
readonly tooltip: '把选中组件(连同子组件)存为组合,交给宿主保存到素材库';
|
|
116
|
+
};
|
|
113
117
|
readonly 'group-enter': {
|
|
114
118
|
readonly label: '进入组内';
|
|
115
119
|
readonly tooltip: '进入选中组的组内编辑';
|
|
@@ -269,7 +273,7 @@ export declare const DESIGNER_OPERATION_TEXT: {
|
|
|
269
273
|
readonly 'toggle-border-guides': {
|
|
270
274
|
readonly label: '边框参考线';
|
|
271
275
|
readonly tooltip: '切换边框参考线';
|
|
272
|
-
readonly shortcut: 'Ctrl+K';
|
|
276
|
+
readonly shortcut: 'Ctrl+Shift+K';
|
|
273
277
|
};
|
|
274
278
|
readonly 'toggle-workbench': {
|
|
275
279
|
readonly label: '切换工作台模式';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type ScreenDocument, type ScreenParseResult, type ScreenVariableEntry } from '../../../contracts/index.js';
|
|
2
2
|
import type { ScreenDocumentCommand } from '../../../core/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* 变量引用位置。蓝图引用的 `ruleId` 是节点或连线 id,`blueprintTargetId` 是工作台定位用的
|
|
5
|
+
* `node:<id>` / `edge:<id>`:
|
|
6
|
+
* - `blueprint-trigger`:变量节点本身(节点存在即引用,删变量前须先删节点);
|
|
7
|
+
* - `blueprint-action-target`:写入 / 请求该变量的连线;
|
|
8
|
+
* - `blueprint-condition`:条件节点表达式;
|
|
9
|
+
* - `blueprint-action-expression`:连线写入值 / 负载表达式。
|
|
10
|
+
*/
|
|
3
11
|
export type DesignerVariableReference = {
|
|
4
12
|
readonly kind: 'component-parameter';
|
|
5
13
|
readonly variableId: string;
|