@vef-framework-react/form-editor 2.4.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/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/button/index.cjs +1 -0
- package/dist/cjs/components/checkbox-group-field/index.cjs +1 -0
- package/dist/cjs/components/code-editor/code-editor-input.cjs +1 -0
- package/dist/cjs/components/code-editor/index.cjs +1 -0
- package/dist/cjs/components/containers/index.cjs +1 -0
- package/dist/cjs/components/date-field/index.cjs +1 -0
- package/dist/cjs/components/display/index.cjs +1 -0
- package/dist/cjs/components/field-entries.cjs +1 -0
- package/dist/cjs/components/mobile/alert-block.cjs +1 -0
- package/dist/cjs/components/mobile/button.cjs +1 -0
- package/dist/cjs/components/mobile/checkbox-group.cjs +1 -0
- package/dist/cjs/components/mobile/date-adapters.cjs +1 -0
- package/dist/cjs/components/mobile/date.cjs +1 -0
- package/dist/cjs/components/mobile/daterange.cjs +1 -0
- package/dist/cjs/components/mobile/datetime.cjs +1 -0
- package/dist/cjs/components/mobile/definitions.cjs +1 -0
- package/dist/cjs/components/mobile/divider.cjs +1 -0
- package/dist/cjs/components/mobile/input-cell.cjs +1 -0
- package/dist/cjs/components/mobile/number.cjs +1 -0
- package/dist/cjs/components/mobile/option-group.cjs +1 -0
- package/dist/cjs/components/mobile/paragraph.cjs +1 -0
- package/dist/cjs/components/mobile/picker-trigger.cjs +1 -0
- package/dist/cjs/components/mobile/radio.cjs +1 -0
- package/dist/cjs/components/mobile/scope.cjs +1 -0
- package/dist/cjs/components/mobile/select.cjs +1 -0
- package/dist/cjs/components/mobile/switch.cjs +1 -0
- package/dist/cjs/components/mobile/textarea.cjs +1 -0
- package/dist/cjs/components/mobile/textfield.cjs +1 -0
- package/dist/cjs/components/mobile/theme.cjs +1 -0
- package/dist/cjs/components/number-field/index.cjs +1 -0
- package/dist/cjs/components/radio-field/index.cjs +1 -0
- package/dist/cjs/components/select-field/index.cjs +1 -0
- package/dist/cjs/components/switch-field/index.cjs +1 -0
- package/dist/cjs/components/textarea-field/index.cjs +1 -0
- package/dist/cjs/components/textfield/index.cjs +1 -0
- package/dist/cjs/editor/canvas/canvas-field.cjs +1 -0
- package/dist/cjs/editor/canvas/canvas.cjs +1 -0
- package/dist/cjs/editor/canvas/drop-indicator.cjs +1 -0
- package/dist/cjs/editor/canvas/drop-zones.cjs +1 -0
- package/dist/cjs/editor/canvas/json-split-view.cjs +1 -0
- package/dist/cjs/editor/canvas/mobile-seed-state.cjs +2 -0
- package/dist/cjs/editor/canvas/phone-frame.cjs +1 -0
- package/dist/cjs/editor/dnd.cjs +1 -0
- package/dist/cjs/editor/editor-layout-context.cjs +1 -0
- package/dist/cjs/editor/footer/footer.cjs +1 -0
- package/dist/cjs/editor/form-config/form-basics-tab.cjs +1 -0
- package/dist/cjs/editor/form-config/form-config-drawer.cjs +1 -0
- package/dist/cjs/editor/form-config/outline-tab.cjs +1 -0
- package/dist/cjs/editor/form-editor.cjs +1 -0
- package/dist/cjs/editor/palette/field-groups.cjs +1 -0
- package/dist/cjs/editor/palette/palette-group.cjs +1 -0
- package/dist/cjs/editor/palette/palette-item.cjs +1 -0
- package/dist/cjs/editor/palette/palette-panel.cjs +1 -0
- package/dist/cjs/editor/preview-effects.cjs +1 -0
- package/dist/cjs/editor/preview-runtime-context.cjs +1 -0
- package/dist/cjs/editor/properties/block-layout-section.cjs +1 -0
- package/dist/cjs/editor/properties/container-properties.cjs +1 -0
- package/dist/cjs/editor/properties/entries/built-ins.cjs +1 -0
- package/dist/cjs/editor/properties/entries/checkbox-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/coerce.cjs +1 -0
- package/dist/cjs/editor/properties/entries/entry-field.cjs +1 -0
- package/dist/cjs/editor/properties/entries/icon-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/key-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/action-editor.cjs +2 -0
- package/dist/cjs/editor/properties/entries/linkage/actions-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/condition-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/container-linkage-section.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/expression-assist.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/linkage-rules-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/mutators.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/options.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/rule-diagnostics.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/rule-list-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/styles.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/trigger-editor.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/use-linkage-editor-model.cjs +1 -0
- package/dist/cjs/editor/properties/entries/linkage/use-stable-options.cjs +1 -0
- package/dist/cjs/editor/properties/entries/number-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/options-source/index.cjs +1 -0
- package/dist/cjs/editor/properties/entries/options-source/source-mutators.cjs +1 -0
- package/dist/cjs/editor/properties/entries/select-entry.cjs +1 -0
- package/dist/cjs/editor/properties/entries/text-entry.cjs +1 -0
- package/dist/cjs/editor/properties/form-data-sources-panel.cjs +1 -0
- package/dist/cjs/editor/properties/form-linkage-panel.cjs +1 -0
- package/dist/cjs/editor/properties/form-variables-panel.cjs +1 -0
- package/dist/cjs/editor/properties/option-editors.cjs +1 -0
- package/dist/cjs/editor/properties/panel-header.cjs +1 -0
- package/dist/cjs/editor/properties/properties-empty.cjs +1 -0
- package/dist/cjs/editor/properties/properties-header.cjs +1 -0
- package/dist/cjs/editor/properties/properties-panel.cjs +1 -0
- package/dist/cjs/editor/properties/properties-provider.cjs +1 -0
- package/dist/cjs/editor/properties/properties-tabs.cjs +1 -0
- package/dist/cjs/editor/properties/use-confirmable-kind-switch.cjs +1 -0
- package/dist/cjs/editor/remove-node-confirm.cjs +1 -0
- package/dist/cjs/editor/schema-apply.cjs +2 -0
- package/dist/cjs/editor/styles.cjs +1 -0
- package/dist/cjs/editor/toolbar/notify.cjs +1 -0
- package/dist/cjs/editor/toolbar/schema-io.cjs +1 -0
- package/dist/cjs/editor/toolbar/toolbar.cjs +1 -0
- package/dist/cjs/editor/use-editor-shortcuts.cjs +1 -0
- package/dist/cjs/editor/validation-summary.cjs +1 -0
- package/dist/cjs/engine/assert-never.cjs +1 -0
- package/dist/cjs/engine/conversion/index.cjs +1 -0
- package/dist/cjs/engine/ids.cjs +1 -0
- package/dist/cjs/engine/keys.cjs +1 -0
- package/dist/cjs/engine/linkage/cycle.cjs +1 -0
- package/dist/cjs/engine/linkage/default-evaluator.cjs +1 -0
- package/dist/cjs/engine/linkage/effects.cjs +1 -0
- package/dist/cjs/engine/linkage/evaluator.cjs +1 -0
- package/dist/cjs/engine/linkage/index.cjs +1 -0
- package/dist/cjs/engine/linkage/operators.cjs +1 -0
- package/dist/cjs/engine/linkage/source-tracking.cjs +1 -0
- package/dist/cjs/engine/linkage/taxonomy.cjs +1 -0
- package/dist/cjs/engine/linkage/validator.cjs +1 -0
- package/dist/cjs/engine/registry/defaults-mobile.cjs +1 -0
- package/dist/cjs/engine/registry/defaults.cjs +1 -0
- package/dist/cjs/engine/registry/form-field-registry.cjs +1 -0
- package/dist/cjs/engine/schema/edit-ops.cjs +1 -0
- package/dist/cjs/engine/schema/mutate.cjs +1 -0
- package/dist/cjs/engine/schema/nodes.cjs +1 -0
- package/dist/cjs/engine/schema/permission-bridge.cjs +1 -0
- package/dist/cjs/engine/schema/presentation.cjs +1 -0
- package/dist/cjs/engine/schema/reconcile.cjs +1 -0
- package/dist/cjs/engine/schema/removal-impact.cjs +1 -0
- package/dist/cjs/engine/schema/rewrite.cjs +1 -0
- package/dist/cjs/engine/schema/validate.cjs +1 -0
- package/dist/cjs/engine/schema/walk.cjs +1 -0
- package/dist/cjs/engine/validation.cjs +1 -0
- package/dist/cjs/icons.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/render/chrome/mobile-chrome.cjs +1 -0
- package/dist/cjs/render/chrome/pc-chrome.cjs +1 -0
- package/dist/cjs/render/chrome/subform-shell.cjs +1 -0
- package/dist/cjs/render/data-source-context.cjs +0 -0
- package/dist/cjs/render/flex-style.cjs +1 -0
- package/dist/cjs/render/form-field.cjs +1 -0
- package/dist/cjs/render/form-renderer.cjs +1 -0
- package/dist/cjs/render/grid-style.cjs +1 -0
- package/dist/cjs/render/parts/field-shell.cjs +1 -0
- package/dist/cjs/render/parts/label.cjs +1 -0
- package/dist/cjs/render/parts/options-status.cjs +1 -0
- package/dist/cjs/render/stack-style.cjs +1 -0
- package/dist/cjs/render/subform-columns.cjs +1 -0
- package/dist/cjs/render/submit.cjs +1 -0
- package/dist/cjs/runtime/effects.cjs +1 -0
- package/dist/cjs/runtime/resolve-scope-values.cjs +1 -0
- package/dist/cjs/runtime/runtime-context.cjs +1 -0
- package/dist/cjs/runtime/runtime-state-controller.cjs +1 -0
- package/dist/cjs/runtime/stabilize-state-map.cjs +1 -0
- package/dist/cjs/store/engine-provider.cjs +1 -0
- package/dist/cjs/store/form-store.cjs +1 -0
- package/dist/cjs/types/chrome.cjs +0 -0
- package/dist/cjs/types/component.cjs +1 -0
- package/dist/cjs/types/data-source.cjs +1 -0
- package/dist/cjs/types/index.cjs +1 -0
- package/dist/cjs/types/linkage.cjs +0 -0
- package/dist/cjs/types/properties.cjs +1 -0
- package/dist/cjs/types/schema.cjs +1 -0
- package/dist/es/components/button/index.js +183 -0
- package/dist/es/components/checkbox-group-field/index.js +103 -0
- package/dist/es/components/code-editor/code-editor-input.js +3 -0
- package/dist/es/components/code-editor/index.js +212 -0
- package/dist/es/components/containers/index.js +72 -0
- package/dist/es/components/date-field/index.js +197 -0
- package/dist/es/components/display/index.js +276 -0
- package/dist/es/components/field-entries.js +184 -0
- package/dist/es/components/mobile/alert-block.js +40 -0
- package/dist/es/components/mobile/button.js +41 -0
- package/dist/es/components/mobile/checkbox-group.js +35 -0
- package/dist/es/components/mobile/date-adapters.js +16 -0
- package/dist/es/components/mobile/date.js +42 -0
- package/dist/es/components/mobile/daterange.js +48 -0
- package/dist/es/components/mobile/datetime.js +42 -0
- package/dist/es/components/mobile/definitions.js +58 -0
- package/dist/es/components/mobile/divider.js +10 -0
- package/dist/es/components/mobile/input-cell.js +56 -0
- package/dist/es/components/mobile/number.js +73 -0
- package/dist/es/components/mobile/option-group.js +34 -0
- package/dist/es/components/mobile/paragraph.js +30 -0
- package/dist/es/components/mobile/picker-trigger.js +94 -0
- package/dist/es/components/mobile/radio.js +35 -0
- package/dist/es/components/mobile/scope.js +61 -0
- package/dist/es/components/mobile/select.js +45 -0
- package/dist/es/components/mobile/switch.js +22 -0
- package/dist/es/components/mobile/textarea.js +32 -0
- package/dist/es/components/mobile/textfield.js +30 -0
- package/dist/es/components/mobile/theme.js +8 -0
- package/dist/es/components/number-field/index.js +186 -0
- package/dist/es/components/radio-field/index.js +139 -0
- package/dist/es/components/select-field/index.js +128 -0
- package/dist/es/components/switch-field/index.js +133 -0
- package/dist/es/components/textarea-field/index.js +137 -0
- package/dist/es/components/textfield/index.js +138 -0
- package/dist/es/editor/canvas/canvas-field.js +202 -0
- package/dist/es/editor/canvas/canvas.js +415 -0
- package/dist/es/editor/canvas/drop-indicator.js +42 -0
- package/dist/es/editor/canvas/drop-zones.js +42 -0
- package/dist/es/editor/canvas/json-split-view.js +148 -0
- package/dist/es/editor/canvas/mobile-seed-state.js +103 -0
- package/dist/es/editor/canvas/phone-frame.js +109 -0
- package/dist/es/editor/dnd.js +75 -0
- package/dist/es/editor/editor-layout-context.js +34 -0
- package/dist/es/editor/footer/footer.js +154 -0
- package/dist/es/editor/form-config/form-basics-tab.js +184 -0
- package/dist/es/editor/form-config/form-config-drawer.js +224 -0
- package/dist/es/editor/form-config/outline-tab.js +132 -0
- package/dist/es/editor/form-editor.js +179 -0
- package/dist/es/editor/palette/field-groups.js +19 -0
- package/dist/es/editor/palette/palette-group.js +147 -0
- package/dist/es/editor/palette/palette-item.js +153 -0
- package/dist/es/editor/palette/palette-panel.js +109 -0
- package/dist/es/editor/preview-effects.js +22 -0
- package/dist/es/editor/preview-runtime-context.js +24 -0
- package/dist/es/editor/properties/block-layout-section.js +161 -0
- package/dist/es/editor/properties/container-properties.js +575 -0
- package/dist/es/editor/properties/entries/built-ins.js +21 -0
- package/dist/es/editor/properties/entries/checkbox-entry.js +31 -0
- package/dist/es/editor/properties/entries/coerce.js +8 -0
- package/dist/es/editor/properties/entries/entry-field.js +43 -0
- package/dist/es/editor/properties/entries/icon-entry.js +21 -0
- package/dist/es/editor/properties/entries/index.js +9 -0
- package/dist/es/editor/properties/entries/key-entry.js +29 -0
- package/dist/es/editor/properties/entries/linkage/action-editor.js +260 -0
- package/dist/es/editor/properties/entries/linkage/actions-editor.js +64 -0
- package/dist/es/editor/properties/entries/linkage/condition-editor.js +265 -0
- package/dist/es/editor/properties/entries/linkage/container-linkage-section.js +71 -0
- package/dist/es/editor/properties/entries/linkage/expression-assist.js +87 -0
- package/dist/es/editor/properties/entries/linkage/index.js +3 -0
- package/dist/es/editor/properties/entries/linkage/linkage-rules-entry.js +110 -0
- package/dist/es/editor/properties/entries/linkage/mutators.js +209 -0
- package/dist/es/editor/properties/entries/linkage/options.js +155 -0
- package/dist/es/editor/properties/entries/linkage/rule-diagnostics.js +58 -0
- package/dist/es/editor/properties/entries/linkage/rule-list-editor.js +126 -0
- package/dist/es/editor/properties/entries/linkage/styles.js +276 -0
- package/dist/es/editor/properties/entries/linkage/trigger-editor.js +64 -0
- package/dist/es/editor/properties/entries/linkage/use-linkage-editor-model.js +20 -0
- package/dist/es/editor/properties/entries/linkage/use-stable-options.js +12 -0
- package/dist/es/editor/properties/entries/number-entry.js +25 -0
- package/dist/es/editor/properties/entries/options-source/index.js +122 -0
- package/dist/es/editor/properties/entries/options-source/source-mutators.js +31 -0
- package/dist/es/editor/properties/entries/select-entry.js +23 -0
- package/dist/es/editor/properties/entries/text-entry.js +23 -0
- package/dist/es/editor/properties/form-data-sources-panel.js +170 -0
- package/dist/es/editor/properties/form-linkage-panel.js +36 -0
- package/dist/es/editor/properties/form-variables-panel.js +184 -0
- package/dist/es/editor/properties/option-editors.js +170 -0
- package/dist/es/editor/properties/panel-header.js +93 -0
- package/dist/es/editor/properties/properties-empty.js +62 -0
- package/dist/es/editor/properties/properties-header.js +31 -0
- package/dist/es/editor/properties/properties-panel.js +195 -0
- package/dist/es/editor/properties/properties-provider.js +95 -0
- package/dist/es/editor/properties/properties-tabs.js +91 -0
- package/dist/es/editor/properties/use-confirmable-kind-switch.js +26 -0
- package/dist/es/editor/remove-node-confirm.js +60 -0
- package/dist/es/editor/schema-apply.js +36 -0
- package/dist/es/editor/styles.js +74 -0
- package/dist/es/editor/toolbar/notify.js +59 -0
- package/dist/es/editor/toolbar/schema-io.js +107 -0
- package/dist/es/editor/toolbar/toolbar.js +394 -0
- package/dist/es/editor/use-editor-shortcuts.js +43 -0
- package/dist/es/editor/validation-summary.js +66 -0
- package/dist/es/engine/assert-never.js +8 -0
- package/dist/es/engine/conversion/index.js +127 -0
- package/dist/es/engine/ids.js +18 -0
- package/dist/es/engine/keys.js +48 -0
- package/dist/es/engine/linkage/cycle.js +25 -0
- package/dist/es/engine/linkage/default-evaluator.js +79 -0
- package/dist/es/engine/linkage/effects.js +41 -0
- package/dist/es/engine/linkage/evaluator.js +119 -0
- package/dist/es/engine/linkage/index.js +9 -0
- package/dist/es/engine/linkage/operators.js +44 -0
- package/dist/es/engine/linkage/source-tracking.js +17 -0
- package/dist/es/engine/linkage/taxonomy.js +51 -0
- package/dist/es/engine/linkage/validator.js +360 -0
- package/dist/es/engine/registry/defaults-mobile.js +12 -0
- package/dist/es/engine/registry/defaults.js +25 -0
- package/dist/es/engine/registry/form-field-registry.js +52 -0
- package/dist/es/engine/schema/edit-ops.js +264 -0
- package/dist/es/engine/schema/mutate.js +39 -0
- package/dist/es/engine/schema/nodes.js +61 -0
- package/dist/es/engine/schema/permission-bridge.js +46 -0
- package/dist/es/engine/schema/presentation.js +37 -0
- package/dist/es/engine/schema/reconcile.js +258 -0
- package/dist/es/engine/schema/removal-impact.js +59 -0
- package/dist/es/engine/schema/rewrite.js +11 -0
- package/dist/es/engine/schema/validate.js +320 -0
- package/dist/es/engine/schema/walk.js +103 -0
- package/dist/es/engine/validation.js +122 -0
- package/dist/es/icons.js +74 -0
- package/dist/es/index.js +54 -0
- package/dist/es/render/chrome/mobile-chrome.js +119 -0
- package/dist/es/render/chrome/pc-chrome.js +76 -0
- package/dist/es/render/chrome/subform-shell.js +38 -0
- package/dist/es/render/data-source-context.js +0 -0
- package/dist/es/render/flex-style.js +24 -0
- package/dist/es/render/form-field.js +37 -0
- package/dist/es/render/form-renderer.js +516 -0
- package/dist/es/render/grid-style.js +23 -0
- package/dist/es/render/parts/field-shell.js +119 -0
- package/dist/es/render/parts/label.js +44 -0
- package/dist/es/render/parts/options-status.js +19 -0
- package/dist/es/render/stack-style.js +13 -0
- package/dist/es/render/subform-columns.js +118 -0
- package/dist/es/render/submit.js +112 -0
- package/dist/es/runtime/effects.js +109 -0
- package/dist/es/runtime/resolve-scope-values.js +14 -0
- package/dist/es/runtime/runtime-context.js +10 -0
- package/dist/es/runtime/runtime-state-controller.js +99 -0
- package/dist/es/runtime/stabilize-state-map.js +14 -0
- package/dist/es/store/engine-provider.js +37 -0
- package/dist/es/store/form-store.js +306 -0
- package/dist/es/types/chrome.js +1 -0
- package/dist/es/types/component.js +13 -0
- package/dist/es/types/data-source.js +5 -0
- package/dist/es/types/index.js +5 -0
- package/dist/es/types/linkage.js +1 -0
- package/dist/es/types/properties.js +7 -0
- package/dist/es/types/schema.js +15 -0
- package/dist/types/src/components/button/index.d.ts +8 -0
- package/dist/types/src/components/checkbox-group-field/index.d.ts +2 -0
- package/dist/types/src/components/code-editor/code-editor-input.d.ts +1 -0
- package/dist/types/src/components/code-editor/index.d.ts +4 -0
- package/dist/types/src/components/containers/index.d.ts +12 -0
- package/dist/types/src/components/date-field/index.d.ts +4 -0
- package/dist/types/src/components/display/index.d.ts +4 -0
- package/dist/types/src/components/field-entries.d.ts +103 -0
- package/dist/types/src/components/mobile/alert-block.d.ts +12 -0
- package/dist/types/src/components/mobile/button.d.ts +9 -0
- package/dist/types/src/components/mobile/checkbox-group.d.ts +11 -0
- package/dist/types/src/components/mobile/date-adapters.d.ts +28 -0
- package/dist/types/src/components/mobile/date.d.ts +10 -0
- package/dist/types/src/components/mobile/daterange.d.ts +11 -0
- package/dist/types/src/components/mobile/datetime.d.ts +10 -0
- package/dist/types/src/components/mobile/definitions.d.ts +9 -0
- package/dist/types/src/components/mobile/divider.d.ts +10 -0
- package/dist/types/src/components/mobile/input-cell.d.ts +30 -0
- package/dist/types/src/components/mobile/number.d.ts +25 -0
- package/dist/types/src/components/mobile/option-group.d.ts +17 -0
- package/dist/types/src/components/mobile/paragraph.d.ts +10 -0
- package/dist/types/src/components/mobile/picker-trigger.d.ts +31 -0
- package/dist/types/src/components/mobile/radio.d.ts +12 -0
- package/dist/types/src/components/mobile/scope.d.ts +42 -0
- package/dist/types/src/components/mobile/select.d.ts +12 -0
- package/dist/types/src/components/mobile/switch.d.ts +14 -0
- package/dist/types/src/components/mobile/textarea.d.ts +3 -0
- package/dist/types/src/components/mobile/textfield.d.ts +11 -0
- package/dist/types/src/components/mobile/theme.d.ts +16 -0
- package/dist/types/src/components/number-field/index.d.ts +2 -0
- package/dist/types/src/components/radio-field/index.d.ts +2 -0
- package/dist/types/src/components/select-field/index.d.ts +2 -0
- package/dist/types/src/components/switch-field/index.d.ts +2 -0
- package/dist/types/src/components/textarea-field/index.d.ts +2 -0
- package/dist/types/src/components/textfield/index.d.ts +11 -0
- package/dist/types/src/editor/canvas/canvas-field.d.ts +24 -0
- package/dist/types/src/editor/canvas/canvas.d.ts +11 -0
- package/dist/types/src/editor/canvas/drop-indicator.d.ts +14 -0
- package/dist/types/src/editor/canvas/drop-zones.d.ts +48 -0
- package/dist/types/src/editor/canvas/json-split-view.d.ts +15 -0
- package/dist/types/src/editor/canvas/mobile-seed-state.d.ts +9 -0
- package/dist/types/src/editor/canvas/phone-frame.d.ts +15 -0
- package/dist/types/src/editor/dnd.d.ts +88 -0
- package/dist/types/src/editor/editor-layout-context.d.ts +53 -0
- package/dist/types/src/editor/footer/footer.d.ts +7 -0
- package/dist/types/src/editor/form-config/form-basics-tab.d.ts +34 -0
- package/dist/types/src/editor/form-config/form-config-drawer.d.ts +8 -0
- package/dist/types/src/editor/form-config/outline-tab.d.ts +2 -0
- package/dist/types/src/editor/form-editor.d.ts +142 -0
- package/dist/types/src/editor/palette/field-groups.d.ts +12 -0
- package/dist/types/src/editor/palette/palette-group.d.ts +31 -0
- package/dist/types/src/editor/palette/palette-item.d.ts +34 -0
- package/dist/types/src/editor/palette/palette-panel.d.ts +17 -0
- package/dist/types/src/editor/preview-effects.d.ts +14 -0
- package/dist/types/src/editor/preview-runtime-context.d.ts +23 -0
- package/dist/types/src/editor/properties/block-layout-section.d.ts +19 -0
- package/dist/types/src/editor/properties/container-properties.d.ts +19 -0
- package/dist/types/src/editor/properties/entries/built-ins.d.ts +19 -0
- package/dist/types/src/editor/properties/entries/checkbox-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/coerce.d.ts +6 -0
- package/dist/types/src/editor/properties/entries/entry-field.d.ts +29 -0
- package/dist/types/src/editor/properties/entries/icon-entry.d.ts +8 -0
- package/dist/types/src/editor/properties/entries/index.d.ts +8 -0
- package/dist/types/src/editor/properties/entries/key-entry.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/linkage/action-editor.d.ts +42 -0
- package/dist/types/src/editor/properties/entries/linkage/actions-editor.d.ts +43 -0
- package/dist/types/src/editor/properties/entries/linkage/condition-editor.d.ts +28 -0
- package/dist/types/src/editor/properties/entries/linkage/container-linkage-section.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/linkage/expression-assist.d.ts +33 -0
- package/dist/types/src/editor/properties/entries/linkage/index.d.ts +1 -0
- package/dist/types/src/editor/properties/entries/linkage/linkage-rules-entry.d.ts +17 -0
- package/dist/types/src/editor/properties/entries/linkage/mutators.d.ts +73 -0
- package/dist/types/src/editor/properties/entries/linkage/options.d.ts +72 -0
- package/dist/types/src/editor/properties/entries/linkage/rule-diagnostics.d.ts +20 -0
- package/dist/types/src/editor/properties/entries/linkage/rule-list-editor.d.ts +75 -0
- package/dist/types/src/editor/properties/entries/linkage/styles.d.ts +46 -0
- package/dist/types/src/editor/properties/entries/linkage/trigger-editor.d.ts +35 -0
- package/dist/types/src/editor/properties/entries/linkage/use-linkage-editor-model.d.ts +46 -0
- package/dist/types/src/editor/properties/entries/linkage/use-stable-options.d.ts +17 -0
- package/dist/types/src/editor/properties/entries/number-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/options-source/index.d.ts +9 -0
- package/dist/types/src/editor/properties/entries/options-source/source-mutators.d.ts +14 -0
- package/dist/types/src/editor/properties/entries/select-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/entries/text-entry.d.ts +3 -0
- package/dist/types/src/editor/properties/form-data-sources-panel.d.ts +16 -0
- package/dist/types/src/editor/properties/form-linkage-panel.d.ts +13 -0
- package/dist/types/src/editor/properties/form-variables-panel.d.ts +17 -0
- package/dist/types/src/editor/properties/option-editors.d.ts +33 -0
- package/dist/types/src/editor/properties/panel-header.d.ts +21 -0
- package/dist/types/src/editor/properties/properties-empty.d.ts +13 -0
- package/dist/types/src/editor/properties/properties-header.d.ts +13 -0
- package/dist/types/src/editor/properties/properties-panel.d.ts +18 -0
- package/dist/types/src/editor/properties/properties-provider.d.ts +42 -0
- package/dist/types/src/editor/properties/properties-tabs.d.ts +24 -0
- package/dist/types/src/editor/properties/use-confirmable-kind-switch.d.ts +38 -0
- package/dist/types/src/editor/remove-node-confirm.d.ts +8 -0
- package/dist/types/src/editor/schema-apply.d.ts +25 -0
- package/dist/types/src/editor/styles.d.ts +37 -0
- package/dist/types/src/editor/toolbar/notify.d.ts +13 -0
- package/dist/types/src/editor/toolbar/schema-io.d.ts +12 -0
- package/dist/types/src/editor/toolbar/toolbar.d.ts +42 -0
- package/dist/types/src/editor/use-editor-shortcuts.d.ts +23 -0
- package/dist/types/src/editor/validation-summary.d.ts +19 -0
- package/dist/types/src/engine/assert-never.d.ts +18 -0
- package/dist/types/src/engine/conversion/index.d.ts +87 -0
- package/dist/types/src/engine/ids.d.ts +14 -0
- package/dist/types/src/engine/keys.d.ts +70 -0
- package/dist/types/src/engine/linkage/cycle.d.ts +28 -0
- package/dist/types/src/engine/linkage/default-evaluator.d.ts +10 -0
- package/dist/types/src/engine/linkage/effects.d.ts +76 -0
- package/dist/types/src/engine/linkage/evaluator.d.ts +72 -0
- package/dist/types/src/engine/linkage/index.d.ts +8 -0
- package/dist/types/src/engine/linkage/operators.d.ts +23 -0
- package/dist/types/src/engine/linkage/source-tracking.d.ts +25 -0
- package/dist/types/src/engine/linkage/taxonomy.d.ts +49 -0
- package/dist/types/src/engine/linkage/validator.d.ts +23 -0
- package/dist/types/src/engine/registry/defaults-mobile.d.ts +17 -0
- package/dist/types/src/engine/registry/defaults.d.ts +22 -0
- package/dist/types/src/engine/registry/form-field-registry.d.ts +79 -0
- package/dist/types/src/engine/schema/edit-ops.d.ts +101 -0
- package/dist/types/src/engine/schema/mutate.d.ts +41 -0
- package/dist/types/src/engine/schema/nodes.d.ts +34 -0
- package/dist/types/src/engine/schema/permission-bridge.d.ts +37 -0
- package/dist/types/src/engine/schema/presentation.d.ts +30 -0
- package/dist/types/src/engine/schema/reconcile.d.ts +80 -0
- package/dist/types/src/engine/schema/removal-impact.d.ts +39 -0
- package/dist/types/src/engine/schema/rewrite.d.ts +15 -0
- package/dist/types/src/engine/schema/validate.d.ts +36 -0
- package/dist/types/src/engine/schema/walk.d.ts +90 -0
- package/dist/types/src/engine/validation.d.ts +139 -0
- package/dist/types/src/icons.d.ts +8 -0
- package/dist/types/src/index.d.ts +39 -0
- package/dist/types/src/render/chrome/mobile-chrome.d.ts +9 -0
- package/dist/types/src/render/chrome/pc-chrome.d.ts +7 -0
- package/dist/types/src/render/chrome/subform-shell.d.ts +17 -0
- package/dist/types/src/render/data-source-context.d.ts +42 -0
- package/dist/types/src/render/flex-style.d.ts +26 -0
- package/dist/types/src/render/form-field.d.ts +32 -0
- package/dist/types/src/render/form-renderer.d.ts +65 -0
- package/dist/types/src/render/grid-style.d.ts +24 -0
- package/dist/types/src/render/parts/field-shell.d.ts +33 -0
- package/dist/types/src/render/parts/label.d.ts +20 -0
- package/dist/types/src/render/parts/options-status.d.ts +14 -0
- package/dist/types/src/render/stack-style.d.ts +19 -0
- package/dist/types/src/render/subform-columns.d.ts +16 -0
- package/dist/types/src/render/submit.d.ts +91 -0
- package/dist/types/src/runtime/effects.d.ts +77 -0
- package/dist/types/src/runtime/resolve-scope-values.d.ts +8 -0
- package/dist/types/src/runtime/runtime-context.d.ts +21 -0
- package/dist/types/src/runtime/runtime-state-controller.d.ts +33 -0
- package/dist/types/src/runtime/stabilize-state-map.d.ts +12 -0
- package/dist/types/src/runtime/types.d.ts +13 -0
- package/dist/types/src/store/engine-provider.d.ts +50 -0
- package/dist/types/src/store/form-store.d.ts +234 -0
- package/dist/types/src/types/chrome.d.ts +51 -0
- package/dist/types/src/types/component.d.ts +116 -0
- package/dist/types/src/types/data-source.d.ts +70 -0
- package/dist/types/src/types/index.d.ts +6 -0
- package/dist/types/src/types/linkage.d.ts +350 -0
- package/dist/types/src/types/properties.d.ts +122 -0
- package/dist/types/src/types/schema.d.ts +839 -0
- package/package.json +77 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Shown on the canvas when the mobile presentation has not been designed yet.
|
|
4
|
+
* Offers a best-effort one-click conversion from the PC design (unmappable
|
|
5
|
+
* components are reported and skipped) or a blank start. Both paths go through
|
|
6
|
+
* the store's `initMobile`, which seeds the mobile presentation and makes it the
|
|
7
|
+
* mobile history baseline.
|
|
8
|
+
*/
|
|
9
|
+
export declare function MobileSeedState(): ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/serialize';
|
|
3
|
+
export declare const phoneViewportCss: SerializedStyles;
|
|
4
|
+
/**
|
|
5
|
+
* The simulated-iPhone shell around the mobile design / preview surface. Owns
|
|
6
|
+
* the screen-node state it publishes to the mobile overlays (edit + preview) via
|
|
7
|
+
* {@link OverlayContainerProvider}, so a tapped picker is penned to the whole
|
|
8
|
+
* screen (state, not a ref, so the provider re-renders once the node mounts).
|
|
9
|
+
* The caller's `surface` (its viewport scroller — see {@link phoneViewportCss})
|
|
10
|
+
* goes inside the screen. No transform anywhere on the chain, so the in-frame
|
|
11
|
+
* drag ghost's fixed coordinates stay correct and edit-mode reordering works.
|
|
12
|
+
*/
|
|
13
|
+
export declare function PhoneFrame({ children }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): ReactElement;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { DragEndEvent, KeyboardSensor, PointerSensor } from '@vef-framework-react/core';
|
|
2
|
+
import { PluginDescriptor } from '@dnd-kit/abstract';
|
|
3
|
+
/**
|
|
4
|
+
* Shared drag-and-drop contract for the editor canvas, built on dnd-kit v0.4.
|
|
5
|
+
*
|
|
6
|
+
* A drag originates from either a palette item (creates a new field) or an
|
|
7
|
+
* existing canvas block (moves it). It lands on one of three drop-zone kinds.
|
|
8
|
+
* Both ends attach typed `data`; the drag-end handler reads them and dispatches
|
|
9
|
+
* the matching store action.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* The editor's pointer sensor. Requires a small deliberate gesture before a
|
|
13
|
+
* drag starts: mouse / pen must move 5px, touch must press-and-hold 250ms (so
|
|
14
|
+
* a swipe scrolls the canvas instead of dragging). This overrides dnd-kit's
|
|
15
|
+
* default, which lets a drag begin immediately when the pointer is already on
|
|
16
|
+
* a drag handle — without it a mere click on a canvas grip would twitch into a
|
|
17
|
+
* drag. Only the activation constraint is replaced; the default handle /
|
|
18
|
+
* interactive-element gating is preserved. Module-scoped so the descriptor
|
|
19
|
+
* keeps a stable identity across renders.
|
|
20
|
+
*/
|
|
21
|
+
export declare const editorPointerSensor: PluginDescriptor<any, any, typeof PointerSensor>;
|
|
22
|
+
/**
|
|
23
|
+
* Sensors for the editor's `DragDropProvider`: the gated pointer sensor plus
|
|
24
|
+
* keyboard dragging (pick a canvas block up with Enter on its grip, move it
|
|
25
|
+
* with the arrow keys). Palette items override this per-source with
|
|
26
|
+
* {@link palettePointerSensors} — on a palette card, Enter/Space mean
|
|
27
|
+
* "append", not "pick up".
|
|
28
|
+
*/
|
|
29
|
+
export declare const editorSensors: ( PluginDescriptor<any, any, typeof PointerSensor> | typeof KeyboardSensor)[];
|
|
30
|
+
/**
|
|
31
|
+
* Per-source sensor list for palette items: pointer only. dnd-kit's
|
|
32
|
+
* KeyboardSensor activates on Enter/Space and swallows the event
|
|
33
|
+
* (`stopImmediatePropagation`), which would make it impossible for the
|
|
34
|
+
* palette card's documented keyboard affordance — Enter/Space appends the
|
|
35
|
+
* field — to ever fire. Canvas blocks keep the full {@link editorSensors},
|
|
36
|
+
* so keyboard-driven moving stays available where it is meaningful.
|
|
37
|
+
*/
|
|
38
|
+
export declare const palettePointerSensors: PluginDescriptor<any, any, typeof PointerSensor>[];
|
|
39
|
+
/**
|
|
40
|
+
* Data attached to a draggable.
|
|
41
|
+
*/
|
|
42
|
+
export type EditorDragData = {
|
|
43
|
+
kind: "palette";
|
|
44
|
+
type: string;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "block";
|
|
47
|
+
nodeId: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Data attached to a drop zone.
|
|
51
|
+
*
|
|
52
|
+
* - `beside` — insert immediately `before`/`after` the block `anchorId`, sharing
|
|
53
|
+
* its parent list (a sibling in the document stack, or a cell/slot in a grid /
|
|
54
|
+
* flex).
|
|
55
|
+
* - `container` — append into a container's body (a tab selected by `tabIndex`).
|
|
56
|
+
* - `root` — append at the end of the root document.
|
|
57
|
+
*/
|
|
58
|
+
export type DropZoneData = {
|
|
59
|
+
zone: "beside";
|
|
60
|
+
anchorId: string;
|
|
61
|
+
side: "before" | "after";
|
|
62
|
+
} | {
|
|
63
|
+
zone: "container";
|
|
64
|
+
containerId: string;
|
|
65
|
+
tabIndex?: number;
|
|
66
|
+
} | {
|
|
67
|
+
zone: "root";
|
|
68
|
+
};
|
|
69
|
+
export declare const FIELD_DRAG_TYPE = "vef-field";
|
|
70
|
+
/**
|
|
71
|
+
* Stable droppable id for a drop zone. The canvas (which registers the zones)
|
|
72
|
+
* and the per-field beside-strips both derive their ids here, so the two ends
|
|
73
|
+
* can never drift to mismatched id formats.
|
|
74
|
+
*/
|
|
75
|
+
export declare function dropZoneId(data: DropZoneData): string;
|
|
76
|
+
/**
|
|
77
|
+
* Stable id for a body-level fallback droppable. Each `CanvasBody` registers one
|
|
78
|
+
* covering its whole region at the lowest collision priority, so a drop that
|
|
79
|
+
* misses every precise zone still lands (appending to that body) instead of
|
|
80
|
+
* being silently discarded. Derived from {@link dropZoneId} so it can never
|
|
81
|
+
* collide with a precise zone's id.
|
|
82
|
+
*/
|
|
83
|
+
export declare function fallbackDropZoneId(data: DropZoneData): string;
|
|
84
|
+
/**
|
|
85
|
+
* Build the `onDragEnd` handler for the editor's `DragDropProvider`. Reads the
|
|
86
|
+
* source (palette type or moved node) and the drop zone, then inserts or moves.
|
|
87
|
+
*/
|
|
88
|
+
export declare function useEditorDragEnd(): (event: DragEndEvent) => void;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Layout mode the editor settles into, driven by the editor root's measured
|
|
4
|
+
* width (not the viewport — the editor can be embedded inside a host shell
|
|
5
|
+
* that already eats horizontal space).
|
|
6
|
+
*
|
|
7
|
+
* - `comfortable`: both panels float side-by-side without competing for room
|
|
8
|
+
* - `compact`: palette narrows, toolbar folds secondary actions into a menu
|
|
9
|
+
* - `drawer`: properties panel detaches to a full-width drawer overlay so
|
|
10
|
+
* the canvas keeps usable width on small screens
|
|
11
|
+
*/
|
|
12
|
+
export type EditorLayoutMode = "comfortable" | "compact" | "drawer";
|
|
13
|
+
export declare function resolveEditorLayoutMode(width: number): EditorLayoutMode;
|
|
14
|
+
export interface EditorLayoutProviderProps {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The resolved layout mode to broadcast (from {@link useEditorLayoutMeasure}).
|
|
18
|
+
*/
|
|
19
|
+
value: EditorLayoutMode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Wrap the editor shell in a ResizeObserver-driven layout mode broadcaster.
|
|
23
|
+
* Consumers call `useEditorLayout()` to react to mode changes; the provider
|
|
24
|
+
* itself does not render any DOM, so callers control the measured element
|
|
25
|
+
* by attaching `ref` to whatever container they want observed.
|
|
26
|
+
*
|
|
27
|
+
* Usage:
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const { ref, mode } = useEditorLayoutMeasure();
|
|
30
|
+
* return (
|
|
31
|
+
* <EditorLayoutProvider value={mode}>
|
|
32
|
+
* <div ref={ref}>…</div>
|
|
33
|
+
* </EditorLayoutProvider>
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function EditorLayoutProvider({ children, value }: EditorLayoutProviderProps): ReactElement;
|
|
38
|
+
export declare function useEditorLayout(): EditorLayoutMode;
|
|
39
|
+
export interface EditorLayoutMeasure {
|
|
40
|
+
ref: RefObject<HTMLDivElement | null>;
|
|
41
|
+
mode: EditorLayoutMode;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Helper hook for the editor shell: returns a ref to attach to the outermost
|
|
45
|
+
* element and the derived layout mode.
|
|
46
|
+
*
|
|
47
|
+
* The ResizeObserver callback resolves the mode itself and commits state only
|
|
48
|
+
* when the mode **crosses a threshold** (compared against a ref). Tracking the
|
|
49
|
+
* raw width in state instead would re-render the whole editor shell once per
|
|
50
|
+
* pixel during a host splitter drag; the mode changes at exactly two widths,
|
|
51
|
+
* so this observes every resize but renders at most on a band change.
|
|
52
|
+
*/
|
|
53
|
+
export declare function useEditorLayoutMeasure(): EditorLayoutMeasure;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Bottom status bar. Count pills double as shortcuts into the form-config
|
|
4
|
+
* drawer's matching tab; the right-hand toggle expands / collapses the drawer.
|
|
5
|
+
* Rendered only in edit mode by the shell, so it mirrors the design surface.
|
|
6
|
+
*/
|
|
7
|
+
export declare function EditorFooter(): ReactElement;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FormSchemaPatch } from '../../store/form-store';
|
|
3
|
+
import { FormSchema, PresentationLayer } from '../../types';
|
|
4
|
+
export interface FormBasicsTabProps {
|
|
5
|
+
/**
|
|
6
|
+
* The active device's presentation — source of the per-device layout default
|
|
7
|
+
* (stack gap) and layout stats.
|
|
8
|
+
*/
|
|
9
|
+
layer: PresentationLayer;
|
|
10
|
+
/**
|
|
11
|
+
* The schema — source of the shared root metadata (id, version).
|
|
12
|
+
*/
|
|
13
|
+
schema: FormSchema;
|
|
14
|
+
/**
|
|
15
|
+
* Leaf-field count of the active layer. Supplied by the drawer from the
|
|
16
|
+
* store's cached `selectFieldCount` selector, so the stats row never pays a
|
|
17
|
+
* fresh full-tree walk per keystroke.
|
|
18
|
+
*/
|
|
19
|
+
fieldCount: number;
|
|
20
|
+
onPatch: (patch: FormSchemaPatch) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The form-config drawer's "表单" tab: root metadata (id), the layout default
|
|
24
|
+
* (stack gap), and read-only layout stats. Migrated verbatim from the retired
|
|
25
|
+
* right-panel `FormProperties` — the variables / data-sources / linkage sections
|
|
26
|
+
* it used to carry are now first-class drawer tabs.
|
|
27
|
+
*
|
|
28
|
+
* The form ID is the only free-form input the schema validator constrains
|
|
29
|
+
* (`id_required`: non-empty string — a blanked id would fail re-import), so it
|
|
30
|
+
* is guarded at the patch site: an empty / whitespace-only draft is kept
|
|
31
|
+
* visible with an inline error instead of being committed or silently
|
|
32
|
+
* reverted. The gap select offers only valid presets, so it needs no guard.
|
|
33
|
+
*/
|
|
34
|
+
export declare function FormBasicsTab({ fieldCount, layer, onPatch, schema }: FormBasicsTabProps): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Bottom form-config drawer: a docked sheet (no modal backdrop, so the right
|
|
4
|
+
* control-property panel stays interactive alongside it) carrying the
|
|
5
|
+
* form-level configuration across five tabs. The outline tab selects canvas
|
|
6
|
+
* controls; the rest reuse the form-scope panels, writing through `patchSchema`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function FormConfigDrawer(): ReactElement;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import { DeviceRegistries, FormFieldRegistry } from '../engine/registry/form-field-registry';
|
|
3
|
+
import { EditorDeviceMode, EditorViewMode } from '../store/form-store';
|
|
4
|
+
import { DataSourceResolver, ExpressionContext, FormSchema, LinkageEvaluators } from '../types';
|
|
5
|
+
import { ToolbarBrand, Toolbar } from './toolbar/toolbar';
|
|
6
|
+
import { PalettePanel } from './palette/palette-panel';
|
|
7
|
+
import { PropertiesPanel } from './properties/properties-panel';
|
|
8
|
+
/**
|
|
9
|
+
* Imperative handle for host shells (toolbars outside the editor, wizard
|
|
10
|
+
* steps, save buttons). A curated surface — the store's internal shape stays
|
|
11
|
+
* private so it can evolve without breaking hosts.
|
|
12
|
+
*/
|
|
13
|
+
export interface FormEditorApi {
|
|
14
|
+
getSchema: () => FormSchema;
|
|
15
|
+
/**
|
|
16
|
+
* Replace the schema wholesale (import semantics — the undo timeline
|
|
17
|
+
* resets, exactly like the 导入 dialog).
|
|
18
|
+
*/
|
|
19
|
+
setSchema: (schema: FormSchema) => void;
|
|
20
|
+
undo: () => void;
|
|
21
|
+
redo: () => void;
|
|
22
|
+
canUndo: () => boolean;
|
|
23
|
+
canRedo: () => boolean;
|
|
24
|
+
selectNode: (nodeId: string | null) => void;
|
|
25
|
+
setDevice: (device: EditorDeviceMode) => void;
|
|
26
|
+
setViewMode: (mode: EditorViewMode) => void;
|
|
27
|
+
}
|
|
28
|
+
export interface FormEditorProviderProps {
|
|
29
|
+
initialSchema?: FormSchema;
|
|
30
|
+
/**
|
|
31
|
+
* Per-device field registries. Each device falls back to {@link registry} (if
|
|
32
|
+
* given) and then to the built-in defaults, so supplying only the device(s)
|
|
33
|
+
* you customize is enough.
|
|
34
|
+
*/
|
|
35
|
+
registries?: Partial<DeviceRegistries>;
|
|
36
|
+
/**
|
|
37
|
+
* Shorthand for a registry shared by **both** devices. Ignored for a device
|
|
38
|
+
* that {@link registries} already provides. Prefer {@link registries} when the
|
|
39
|
+
* two devices need different field sets. Note the shorthand also shares one
|
|
40
|
+
* container-chrome set across devices — see `FormFieldRegistry`.
|
|
41
|
+
*/
|
|
42
|
+
registry?: FormFieldRegistry;
|
|
43
|
+
/**
|
|
44
|
+
* Overrides for the dynamic linkage evaluators, forwarded to the live preview
|
|
45
|
+
* so a custom JS engine / DSL runs in-designer exactly as it will at runtime.
|
|
46
|
+
*/
|
|
47
|
+
evaluators?: LinkageEvaluators;
|
|
48
|
+
/**
|
|
49
|
+
* Host resolver for `remote` option sources, forwarded to the live preview so
|
|
50
|
+
* remote / ref-to-remote data sources actually resolve while designing.
|
|
51
|
+
*/
|
|
52
|
+
dataSourceResolver?: DataSourceResolver;
|
|
53
|
+
/**
|
|
54
|
+
* Host expression scope (`$user` / `$node`, variable overrides), forwarded to
|
|
55
|
+
* the live preview so host-context expressions evaluate truthfully.
|
|
56
|
+
*/
|
|
57
|
+
expressionContext?: ExpressionContext;
|
|
58
|
+
onSchemaChange?: (schema: FormSchema) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Curated imperative handle — lets a host shell read/replace the schema and
|
|
61
|
+
* drive undo/redo/selection without reaching into the editor's store.
|
|
62
|
+
*/
|
|
63
|
+
apiRef?: Ref<FormEditorApi>;
|
|
64
|
+
children: ReactNode;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Context root for a form-editor instance: the editor store, the per-device
|
|
68
|
+
* registries, and the preview runtime. Hosts composing their own shell start
|
|
69
|
+
* here; {@link FormEditor} is the pre-composed variant on top of it.
|
|
70
|
+
*
|
|
71
|
+
* `registries` / `registry` and `initialSchema` are honoured only on the first
|
|
72
|
+
* render; updating them afterwards has no effect (editor state is bootstrapped
|
|
73
|
+
* once per mount — use {@link FormEditorApi.setSchema} to replace the schema).
|
|
74
|
+
*/
|
|
75
|
+
export declare function FormEditorProvider({ apiRef, children, dataSourceResolver, evaluators, expressionContext, initialSchema, onSchemaChange, registries: registriesProp, registry: registryProp }: FormEditorProviderProps): ReactElement;
|
|
76
|
+
export interface FormEditorShellProps {
|
|
77
|
+
children: ReactNode;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The editor's chrome frame: layout measurement (`data-layout` adaptivity),
|
|
81
|
+
* device context, the shared drag-drop context, and the shell-scoped keyboard
|
|
82
|
+
* shortcuts. Render the editor surfaces (toolbar / workspace parts) as
|
|
83
|
+
* children — {@link FormEditor} shows the canonical arrangement.
|
|
84
|
+
*/
|
|
85
|
+
export declare function FormEditorShell({ children }: FormEditorShellProps): ReactElement;
|
|
86
|
+
/**
|
|
87
|
+
* The horizontal band under the toolbar: palette | stage | properties. Also
|
|
88
|
+
* the positioning anchor for the narrow-layout properties overlay.
|
|
89
|
+
*/
|
|
90
|
+
export declare function FormEditorWorkspace({ children }: {
|
|
91
|
+
children: ReactNode;
|
|
92
|
+
}): ReactElement;
|
|
93
|
+
/**
|
|
94
|
+
* The canvas column: design surface, the form-config drawer floating over its
|
|
95
|
+
* bottom edge, and the status footer (edit mode only).
|
|
96
|
+
*/
|
|
97
|
+
export declare function FormEditorStage(): ReactElement;
|
|
98
|
+
export interface FormEditorProps extends Omit<FormEditorProviderProps, "children"> {
|
|
99
|
+
/**
|
|
100
|
+
* Brand label/tag shown at the toolbar's left edge. Override so a downstream
|
|
101
|
+
* app does not ship the framework's own name.
|
|
102
|
+
*/
|
|
103
|
+
brand?: ToolbarBrand;
|
|
104
|
+
/**
|
|
105
|
+
* Invoked with the current schema when the user confirms the "发布" action.
|
|
106
|
+
* The editor runs a validation pass first — errors block publishing and
|
|
107
|
+
* warnings ask the designer for confirmation. Publishing itself is host
|
|
108
|
+
* semantics (upload / persistence), so when this is omitted the publish
|
|
109
|
+
* button is not rendered at all.
|
|
110
|
+
*/
|
|
111
|
+
onPublish?: (schema: FormSchema) => void;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The pre-composed visual form editor: provider + shell + the canonical
|
|
115
|
+
* toolbar / palette / stage / properties arrangement. Hosts that need a
|
|
116
|
+
* different shell (own toolbar, relocated panels) compose the same parts
|
|
117
|
+
* directly:
|
|
118
|
+
*
|
|
119
|
+
* ```tsx
|
|
120
|
+
* <FormEditor.Provider initialSchema={schema} apiRef={api}>
|
|
121
|
+
* <FormEditor.Shell>
|
|
122
|
+
* <MyToolbar />
|
|
123
|
+
* <FormEditor.Workspace>
|
|
124
|
+
* <FormEditor.Palette />
|
|
125
|
+
* <FormEditor.Stage />
|
|
126
|
+
* <FormEditor.Properties />
|
|
127
|
+
* </FormEditor.Workspace>
|
|
128
|
+
* </FormEditor.Shell>
|
|
129
|
+
* </FormEditor.Provider>
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
declare function FormEditorRoot({ brand, onPublish, ...providerProps }: FormEditorProps): ReactElement;
|
|
133
|
+
export declare const FormEditor: typeof FormEditorRoot & {
|
|
134
|
+
Provider: typeof FormEditorProvider;
|
|
135
|
+
Shell: typeof FormEditorShell;
|
|
136
|
+
Workspace: typeof FormEditorWorkspace;
|
|
137
|
+
Stage: typeof FormEditorStage;
|
|
138
|
+
Toolbar: typeof Toolbar;
|
|
139
|
+
Palette: typeof PalettePanel;
|
|
140
|
+
Properties: typeof PropertiesPanel;
|
|
141
|
+
};
|
|
142
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldGroup } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Display label for each palette category. Sourced from the prototype
|
|
4
|
+
* design's monochromatic Chinese-first wording.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FIELD_GROUP_LABELS: Record<FieldGroup, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Display order in the palette. Categories absent from the registry are
|
|
9
|
+
* filtered out by the panel — adding a new field that targets a previously
|
|
10
|
+
* empty group makes that group appear automatically.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FIELD_GROUP_ORDER: readonly FieldGroup[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FieldDefinition, FieldGroup } from '../../types';
|
|
3
|
+
export interface PaletteGroupProps {
|
|
4
|
+
group: FieldGroup;
|
|
5
|
+
definitions: FieldDefinition[];
|
|
6
|
+
/**
|
|
7
|
+
* External override. When `true`, the group renders open regardless of
|
|
8
|
+
* the user's local toggle state — used while a search keyword is active
|
|
9
|
+
* so every matching group is visible. The user's local state is
|
|
10
|
+
* preserved underneath, so flipping `forceOpen` back to `false` restores
|
|
11
|
+
* whatever the user had chosen before the search.
|
|
12
|
+
*/
|
|
13
|
+
forceOpen?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Icon-rail rendering for the narrow (drawer) layout: no collapsible
|
|
16
|
+
* header, just the group's items as icon-only cards separated by a
|
|
17
|
+
* hairline.
|
|
18
|
+
*/
|
|
19
|
+
rail?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Collapsible category section in the palette. Header shows the group's
|
|
23
|
+
* localized label and item count; clicking the header expands or collapses
|
|
24
|
+
* the single-column item list.
|
|
25
|
+
*
|
|
26
|
+
* `forceOpen` exists so the panel's search filter can override the user's
|
|
27
|
+
* collapsed/expanded preference for the duration of a search without
|
|
28
|
+
* destroying it — when the search clears, the panel removes `forceOpen`
|
|
29
|
+
* and the local state takes back over.
|
|
30
|
+
*/
|
|
31
|
+
export declare function PaletteGroup({ definitions, forceOpen, group, rail }: PaletteGroupProps): ReactElement;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FieldDefinition } from '../../types';
|
|
3
|
+
export interface PaletteItemProps {
|
|
4
|
+
definition: FieldDefinition;
|
|
5
|
+
/**
|
|
6
|
+
* Icon-rail rendering for the narrow (drawer) layout: the label collapses
|
|
7
|
+
* into the `title` tooltip and the card squares up around the icon. Drag
|
|
8
|
+
* and double-click both keep working.
|
|
9
|
+
*/
|
|
10
|
+
iconOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A single palette card. Drag it onto the canvas to drop at a position, or
|
|
14
|
+
* double-click (or press Enter) to append it — into the selected container, or
|
|
15
|
+
* at the bottom of the form when nothing (or a tab container) is selected.
|
|
16
|
+
*
|
|
17
|
+
* The drag uses dnd-kit's Feedback plugin in `clone` mode: the palette card
|
|
18
|
+
* stays in place while a clone follows the pointer, and the field is created
|
|
19
|
+
* only on drop — copy semantics, no DOM removal/re-insert.
|
|
20
|
+
*
|
|
21
|
+
* The card is a `<div role="button">`, NOT a native `<button>`. dnd-kit's
|
|
22
|
+
* pointer sensor runs `target.closest("button")` and suppresses drag
|
|
23
|
+
* activation on interactive elements, so a native-button root lets a drag
|
|
24
|
+
* start only on its bare padding — every child swallows the pointerdown and
|
|
25
|
+
* resolves `closest("button")` back to the card itself. A non-interactive
|
|
26
|
+
* root keeps the whole card draggable; `role` / `tabIndex` and the keydown
|
|
27
|
+
* handler preserve the keyboard-append affordance a real button would give.
|
|
28
|
+
*
|
|
29
|
+
* The per-source `sensors` list is pointer-only: dnd-kit's KeyboardSensor
|
|
30
|
+
* would otherwise claim Enter/Space to start a keyboard drag (swallowing the
|
|
31
|
+
* event before the keydown handler runs), making the documented
|
|
32
|
+
* keyboard-append affordance unreachable.
|
|
33
|
+
*/
|
|
34
|
+
export declare function PaletteItem({ definition, iconOnly }: PaletteItemProps): ReactElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Docked component palette. It is the editor's persistent "materials"
|
|
4
|
+
* workbench: visible in edit mode and hidden during preview mode.
|
|
5
|
+
*
|
|
6
|
+
* Composition:
|
|
7
|
+
* - header: "组件库" title
|
|
8
|
+
* - search row: filters by name or type
|
|
9
|
+
* - body: collapsible category groups, 2-column item grid each
|
|
10
|
+
* - footer: drag/double-click hint
|
|
11
|
+
*
|
|
12
|
+
* Search is local state and survives preview-mode round trips because the
|
|
13
|
+
* panel stays mounted while hidden. When a search keyword is active every
|
|
14
|
+
* visible group is forced open so the user does not have to expand each
|
|
15
|
+
* section to see matches.
|
|
16
|
+
*/
|
|
17
|
+
export declare function PalettePanel(): ReactElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EffectAction, EffectDispatchContext } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Default effect dispatcher for the editor preview.
|
|
4
|
+
*
|
|
5
|
+
* The host-delegated effect actions — `alert` / `navigate` / `api_call` — are
|
|
6
|
+
* benign no-ops in the bare runtime (`dispatchEffect` defaults to a no-op), so a
|
|
7
|
+
* designer previewing a form would see nothing happen when one fires. This
|
|
8
|
+
* realizes them visibly while designing: `alert` shows a message at its level,
|
|
9
|
+
* and `navigate` / `api_call` (which can't really run in a preview) surface a
|
|
10
|
+
* descriptive toast so the linkage is still observable. A host that wires its own
|
|
11
|
+
* `evaluators.dispatchEffect` overrides this entirely — production keeps full
|
|
12
|
+
* control over how these effects behave.
|
|
13
|
+
*/
|
|
14
|
+
export declare function previewDispatchEffect(action: EffectAction, context: EffectDispatchContext): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataSourceResolver, ExpressionContext, LinkageEvaluators } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Host-injected runtime capabilities the editor's live preview (and JSON split
|
|
5
|
+
* render) need so the in-designer `FormRenderer` behaves like the deployed form:
|
|
6
|
+
* remote / ref data sources resolve, a custom linkage engine runs, and the host
|
|
7
|
+
* expression scope (`$user` / `$node`) is present. Mirrors the slots
|
|
8
|
+
* `FormRendererProps` already exposes; the editor only forwards them.
|
|
9
|
+
*/
|
|
10
|
+
export interface PreviewRuntime {
|
|
11
|
+
evaluators?: LinkageEvaluators;
|
|
12
|
+
dataSourceResolver?: DataSourceResolver;
|
|
13
|
+
expressionContext?: ExpressionContext;
|
|
14
|
+
}
|
|
15
|
+
export declare function PreviewRuntimeProvider({ children, value }: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
value: PreviewRuntime;
|
|
18
|
+
}): ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The host-injected preview runtime, defaulting to an empty bundle (every slot
|
|
21
|
+
* falls back to the renderer's own no-op default).
|
|
22
|
+
*/
|
|
23
|
+
export declare function usePreviewRuntime(): PreviewRuntime;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { Block, ContainerNode } from '../../types';
|
|
3
|
+
export interface BlockLayoutSectionProps {
|
|
4
|
+
node: Block;
|
|
5
|
+
/**
|
|
6
|
+
* The container directly owning `node`. Already resolved by the properties
|
|
7
|
+
* panel's fused walk (`findNodeWithParentContainer`) and passed down, so this
|
|
8
|
+
* section never re-walks the tree per keystroke.
|
|
9
|
+
*/
|
|
10
|
+
parent: ContainerNode | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Layout sizing for the selected block, shown above its type-specific
|
|
14
|
+
* properties. The control adapts to the block's parent container: under a flex
|
|
15
|
+
* container it edits the per-slot `flex` (grow / basis); anywhere else (a grid
|
|
16
|
+
* row) it edits the column `span` — an empty span means auto, sharing the row's
|
|
17
|
+
* leftover width with the other auto blocks.
|
|
18
|
+
*/
|
|
19
|
+
export declare function BlockLayoutSection({ node, parent }: BlockLayoutSectionProps): ReactElement | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ContainerNode } from '../../types';
|
|
3
|
+
export interface ContainerPropertiesProps {
|
|
4
|
+
node: ContainerNode;
|
|
5
|
+
/**
|
|
6
|
+
* The container directly owning `node`, resolved by the properties panel's
|
|
7
|
+
* fused tree walk and threaded down so the layout section does not re-walk
|
|
8
|
+
* the tree per keystroke.
|
|
9
|
+
*/
|
|
10
|
+
parent: ContainerNode | undefined;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Properties editor for a selected container node. Sections expose title and
|
|
15
|
+
* variant; tabs expose per-tab labels with add/remove; subforms expose label,
|
|
16
|
+
* appearance, and row bounds; every container exposes its linkage rules.
|
|
17
|
+
* Updates flow through the store's `updateBlock`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ContainerProperties({ node, parent, onClose }: ContainerPropertiesProps): ReactElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { EntryComponentProps, EntryType } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Built-in property-entry renderers, resolved by the properties panel as the
|
|
5
|
+
* fallback behind per-instance {@link FormFieldRegistry.registerPropertyEntry}
|
|
6
|
+
* overrides.
|
|
7
|
+
*
|
|
8
|
+
* A statically imported record (rather than a side-effect registration at
|
|
9
|
+
* module-evaluation time) keeps the wiring bundler-proof: the package ships
|
|
10
|
+
* `"sideEffects": ["*.css"]`, so a bare side-effect import would be tree-shaken
|
|
11
|
+
* out of downstream production builds, leaving every entry type unregistered.
|
|
12
|
+
* The record lives in the editor layer next to its only consumer, so the
|
|
13
|
+
* engine registry still never imports editor code and a renderer-only host
|
|
14
|
+
* bundles none of the panel tree.
|
|
15
|
+
*
|
|
16
|
+
* `Partial` because `EntryType` is open for module augmentation — types added
|
|
17
|
+
* by a host exist in the union but have no built-in renderer here.
|
|
18
|
+
*/
|
|
19
|
+
export declare const BUILT_IN_PROPERTY_ENTRIES: Partial<Record<EntryType, ComponentType<EntryComponentProps>>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coerce an opaque property value to a display string: strings pass through,
|
|
3
|
+
* nullish becomes "", everything else is String()-formatted. Shared by the text
|
|
4
|
+
* and select property entries so the coercion cannot drift between them.
|
|
5
|
+
*/
|
|
6
|
+
export declare function coerceToString(value: unknown): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/serialize';
|
|
3
|
+
/**
|
|
4
|
+
* The label token for a property entry. Exported so the option-source entry —
|
|
5
|
+
* whose own `<div>`-based layout cannot use {@link EntryField} — keeps the same
|
|
6
|
+
* label styling instead of drifting its own copy.
|
|
7
|
+
*/
|
|
8
|
+
export declare const entryLabelCss: SerializedStyles;
|
|
9
|
+
/**
|
|
10
|
+
* The description token for a property entry. Exported alongside
|
|
11
|
+
* {@link entryLabelCss} so the option-source entry — whose own `<div>`-based
|
|
12
|
+
* layout cannot use {@link EntryField} — renders its optional `description` with
|
|
13
|
+
* the same styling instead of dropping it.
|
|
14
|
+
*/
|
|
15
|
+
export declare const descriptionCss: SerializedStyles;
|
|
16
|
+
export interface EntryFieldProps {
|
|
17
|
+
label: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Shared chrome for a labelled property entry: a native `<label>` wrapping the
|
|
23
|
+
* entry label, the control (`children`), and an optional description below. Each
|
|
24
|
+
* input entry renderer (`text` / `number` / `select` / `icon`) provides only its
|
|
25
|
+
* control — mirroring the runtime `FieldShell` split — so the label / spacing /
|
|
26
|
+
* description tokens live in one place. The `<label>` wrapper keeps the
|
|
27
|
+
* click-to-focus behavior those single-control entries rely on.
|
|
28
|
+
*/
|
|
29
|
+
export declare function EntryField({ children, description, label }: EntryFieldProps): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { EntryComponentProps } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Property-panel renderer for the `icon` entry type: a searchable lucide
|
|
5
|
+
* {@link IconPicker} whose value is the stored kebab-case icon name. Used by
|
|
6
|
+
* any field that carries an icon property (e.g. a button's leading icon).
|
|
7
|
+
*/
|
|
8
|
+
export declare const IconEntry: FC<EntryComponentProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CheckboxEntry } from './checkbox-entry';
|
|
2
|
+
export { IconEntry } from './icon-entry';
|
|
3
|
+
export { KeyEntry } from './key-entry';
|
|
4
|
+
export { LinkageRulesEntry } from './linkage';
|
|
5
|
+
export { NumberEntry } from './number-entry';
|
|
6
|
+
export { OptionsSourceEntry } from './options-source';
|
|
7
|
+
export { SelectEntry } from './select-entry';
|
|
8
|
+
export { TextEntry } from './text-entry';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { EntryComponentProps } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Property-panel renderer for the `key` entry type: a draft-buffered text input.
|
|
5
|
+
* The committed value flows through the store's `setFieldKey`, which sanitizes
|
|
6
|
+
* (strips every non-key char) and de-duplicates within the value scope —
|
|
7
|
+
* normalization that is only coherent once per committed value. A plain
|
|
8
|
+
* controlled input would re-render off the already-normalized stored key on
|
|
9
|
+
* every keystroke, stripping characters and jumping the caret as the user types.
|
|
10
|
+
* Buffering the draft and committing on blur / Enter (the seed-on-transition
|
|
11
|
+
* pattern the variable-name editor uses) keeps the normalization off the typing
|
|
12
|
+
* path; commit semantics are identical to a per-keystroke write.
|
|
13
|
+
*/
|
|
14
|
+
export declare const KeyEntry: FC<EntryComponentProps>;
|