@argusvane/datum-form-test 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/NOTICE +26 -0
- package/README.md +52 -2
- package/bin/datum-form-test.mjs +11 -0
- package/dist/bundle-size.txt +3 -0
- package/dist/cli.mjs +3 -0
- package/dist/datum-form-test.LICENSE.txt +510 -0
- package/dist/index.mjs +68728 -0
- package/dist/types/engine/form-engine/agent/builder/agent-texts-en.d.ts +53 -0
- package/dist/types/engine/form-engine/builder/controller/builder-controller.d.ts +2534 -0
- package/dist/types/engine/form-engine/builder/controller/dependents.d.ts +122 -0
- package/dist/types/engine/form-engine/builder/controller/language-edits.d.ts +48 -0
- package/dist/types/engine/form-engine/builder/controller/simulated-options.d.ts +20 -0
- package/dist/types/engine/form-engine/builder/controller/translation-rules.d.ts +71 -0
- package/dist/types/engine/form-engine/builder/controller/try-submission.d.ts +45 -0
- package/dist/types/engine/form-engine/builder/data/data-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/data/data-model-import.d.ts +119 -0
- package/dist/types/engine/form-engine/builder/data/data-model-plan.d.ts +52 -0
- package/dist/types/engine/form-engine/builder/data/data-surface.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/data/data-texts-en.d.ts +205 -0
- package/dist/types/engine/form-engine/builder/data/schema-rows.d.ts +56 -0
- package/dist/types/engine/form-engine/builder/data-model/compare.d.ts +37 -0
- package/dist/types/engine/form-engine/builder/data-model/data-model.d.ts +113 -0
- package/dist/types/engine/form-engine/builder/data-model/example.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/data-model/from-form.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/data-model/from-json-schema.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/data-model/from-sample.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/data-model/generate.d.ts +101 -0
- package/dist/types/engine/form-engine/builder/data-model/index.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/data-model/mapping.d.ts +26 -0
- package/dist/types/engine/form-engine/builder/data-model/read-input.d.ts +39 -0
- package/dist/types/engine/form-engine/builder/data-model/to-json-schema.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/definition-budget.d.ts +27 -0
- package/dist/types/engine/form-engine/builder/drag-drop/html5-drag-drop.d.ts +57 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-legality.d.ts +23 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-texts-en.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-ui.d.ts +72 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-accept.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-add-step.d.ts +51 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-completions.d.ts +66 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-coverage.d.ts +32 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor-loader.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor-texts-en.d.ts +72 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor.d.ts +50 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-model.d.ts +422 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-panel-styles.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-panel-texts-en.d.ts +174 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-record.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-rename.d.ts +93 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-rules.d.ts +42 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-runner.d.ts +2 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-scaffold.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-textarea.d.ts +88 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-texts-en.d.ts +222 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-words.d.ts +12 -0
- package/dist/types/engine/form-engine/builder/formula/feel-functions.d.ts +98 -0
- package/dist/types/engine/form-engine/builder/formula/feel-print.d.ts +47 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor-loader.d.ts +16 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor-styles.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/formula/formula-fields.d.ts +44 -0
- package/dist/types/engine/form-engine/builder/formula/formula-textarea.d.ts +75 -0
- package/dist/types/engine/form-engine/builder/formula/formula-texts-en.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/formula/rename.d.ts +98 -0
- package/dist/types/engine/form-engine/builder/history/command-history.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/history/form-steps-on-page.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/history/rename-step.d.ts +68 -0
- package/dist/types/engine/form-engine/builder/index.d.ts +48 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-authoring-texts-en.d.ts +20 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-authoring.d.ts +119 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-builder-mode.d.ts +385 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-catalog.d.ts +212 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-checks.d.ts +175 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-components.d.ts +183 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-config-rename.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-designer-panels.d.ts +67 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-designer.d.ts +296 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-finding-words.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-findings.d.ts +74 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-from-form.d.ts +89 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-mode-loader.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-mode-model.d.ts +100 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-preview-texts-en.d.ts +28 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-preview.d.ts +163 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-references.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-texts-en.d.ts +151 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-texts.d.ts +51 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-tree.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-try-map.d.ts +49 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-canvas-adapter.d.ts +253 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-history.d.ts +71 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-review.d.ts +79 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-view.d.ts +75 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-layout.d.ts +135 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-model.d.ts +346 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-preferences.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-styles.d.ts +32 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-svg.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-texts-en.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/languages/engine-texts.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/languages/exchange.d.ts +199 -0
- package/dist/types/engine/form-engine/builder/languages/languages-cells.d.ts +106 -0
- package/dist/types/engine/form-engine/builder/languages/languages-exchange-dialog.d.ts +58 -0
- package/dist/types/engine/form-engine/builder/languages/languages-exchange-texts-en.d.ts +101 -0
- package/dist/types/engine/form-engine/builder/languages/languages-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/languages/languages-model.d.ts +180 -0
- package/dist/types/engine/form-engine/builder/languages/languages-surface.d.ts +418 -0
- package/dist/types/engine/form-engine/builder/languages/languages-texts-en.d.ts +174 -0
- package/dist/types/engine/form-engine/builder/logic/builder-texts.d.ts +1127 -0
- package/dist/types/engine/form-engine/builder/logic/coverage.d.ts +86 -0
- package/dist/types/engine/form-engine/builder/logic/index.d.ts +5 -0
- package/dist/types/engine/form-engine/builder/logic/logic-journey-host.d.ts +92 -0
- package/dist/types/engine/form-engine/builder/logic/logic-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/logic/logic-model.d.ts +158 -0
- package/dist/types/engine/form-engine/builder/logic/logic-surface.d.ts +359 -0
- package/dist/types/engine/form-engine/builder/logic/logic-texts-en.d.ts +216 -0
- package/dist/types/engine/form-engine/builder/logic/logic-types.d.ts +183 -0
- package/dist/types/engine/form-engine/builder/overview/overview-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/overview/overview-surface.d.ts +84 -0
- package/dist/types/engine/form-engine/builder/overview/overview-texts-en.d.ts +27 -0
- package/dist/types/engine/form-engine/builder/palette/command-palette.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/palette/palette-filter.d.ts +37 -0
- package/dist/types/engine/form-engine/builder/palette/palette-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/palette/palette-texts-en.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-bindings.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-catalog.d.ts +108 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-conditions.d.ts +172 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-builder-mode.d.ts +406 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-canvas-adapters.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-chunk.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-loader.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-panels.d.ts +89 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer.d.ts +95 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-layout-texts.d.ts +86 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-mode-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-mode-model.d.ts +88 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-panel-styles.d.ts +1 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-template-designer.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-template-source.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-texts-en.d.ts +405 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/template-mode.d.ts +186 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/template-pages.d.ts +57 -0
- package/dist/types/engine/form-engine/builder/popover-place.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/preview/builder-preview-runtime.d.ts +284 -0
- package/dist/types/engine/form-engine/builder/print/print-breaks.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/print/print-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/print/print-preview.d.ts +121 -0
- package/dist/types/engine/form-engine/builder/print/print-samples.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/print/print-settings-model.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/print/print-styles.d.ts +1 -0
- package/dist/types/engine/form-engine/builder/print/print-surface.d.ts +284 -0
- package/dist/types/engine/form-engine/builder/print/print-texts-en.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/property-editor/component-editor-context.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/property-editor/component-json.d.ts +83 -0
- package/dist/types/engine/form-engine/builder/property-editor/condition-words.d.ts +26 -0
- package/dist/types/engine/form-engine/builder/property-editor/css-classes.d.ts +84 -0
- package/dist/types/engine/form-engine/builder/property-editor/editor-composer.d.ts +9 -0
- package/dist/types/engine/form-engine/builder/property-editor/inspector-model.d.ts +376 -0
- package/dist/types/engine/form-engine/builder/property-editor/rule-source.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/property-editor/rules-model.d.ts +179 -0
- package/dist/types/engine/form-engine/builder/tree-editor/nested-tree-view.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/tree-editor/slot-constraints.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/tree-editor/tree-editor.d.ts +185 -0
- package/dist/types/engine/form-engine/builder/web-component/assistants-settings.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-chrome-panel.d.ts +179 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-features.d.ts +97 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-form-fields-panel.d.ts +42 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-modes.d.ts +704 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-outline.d.ts +24 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-panels.d.ts +1872 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-shared.d.ts +917 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-tests-panel.d.ts +454 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-theme-registry.d.ts +36 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-variables-panel.d.ts +158 -0
- package/dist/types/engine/form-engine/builder/web-component/canvas-hooks.d.ts +53 -0
- package/dist/types/engine/form-engine/builder/web-component/chrome-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/web-component/default-builder-element.d.ts +2012 -0
- package/dist/types/engine/form-engine/builder/web-component/definition-size.d.ts +12 -0
- package/dist/types/engine/form-engine/builder/web-component/dialog-frame.d.ts +36 -0
- package/dist/types/engine/form-engine/builder/web-component/formula-settings.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/web-component/host-control-styles.d.ts +38 -0
- package/dist/types/engine/form-engine/builder/web-component/json-viewer-loader.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/web-component/json-viewer.d.ts +38 -0
- package/dist/types/engine/form-engine/builder/web-component/modal-place.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/web-component/palette-glyphs.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/web-component/panel-memory.d.ts +68 -0
- package/dist/types/engine/form-engine/builder/web-component/phone-menu.d.ts +67 -0
- package/dist/types/engine/form-engine/builder/web-component/phone-styles.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/web-component/remote-images.d.ts +25 -0
- package/dist/types/engine/form-engine/builder/web-component/sheet-gestures.d.ts +59 -0
- package/dist/types/engine/form-engine/builder/web-component/starter-submit.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/web-component/studio-dark-theme.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/web-component/studio-tokens.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/web-component/surface-sheet.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/web-component/tests-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/web-component/toolbar-roving.d.ts +21 -0
- package/dist/types/engine/form-engine/builder/web-component/try-it-types.d.ts +262 -0
- package/dist/types/engine/form-engine/builder/web-component/try-it.d.ts +85 -0
- package/dist/types/engine/form-engine/builder/web-component/try-texts-en.d.ts +64 -0
- package/dist/types/engine/form-engine/builder/web-component/variables-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/core/accessibility/accessibility-semantics.d.ts +51 -0
- package/dist/types/engine/form-engine/core/accessibility/keyboard-navigation.d.ts +8 -0
- package/dist/types/engine/form-engine/core/crypto/sha256.d.ts +18 -0
- package/dist/types/engine/form-engine/core/errors/error-navigation.d.ts +14 -0
- package/dist/types/engine/form-engine/core/errors/form-error.d.ts +32 -0
- package/dist/types/engine/form-engine/core/events/event-bus.d.ts +18 -0
- package/dist/types/engine/form-engine/core/events/event-types.d.ts +236 -0
- package/dist/types/engine/form-engine/core/events/hooks.d.ts +107 -0
- package/dist/types/engine/form-engine/core/expressions/compile.d.ts +565 -0
- package/dist/types/engine/form-engine/core/expressions/condition-shape.d.ts +11 -0
- package/dist/types/engine/form-engine/core/expressions/definition-structure.d.ts +329 -0
- package/dist/types/engine/form-engine/core/expressions/expression.d.ts +102 -0
- package/dist/types/engine/form-engine/core/expressions/formula-types.d.ts +114 -0
- package/dist/types/engine/form-engine/core/expressions/formula.d.ts +150 -0
- package/dist/types/engine/form-engine/core/expressions/function-docs.d.ts +13 -0
- package/dist/types/engine/form-engine/core/expressions/function-table.d.ts +396 -0
- package/dist/types/engine/form-engine/core/expressions/inspect.d.ts +292 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-lint.d.ts +28 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-parse.d.ts +200 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-read.d.ts +11 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-run.d.ts +58 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-types.d.ts +413 -0
- package/dist/types/engine/form-engine/core/form-tests/index.d.ts +7 -0
- package/dist/types/engine/form-engine/core/index.d.ts +75 -0
- package/dist/types/engine/form-engine/core/journey/journey-diagnostics.d.ts +249 -0
- package/dist/types/engine/form-engine/core/journey/journey-flow.d.ts +77 -0
- package/dist/types/engine/form-engine/core/journey/journey-path.d.ts +213 -0
- package/dist/types/engine/form-engine/core/journey/journey-server-check.d.ts +66 -0
- package/dist/types/engine/form-engine/core/journey/journey-shared.d.ts +39 -0
- package/dist/types/engine/form-engine/core/journey/journey-types.d.ts +246 -0
- package/dist/types/engine/form-engine/core/journey/presentation.d.ts +163 -0
- package/dist/types/engine/form-engine/core/journey/worked-out-text.d.ts +10 -0
- package/dist/types/engine/form-engine/core/localization/form-texts.d.ts +283 -0
- package/dist/types/engine/form-engine/core/localization/locale-documents.d.ts +74 -0
- package/dist/types/engine/form-engine/core/localization/localized-text.d.ts +21 -0
- package/dist/types/engine/form-engine/core/localization/supported-locales.d.ts +49 -0
- package/dist/types/engine/form-engine/core/localization/translations.d.ts +312 -0
- package/dist/types/engine/form-engine/core/localization/validation-messages.d.ts +120 -0
- package/dist/types/engine/form-engine/core/schema/agent-tools-setting.d.ts +5 -0
- package/dist/types/engine/form-engine/core/schema/answer-kinds.d.ts +92 -0
- package/dist/types/engine/form-engine/core/schema/button-group.d.ts +24 -0
- package/dist/types/engine/form-engine/core/schema/button.d.ts +75 -0
- package/dist/types/engine/form-engine/core/schema/collection.d.ts +29 -0
- package/dist/types/engine/form-engine/core/schema/component-classes.d.ts +26 -0
- package/dist/types/engine/form-engine/core/schema/component-kinds.d.ts +76 -0
- package/dist/types/engine/form-engine/core/schema/contracts.d.ts +614 -0
- package/dist/types/engine/form-engine/core/schema/control-hints.d.ts +45 -0
- package/dist/types/engine/form-engine/core/schema/data-grid.d.ts +138 -0
- package/dist/types/engine/form-engine/core/schema/data-source-capability.d.ts +20 -0
- package/dist/types/engine/form-engine/core/schema/file-upload.d.ts +114 -0
- package/dist/types/engine/form-engine/core/schema/form-chrome.d.ts +301 -0
- package/dist/types/engine/form-engine/core/schema/grid.d.ts +88 -0
- package/dist/types/engine/form-engine/core/schema/image.d.ts +19 -0
- package/dist/types/engine/form-engine/core/schema/inline-options.d.ts +69 -0
- package/dist/types/engine/form-engine/core/schema/journey.d.ts +336 -0
- package/dist/types/engine/form-engine/core/schema/legend-mark.d.ts +10 -0
- package/dist/types/engine/form-engine/core/schema/length-limits.d.ts +33 -0
- package/dist/types/engine/form-engine/core/schema/pattern-validity.d.ts +2 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout-read.d.ts +508 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout-table.d.ts +25 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout.d.ts +224 -0
- package/dist/types/engine/form-engine/core/schema/pdf-renditions.d.ts +46 -0
- package/dist/types/engine/form-engine/core/schema/pdf-signature-configuration.d.ts +6 -0
- package/dist/types/engine/form-engine/core/schema/print.d.ts +76 -0
- package/dist/types/engine/form-engine/core/schema/signature.d.ts +13 -0
- package/dist/types/engine/form-engine/core/schema/static-html.d.ts +44 -0
- package/dist/types/engine/form-engine/core/schema/steps.d.ts +28 -0
- package/dist/types/engine/form-engine/core/schema/types.d.ts +186 -0
- package/dist/types/engine/form-engine/core/schema/validate-on-setting.d.ts +16 -0
- package/dist/types/engine/form-engine/core/state/answer-shape.d.ts +28 -0
- package/dist/types/engine/form-engine/core/state/effective-state.d.ts +42 -0
- package/dist/types/engine/form-engine/core/state/form-state.d.ts +160 -0
- package/dist/types/engine/form-engine/core/state/hidden-value-policy.d.ts +34 -0
- package/dist/types/engine/form-engine/core/state/host-context.d.ts +24 -0
- package/dist/types/engine/form-engine/core/state/semantic-state.d.ts +19 -0
- package/dist/types/engine/form-engine/core/state/submittable-fold.d.ts +460 -0
- package/dist/types/engine/form-engine/core/submission/canonical-submission.d.ts +62 -0
- package/dist/types/engine/form-engine/core/submission/envelope-completeness.d.ts +20 -0
- package/dist/types/engine/form-engine/core/submission/form-notice.d.ts +43 -0
- package/dist/types/engine/form-engine/core/submission/jcs.d.ts +20 -0
- package/dist/types/engine/form-engine/core/submission/signing.d.ts +110 -0
- package/dist/types/engine/form-engine/core/submission/submission-file.d.ts +34 -0
- package/dist/types/engine/form-engine/core/submission/submission-handler.d.ts +25 -0
- package/dist/types/engine/form-engine/core/submission/submission-modes.d.ts +11 -0
- package/dist/types/engine/form-engine/core/submission/webauthn-assertion.d.ts +41 -0
- package/dist/types/engine/form-engine/core/text/placeholders.d.ts +20 -0
- package/dist/types/engine/form-engine/core/text/spreadsheet-cell.d.ts +14 -0
- package/dist/types/engine/form-engine/core/tree/component-id.d.ts +14 -0
- package/dist/types/engine/form-engine/core/tree/component-path.d.ts +6 -0
- package/dist/types/engine/form-engine/core/tree/component-tree.d.ts +60 -0
- package/dist/types/engine/form-engine/core/tree/data-scope.d.ts +151 -0
- package/dist/types/engine/form-engine/core/tree/nesting.d.ts +10 -0
- package/dist/types/engine/form-engine/core/tree/prototype-names.d.ts +6 -0
- package/dist/types/engine/form-engine/data/client/client-data-source-runtime.d.ts +7 -0
- package/dist/types/engine/form-engine/data/client/registered-client-data-source-runtime.d.ts +6 -0
- package/dist/types/engine/form-engine/data/host/data-source-set.d.ts +46 -0
- package/dist/types/engine/form-engine/data/index.d.ts +9 -0
- package/dist/types/engine/form-engine/data/providers/data-source-provider-registry.d.ts +11 -0
- package/dist/types/engine/form-engine/data/providers/registered-data-source-runtime.d.ts +10 -0
- package/dist/types/engine/form-engine/data/providers/remote-data-source-provider.d.ts +30 -0
- package/dist/types/engine/form-engine/data/providers/static-data-source-provider.d.ts +20 -0
- package/dist/types/engine/form-engine/data/server/registered-server-data-source-runtime.d.ts +6 -0
- package/dist/types/engine/form-engine/data/server/server-data-source-runtime.d.ts +7 -0
- package/dist/types/engine/form-engine/index.d.ts +29 -0
- package/dist/types/engine/form-engine/persistence/core/draft-compatibility.d.ts +22 -0
- package/dist/types/engine/form-engine/persistence/core/draft-store.d.ts +96 -0
- package/dist/types/engine/form-engine/persistence/file-draft/draft-file.d.ts +3 -0
- package/dist/types/engine/form-engine/persistence/index.d.ts +7 -0
- package/dist/types/engine/form-engine/persistence/indexeddb/indexeddb-draft-store.d.ts +15 -0
- package/dist/types/engine/form-engine/persistence/local-storage/browser-local-draft-store.d.ts +22 -0
- package/dist/types/engine/form-engine/persistence/local-storage/in-memory-draft-store.d.ts +8 -0
- package/dist/types/engine/form-engine/persistence/server/server-draft-store.d.ts +15 -0
- package/dist/types/engine/form-engine/plugins/component-adapters.d.ts +66 -0
- package/dist/types/engine/form-engine/plugins/index.d.ts +4 -0
- package/dist/types/engine/form-engine/plugins/lifecycle/plugin-lifecycle.d.ts +11 -0
- package/dist/types/engine/form-engine/plugins/manifest/load-plugin-manifest.d.ts +23 -0
- package/dist/types/engine/form-engine/plugins/platform/plugin-platform.d.ts +81 -0
- package/dist/types/engine/form-engine/registry/capabilities/drawing-capabilities.d.ts +52 -0
- package/dist/types/engine/form-engine/registry/capabilities/field-capabilities.d.ts +205 -0
- package/dist/types/engine/form-engine/registry/components/component-registry.d.ts +9 -0
- package/dist/types/engine/form-engine/registry/data-sources/data-source-registry.d.ts +9 -0
- package/dist/types/engine/form-engine/registry/engine-component-types.d.ts +20 -0
- package/dist/types/engine/form-engine/registry/engine-version.d.ts +5 -0
- package/dist/types/engine/form-engine/registry/formula-functions/formula-function-registry.d.ts +33 -0
- package/dist/types/engine/form-engine/registry/index.d.ts +13 -0
- package/dist/types/engine/form-engine/registry/kinds.d.ts +83 -0
- package/dist/types/engine/form-engine/registry/pdf/pdf-rendition-registry.d.ts +15 -0
- package/dist/types/engine/form-engine/registry/plugins/plugin-registry.d.ts +14 -0
- package/dist/types/engine/form-engine/registry/submission/submission-handler-registry.d.ts +7 -0
- package/dist/types/engine/form-engine/registry/validators/validator-registry.d.ts +6 -0
- package/dist/types/engine/form-engine/registry/version-range.d.ts +15 -0
- package/dist/types/engine/form-engine/registry/versioned-theme-registry.d.ts +30 -0
- package/dist/types/engine/form-engine/registry/versioning.d.ts +5 -0
- package/dist/types/engine/form-engine/render/core/component-model.d.ts +292 -0
- package/dist/types/engine/form-engine/render/core/component-options.d.ts +58 -0
- package/dist/types/engine/form-engine/render/core/css-rules.d.ts +68 -0
- package/dist/types/engine/form-engine/render/core/error-accessibility.d.ts +23 -0
- package/dist/types/engine/form-engine/render/core/error-summary.d.ts +62 -0
- package/dist/types/engine/form-engine/render/core/error-wording.d.ts +104 -0
- package/dist/types/engine/form-engine/render/core/escape-html.d.ts +2 -0
- package/dist/types/engine/form-engine/render/core/file-storage.d.ts +59 -0
- package/dist/types/engine/form-engine/render/core/host-data-sources.d.ts +44 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-default.d.ts +5 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-eager.d.ts +10 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-factory.d.ts +13 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit.d.ts +61 -0
- package/dist/types/engine/form-engine/render/core/journey-render.d.ts +132 -0
- package/dist/types/engine/form-engine/render/core/journey-review-kit-eager.d.ts +9 -0
- package/dist/types/engine/form-engine/render/core/journey-review-kit.d.ts +33 -0
- package/dist/types/engine/form-engine/render/core/journey-review.d.ts +134 -0
- package/dist/types/engine/form-engine/render/core/presentation-tree.d.ts +374 -0
- package/dist/types/engine/form-engine/render/core/print-options.d.ts +89 -0
- package/dist/types/engine/form-engine/render/core/render-contracts.d.ts +7 -0
- package/dist/types/engine/form-engine/render/core/render-orchestrator.d.ts +139 -0
- package/dist/types/engine/form-engine/render/core/render-policy.d.ts +52 -0
- package/dist/types/engine/form-engine/render/core/runtime-render-bridge.d.ts +154 -0
- package/dist/types/engine/form-engine/render/core/scalar-text.d.ts +10 -0
- package/dist/types/engine/form-engine/render/core/tab-slots.d.ts +25 -0
- package/dist/types/engine/form-engine/render/core/token-style-vars.d.ts +45 -0
- package/dist/types/engine/form-engine/render/icons/builtin-icons.d.ts +24 -0
- package/dist/types/engine/form-engine/render/icons/icon-names.d.ts +67 -0
- package/dist/types/engine/form-engine/render/icons/icon-set.d.ts +102 -0
- package/dist/types/engine/form-engine/render/index.d.ts +68 -0
- package/dist/types/engine/form-engine/render/live/announcer.d.ts +10 -0
- package/dist/types/engine/form-engine/render/live/assets-feature.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/assets-policy.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/assets.d.ts +109 -0
- package/dist/types/engine/form-engine/render/live/binding-registry.d.ts +46 -0
- package/dist/types/engine/form-engine/render/live/buttons.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/chrome.d.ts +15 -0
- package/dist/types/engine/form-engine/render/live/component-text.d.ts +10 -0
- package/dist/types/engine/form-engine/render/live/contract.d.ts +1267 -0
- package/dist/types/engine/form-engine/render/live/data-grid.d.ts +51 -0
- package/dist/types/engine/form-engine/render/live/datum/buttons.d.ts +44 -0
- package/dist/types/engine/form-engine/render/live/datum/choice-fields.d.ts +8 -0
- package/dist/types/engine/form-engine/render/live/datum/chrome-files.d.ts +43 -0
- package/dist/types/engine/form-engine/render/live/datum/chrome.d.ts +49 -0
- package/dist/types/engine/form-engine/render/live/datum/container-kit.d.ts +66 -0
- package/dist/types/engine/form-engine/render/live/datum/containers.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/content.d.ts +5 -0
- package/dist/types/engine/form-engine/render/live/datum/css.d.ts +40 -0
- package/dist/types/engine/form-engine/render/live/datum/date.d.ts +66 -0
- package/dist/types/engine/form-engine/render/live/datum/default-tokens.d.ts +30 -0
- package/dist/types/engine/form-engine/render/live/datum/field-scaffold.d.ts +131 -0
- package/dist/types/engine/form-engine/render/live/datum/file.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/datum/frames.d.ts +33 -0
- package/dist/types/engine/form-engine/render/live/datum/grid.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/datum/groups.d.ts +45 -0
- package/dist/types/engine/form-engine/render/live/datum/icons.d.ts +18 -0
- package/dist/types/engine/form-engine/render/live/datum/leaf-kit.d.ts +17 -0
- package/dist/types/engine/form-engine/render/live/datum/month-names.d.ts +2 -0
- package/dist/types/engine/form-engine/render/live/datum/notice.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/options.d.ts +133 -0
- package/dist/types/engine/form-engine/render/live/datum/page.d.ts +13 -0
- package/dist/types/engine/form-engine/render/live/datum/parts.d.ts +120 -0
- package/dist/types/engine/form-engine/render/live/datum/signature.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/steps.d.ts +30 -0
- package/dist/types/engine/form-engine/render/live/datum/summary.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/datum/tabs.d.ts +23 -0
- package/dist/types/engine/form-engine/render/live/datum/text-fields.d.ts +7 -0
- package/dist/types/engine/form-engine/render/live/datum/tokens.d.ts +1030 -0
- package/dist/types/engine/form-engine/render/live/error-target.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/field-preview.d.ts +22 -0
- package/dist/types/engine/form-engine/render/live/fields.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/files.d.ts +20 -0
- package/dist/types/engine/form-engine/render/live/form-notices.d.ts +17 -0
- package/dist/types/engine/form-engine/render/live/guards.d.ts +37 -0
- package/dist/types/engine/form-engine/render/live/journey-page.d.ts +45 -0
- package/dist/types/engine/form-engine/render/live/journey-review.d.ts +50 -0
- package/dist/types/engine/form-engine/render/live/lit.d.ts +48 -0
- package/dist/types/engine/form-engine/render/live/look-classes.d.ts +27 -0
- package/dist/types/engine/form-engine/render/live/media-labels.d.ts +16 -0
- package/dist/types/engine/form-engine/render/live/mount.d.ts +450 -0
- package/dist/types/engine/form-engine/render/live/notices.d.ts +3 -0
- package/dist/types/engine/form-engine/render/live/readonly-sizing.d.ts +14 -0
- package/dist/types/engine/form-engine/render/live/renderer.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/sources.d.ts +4 -0
- package/dist/types/engine/form-engine/render/live/steps.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/summary.d.ts +33 -0
- package/dist/types/engine/form-engine/render/live/tabs.d.ts +8 -0
- package/dist/types/engine/form-engine/render/live/tooltips.d.ts +30 -0
- package/dist/types/engine/form-engine/render/pdf/default-layout.d.ts +51 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-abi.d.ts +819 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-agent-signer.d.ts +92 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-attachments.d.ts +76 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-components.d.ts +282 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-designer-styles.d.ts +12 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-document.d.ts +412 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-layout-selection.d.ts +54 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-pages.d.ts +25 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-provider.d.ts +219 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-render-mode.d.ts +2 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-render-model.d.ts +124 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-renditions.d.ts +160 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-service.d.ts +161 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-signer.d.ts +26 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template-components.d.ts +168 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template-constants.d.ts +14 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template.d.ts +84 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-text-addresses.d.ts +20 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme-defaults.d.ts +410 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme-registry.d.ts +25 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme.d.ts +91 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-values.d.ts +47 -0
- package/dist/types/engine/form-engine/render/pdf/standard-renditions.d.ts +33 -0
- package/dist/types/engine/form-engine/render/pdf/template-text.d.ts +52 -0
- package/dist/types/engine/form-engine/render/print/answer-text.d.ts +3 -0
- package/dist/types/engine/form-engine/render/print/basic.d.ts +18 -0
- package/dist/types/engine/form-engine/render/print/datum.d.ts +2 -0
- package/dist/types/engine/form-engine/render/print/document.d.ts +65 -0
- package/dist/types/engine/form-engine/render/print/field-answer.d.ts +47 -0
- package/dist/types/engine/form-engine/render/print/index.d.ts +12 -0
- package/dist/types/engine/form-engine/render/print/model.d.ts +346 -0
- package/dist/types/engine/form-engine/render/print/safe-html.d.ts +41 -0
- package/dist/types/engine/form-engine/render/print/slot-text.d.ts +30 -0
- package/dist/types/engine/form-engine/render/print/theme.d.ts +86 -0
- package/dist/types/engine/form-engine/render/react/interactive-renderer.d.ts +9 -0
- package/dist/types/engine/form-engine/render/readonly/readonly-renderer.d.ts +12 -0
- package/dist/types/engine/form-engine/render/web-component/custom-element-base.d.ts +3 -0
- package/dist/types/engine/form-engine/render/web-component/form-features.d.ts +76 -0
- package/dist/types/engine/form-engine/render/web-component/form-host-element.d.ts +310 -0
- package/dist/types/engine/form-engine/render/web-component/form-renderer-element.d.ts +846 -0
- package/dist/types/engine/form-engine/render/web-component/locale-select-element.d.ts +24 -0
- package/dist/types/engine/form-engine/render/web-component/pdf-download.d.ts +75 -0
- package/dist/types/engine/form-engine/render/web-component/print-frame.d.ts +85 -0
- package/dist/types/engine/form-engine/render/web-component/print-pipeline.d.ts +11 -0
- package/dist/types/engine/form-engine/render/web-component/print-policy.d.ts +2 -0
- package/dist/types/engine/form-engine/render/web-component/submission-download.d.ts +47 -0
- package/dist/types/engine/form-engine/render/web-component/typed-answers.d.ts +26 -0
- package/dist/types/engine/form-engine/render/webauthn/assertion.d.ts +69 -0
- package/dist/types/engine/form-engine/render/webauthn/authenticator-data.d.ts +21 -0
- package/dist/types/engine/form-engine/render/webauthn/errors.d.ts +30 -0
- package/dist/types/engine/form-engine/render/webauthn/registration-verify.d.ts +44 -0
- package/dist/types/engine/form-engine/render/webauthn/registration.d.ts +77 -0
- package/dist/types/engine/form-engine/render/webauthn/signal.d.ts +27 -0
- package/dist/types/engine/form-engine/render/webauthn/signing-provider.d.ts +70 -0
- package/dist/types/engine/form-engine/rules/dependencies/calculation-cycle.d.ts +25 -0
- package/dist/types/engine/form-engine/rules/dependencies/dependency-extractor.d.ts +9 -0
- package/dist/types/engine/form-engine/rules/dependencies/dependency-graph.d.ts +26 -0
- package/dist/types/engine/form-engine/rules/evaluator/evaluator.d.ts +209 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-date.d.ts +26 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-list.d.ts +28 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-number.d.ts +6 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-text.d.ts +23 -0
- package/dist/types/engine/form-engine/runtime/browser/collection-runtime.d.ts +34 -0
- package/dist/types/engine/form-engine/runtime/browser/draft-read.d.ts +27 -0
- package/dist/types/engine/form-engine/runtime/browser/form-runtime.d.ts +1470 -0
- package/dist/types/engine/form-engine/runtime/browser/form-test-runtime-driver.d.ts +83 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-action.d.ts +42 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-navigation.d.ts +200 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-presentation-overlay.d.ts +69 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-server-checks.d.ts +89 -0
- package/dist/types/engine/form-engine/runtime/browser/journey-engine-eager.d.ts +11 -0
- package/dist/types/engine/form-engine/runtime/browser/journey-engine.d.ts +462 -0
- package/dist/types/engine/form-engine/runtime/browser/path-validation-runs.d.ts +91 -0
- package/dist/types/engine/form-engine/runtime/browser/runtime-orchestrator.d.ts +530 -0
- package/dist/types/engine/form-engine/runtime/browser/submission-key.d.ts +12 -0
- package/dist/types/engine/form-engine/runtime/index.d.ts +8 -0
- package/dist/types/engine/form-engine/validation/core/error-store.d.ts +70 -0
- package/dist/types/engine/form-engine/validation/core/field-constraints.d.ts +293 -0
- package/dist/types/engine/form-engine/validation/core/test-vectors.d.ts +20 -0
- package/dist/types/engine/form-engine/validation/core/validation-pipeline.d.ts +65 -0
- package/dist/types/engine/form-engine/validation/parity/browser-adapter.d.ts +4 -0
- package/dist/types/engine/form-engine/validation/parity/formula-function-parity.d.ts +27 -0
- package/dist/types/engine/form-engine/validation/parity/index.d.ts +7 -0
- package/dist/types/engine/form-engine/validation/parity/parity-runner.d.ts +21 -0
- package/dist/types/engine/form-engine/validation/parity/runtime-adapter.d.ts +9 -0
- package/dist/types/engine/form-engine/validation/parity/server-adapter.d.ts +7 -0
- package/dist/types/engine/form-engine/validation/parity/vectors.d.ts +28 -0
- package/dist/types/engine/form-engine/validation/parity/wasm-adapter.d.ts +9 -0
- package/dist/types/engine/form-engine/validation/server/server-validation.d.ts +49 -0
- package/dist/types/engine/form-engine/validation/wasm/form-test-kernel-driver.d.ts +95 -0
- package/dist/types/engine/form-engine/validation/wasm/in-process-host.d.ts +56 -0
- package/dist/types/engine/form-engine/validation/wasm/portable-kernel.d.ts +1926 -0
- package/dist/types/engine/form-engine/validation/wasm/portable-options.d.ts +282 -0
- package/dist/types/engine/form-engine/validation/wasm/wasm-validation-host.d.ts +429 -0
- package/dist/types/engine/form-engine/verification/gate-inputs.d.ts +26 -0
- package/dist/types/engine/form-engine/verification/release-gates.d.ts +32 -0
- package/dist/types/engine/form-engine/verification/telemetry-bridge.d.ts +15 -0
- package/dist/types/engine/form-engine/verification/telemetry-sinks.d.ts +13 -0
- package/dist/types/engine/form-engine/verification/telemetry.d.ts +29 -0
- package/dist/types/packages/form-test/src/api.d.ts +75 -0
- package/dist/types/packages/form-test/src/args.d.ts +27 -0
- package/dist/types/packages/form-test/src/cli.d.ts +10 -0
- package/dist/types/packages/form-test/src/coverage.d.ts +11 -0
- package/dist/types/packages/form-test/src/drivers.d.ts +23 -0
- package/dist/types/packages/form-test/src/exit-codes.d.ts +17 -0
- package/dist/types/packages/form-test/src/index.d.ts +28 -0
- package/dist/types/packages/form-test/src/load.d.ts +25 -0
- package/dist/types/packages/form-test/src/parity.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/json.d.ts +7 -0
- package/dist/types/packages/form-test/src/report/junit.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/markdown.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/model.d.ts +137 -0
- package/dist/types/packages/form-test/src/report/schema.d.ts +449 -0
- package/dist/types/packages/form-test/src/report/words.d.ts +48 -0
- package/dist/types/packages/form-test/src/run.d.ts +15 -0
- package/dist/types/packages/form-test/src/version.d.ts +3 -0
- package/dist/types/packages/form-test/src/vitest.d.ts +43 -0
- package/dist/types/packages/quickjs-wasm-host/src/fresh-sandbox-host.d.ts +70 -0
- package/dist/types/packages/quickjs-wasm-host/src/heap-recycle.d.ts +44 -0
- package/dist/types/packages/quickjs-wasm-host/src/index.d.ts +4 -0
- package/dist/types/packages/quickjs-wasm-host/src/program-host.d.ts +179 -0
- package/dist/types/packages/quickjs-wasm-host/src/quickjs-wasm-host-adapter.d.ts +218 -0
- package/dist/types/packages/quickjs-wasm-host/src/sandbox-program.d.ts +108 -0
- package/dist/vitest.mjs +189 -0
- package/fixtures/clock.json +35 -0
- package/fixtures/failing.datum-test +2 -0
- package/fixtures/main.datum-test +17 -0
- package/fixtures/main.json +435 -0
- package/package.json +93 -4
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import type { FormulaErrorPolicy } from "../../core/expressions/expression.js";
|
|
2
|
+
import { type FormTranslations, type TextSources, type TranslationCatalog } from "../../core/localization/translations.js";
|
|
3
|
+
import type { ValidationContext, ValidationStage } from "../../core/schema/contracts.js";
|
|
4
|
+
import type { ComponentNode } from "../../core/schema/types.js";
|
|
5
|
+
import type { DataGridSettings } from "../../core/schema/data-grid.js";
|
|
6
|
+
/**
|
|
7
|
+
* The validation every form gets for free: the constraints an author declares on a field
|
|
8
|
+
* itself — `required`, `minLength` / `maxLength`, `pattern`, and a file field's size and type
|
|
9
|
+
* limits — turned into one deterministic stage.
|
|
10
|
+
*
|
|
11
|
+
* It exists because these are *capabilities*, not host policy. A builder that offers a
|
|
12
|
+
* "Pattern" box has promised the form will enforce it, and leaving each host to re-derive that
|
|
13
|
+
* from the tree means the promise holds in one deployment and not the next. A host with richer
|
|
14
|
+
* rules still adds its own stages; this one only covers what the component declares about
|
|
15
|
+
* itself.
|
|
16
|
+
*
|
|
17
|
+
* Two identifiers are in play and they are deliberately different: a constraint *reads* the
|
|
18
|
+
* value at its path (which a data-scoping `container` nests) and *reports* against the
|
|
19
|
+
* component id (which the renderer, the error summary and focus management address).
|
|
20
|
+
*
|
|
21
|
+
* `required` is the one constraint a rule can add to: a field with
|
|
22
|
+
* `rules.requiredWhen` is collected too (`requiredWhen: true`) — one that holds an answer of
|
|
23
|
+
* its own and sits in no repeating section, the fold's own gates — and the stage holds it to
|
|
24
|
+
* `required` while the runtime's `requiredComponents` says the rule holds — the runtime works
|
|
25
|
+
* that out in its fold, over the submittable view, exactly as the validation kernel does. The
|
|
26
|
+
* rule adds to the tick and never removes it. Without the map (a host running the stage
|
|
27
|
+
* outside `FormRuntime`), the tick alone counts here; the sandbox still enforces the rule.
|
|
28
|
+
*
|
|
29
|
+
* Every `number` and `date` component is collected too, constraints or none: a
|
|
30
|
+
* non-empty answer that is not a number raises `number`, one that is not a real calendar date
|
|
31
|
+
* raises `date` — the kernel's own predicates (`core/schema/answer-kinds.ts`), so both sides
|
|
32
|
+
* read an answer alike. Two more come from what the controls know and the value cannot say
|
|
33
|
+
* (the context's `inputStates`, client-only): a date typed in part raises `dateIncomplete`
|
|
34
|
+
* and a number box holding text the browser could not read raises `number`, each in place of
|
|
35
|
+
* `required` for that empty answer.
|
|
36
|
+
*
|
|
37
|
+
* Four more readings hold the answer's shape and bounds, the
|
|
38
|
+
* kernel's own, so both sides agree: a `text` or `textarea` answer that is not a string raises
|
|
39
|
+
* `text`; a number or a date outside the component's declared `min` / `max` (inclusive) raises
|
|
40
|
+
* `number.min` / `number.max` / `date.min` / `date.max`; a `file` answer that is not an
|
|
41
|
+
* attachment, or an item of a list that is not, raises `file`; and more attachments than the
|
|
42
|
+
* field takes (one unless `multiple`, else `maxFiles`, else 100) raises `fileCount`.
|
|
43
|
+
*
|
|
44
|
+
* A type that is not the engine's is read as the base the definition's `kinds` map gives it
|
|
45
|
+
* (`FormDefinition.kinds`, `core/schema/component-kinds.ts`): a `gcds-date` mapped to `date` is
|
|
46
|
+
* collected and checked as a date, typed-in-part included, exactly as the kernel checks it from
|
|
47
|
+
* the same map. The map comes from the stage's `kinds` option, else from the context
|
|
48
|
+
* (`FieldConstraintsContext.kinds`, which `FormRuntime` fills from its definition).
|
|
49
|
+
*
|
|
50
|
+
* A field inside a repeating section is held entry by entry: each entry the values carry
|
|
51
|
+
* (`items[0].sku`) is checked at its own key, which the error's `path` names; a `required`
|
|
52
|
+
* field is reported only for the entries missing it, a section without entries reports
|
|
53
|
+
* nothing. The bare path is not read; the form's rows, the runtime's row API and a host's own
|
|
54
|
+
* code write the entries. A data grid is such a section: its fields are checked per
|
|
55
|
+
* entry, and its row count is held to its bounds — `rows.min` (`{ min, count }`) and `rows.max`
|
|
56
|
+
* (`{ max, count }`) against the grid at its collection path, the count read as the kernel reads
|
|
57
|
+
* it. Whether a hidden grid's count is reported is the runtime's hidden-error
|
|
58
|
+
* filter's decision, as for every other error of this stage. A grid's bounds may be formulas
|
|
59
|
+
* (`rules.minRows` / `rules.maxRows`): the runtime works them out over its settled view and
|
|
60
|
+
* hands the stage the resolved numbers (the context's `dataGridRowBounds`, from
|
|
61
|
+
* `resolveDataGridRowBounds`); without them the fixed bounds of the configuration stand.
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* The context this stage reads: a {@link ValidationContext}, which carries the browser's
|
|
65
|
+
* `invalidComponents`, component id -> `true` where the field's `rules.validWhen`
|
|
66
|
+
* does not hold over the runtime's settled view — the fold's `invalid`, filled by `FormRuntime`
|
|
67
|
+
* and by the builder's Try it beside `requiredComponents`. Browser-only like that map: it never
|
|
68
|
+
* crosses to the sandbox, which works the rule out itself. Kept as a name for the stage's own
|
|
69
|
+
* reading of the context; the field lives on `ValidationContext` itself.
|
|
70
|
+
*/
|
|
71
|
+
export type FieldConstraintsContext = ValidationContext & {
|
|
72
|
+
/**
|
|
73
|
+
* Grid id -> its row-count bounds once its formulas have spoken: what
|
|
74
|
+
* `resolveDataGridRowBounds` (`core/schema/data-grid.ts`) gives for the grid over the
|
|
75
|
+
* runtime's settled view. The stage counts the grid's rows against these in place of the
|
|
76
|
+
* configuration's fixed bounds; a grid the record does not name (own keys only), or no record
|
|
77
|
+
* at all, keeps the fixed bounds. Browser-only like `invalidComponents`: the sandbox works the
|
|
78
|
+
* formulas out itself.
|
|
79
|
+
*/
|
|
80
|
+
dataGridRowBounds?: Readonly<Record<string, Pick<DataGridSettings, "minRows" | "maxRows">>> | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* The definition's own translations, set by `FormRuntime` from `form.translations`:
|
|
83
|
+
* where the stage was given no `textSources`, a pattern's own message is worded from this map
|
|
84
|
+
* for the run's locale, as the kernel words it from the run context's `translations`.
|
|
85
|
+
*/
|
|
86
|
+
translations?: FormTranslations | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The host's translation catalog, set by `FormRuntime`
|
|
89
|
+
* from its `translationCatalog` dependency: read beside `translations` where the stage was given
|
|
90
|
+
* no `textSources`, and winning over the map under the same tag, as the kernel reads the run
|
|
91
|
+
* context's `catalog`.
|
|
92
|
+
*/
|
|
93
|
+
catalog?: TranslationCatalog | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* The definition's `kinds` map (type -> engine base type), set by `FormRuntime` from
|
|
96
|
+
* `form.kinds`: a stage built without the `kinds` option reads the form's types through it.
|
|
97
|
+
*/
|
|
98
|
+
kinds?: Readonly<Record<string, string>> | undefined;
|
|
99
|
+
};
|
|
100
|
+
export interface FieldPatternConstraint {
|
|
101
|
+
/** The regular expression source as authored. */
|
|
102
|
+
source: string;
|
|
103
|
+
/** The author's own message for a value that does not match, if they wrote one: a string in the form's default language. */
|
|
104
|
+
message?: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* What a `file` field holds its attachments to (see `core/schema/file-upload.ts`). Checked
|
|
108
|
+
* against the attachment envelope — name, type, size — which every storage kind records, so
|
|
109
|
+
* the check reads the same whether the bytes are embedded or in a bucket.
|
|
110
|
+
*/
|
|
111
|
+
export interface FieldFileConstraint {
|
|
112
|
+
/** Per-file ceiling in bytes. */
|
|
113
|
+
maxFileSize?: number | undefined;
|
|
114
|
+
/** Accept tokens (`.pdf`, `image/*`, `application/zip`); empty admits any type. */
|
|
115
|
+
accept: string[];
|
|
116
|
+
/**
|
|
117
|
+
* Most attachments the field takes: one for a field that is not `multiple`, else
|
|
118
|
+
* `configuration.maxFiles` (a whole number of 1 or more), else 100.
|
|
119
|
+
*/
|
|
120
|
+
maxFiles: number;
|
|
121
|
+
}
|
|
122
|
+
export interface FieldConstraint {
|
|
123
|
+
componentId: string;
|
|
124
|
+
/** Where the value lives in form state — the component id unless a container nests it. */
|
|
125
|
+
path: string;
|
|
126
|
+
/** The static tick (`configuration.required`). */
|
|
127
|
+
required: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Present when the component has a `rules.requiredWhen`: required while the
|
|
130
|
+
* context's `requiredComponents` says the rule holds, on top of `required`.
|
|
131
|
+
*/
|
|
132
|
+
requiredWhen?: true;
|
|
133
|
+
/**
|
|
134
|
+
* Present when the component has a `rules.validWhen` the fold reads: a non-empty
|
|
135
|
+
* answer nothing else refused is refused with `rule` while the context's `invalidComponents`
|
|
136
|
+
* names the component.
|
|
137
|
+
*/
|
|
138
|
+
validWhen?: true;
|
|
139
|
+
/** The component's type, which decides what counts as "empty", and whether a `number` or `date` answer is checked as one. */
|
|
140
|
+
type: string;
|
|
141
|
+
/**
|
|
142
|
+
* The engine type the component is read as, present only when the definition's `kinds` map
|
|
143
|
+
* gives `type` a base (a `gcds-date` read as a `date`); every check reads it in place of `type`.
|
|
144
|
+
*/
|
|
145
|
+
base?: string | undefined;
|
|
146
|
+
/** Fewest characters a non-empty value may have (see `core/schema/length-limits.ts`). */
|
|
147
|
+
minLength?: number | undefined;
|
|
148
|
+
/** Most characters a value may have. */
|
|
149
|
+
maxLength?: number | undefined;
|
|
150
|
+
pattern?: FieldPatternConstraint | undefined;
|
|
151
|
+
/** A `file` field's limits: every file field has them, for the shape and the count of its answer. */
|
|
152
|
+
file?: FieldFileConstraint | undefined;
|
|
153
|
+
/** A number's or a date's declared bounds (`configuration.min` / `max`), inclusive; absent when it has none. */
|
|
154
|
+
min?: number | string | undefined;
|
|
155
|
+
max?: number | string | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Present for a field inside a repeating section: the section's collection path and where the
|
|
158
|
+
* field's answer sits within an entry (`.sku`), so entry `n` keeps it at `items[n].sku`. The
|
|
159
|
+
* stage then checks each entry's key, not `path`.
|
|
160
|
+
*/
|
|
161
|
+
row?: {
|
|
162
|
+
collection: string;
|
|
163
|
+
suffix: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Present for every data grid: its collection path and its fixed bounds as
|
|
167
|
+
* `dataGridSettingsOf` reads them, the fallback when the context's `dataGridRowBounds` does not
|
|
168
|
+
* name the grid; `minRule` / `maxRule` when the grid has the formula. `max` absent is no
|
|
169
|
+
* maximum of the author's: the rows are then held to `DATA_GRID_ROWS_CAP`. The stage counts
|
|
170
|
+
* the grid's rows, nothing else.
|
|
171
|
+
*/
|
|
172
|
+
rows?: {
|
|
173
|
+
collection: string;
|
|
174
|
+
min: number;
|
|
175
|
+
max?: number | undefined;
|
|
176
|
+
minRule?: true | undefined;
|
|
177
|
+
maxRule?: true | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
}
|
|
180
|
+
export interface CollectFieldConstraintsOptions {
|
|
181
|
+
/**
|
|
182
|
+
* Also collect what holds an answer to its shape and nothing else: a `text`
|
|
183
|
+
* or `textarea`, and a `file` field with no limit of its own. The stage sets it; a reader of
|
|
184
|
+
* the declared constraints (the builder's lists of codes) leaves it off, since an author
|
|
185
|
+
* declared nothing there.
|
|
186
|
+
*/
|
|
187
|
+
shapeChecks?: boolean | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Where a component's answer is stored, when the tree's own value paths do not say: the
|
|
190
|
+
* fields a presentation owns, where an alias reads the form field it fills and
|
|
191
|
+
* every other field its `@<presentation id>.<id>` key. `undefined` for a component leaves
|
|
192
|
+
* it at the path the tree gives it.
|
|
193
|
+
*/
|
|
194
|
+
pathOf?: ((componentId: string) => string | undefined) | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* The definition's `kinds` map (`FormDefinition.kinds`): a type it names is collected and
|
|
197
|
+
* checked as its base engine type. Absent, every type is read as itself.
|
|
198
|
+
*/
|
|
199
|
+
kinds?: Readonly<Record<string, string>> | undefined;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Every declared constraint in the tree, in document order. Exported because a host that
|
|
203
|
+
* builds its own pipeline (or a server re-validating a submission) needs the same reading of
|
|
204
|
+
* the tree the stage uses, rather than a second interpretation of it.
|
|
205
|
+
*/
|
|
206
|
+
export declare function collectFieldConstraints(authored: ComponentNode, options?: CollectFieldConstraintsOptions): FieldConstraint[];
|
|
207
|
+
/**
|
|
208
|
+
* The error codes this stage can raise for the tree under `root` — each once, in the order
|
|
209
|
+
* `ENGINE_VALIDATION_CODES` lists them — read from the same constraints
|
|
210
|
+
* {@link collectFieldConstraints} enforces, so the builder's "codes this form uses"
|
|
211
|
+
* and the errors it actually gets cannot drift apart. A single field passed as `root` yields
|
|
212
|
+
* its own codes; a container, its children's; the form root, the whole form's. `kinds` is the
|
|
213
|
+
* definition's map, so a type it gives a `number` or `date` base raises that base's codes.
|
|
214
|
+
*/
|
|
215
|
+
export declare function validationCodesRaisedBy(root: ComponentNode, kinds?: Readonly<Record<string, string>>): string[];
|
|
216
|
+
/**
|
|
217
|
+
* Whether a value counts as "not filled in". A checkbox is the one type where `false` is a
|
|
218
|
+
* missing answer rather than an answer — that is what a consent box means — while for every
|
|
219
|
+
* other type `false` is a value like any other. A `checkboxes` group's value is an object of
|
|
220
|
+
* booleans with every option present, so "nothing picked" arrives as an all-false object
|
|
221
|
+
* once the group has been touched — which must mean exactly what `undefined` (never touched)
|
|
222
|
+
* means, or a required group would be satisfiable by ticking and unticking a box.
|
|
223
|
+
*
|
|
224
|
+
* A number that is not finite (`NaN`, `±Infinity` — a calculation that divided by an empty or
|
|
225
|
+
* zero answer) is empty too: JSON carries it as `null`, so a server judging the envelope sees
|
|
226
|
+
* no answer, and the browser must not accept what the server then refuses.
|
|
227
|
+
*/
|
|
228
|
+
export declare function isEmptyValue(value: unknown, type: string): boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Compiles an authored pattern, anchored.
|
|
231
|
+
*
|
|
232
|
+
* Anchoring matters: HTML's own `pattern` attribute (which `fieldHtml` emits as a hint) must
|
|
233
|
+
* match the *whole* value, and a stage that used the same source unanchored would accept
|
|
234
|
+
* values the browser rejects. One reading of the constraint, both places.
|
|
235
|
+
*
|
|
236
|
+
* Returns `undefined` for an expression this runtime cannot compile — validation is not the
|
|
237
|
+
* place to report an authoring mistake, and failing every value because of a typo in the
|
|
238
|
+
* builder would be worse than not enforcing it.
|
|
239
|
+
*/
|
|
240
|
+
export declare function compilePattern(source: string): RegExp | undefined;
|
|
241
|
+
export interface FieldConstraintsStageOptions extends CollectFieldConstraintsOptions {
|
|
242
|
+
/** Stage id reported on each error. Defaults to `"field-constraints"`. */
|
|
243
|
+
id?: string;
|
|
244
|
+
version?: string;
|
|
245
|
+
/**
|
|
246
|
+
* What the stage does with a `pattern` of a catastrophic shape (a repeat of a repeat, a
|
|
247
|
+
* repeated back-reference; `kernelRegexRisky`): `"refuse"` (the default) does not run it, as it
|
|
248
|
+
* does not run one that cannot compile (the kernel logs it and, under `formulaErrors: "fail"`,
|
|
249
|
+
* refuses the answer); `"allow"` runs it.
|
|
250
|
+
*/
|
|
251
|
+
riskyPatterns?: "refuse" | "allow";
|
|
252
|
+
/**
|
|
253
|
+
* The policy for definition problems, as the kernel reads it: this, else the form's
|
|
254
|
+
* own `configuration.formulaErrors`, else `fail`. Under `fail` a `pattern` the stage does not
|
|
255
|
+
* run (one that cannot compile, or a refused risky one) cannot be shown to match, so a
|
|
256
|
+
* non-empty answer fails it (`pattern`, `parameters.invalid: true`), exactly as the server
|
|
257
|
+
* refuses it; under `warn` the check is skipped, as the server skips it.
|
|
258
|
+
*/
|
|
259
|
+
formulaErrors?: FormulaErrorPolicy | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* The definition's translations and the host's catalog: a pattern's own message is
|
|
262
|
+
* worded for the context's locale from `components › <id> › patternMessage`. Absent, the
|
|
263
|
+
* stage reads the definition's map and the host's catalog from the context
|
|
264
|
+
* (`FieldConstraintsContext.translations`, `.catalog`); with neither, it is the default-language string.
|
|
265
|
+
*/
|
|
266
|
+
textSources?: TextSources | undefined;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* A deterministic stage enforcing the `required` / `minLength` / `maxLength` / `pattern`
|
|
270
|
+
* constraints declared in `root`, and a `file` field's `maxFileSizeMb` / `accept`.
|
|
271
|
+
*
|
|
272
|
+
* The tree is read once, when the stage is built: a form whose structure changes (the builder
|
|
273
|
+
* editing it) gets a new stage, exactly as a host rebuilding its pipeline already does.
|
|
274
|
+
*
|
|
275
|
+
* One error per field, in that order of precedence: a blank value has nothing for a length or
|
|
276
|
+
* a pattern to disagree with, and a value of the wrong length is told so before it is told it
|
|
277
|
+
* looks wrong — two complaints about one box help nobody. A number or a date that is not one
|
|
278
|
+
* is told so before its length or its pattern; an empty answer whose control says
|
|
279
|
+
* more (the context's `inputStates`) is told that instead of `required`.
|
|
280
|
+
*
|
|
281
|
+
* Hidden fields are not exempted here. Whether a value a rule has hidden still counts is the
|
|
282
|
+
* hidden-value policy's decision (`core/state/hidden-value-policy.ts`), which runs over the
|
|
283
|
+
* values before validation sees them — so a policy that clears hidden values makes them empty
|
|
284
|
+
* and a policy that keeps them means the author asked for them to be kept.
|
|
285
|
+
*
|
|
286
|
+
* A field's `rules.requiredWhen` counts through the context's `requiredComponents`:
|
|
287
|
+
* required when its tick is set OR the map holds `true` under its id (own keys only, as the
|
|
288
|
+
* values are read). `FormRuntime` fills the map from its recompute; without it the tick alone
|
|
289
|
+
* counts. A field's `rules.validWhen` counts the same way, through `invalidComponents`
|
|
290
|
+
* ({@link FieldConstraintsContext}): `rule`, last, for a non-empty answer; without the
|
|
291
|
+
* map no `rule` is raised (the sandbox still enforces it).
|
|
292
|
+
*/
|
|
293
|
+
export declare function createFieldConstraintsStage(root: ComponentNode, options?: FieldConstraintsStageOptions): ValidationStage;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ValidationContext, ValidationResult } from "../../core/schema/contracts.js";
|
|
2
|
+
export interface DeterministicValidationVector {
|
|
3
|
+
id: string;
|
|
4
|
+
context: ValidationContext;
|
|
5
|
+
expectedErrors: ValidationResult["errors"];
|
|
6
|
+
}
|
|
7
|
+
export interface VectorRunMismatch {
|
|
8
|
+
vectorId: string;
|
|
9
|
+
reason: string;
|
|
10
|
+
expected: ValidationResult["errors"];
|
|
11
|
+
actual: ValidationResult["errors"];
|
|
12
|
+
}
|
|
13
|
+
export interface VectorRunReport {
|
|
14
|
+
passed: number;
|
|
15
|
+
failed: number;
|
|
16
|
+
mismatches: VectorRunMismatch[];
|
|
17
|
+
}
|
|
18
|
+
export declare function stableErrorSignature(error: ValidationResult["errors"][number]): string;
|
|
19
|
+
export declare function normalizeErrors(errors: ValidationResult["errors"]): string[];
|
|
20
|
+
export declare function runDeterministicVectors(vectors: DeterministicValidationVector[], runner: (context: ValidationContext) => ValidationResult): VectorRunReport;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ValidationContext, ValidationResult, ValidationStage } from "../../core/schema/contracts.js";
|
|
2
|
+
export interface ValidationPipelineResult {
|
|
3
|
+
stageResults: Array<{
|
|
4
|
+
stageId: string;
|
|
5
|
+
result: ValidationResult;
|
|
6
|
+
}>;
|
|
7
|
+
merged: ValidationResult;
|
|
8
|
+
/**
|
|
9
|
+
* The context's `signal` was aborted during the run: the stage running then had its result
|
|
10
|
+
* dropped and no later stage ran, so `merged` holds only what the stages before it found.
|
|
11
|
+
*/
|
|
12
|
+
aborted?: true;
|
|
13
|
+
}
|
|
14
|
+
/** One stage of a run starting or settling, as {@link ValidationRunOptions.onStage} hears it. */
|
|
15
|
+
export interface ValidationStageEvent {
|
|
16
|
+
phase: "start" | "settle";
|
|
17
|
+
stageId: string;
|
|
18
|
+
kind: "deterministic" | "async";
|
|
19
|
+
/** What the stage's `paths(context)` declared for this run; absent for a stage that declares none. */
|
|
20
|
+
paths?: readonly string[];
|
|
21
|
+
/** On `settle`: the stage threw. The error is rethrown after this report. */
|
|
22
|
+
failed?: true;
|
|
23
|
+
/** On `settle`: the context's signal was aborted, and the stage's result was dropped. */
|
|
24
|
+
aborted?: true;
|
|
25
|
+
}
|
|
26
|
+
export interface ValidationRunOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Called as each stage that runs starts and settles (skipped stages report nothing), with the
|
|
29
|
+
* paths it declared: what a runtime marks fields pending by. A stage that throws reports
|
|
30
|
+
* `settle` with `failed` before the error leaves the run.
|
|
31
|
+
*/
|
|
32
|
+
onStage?: (event: ValidationStageEvent) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Staged validation orchestration.
|
|
36
|
+
*
|
|
37
|
+
* Execution order is deterministic: stages run in constructor order, but every
|
|
38
|
+
* `deterministic` stage runs before any `async` stage (a stable partition that preserves
|
|
39
|
+
* relative order within each group). {@link run} is async and awaits every stage;
|
|
40
|
+
* {@link runFor} runs the same deterministic stages and only the async stages that declare one
|
|
41
|
+
* value path; {@link runDeterministic} runs only the pure stages synchronously and is the entry
|
|
42
|
+
* point used by the cross-runtime parity harness.
|
|
43
|
+
*
|
|
44
|
+
* A context carrying an aborted `signal` stops the async runs: the stage running when it is
|
|
45
|
+
* aborted has its result dropped (whether it honoured the signal and rejected, or ignored it
|
|
46
|
+
* and resolved) and no later stage starts.
|
|
47
|
+
*/
|
|
48
|
+
export declare class ValidationPipeline {
|
|
49
|
+
private readonly stages;
|
|
50
|
+
constructor(stages: ValidationStage[]);
|
|
51
|
+
/** This pipeline with `extra` stages after its own — what a runtime builds when installed plugins contribute validators. */
|
|
52
|
+
withStages(extra: readonly ValidationStage[]): ValidationPipeline;
|
|
53
|
+
private ordered;
|
|
54
|
+
run(context: ValidationContext, options?: ValidationRunOptions): Promise<ValidationPipelineResult>;
|
|
55
|
+
/**
|
|
56
|
+
* The check of one value path (`"items[1].sku"`): every deterministic stage, then the async
|
|
57
|
+
* stages whose `paths(context)` include `path`, compared as written. An async stage that
|
|
58
|
+
* declares no paths is form-wide and does not run. The errors are every stage's, as
|
|
59
|
+
* {@link run} reports them: keeping only `path`'s is the caller's.
|
|
60
|
+
*/
|
|
61
|
+
runFor(context: ValidationContext, path: string, options?: ValidationRunOptions): Promise<ValidationPipelineResult>;
|
|
62
|
+
private execute;
|
|
63
|
+
/** Runs only deterministic stages, synchronously. Throws if a stage returns a promise. */
|
|
64
|
+
runDeterministic(context: ValidationContext): ValidationPipelineResult;
|
|
65
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ValidationPipeline } from "../core/validation-pipeline.js";
|
|
2
|
+
import type { DeterministicRuntimeAdapter } from "./runtime-adapter.js";
|
|
3
|
+
/** Wraps a {@link ValidationPipeline}'s deterministic stages as a parity adapter. */
|
|
4
|
+
export declare function createBrowserAdapter(pipeline: ValidationPipeline): DeterministicRuntimeAdapter;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FormulaFunctionContribution } from "../../core/schema/contracts.js";
|
|
2
|
+
export interface FormulaFunctionVector {
|
|
3
|
+
args: unknown[];
|
|
4
|
+
expected: unknown;
|
|
5
|
+
}
|
|
6
|
+
export interface FormulaFunctionParityMismatch {
|
|
7
|
+
index: number;
|
|
8
|
+
args: unknown[];
|
|
9
|
+
expected: unknown;
|
|
10
|
+
inProcess: unknown;
|
|
11
|
+
sandbox: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface FormulaFunctionParityReport {
|
|
14
|
+
checked: number;
|
|
15
|
+
mismatches: FormulaFunctionParityMismatch[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Runs a sandbox-side call of the function: given its name and the arguments, returns what
|
|
19
|
+
* the sandbox's evaluator produced. The host that owns a QuickJS program supplies it, so
|
|
20
|
+
* this module never reaches the sandbox itself.
|
|
21
|
+
*/
|
|
22
|
+
export type FormulaFunctionSandboxRunner = (name: string, args: unknown[]) => unknown | Promise<unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Checks that a plugin formula function answers each vector the same in process and in the
|
|
25
|
+
* sandbox, and answers what the vector expects. A mismatch lists both results.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formulaFunctionParity(contribution: FormulaFunctionContribution, vectors: FormulaFunctionVector[], runSandbox: FormulaFunctionSandboxRunner): Promise<FormulaFunctionParityReport>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./runtime-adapter.js";
|
|
2
|
+
export * from "./browser-adapter.js";
|
|
3
|
+
export * from "./wasm-adapter.js";
|
|
4
|
+
export * from "./server-adapter.js";
|
|
5
|
+
export * from "./parity-runner.js";
|
|
6
|
+
export * from "./vectors.js";
|
|
7
|
+
export * from "./formula-function-parity.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ValidationContext } from "../../core/schema/contracts.js";
|
|
2
|
+
import type { DeterministicRuntimeAdapter } from "./runtime-adapter.js";
|
|
3
|
+
export interface ParityVector {
|
|
4
|
+
id: string;
|
|
5
|
+
context: ValidationContext;
|
|
6
|
+
}
|
|
7
|
+
export interface ParityMismatch {
|
|
8
|
+
vectorId: string;
|
|
9
|
+
/** adapter id -> normalized error signature list */
|
|
10
|
+
signatures: Record<string, string[]>;
|
|
11
|
+
}
|
|
12
|
+
export interface ParityReport {
|
|
13
|
+
checked: number;
|
|
14
|
+
matched: number;
|
|
15
|
+
mismatches: ParityMismatch[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Runs every vector through every adapter and diffs the normalized error signatures.
|
|
19
|
+
* A vector passes only when all adapters produce an identical signature list.
|
|
20
|
+
*/
|
|
21
|
+
export declare function runParity(vectors: ParityVector[], adapters: DeterministicRuntimeAdapter[]): Promise<ParityReport>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ValidationContext, ValidationResult } from "../../core/schema/contracts.js";
|
|
2
|
+
/**
|
|
3
|
+
* A runtime that can execute deterministic validation vectors. The parity harness runs the
|
|
4
|
+
* same vectors through every adapter and diffs the results.
|
|
5
|
+
*/
|
|
6
|
+
export interface DeterministicRuntimeAdapter {
|
|
7
|
+
id: "browser" | "wasm" | "server" | (string & {});
|
|
8
|
+
run(context: ValidationContext): ValidationResult | Promise<ValidationResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ServerValidationRunner } from "../server/server-validation.js";
|
|
2
|
+
import type { DeterministicRuntimeAdapter } from "./runtime-adapter.js";
|
|
3
|
+
/**
|
|
4
|
+
* Wraps the deterministic subset of a {@link ServerValidationRunner} as a parity adapter.
|
|
5
|
+
* Only deterministic server hooks should participate in parity checks.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createServerAdapter(runner: ServerValidationRunner, servicesProvider?: () => Record<string, unknown>): DeterministicRuntimeAdapter;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ValidationContext, ValidationResult, ValidationStage } from "../../core/schema/contracts.js";
|
|
2
|
+
import type { ComponentNode } from "../../core/schema/types.js";
|
|
3
|
+
import type { ParityVector } from "./parity-runner.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reference deterministic validation logic shared by all parity adapters. Pure: no time,
|
|
6
|
+
* locale, randomness, or I/O. The same function backs the browser pipeline stage, the WASM
|
|
7
|
+
* validator, and the server hook so any drift shows up as a parity mismatch.
|
|
8
|
+
*/
|
|
9
|
+
export declare function coreDeterministicValidator(context: ValidationContext): ValidationResult;
|
|
10
|
+
/** The same logic packaged as a deterministic {@link ValidationStage}. */
|
|
11
|
+
export declare const coreValidationStage: ValidationStage;
|
|
12
|
+
/**
|
|
13
|
+
* The schema the parity vectors are written against. The wasm adapter needs it because the
|
|
14
|
+
* ABI context carries the form (sanitization derives its allowlist from it). Deliberately
|
|
15
|
+
* free of `required`/`pattern` constraints: parity here compares the shared validator logic,
|
|
16
|
+
* and the kernel's own constraint stage is covered by its dedicated tests.
|
|
17
|
+
*/
|
|
18
|
+
export declare const coreValidationRoot: ComponentNode;
|
|
19
|
+
export declare const coreValidationVectors: ParityVector[];
|
|
20
|
+
/**
|
|
21
|
+
* Adversarial value vectors over {@link coreValidationRoot}:
|
|
22
|
+
* nulls, blanks, `0`, `-0`, non-finite numbers, numerals as text in a number field, wrong
|
|
23
|
+
* shapes for every type, boundary ages, hostile keys, oversize text. They are not in
|
|
24
|
+
* {@link coreValidationVectors}: the browser adapter there wraps the core stage alone, while
|
|
25
|
+
* the kernel always runs its own field-constraints stage, so a vector raising a shape error
|
|
26
|
+
* (`number`) compares only through a pipeline that carries that stage too.
|
|
27
|
+
*/
|
|
28
|
+
export declare const adversarialValueVectors: ParityVector[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentNode } from "../../core/schema/types.js";
|
|
2
|
+
import { WasmValidationHost } from "../wasm/wasm-validation-host.js";
|
|
3
|
+
import type { DeterministicRuntimeAdapter } from "./runtime-adapter.js";
|
|
4
|
+
/**
|
|
5
|
+
* Wraps a {@link WasmValidationHost} (running under STRICT policy) as a parity adapter.
|
|
6
|
+
* The ABI context carries the schema, so the adapter needs the form root the vectors were
|
|
7
|
+
* written against; the outcome's error contract is what parity compares.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createWasmAdapter(host: WasmValidationHost, root: ComponentNode): DeterministicRuntimeAdapter;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ValidationContext, ValidationResult } from "../../core/schema/contracts.js";
|
|
2
|
+
export interface ServerServices {
|
|
3
|
+
[serviceName: string]: unknown;
|
|
4
|
+
}
|
|
5
|
+
export type ServerEnvironment = "server";
|
|
6
|
+
/** Allow-list of service names a server validation hook may read. */
|
|
7
|
+
export interface ServerServicePolicy {
|
|
8
|
+
allow: string[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* What a run is asked to judge, so a hook can skip work outside it:
|
|
12
|
+
* - `"submission"`: a delivery being received, or checked as one;
|
|
13
|
+
* - `"journey"`: a journey's answers before its final Submit;
|
|
14
|
+
* - `"page"`: one page of a journey on Continue — `componentIds` are the page's components
|
|
15
|
+
* and their subtrees, and only errors on those (or on the form as a whole) are shown.
|
|
16
|
+
* The values are every submittable answer whatever the scope, so a hook can compare a page's
|
|
17
|
+
* answers with earlier ones.
|
|
18
|
+
*/
|
|
19
|
+
export interface ServerValidationScope {
|
|
20
|
+
kind: "submission" | "journey" | "page";
|
|
21
|
+
/** The journey the answers were given through, when there was one. */
|
|
22
|
+
journeyId?: string;
|
|
23
|
+
/** The page being checked, for `kind: "page"`. */
|
|
24
|
+
pageId?: string;
|
|
25
|
+
componentIds?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface ServerValidationContext {
|
|
28
|
+
values: Record<string, unknown>;
|
|
29
|
+
formId: string;
|
|
30
|
+
validationContext: ValidationContext;
|
|
31
|
+
services: ServerServices;
|
|
32
|
+
/** Defaults to `"server"`. A non-server value is rejected before hooks run. */
|
|
33
|
+
environment?: string;
|
|
34
|
+
/** Absent: the whole submission. */
|
|
35
|
+
scope?: ServerValidationScope;
|
|
36
|
+
}
|
|
37
|
+
export interface ServerValidationHook {
|
|
38
|
+
id: string;
|
|
39
|
+
version: string;
|
|
40
|
+
validate(context: ServerValidationContext): Promise<ValidationResult>;
|
|
41
|
+
}
|
|
42
|
+
/** Throws unless the runner is executing in a server environment. */
|
|
43
|
+
export declare function assertServerEnvironment(environment: string | undefined): void;
|
|
44
|
+
export declare class ServerValidationRunner {
|
|
45
|
+
private readonly hooks;
|
|
46
|
+
private readonly policy?;
|
|
47
|
+
constructor(hooks: ServerValidationHook[], policy?: ServerServicePolicy | undefined);
|
|
48
|
+
run(context: ServerValidationContext): Promise<ValidationResult>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { FormulaFunctionSignature } from "../../core/expressions/formula-types.js";
|
|
2
|
+
import type { FormTestDriver } from "../../core/form-tests/form-test-types.js";
|
|
3
|
+
import type { FormDefinition } from "../../core/schema/types.js";
|
|
4
|
+
import { WasmValidationHost, type WasmSandboxPolicy, type WasmUnknownFieldsMode } from "./wasm-validation-host.js";
|
|
5
|
+
export { FORM_TEST_KERNEL_DRIVER_FUNCTIONS } from "./portable-kernel.js";
|
|
6
|
+
/**
|
|
7
|
+
* The validation kernel's driver for form tests: the server's reading of
|
|
8
|
+
* a scenario. It holds the answers itself, as a host holds a stored record, and asks the
|
|
9
|
+
* kernel (`WasmValidationHost.run`, in process or a sandbox program) for every fact a snapshot
|
|
10
|
+
* reports: each snapshot and each move comes from a run over the current answers with
|
|
11
|
+
* `reportFold` set and the scenario's journey and day in the context. Nothing here works a
|
|
12
|
+
* verdict, a path or a state out on its own; what the outcome does not carry (requiredness,
|
|
13
|
+
* the id-keyed settled view, the effective state of components the error filter cannot act
|
|
14
|
+
* on) is read from the kernel's own fold (`kernelFoldSubmission`) over the very inputs the run
|
|
15
|
+
* took, which is the reading the outcome summarises.
|
|
16
|
+
*
|
|
17
|
+
* The logic is split the way the kernel's own modules are: the `kernelFormTestServer*`
|
|
18
|
+
* functions are kernel-shaped (top-level declarations, records without a prototype, own reads
|
|
19
|
+
* only, no clock, no locale, no throws: a refusal is a return value), live in
|
|
20
|
+
* `portable-kernel.ts` and are spliced into the sandbox program, where the `test` op
|
|
21
|
+
* (`kernelFormTestOp`) walks a scenario with them exactly as this driver
|
|
22
|
+
* does. {@link createFormTestKernelDriver} is ordinary engine code around them: it awaits the
|
|
23
|
+
* host, words messages from the form's catalogs and picks the PDF layout through the renderer's
|
|
24
|
+
* selection; the op carries kernel-shaped copies of those two readings, held to these by
|
|
25
|
+
* `engine/tests/form-tests/kernel-test-op.test.ts`. A change to this driver's walk is a change
|
|
26
|
+
* to the op's too.
|
|
27
|
+
*
|
|
28
|
+
* Readings this side takes, each the browser runtime's counterpart:
|
|
29
|
+
* - The answers are flat value-path keys, as the runtime keeps them, and each repeating
|
|
30
|
+
* section's entries a list of row objects posted at its collection path (`items: [{ qty }]`),
|
|
31
|
+
* which the kernel reads as `items[0].qty` (`kernelFlattenRows`); a row with no answer is
|
|
32
|
+
* posted as `{}`, so the kernel counts it, as the runtime's row list does.
|
|
33
|
+
* - The errors a snapshot carries are the ones on show: what the last `check`, `continue` or
|
|
34
|
+
* `submit` found, a page's check replacing those on the page's components, as the runtime's
|
|
35
|
+
* error store keeps them. An answer written in between does not validate (the runtime's
|
|
36
|
+
* `setValue` does not either).
|
|
37
|
+
* - Continue, Back and a jump follow the runtime's journey navigation: Continue checks the page
|
|
38
|
+
* (a deferred page only when it holds an error that blocks) and moves to the next page on the
|
|
39
|
+
* path as the answers then draw it, marking the page completed; Back takes the page before on
|
|
40
|
+
* the path; a jump goes only to a page at or before the frontier (`journeyReachable`). After
|
|
41
|
+
* every change to the answers the completed pages are kept to the path, and a page the path no
|
|
42
|
+
* longer takes gives way to the last one before it that it does.
|
|
43
|
+
* - The `host.` givens are the runs' host context (`context.hostContext`), built as
|
|
44
|
+
* the browser's driver builds its runtime's (a dotted name nests): every rule and calculation
|
|
45
|
+
* reading `host.` is judged against it, a key no given set reading as no answer, as it does
|
|
46
|
+
* in the browser. A scenario with no `host.` given runs with no context, as a server given
|
|
47
|
+
* none: the kernel skips every rule reading `host.`, and the components whose rules read it
|
|
48
|
+
* come back `unreplayable.host` one by one. A rule scoped to the browser comes back
|
|
49
|
+
* `unreplayable.browser`, a calculation kept as sent because it reads an answer the server
|
|
50
|
+
* was not sent `unreplayable.clientDerived`. The marks are closed over
|
|
51
|
+
* rule reads: a component whose rule reads a marked one earns its reason, a page whose `when`
|
|
52
|
+
* (or a route's) reads one marks the components it places and says so for the path itself
|
|
53
|
+
* (`traceUnreplayable`: the page, the path, what was withheld or submitted skip). When a
|
|
54
|
+
* marked component can refuse an answer (it is required, or has a `requiredWhen` or
|
|
55
|
+
* `validWhen`) the snapshot says so (`verdictUnreplayable`) and the verdict expectations skip:
|
|
56
|
+
* they name no field, so the field skip cannot cover them.
|
|
57
|
+
* - A data grid opens with its `initialRows` empty rows (within its bounds) as the runtime seeds
|
|
58
|
+
* them. A row action the runtime turns down (a path that is no collection, an operation the
|
|
59
|
+
* section does not allow, a row past the most it may hold, a row that is not there) comes
|
|
60
|
+
* back as the same coded refusal (`unknownCollection`, `operations.add`, `operations.remove`,
|
|
61
|
+
* `rows.max`, `rowOutOfRange`) and ends the scenario, so both sides report one reason. A
|
|
62
|
+
* refused submit on a journey takes it to the earliest page on the path holding an error that
|
|
63
|
+
* blocks (`revealErrorPage`).
|
|
64
|
+
* - The start checks the givens in the order they are written and reports the first bad one
|
|
65
|
+
* (a journey the form lacks, options for a field with no source, a locale it does not offer);
|
|
66
|
+
* then the clock, then the formulas: a definition that does not compile under the policy in
|
|
67
|
+
* force (`fail`) ends the scenario as `scenario.formulaInvalid` with the first five problems.
|
|
68
|
+
* - A form whose rules read the day (`today()`, `age()`, in a component, journey or PDF layout
|
|
69
|
+
* alike) and a scenario with no `given today` is a start error, `scenario.clockUnset`, as on
|
|
70
|
+
* the browser's side: a run judged by the real clock would pass today and
|
|
71
|
+
* fail tomorrow. A locale the form does not offer is `scenario.badGiven`, as `setLocale`
|
|
72
|
+
* refuses it there.
|
|
73
|
+
*/
|
|
74
|
+
/** What {@link createFormTestKernelDriver} takes beside the definition. */
|
|
75
|
+
export interface FormTestKernelDriverOptions {
|
|
76
|
+
/** The kernel to ask: `createInProcessWasmValidationHost()` or a host over a sandbox program. */
|
|
77
|
+
host: WasmValidationHost;
|
|
78
|
+
/** The sandbox policy each run is made under. Absent: `WasmValidationHost.STRICT_POLICY`. */
|
|
79
|
+
policy?: WasmSandboxPolicy;
|
|
80
|
+
/** What the kernel does with keys the schema does not define. Absent: the kernel's `"strip"`. */
|
|
81
|
+
unknownFields?: WasmUnknownFieldsMode;
|
|
82
|
+
/**
|
|
83
|
+
* The formula functions the host's plugins register, for the in-process readings the outcome
|
|
84
|
+
* does not carry (requiredness, the settled view) and for `expect <formula>`. They must be
|
|
85
|
+
* the functions the host itself was wired with, or those readings drift from the run's.
|
|
86
|
+
*/
|
|
87
|
+
functions?: Record<string, (args: unknown[]) => unknown>;
|
|
88
|
+
/** The parser's signatures for those readings. Absent: the built-in table's, plus one per function in `functions`. */
|
|
89
|
+
signatures?: FormulaFunctionSignature[];
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The validation kernel's {@link FormTestDriver}: the server's reading of a scenario.
|
|
93
|
+
* One driver per scenario; `start` reads the givens and makes the first run.
|
|
94
|
+
*/
|
|
95
|
+
export declare function createFormTestKernelDriver(definition: FormDefinition, options: FormTestKernelDriverOptions): FormTestDriver;
|