mlform 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -17
- package/dist/builtins-D8rXH4ED.js +725 -0
- package/dist/{design-system-Dxx1Sh7r.js → design-6suKVQDo.js} +577 -396
- package/dist/mlform/builtins.mjs +2 -0
- package/dist/mlform/design.mjs +2 -0
- package/dist/mlform/kit.mjs +1896 -3
- package/dist/mlform/primitives.mjs +2 -2
- package/dist/mlform/runtime.mjs +3 -5
- package/dist/mlform/schema.mjs +2 -102
- package/dist/mlform/transport.mjs +2 -2
- package/dist/{primitives-Duag8Lj0.js → primitives-k9HTnd72.js} +2304 -3348
- package/dist/runtime-CI7vlp9i.js +1703 -0
- package/dist/schema-DSAZ6bts.js +88 -0
- package/dist/{transport-CtVX8ZUT.js → transport-CO6udZ6z.js} +633 -605
- package/dist/types/builtins/definitions/collections.d.ts +70 -0
- package/dist/types/builtins/definitions/fields/boolean.d.ts +9 -0
- package/dist/types/builtins/definitions/fields/category.d.ts +12 -0
- package/dist/types/builtins/definitions/fields/date.d.ts +10 -0
- package/dist/types/builtins/definitions/fields/long-text.d.ts +11 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/mapped-category.d.ts +3 -2
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/multi-choice.d.ts +3 -2
- package/dist/types/builtins/definitions/fields/number.d.ts +12 -0
- package/dist/types/builtins/definitions/fields/rating.d.ts +10 -0
- package/dist/types/builtins/definitions/fields/series-helpers.d.ts +52 -0
- package/dist/types/builtins/definitions/fields/series.d.ts +3 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/single-choice.d.ts +3 -2
- package/dist/types/builtins/definitions/fields/text.d.ts +11 -0
- package/dist/types/{src/shared/object.d.ts → builtins/definitions/fields/value-helpers.d.ts} +1 -0
- package/dist/types/builtins/definitions/index.d.ts +14 -0
- package/dist/types/builtins/definitions/reports/classifier.d.ts +9 -0
- package/dist/types/builtins/definitions/reports/regressor.d.ts +9 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/shared.d.ts +16 -1
- package/dist/types/builtins/index.d.ts +5 -0
- package/dist/types/builtins/mapped-category-behavior.d.ts +2 -0
- package/dist/types/builtins/registry-pack.d.ts +10 -0
- package/dist/types/design/recipes/collections.d.ts +2 -0
- package/dist/types/design/recipes/index.d.ts +2 -0
- package/dist/types/{src/design-system → design}/registry/builtins.d.ts +0 -3
- package/dist/types/{src/design-system → design}/registry/index.d.ts +3 -1
- package/dist/types/design/resolve/index.d.ts +4 -0
- package/dist/types/{src/design-system/resolve/index.d.ts → design/resolve/resolve-design.d.ts} +0 -3
- package/dist/types/design/runtime/controller-helpers.d.ts +12 -0
- package/dist/types/{src/design-system → design}/runtime/index.d.ts +3 -3
- package/dist/types/design/themes/airbnb.d.ts +2 -0
- package/dist/types/design/themes/clickhouse.d.ts +2 -0
- package/dist/types/design/themes/collections.d.ts +2 -0
- package/dist/types/design/themes/index.d.ts +3 -0
- package/dist/types/{src/design-system → design}/types.d.ts +1 -1
- package/dist/types/{src/kit → kit}/constants.d.ts +3 -11
- package/dist/types/{src/kit → kit}/defaults.d.ts +4 -4
- package/dist/types/kit/disclosure-root-styles.d.ts +1 -0
- package/dist/types/kit/error-navigation.d.ts +3 -0
- package/dist/types/kit/index.d.ts +7 -0
- package/dist/types/{src/presentation → kit/kinds}/define-field-kind.d.ts +11 -3
- package/dist/types/kit/kinds/define-report-kind.d.ts +40 -0
- package/dist/types/kit/kinds/index.d.ts +3 -0
- package/dist/types/kit/kinds/register-kind.d.ts +5 -0
- package/dist/types/{src/kit → kit}/layout-helpers.d.ts +7 -11
- package/dist/types/kit/layout-node-render.d.ts +18 -0
- package/dist/types/{src/kit → kit}/layout-node-resolver.d.ts +1 -1
- package/dist/types/{src/kit/accordion-root.d.ts → kit/layout-root.d.ts} +3 -4
- package/dist/types/{src/kit → kit}/layout-types.d.ts +8 -36
- package/dist/types/{src/kit → kit}/layout-utils.d.ts +0 -1
- package/dist/types/{src/kit → kit}/layout.d.ts +2 -2
- package/dist/types/{src/kit → kit}/mount-types.d.ts +8 -7
- package/dist/types/{src/kit → kit}/panel-nav.d.ts +1 -1
- package/dist/types/{src/kit → kit}/tabs-root.d.ts +1 -2
- package/dist/types/kit/types.d.ts +4 -0
- package/dist/types/kit/view-core-types.d.ts +110 -0
- package/dist/types/{src/kit → kit}/view-layout-state.d.ts +10 -3
- package/dist/types/{src/kit → kit}/view-navigation.d.ts +4 -4
- package/dist/types/kit/view-snapshot-cache.d.ts +14 -0
- package/dist/types/kit/view-snapshot.d.ts +15 -0
- package/dist/types/kit/view-types.d.ts +1 -0
- package/dist/types/kit/view.d.ts +2 -0
- package/dist/types/{src/kit → kit}/wizard-root.d.ts +1 -2
- package/dist/types/{src/primitives → primitives}/base-async-report-element.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/base-field-element.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/base-report-element.d.ts +3 -3
- package/dist/types/primitives/components/descriptor-content.d.ts +4 -0
- package/dist/types/primitives/components/error-focus.d.ts +5 -0
- package/dist/types/{src/primitives → primitives}/components/field-frame-feedback.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/components/field-frame.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/components/form-errors.d.ts +2 -2
- package/dist/types/primitives/components/form-root-presenters.d.ts +12 -0
- package/dist/types/primitives/components/form-root-split-styles.d.ts +1 -0
- package/dist/types/{src/primitives → primitives}/components/form-root-state.d.ts +4 -6
- package/dist/types/{src/primitives → primitives}/components/form-root-templates.d.ts +4 -8
- package/dist/types/{src/primitives → primitives}/components/form-root.d.ts +4 -4
- package/dist/types/{src/primitives → primitives}/components/report-frame.d.ts +4 -4
- package/dist/types/{src/primitives → primitives}/components/submit-button.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/constants.d.ts +6 -9
- package/dist/types/primitives/controller-types.d.ts +96 -0
- package/dist/types/primitives/descriptor-resolution.d.ts +6 -0
- package/dist/types/primitives/descriptors/content.d.ts +61 -0
- package/dist/types/primitives/descriptors/field.d.ts +32 -0
- package/dist/types/primitives/descriptors/index.d.ts +5 -0
- package/dist/types/primitives/descriptors/registry.d.ts +11 -0
- package/dist/types/primitives/descriptors/report.d.ts +20 -0
- package/dist/types/primitives/fields/series-field-renderers.d.ts +18 -0
- package/dist/types/primitives/index.d.ts +13 -0
- package/dist/types/primitives/mount-form.d.ts +4 -0
- package/dist/types/primitives/request-runner.d.ts +13 -0
- package/dist/types/{src/primitives → primitives}/types.d.ts +16 -53
- package/dist/types/runtime/create-runtime-helpers.d.ts +11 -0
- package/dist/types/{src/runtime → runtime}/errors.d.ts +3 -4
- package/dist/types/runtime/index.d.ts +10 -0
- package/dist/types/{src/runtime → runtime}/reports/controller.d.ts +3 -2
- package/dist/types/{src/runtime → runtime}/runtime-behaviors.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/runtime-controller.d.ts +1 -5
- package/dist/types/{src/runtime → runtime}/state/engine.d.ts +1 -2
- package/dist/types/runtime/submission/create-submitter.d.ts +2 -0
- package/dist/types/{src/runtime → runtime}/submission/index.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/submission/lifecycle.d.ts +1 -2
- package/dist/types/runtime/submission/pending-patches.d.ts +2 -0
- package/dist/types/{src/runtime → runtime}/submission/pipeline.d.ts +1 -1
- package/dist/types/runtime/submission/report-fetches.d.ts +2 -0
- package/dist/types/runtime/submission/stream-events.d.ts +13 -0
- package/dist/types/{src/runtime → runtime}/submission/types.d.ts +1 -2
- package/dist/types/{src/runtime → runtime}/types/behavior.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/types/field.d.ts +3 -10
- package/dist/types/{src/runtime → runtime}/types/form.d.ts +9 -13
- package/dist/types/runtime/types/index.d.ts +7 -0
- package/dist/types/{src/runtime → runtime}/types/pipeline.d.ts +10 -10
- package/dist/types/runtime/types/registry.d.ts +5 -0
- package/dist/types/runtime/types/report.d.ts +16 -0
- package/dist/types/{src/runtime → runtime}/types/transport.d.ts +4 -5
- package/dist/types/{src/runtime → runtime}/utils.d.ts +1 -3
- package/dist/types/{src/runtime → runtime}/validation/form.d.ts +1 -1
- package/dist/types/schema/ids.d.ts +1 -0
- package/dist/types/{src/schema → schema}/index.d.ts +3 -1
- package/dist/types/schema/registry.d.ts +7 -0
- package/dist/types/schema/report-fetch-request.d.ts +6 -0
- package/dist/types/{src/schema → schema}/types/form.d.ts +0 -3
- package/dist/types/{src/schema → schema}/types/registry.d.ts +0 -5
- package/dist/types/{src/schema → schema}/types/report.d.ts +25 -3
- package/dist/types/schema/types/submit.d.ts +11 -0
- package/dist/types/transport/composition/fanout-options.d.ts +9 -0
- package/dist/types/{src/transport → transport}/errors.d.ts +1 -2
- package/dist/types/{src/transport → transport}/index.d.ts +2 -0
- package/dist/types/transport/request-runner.d.ts +16 -0
- package/package.json +13 -26
- package/dist/builtins-DegwhFGA.js +0 -3507
- package/dist/builtins-ml-9qB2MOxt.js +0 -51
- package/dist/errors-B3H1wRwj.js +0 -8
- package/dist/kit-CuRF6dhL.js +0 -1847
- package/dist/mlform/behaviors.mjs +0 -32
- package/dist/mlform/builtins-ml.mjs +0 -3
- package/dist/mlform/design-system.mjs +0 -2
- package/dist/mlform/presentation.mjs +0 -2
- package/dist/mlform.mjs +0 -8
- package/dist/presentation-CkQuYheR.js +0 -200
- package/dist/runtime-DMjDVo0H.js +0 -1824
- package/dist/strings-CWwrrYzz.js +0 -4
- package/dist/types/src/behaviors/index.d.ts +0 -3
- package/dist/types/src/builtins-ml/index.d.ts +0 -5
- package/dist/types/src/design-system/recipes/index.d.ts +0 -4
- package/dist/types/src/design-system/themes/index.d.ts +0 -5
- package/dist/types/src/index.d.ts +0 -13
- package/dist/types/src/kit/accordion-root-styles.d.ts +0 -1
- package/dist/types/src/kit/accordion.d.ts +0 -2
- package/dist/types/src/kit/index.d.ts +0 -9
- package/dist/types/src/kit/layout-node-render.d.ts +0 -18
- package/dist/types/src/kit/tabs.d.ts +0 -2
- package/dist/types/src/kit/types.d.ts +0 -5
- package/dist/types/src/kit/view-snapshot-cache.d.ts +0 -14
- package/dist/types/src/kit/view-snapshot.d.ts +0 -15
- package/dist/types/src/kit/view-types.d.ts +0 -172
- package/dist/types/src/kit/view.d.ts +0 -8
- package/dist/types/src/kit/wizard.d.ts +0 -2
- package/dist/types/src/packs/default.d.ts +0 -2
- package/dist/types/src/packs/index.d.ts +0 -3
- package/dist/types/src/packs/ml.d.ts +0 -2
- package/dist/types/src/packs/shared.d.ts +0 -25
- package/dist/types/src/presentation/define-explanation-kind.d.ts +0 -11
- package/dist/types/src/presentation/define-report-kind.d.ts +0 -15
- package/dist/types/src/presentation/index.d.ts +0 -10
- package/dist/types/src/presentation/register-kind.d.ts +0 -6
- package/dist/types/src/presentation/registry.d.ts +0 -15
- package/dist/types/src/presentation/types/explanation.d.ts +0 -32
- package/dist/types/src/presentation/types/field.d.ts +0 -36
- package/dist/types/src/presentation/types/presentation.d.ts +0 -61
- package/dist/types/src/presentation/types/report.d.ts +0 -41
- package/dist/types/src/primitives/base-explanation-element.d.ts +0 -22
- package/dist/types/src/primitives/components/declarative-explanation.d.ts +0 -5
- package/dist/types/src/primitives/components/explanation-panel.d.ts +0 -24
- package/dist/types/src/primitives/components/form-root-presenters.d.ts +0 -17
- package/dist/types/src/primitives/components/presentation.d.ts +0 -4
- package/dist/types/src/primitives/index.d.ts +0 -8
- package/dist/types/src/primitives/mount-form.d.ts +0 -4
- package/dist/types/src/primitives/presentation.d.ts +0 -8
- package/dist/types/src/runtime/builtins/fields/boolean.d.ts +0 -8
- package/dist/types/src/runtime/builtins/fields/category.d.ts +0 -11
- package/dist/types/src/runtime/builtins/fields/date.d.ts +0 -9
- package/dist/types/src/runtime/builtins/fields/long-text.d.ts +0 -10
- package/dist/types/src/runtime/builtins/fields/number.d.ts +0 -11
- package/dist/types/src/runtime/builtins/fields/rating.d.ts +0 -9
- package/dist/types/src/runtime/builtins/fields/series.d.ts +0 -20
- package/dist/types/src/runtime/builtins/fields/text.d.ts +0 -10
- package/dist/types/src/runtime/builtins/index.d.ts +0 -103
- package/dist/types/src/runtime/builtins/reports/classifier.d.ts +0 -8
- package/dist/types/src/runtime/builtins/reports/regressor.d.ts +0 -8
- package/dist/types/src/runtime/declarative/explanation.d.ts +0 -2
- package/dist/types/src/runtime/declarative/field.d.ts +0 -2
- package/dist/types/src/runtime/declarative/presentation.d.ts +0 -61
- package/dist/types/src/runtime/declarative/report.d.ts +0 -2
- package/dist/types/src/runtime/explanations/controller.d.ts +0 -13
- package/dist/types/src/runtime/index.d.ts +0 -16
- package/dist/types/src/runtime/registry/index.d.ts +0 -5
- package/dist/types/src/runtime/reports/index.d.ts +0 -1
- package/dist/types/src/runtime/schema/index.d.ts +0 -7
- package/dist/types/src/runtime/submission/create-submitter.d.ts +0 -2
- package/dist/types/src/runtime/submission/explanations.d.ts +0 -2
- package/dist/types/src/runtime/types/explanation.d.ts +0 -22
- package/dist/types/src/runtime/types/index.d.ts +0 -9
- package/dist/types/src/runtime/types/registry.d.ts +0 -6
- package/dist/types/src/runtime/types/report.d.ts +0 -23
- package/dist/types/src/schema/registry.d.ts +0 -9
- package/dist/types/src/schema/types/explanation.d.ts +0 -43
- package/dist/types/src/shared/errors.d.ts +0 -3
- package/dist/types/src/shared/index.d.ts +0 -3
- package/dist/types/src/shared/strings.d.ts +0 -1
- /package/dist/types/{src/runtime → builtins}/constants.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/constants.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/component-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/component-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/global-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/token-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/default.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/minimal.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/soft.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/create-registry.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/deep-freeze.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-token-maps.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/diagnostics.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/merge-config.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/migrate-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-mode.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/apply-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/attach-design-system.d.ts → design/runtime/attach-design.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/create-stylesheet.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/declarations.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/design-system-controller.d.ts → design/runtime/design-controller.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/fingerprint.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/host-observer.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/host-state.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/hydrate-design-system.d.ts → design/runtime/hydrate-design.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/hydration-state.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/inherited-scheme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/media.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/cobalt.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/graphite.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/neutral.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/sage.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/sunset.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/base.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/density.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/forced-colors.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/motion.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/mount-form.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/step-indicator.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/tabs-root-styles.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/wizard-constants.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/wizard-root-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/declarative-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/declarative-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/field-frame-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/form-root-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/unsupported-component.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/controller-binding.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/boolean-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/category-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/date-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/long-text-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/multi-choice-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/number-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/rating-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field-helpers.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/single-choice-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/text-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/register.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/registry.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/reports/classifier-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/reports/regressor-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/utils.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/comparison.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/create-runtime.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/equality.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/controller.d.ts +0 -0
- /package/dist/types/{src/runtime/explanations → runtime/fields}/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/state-calculations.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/state.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/form.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/paths.d.ts +0 -0
- /package/dist/types/{src/runtime/fields → runtime/reports}/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/runtime-refresh.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/runtime-values.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/snapshots.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/store.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/abort.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/error-flow.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/field-updates.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/report-updates.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/reports.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/request.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/result.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/stream-progress.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/submitter.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/conditions.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field-state.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field-validator.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/values.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/normalize.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/field.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/capabilities.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/clone.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fallback.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fanout-helpers.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fanout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/hedged.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/load-balancing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/pipeline.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/quorum-fanout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/racing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/constants.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-core.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-errors.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-request.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-sse.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-stream.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/auth.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/cache.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/circuit-breaker.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/dedup.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/logging.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/metrics.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/pipe.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/rate-limit.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/retry.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/timeout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/tracing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/transform.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/policy-context.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/graphql.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/grpc.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/json.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/sse.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/websocket.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/runtime.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/cache-store.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/circuit-breaker.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/health.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/rate-limiter.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/session.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/capabilities.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/core.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/events.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/middleware.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-http.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-middleware.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/session.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/state.d.ts +0 -0
package/dist/strings-CWwrrYzz.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RuntimeBehavior } from '../../runtime/types';
|
|
2
|
-
export declare const createMappedCategoryBehavior: () => RuntimeBehavior;
|
|
3
|
-
export type { RuntimeBehavior, RuntimeBehaviorContext, RuntimeBehaviorSubmissionRecords, RuntimeBehaviorValueChangeEvent, } from '../../runtime/types';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { classifierReportDefinition, regressorReportDefinition } from '../../runtime/builtins';
|
|
2
|
-
import { Registry } from '../../schema';
|
|
3
|
-
export { classifierReportDefinition, regressorReportDefinition };
|
|
4
|
-
export declare const createBuiltinMlRegistry: () => Registry;
|
|
5
|
-
export declare const createMlRegistryPack: () => import('../packs').RegistryPack;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { collectLayoutReferences, createFormView, defaultKitDesignSystem, defaultKitLabels, flattenLayoutNodes, mountForm, mountAccordionForm, mountTabsForm, mountWizardForm, unmountForm, walkLayoutNodes, } from '../kit';
|
|
2
|
-
export { assertPayloadWithinLimits, assertTransportCapabilities, cloneCapabilities, createFanoutTransport, createFallbackTransport, createGraphqlTransport, createGrpcSessionTransport, createGrpcStreamTransport, createGrpcTransport, createGrpcUnaryTransport, createHedgedTransport, createJsonTransport, createLoadBalancedTransport, createMemoryCircuitBreakerState, createMemorySharedRateLimiter, createMemoryTransportCacheStore, createMemoryTransportHealthState, createPipelineTransport, createQuorumFanoutTransport, createRacingTransport, createRoutingTransport, createSessionTransport, createSseTransport, createWebSocketSessionTransport, createWeightedRoutingTransport, inferTransportCapabilities, mergeTransportCapabilities, normalizeTransportCapabilities, pipe, transportDefaults, transportErrorMessages, transportErrorCodes, TransportError, withAuth, withCache, withCircuitBreaker, withDedup, withLogging, withMetrics, withRateLimit, withRequestTransform, withResponseTransform, withRetry, withTracing, withTimeout, } from '../transport';
|
|
3
|
-
export type { ApiKeyAuthOptions, AuthOptions, BearerAuthOptions, CacheOptions, CapabilityRequirement, CircuitBreakerOptions, CircuitBreakerSharedState, CircuitBreakerStateSnapshot, CustomAuthOptions, DedupOptions, FanoutTransportFailure, FanoutTransportOptions, FanoutTransportResult, FallbackTransportFailure, FallbackTransportOptions, GraphqlTransportOptions, GrpcSessionTransportOptions, GrpcStreamTransportOptions, GrpcTransportOptions, GrpcUnaryTransportOptions, HedgedTransportOptions, JsonTransportMethod, JsonTransportOptions, LoadBalancingTransportOptions, PipelineStage, PipelineTransportOptions, QuorumFanoutTransportOptions, RateLimitLeaseRequest, RateLimitOptions, RacingTransportOptions, RetryOptions, RoutingTransportOptions, SessionTransportOptions, SharedRateLimiter, SharedRateLimiterLease, SseTransportOptions, TransportBackpressureMode, TransportCacheEntry, TransportCacheStore, TransportCapabilities, TransportCollection, TransportConsistency, TransportContextAuthOptions, TransportDeliveryMode, TransportErrorCode, TransportHealthSnapshot, TransportHealthState, TransportLogOptions, TransportMetricsOptions, TransportMiddleware, TransportTelemetryEvent, TransportTraceOptions, WebSocketSessionTransportOptions, WeightedRoutingTransportOptions, } from '../transport';
|
|
4
|
-
export type { AccordionLayoutConfig, AccordionMountUiOptions, AccordionSectionConfig, AccordionState, CreateFormViewOptions, FormLayoutConfig, FormLayoutExplanationNode, FormLayoutFieldNode, FormLayoutGroupNode, FormLayoutNode, FormLayoutReportNode, FormLayoutSectionNode, FormViewController, FormViewExplanationItem, FormViewFieldItem, FormViewReportItem, FormViewSnapshot, FormViewState, KitDesignSystemSnapshot, KitLabels, MountedAccordionForm, MountFormOptions, MountedForm, MountedTabsForm, MountedWizardForm, MountAccordionFormOptions, MountTabsFormOptions, MountWizardFormOptions, PanelState, ResolvedAccordionLayout, ResolvedAccordionSection, ResolvedFormLayout, ResolvedFormLayoutExplanationNode, ResolvedFormLayoutFieldNode, ResolvedFormLayoutGroupNode, ResolvedFormLayoutNode, ResolvedFormLayoutReportNode, ResolvedFormLayoutSectionNode, ResolvedTabLayout, ResolvedTabsLayout, TabLayoutConfig, TabsLayoutConfig, TabsState, WizardLayoutConfig, WizardState, WizardStepConfig, } from '../kit';
|
|
5
|
-
export type { ExplanationRequest, ExplanationTransport, PrimitiveFieldRenderContext, PrimitiveExplanationRenderContext, PrimitiveExplanationRendererElement, PrimitiveFieldRendererElement, PrimitiveReportRenderContext, PrimitiveReportRendererElement, } from '../primitives';
|
|
6
|
-
export { createExplanationController, executeExplanations, executeFormPipeline } from '../runtime';
|
|
7
|
-
export { createRegistry, defineExplanationDefinition, defineFieldDefinition, defineReportDefinition, } from '../schema';
|
|
8
|
-
export { defineExplanationKind, defineFieldKind, defineReportKind, toPresentationNodes, } from '../presentation';
|
|
9
|
-
export { createBuiltinMlRegistry, createMlRegistryPack } from '../builtins-ml';
|
|
10
|
-
export { createMappedCategoryBehavior } from '../behaviors';
|
|
11
|
-
export { createDefaultRegistryPack } from '../packs';
|
|
12
|
-
export type { AfterExplanationContext, ExplanationConfig, ExplanationController, ExplanationDefinition, ExplanationErrorContext, ExplanationExecutionContext, ExplanationExecutionResult, ExplanationFetchContext, ExplanationFetchFactory, ExplanationFetchRequest, ExplanationFetchTransport, ExplanationStateSnapshot, ExplanationStatus, FieldValidationFnContext, FieldValueAdapter, NormalizedExplanationConfig, PipelineArtifactAdapter, PipelineArtifactContext, PipelineResult, ExecuteFormPipelineOptions, ReportResolveContext, } from '../runtime';
|
|
13
|
-
export type { DeclarativeExplanationKind, DeclarativeFieldKind, DeclarativeReportKind, ExplanationDescriptor, ExplanationDescriptorContext, ExplanationRenderSpec, ExplanationRenderSpecContext, FieldDescriptor, FieldRenderHints, FieldRenderSpec, FieldRenderSpecContext, FieldWidget, PresentationContent, PresentationNode, PresentationSummary, PresentationTone, ReportDescriptor, ReportRenderSpec, ReportRenderSpecContext, } from '../presentation';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const accordionRootStyles: import('lit').CSSResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { defaultKitDesignSystem, defaultKitLabels } from './defaults';
|
|
2
|
-
export { mountAccordionForm } from './accordion';
|
|
3
|
-
export { collectLayoutReferences, flattenLayoutNodes, walkLayoutNodes } from './layout-utils';
|
|
4
|
-
export { mountForm, unmountForm } from './mount-form';
|
|
5
|
-
export { mountTabsForm } from './tabs';
|
|
6
|
-
export { createFormView } from './view';
|
|
7
|
-
export { mountWizardForm } from './wizard';
|
|
8
|
-
export { assertPayloadWithinLimits, assertTransportCapabilities, createFanoutTransport, createFallbackTransport, createGraphqlTransport, createGrpcSessionTransport, createGrpcStreamTransport, createGrpcTransport, createGrpcUnaryTransport, createHedgedTransport, createJsonTransport, createLoadBalancedTransport, createMemoryCircuitBreakerState, createMemorySharedRateLimiter, createMemoryTransportCacheStore, createMemoryTransportHealthState, createPipelineTransport, createQuorumFanoutTransport, createRacingTransport, createRoutingTransport, createSseTransport, createSessionTransport, createWebSocketSessionTransport, createWeightedRoutingTransport, pipe, withAuth, withCache, withCircuitBreaker, withDedup, withLogging, withMetrics, withRateLimit, withRequestTransform, withResponseTransform, withRetry, withTracing, withTimeout, } from '../../transport';
|
|
9
|
-
export type { ApiKeyAuthOptions, AuthOptions, BearerAuthOptions, CapabilityRequirement, CacheOptions, CircuitBreakerSharedState, CircuitBreakerOptions, CustomAuthOptions, DedupOptions, FanoutTransportFailure, FanoutTransportOptions, FanoutTransportResult, FallbackTransportFailure, FallbackTransportOptions, GraphqlTransportOptions, GrpcSessionTransportOptions, GrpcStreamTransportOptions, GrpcTransportOptions, GrpcUnaryTransportOptions, HedgedTransportOptions, JsonTransportMethod, JsonTransportOptions, AccordionLayoutConfig, AccordionMountUiOptions, AccordionSectionConfig, AccordionState, CreateFormViewOptions, FormLayoutConfig, FormLayoutExplanationNode, FormLayoutFieldNode, FormLayoutGroupNode, FormLayoutNode, FormLayoutReportNode, FormLayoutSectionNode, FormViewController, FormViewExplanationItem, FormViewFieldItem, FormViewReportItem, FormViewSnapshot, FormViewState, KitDesignSystemSnapshot, KitLabels, LoadBalancingTransportOptions, MountFormOptions, MountedAccordionForm, MountedWizardForm, MountedTabsForm, MountedForm, MountAccordionFormOptions, MountTabsFormOptions, MountWizardFormOptions, PanelState, PipelineStage, PipelineTransportOptions, QuorumFanoutTransportOptions, RateLimitLeaseRequest, SharedRateLimiter, SharedRateLimiterLease, SessionTransportOptions, TransportCacheEntry, TransportCacheStore, TransportHealthSnapshot, TransportHealthState, RateLimitOptions, RacingTransportOptions, RetryOptions, RoutingTransportOptions, TransportContextAuthOptions, TransportCollection, TransportMetricsOptions, TransportTelemetryEvent, TransportLogOptions, TransportMiddleware, TransportTraceOptions, ResolvedAccordionLayout, ResolvedAccordionSection, ResolvedFormLayout, ResolvedFormLayoutExplanationNode, ResolvedFormLayoutFieldNode, ResolvedFormLayoutGroupNode, ResolvedFormLayoutNode, ResolvedFormLayoutReportNode, ResolvedFormLayoutSectionNode, ResolvedTabLayout, ResolvedTabsLayout, SseTransportOptions, TabsLayoutConfig, TabsState, TabLayoutConfig, WebSocketSessionTransportOptions, WizardLayoutConfig, WizardState, WizardStepConfig, WeightedRoutingTransportOptions, } from './types';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { nothing, TemplateResult } from 'lit';
|
|
2
|
-
import { PrimitiveText } from '../../primitives/constants';
|
|
3
|
-
import { PrimitiveRegistry } from '../../primitives/types';
|
|
4
|
-
import { FormViewSnapshot, ResolvedFormLayoutNode } from './types';
|
|
5
|
-
type RenderLayoutNodeOptions = {
|
|
6
|
-
node: ResolvedFormLayoutNode;
|
|
7
|
-
snapshot: FormViewSnapshot;
|
|
8
|
-
registry: PrimitiveRegistry | undefined;
|
|
9
|
-
primitiveText?: PrimitiveText;
|
|
10
|
-
sectionClass: string;
|
|
11
|
-
sectionCopyClass: string;
|
|
12
|
-
sectionTitleClass: string;
|
|
13
|
-
sectionDescriptionClass: string;
|
|
14
|
-
childrenClass: string;
|
|
15
|
-
groupBaseClass: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const renderLayoutNode: ({ node, snapshot, registry, primitiveText, sectionClass, sectionCopyClass, sectionTitleClass, sectionDescriptionClass, childrenClass, groupBaseClass, }: RenderLayoutNodeOptions) => TemplateResult | typeof nothing;
|
|
18
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type { FormLayoutNode, FormLayoutSectionNode, FormLayoutGroupNode, FormLayoutFieldNode, FormLayoutReportNode, FormLayoutExplanationNode, SinglePageLayoutConfig, WizardStepConfig, WizardLayoutConfig, TabLayoutConfig, TabsLayoutConfig, AccordionSectionConfig, AccordionLayoutConfig, FormLayoutConfig, ResolvedFormLayoutNode, ResolvedFormLayoutSectionNode, ResolvedFormLayoutGroupNode, ResolvedFormLayoutFieldNode, ResolvedFormLayoutReportNode, ResolvedFormLayoutExplanationNode, ResolvedSinglePageLayout, ResolvedWizardStep, ResolvedWizardLayout, ResolvedTabLayout, ResolvedTabsLayout, ResolvedAccordionSection, ResolvedAccordionLayout, ResolvedFormLayout, } from './layout-types';
|
|
2
|
-
export type { KitDesignSystemSnapshot, KitLabels, MountFormOptions, MountedForm, } from './mount-types';
|
|
3
|
-
export type { WizardState, TabsState, AccordionState, FormViewFieldItem, FormViewReportItem, FormViewExplanationItem, FormViewState, FormViewSnapshot, CreateFormViewOptions, FormViewController, WizardMountUiOptions, MountWizardFormOptions, MountedWizardForm, TabsMountUiOptions, MountTabsFormOptions, MountedTabsForm, AccordionMountUiOptions, MountAccordionFormOptions, MountedAccordionForm, LayoutReferences, PanelState, } from './view-types';
|
|
4
|
-
export type { WizardLabels, WizardTextOverrides } from './wizard-constants';
|
|
5
|
-
export type { ApiKeyAuthOptions, AuthOptions, BearerAuthOptions, CacheOptions, CapabilityRequirement, CircuitBreakerOptions, CircuitBreakerSharedState, CircuitBreakerStateSnapshot, CustomAuthOptions, DedupOptions, FanoutTransportFailure, FanoutTransportOptions, FanoutTransportResult, FallbackTransportFailure, FallbackTransportOptions, GraphqlTransportOptions, GrpcSessionTransportOptions, GrpcStreamTransportOptions, GrpcTransportOptions, GrpcUnaryTransportOptions, HedgedTransportOptions, JsonTransportMethod, JsonTransportOptions, LoadBalancingTransportOptions, PipelineStage, PipelineTransportOptions, QuorumFanoutTransportOptions, RateLimitLeaseRequest, RateLimitOptions, RacingTransportOptions, RetryOptions, RoutingTransportOptions, SessionTransportOptions, SharedRateLimiter, SharedRateLimiterLease, SseTransportOptions, TransportCacheEntry, TransportCacheStore, TransportCollection, TransportContextAuthOptions, TransportHealthSnapshot, TransportHealthState, TransportLogOptions, TransportMetricsOptions, TransportMiddleware, TransportTelemetryEvent, TransportTraceOptions, WebSocketSessionTransportOptions, WeightedRoutingTransportOptions, } from '../../transport';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PresentationRegistry } from '../../presentation';
|
|
2
|
-
import { FormController } from '../../runtime';
|
|
3
|
-
import { ResolvedLayoutResult } from './layout';
|
|
4
|
-
import { FormViewSnapshot } from './types';
|
|
5
|
-
type SnapshotCacheOptions = {
|
|
6
|
-
form: FormController;
|
|
7
|
-
presentationRegistry: PresentationRegistry;
|
|
8
|
-
resolvedLayout: ResolvedLayoutResult;
|
|
9
|
-
getStepIndex: () => number;
|
|
10
|
-
getActiveTabIndex: () => number;
|
|
11
|
-
getOpenSectionIds: () => Set<string>;
|
|
12
|
-
};
|
|
13
|
-
export declare const createFormViewSnapshotCache: ({ form, presentationRegistry, resolvedLayout, getStepIndex, getActiveTabIndex, getOpenSectionIds, }: SnapshotCacheOptions) => (() => FormViewSnapshot);
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PresentationRegistry } from '../../presentation';
|
|
2
|
-
import { FormController } from '../../runtime';
|
|
3
|
-
import { FormViewSnapshot } from './types';
|
|
4
|
-
import { ResolvedLayoutResult } from './layout';
|
|
5
|
-
type BuildSnapshotOptions = {
|
|
6
|
-
form: FormController;
|
|
7
|
-
presentationRegistry: PresentationRegistry;
|
|
8
|
-
resolvedLayout: ResolvedLayoutResult;
|
|
9
|
-
stepIndex: number;
|
|
10
|
-
activeTabIndex: number;
|
|
11
|
-
openSectionIds: Set<string>;
|
|
12
|
-
};
|
|
13
|
-
export declare const buildFormViewSnapshot: ({ form, presentationRegistry, resolvedLayout, stepIndex, activeTabIndex, openSectionIds, }: BuildSnapshotOptions) => FormViewSnapshot;
|
|
14
|
-
export declare const createViewState: (form: FormController, layout: ResolvedLayoutResult["layout"], stepIndex: number, activeTabIndex: number, openSectionIds: Set<string>) => import('./view-types').FormViewState;
|
|
15
|
-
export {};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { DesignSystemConfig, DesignSystemRegistry, ResolvedDesignSystem, AttachedDesignSystem } from '../../design-system';
|
|
2
|
-
import { PresentationRegistry } from '../../presentation';
|
|
3
|
-
import { ExplanationController, ExplanationDescriptor, ExplanationStateSnapshot, FieldController, FieldDescriptor, FieldStateSnapshot, FormController, FormState, FormValidationResult, Registry, ReportController, ReportDescriptor, ReportStateSnapshot, SubmitOptions, SubmitResult } from '../../runtime';
|
|
4
|
-
import { PrimitiveRegistry, PrimitiveTextOverrides } from '../../primitives';
|
|
5
|
-
import { LayoutReferences } from './layout-utils';
|
|
6
|
-
import { FormLayoutConfig, ResolvedFormLayout, ResolvedFormLayoutNode } from './layout-types';
|
|
7
|
-
import { MountFormOptions, KitLabels } from './mount-types';
|
|
8
|
-
import { PanelState } from './panel-nav';
|
|
9
|
-
import { WizardLabels, WizardTextOverrides } from './wizard-constants';
|
|
10
|
-
export interface WizardState {
|
|
11
|
-
stepIndex: number;
|
|
12
|
-
stepCount: number;
|
|
13
|
-
currentStepId: string;
|
|
14
|
-
canNext: boolean;
|
|
15
|
-
canPrev: boolean;
|
|
16
|
-
isLastStep: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface TabsState {
|
|
19
|
-
activeTabIndex: number;
|
|
20
|
-
tabCount: number;
|
|
21
|
-
currentTabId: string;
|
|
22
|
-
canGoNext: boolean;
|
|
23
|
-
canGoPrev: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface AccordionState {
|
|
26
|
-
openSectionIds: string[];
|
|
27
|
-
sectionCount: number;
|
|
28
|
-
}
|
|
29
|
-
export interface FormViewFieldItem {
|
|
30
|
-
id: string;
|
|
31
|
-
kind: string;
|
|
32
|
-
config: FieldController["config"];
|
|
33
|
-
controller: FieldController;
|
|
34
|
-
state: FieldStateSnapshot;
|
|
35
|
-
descriptor: FieldDescriptor;
|
|
36
|
-
stepId: string | null;
|
|
37
|
-
tabId: string | null;
|
|
38
|
-
visibleInLayout: boolean;
|
|
39
|
-
}
|
|
40
|
-
export interface FormViewReportItem {
|
|
41
|
-
id: string;
|
|
42
|
-
kind: string;
|
|
43
|
-
config: ReportController["config"];
|
|
44
|
-
controller: ReportController;
|
|
45
|
-
state: ReportStateSnapshot;
|
|
46
|
-
descriptor: ReportDescriptor | null;
|
|
47
|
-
stepId: string | null;
|
|
48
|
-
tabId: string | null;
|
|
49
|
-
visibleInLayout: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface FormViewExplanationItem {
|
|
52
|
-
id: string;
|
|
53
|
-
kind: string;
|
|
54
|
-
config: ExplanationController["config"];
|
|
55
|
-
controller: ExplanationController;
|
|
56
|
-
state: ExplanationStateSnapshot;
|
|
57
|
-
descriptor: ExplanationDescriptor | null;
|
|
58
|
-
stepId: string | null;
|
|
59
|
-
tabId: string | null;
|
|
60
|
-
visibleInLayout: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface FormViewState {
|
|
63
|
-
form: FormState;
|
|
64
|
-
wizard: WizardState | null;
|
|
65
|
-
tabs: TabsState | null;
|
|
66
|
-
accordion: AccordionState | null;
|
|
67
|
-
}
|
|
68
|
-
export interface FormViewSnapshot {
|
|
69
|
-
form: FormState;
|
|
70
|
-
layout: ResolvedFormLayout;
|
|
71
|
-
fields: FormViewFieldItem[];
|
|
72
|
-
reports: FormViewReportItem[];
|
|
73
|
-
explanations: FormViewExplanationItem[];
|
|
74
|
-
wizard: WizardState | null;
|
|
75
|
-
tabs: TabsState | null;
|
|
76
|
-
accordion: AccordionState | null;
|
|
77
|
-
}
|
|
78
|
-
export interface CreateFormViewOptions extends Omit<MountFormOptions, "layout"> {
|
|
79
|
-
layout?: FormLayoutConfig;
|
|
80
|
-
}
|
|
81
|
-
export interface FormViewController {
|
|
82
|
-
readonly form: FormController;
|
|
83
|
-
readonly engineRegistry: Registry;
|
|
84
|
-
readonly presentationRegistry: PresentationRegistry;
|
|
85
|
-
readonly primitiveRegistry: PrimitiveRegistry;
|
|
86
|
-
readonly designSystemRegistry: DesignSystemRegistry;
|
|
87
|
-
readonly state: FormViewState;
|
|
88
|
-
getSnapshot(): FormViewSnapshot;
|
|
89
|
-
getNodeById(id: string): ResolvedFormLayoutNode | undefined;
|
|
90
|
-
getField(id: string): FormViewFieldItem | undefined;
|
|
91
|
-
getReport(id: string): FormViewReportItem | undefined;
|
|
92
|
-
getExplanation(id: string): FormViewExplanationItem | undefined;
|
|
93
|
-
getVisibleFields(): FormViewFieldItem[];
|
|
94
|
-
getVisibleReports(): FormViewReportItem[];
|
|
95
|
-
getVisibleExplanations(): FormViewExplanationItem[];
|
|
96
|
-
getActiveLayoutNodes(): ResolvedFormLayoutNode[];
|
|
97
|
-
getLayoutReferences(): LayoutReferences;
|
|
98
|
-
validate(): Promise<FormValidationResult>;
|
|
99
|
-
submit(options?: SubmitOptions): Promise<SubmitResult>;
|
|
100
|
-
reset(): void;
|
|
101
|
-
subscribe(listener: (snapshot: FormViewSnapshot) => void): () => void;
|
|
102
|
-
nextStep(): Promise<boolean>;
|
|
103
|
-
prevStep(): void;
|
|
104
|
-
goToStep(stepId: string): Promise<boolean>;
|
|
105
|
-
setActiveTab(tabId: string): void;
|
|
106
|
-
nextTab(): boolean;
|
|
107
|
-
prevTab(): boolean;
|
|
108
|
-
toggleSection(sectionId: string): void;
|
|
109
|
-
openSection(sectionId: string): void;
|
|
110
|
-
closeSection(sectionId: string): void;
|
|
111
|
-
openAllSections(): void;
|
|
112
|
-
closeAllSections(): void;
|
|
113
|
-
}
|
|
114
|
-
export interface WizardMountUiOptions {
|
|
115
|
-
labels?: WizardLabels;
|
|
116
|
-
text?: WizardTextOverrides;
|
|
117
|
-
primitiveText?: PrimitiveTextOverrides;
|
|
118
|
-
designSystem?: DesignSystemConfig;
|
|
119
|
-
designSystemRegistry?: DesignSystemRegistry;
|
|
120
|
-
onDesignSystemChange?: (resolved: ResolvedDesignSystem) => void;
|
|
121
|
-
}
|
|
122
|
-
export type MountWizardFormOptions = ({
|
|
123
|
-
view: FormViewController;
|
|
124
|
-
} & WizardMountUiOptions) | (CreateFormViewOptions & WizardMountUiOptions & {
|
|
125
|
-
layout: import('./layout-types').WizardLayoutConfig;
|
|
126
|
-
});
|
|
127
|
-
export interface MountedWizardForm {
|
|
128
|
-
readonly view: FormViewController;
|
|
129
|
-
readonly form: FormController;
|
|
130
|
-
readonly host: HTMLElement;
|
|
131
|
-
readonly designSystem: AttachedDesignSystem;
|
|
132
|
-
unmount(): void;
|
|
133
|
-
}
|
|
134
|
-
export interface TabsMountUiOptions {
|
|
135
|
-
labels?: KitLabels;
|
|
136
|
-
primitiveText?: PrimitiveTextOverrides;
|
|
137
|
-
designSystem?: DesignSystemConfig;
|
|
138
|
-
designSystemRegistry?: DesignSystemRegistry;
|
|
139
|
-
onDesignSystemChange?: (resolved: ResolvedDesignSystem) => void;
|
|
140
|
-
}
|
|
141
|
-
export type MountTabsFormOptions = ({
|
|
142
|
-
view: FormViewController;
|
|
143
|
-
} & TabsMountUiOptions) | (CreateFormViewOptions & TabsMountUiOptions & {
|
|
144
|
-
layout: import('./layout-types').TabsLayoutConfig;
|
|
145
|
-
});
|
|
146
|
-
export interface MountedTabsForm {
|
|
147
|
-
readonly view: FormViewController;
|
|
148
|
-
readonly form: FormController;
|
|
149
|
-
readonly host: HTMLElement;
|
|
150
|
-
readonly designSystem: AttachedDesignSystem;
|
|
151
|
-
unmount(): void;
|
|
152
|
-
}
|
|
153
|
-
export interface AccordionMountUiOptions {
|
|
154
|
-
labels?: KitLabels;
|
|
155
|
-
primitiveText?: PrimitiveTextOverrides;
|
|
156
|
-
designSystem?: DesignSystemConfig;
|
|
157
|
-
designSystemRegistry?: DesignSystemRegistry;
|
|
158
|
-
onDesignSystemChange?: (resolved: ResolvedDesignSystem) => void;
|
|
159
|
-
}
|
|
160
|
-
export type MountAccordionFormOptions = ({
|
|
161
|
-
view: FormViewController;
|
|
162
|
-
} & AccordionMountUiOptions) | (CreateFormViewOptions & AccordionMountUiOptions & {
|
|
163
|
-
layout: import('./layout-types').AccordionLayoutConfig;
|
|
164
|
-
});
|
|
165
|
-
export interface MountedAccordionForm {
|
|
166
|
-
readonly view: FormViewController;
|
|
167
|
-
readonly form: FormController;
|
|
168
|
-
readonly host: HTMLElement;
|
|
169
|
-
readonly designSystem: AttachedDesignSystem;
|
|
170
|
-
unmount(): void;
|
|
171
|
-
}
|
|
172
|
-
export type { LayoutReferences, PanelState };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PresentationRegistry } from '../../presentation';
|
|
2
|
-
import { CreateFormViewOptions, FormViewController } from './types';
|
|
3
|
-
type InternalCreateFormViewOptions = CreateFormViewOptions & {
|
|
4
|
-
presentationRegistry?: PresentationRegistry;
|
|
5
|
-
behaviors?: import('../../runtime').RuntimeBehavior[];
|
|
6
|
-
};
|
|
7
|
-
export declare const createFormView: (options: InternalCreateFormViewOptions) => FormViewController;
|
|
8
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ExplanationPresenter, FieldPresenter, PresentationRegistry, ReportPresenter } from '../../presentation';
|
|
2
|
-
import { RuntimeBehavior } from '../../runtime';
|
|
3
|
-
import { ExplanationConfig, FieldConfig, Registry, ReportConfig } from '../../schema';
|
|
4
|
-
type DescriptorCapableFieldDefinition = {
|
|
5
|
-
kind: string;
|
|
6
|
-
describe?: FieldPresenter<FieldConfig, unknown>["describe"];
|
|
7
|
-
};
|
|
8
|
-
type DescriptorCapableReportDefinition = {
|
|
9
|
-
kind: string;
|
|
10
|
-
describe?: ReportPresenter<ReportConfig>["describe"];
|
|
11
|
-
};
|
|
12
|
-
type DescriptorCapableExplanationDefinition = {
|
|
13
|
-
kind: string;
|
|
14
|
-
describe?: ExplanationPresenter<ExplanationConfig>["describe"];
|
|
15
|
-
};
|
|
16
|
-
export type RegistryPack = {
|
|
17
|
-
registry: Registry;
|
|
18
|
-
presentationRegistry: PresentationRegistry;
|
|
19
|
-
behaviors: RuntimeBehavior[];
|
|
20
|
-
};
|
|
21
|
-
export declare const registerFieldPresenterFromDefinition: (presentationRegistry: PresentationRegistry, definition: DescriptorCapableFieldDefinition) => void;
|
|
22
|
-
export declare const registerReportPresenterFromDefinition: (presentationRegistry: PresentationRegistry, definition: DescriptorCapableReportDefinition) => void;
|
|
23
|
-
export declare const registerExplanationPresenterFromDefinition: (presentationRegistry: PresentationRegistry, definition: DescriptorCapableExplanationDefinition) => void;
|
|
24
|
-
export declare const registerPresentersFromRegistry: (presentationRegistry: PresentationRegistry, registry: Registry) => void;
|
|
25
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ExplanationConfig, ExplanationDefinition, NormalizedExplanationConfig } from '../../schema';
|
|
2
|
-
import { DeclarativeExplanationKind, ExplanationDescriptor, ExplanationDescriptorContext, ExplanationPresenter } from './index';
|
|
3
|
-
export type DefinedExplanationKind<TConfig extends ExplanationConfig, _TResult> = {
|
|
4
|
-
kind: string;
|
|
5
|
-
schema: import('zod').ZodType<TConfig>;
|
|
6
|
-
transport: ExplanationDefinition<TConfig>["transport"];
|
|
7
|
-
describe?: (config: NormalizedExplanationConfig<TConfig>, context: ExplanationDescriptorContext) => ExplanationDescriptor | null;
|
|
8
|
-
definition: ExplanationDefinition<TConfig>;
|
|
9
|
-
presenter: ExplanationPresenter<TConfig>;
|
|
10
|
-
};
|
|
11
|
-
export declare const defineExplanationKind: <TConfig extends ExplanationConfig, TResult>(kind: DeclarativeExplanationKind<TConfig, TResult>) => DefinedExplanationKind<TConfig, TResult>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NormalizedReportConfig, ReportConfig, ReportDefinition } from '../../schema';
|
|
2
|
-
import { DeclarativeReportKind, ReportDescriptor, ReportDescriptorContext, ReportPresenter } from './index';
|
|
3
|
-
export type DefinedReportKind<TConfig extends ReportConfig, _TPayload> = {
|
|
4
|
-
kind: string;
|
|
5
|
-
schema: import('zod').ZodType<TConfig>;
|
|
6
|
-
payloadSchema?: ReportDefinition<TConfig>["payloadSchema"];
|
|
7
|
-
payloadValidationPolicy?: ReportDefinition<TConfig>["payloadValidationPolicy"];
|
|
8
|
-
partialUpdatePolicy?: ReportDefinition<TConfig>["partialUpdatePolicy"];
|
|
9
|
-
clonePayload?: ReportDefinition<TConfig>["clonePayload"];
|
|
10
|
-
resolvePayload?: ReportDefinition<TConfig>["resolvePayload"];
|
|
11
|
-
describe?: (config: NormalizedReportConfig<TConfig>, context: ReportDescriptorContext) => ReportDescriptor | null;
|
|
12
|
-
definition: ReportDefinition<TConfig>;
|
|
13
|
-
presenter: ReportPresenter<TConfig>;
|
|
14
|
-
};
|
|
15
|
-
export declare const defineReportKind: <TConfig extends ReportConfig, TPayload>(kind: DeclarativeReportKind<TConfig, TPayload>) => DefinedReportKind<TConfig, TPayload>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { defineExplanationKind, type DefinedExplanationKind } from './define-explanation-kind';
|
|
2
|
-
export { defineFieldKind, type DefinedFieldKind } from './define-field-kind';
|
|
3
|
-
export { defineReportKind, type DefinedReportKind } from './define-report-kind';
|
|
4
|
-
export { registerDefinedExplanationKind, registerDefinedFieldKind, registerDefinedReportKind, } from './register-kind';
|
|
5
|
-
export { createPresentationRegistry, PresentationRegistry } from './registry';
|
|
6
|
-
export { toPresentationNodes } from './types/presentation';
|
|
7
|
-
export type * from './types/explanation';
|
|
8
|
-
export type * from './types/field';
|
|
9
|
-
export type * from './types/presentation';
|
|
10
|
-
export type * from './types/report';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Registry } from '../../schema';
|
|
2
|
-
import { DefinedExplanationKind, DefinedFieldKind, DefinedReportKind } from './index';
|
|
3
|
-
import { PresentationRegistry } from './registry';
|
|
4
|
-
export declare const registerDefinedFieldKind: <TConfig extends import('../../schema').FieldConfig, TValue>(registry: Registry, presentationRegistry: PresentationRegistry, kind: DefinedFieldKind<TConfig, TValue>) => void;
|
|
5
|
-
export declare const registerDefinedReportKind: <TConfig extends import('../../schema').ReportConfig>(registry: Registry, presentationRegistry: PresentationRegistry, kind: DefinedReportKind<TConfig, unknown>) => void;
|
|
6
|
-
export declare const registerDefinedExplanationKind: <TConfig extends import('../../schema').ExplanationConfig>(registry: Registry, presentationRegistry: PresentationRegistry, kind: DefinedExplanationKind<TConfig, unknown>) => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseExplanationConfig, BaseFieldConfig, BaseReportConfig } from '../../schema';
|
|
2
|
-
import { ExplanationPresenter, FieldPresenter, ReportPresenter } from './index';
|
|
3
|
-
export declare class PresentationRegistry {
|
|
4
|
-
private readonly fieldPresenters;
|
|
5
|
-
private readonly reportPresenters;
|
|
6
|
-
private readonly explanationPresenters;
|
|
7
|
-
registerField<TConfig extends BaseFieldConfig, TValue>(presenter: FieldPresenter<TConfig, TValue>): this;
|
|
8
|
-
registerReport<TConfig extends BaseReportConfig>(presenter: ReportPresenter<TConfig>): this;
|
|
9
|
-
registerExplanation<TConfig extends BaseExplanationConfig>(presenter: ExplanationPresenter<TConfig>): this;
|
|
10
|
-
getField(kind: string): FieldPresenter<BaseFieldConfig, unknown> | undefined;
|
|
11
|
-
getReport(kind: string): ReportPresenter<BaseReportConfig> | undefined;
|
|
12
|
-
getExplanation(kind: string): ExplanationPresenter<BaseExplanationConfig> | undefined;
|
|
13
|
-
clone(): PresentationRegistry;
|
|
14
|
-
}
|
|
15
|
-
export declare const createPresentationRegistry: () => PresentationRegistry;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ExplanationConfig, ExplanationFetchFactory, ExplanationStateSnapshot, NormalizedExplanationConfig } from '../../../schema';
|
|
2
|
-
import { ZodType } from 'zod';
|
|
3
|
-
import { PresentationContent, PresentationSummary } from './presentation';
|
|
4
|
-
export interface ExplanationDescriptor {
|
|
5
|
-
component: string;
|
|
6
|
-
props: Record<string, unknown>;
|
|
7
|
-
meta?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export interface ExplanationDescriptorContext {
|
|
10
|
-
explanationId: string;
|
|
11
|
-
state: ExplanationStateSnapshot;
|
|
12
|
-
}
|
|
13
|
-
export interface ExplanationRenderSpecContext<TConfig extends ExplanationConfig = ExplanationConfig, TResult = unknown> {
|
|
14
|
-
config: NormalizedExplanationConfig<TConfig>;
|
|
15
|
-
explanationId: string;
|
|
16
|
-
state: ExplanationStateSnapshot;
|
|
17
|
-
result: TResult;
|
|
18
|
-
}
|
|
19
|
-
export interface ExplanationRenderSpec<TConfig extends ExplanationConfig = ExplanationConfig, TResult = unknown> {
|
|
20
|
-
summary?: (context: ExplanationRenderSpecContext<TConfig, TResult>) => PresentationSummary | undefined;
|
|
21
|
-
content: (context: ExplanationRenderSpecContext<TConfig, TResult>) => PresentationContent;
|
|
22
|
-
}
|
|
23
|
-
export interface DeclarativeExplanationKind<TConfig extends ExplanationConfig = ExplanationConfig, TResult = unknown> {
|
|
24
|
-
kind: string;
|
|
25
|
-
schema: ZodType<TConfig>;
|
|
26
|
-
fetch: ExplanationFetchFactory<TConfig>;
|
|
27
|
-
render: ExplanationRenderSpec<TConfig, TResult>;
|
|
28
|
-
}
|
|
29
|
-
export interface ExplanationPresenter<TConfig extends ExplanationConfig = ExplanationConfig> {
|
|
30
|
-
kind: string;
|
|
31
|
-
describe(config: NormalizedExplanationConfig<TConfig>, context: ExplanationDescriptorContext): ExplanationDescriptor | null;
|
|
32
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FieldConfig, FieldStateSnapshot, FieldValidationFnContext, FieldValueAdapter, NormalizedFieldConfig } from '../../../schema';
|
|
2
|
-
import { ZodType } from 'zod';
|
|
3
|
-
export interface FieldDescriptor {
|
|
4
|
-
component: string;
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
meta?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
export type FieldWidget = "text" | "number" | "boolean" | "select" | "date" | "series";
|
|
9
|
-
export type FieldRenderHints = Record<string, unknown>;
|
|
10
|
-
export interface FieldRenderSpecContext<TConfig extends FieldConfig = FieldConfig, TValue = unknown> {
|
|
11
|
-
config: TConfig;
|
|
12
|
-
fieldId: string;
|
|
13
|
-
state: FieldStateSnapshot;
|
|
14
|
-
value: TValue;
|
|
15
|
-
}
|
|
16
|
-
export interface FieldRenderSpec<TConfig extends FieldConfig = FieldConfig, TValue = unknown> {
|
|
17
|
-
widget: FieldWidget;
|
|
18
|
-
hints?: FieldRenderHints | ((context: FieldRenderSpecContext<TConfig, TValue>) => FieldRenderHints);
|
|
19
|
-
}
|
|
20
|
-
export interface DeclarativeFieldKind<TConfig extends FieldConfig = FieldConfig, TValue = unknown> {
|
|
21
|
-
kind: string;
|
|
22
|
-
schema: ZodType<TConfig>;
|
|
23
|
-
value?: FieldValueAdapter<TConfig, TValue>;
|
|
24
|
-
validate?: (context: FieldValidationFnContext<TConfig, TValue>) => string[] | PromiseLike<string[]>;
|
|
25
|
-
render: FieldRenderSpec<TConfig, TValue>;
|
|
26
|
-
}
|
|
27
|
-
export interface FieldDescriptorContext {
|
|
28
|
-
fieldId: string;
|
|
29
|
-
state: FieldStateSnapshot;
|
|
30
|
-
}
|
|
31
|
-
export interface FieldPresenter<TConfig extends FieldConfig = FieldConfig, TValue = unknown> {
|
|
32
|
-
kind: string;
|
|
33
|
-
describe(config: NormalizedFieldConfig<TConfig>, context: FieldDescriptorContext & {
|
|
34
|
-
value: TValue;
|
|
35
|
-
}): FieldDescriptor;
|
|
36
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export type PresentationTone = "neutral" | "info" | "success" | "warning" | "danger";
|
|
2
|
-
export interface PresentationSummary {
|
|
3
|
-
title?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
value?: unknown;
|
|
6
|
-
badge?: string;
|
|
7
|
-
tone?: PresentationTone;
|
|
8
|
-
}
|
|
9
|
-
export interface PresentationTextNode {
|
|
10
|
-
type: "text";
|
|
11
|
-
label?: string;
|
|
12
|
-
value: unknown;
|
|
13
|
-
tone?: PresentationTone;
|
|
14
|
-
}
|
|
15
|
-
export interface PresentationMetricNode {
|
|
16
|
-
type: "metric";
|
|
17
|
-
label: string;
|
|
18
|
-
value: unknown;
|
|
19
|
-
hint?: string;
|
|
20
|
-
tone?: PresentationTone;
|
|
21
|
-
}
|
|
22
|
-
export interface PresentationKeyValueEntry {
|
|
23
|
-
label: string;
|
|
24
|
-
value: unknown;
|
|
25
|
-
}
|
|
26
|
-
export interface PresentationKeyValueNode {
|
|
27
|
-
type: "kv";
|
|
28
|
-
label?: string;
|
|
29
|
-
entries: PresentationKeyValueEntry[] | Record<string, unknown>;
|
|
30
|
-
}
|
|
31
|
-
export interface PresentationListNode {
|
|
32
|
-
type: "list";
|
|
33
|
-
label?: string;
|
|
34
|
-
items: unknown[];
|
|
35
|
-
ordered?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface PresentationTableNode {
|
|
38
|
-
type: "table";
|
|
39
|
-
label?: string;
|
|
40
|
-
columns: string[];
|
|
41
|
-
rows: Array<Record<string, unknown> | unknown[]>;
|
|
42
|
-
}
|
|
43
|
-
export interface PresentationBadgeNode {
|
|
44
|
-
type: "badge";
|
|
45
|
-
label: string;
|
|
46
|
-
tone?: PresentationTone;
|
|
47
|
-
}
|
|
48
|
-
export interface PresentationNoticeNode {
|
|
49
|
-
type: "notice";
|
|
50
|
-
title?: string;
|
|
51
|
-
body: unknown;
|
|
52
|
-
tone?: PresentationTone;
|
|
53
|
-
}
|
|
54
|
-
export interface PresentationJsonNode {
|
|
55
|
-
type: "json";
|
|
56
|
-
label?: string;
|
|
57
|
-
value: unknown;
|
|
58
|
-
}
|
|
59
|
-
export type PresentationNode = PresentationTextNode | PresentationMetricNode | PresentationKeyValueNode | PresentationListNode | PresentationTableNode | PresentationBadgeNode | PresentationNoticeNode | PresentationJsonNode;
|
|
60
|
-
export type PresentationContent = PresentationNode | PresentationNode[];
|
|
61
|
-
export declare const toPresentationNodes: (value: PresentationContent | undefined) => PresentationNode[];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { NormalizedReportConfig, ReportConfig, ReportResolveContext, ReportStateSnapshot } from '../../../schema';
|
|
2
|
-
import { SubmitResult } from '../../../runtime/types/transport';
|
|
3
|
-
import { ZodType } from 'zod';
|
|
4
|
-
import { PresentationContent, PresentationSummary } from './presentation';
|
|
5
|
-
export interface ReportDescriptor {
|
|
6
|
-
component: string;
|
|
7
|
-
props: Record<string, unknown>;
|
|
8
|
-
meta?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
export interface ReportDescriptorContext {
|
|
11
|
-
reportId: string;
|
|
12
|
-
state: ReportStateSnapshot;
|
|
13
|
-
payload: unknown;
|
|
14
|
-
result: SubmitResult | null;
|
|
15
|
-
}
|
|
16
|
-
export interface ReportRenderSpecContext<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
17
|
-
config: NormalizedReportConfig<TConfig>;
|
|
18
|
-
report: NormalizedReportConfig<TConfig>;
|
|
19
|
-
reportId: string;
|
|
20
|
-
state: ReportStateSnapshot;
|
|
21
|
-
payload: TPayload;
|
|
22
|
-
result: SubmitResult | null;
|
|
23
|
-
}
|
|
24
|
-
export interface ReportRenderSpec<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
25
|
-
summary?: (context: ReportRenderSpecContext<TConfig, TPayload>) => PresentationSummary | undefined;
|
|
26
|
-
content: (context: ReportRenderSpecContext<TConfig, TPayload>) => PresentationContent;
|
|
27
|
-
}
|
|
28
|
-
export interface DeclarativeReportKind<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
29
|
-
kind: string;
|
|
30
|
-
schema: ZodType<TConfig>;
|
|
31
|
-
payloadSchema?: ZodType<unknown>;
|
|
32
|
-
payloadValidationPolicy?: "report-error" | "fail-submit";
|
|
33
|
-
partialUpdatePolicy?: "trust" | "validate" | "defer";
|
|
34
|
-
clonePayload?: (payload: TPayload, config: TConfig) => TPayload;
|
|
35
|
-
resolve: (context: ReportResolveContext<TConfig>) => unknown;
|
|
36
|
-
render: ReportRenderSpec<TConfig, TPayload>;
|
|
37
|
-
}
|
|
38
|
-
export interface ReportPresenter<TConfig extends ReportConfig = ReportConfig> {
|
|
39
|
-
kind: string;
|
|
40
|
-
describe(config: NormalizedReportConfig<TConfig>, context: ReportDescriptorContext): ReportDescriptor | null;
|
|
41
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
-
import { ExplanationDescriptor } from '../../presentation';
|
|
3
|
-
import { ExplanationController } from '../../runtime';
|
|
4
|
-
import { PrimitiveText } from './constants';
|
|
5
|
-
import { PrimitiveExplanationRenderContext } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Base class for explanation renderer elements.
|
|
8
|
-
*
|
|
9
|
-
* Explanation plugin authors should extend this class and implement `render()`
|
|
10
|
-
* to display the explanation result. The `explanation-panel` frame component
|
|
11
|
-
* drives the fetch lifecycle and passes `controller`, `descriptor`, `context`,
|
|
12
|
-
* and `text` as properties — no second subscription is needed here.
|
|
13
|
-
*/
|
|
14
|
-
export declare abstract class PrimitiveExplanationElement extends LitElement {
|
|
15
|
-
static styles: CSSResultGroup;
|
|
16
|
-
accessor controller: ExplanationController | undefined;
|
|
17
|
-
accessor descriptor: ExplanationDescriptor | null;
|
|
18
|
-
accessor context: PrimitiveExplanationRenderContext | undefined;
|
|
19
|
-
accessor text: PrimitiveText;
|
|
20
|
-
protected get props(): Record<string, unknown>;
|
|
21
|
-
protected get explanationContext(): PrimitiveExplanationRenderContext | undefined;
|
|
22
|
-
}
|