mlform 0.1.8 → 0.1.9
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 +7 -5
- package/dist/{builtins-DegwhFGA.js → builtins-ml-pjab8_gu.js} +1544 -1173
- package/dist/{design-system-Dxx1Sh7r.js → design-system-CIU_vH6O.js} +569 -388
- package/dist/{kit-CuRF6dhL.js → kit-QY6zff-h.js} +332 -291
- package/dist/mlform/behaviors.mjs +1 -1
- package/dist/mlform/builtins-ml.mjs +1 -2
- package/dist/mlform/design-system.mjs +2 -2
- package/dist/mlform/kit.mjs +2 -2
- package/dist/mlform/presentation.mjs +1 -1
- package/dist/mlform/primitives.mjs +2 -2
- package/dist/mlform/runtime.mjs +4 -5
- package/dist/mlform/schema.mjs +1 -1
- package/dist/mlform/transport.mjs +1 -1
- package/dist/mlform.mjs +8 -8
- package/dist/{primitives-Duag8Lj0.js → primitives-Di95y_ur.js} +589 -552
- package/dist/{runtime-DMjDVo0H.js → runtime-C5iTM3uu.js} +472 -457
- package/dist/{transport-CtVX8ZUT.js → transport-B6ePTLFK.js} +48 -50
- package/dist/types/{src/behaviors → behaviors}/index.d.ts +2 -2
- package/dist/types/builtins-ml/definitions/fields/boolean.d.ts +9 -0
- package/dist/types/builtins-ml/definitions/fields/category.d.ts +12 -0
- package/dist/types/builtins-ml/definitions/fields/date.d.ts +10 -0
- package/dist/types/builtins-ml/definitions/fields/long-text.d.ts +11 -0
- package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/mapped-category.d.ts +3 -2
- package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/multi-choice.d.ts +3 -2
- package/dist/types/builtins-ml/definitions/fields/number.d.ts +12 -0
- package/dist/types/builtins-ml/definitions/fields/rating.d.ts +10 -0
- package/dist/types/builtins-ml/definitions/fields/series-helpers.d.ts +52 -0
- package/dist/types/builtins-ml/definitions/fields/series.d.ts +3 -0
- package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/single-choice.d.ts +3 -2
- package/dist/types/builtins-ml/definitions/fields/text.d.ts +11 -0
- package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/index.d.ts +12 -31
- package/dist/types/builtins-ml/definitions/reports/classifier.d.ts +9 -0
- package/dist/types/builtins-ml/definitions/reports/regressor.d.ts +9 -0
- package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/shared.d.ts +23 -1
- package/dist/types/{src/builtins-ml → builtins-ml}/index.d.ts +2 -2
- package/dist/types/design-system/recipes/index.d.ts +3 -0
- package/dist/types/{src/design-system → design-system}/registry/builtins.d.ts +0 -3
- package/dist/types/{src/design-system → design-system}/registry/index.d.ts +3 -1
- package/dist/types/design-system/runtime/controller-helpers.d.ts +12 -0
- package/dist/types/design-system/themes/airbnb.d.ts +2 -0
- package/dist/types/design-system/themes/clickhouse.d.ts +2 -0
- package/dist/types/design-system/themes/index.d.ts +4 -0
- package/dist/types/{src/index.d.ts → index.d.ts} +13 -13
- package/dist/types/{src/kit → kit}/accordion-root.d.ts +2 -2
- package/dist/types/{src/kit → kit}/constants.d.ts +1 -1
- package/dist/types/{src/kit → kit}/defaults.d.ts +4 -4
- package/dist/types/kit/error-navigation.d.ts +2 -0
- package/dist/types/{src/kit → kit}/index.d.ts +1 -1
- package/dist/types/{src/kit → kit}/layout-helpers.d.ts +1 -1
- package/dist/types/{src/kit → kit}/layout-node-render.d.ts +2 -2
- package/dist/types/{src/kit → kit}/layout.d.ts +1 -1
- package/dist/types/{src/kit → kit}/mount-types.d.ts +4 -4
- package/dist/types/{src/kit → kit}/tabs-root.d.ts +2 -2
- package/dist/types/{src/kit → kit}/types.d.ts +1 -1
- package/dist/types/{src/kit → kit}/view-navigation.d.ts +1 -1
- package/dist/types/{src/kit → kit}/view-snapshot-cache.d.ts +2 -2
- package/dist/types/{src/kit → kit}/view-snapshot.d.ts +2 -2
- package/dist/types/{src/kit → kit}/view-types.d.ts +4 -4
- package/dist/types/{src/kit → kit}/view.d.ts +2 -2
- package/dist/types/{src/kit → kit}/wizard-root.d.ts +2 -2
- package/dist/types/{src/packs → packs}/shared.d.ts +3 -4
- package/dist/types/{src/presentation → presentation}/define-explanation-kind.d.ts +1 -1
- package/dist/types/{src/presentation → presentation}/define-field-kind.d.ts +1 -1
- package/dist/types/{src/presentation → presentation}/define-report-kind.d.ts +1 -1
- package/dist/types/presentation/register-kind.d.ts +6 -0
- package/dist/types/{src/presentation → presentation}/registry.d.ts +1 -1
- package/dist/types/{src/presentation → presentation}/types/explanation.d.ts +1 -1
- package/dist/types/{src/presentation → presentation}/types/field.d.ts +1 -1
- package/dist/types/{src/presentation → presentation}/types/report.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/base-explanation-element.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/base-field-element.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/base-report-element.d.ts +2 -2
- package/dist/types/primitives/components/error-focus.d.ts +4 -0
- package/dist/types/{src/primitives → primitives}/components/explanation-panel.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/components/field-frame-feedback.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/components/field-frame.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/components/form-errors.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/components/form-root-presenters.d.ts +3 -3
- 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 +1 -1
- package/dist/types/{src/primitives → primitives}/components/form-root-templates.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/components/form-root.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/components/presentation.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/components/report-frame.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/components/submit-button.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/constants.d.ts +1 -1
- package/dist/types/primitives/fields/series-field-renderers.d.ts +18 -0
- package/dist/types/{src/primitives → primitives}/mount-form.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/presentation.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/types.d.ts +2 -2
- package/dist/types/runtime/create-runtime-helpers.d.ts +11 -0
- package/dist/types/{src/runtime → runtime}/errors.d.ts +3 -3
- package/dist/types/{src/runtime → runtime}/index.d.ts +0 -4
- package/dist/types/{src/runtime → runtime}/runtime-behaviors.d.ts +1 -1
- package/dist/types/runtime/submission/pending-patches.d.ts +2 -0
- package/dist/types/runtime/submission/stream-events.d.ts +13 -0
- package/dist/types/{src/runtime → runtime}/types/behavior.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/types/explanation.d.ts +4 -11
- package/dist/types/{src/runtime → runtime}/types/field.d.ts +3 -10
- package/dist/types/{src/runtime → runtime}/types/form.d.ts +1 -1
- package/dist/types/runtime/types/index.d.ts +8 -0
- package/dist/types/{src/runtime → runtime}/types/registry.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/types/report.d.ts +4 -14
- package/dist/types/{src/runtime → runtime}/types/transport.d.ts +2 -2
- package/dist/types/{src/runtime → runtime}/utils.d.ts +1 -1
- package/dist/types/schema/registry.d.ts +9 -0
- package/dist/types/{src/schema → schema}/types/report.d.ts +1 -1
- package/dist/types/transport/composition/fanout-options.d.ts +9 -0
- package/dist/types/{src/transport → transport}/errors.d.ts +1 -1
- package/dist/utils-J5o8lkea.js +29 -0
- package/package.json +7 -7
- package/dist/builtins-ml-9qB2MOxt.js +0 -51
- 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/presentation/register-kind.d.ts +0 -6
- 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/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/registry/index.d.ts +0 -5
- package/dist/types/src/runtime/types/index.d.ts +0 -9
- package/dist/types/src/schema/registry.d.ts +0 -9
- /package/dist/{errors-B3H1wRwj.js → errors-CTNw8fwS.js} +0 -0
- /package/dist/{presentation-CkQuYheR.js → presentation-BrlVO4oV.js} +0 -0
- /package/dist/types/{src/design-system → design-system}/constants.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/contract/component-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/contract/component-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/contract/global-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/contract/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/contract/token-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/recipes/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/recipes/default.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/recipes/minimal.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/recipes/soft.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/registry/create-registry.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/registry/deep-freeze.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/registry/define-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/registry/define-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/registry/define-token-maps.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/diagnostics.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/merge-config.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/migrate-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/resolve-mode.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/resolve-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/resolve-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/resolve/resolve-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/apply-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/attach-design-system.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/create-stylesheet.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/declarations.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/design-system-controller.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/fingerprint.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/host-observer.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/host-state.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/hydrate-design-system.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/hydration-state.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/inherited-scheme.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/runtime/media.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/themes/cobalt.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/themes/graphite.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/themes/neutral.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/themes/sage.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/themes/sunset.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/base.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/density.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/forced-colors.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/tokens/motion.d.ts +0 -0
- /package/dist/types/{src/design-system → design-system}/types.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/accordion-root-styles.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/accordion.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/layout-node-resolver.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/layout-types.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/layout-utils.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/mount-form.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/panel-nav.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}/tabs.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/view-layout-state.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/kit → kit}/wizard.d.ts +0 -0
- /package/dist/types/{src/packs → packs}/default.d.ts +0 -0
- /package/dist/types/{src/packs → packs}/index.d.ts +0 -0
- /package/dist/types/{src/packs → packs}/ml.d.ts +0 -0
- /package/dist/types/{src/presentation → presentation}/index.d.ts +0 -0
- /package/dist/types/{src/presentation → presentation}/types/presentation.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/base-async-report-element.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/declarative-explanation.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}/index.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}/constants.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}/explanations/controller.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/explanations/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/controller.d.ts +0 -0
- /package/dist/types/{src/runtime → 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 → runtime}/reports/controller.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/reports/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/runtime-controller.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}/schema/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/engine.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/create-submitter.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/error-flow.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/explanations.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/field-updates.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/lifecycle.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/pipeline.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}/submission/types.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/types/pipeline.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/form.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}/index.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/normalize.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/explanation.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/field.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/form.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/registry.d.ts +0 -0
- /package/dist/types/{src/shared → shared}/errors.d.ts +0 -0
- /package/dist/types/{src/shared → shared}/index.d.ts +0 -0
- /package/dist/types/{src/shared → shared}/object.d.ts +0 -0
- /package/dist/types/{src/shared → shared}/strings.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}/index.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,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./errors-
|
|
1
|
+
import { t as e } from "./errors-CTNw8fwS.js";
|
|
2
2
|
//#region src/transport/errors.ts
|
|
3
3
|
var t = {
|
|
4
4
|
TIMEOUT: "TIMEOUT",
|
|
@@ -1742,20 +1742,28 @@ var t = {
|
|
|
1742
1742
|
}, Re = (e) => e.id ?? `transport[${e.index}]`, ze = (e) => P(`createFanoutTransport failed for ${e.map(Re).join(", ")}.`, e.map((e) => ({
|
|
1743
1743
|
label: Re(e),
|
|
1744
1744
|
error: e.error
|
|
1745
|
-
}))), Be = (e) => {
|
|
1746
|
-
let
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1745
|
+
}))), Be = async (e, t, n) => {
|
|
1746
|
+
let r = e;
|
|
1747
|
+
return t.filter && (r = (await Promise.all(e.map(async (e) => ({
|
|
1748
|
+
entry: e,
|
|
1749
|
+
include: await t.filter(e.id ?? String(e.index), n)
|
|
1750
|
+
})))).filter((e) => e.include).map((e) => e.entry)), t.requiredCapabilities && (r = r.filter((e) => {
|
|
1751
|
+
try {
|
|
1752
|
+
return d(e.transport, t.requiredCapabilities, "createFanoutTransport"), !0;
|
|
1753
|
+
} catch {
|
|
1754
|
+
return !1;
|
|
1755
|
+
}
|
|
1756
|
+
})), r;
|
|
1757
|
+
}, Ve = (e) => e.reduce((e, t) => c(e, l(t.transport)), void 0), He = (e) => {
|
|
1758
|
+
let t = !1;
|
|
1759
|
+
return (n, r) => {
|
|
1760
|
+
if (!t) {
|
|
1761
|
+
t = !0;
|
|
1762
|
+
for (let [t, i] of e.entries()) t !== r && i.abort(n);
|
|
1763
|
+
}
|
|
1758
1764
|
};
|
|
1765
|
+
}, Ue = (e) => {
|
|
1766
|
+
let t = k(e.transports, "createFanoutTransport"), n = (n) => Be(t, e, n);
|
|
1759
1767
|
return v(async (t) => {
|
|
1760
1768
|
let r = await n(t);
|
|
1761
1769
|
if (r.length === 0) return {
|
|
@@ -1763,39 +1771,34 @@ var t = {
|
|
|
1763
1771
|
meta: {},
|
|
1764
1772
|
raw: null
|
|
1765
1773
|
};
|
|
1766
|
-
let i = e.abortPolicy ?? "wait-all", a = r.map(() => new AbortController()), o =
|
|
1767
|
-
|
|
1768
|
-
o = !0;
|
|
1769
|
-
for (let [n, r] of a.entries()) n !== t && r.abort(e);
|
|
1770
|
-
}
|
|
1771
|
-
}, c = await Promise.allSettled(r.map(async (n, r) => {
|
|
1772
|
-
let o = w(e.transformRequest ? await e.transformRequest(n.id ?? String(n.index), t) : t, e.requiredCapabilities, n.transport, "createFanoutTransport"), { signal: c, cleanup: l } = V([o.signal, a[r]?.signal]);
|
|
1774
|
+
let i = e.abortPolicy ?? "wait-all", a = r.map(() => new AbortController()), o = He(a), s = await Promise.allSettled(r.map(async (n, r) => {
|
|
1775
|
+
let s = w(e.transformRequest ? await e.transformRequest(n.id ?? String(n.index), t) : t, e.requiredCapabilities, n.transport, "createFanoutTransport"), { signal: c, cleanup: l } = V([s.signal, a[r]?.signal]);
|
|
1773
1776
|
try {
|
|
1774
1777
|
let e = z(await n.transport.submit({
|
|
1775
|
-
...
|
|
1778
|
+
...s,
|
|
1776
1779
|
signal: c
|
|
1777
1780
|
}));
|
|
1778
|
-
return i === "abort-pending-on-first-success" &&
|
|
1781
|
+
return i === "abort-pending-on-first-success" && o("fanout-first-success", r), {
|
|
1779
1782
|
id: n.id,
|
|
1780
1783
|
index: n.index,
|
|
1781
1784
|
response: e
|
|
1782
1785
|
};
|
|
1783
1786
|
} catch (e) {
|
|
1784
|
-
throw i === "abort-pending-on-first-failure" && !(a[r]?.signal.aborted ?? !1) &&
|
|
1787
|
+
throw i === "abort-pending-on-first-failure" && !(a[r]?.signal.aborted ?? !1) && o("fanout-first-failure", r), e;
|
|
1785
1788
|
} finally {
|
|
1786
1789
|
l();
|
|
1787
1790
|
}
|
|
1788
|
-
})),
|
|
1791
|
+
})), c = s.filter((e) => e.status === "fulfilled").map((e) => e.value), l = s.flatMap((e, t) => e.status === "rejected" ? [{
|
|
1789
1792
|
id: r[t]?.id,
|
|
1790
1793
|
index: r[t]?.index ?? t,
|
|
1791
1794
|
error: e.reason
|
|
1792
|
-
}] : []),
|
|
1793
|
-
if (
|
|
1795
|
+
}] : []), u = e.failurePolicy ?? "fail-all";
|
|
1796
|
+
if (l.length > 0 && u === "fail-all" || c.length === 0 && l.length > 0) throw ze(l);
|
|
1794
1797
|
return e.merge ? e.merge({
|
|
1795
1798
|
request: t,
|
|
1796
|
-
results:
|
|
1797
|
-
failures:
|
|
1798
|
-
}) : q(
|
|
1799
|
+
results: c,
|
|
1800
|
+
failures: l
|
|
1801
|
+
}) : q(c, l);
|
|
1799
1802
|
}, async function* (t) {
|
|
1800
1803
|
let r = await n(t);
|
|
1801
1804
|
if (r.length === 0) {
|
|
@@ -1809,21 +1812,16 @@ var t = {
|
|
|
1809
1812
|
};
|
|
1810
1813
|
return;
|
|
1811
1814
|
}
|
|
1812
|
-
let i = e.abortPolicy ?? "wait-all", a = e.failurePolicy ?? "fail-all", o = y(), s = r.map(() => new AbortController()), c = [], l = [], u = r.length, d =
|
|
1813
|
-
if (!d) {
|
|
1814
|
-
d = !0;
|
|
1815
|
-
for (let [n, r] of s.entries()) n !== t && r.abort(e);
|
|
1816
|
-
}
|
|
1817
|
-
}, p = () => {
|
|
1815
|
+
let i = e.abortPolicy ?? "wait-all", a = e.failurePolicy ?? "fail-all", o = y(), s = r.map(() => new AbortController()), c = [], l = [], u = r.length, d = He(s), f = () => {
|
|
1818
1816
|
--u, u === 0 && o.close();
|
|
1819
1817
|
};
|
|
1820
1818
|
r.forEach((n, r) => {
|
|
1821
1819
|
(async () => {
|
|
1822
|
-
let a = n.id ?? `transport[${n.index}]`, u = w(e.transformRequest ? await e.transformRequest(a, t) : t, e.requiredCapabilities, n.transport, "createFanoutTransport.stream"), { signal:
|
|
1820
|
+
let a = n.id ?? `transport[${n.index}]`, u = w(e.transformRequest ? await e.transformRequest(a, t) : t, e.requiredCapabilities, n.transport, "createFanoutTransport.stream"), { signal: p, cleanup: m } = V([u.signal, s[r]?.signal]);
|
|
1823
1821
|
try {
|
|
1824
1822
|
let e = await W(n.transport, {
|
|
1825
1823
|
...u,
|
|
1826
|
-
signal:
|
|
1824
|
+
signal: p
|
|
1827
1825
|
});
|
|
1828
1826
|
for await (let t of e) {
|
|
1829
1827
|
let e = U(t, { source: a });
|
|
@@ -1832,7 +1830,7 @@ var t = {
|
|
|
1832
1830
|
id: n.id,
|
|
1833
1831
|
index: n.index,
|
|
1834
1832
|
response: z(t.result)
|
|
1835
|
-
}), o.push(e), i === "abort-pending-on-first-success" &&
|
|
1833
|
+
}), o.push(e), i === "abort-pending-on-first-success" && d("fanout-first-success", r);
|
|
1836
1834
|
break;
|
|
1837
1835
|
}
|
|
1838
1836
|
if (t.type === "error") throw t.error;
|
|
@@ -1846,16 +1844,16 @@ var t = {
|
|
|
1846
1844
|
}), o.push(U({
|
|
1847
1845
|
type: "error",
|
|
1848
1846
|
error: e
|
|
1849
|
-
}, { source: a })), i === "abort-pending-on-first-failure" &&
|
|
1847
|
+
}, { source: a })), i === "abort-pending-on-first-failure" && d("fanout-first-failure", r);
|
|
1850
1848
|
} finally {
|
|
1851
|
-
m(),
|
|
1849
|
+
m(), f();
|
|
1852
1850
|
}
|
|
1853
1851
|
})().catch((e) => {
|
|
1854
1852
|
o.push({
|
|
1855
1853
|
type: "error",
|
|
1856
1854
|
error: e,
|
|
1857
1855
|
meta: { source: n.id ?? `transport[${n.index}]` }
|
|
1858
|
-
}),
|
|
1856
|
+
}), f();
|
|
1859
1857
|
});
|
|
1860
1858
|
});
|
|
1861
1859
|
for await (let e of o) yield e;
|
|
@@ -1869,9 +1867,9 @@ var t = {
|
|
|
1869
1867
|
}) : q(c, l),
|
|
1870
1868
|
meta: { source: "fanout" }
|
|
1871
1869
|
};
|
|
1872
|
-
}, { capabilities:
|
|
1873
|
-
},
|
|
1874
|
-
let t =
|
|
1870
|
+
}, { capabilities: Ve(t) });
|
|
1871
|
+
}, We = (e) => {
|
|
1872
|
+
let t = Ue({
|
|
1875
1873
|
...e,
|
|
1876
1874
|
failurePolicy: "partial-success"
|
|
1877
1875
|
}), r = (t) => {
|
|
@@ -1899,7 +1897,7 @@ var t = {
|
|
|
1899
1897
|
yield e;
|
|
1900
1898
|
}
|
|
1901
1899
|
}, { capabilities: u(t.capabilities) });
|
|
1902
|
-
},
|
|
1900
|
+
}, Ge = (e) => {
|
|
1903
1901
|
let t = k(e.transports, "createFallbackTransport");
|
|
1904
1902
|
return v(async (n) => {
|
|
1905
1903
|
let r = [];
|
|
@@ -1954,7 +1952,7 @@ var t = {
|
|
|
1954
1952
|
error: e.error
|
|
1955
1953
|
})));
|
|
1956
1954
|
}, { capabilities: t.reduce((e, t) => c(e, l(t.transport)), void 0) });
|
|
1957
|
-
},
|
|
1955
|
+
}, Ke = (e) => {
|
|
1958
1956
|
if (e.stages.length === 0) throw TypeError(i.emptyPipeline);
|
|
1959
1957
|
return v(async (t) => {
|
|
1960
1958
|
let n = t, r;
|
|
@@ -2052,7 +2050,7 @@ var t = {
|
|
|
2052
2050
|
error: /* @__PURE__ */ Error("No transport produced a result.")
|
|
2053
2051
|
})));
|
|
2054
2052
|
}, { capabilities: t.reduce((e, t) => c(e, l(t.transport)), void 0) });
|
|
2055
|
-
},
|
|
2053
|
+
}, qe = (e) => {
|
|
2056
2054
|
let t = k(e.transports, "createHedgedTransport"), n = Math.min(e.maxAttempts ?? t.length, t.length);
|
|
2057
2055
|
if (e.hedgeDelayMs < 0) throw TypeError("createHedgedTransport: hedgeDelayMs must be non-negative.");
|
|
2058
2056
|
for (let n of t) oe(n.transport, e.allowUnsafeHedging);
|
|
@@ -2085,7 +2083,7 @@ var t = {
|
|
|
2085
2083
|
let r = await $({ transports: Object.fromEntries(t.slice(0, n).map((e) => [e.id, e.transport])) }).stream(e);
|
|
2086
2084
|
for await (let e of r) yield e;
|
|
2087
2085
|
}, { capabilities: t.reduce((e, t) => c(e, l(t.transport)), void 0) });
|
|
2088
|
-
},
|
|
2086
|
+
}, Je = () => {
|
|
2089
2087
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
2090
2088
|
let n = e.get(t) ?? /* @__PURE__ */ new Map();
|
|
2091
2089
|
return e.set(t, n), n;
|
|
@@ -2115,4 +2113,4 @@ var t = {
|
|
|
2115
2113
|
};
|
|
2116
2114
|
};
|
|
2117
2115
|
//#endregion
|
|
2118
|
-
export { ve as A, u as B, Te as C, be as D, Se as E, me as F, i as G, c as H, h as I, n as K, g as L, J as M, ge as N, ye as O, he as P, f as R, X as S, Ce as T, s as U, l as V, r as W, Z as _,
|
|
2116
|
+
export { ve as A, u as B, Te as C, be as D, Se as E, me as F, i as G, c as H, h as I, n as K, g as L, J as M, ge as N, ye as O, he as P, f as R, X as S, Ce as T, s as U, l as V, r as W, Z as _, Ge as a, De as b, Le as c, Fe as d, Pe as f, Ae as g, je as h, Ke as i, _e as j, xe as k, Q as l, Me as m, qe as n, We as o, Ne as p, t as q, $ as r, Ue as s, Je as t, Ie as u, ke as v, we as w, Ee as x, Oe as y, d as z };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RuntimeBehavior } from '
|
|
1
|
+
import { RuntimeBehavior } from '../runtime/types';
|
|
2
2
|
export declare const createMappedCategoryBehavior: () => RuntimeBehavior;
|
|
3
|
-
export type { RuntimeBehavior, RuntimeBehaviorContext, RuntimeBehaviorSubmissionRecords, RuntimeBehaviorValueChangeEvent, } from '
|
|
3
|
+
export type { RuntimeBehavior, RuntimeBehaviorContext, RuntimeBehaviorSubmissionRecords, RuntimeBehaviorValueChangeEvent, } from '../runtime/types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type BooleanFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "boolean";
|
|
5
|
+
trueLabel?: string;
|
|
6
|
+
falseLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const booleanFieldDefinition: BuiltinFieldDefinition<BooleanFieldConfig, boolean>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type CategoryOption = string | {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
type CategoryFieldConfig = BaseFieldConfig & {
|
|
8
|
+
kind: "category";
|
|
9
|
+
options: CategoryOption[];
|
|
10
|
+
};
|
|
11
|
+
export declare const categoryFieldDefinition: BuiltinFieldDefinition<CategoryFieldConfig, string | null>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type DateFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "date";
|
|
5
|
+
min?: string;
|
|
6
|
+
max?: string;
|
|
7
|
+
step?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const dateFieldDefinition: BuiltinFieldDefinition<DateFieldConfig, Date | null>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type LongTextFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "long-text";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
rows?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const longTextFieldDefinition: BuiltinFieldDefinition<LongTextFieldConfig, string>;
|
|
11
|
+
export {};
|
package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/mapped-category.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type MappedCategoryOption = {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type MappedCategoryFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
kind: "mapped-category";
|
|
9
10
|
options: MappedCategoryOption[];
|
|
10
11
|
};
|
|
11
|
-
export declare const mappedCategoryFieldDefinition:
|
|
12
|
+
export declare const mappedCategoryFieldDefinition: BuiltinFieldDefinition<MappedCategoryFieldConfig, string | null>;
|
|
12
13
|
export {};
|
package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/multi-choice.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type MultiChoiceOption = string | {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type MultiChoiceFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
options: MultiChoiceOption[];
|
|
9
10
|
layout?: "horizontal" | "vertical";
|
|
10
11
|
};
|
|
11
|
-
export declare const multiChoiceFieldDefinition:
|
|
12
|
+
export declare const multiChoiceFieldDefinition: BuiltinFieldDefinition<MultiChoiceFieldConfig, string[]>;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type NumberFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "number";
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
unit?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const numberFieldDefinition: BuiltinFieldDefinition<NumberFieldConfig, number | string | null>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type RatingFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "rating";
|
|
5
|
+
min?: number;
|
|
6
|
+
max: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ratingFieldDefinition: BuiltinFieldDefinition<RatingFieldConfig, number | null>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export type SeriesPoint = {
|
|
4
|
+
field1: unknown;
|
|
5
|
+
field2: unknown;
|
|
6
|
+
};
|
|
7
|
+
export type SeriesSubFieldConfig = {
|
|
8
|
+
kind: string;
|
|
9
|
+
label: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type SeriesFieldConfig = BaseFieldConfig & {
|
|
14
|
+
kind: "series";
|
|
15
|
+
field1: SeriesSubFieldConfig;
|
|
16
|
+
field2: SeriesSubFieldConfig;
|
|
17
|
+
minPoints?: number;
|
|
18
|
+
maxPoints?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const seriesFieldSchema: z.ZodObject<{
|
|
21
|
+
field1: z.ZodType<SeriesSubFieldConfig, unknown, z.core.$ZodTypeInternals<SeriesSubFieldConfig, unknown>>;
|
|
22
|
+
field2: z.ZodType<SeriesSubFieldConfig, unknown, z.core.$ZodTypeInternals<SeriesSubFieldConfig, unknown>>;
|
|
23
|
+
minPoints: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
showDescriptionInline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
|
+
disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
hidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32
|
+
readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
disabledWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
34
|
+
hiddenWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
35
|
+
readOnlyWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
36
|
+
asyncValidationDebounceMs: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
inactiveFieldPolicy: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
include: "include";
|
|
39
|
+
omit: "omit";
|
|
40
|
+
"reset-on-hide": "reset-on-hide";
|
|
41
|
+
}>>;
|
|
42
|
+
includeInSubmission: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
valuePath: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
44
|
+
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
45
|
+
ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
kind: z.ZodLiteral<"series">;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const serializeSubFieldValue: (config: SeriesSubFieldConfig, value: unknown) => unknown;
|
|
49
|
+
export declare const validateSubFieldValue: (config: SeriesSubFieldConfig, value: unknown) => string[];
|
|
50
|
+
export declare const prefixRowErrors: (index: number, label: string, errors: string[]) => string[];
|
|
51
|
+
export declare const normalizeSeriesPoint: (value: unknown, config: SeriesFieldConfig) => SeriesPoint | null;
|
|
52
|
+
export declare const validateSeriesPointCount: (value: SeriesPoint[], config: SeriesFieldConfig) => Set<string>;
|
package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/single-choice.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type SingleChoiceOption = string | {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type SingleChoiceFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
options: SingleChoiceOption[];
|
|
9
10
|
layout?: "horizontal" | "vertical";
|
|
10
11
|
};
|
|
11
|
-
export declare const singleChoiceFieldDefinition:
|
|
12
|
+
export declare const singleChoiceFieldDefinition: BuiltinFieldDefinition<SingleChoiceFieldConfig, string | null>;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type TextFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "text";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
pattern?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const textFieldDefinition: BuiltinFieldDefinition<TextFieldConfig, string>;
|
|
11
|
+
export {};
|
|
@@ -12,91 +12,72 @@ import { textFieldDefinition } from './fields/text';
|
|
|
12
12
|
import { classifierReportDefinition } from './reports/classifier';
|
|
13
13
|
import { regressorReportDefinition } from './reports/regressor';
|
|
14
14
|
export { booleanFieldDefinition, categoryFieldDefinition, classifierReportDefinition, dateFieldDefinition, mappedCategoryFieldDefinition, longTextFieldDefinition, multiChoiceFieldDefinition, numberFieldDefinition, ratingFieldDefinition, regressorReportDefinition, seriesFieldDefinition, singleChoiceFieldDefinition, textFieldDefinition, };
|
|
15
|
-
export declare const builtinFieldDefinitions: readonly [import('
|
|
15
|
+
export declare const builtinFieldDefinitions: readonly [import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
16
16
|
kind: "text";
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
minLength?: number;
|
|
19
19
|
maxLength?: number;
|
|
20
20
|
pattern?: string;
|
|
21
|
-
}, string>, import('
|
|
21
|
+
}, string>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
22
22
|
kind: "number";
|
|
23
23
|
min?: number;
|
|
24
24
|
max?: number;
|
|
25
25
|
step?: number;
|
|
26
26
|
unit?: string;
|
|
27
27
|
placeholder?: string;
|
|
28
|
-
}, string | number | null>, import('
|
|
28
|
+
}, string | number | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
29
29
|
kind: "boolean";
|
|
30
30
|
trueLabel?: string;
|
|
31
31
|
falseLabel?: string;
|
|
32
|
-
}, boolean>, import('
|
|
32
|
+
}, boolean>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
33
33
|
kind: "category";
|
|
34
34
|
options: (string | {
|
|
35
35
|
label: string;
|
|
36
36
|
value: string;
|
|
37
37
|
})[];
|
|
38
|
-
}, string | null>, import('
|
|
38
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
39
39
|
kind: "mapped-category";
|
|
40
40
|
options: {
|
|
41
41
|
label: string;
|
|
42
42
|
value: string;
|
|
43
43
|
mapping: Record<string, unknown>;
|
|
44
44
|
}[];
|
|
45
|
-
}, string | null>, import('
|
|
45
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
46
46
|
kind: "date";
|
|
47
47
|
min?: string;
|
|
48
48
|
max?: string;
|
|
49
49
|
step?: number;
|
|
50
|
-
}, Date | null>, import('
|
|
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 & {
|
|
50
|
+
}, Date | null>, import('./shared').BuiltinFieldDefinition<import('./fields/series-helpers').SeriesFieldConfig, import('./fields/series-helpers').SeriesPoint[]>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
70
51
|
kind: "long-text";
|
|
71
52
|
placeholder?: string;
|
|
72
53
|
minLength?: number;
|
|
73
54
|
maxLength?: number;
|
|
74
55
|
rows?: number;
|
|
75
|
-
}, string>, import('
|
|
56
|
+
}, string>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
76
57
|
kind: "single-choice";
|
|
77
58
|
options: (string | {
|
|
78
59
|
label: string;
|
|
79
60
|
value: string;
|
|
80
61
|
})[];
|
|
81
62
|
layout?: "horizontal" | "vertical";
|
|
82
|
-
}, string | null>, import('
|
|
63
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
83
64
|
kind: "multi-choice";
|
|
84
65
|
options: (string | {
|
|
85
66
|
label: string;
|
|
86
67
|
value: string;
|
|
87
68
|
})[];
|
|
88
69
|
layout?: "horizontal" | "vertical";
|
|
89
|
-
}, string[]>, import('
|
|
70
|
+
}, string[]>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
90
71
|
kind: "rating";
|
|
91
72
|
min?: number;
|
|
92
73
|
max: number;
|
|
93
74
|
step?: number;
|
|
94
75
|
}, number | null>];
|
|
95
|
-
export declare const builtinReportDefinitions: readonly [import('
|
|
76
|
+
export declare const builtinReportDefinitions: readonly [import('./shared').BuiltinReportDefinition<import('../../schema').BaseReportConfig & {
|
|
96
77
|
kind: "classifier";
|
|
97
78
|
labels?: string[];
|
|
98
79
|
showClassProbabilities?: boolean;
|
|
99
|
-
}>, import('
|
|
80
|
+
}>, import('./shared').BuiltinReportDefinition<import('../../schema').BaseReportConfig & {
|
|
100
81
|
kind: "regressor";
|
|
101
82
|
unit?: string;
|
|
102
83
|
precision?: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseReportConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinReportDefinition } from '../shared';
|
|
3
|
+
type ClassifierReportConfig = BaseReportConfig & {
|
|
4
|
+
kind: "classifier";
|
|
5
|
+
labels?: string[];
|
|
6
|
+
showClassProbabilities?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const classifierReportDefinition: BuiltinReportDefinition<ClassifierReportConfig>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseReportConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinReportDefinition } from '../shared';
|
|
3
|
+
type RegressorReportConfig = BaseReportConfig & {
|
|
4
|
+
kind: "regressor";
|
|
5
|
+
unit?: string;
|
|
6
|
+
precision?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const regressorReportDefinition: BuiltinReportDefinition<RegressorReportConfig>;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BaseFieldConfig, BaseReportConfig, DeclarativeFieldCondition, NormalizedFieldConfig,
|
|
1
|
+
import { BaseFieldConfig, BaseReportConfig, DeclarativeFieldCondition, ExplanationConfig, ExplanationDefinition, FieldConfig, FieldDefinition, NormalizedFieldConfig, ReportConfig, ReportDefinition } from '../../schema';
|
|
2
|
+
import { ExplanationDescriptor, FieldDescriptor, ReportDescriptor } from '../../presentation';
|
|
3
|
+
import { SubmitResult } from '../../runtime';
|
|
2
4
|
import * as z from "zod";
|
|
3
5
|
export declare const uiSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4
6
|
export declare const baseFieldShape: {
|
|
@@ -50,3 +52,23 @@ export declare const makeFieldDescriptor: (component: string, config: Normalized
|
|
|
50
52
|
};
|
|
51
53
|
export type BuiltinFieldConfig = BaseFieldConfig;
|
|
52
54
|
export type BuiltinReportConfig = BaseReportConfig;
|
|
55
|
+
export type BuiltinFieldDefinition<TConfig extends FieldConfig = FieldConfig, TValue = unknown> = FieldDefinition<TConfig, TValue> & {
|
|
56
|
+
describe: (config: NormalizedFieldConfig<TConfig>, context: {
|
|
57
|
+
fieldId: string;
|
|
58
|
+
state: import('../../schema').FieldStateSnapshot;
|
|
59
|
+
}) => FieldDescriptor;
|
|
60
|
+
};
|
|
61
|
+
export type BuiltinReportDefinition<TConfig extends ReportConfig = ReportConfig> = ReportDefinition<TConfig> & {
|
|
62
|
+
describe: (config: import('../../schema').NormalizedReportConfig<TConfig>, context: {
|
|
63
|
+
reportId: string;
|
|
64
|
+
state: import('../../schema').ReportStateSnapshot;
|
|
65
|
+
payload: unknown;
|
|
66
|
+
result: SubmitResult | null;
|
|
67
|
+
}) => ReportDescriptor | null;
|
|
68
|
+
};
|
|
69
|
+
export type BuiltinExplanationDefinition<TConfig extends ExplanationConfig = ExplanationConfig> = ExplanationDefinition<TConfig> & {
|
|
70
|
+
describe: (config: import('../../schema').NormalizedExplanationConfig<TConfig>, context: {
|
|
71
|
+
explanationId: string;
|
|
72
|
+
state: import('../../schema').ExplanationStateSnapshot;
|
|
73
|
+
}) => ExplanationDescriptor | null;
|
|
74
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { classifierReportDefinition, regressorReportDefinition } from '
|
|
2
|
-
import { Registry } from '
|
|
1
|
+
import { classifierReportDefinition, regressorReportDefinition } from './definitions';
|
|
2
|
+
import { Registry } from '../schema';
|
|
3
3
|
export { classifierReportDefinition, regressorReportDefinition };
|
|
4
4
|
export declare const createBuiltinMlRegistry: () => Registry;
|
|
5
5
|
export declare const createMlRegistryPack: () => import('../packs').RegistryPack;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { RecipeManifest, ThemeManifest } from '../types';
|
|
2
|
-
export declare const builtinThemes: ThemeManifest[];
|
|
3
|
-
export declare const builtinRecipes: RecipeManifest[];
|
|
4
1
|
export declare const createBuiltinDesignSystemRegistry: () => import('..').DesignSystemRegistry;
|
|
5
2
|
export declare const builtinDesignSystemRegistry: import('..').DesignSystemRegistry;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { builtinRecipes } from '../recipes';
|
|
2
|
+
export { builtinThemes } from '../themes';
|
|
3
|
+
export { builtinDesignSystemRegistry, createBuiltinDesignSystemRegistry } from './builtins';
|
|
2
4
|
export { createDesignSystemRegistry } from './create-registry';
|
|
3
5
|
export { defineRecipe } from './define-recipe';
|
|
4
6
|
export { defineComponentTokens, defineGlobalTokens } from './define-token-maps';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DesignSystemConfig, DesignSystemRegistry, ResolvedDesignSystem } from '../types';
|
|
2
|
+
import { DesignSystemMediaSnapshot } from './fingerprint';
|
|
3
|
+
import { MediaQueryListWithLegacy } from './media';
|
|
4
|
+
export type MediaListenerPair = {
|
|
5
|
+
query: MediaQueryListWithLegacy | null;
|
|
6
|
+
listener: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const addControllerMediaListeners: (pairs: readonly MediaListenerPair[]) => void;
|
|
9
|
+
export declare const removeControllerMediaListeners: (pairs: readonly MediaListenerPair[]) => void;
|
|
10
|
+
export declare const getControllerMediaSnapshot: (scheme: MediaQueryListWithLegacy | null, motion: MediaQueryListWithLegacy | null, contrast: MediaQueryListWithLegacy | null, forcedColors: MediaQueryListWithLegacy | null) => DesignSystemMediaSnapshot;
|
|
11
|
+
export declare const resolveControllerDesignSystem: (host: HTMLElement, config: DesignSystemConfig, registry: DesignSystemRegistry, media: DesignSystemMediaSnapshot) => ResolvedDesignSystem;
|
|
12
|
+
export declare const dispatchDesignSystemChange: (host: HTMLElement, resolved: ResolvedDesignSystem) => void;
|