mlform 0.1.9 → 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 +16 -14
- package/dist/builtins-D8rXH4ED.js +725 -0
- package/dist/{design-system-CIU_vH6O.js → design-6suKVQDo.js} +15 -15
- package/dist/mlform/builtins.mjs +2 -0
- package/dist/mlform/{design-system.mjs → design.mjs} +2 -2
- package/dist/mlform/kit.mjs +1896 -3
- package/dist/mlform/primitives.mjs +2 -2
- package/dist/mlform/runtime.mjs +3 -4
- package/dist/mlform/schema.mjs +2 -102
- package/dist/mlform/transport.mjs +2 -2
- package/dist/{primitives-Di95y_ur.js → primitives-k9HTnd72.js} +2303 -3384
- package/dist/{runtime-C5iTM3uu.js → runtime-CI7vlp9i.js} +655 -791
- package/dist/schema-DSAZ6bts.js +88 -0
- package/dist/{transport-B6ePTLFK.js → transport-CO6udZ6z.js} +605 -575
- package/dist/types/{builtins-ml/definitions/index.d.ts → builtins/definitions/collections.d.ts} +0 -14
- package/dist/types/{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-ml → builtins}/definitions/shared.d.ts +2 -9
- 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-system/recipes/index.d.ts → design/recipes/collections.d.ts} +0 -1
- package/dist/types/design/recipes/index.d.ts +2 -0
- package/dist/types/design/resolve/index.d.ts +4 -0
- package/dist/types/{design-system/resolve/index.d.ts → design/resolve/resolve-design.d.ts} +0 -3
- package/dist/types/{design-system → design}/runtime/index.d.ts +3 -3
- package/dist/types/{design-system/themes/index.d.ts → design/themes/collections.d.ts} +0 -2
- package/dist/types/design/themes/index.d.ts +3 -0
- package/dist/types/{design-system → design}/types.d.ts +1 -1
- package/dist/types/kit/constants.d.ts +2 -10
- package/dist/types/kit/defaults.d.ts +1 -1
- package/dist/types/kit/disclosure-root-styles.d.ts +1 -0
- package/dist/types/kit/error-navigation.d.ts +2 -1
- package/dist/types/kit/index.d.ts +3 -5
- package/dist/types/{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/kit/layout-helpers.d.ts +7 -11
- package/dist/types/kit/layout-node-render.d.ts +4 -4
- package/dist/types/kit/layout-node-resolver.d.ts +1 -1
- package/dist/types/kit/{accordion-root.d.ts → layout-root.d.ts} +3 -4
- package/dist/types/kit/layout-types.d.ts +8 -36
- package/dist/types/kit/layout-utils.d.ts +0 -1
- package/dist/types/kit/layout.d.ts +2 -2
- package/dist/types/kit/mount-types.d.ts +8 -7
- package/dist/types/kit/panel-nav.d.ts +1 -1
- package/dist/types/kit/tabs-root.d.ts +1 -2
- package/dist/types/kit/types.d.ts +2 -3
- package/dist/types/kit/view-core-types.d.ts +110 -0
- package/dist/types/kit/view-layout-state.d.ts +10 -3
- package/dist/types/kit/view-navigation.d.ts +3 -3
- package/dist/types/kit/view-snapshot-cache.d.ts +3 -3
- package/dist/types/kit/view-snapshot.d.ts +4 -4
- package/dist/types/kit/view-types.d.ts +1 -172
- package/dist/types/kit/view.d.ts +2 -8
- package/dist/types/kit/wizard-root.d.ts +1 -2
- package/dist/types/primitives/base-async-report-element.d.ts +1 -1
- package/dist/types/primitives/base-field-element.d.ts +3 -3
- package/dist/types/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 +3 -2
- package/dist/types/primitives/components/field-frame-feedback.d.ts +3 -3
- package/dist/types/primitives/components/field-frame.d.ts +3 -3
- package/dist/types/primitives/components/form-errors.d.ts +2 -2
- package/dist/types/primitives/components/form-root-presenters.d.ts +6 -11
- package/dist/types/primitives/components/form-root-state.d.ts +4 -6
- package/dist/types/primitives/components/form-root-templates.d.ts +4 -8
- package/dist/types/primitives/components/form-root.d.ts +4 -4
- package/dist/types/primitives/components/report-frame.d.ts +4 -4
- package/dist/types/primitives/components/submit-button.d.ts +2 -2
- package/dist/types/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/index.d.ts +8 -3
- package/dist/types/primitives/mount-form.d.ts +2 -2
- package/dist/types/primitives/request-runner.d.ts +13 -0
- package/dist/types/primitives/types.d.ts +16 -53
- package/dist/types/runtime/errors.d.ts +1 -2
- package/dist/types/runtime/index.d.ts +2 -4
- package/dist/types/runtime/reports/controller.d.ts +3 -2
- package/dist/types/runtime/runtime-controller.d.ts +1 -5
- package/dist/types/runtime/state/engine.d.ts +1 -2
- package/dist/types/runtime/submission/create-submitter.d.ts +1 -1
- package/dist/types/runtime/submission/index.d.ts +1 -1
- package/dist/types/runtime/submission/lifecycle.d.ts +1 -2
- package/dist/types/runtime/submission/pipeline.d.ts +1 -1
- package/dist/types/runtime/submission/report-fetches.d.ts +2 -0
- package/dist/types/runtime/submission/types.d.ts +1 -2
- package/dist/types/runtime/types/form.d.ts +9 -13
- package/dist/types/runtime/types/index.d.ts +0 -1
- package/dist/types/runtime/types/pipeline.d.ts +10 -10
- package/dist/types/runtime/types/registry.d.ts +2 -3
- package/dist/types/runtime/types/report.d.ts +4 -1
- package/dist/types/runtime/types/transport.d.ts +3 -4
- package/dist/types/runtime/utils.d.ts +1 -3
- package/dist/types/runtime/validation/form.d.ts +1 -1
- package/dist/types/schema/ids.d.ts +1 -0
- package/dist/types/schema/index.d.ts +3 -1
- package/dist/types/schema/registry.d.ts +2 -4
- package/dist/types/schema/report-fetch-request.d.ts +6 -0
- package/dist/types/schema/types/form.d.ts +0 -3
- package/dist/types/schema/types/registry.d.ts +0 -5
- package/dist/types/schema/types/report.d.ts +25 -3
- package/dist/types/schema/types/submit.d.ts +11 -0
- package/dist/types/transport/errors.d.ts +1 -2
- package/dist/types/transport/index.d.ts +2 -0
- package/dist/types/transport/request-runner.d.ts +16 -0
- package/package.json +9 -22
- package/dist/builtins-ml-pjab8_gu.js +0 -3878
- package/dist/errors-CTNw8fwS.js +0 -8
- package/dist/kit-QY6zff-h.js +0 -1888
- package/dist/mlform/behaviors.mjs +0 -32
- package/dist/mlform/builtins-ml.mjs +0 -2
- package/dist/mlform/presentation.mjs +0 -2
- package/dist/mlform.mjs +0 -8
- package/dist/presentation-BrlVO4oV.js +0 -200
- package/dist/strings-CWwrrYzz.js +0 -4
- package/dist/types/behaviors/index.d.ts +0 -3
- package/dist/types/builtins-ml/index.d.ts +0 -5
- package/dist/types/index.d.ts +0 -13
- package/dist/types/kit/accordion-root-styles.d.ts +0 -1
- package/dist/types/kit/accordion.d.ts +0 -2
- package/dist/types/kit/tabs.d.ts +0 -2
- package/dist/types/kit/wizard.d.ts +0 -2
- package/dist/types/packs/default.d.ts +0 -2
- package/dist/types/packs/index.d.ts +0 -3
- package/dist/types/packs/ml.d.ts +0 -2
- package/dist/types/packs/shared.d.ts +0 -24
- package/dist/types/presentation/define-explanation-kind.d.ts +0 -11
- package/dist/types/presentation/define-report-kind.d.ts +0 -15
- package/dist/types/presentation/index.d.ts +0 -10
- package/dist/types/presentation/register-kind.d.ts +0 -6
- package/dist/types/presentation/registry.d.ts +0 -15
- package/dist/types/presentation/types/explanation.d.ts +0 -32
- package/dist/types/presentation/types/field.d.ts +0 -36
- package/dist/types/presentation/types/presentation.d.ts +0 -61
- package/dist/types/presentation/types/report.d.ts +0 -41
- package/dist/types/primitives/base-explanation-element.d.ts +0 -22
- package/dist/types/primitives/components/declarative-explanation.d.ts +0 -5
- package/dist/types/primitives/components/explanation-panel.d.ts +0 -24
- package/dist/types/primitives/components/presentation.d.ts +0 -4
- package/dist/types/primitives/presentation.d.ts +0 -8
- package/dist/types/runtime/explanations/controller.d.ts +0 -13
- package/dist/types/runtime/explanations/index.d.ts +0 -1
- package/dist/types/runtime/schema/index.d.ts +0 -7
- package/dist/types/runtime/submission/explanations.d.ts +0 -2
- package/dist/types/runtime/types/explanation.d.ts +0 -15
- package/dist/types/schema/types/explanation.d.ts +0 -43
- package/dist/types/shared/errors.d.ts +0 -3
- package/dist/types/shared/index.d.ts +0 -3
- package/dist/types/shared/strings.d.ts +0 -1
- package/dist/utils-J5o8lkea.js +0 -29
- /package/dist/types/{runtime → builtins}/constants.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/boolean.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/category.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/date.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/long-text.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/mapped-category.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/multi-choice.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/number.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/rating.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/series-helpers.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/series.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/single-choice.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/fields/text.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/reports/classifier.d.ts +0 -0
- /package/dist/types/{builtins-ml → builtins}/definitions/reports/regressor.d.ts +0 -0
- /package/dist/types/{design-system → design}/constants.d.ts +0 -0
- /package/dist/types/{design-system → design}/contract/component-keys.d.ts +0 -0
- /package/dist/types/{design-system → design}/contract/component-tokens.d.ts +0 -0
- /package/dist/types/{design-system → design}/contract/global-tokens.d.ts +0 -0
- /package/dist/types/{design-system → design}/contract/index.d.ts +0 -0
- /package/dist/types/{design-system → design}/contract/token-keys.d.ts +0 -0
- /package/dist/types/{design-system → design}/index.d.ts +0 -0
- /package/dist/types/{design-system → design}/recipes/contrast.d.ts +0 -0
- /package/dist/types/{design-system → design}/recipes/default.d.ts +0 -0
- /package/dist/types/{design-system → design}/recipes/minimal.d.ts +0 -0
- /package/dist/types/{design-system → design}/recipes/soft.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/builtins.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/create-registry.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/deep-freeze.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/define-recipe.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/define-theme.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/define-token-maps.d.ts +0 -0
- /package/dist/types/{design-system → design}/registry/index.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/diagnostics.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/merge-config.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/migrate-tokens.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/resolve-mode.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/resolve-recipe.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/resolve-theme.d.ts +0 -0
- /package/dist/types/{design-system → design}/resolve/resolve-tokens.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/apply-tokens.d.ts +0 -0
- /package/dist/types/{design-system/runtime/attach-design-system.d.ts → design/runtime/attach-design.d.ts} +0 -0
- /package/dist/types/{design-system → design}/runtime/controller-helpers.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/create-stylesheet.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/declarations.d.ts +0 -0
- /package/dist/types/{design-system/runtime/design-system-controller.d.ts → design/runtime/design-controller.d.ts} +0 -0
- /package/dist/types/{design-system → design}/runtime/fingerprint.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/host-observer.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/host-state.d.ts +0 -0
- /package/dist/types/{design-system/runtime/hydrate-design-system.d.ts → design/runtime/hydrate-design.d.ts} +0 -0
- /package/dist/types/{design-system → design}/runtime/hydration-state.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/inherited-scheme.d.ts +0 -0
- /package/dist/types/{design-system → design}/runtime/media.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/airbnb.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/clickhouse.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/cobalt.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/graphite.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/neutral.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/sage.d.ts +0 -0
- /package/dist/types/{design-system → design}/themes/sunset.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/base.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/contrast.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/density.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/forced-colors.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/index.d.ts +0 -0
- /package/dist/types/{design-system → design}/tokens/motion.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, r as f, s as p, t as m, u as h } from "../primitives-k9HTnd72.js";
|
|
2
|
+
export { h as PrimitiveAsyncReportElement, d as PrimitiveDescriptorRegistry, i as PrimitiveFieldElement, n as PrimitiveFormElement, r as PrimitiveReportElement, f as createBuiltinPrimitiveRegistry, p as createPrimitiveDescriptorRegistry, s as createPrimitiveRegistry, c as focusPrimitiveField, m as mountForm, l as primitiveDefaultLabels, o as primitiveStaticText, a as primitiveTagNames, e as resolvePrimitiveText, t as toDescriptorNodes, u as unmountForm };
|
package/dist/mlform/runtime.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { a as e, r as t } from "../
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export { n as EngineError, u as RegistryError, p as ReportPayloadError, r as SubmissionAbortedError, s as SubmitError, g as TransportError, h as ValidationError, o as createExplanationController, m as createForm, m as createFormRuntime, i as defaultEquality, f as executeExplanations, l as executeFormPipeline, t as identity, e as isPromiseLike, a as shallowArrayEquality, d as shallowEquality, c as shallowObjectEquality, _ as transportErrorCodes };
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "../runtime-CI7vlp9i.js";
|
|
2
|
+
import { J as h, Y as g } from "../transport-CO6udZ6z.js";
|
|
3
|
+
export { l as EngineError, f as RegistryError, t as ReportPayloadError, o as SubmissionAbortedError, m as SubmitError, h as TransportError, n as ValidationError, p as createForm, p as createFormRuntime, c as defaultEquality, s as executeFormPipeline, i as executeReportFetches, r as identity, u as isPromiseLike, d as shallowArrayEquality, a as shallowEquality, e as shallowObjectEquality, g as transportErrorCodes };
|
package/dist/mlform/schema.mjs
CHANGED
|
@@ -1,102 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/schema/registry.ts
|
|
4
|
-
var n = class extends e {
|
|
5
|
-
constructor(e) {
|
|
6
|
-
super(e), this.name = "RegistryError";
|
|
7
|
-
}
|
|
8
|
-
}, r = class {
|
|
9
|
-
fieldDefinitions = /* @__PURE__ */ new Map();
|
|
10
|
-
reportDefinitions = /* @__PURE__ */ new Map();
|
|
11
|
-
explanationDefinitions = /* @__PURE__ */ new Map();
|
|
12
|
-
registerField(e) {
|
|
13
|
-
if (this.fieldDefinitions.has(e.kind)) throw new n(`Field kind "${e.kind}" is already registered.`);
|
|
14
|
-
return this.fieldDefinitions.set(e.kind, e), this;
|
|
15
|
-
}
|
|
16
|
-
unregisterField(e) {
|
|
17
|
-
return this.fieldDefinitions.delete(e), this;
|
|
18
|
-
}
|
|
19
|
-
registerReport(e) {
|
|
20
|
-
if (this.reportDefinitions.has(e.kind)) throw new n(`Report kind "${e.kind}" is already registered.`);
|
|
21
|
-
return this.reportDefinitions.set(e.kind, e), this;
|
|
22
|
-
}
|
|
23
|
-
unregisterReport(e) {
|
|
24
|
-
return this.reportDefinitions.delete(e), this;
|
|
25
|
-
}
|
|
26
|
-
registerExplanation(e) {
|
|
27
|
-
if (this.explanationDefinitions.has(e.kind)) throw new n(`Explanation kind "${e.kind}" is already registered.`);
|
|
28
|
-
return this.explanationDefinitions.set(e.kind, e), this;
|
|
29
|
-
}
|
|
30
|
-
unregisterExplanation(e) {
|
|
31
|
-
return this.explanationDefinitions.delete(e), this;
|
|
32
|
-
}
|
|
33
|
-
getField(e) {
|
|
34
|
-
return this.fieldDefinitions.get(e);
|
|
35
|
-
}
|
|
36
|
-
getReport(e) {
|
|
37
|
-
return this.reportDefinitions.get(e);
|
|
38
|
-
}
|
|
39
|
-
getExplanation(e) {
|
|
40
|
-
return this.explanationDefinitions.get(e);
|
|
41
|
-
}
|
|
42
|
-
listFields() {
|
|
43
|
-
return Array.from(this.fieldDefinitions.values());
|
|
44
|
-
}
|
|
45
|
-
listReports() {
|
|
46
|
-
return Array.from(this.reportDefinitions.values());
|
|
47
|
-
}
|
|
48
|
-
listExplanations() {
|
|
49
|
-
return Array.from(this.explanationDefinitions.values());
|
|
50
|
-
}
|
|
51
|
-
}, i = () => new r(), a = (e) => e, o = (e) => e, s = (e) => e, c = (t, r, i, a) => {
|
|
52
|
-
if (typeof i != "object" || !i) throw new e(`Series field "${t}" requires "${r}" configuration.`);
|
|
53
|
-
let o = "kind" in i && typeof i.kind == "string" ? i.kind : "";
|
|
54
|
-
if (o.length === 0) throw new e(`Series field "${t}" requires "${r}.kind".`);
|
|
55
|
-
if (o === "series") throw new e(`Series field "${t}" cannot nest series in "${r}".`);
|
|
56
|
-
if (!a.getField(o)) throw new n(`Series field "${t}" uses unknown sub-field kind "${o}" in "${r}".`);
|
|
57
|
-
}, l = (t, n) => {
|
|
58
|
-
if (t.kind === "series" && (c(t.label, "field1", t.field1, n), c(t.label, "field2", t.field2, n), typeof t.minPoints == "number" && typeof t.maxPoints == "number" && t.minPoints > t.maxPoints)) throw new e(`Series field "${t.label}" requires minPoints to be less than or equal to maxPoints.`);
|
|
59
|
-
}, u = (n, r, i, a) => {
|
|
60
|
-
let o = t((n ?? r) || a);
|
|
61
|
-
if (n) {
|
|
62
|
-
if (i.has(o)) throw new e(`Duplicate explicit id "${o}" in schema.`);
|
|
63
|
-
return i.add(o), o;
|
|
64
|
-
}
|
|
65
|
-
let s = o, c = 2;
|
|
66
|
-
for (; i.has(s);) s = `${o}-${c}`, c += 1;
|
|
67
|
-
return i.add(s), s;
|
|
68
|
-
}, d = (e, t, r, i) => {
|
|
69
|
-
let a = r.getField(e.kind);
|
|
70
|
-
if (!a) throw new n(`Unknown field kind "${e.kind}".`);
|
|
71
|
-
let o = a.schema.parse(e);
|
|
72
|
-
return l(o, r), {
|
|
73
|
-
...o,
|
|
74
|
-
id: u(o.id, o.label, i, `field-${t + 1}`)
|
|
75
|
-
};
|
|
76
|
-
}, f = (e, t, r, i) => {
|
|
77
|
-
let a = r.getReport(e.kind);
|
|
78
|
-
if (!a) throw new n(`Unknown report kind "${e.kind}".`);
|
|
79
|
-
let o = a.schema.parse(e), s = u(o.id, o.label ?? o.kind, i, `report-${t + 1}`);
|
|
80
|
-
return {
|
|
81
|
-
...o,
|
|
82
|
-
id: s,
|
|
83
|
-
source: o.source ?? s
|
|
84
|
-
};
|
|
85
|
-
}, p = (e, t, r, i) => {
|
|
86
|
-
let a = r.getExplanation(e.kind);
|
|
87
|
-
if (!a) throw new n(`Unknown explanation kind "${e.kind}".`);
|
|
88
|
-
let o = a.schema.parse(e);
|
|
89
|
-
return {
|
|
90
|
-
...o,
|
|
91
|
-
id: u(o.id, o.label ?? o.kind, i, `explanation-${t + 1}`)
|
|
92
|
-
};
|
|
93
|
-
}, m = (e, t) => {
|
|
94
|
-
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
95
|
-
return {
|
|
96
|
-
fields: e.fields.map((e, r) => d(e, r, t, n)),
|
|
97
|
-
reports: (e.reports ?? []).map((e, n) => f(e, n, t, r)),
|
|
98
|
-
explanations: (e.explanations ?? []).map((e, n) => p(e, n, t, i))
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
//#endregion
|
|
102
|
-
export { n as RegistryError, i as createRegistry, s as defineExplanationDefinition, a as defineFieldDefinition, o as defineReportDefinition, m as normalizeSchema };
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../schema-DSAZ6bts.js";
|
|
2
|
+
export { i as RegistryError, t as createRegistry, o as createReportFetchRequest, e as defineFieldDefinition, r as defineReportDefinition, n as normalizeSchema, a as normalizeSchemaId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c,
|
|
2
|
-
export { l as TransportError,
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, Y as S, _ as C, a as w, b as T, c as E, d as D, f as O, g as k, h as A, i as j, j as M, k as N, l as P, m as F, n as I, o as L, p as R, q as z, r as B, s as V, t as H, u as U, v as W, w as G, x as K, y as q, z as J } from "../transport-CO6udZ6z.js";
|
|
2
|
+
export { l as TransportError, t as assertPayloadWithinLimits, b as assertTransportCapabilities, s as cloneCapabilities, w as createFallbackTransport, V as createFanoutTransport, h as createGraphqlTransport, r as createGrpcSessionTransport, m as createGrpcStreamTransport, N as createGrpcTransport, e as createGrpcUnaryTransport, I as createHedgedTransport, a as createJsonTransport, E as createLoadBalancedTransport, C as createMemoryCircuitBreakerState, A as createMemorySharedRateLimiter, O as createMemoryTransportCacheStore, H as createMemoryTransportHealthState, j as createPipelineTransport, L as createQuorumFanoutTransport, B as createRacingTransport, P as createRoutingTransport, f as createSessionTransport, p as createSseTransport, c as createTransportRequestRunner, M as createWebSocketSessionTransport, U as createWeightedRoutingTransport, d as extractErrorMessage, g as getTransportPolicyContext, y as inferTransportCapabilities, x as mergeTransportCapabilities, o as normalizeTransportCapabilities, i as pipe, u as transportDefaults, S as transportErrorCodes, z as transportErrorMessages, W as withAuth, D as withCache, k as withCircuitBreaker, R as withDedup, K as withLogging, q as withMetrics, F as withRateLimit, _ as withRequestTransform, n as withResponseTransform, v as withRetry, G as withTimeout, T as withTracing, J as withTransportPolicyContext };
|