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
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PrimitiveExplanationElement } from '../base-explanation-element';
|
|
2
|
-
export declare class PrimitiveDeclarativeExplanationElement extends PrimitiveExplanationElement {
|
|
3
|
-
static styles: import('lit').CSSResultGroup[];
|
|
4
|
-
render(): import('lit').TemplateResult<1>;
|
|
5
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { ExplanationController, SubmitResult } from '../../../runtime';
|
|
3
|
-
import { ExplanationDescriptor } from '../../../presentation';
|
|
4
|
-
import { primitiveTagNames, PrimitiveText } from '../constants';
|
|
5
|
-
import { PrimitiveRegistry } from '../types';
|
|
6
|
-
export declare class PrimitiveExplanationPanelElement extends LitElement {
|
|
7
|
-
#private;
|
|
8
|
-
static styles: import('lit').CSSResult;
|
|
9
|
-
accessor controller: ExplanationController | undefined;
|
|
10
|
-
accessor registry: PrimitiveRegistry | undefined;
|
|
11
|
-
accessor lastResult: SubmitResult | null;
|
|
12
|
-
accessor text: PrimitiveText;
|
|
13
|
-
accessor descriptor: ExplanationDescriptor | null;
|
|
14
|
-
private accessor resolvedDescriptor;
|
|
15
|
-
private accessor explanationState;
|
|
16
|
-
protected willUpdate(changedProperties: Map<string, unknown>): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
|
-
render(): import('lit').TemplateResult<1>;
|
|
19
|
-
}
|
|
20
|
-
declare global {
|
|
21
|
-
interface HTMLElementTagNameMap {
|
|
22
|
-
[primitiveTagNames.explanationPanel]: PrimitiveExplanationPanelElement;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldDescriptor, PresentationRegistry, ReportDescriptor } from '../../../presentation';
|
|
2
|
-
import { ExplanationController, FormController, ReportController } from '../../../runtime';
|
|
3
|
-
export type PresentedField = {
|
|
4
|
-
controller: NonNullable<ReturnType<FormController["getField"]>>;
|
|
5
|
-
descriptor: FieldDescriptor;
|
|
6
|
-
};
|
|
7
|
-
export type PresentedReport = {
|
|
8
|
-
controller: ReportController;
|
|
9
|
-
descriptor: ReportDescriptor | null;
|
|
10
|
-
};
|
|
11
|
-
export type PresentedExplanation = {
|
|
12
|
-
controller: ExplanationController;
|
|
13
|
-
descriptor: import('../../../presentation').ExplanationDescriptor | null;
|
|
14
|
-
};
|
|
15
|
-
export declare const presentVisibleFields: (form: FormController, fieldIds: readonly string[], presentationRegistry: PresentationRegistry | undefined) => PresentedField[];
|
|
16
|
-
export declare const presentVisibleReports: (form: FormController, reportIds: readonly string[], reportPane: "auto" | "always" | "hidden", presentationRegistry: PresentationRegistry | undefined) => PresentedReport[];
|
|
17
|
-
export declare const presentExplanations: (form: FormController, explanationIds: readonly string[], presentationRegistry: PresentationRegistry | undefined) => PresentedExplanation[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { nothing, TemplateResult } from 'lit';
|
|
2
|
-
import { PresentationNode, PresentationSummary } from '../../../runtime';
|
|
3
|
-
export declare const renderPresentationSummary: (summary: PresentationSummary | null | undefined, fallbackTitle?: string) => TemplateResult | typeof nothing;
|
|
4
|
-
export declare const renderPresentationNodes: (nodes: PresentationNode[]) => TemplateResult | typeof nothing;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { PrimitiveExplanationElement } from './base-explanation-element';
|
|
2
|
-
export { PrimitiveFieldElement } from './base-field-element';
|
|
3
|
-
export { PrimitiveAsyncReportElement } from './base-async-report-element';
|
|
4
|
-
export { PrimitiveReportElement } from './base-report-element';
|
|
5
|
-
export { mountForm, unmountForm } from './mount-form';
|
|
6
|
-
export { createBuiltinPrimitiveRegistry, createPrimitiveRegistry } from './registry';
|
|
7
|
-
export { primitiveDefaultLabels, primitiveStaticText, resolvePrimitiveText } from './constants';
|
|
8
|
-
export type { PrimitiveContainerStrategy, ExplanationRequest, ExplanationTransport, MountedForm, MountFormOptions, PrimitiveExplanationRenderContext, PrimitiveExplanationRendererElement, PrimitiveLayout, PrimitiveRegistry, PrimitiveText, PrimitiveTextOverrides, PrimitiveFieldRenderContext, PrimitiveReportRenderContext, PrimitiveFieldRendererElement, PrimitiveReportRendererElement, PrimitiveSubmitStartDetail, PrimitiveSubmitSuccessDetail, PrimitiveSubmitErrorDetail, PrimitiveReportRequest, PrimitiveReportTransport, } from './types';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FormController } from '../../runtime';
|
|
2
|
-
import { MountFormOptions, MountedForm } from './types';
|
|
3
|
-
export declare const mountForm: (container: HTMLElement, form: FormController, options?: MountFormOptions) => MountedForm;
|
|
4
|
-
export declare const unmountForm: (mounted: MountedForm) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ExplanationDescriptor, FieldDescriptor, PresentationRegistry, ReportDescriptor } from '../../presentation';
|
|
2
|
-
import { ExplanationController, FieldController, FormController, ReportController } from '../../runtime';
|
|
3
|
-
export declare const fallbackFieldDescriptor: (field: FieldController) => FieldDescriptor;
|
|
4
|
-
export declare const fallbackReportDescriptor: (report: ReportController) => ReportDescriptor;
|
|
5
|
-
export declare const fallbackExplanationDescriptor: (explanation: ExplanationController) => ExplanationDescriptor;
|
|
6
|
-
export declare const resolveFieldDescriptor: (field: FieldController, presentationRegistry: PresentationRegistry | undefined) => FieldDescriptor;
|
|
7
|
-
export declare const resolveReportDescriptor: (report: ReportController, form: FormController, presentationRegistry: PresentationRegistry | undefined) => ReportDescriptor | null;
|
|
8
|
-
export declare const resolveExplanationDescriptor: (explanation: ExplanationController, presentationRegistry: PresentationRegistry | undefined) => ExplanationDescriptor | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type BooleanFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "boolean";
|
|
4
|
-
trueLabel?: string;
|
|
5
|
-
falseLabel?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const booleanFieldDefinition: FieldDefinition<BooleanFieldConfig, boolean>;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type CategoryOption = string | {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
type CategoryFieldConfig = BaseFieldConfig & {
|
|
7
|
-
kind: "category";
|
|
8
|
-
options: CategoryOption[];
|
|
9
|
-
};
|
|
10
|
-
export declare const categoryFieldDefinition: FieldDefinition<CategoryFieldConfig, string | null>;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type DateFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "date";
|
|
4
|
-
min?: string;
|
|
5
|
-
max?: string;
|
|
6
|
-
step?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const dateFieldDefinition: FieldDefinition<DateFieldConfig, Date | null>;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type LongTextFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "long-text";
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
minLength?: number;
|
|
6
|
-
maxLength?: number;
|
|
7
|
-
rows?: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const longTextFieldDefinition: FieldDefinition<LongTextFieldConfig, string>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type NumberFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "number";
|
|
4
|
-
min?: number;
|
|
5
|
-
max?: number;
|
|
6
|
-
step?: number;
|
|
7
|
-
unit?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const numberFieldDefinition: FieldDefinition<NumberFieldConfig, number | string | null>;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type RatingFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "rating";
|
|
4
|
-
min?: number;
|
|
5
|
-
max: number;
|
|
6
|
-
step?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const ratingFieldDefinition: FieldDefinition<RatingFieldConfig, number | null>;
|
|
9
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type SeriesPoint = {
|
|
3
|
-
field1: unknown;
|
|
4
|
-
field2: unknown;
|
|
5
|
-
};
|
|
6
|
-
type SeriesSubFieldConfig = {
|
|
7
|
-
kind: string;
|
|
8
|
-
label: string;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
type SeriesFieldConfig = BaseFieldConfig & {
|
|
13
|
-
kind: "series";
|
|
14
|
-
field1: SeriesSubFieldConfig;
|
|
15
|
-
field2: SeriesSubFieldConfig;
|
|
16
|
-
minPoints?: number;
|
|
17
|
-
maxPoints?: number;
|
|
18
|
-
};
|
|
19
|
-
export declare const seriesFieldDefinition: FieldDefinition<SeriesFieldConfig, SeriesPoint[]>;
|
|
20
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseFieldConfig, FieldDefinition } from '../../types';
|
|
2
|
-
type TextFieldConfig = BaseFieldConfig & {
|
|
3
|
-
kind: "text";
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
minLength?: number;
|
|
6
|
-
maxLength?: number;
|
|
7
|
-
pattern?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const textFieldDefinition: FieldDefinition<TextFieldConfig, string>;
|
|
10
|
-
export {};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { booleanFieldDefinition } from './fields/boolean';
|
|
2
|
-
import { categoryFieldDefinition } from './fields/category';
|
|
3
|
-
import { mappedCategoryFieldDefinition } from './fields/mapped-category';
|
|
4
|
-
import { dateFieldDefinition } from './fields/date';
|
|
5
|
-
import { longTextFieldDefinition } from './fields/long-text';
|
|
6
|
-
import { multiChoiceFieldDefinition } from './fields/multi-choice';
|
|
7
|
-
import { numberFieldDefinition } from './fields/number';
|
|
8
|
-
import { ratingFieldDefinition } from './fields/rating';
|
|
9
|
-
import { seriesFieldDefinition } from './fields/series';
|
|
10
|
-
import { singleChoiceFieldDefinition } from './fields/single-choice';
|
|
11
|
-
import { textFieldDefinition } from './fields/text';
|
|
12
|
-
import { classifierReportDefinition } from './reports/classifier';
|
|
13
|
-
import { regressorReportDefinition } from './reports/regressor';
|
|
14
|
-
export { booleanFieldDefinition, categoryFieldDefinition, classifierReportDefinition, dateFieldDefinition, mappedCategoryFieldDefinition, longTextFieldDefinition, multiChoiceFieldDefinition, numberFieldDefinition, ratingFieldDefinition, regressorReportDefinition, seriesFieldDefinition, singleChoiceFieldDefinition, textFieldDefinition, };
|
|
15
|
-
export declare const builtinFieldDefinitions: readonly [import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
16
|
-
kind: "text";
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
minLength?: number;
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
pattern?: string;
|
|
21
|
-
}, string>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
22
|
-
kind: "number";
|
|
23
|
-
min?: number;
|
|
24
|
-
max?: number;
|
|
25
|
-
step?: number;
|
|
26
|
-
unit?: string;
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
}, string | number | null>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
29
|
-
kind: "boolean";
|
|
30
|
-
trueLabel?: string;
|
|
31
|
-
falseLabel?: string;
|
|
32
|
-
}, boolean>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
33
|
-
kind: "category";
|
|
34
|
-
options: (string | {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
})[];
|
|
38
|
-
}, string | null>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
39
|
-
kind: "mapped-category";
|
|
40
|
-
options: {
|
|
41
|
-
label: string;
|
|
42
|
-
value: string;
|
|
43
|
-
mapping: Record<string, unknown>;
|
|
44
|
-
}[];
|
|
45
|
-
}, string | null>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
46
|
-
kind: "date";
|
|
47
|
-
min?: string;
|
|
48
|
-
max?: string;
|
|
49
|
-
step?: number;
|
|
50
|
-
}, Date | null>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
51
|
-
kind: "series";
|
|
52
|
-
field1: {
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
kind: string;
|
|
55
|
-
label: string;
|
|
56
|
-
required?: boolean;
|
|
57
|
-
};
|
|
58
|
-
field2: {
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
kind: string;
|
|
61
|
-
label: string;
|
|
62
|
-
required?: boolean;
|
|
63
|
-
};
|
|
64
|
-
minPoints?: number;
|
|
65
|
-
maxPoints?: number;
|
|
66
|
-
}, {
|
|
67
|
-
field1: unknown;
|
|
68
|
-
field2: unknown;
|
|
69
|
-
}[]>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
70
|
-
kind: "long-text";
|
|
71
|
-
placeholder?: string;
|
|
72
|
-
minLength?: number;
|
|
73
|
-
maxLength?: number;
|
|
74
|
-
rows?: number;
|
|
75
|
-
}, string>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
76
|
-
kind: "single-choice";
|
|
77
|
-
options: (string | {
|
|
78
|
-
label: string;
|
|
79
|
-
value: string;
|
|
80
|
-
})[];
|
|
81
|
-
layout?: "horizontal" | "vertical";
|
|
82
|
-
}, string | null>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
83
|
-
kind: "multi-choice";
|
|
84
|
-
options: (string | {
|
|
85
|
-
label: string;
|
|
86
|
-
value: string;
|
|
87
|
-
})[];
|
|
88
|
-
layout?: "horizontal" | "vertical";
|
|
89
|
-
}, string[]>, import('..').FieldDefinition<import('..').BaseFieldConfig & {
|
|
90
|
-
kind: "rating";
|
|
91
|
-
min?: number;
|
|
92
|
-
max: number;
|
|
93
|
-
step?: number;
|
|
94
|
-
}, number | null>];
|
|
95
|
-
export declare const builtinReportDefinitions: readonly [import('..').ReportDefinition<import('..').BaseReportConfig & {
|
|
96
|
-
kind: "classifier";
|
|
97
|
-
labels?: string[];
|
|
98
|
-
showClassProbabilities?: boolean;
|
|
99
|
-
}>, import('..').ReportDefinition<import('..').BaseReportConfig & {
|
|
100
|
-
kind: "regressor";
|
|
101
|
-
unit?: string;
|
|
102
|
-
precision?: number;
|
|
103
|
-
}>];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseReportConfig, ReportDefinition } from '../../types';
|
|
2
|
-
type ClassifierReportConfig = BaseReportConfig & {
|
|
3
|
-
kind: "classifier";
|
|
4
|
-
labels?: string[];
|
|
5
|
-
showClassProbabilities?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const classifierReportDefinition: ReportDefinition<ClassifierReportConfig>;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseReportConfig, ReportDefinition } from '../../types';
|
|
2
|
-
type RegressorReportConfig = BaseReportConfig & {
|
|
3
|
-
kind: "regressor";
|
|
4
|
-
unit?: string;
|
|
5
|
-
precision?: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const regressorReportDefinition: ReportDefinition<RegressorReportConfig>;
|
|
8
|
-
export {};
|
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
import { EngineStore } from '../state';
|
|
2
|
-
import { ExplanationController, ExplanationDefinition, FormHooks, NormalizedExplanationConfig } from '../types';
|
|
3
|
-
type CreateExplanationControllerOptions = {
|
|
4
|
-
config: NormalizedExplanationConfig;
|
|
5
|
-
definition: ExplanationDefinition;
|
|
6
|
-
store: EngineStore;
|
|
7
|
-
hooks: FormHooks | undefined;
|
|
8
|
-
};
|
|
9
|
-
export type InternalExplanationController = ExplanationController & {
|
|
10
|
-
reset(): void;
|
|
11
|
-
};
|
|
12
|
-
export declare const createExplanationController: ({ config, definition, store, hooks, }: CreateExplanationControllerOptions) => InternalExplanationController;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { booleanFieldDefinition, categoryFieldDefinition, classifierReportDefinition, dateFieldDefinition, mappedCategoryFieldDefinition, longTextFieldDefinition, multiChoiceFieldDefinition, numberFieldDefinition, ratingFieldDefinition, regressorReportDefinition, seriesFieldDefinition, singleChoiceFieldDefinition, textFieldDefinition, } from './builtins';
|
|
2
|
-
export { createExplanationController } from './explanations';
|
|
3
|
-
export { executeExplanations, executeFormPipeline } from './submission';
|
|
4
|
-
export { EngineError, ReportPayloadError, RegistryError, SubmissionAbortedError, SubmitError, TransportError, transportErrorCodes, ValidationError, } from './errors';
|
|
5
|
-
export type { TransportErrorCode } from './errors';
|
|
6
|
-
export { createForm, createForm as createFormRuntime } from './form';
|
|
7
|
-
export { createRegistry, defineExplanationDefinition, defineFieldDefinition, defineReportDefinition, } from './registry';
|
|
8
|
-
export { defineExplanationKind, defineFieldKind, defineReportKind } from '../../presentation';
|
|
9
|
-
export { defaultEquality, shallowArrayEquality, shallowEquality, shallowObjectEquality, } from './equality';
|
|
10
|
-
export { identity, isPromiseLike } from './utils';
|
|
11
|
-
export type { AfterExplanationContext, AllConditions, AfterSubmitContext, AfterValidateContext, AnyConditions, BaseExplanationConfig, BaseFieldConfig, BaseReportConfig, BeforeSubmitContext, BeforeValidateContext, ExplanationFetchContext, ExplanationFetchFactory, CreateFormConfig, DeclarativeFieldCondition, ExplanationConfig, ExplanationController, ExplanationDefinition, ExplanationErrorContext, ExplanationExecutionContext, ExplanationExecutionResult, ExplanationFetchRequest, ExplanationFetchTransport, ExplanationStateSnapshot, ExplanationStatus, FieldValidationFnContext, FieldValueAdapter, FieldConfig, FieldComparisonCondition, FieldCondition, FieldConditionContext, FieldController, FieldDefinition, FieldStateSnapshot, FieldStatus, FieldValueCondition, FieldValidationContext, FieldValidationResult, FormController, FormHooks, FormSchema, FormState, FormStatusCondition, FormStatus, FormValidator, FormValidationContext, FormValidationIssue, FormValidationResult, InactiveFieldPolicy, MaybePromise, NormalizedExplanationConfig, NormalizedFieldConfig, NormalizedReportConfig, Registry, ReportConfig, ReportController, ReportDefinition, ReportResolveContext, ReportStateSnapshot, ReportStatus, PipelineArtifactAdapter, PipelineArtifactContext, PipelineResult, ExecuteFormPipelineOptions, SelectorSubscriptionOptions, SubmitCountCondition, SubmitErrorContext, SubmitOptions, SubmitRequest, SubmitRequestTransportContext, SubmitResult, Transport, TransportAuthKind, TransportBackpressureMode, TransportCapabilities, TransportConsistency, TransportDeliveryMode, TransportPolicyContext, TransportSession, TransportSessionEvent, TransportSessionMessage, TransportStreamEvent, TransportResponse, NotCondition, RuntimeBehavior, RuntimeBehaviorContext, RuntimeBehaviorSubmissionRecords, RuntimeBehaviorValueChangeEvent, } from './types';
|
|
12
|
-
export type { DeclarativeExplanationKind, DeclarativeFieldKind, DeclarativeReportKind, ExplanationDescriptor, ExplanationDescriptorContext, ExplanationRenderSpec, ExplanationRenderSpecContext, FieldDescriptor, FieldRenderHints, FieldRenderSpec, FieldRenderSpecContext, FieldWidget, PresentationContent, PresentationNode, PresentationSummary, PresentationTone, ReportDescriptor, ReportRenderSpec, ReportRenderSpecContext, } from '../../presentation';
|
|
13
|
-
export type FieldHandle = import('./types').FieldController;
|
|
14
|
-
export type ReportHandle = import('./types').ReportController;
|
|
15
|
-
export type ExplanationHandle = import('./types').ExplanationController;
|
|
16
|
-
export type FormRuntime = import('./types').FormController;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ExplanationDefinition, FieldDefinition, Registry, ReportDefinition } from '../types';
|
|
2
|
-
export declare const createRegistry: () => Registry;
|
|
3
|
-
export declare const defineFieldDefinition: <TConfig extends import('../../../schema').FieldConfig, TValue>(definition: FieldDefinition<TConfig, TValue>) => FieldDefinition<TConfig, TValue>;
|
|
4
|
-
export declare const defineReportDefinition: <TConfig extends import('../../../schema').ReportConfig>(definition: ReportDefinition<TConfig>) => ReportDefinition<TConfig>;
|
|
5
|
-
export declare const defineExplanationDefinition: <TConfig extends import('../../../schema').ExplanationConfig>(definition: ExplanationDefinition<TConfig>) => ExplanationDefinition<TConfig>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './controller';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FormSchema, NormalizedExplanationConfig, NormalizedFieldConfig, NormalizedReportConfig, Registry } from '../types';
|
|
2
|
-
export interface NormalizedFormSchema {
|
|
3
|
-
fields: NormalizedFieldConfig[];
|
|
4
|
-
reports: NormalizedReportConfig[];
|
|
5
|
-
explanations: NormalizedExplanationConfig[];
|
|
6
|
-
}
|
|
7
|
-
export declare const normalizeSchema: (schema: FormSchema, registry: Registry) => NormalizedFormSchema;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CreateFormSubmitterOptions, FormSubmitter } from './types';
|
|
2
|
-
export declare const createFormSubmitter: ({ store, transport, hooks, hookFailurePolicy, normalizedSchema, fields, reports, validate, getSubmitCount, markReportsLoading, resetReports, resetExplanations, syncDerivedFieldState, shouldResetInactiveFields, resolveInactiveFieldPolicy, inactiveFieldPolicy, onRemoteFieldUpdate, beforeSubmitRecords, }: CreateFormSubmitterOptions) => FormSubmitter;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ExplanationDefinition as SchemaExplanationDefinition, ExplanationFetchRequest, ExplanationStateSnapshot, NormalizedExplanationConfig as SchemaNormalizedExplanationConfig } from '../../../schema';
|
|
2
|
-
import { ExplanationDescriptor } from '../../../presentation';
|
|
3
|
-
export type { BaseExplanationConfig, ExplanationConfig, ExplanationFetchContext, ExplanationFetchFactory, ExplanationFetchRequest, ExplanationFetchTransport, ExplanationStateSnapshot, ExplanationStatus, } from '../../../schema';
|
|
4
|
-
export interface ExplanationHandle {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly kind: string;
|
|
7
|
-
readonly config: SchemaNormalizedExplanationConfig;
|
|
8
|
-
readonly state: ExplanationStateSnapshot;
|
|
9
|
-
fetch(request: ExplanationFetchRequest): Promise<void>;
|
|
10
|
-
abort(): void;
|
|
11
|
-
reset(): void;
|
|
12
|
-
subscribe(listener: (state: ExplanationStateSnapshot) => void): () => void;
|
|
13
|
-
}
|
|
14
|
-
export type ExplanationController = ExplanationHandle;
|
|
15
|
-
export type ExplanationDefinition<TConfig extends import('../../../schema').ExplanationConfig = import('../../../schema').ExplanationConfig> = SchemaExplanationDefinition<TConfig> & {
|
|
16
|
-
describe?: (config: SchemaNormalizedExplanationConfig<TConfig>, context: {
|
|
17
|
-
explanationId: string;
|
|
18
|
-
state: ExplanationStateSnapshot;
|
|
19
|
-
}) => ExplanationDescriptor | null;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
export type NormalizedExplanationConfig<TConfig extends import('../../../schema').ExplanationConfig = import('../../../schema').ExplanationConfig> = SchemaNormalizedExplanationConfig<TConfig>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type MaybePromise<T> = T | PromiseLike<T>;
|
|
2
|
-
export * from './behavior';
|
|
3
|
-
export * from './explanation';
|
|
4
|
-
export * from './field';
|
|
5
|
-
export * from './form';
|
|
6
|
-
export * from './pipeline';
|
|
7
|
-
export * from './report';
|
|
8
|
-
export * from './transport';
|
|
9
|
-
export type { DeclarativeExplanationKind, DeclarativeFieldKind, DeclarativeReportKind, ExplanationDescriptor, ExplanationDescriptorContext, ExplanationPresenter, ExplanationRenderSpec, ExplanationRenderSpecContext, FieldDescriptor, FieldPresenter, FieldRenderHints, FieldRenderSpec, FieldRenderSpecContext, FieldWidget, PresentationContent, PresentationNode, PresentationSummary, PresentationTone, ReportDescriptor, ReportPresenter, ReportRenderSpec, ReportRenderSpecContext, } from '../../../presentation';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ExplanationDefinition, FieldDefinition, Registry as SchemaRegistry, ReportDefinition } from '../../../schema';
|
|
2
|
-
export interface Registry extends Omit<SchemaRegistry, "registerExplanation" | "registerField" | "registerReport"> {
|
|
3
|
-
registerField(definition: FieldDefinition): Registry;
|
|
4
|
-
registerReport(definition: ReportDefinition): Registry;
|
|
5
|
-
registerExplanation(definition: ExplanationDefinition): Registry;
|
|
6
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NormalizedReportConfig as SchemaNormalizedReportConfig, ReportDefinition as SchemaReportDefinition, ReportStateSnapshot } from '../../../schema';
|
|
2
|
-
import { ReportDescriptor } from '../../../presentation';
|
|
3
|
-
import { SubmitResult } from './transport';
|
|
4
|
-
export type { BaseReportConfig, PartialReportUpdatePolicy, ReportConfig, ReportPayloadContext, ReportPayloadValidationPolicy, ReportResolveContext, ReportStateSnapshot, ReportStatus, } from '../../../schema';
|
|
5
|
-
export interface ReportHandle {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly kind: string;
|
|
8
|
-
readonly config: SchemaNormalizedReportConfig;
|
|
9
|
-
readonly state: ReportStateSnapshot;
|
|
10
|
-
subscribe(listener: (state: ReportStateSnapshot) => void): () => void;
|
|
11
|
-
}
|
|
12
|
-
export type ReportController = ReportHandle;
|
|
13
|
-
export type ReportDefinition<TConfig extends import('../../../schema').ReportConfig = import('../../../schema').ReportConfig> = SchemaReportDefinition<TConfig> & {
|
|
14
|
-
describe?: (config: SchemaNormalizedReportConfig<TConfig>, context: {
|
|
15
|
-
reportId: string;
|
|
16
|
-
state: ReportStateSnapshot;
|
|
17
|
-
payload: unknown;
|
|
18
|
-
result: SubmitResult | null;
|
|
19
|
-
}) => ReportDescriptor | null;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
export type NormalizedReportConfig<TConfig extends import('../../../schema').ReportConfig = import('../../../schema').ReportConfig> = SchemaNormalizedReportConfig<TConfig>;
|
|
23
|
-
export type RuntimeReportDefinition = ReportDefinition;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MLFormError } from '../../shared';
|
|
2
|
-
import { ExplanationConfig, ExplanationDefinition, FieldConfig, FieldDefinition, Registry, ReportConfig, ReportDefinition } from './index';
|
|
3
|
-
export declare class RegistryError extends MLFormError {
|
|
4
|
-
constructor(message: string);
|
|
5
|
-
}
|
|
6
|
-
export declare const createRegistry: () => Registry;
|
|
7
|
-
export declare const defineFieldDefinition: <TConfig extends FieldConfig, TValue>(definition: FieldDefinition<TConfig, TValue>) => FieldDefinition<TConfig, TValue>;
|
|
8
|
-
export declare const defineReportDefinition: <TConfig extends ReportConfig>(definition: ReportDefinition<TConfig>) => ReportDefinition<TConfig>;
|
|
9
|
-
export declare const defineExplanationDefinition: <TConfig extends ExplanationConfig>(definition: ExplanationDefinition<TConfig>) => ExplanationDefinition<TConfig>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ZodType } from 'zod';
|
|
2
|
-
export type ExplanationStatus = "idle" | "loading" | "done" | "error";
|
|
3
|
-
export interface BaseExplanationConfig {
|
|
4
|
-
id?: string;
|
|
5
|
-
kind: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export type ExplanationConfig = BaseExplanationConfig;
|
|
11
|
-
export type NormalizedExplanationConfig<TConfig extends ExplanationConfig = ExplanationConfig> = TConfig & {
|
|
12
|
-
id: string;
|
|
13
|
-
};
|
|
14
|
-
export interface ExplanationStateSnapshot {
|
|
15
|
-
status: ExplanationStatus;
|
|
16
|
-
result: unknown;
|
|
17
|
-
error: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface ExplanationFetchContext<TConfig extends ExplanationConfig = ExplanationConfig> {
|
|
20
|
-
config: NormalizedExplanationConfig<TConfig>;
|
|
21
|
-
explanationId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ExplanationFetchRequest {
|
|
24
|
-
explanationId: string;
|
|
25
|
-
backend?: string;
|
|
26
|
-
values: Record<string, unknown>;
|
|
27
|
-
fieldValues: Record<string, unknown>;
|
|
28
|
-
serializedValues: Record<string, unknown>;
|
|
29
|
-
serializedFieldValues: Record<string, unknown>;
|
|
30
|
-
reports: Record<string, unknown>;
|
|
31
|
-
meta: Record<string, unknown>;
|
|
32
|
-
raw: unknown;
|
|
33
|
-
signal?: AbortSignal;
|
|
34
|
-
}
|
|
35
|
-
export interface ExplanationFetchTransport {
|
|
36
|
-
submit: (request: ExplanationFetchRequest) => Promise<unknown>;
|
|
37
|
-
}
|
|
38
|
-
export type ExplanationFetchFactory<TConfig extends ExplanationConfig = ExplanationConfig> = (context: ExplanationFetchContext<TConfig>) => ExplanationFetchTransport;
|
|
39
|
-
export interface ExplanationDefinition<TConfig extends ExplanationConfig = ExplanationConfig> {
|
|
40
|
-
kind: string;
|
|
41
|
-
schema: ZodType<TConfig>;
|
|
42
|
-
transport: (config: TConfig) => ExplanationFetchTransport;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const slugify: (value: string) => string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|