attaform 0.27.6 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract.d.mts +5 -4
- package/dist/abstract.mjs +4 -3
- package/dist/chunks/fingerprint.mjs +0 -1
- package/dist/chunks/fingerprint2.mjs +1 -2
- package/dist/dev/abstract.mjs +4 -0
- package/dist/{chunks → dev/chunks}/dev-key-collision-warnings.mjs +0 -1
- package/dist/{chunks → dev/chunks}/devtools.mjs +5 -6
- package/dist/{chunks/fingerprint.cjs → dev/chunks/fingerprint.mjs} +7 -10
- package/dist/{chunks/fingerprint2.cjs → dev/chunks/fingerprint2.mjs} +32 -35
- package/dist/dev/directive.mjs +1 -0
- package/dist/dev/history.mjs +89 -0
- package/dist/dev/index.mjs +5 -0
- package/dist/dev/runtime/plugins/attaform.mjs +40 -0
- package/dist/{shared/attaform.D6tk90Rc.cjs → dev/shared/attaform-dev.6qxD-Yqo.mjs} +187 -43
- package/dist/{shared/attaform.CQN9R62B.cjs → dev/shared/attaform-dev.BJGA_UOS.mjs} +1 -4
- package/dist/{shared/attaform.DYEr28Pt.mjs → dev/shared/attaform-dev.BR8u0YOZ.mjs} +6 -7
- package/dist/dev/shared/attaform-dev.BXE2cr0L.mjs +220 -0
- package/dist/dev/shared/attaform-dev.By4PRjt0.mjs +248 -0
- package/dist/{shared/attaform.B1ZYt2Li.mjs → dev/shared/attaform-dev.D2I8e_Mm.mjs} +132 -568
- package/dist/dev/shared/attaform-dev.Dr2YzS5B.mjs +197 -0
- package/dist/{shared/attaform.nMaz2C5P.mjs → dev/shared/attaform-dev.P7cseiEG.mjs} +178 -397
- package/dist/{shared/attaform.CKH2lGdL.mjs → dev/shared/attaform-dev.WmuhD_CZ.mjs} +3944 -5056
- package/dist/{shared/attaform.DMxM2kol.mjs → dev/shared/attaform-dev.oYrkP9dj.mjs} +160 -508
- package/dist/dev/zod-v3.mjs +17 -0
- package/dist/dev/zod-v4.mjs +16 -0
- package/dist/dev/zod.mjs +5 -0
- package/dist/directive.d.mts +20 -0
- package/dist/directive.mjs +1 -0
- package/dist/esbuild.mjs +0 -1
- package/dist/history.d.mts +59 -0
- package/dist/history.mjs +89 -0
- package/dist/index.d.mts +11 -5
- package/dist/index.mjs +5 -4
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +5 -2
- package/dist/rollup.mjs +0 -1
- package/dist/rspack.d.mts +6 -1
- package/dist/rspack.mjs +0 -1
- package/dist/runtime/components/AttaformDevtoolsPanel.vue +9 -8
- package/dist/runtime/plugins/attaform.mjs +1 -2
- package/dist/shared/{attaform.Fp3sCrVs.d.ts → attaform.B4VkS43-.d.mts} +2 -2
- package/dist/shared/{attaform.DrvMscNX.cjs → attaform.B8k8JrmK.mjs} +4073 -5630
- package/dist/shared/attaform.BJGA_UOS.mjs +0 -1
- package/dist/shared/{attaform.CoR4mWfv.mjs → attaform.C09fpdLS.mjs} +172 -16
- package/dist/shared/{attaform.D8kliaKw.cjs → attaform.CJP3RkGa.mjs} +141 -590
- package/dist/shared/{attaform.DniawQLP.d.cts → attaform.Cgu-hdSb.d.mts} +268 -68
- package/dist/shared/attaform.Cs2Rbdlo.mjs +0 -1
- package/dist/shared/{attaform.CHlJLAiv.d.mts → attaform.D5V4tZWq.d.mts} +69 -179
- package/dist/shared/{attaform.B9Wyhfro.cjs → attaform.D6DCnnQu.mjs} +11 -16
- package/dist/shared/attaform.DhnPb6nK.mjs +0 -1
- package/dist/shared/attaform.Dq4vWxuG.mjs +197 -0
- package/dist/shared/attaform.JfSWdEcb.d.mts +44 -0
- package/dist/shared/attaform.KvlEedlF.mjs +0 -1
- package/dist/shared/{attaform.DdQN7sgN.cjs → attaform.NLmerepI.mjs} +175 -557
- package/dist/shared/attaform.h0i6LijT.mjs +242 -0
- package/dist/shared/{attaform.Biytrv0-.cjs → attaform.uLbun31C.mjs} +204 -544
- package/dist/shared/attaform.v0fQtWyA.mjs +0 -1
- package/dist/shared/attaform.wfY8XFvm.mjs +197 -0
- package/dist/transforms.mjs +0 -1
- package/dist/vite.d.mts +17 -5
- package/dist/vite.mjs +24 -2
- package/dist/webpack.d.mts +6 -1
- package/dist/webpack.mjs +0 -1
- package/dist/zod-v3.d.mts +11 -6
- package/dist/zod-v3.mjs +17 -4
- package/dist/zod-v4.d.mts +12 -6
- package/dist/zod-v4.mjs +16 -4
- package/dist/zod.d.mts +4 -3
- package/dist/zod.mjs +5 -4
- package/package.json +23 -8
- package/skills/attaform/SKILL.md +2 -1
- package/dist/abstract.cjs +0 -48
- package/dist/abstract.cjs.map +0 -1
- package/dist/abstract.d.cts +0 -42
- package/dist/abstract.d.ts +0 -42
- package/dist/abstract.mjs.map +0 -1
- package/dist/chunks/dev-key-collision-warnings.cjs +0 -25
- package/dist/chunks/dev-key-collision-warnings.cjs.map +0 -1
- package/dist/chunks/dev-key-collision-warnings.mjs.map +0 -1
- package/dist/chunks/devtools.cjs +0 -157
- package/dist/chunks/devtools.cjs.map +0 -1
- package/dist/chunks/devtools.mjs.map +0 -1
- package/dist/chunks/fingerprint.cjs.map +0 -1
- package/dist/chunks/fingerprint.mjs.map +0 -1
- package/dist/chunks/fingerprint2.cjs.map +0 -1
- package/dist/chunks/fingerprint2.mjs.map +0 -1
- package/dist/esbuild.cjs +0 -28
- package/dist/esbuild.cjs.map +0 -1
- package/dist/esbuild.d.cts +0 -56
- package/dist/esbuild.d.ts +0 -56
- package/dist/esbuild.mjs.map +0 -1
- package/dist/index.cjs +0 -51
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -249
- package/dist/index.d.ts +0 -249
- package/dist/index.mjs.map +0 -1
- package/dist/nuxt.cjs +0 -84
- package/dist/nuxt.cjs.map +0 -1
- package/dist/nuxt.d.cts +0 -66
- package/dist/nuxt.d.ts +0 -66
- package/dist/nuxt.mjs.map +0 -1
- package/dist/rollup.cjs +0 -24
- package/dist/rollup.cjs.map +0 -1
- package/dist/rollup.d.cts +0 -35
- package/dist/rollup.d.ts +0 -35
- package/dist/rollup.mjs.map +0 -1
- package/dist/rspack.cjs +0 -10
- package/dist/rspack.cjs.map +0 -1
- package/dist/rspack.d.cts +0 -40
- package/dist/rspack.d.ts +0 -40
- package/dist/rspack.mjs.map +0 -1
- package/dist/runtime/components/AttaformDevtoolsPanel.vue.d.ts +0 -7
- package/dist/runtime/components/DevtoolsValueTree.vue.d.ts +0 -35
- package/dist/runtime/plugins/attaform.cjs +0 -43
- package/dist/runtime/plugins/attaform.cjs.map +0 -1
- package/dist/runtime/plugins/attaform.d.cts +0 -5
- package/dist/runtime/plugins/attaform.d.ts +0 -5
- package/dist/runtime/plugins/attaform.mjs.map +0 -1
- package/dist/shared/attaform.B1ZYt2Li.mjs.map +0 -1
- package/dist/shared/attaform.B9Wyhfro.cjs.map +0 -1
- package/dist/shared/attaform.BGDV42hI.d.cts +0 -232
- package/dist/shared/attaform.BJGA_UOS.mjs.map +0 -1
- package/dist/shared/attaform.Biytrv0-.cjs.map +0 -1
- package/dist/shared/attaform.Bn0IzhD_.cjs +0 -800
- package/dist/shared/attaform.Bn0IzhD_.cjs.map +0 -1
- package/dist/shared/attaform.C9fPTxjB.d.cts +0 -41
- package/dist/shared/attaform.C9fPTxjB.d.ts +0 -41
- package/dist/shared/attaform.CKH2lGdL.mjs.map +0 -1
- package/dist/shared/attaform.CQN9R62B.cjs.map +0 -1
- package/dist/shared/attaform.CoR4mWfv.mjs.map +0 -1
- package/dist/shared/attaform.Cs2Rbdlo.mjs.map +0 -1
- package/dist/shared/attaform.D6tk90Rc.cjs.map +0 -1
- package/dist/shared/attaform.D8kliaKw.cjs.map +0 -1
- package/dist/shared/attaform.DLknk9nF.d.mts +0 -232
- package/dist/shared/attaform.DMxM2kol.mjs.map +0 -1
- package/dist/shared/attaform.DRUT703x.d.cts +0 -56
- package/dist/shared/attaform.DRUT703x.d.ts +0 -56
- package/dist/shared/attaform.DYEr28Pt.mjs.map +0 -1
- package/dist/shared/attaform.DdQN7sgN.cjs.map +0 -1
- package/dist/shared/attaform.DhnPb6nK.mjs.map +0 -1
- package/dist/shared/attaform.DniawQLP.d.mts +0 -4763
- package/dist/shared/attaform.DniawQLP.d.ts +0 -4763
- package/dist/shared/attaform.DoQm_Vkd.cjs +0 -58
- package/dist/shared/attaform.DoQm_Vkd.cjs.map +0 -1
- package/dist/shared/attaform.DrvMscNX.cjs.map +0 -1
- package/dist/shared/attaform.F2Q8iv38.d.ts +0 -2494
- package/dist/shared/attaform.FmqKO1Ex.d.cts +0 -2494
- package/dist/shared/attaform.KvlEedlF.mjs.map +0 -1
- package/dist/shared/attaform.RaTzp1WF.cjs +0 -26
- package/dist/shared/attaform.RaTzp1WF.cjs.map +0 -1
- package/dist/shared/attaform.nMaz2C5P.mjs.map +0 -1
- package/dist/shared/attaform.v0fQtWyA.mjs.map +0 -1
- package/dist/shared/attaform.yUrz7C2z.cjs +0 -29
- package/dist/shared/attaform.yUrz7C2z.cjs.map +0 -1
- package/dist/transforms.cjs +0 -12
- package/dist/transforms.cjs.map +0 -1
- package/dist/transforms.d.cts +0 -73
- package/dist/transforms.d.ts +0 -73
- package/dist/transforms.mjs.map +0 -1
- package/dist/vite.cjs +0 -363
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.d.cts +0 -133
- package/dist/vite.d.ts +0 -133
- package/dist/vite.mjs.map +0 -1
- package/dist/webpack.cjs +0 -10
- package/dist/webpack.cjs.map +0 -1
- package/dist/webpack.d.cts +0 -37
- package/dist/webpack.d.ts +0 -37
- package/dist/webpack.mjs.map +0 -1
- package/dist/zod-v3.cjs +0 -53
- package/dist/zod-v3.cjs.map +0 -1
- package/dist/zod-v3.d.cts +0 -246
- package/dist/zod-v3.d.ts +0 -246
- package/dist/zod-v3.mjs.map +0 -1
- package/dist/zod-v4.cjs +0 -55
- package/dist/zod-v4.cjs.map +0 -1
- package/dist/zod-v4.d.cts +0 -172
- package/dist/zod-v4.d.ts +0 -172
- package/dist/zod-v4.mjs.map +0 -1
- package/dist/zod.cjs +0 -51
- package/dist/zod.cjs.map +0 -1
- package/dist/zod.d.cts +0 -7
- package/dist/zod.d.ts +0 -7
- package/dist/zod.mjs.map +0 -1
package/dist/zod-v4.d.cts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { S as SupportedRootSchema } from './shared/attaform.BGDV42hI.cjs';
|
|
2
|
-
export { P as PathInput, a as PathOutput, u as useForm } from './shared/attaform.BGDV42hI.cjs';
|
|
3
|
-
import { c as AttaformError } from './shared/attaform.FmqKO1Ex.cjs';
|
|
4
|
-
export { a as AnyForm, b as AttaformDevtoolsBridge, d as AttaformErrorCode, e as AttaformPluginOptions, A as AttaformRegistry, C as CompiledStep, D as DEFAULT_TIMINGS, f as DEVTOOLS_WINDOW_KEY, g as DisplayTimings, F as FormStatus, h as FormStatusSeed, G as GateMarker, I as InjectWizardInput, i as InvalidPathError, j as InvalidUseFormConfigError, L as LazyMarker, O as OutsideSetupError, R as RegistryNotInstalledError, k as ReservedFormKeyError, S as SerializedAttaformState, l as SerializedFormData, m as StepSlot, n as SubmitErrorHandlerError, U as UseRegisterReturn, o as UseWizardReturnType, W as WizardAggregateError, p as WizardCtx, q as WizardCtxForm, r as WizardOnError, s as WizardOnSubmit, t as WizardOptions, u as WizardPersistFn, v as WizardRestoreFn, w as WizardRestoreState, x as WizardStatusesProxy, y as WizardSubmitContext, z as assignKey, B as createAttaform, E as createRegistry, H as defaultCoercionRules, J as defaultDisplayState, K as defineCoercion, M as escapeForInlineScript, N as gate, P as getRegistryFromApp, Q as hydrateAttaformState, T as injectForm, V as injectWizard, X as isRegisterValue, Y as kAttaformRegistry, Z as lazy, _ as makeDefaultDisplayState, $ as renderAttaformState, a0 as useRegister, a1 as useRegistry, a2 as useWizard, a3 as vRegister } from './shared/attaform.FmqKO1Ex.cjs';
|
|
5
|
-
import { F as FormKey, ar as SchemaFactoryOptions, A as AbstractSchema, o as FieldMetaPayload } from './shared/attaform.DniawQLP.cjs';
|
|
6
|
-
export { b as ArrayItem, c as ArrayPath, d as AttaformDefaults, C as CoercionEntry, e as CoercionRegistry, f as CoercionResult, g as CustomDirectiveRegisterAssignerFn, h as DeepPartial, D as DefaultValuesInput, i as DefaultValuesResponse, j as DefaultValuesShape, k as DisplayCtx, l as DisplayMachine, m as DisplayState, E as ErrorInput, n as ErrorsProxyShape, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, G as GenericForm, w as GetDisplayState, H as HandleSubmit, x as HistoryConfig, I as IsTuple, y as IsUnion, J as JoinSegments, z as Json, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, P as OnInvalidSubmitPolicy, Q as OnSubmit, R as PartialFlatPath, S as Path, T as PathKey, V as PendingValidationStatus, W as Primitive, X as ROOT_PATH, Y as ROOT_PATH_KEY, Z as ReactiveValidationStatus, _ as RegisterDirective, $ as RegisterFlatPath, a0 as RegisterOptions, a1 as RegisterSelectModifier, a2 as RegisterTextModifier, a3 as RegisterTransform, a4 as RegisterValue, a5 as Segment, a6 as SetValueCallback, a7 as SetValuePayload, a8 as SettledValidationStatus, a9 as SlimPrimitiveKind, aa as SlimRuntimeOf, ab as SubmitHandler, ac as Unset, U as UseFormConfiguration, a as UseFormReturnType, ad as ValidateOn, ae as ValidateOnConfig, af as ValidationError, ag as ValidationResponse, ah as ValidationResponseWithoutValue, ai as ValueOfUnion, aj as WriteMeta, ak as WriteShape, al as canonicalizePath, am as isPathPrefix, an as isUnset, ao as parseDottedPath, ap as unset } from './shared/attaform.DniawQLP.cjs';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import 'vue';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Wrap a Zod v4 `ZodObject` schema in an `AbstractSchema` factory.
|
|
12
|
-
*
|
|
13
|
-
* Most consumers never call this directly — `useForm` from
|
|
14
|
-
* `attaform/zod` does the wrapping automatically. Reach for
|
|
15
|
-
* it when you need an adapter outside of `useForm` (e.g. validating
|
|
16
|
-
* data with the same library used elsewhere in the form runtime, or
|
|
17
|
-
* exposing the adapter to a custom integration).
|
|
18
|
-
*
|
|
19
|
-
* The returned factory accepts per-form `SchemaFactoryOptions` (notably
|
|
20
|
-
* `maxRecursionDepth`); the adapter closure bakes them into every
|
|
21
|
-
* downstream walk so a per-form override can lift the cap without
|
|
22
|
-
* touching the app-level default.
|
|
23
|
-
*
|
|
24
|
-
* Throws if the schema isn't Zod v4 or contains kinds the adapter
|
|
25
|
-
* cannot represent (`z.promise`, `z.custom`, `z.templateLiteral`).
|
|
26
|
-
* Recursive `z.lazy(...)` is supported — the runtime walks bound their
|
|
27
|
-
* descent via `maxRecursionDepth`.
|
|
28
|
-
*/
|
|
29
|
-
declare function zodV4Adapter<FormSchema extends SupportedRootSchema, Form extends z.input<FormSchema>, GetValueFormType extends z.output<FormSchema> = z.output<FormSchema>>(rootSchema: FormSchema): (formKey: FormKey, options: SchemaFactoryOptions) => AbstractSchema<Form, GetValueFormType>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Thrown when a Zod schema includes a kind the form library cannot
|
|
33
|
-
* represent: `z.promise`, `z.custom`, or `z.templateLiteral`.
|
|
34
|
-
*
|
|
35
|
-
* The error message includes the dotted path of the offending node
|
|
36
|
-
* so you can locate it without traversing the whole schema.
|
|
37
|
-
*
|
|
38
|
-
* Recursive `z.lazy(...)` is supported, not unsupported: the
|
|
39
|
-
* construction-time walk stops descending on the second encounter
|
|
40
|
-
* of the same getter, and downstream walks cap their descent via
|
|
41
|
-
* `maxRecursionDepth`.
|
|
42
|
-
*/
|
|
43
|
-
declare class UnsupportedSchemaError extends AttaformError {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The single file that reads Zod v4's internal `def` shape. Every other
|
|
48
|
-
* file in the zod-v4 adapter uses these public-shaped accessors — future
|
|
49
|
-
* Zod minor bumps that reshape internals touch only this file.
|
|
50
|
-
*
|
|
51
|
-
* Design principle: treat `schema.def.*` as an unstable surface, even when
|
|
52
|
-
* Zod's docs say otherwise. Each helper returns a narrow, well-typed slice;
|
|
53
|
-
* no adapter code outside this file does shape-based pattern matching on
|
|
54
|
-
* `def`.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Stable kind discriminant for a Zod v4 schema. Returned by
|
|
59
|
-
* `kindOf(schema)`. Use when building a custom integration that
|
|
60
|
-
* needs to branch on schema shape — most consumers don't need this.
|
|
61
|
-
*/
|
|
62
|
-
type ZodKind = 'object' | 'array' | 'set' | 'record' | 'tuple' | 'union' | 'discriminated-union' | 'string' | 'number' | 'boolean' | 'bigint' | 'date' | 'enum' | 'literal' | 'null' | 'undefined' | 'any' | 'unknown' | 'optional' | 'nullable' | 'default' | 'pipe' | 'readonly' | 'nan' | 'void' | 'never' | 'lazy' | 'intersection' | 'catch' | 'promise' | 'custom' | 'template-literal' | 'transform' | 'file' | 'map' | 'symbol' | 'function';
|
|
63
|
-
/**
|
|
64
|
-
* Inspect a Zod v4 schema and return its `ZodKind`. Returns
|
|
65
|
-
* `'unknown'` for non-Zod inputs and unrecognised shapes.
|
|
66
|
-
*
|
|
67
|
-
* Useful when writing introspection helpers that branch on schema
|
|
68
|
-
* structure (e.g. custom error formatters or doc generators).
|
|
69
|
-
*/
|
|
70
|
-
declare function kindOf(schema: unknown): ZodKind;
|
|
71
|
-
/**
|
|
72
|
-
* Verify a schema is Zod v4. Throws a clear error if it's a v3
|
|
73
|
-
* schema mistakenly imported through `attaform/zod`.
|
|
74
|
-
*
|
|
75
|
-
* Most consumers never call this directly — the v4 adapter calls it
|
|
76
|
-
* internally on every schema. Reach for it only when wiring a custom
|
|
77
|
-
* adapter that needs the same guard.
|
|
78
|
-
*/
|
|
79
|
-
declare function assertZodVersion(schema: unknown): void;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Field-metadata write/read API for the Zod v4 adapter.
|
|
83
|
-
*
|
|
84
|
-
* Storage lives in the shared `field-meta-store` core — every entry
|
|
85
|
-
* (`attaform/zod`, `attaform/zod-v3`, `attaform/zod-v4`) writes to and
|
|
86
|
-
* reads from the same `WeakMap`s, so a payload registered via any
|
|
87
|
-
* entry surfaces at lookup regardless of which adapter actually runs.
|
|
88
|
-
*
|
|
89
|
-
* The native chain `schema.register(fieldMeta, payload)` still works
|
|
90
|
-
* — Zod 4's `.register` calls `registry.add(this, payload)` and
|
|
91
|
-
* returns the schema; the shared store satisfies that structurally.
|
|
92
|
-
*
|
|
93
|
-
* **Registration patterns:** both styles work — register on whatever
|
|
94
|
-
* schema reference you assign into the parent's shape, OR on the
|
|
95
|
-
* inner schema before wrapping. The adapter's resolver tries the
|
|
96
|
-
* walker-returned schema first, then falls back to the peeled
|
|
97
|
-
* inner so either ordering hits:
|
|
98
|
-
*
|
|
99
|
-
* // both equivalent — registry hits at lookup time
|
|
100
|
-
* withMeta(z.string(), { label: 'Email' }).optional()
|
|
101
|
-
* withMeta(z.string().optional(), { label: 'Email' })
|
|
102
|
-
* z.string().optional().register(fieldMeta, { label: 'Email' })
|
|
103
|
-
* z.string().register(fieldMeta, { label: 'Email' }).optional()
|
|
104
|
-
*
|
|
105
|
-
* The path walker returns the wrapper at terminal positions
|
|
106
|
-
* (`['email']` against `{ email: z.string().optional() }` resolves
|
|
107
|
-
* to `ZodOptional<ZodString>`) and peels at intermediate descent
|
|
108
|
-
* (`['address', 'street']` peels through `address`'s wrapper to
|
|
109
|
-
* reach the inner object). The two-stage lookup covers both leaf
|
|
110
|
-
* and container registrations symmetrically.
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
type ZodFieldMetaRegistry = ReturnType<typeof z.registry<FieldMetaPayload>>;
|
|
114
|
-
/**
|
|
115
|
-
* The shared registry every Attaform-aware Zod 4 schema can register
|
|
116
|
-
* field metadata against. Backed by the cross-adapter
|
|
117
|
-
* `fieldMetaStore` — one module-scoped instance, shared with the v3
|
|
118
|
-
* adapter and the unified `attaform/zod` entry, so a `.register()`
|
|
119
|
-
* chain in one place is read by adapters in another.
|
|
120
|
-
*
|
|
121
|
-
* Consumers extending `FieldMetaPayload` via declaration merging
|
|
122
|
-
* automatically get the richer payload type at every `register` /
|
|
123
|
-
* `add` / `get` call site.
|
|
124
|
-
*
|
|
125
|
-
* **Shared-instance disambiguation.** A single schema instance reused
|
|
126
|
-
* at multiple form paths (e.g. one address schema bound to both
|
|
127
|
-
* `pickup` and `delivery`) can carry distinct metadata per path —
|
|
128
|
-
* even via the canonical `schema.register(fieldMeta, payload)` chain.
|
|
129
|
-
* The shared store keeps a parallel list of every registration; the
|
|
130
|
-
* path-resolver walks the form's schema tree counting per-schema
|
|
131
|
-
* occurrences to pick the right payload for each path. Object
|
|
132
|
-
* literals evaluate left-to-right, so registration order matches
|
|
133
|
-
* tree-walk order, and shared schemas pair their two registrations
|
|
134
|
-
* to the two paths correctly:
|
|
135
|
-
*
|
|
136
|
-
* z.object({
|
|
137
|
-
* pickup: addressSchema.register(fieldMeta, { label: 'Pickup address' }),
|
|
138
|
-
* delivery: addressSchema.register(fieldMeta, { label: 'Delivery address' }),
|
|
139
|
-
* })
|
|
140
|
-
* // form.fields('pickup').label → 'Pickup address'
|
|
141
|
-
* // form.fields('delivery').label → 'Delivery address'
|
|
142
|
-
*
|
|
143
|
-
* Schemas reused via `withMeta()` get a fresh clone per call (see
|
|
144
|
-
* `withMeta` below), so they never share a registry slot in the
|
|
145
|
-
* first place.
|
|
146
|
-
*
|
|
147
|
-
* Cast to `z.$ZodRegistry<FieldMetaPayload>` so that
|
|
148
|
-
* `schema.register(fieldMeta, payload)` chains type-check at the call
|
|
149
|
-
* site — Zod 4's `.register()` only calls `.add(this, payload)`
|
|
150
|
-
* structurally, so the cast is sound at runtime.
|
|
151
|
-
*/
|
|
152
|
-
declare const fieldMeta: ZodFieldMetaRegistry;
|
|
153
|
-
/**
|
|
154
|
-
* Attach `payload` to `schema` in the shared `fieldMeta` registry
|
|
155
|
-
* and return `schema` (chainable). Cross-version with `attaform/zod-v3`'s
|
|
156
|
-
* `withMeta()`; user code that uses this helper reads the same on
|
|
157
|
-
* either adapter.
|
|
158
|
-
*
|
|
159
|
-
* Equivalent to `schema.register(fieldMeta, payload)` on Zod 4.
|
|
160
|
-
* Prefer the native chain for v4-only code; reach for `withMeta`
|
|
161
|
-
* when authoring schema modules that may need to compile under both
|
|
162
|
-
* adapters.
|
|
163
|
-
*
|
|
164
|
-
* Registers on the schema reference passed in. See the
|
|
165
|
-
* "Registration rule" note in this file's header — register on the
|
|
166
|
-
* inner schema before wrapping with `.optional()` / `.nullable()` /
|
|
167
|
-
* `.default()` / etc.
|
|
168
|
-
*/
|
|
169
|
-
declare function withMeta<S extends z.ZodType>(schema: S, payload: FieldMetaPayload): S;
|
|
170
|
-
|
|
171
|
-
export { AttaformError, FieldMetaPayload, FormKey, UnsupportedSchemaError, assertZodVersion, fieldMeta, kindOf, withMeta, zodV4Adapter as zodAdapter };
|
|
172
|
-
export type { ZodKind };
|
package/dist/zod-v4.d.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { S as SupportedRootSchema } from './shared/attaform.Fp3sCrVs.js';
|
|
2
|
-
export { P as PathInput, a as PathOutput, u as useForm } from './shared/attaform.Fp3sCrVs.js';
|
|
3
|
-
import { c as AttaformError } from './shared/attaform.F2Q8iv38.js';
|
|
4
|
-
export { a as AnyForm, b as AttaformDevtoolsBridge, d as AttaformErrorCode, e as AttaformPluginOptions, A as AttaformRegistry, C as CompiledStep, D as DEFAULT_TIMINGS, f as DEVTOOLS_WINDOW_KEY, g as DisplayTimings, F as FormStatus, h as FormStatusSeed, G as GateMarker, I as InjectWizardInput, i as InvalidPathError, j as InvalidUseFormConfigError, L as LazyMarker, O as OutsideSetupError, R as RegistryNotInstalledError, k as ReservedFormKeyError, S as SerializedAttaformState, l as SerializedFormData, m as StepSlot, n as SubmitErrorHandlerError, U as UseRegisterReturn, o as UseWizardReturnType, W as WizardAggregateError, p as WizardCtx, q as WizardCtxForm, r as WizardOnError, s as WizardOnSubmit, t as WizardOptions, u as WizardPersistFn, v as WizardRestoreFn, w as WizardRestoreState, x as WizardStatusesProxy, y as WizardSubmitContext, z as assignKey, B as createAttaform, E as createRegistry, H as defaultCoercionRules, J as defaultDisplayState, K as defineCoercion, M as escapeForInlineScript, N as gate, P as getRegistryFromApp, Q as hydrateAttaformState, T as injectForm, V as injectWizard, X as isRegisterValue, Y as kAttaformRegistry, Z as lazy, _ as makeDefaultDisplayState, $ as renderAttaformState, a0 as useRegister, a1 as useRegistry, a2 as useWizard, a3 as vRegister } from './shared/attaform.F2Q8iv38.js';
|
|
5
|
-
import { F as FormKey, ar as SchemaFactoryOptions, A as AbstractSchema, o as FieldMetaPayload } from './shared/attaform.DniawQLP.js';
|
|
6
|
-
export { b as ArrayItem, c as ArrayPath, d as AttaformDefaults, C as CoercionEntry, e as CoercionRegistry, f as CoercionResult, g as CustomDirectiveRegisterAssignerFn, h as DeepPartial, D as DefaultValuesInput, i as DefaultValuesResponse, j as DefaultValuesShape, k as DisplayCtx, l as DisplayMachine, m as DisplayState, E as ErrorInput, n as ErrorsProxyShape, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, G as GenericForm, w as GetDisplayState, H as HandleSubmit, x as HistoryConfig, I as IsTuple, y as IsUnion, J as JoinSegments, z as Json, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, P as OnInvalidSubmitPolicy, Q as OnSubmit, R as PartialFlatPath, S as Path, T as PathKey, V as PendingValidationStatus, W as Primitive, X as ROOT_PATH, Y as ROOT_PATH_KEY, Z as ReactiveValidationStatus, _ as RegisterDirective, $ as RegisterFlatPath, a0 as RegisterOptions, a1 as RegisterSelectModifier, a2 as RegisterTextModifier, a3 as RegisterTransform, a4 as RegisterValue, a5 as Segment, a6 as SetValueCallback, a7 as SetValuePayload, a8 as SettledValidationStatus, a9 as SlimPrimitiveKind, aa as SlimRuntimeOf, ab as SubmitHandler, ac as Unset, U as UseFormConfiguration, a as UseFormReturnType, ad as ValidateOn, ae as ValidateOnConfig, af as ValidationError, ag as ValidationResponse, ah as ValidationResponseWithoutValue, ai as ValueOfUnion, aj as WriteMeta, ak as WriteShape, al as canonicalizePath, am as isPathPrefix, an as isUnset, ao as parseDottedPath, ap as unset } from './shared/attaform.DniawQLP.js';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import 'vue';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Wrap a Zod v4 `ZodObject` schema in an `AbstractSchema` factory.
|
|
12
|
-
*
|
|
13
|
-
* Most consumers never call this directly — `useForm` from
|
|
14
|
-
* `attaform/zod` does the wrapping automatically. Reach for
|
|
15
|
-
* it when you need an adapter outside of `useForm` (e.g. validating
|
|
16
|
-
* data with the same library used elsewhere in the form runtime, or
|
|
17
|
-
* exposing the adapter to a custom integration).
|
|
18
|
-
*
|
|
19
|
-
* The returned factory accepts per-form `SchemaFactoryOptions` (notably
|
|
20
|
-
* `maxRecursionDepth`); the adapter closure bakes them into every
|
|
21
|
-
* downstream walk so a per-form override can lift the cap without
|
|
22
|
-
* touching the app-level default.
|
|
23
|
-
*
|
|
24
|
-
* Throws if the schema isn't Zod v4 or contains kinds the adapter
|
|
25
|
-
* cannot represent (`z.promise`, `z.custom`, `z.templateLiteral`).
|
|
26
|
-
* Recursive `z.lazy(...)` is supported — the runtime walks bound their
|
|
27
|
-
* descent via `maxRecursionDepth`.
|
|
28
|
-
*/
|
|
29
|
-
declare function zodV4Adapter<FormSchema extends SupportedRootSchema, Form extends z.input<FormSchema>, GetValueFormType extends z.output<FormSchema> = z.output<FormSchema>>(rootSchema: FormSchema): (formKey: FormKey, options: SchemaFactoryOptions) => AbstractSchema<Form, GetValueFormType>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Thrown when a Zod schema includes a kind the form library cannot
|
|
33
|
-
* represent: `z.promise`, `z.custom`, or `z.templateLiteral`.
|
|
34
|
-
*
|
|
35
|
-
* The error message includes the dotted path of the offending node
|
|
36
|
-
* so you can locate it without traversing the whole schema.
|
|
37
|
-
*
|
|
38
|
-
* Recursive `z.lazy(...)` is supported, not unsupported: the
|
|
39
|
-
* construction-time walk stops descending on the second encounter
|
|
40
|
-
* of the same getter, and downstream walks cap their descent via
|
|
41
|
-
* `maxRecursionDepth`.
|
|
42
|
-
*/
|
|
43
|
-
declare class UnsupportedSchemaError extends AttaformError {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The single file that reads Zod v4's internal `def` shape. Every other
|
|
48
|
-
* file in the zod-v4 adapter uses these public-shaped accessors — future
|
|
49
|
-
* Zod minor bumps that reshape internals touch only this file.
|
|
50
|
-
*
|
|
51
|
-
* Design principle: treat `schema.def.*` as an unstable surface, even when
|
|
52
|
-
* Zod's docs say otherwise. Each helper returns a narrow, well-typed slice;
|
|
53
|
-
* no adapter code outside this file does shape-based pattern matching on
|
|
54
|
-
* `def`.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Stable kind discriminant for a Zod v4 schema. Returned by
|
|
59
|
-
* `kindOf(schema)`. Use when building a custom integration that
|
|
60
|
-
* needs to branch on schema shape — most consumers don't need this.
|
|
61
|
-
*/
|
|
62
|
-
type ZodKind = 'object' | 'array' | 'set' | 'record' | 'tuple' | 'union' | 'discriminated-union' | 'string' | 'number' | 'boolean' | 'bigint' | 'date' | 'enum' | 'literal' | 'null' | 'undefined' | 'any' | 'unknown' | 'optional' | 'nullable' | 'default' | 'pipe' | 'readonly' | 'nan' | 'void' | 'never' | 'lazy' | 'intersection' | 'catch' | 'promise' | 'custom' | 'template-literal' | 'transform' | 'file' | 'map' | 'symbol' | 'function';
|
|
63
|
-
/**
|
|
64
|
-
* Inspect a Zod v4 schema and return its `ZodKind`. Returns
|
|
65
|
-
* `'unknown'` for non-Zod inputs and unrecognised shapes.
|
|
66
|
-
*
|
|
67
|
-
* Useful when writing introspection helpers that branch on schema
|
|
68
|
-
* structure (e.g. custom error formatters or doc generators).
|
|
69
|
-
*/
|
|
70
|
-
declare function kindOf(schema: unknown): ZodKind;
|
|
71
|
-
/**
|
|
72
|
-
* Verify a schema is Zod v4. Throws a clear error if it's a v3
|
|
73
|
-
* schema mistakenly imported through `attaform/zod`.
|
|
74
|
-
*
|
|
75
|
-
* Most consumers never call this directly — the v4 adapter calls it
|
|
76
|
-
* internally on every schema. Reach for it only when wiring a custom
|
|
77
|
-
* adapter that needs the same guard.
|
|
78
|
-
*/
|
|
79
|
-
declare function assertZodVersion(schema: unknown): void;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Field-metadata write/read API for the Zod v4 adapter.
|
|
83
|
-
*
|
|
84
|
-
* Storage lives in the shared `field-meta-store` core — every entry
|
|
85
|
-
* (`attaform/zod`, `attaform/zod-v3`, `attaform/zod-v4`) writes to and
|
|
86
|
-
* reads from the same `WeakMap`s, so a payload registered via any
|
|
87
|
-
* entry surfaces at lookup regardless of which adapter actually runs.
|
|
88
|
-
*
|
|
89
|
-
* The native chain `schema.register(fieldMeta, payload)` still works
|
|
90
|
-
* — Zod 4's `.register` calls `registry.add(this, payload)` and
|
|
91
|
-
* returns the schema; the shared store satisfies that structurally.
|
|
92
|
-
*
|
|
93
|
-
* **Registration patterns:** both styles work — register on whatever
|
|
94
|
-
* schema reference you assign into the parent's shape, OR on the
|
|
95
|
-
* inner schema before wrapping. The adapter's resolver tries the
|
|
96
|
-
* walker-returned schema first, then falls back to the peeled
|
|
97
|
-
* inner so either ordering hits:
|
|
98
|
-
*
|
|
99
|
-
* // both equivalent — registry hits at lookup time
|
|
100
|
-
* withMeta(z.string(), { label: 'Email' }).optional()
|
|
101
|
-
* withMeta(z.string().optional(), { label: 'Email' })
|
|
102
|
-
* z.string().optional().register(fieldMeta, { label: 'Email' })
|
|
103
|
-
* z.string().register(fieldMeta, { label: 'Email' }).optional()
|
|
104
|
-
*
|
|
105
|
-
* The path walker returns the wrapper at terminal positions
|
|
106
|
-
* (`['email']` against `{ email: z.string().optional() }` resolves
|
|
107
|
-
* to `ZodOptional<ZodString>`) and peels at intermediate descent
|
|
108
|
-
* (`['address', 'street']` peels through `address`'s wrapper to
|
|
109
|
-
* reach the inner object). The two-stage lookup covers both leaf
|
|
110
|
-
* and container registrations symmetrically.
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
type ZodFieldMetaRegistry = ReturnType<typeof z.registry<FieldMetaPayload>>;
|
|
114
|
-
/**
|
|
115
|
-
* The shared registry every Attaform-aware Zod 4 schema can register
|
|
116
|
-
* field metadata against. Backed by the cross-adapter
|
|
117
|
-
* `fieldMetaStore` — one module-scoped instance, shared with the v3
|
|
118
|
-
* adapter and the unified `attaform/zod` entry, so a `.register()`
|
|
119
|
-
* chain in one place is read by adapters in another.
|
|
120
|
-
*
|
|
121
|
-
* Consumers extending `FieldMetaPayload` via declaration merging
|
|
122
|
-
* automatically get the richer payload type at every `register` /
|
|
123
|
-
* `add` / `get` call site.
|
|
124
|
-
*
|
|
125
|
-
* **Shared-instance disambiguation.** A single schema instance reused
|
|
126
|
-
* at multiple form paths (e.g. one address schema bound to both
|
|
127
|
-
* `pickup` and `delivery`) can carry distinct metadata per path —
|
|
128
|
-
* even via the canonical `schema.register(fieldMeta, payload)` chain.
|
|
129
|
-
* The shared store keeps a parallel list of every registration; the
|
|
130
|
-
* path-resolver walks the form's schema tree counting per-schema
|
|
131
|
-
* occurrences to pick the right payload for each path. Object
|
|
132
|
-
* literals evaluate left-to-right, so registration order matches
|
|
133
|
-
* tree-walk order, and shared schemas pair their two registrations
|
|
134
|
-
* to the two paths correctly:
|
|
135
|
-
*
|
|
136
|
-
* z.object({
|
|
137
|
-
* pickup: addressSchema.register(fieldMeta, { label: 'Pickup address' }),
|
|
138
|
-
* delivery: addressSchema.register(fieldMeta, { label: 'Delivery address' }),
|
|
139
|
-
* })
|
|
140
|
-
* // form.fields('pickup').label → 'Pickup address'
|
|
141
|
-
* // form.fields('delivery').label → 'Delivery address'
|
|
142
|
-
*
|
|
143
|
-
* Schemas reused via `withMeta()` get a fresh clone per call (see
|
|
144
|
-
* `withMeta` below), so they never share a registry slot in the
|
|
145
|
-
* first place.
|
|
146
|
-
*
|
|
147
|
-
* Cast to `z.$ZodRegistry<FieldMetaPayload>` so that
|
|
148
|
-
* `schema.register(fieldMeta, payload)` chains type-check at the call
|
|
149
|
-
* site — Zod 4's `.register()` only calls `.add(this, payload)`
|
|
150
|
-
* structurally, so the cast is sound at runtime.
|
|
151
|
-
*/
|
|
152
|
-
declare const fieldMeta: ZodFieldMetaRegistry;
|
|
153
|
-
/**
|
|
154
|
-
* Attach `payload` to `schema` in the shared `fieldMeta` registry
|
|
155
|
-
* and return `schema` (chainable). Cross-version with `attaform/zod-v3`'s
|
|
156
|
-
* `withMeta()`; user code that uses this helper reads the same on
|
|
157
|
-
* either adapter.
|
|
158
|
-
*
|
|
159
|
-
* Equivalent to `schema.register(fieldMeta, payload)` on Zod 4.
|
|
160
|
-
* Prefer the native chain for v4-only code; reach for `withMeta`
|
|
161
|
-
* when authoring schema modules that may need to compile under both
|
|
162
|
-
* adapters.
|
|
163
|
-
*
|
|
164
|
-
* Registers on the schema reference passed in. See the
|
|
165
|
-
* "Registration rule" note in this file's header — register on the
|
|
166
|
-
* inner schema before wrapping with `.optional()` / `.nullable()` /
|
|
167
|
-
* `.default()` / etc.
|
|
168
|
-
*/
|
|
169
|
-
declare function withMeta<S extends z.ZodType>(schema: S, payload: FieldMetaPayload): S;
|
|
170
|
-
|
|
171
|
-
export { AttaformError, FieldMetaPayload, FormKey, UnsupportedSchemaError, assertZodVersion, fieldMeta, kindOf, withMeta, zodV4Adapter as zodAdapter };
|
|
172
|
-
export type { ZodKind };
|
package/dist/zod-v4.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod-v4.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/zod.cjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const devtoolsShared = require('./shared/attaform.Biytrv0-.cjs');
|
|
4
|
-
const serializeScript = require('./shared/attaform.DrvMscNX.cjs');
|
|
5
|
-
const fieldMeta = require('./shared/attaform.B9Wyhfro.cjs');
|
|
6
|
-
const registerProtocol = require('./shared/attaform.yUrz7C2z.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.AttaformError = devtoolsShared.AttaformError;
|
|
11
|
-
exports.DEVTOOLS_WINDOW_KEY = devtoolsShared.DEVTOOLS_WINDOW_KEY;
|
|
12
|
-
exports.InvalidPathError = devtoolsShared.InvalidPathError;
|
|
13
|
-
exports.InvalidUseFormConfigError = devtoolsShared.InvalidUseFormConfigError;
|
|
14
|
-
exports.OutsideSetupError = devtoolsShared.OutsideSetupError;
|
|
15
|
-
exports.ROOT_PATH = devtoolsShared.ROOT_PATH;
|
|
16
|
-
exports.ROOT_PATH_KEY = devtoolsShared.ROOT_PATH_KEY;
|
|
17
|
-
exports.RegistryNotInstalledError = devtoolsShared.RegistryNotInstalledError;
|
|
18
|
-
exports.ReservedFormKeyError = devtoolsShared.ReservedFormKeyError;
|
|
19
|
-
exports.SubmitErrorHandlerError = devtoolsShared.SubmitErrorHandlerError;
|
|
20
|
-
exports.assignKey = devtoolsShared.assignKey;
|
|
21
|
-
exports.canonicalizePath = devtoolsShared.canonicalizePath;
|
|
22
|
-
exports.createAttaform = devtoolsShared.createAttaform;
|
|
23
|
-
exports.createRegistry = devtoolsShared.createRegistry;
|
|
24
|
-
exports.getRegistryFromApp = devtoolsShared.getRegistryFromApp;
|
|
25
|
-
exports.hydrateAttaformState = devtoolsShared.hydrateAttaformState;
|
|
26
|
-
exports.isPathPrefix = devtoolsShared.isPathPrefix;
|
|
27
|
-
exports.kAttaformRegistry = devtoolsShared.kAttaformRegistry;
|
|
28
|
-
exports.parseDottedPath = devtoolsShared.parseDottedPath;
|
|
29
|
-
exports.renderAttaformState = devtoolsShared.renderAttaformState;
|
|
30
|
-
exports.useRegistry = devtoolsShared.useRegistry;
|
|
31
|
-
exports.vRegister = devtoolsShared.vRegister;
|
|
32
|
-
exports.AttaformErrorCode = serializeScript.AttaformErrorCode;
|
|
33
|
-
exports.DEFAULT_TIMINGS = serializeScript.DEFAULT_TIMINGS;
|
|
34
|
-
exports.defaultCoercionRules = serializeScript.defaultCoercionRules;
|
|
35
|
-
exports.defaultDisplayState = serializeScript.defaultDisplayState;
|
|
36
|
-
exports.defineCoercion = serializeScript.defineCoercion;
|
|
37
|
-
exports.escapeForInlineScript = serializeScript.escapeForInlineScript;
|
|
38
|
-
exports.gate = serializeScript.gate;
|
|
39
|
-
exports.injectForm = serializeScript.injectForm;
|
|
40
|
-
exports.injectWizard = serializeScript.injectWizard;
|
|
41
|
-
exports.isUnset = serializeScript.isUnset;
|
|
42
|
-
exports.lazy = serializeScript.lazy;
|
|
43
|
-
exports.makeDefaultDisplayState = serializeScript.makeDefaultDisplayState;
|
|
44
|
-
exports.unset = serializeScript.unset;
|
|
45
|
-
exports.useRegister = serializeScript.useRegister;
|
|
46
|
-
exports.useWizard = serializeScript.useWizard;
|
|
47
|
-
exports.fieldMeta = fieldMeta.fieldMeta;
|
|
48
|
-
exports.useForm = fieldMeta.useForm;
|
|
49
|
-
exports.withMeta = fieldMeta.withMeta;
|
|
50
|
-
exports.isRegisterValue = registerProtocol.isRegisterValue;
|
|
51
|
-
//# sourceMappingURL=zod.cjs.map
|
package/dist/zod.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/zod.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { a as AnyForm, b as AttaformDevtoolsBridge, c as AttaformError, d as AttaformErrorCode, e as AttaformPluginOptions, A as AttaformRegistry, C as CompiledStep, D as DEFAULT_TIMINGS, f as DEVTOOLS_WINDOW_KEY, g as DisplayTimings, F as FormStatus, h as FormStatusSeed, G as GateMarker, I as InjectWizardInput, i as InvalidPathError, j as InvalidUseFormConfigError, L as LazyMarker, O as OutsideSetupError, R as RegistryNotInstalledError, k as ReservedFormKeyError, S as SerializedAttaformState, l as SerializedFormData, m as StepSlot, n as SubmitErrorHandlerError, U as UseRegisterReturn, o as UseWizardReturnType, W as WizardAggregateError, p as WizardCtx, q as WizardCtxForm, r as WizardOnError, s as WizardOnSubmit, t as WizardOptions, u as WizardPersistFn, v as WizardRestoreFn, w as WizardRestoreState, x as WizardStatusesProxy, y as WizardSubmitContext, z as assignKey, B as createAttaform, E as createRegistry, H as defaultCoercionRules, J as defaultDisplayState, K as defineCoercion, M as escapeForInlineScript, N as gate, P as getRegistryFromApp, Q as hydrateAttaformState, T as injectForm, V as injectWizard, X as isRegisterValue, Y as kAttaformRegistry, Z as lazy, _ as makeDefaultDisplayState, $ as renderAttaformState, a0 as useRegister, a1 as useRegistry, a2 as useWizard, a3 as vRegister } from './shared/attaform.FmqKO1Ex.cjs';
|
|
2
|
-
export { b as ArrayItem, c as ArrayPath, d as AttaformDefaults, C as CoercionEntry, e as CoercionRegistry, f as CoercionResult, g as CustomDirectiveRegisterAssignerFn, h as DeepPartial, D as DefaultValuesInput, i as DefaultValuesResponse, j as DefaultValuesShape, k as DisplayCtx, l as DisplayMachine, m as DisplayState, E as ErrorInput, n as ErrorsProxyShape, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, F as FormKey, v as FormMeta, G as GenericForm, w as GetDisplayState, H as HandleSubmit, x as HistoryConfig, I as IsTuple, y as IsUnion, J as JoinSegments, z as Json, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, P as OnInvalidSubmitPolicy, Q as OnSubmit, R as PartialFlatPath, S as Path, T as PathKey, V as PendingValidationStatus, W as Primitive, X as ROOT_PATH, Y as ROOT_PATH_KEY, Z as ReactiveValidationStatus, _ as RegisterDirective, $ as RegisterFlatPath, a0 as RegisterOptions, a1 as RegisterSelectModifier, a2 as RegisterTextModifier, a3 as RegisterTransform, a4 as RegisterValue, a5 as Segment, a6 as SetValueCallback, a7 as SetValuePayload, a8 as SettledValidationStatus, a9 as SlimPrimitiveKind, aa as SlimRuntimeOf, ab as SubmitHandler, ac as Unset, U as UseFormConfiguration, a as UseFormReturnType, ad as ValidateOn, ae as ValidateOnConfig, af as ValidationError, ag as ValidationResponse, ah as ValidationResponseWithoutValue, ai as ValueOfUnion, aj as WriteMeta, ak as WriteShape, al as canonicalizePath, am as isPathPrefix, an as isUnset, ao as parseDottedPath, ap as unset } from './shared/attaform.DniawQLP.cjs';
|
|
3
|
-
export { UseFormConfig, UseFormConfigV3, UseFormConfigV4, UseFormReturn, UseFormReturnV3, UseFormReturnV4, fieldMeta, useForm, withMeta } from './index.cjs';
|
|
4
|
-
export { P as PathInput, a as PathOutput } from './shared/attaform.BGDV42hI.cjs';
|
|
5
|
-
import 'vue';
|
|
6
|
-
import './shared/attaform.DRUT703x.cjs';
|
|
7
|
-
import 'zod';
|
package/dist/zod.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { a as AnyForm, b as AttaformDevtoolsBridge, c as AttaformError, d as AttaformErrorCode, e as AttaformPluginOptions, A as AttaformRegistry, C as CompiledStep, D as DEFAULT_TIMINGS, f as DEVTOOLS_WINDOW_KEY, g as DisplayTimings, F as FormStatus, h as FormStatusSeed, G as GateMarker, I as InjectWizardInput, i as InvalidPathError, j as InvalidUseFormConfigError, L as LazyMarker, O as OutsideSetupError, R as RegistryNotInstalledError, k as ReservedFormKeyError, S as SerializedAttaformState, l as SerializedFormData, m as StepSlot, n as SubmitErrorHandlerError, U as UseRegisterReturn, o as UseWizardReturnType, W as WizardAggregateError, p as WizardCtx, q as WizardCtxForm, r as WizardOnError, s as WizardOnSubmit, t as WizardOptions, u as WizardPersistFn, v as WizardRestoreFn, w as WizardRestoreState, x as WizardStatusesProxy, y as WizardSubmitContext, z as assignKey, B as createAttaform, E as createRegistry, H as defaultCoercionRules, J as defaultDisplayState, K as defineCoercion, M as escapeForInlineScript, N as gate, P as getRegistryFromApp, Q as hydrateAttaformState, T as injectForm, V as injectWizard, X as isRegisterValue, Y as kAttaformRegistry, Z as lazy, _ as makeDefaultDisplayState, $ as renderAttaformState, a0 as useRegister, a1 as useRegistry, a2 as useWizard, a3 as vRegister } from './shared/attaform.F2Q8iv38.js';
|
|
2
|
-
export { b as ArrayItem, c as ArrayPath, d as AttaformDefaults, C as CoercionEntry, e as CoercionRegistry, f as CoercionResult, g as CustomDirectiveRegisterAssignerFn, h as DeepPartial, D as DefaultValuesInput, i as DefaultValuesResponse, j as DefaultValuesShape, k as DisplayCtx, l as DisplayMachine, m as DisplayState, E as ErrorInput, n as ErrorsProxyShape, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, F as FormKey, v as FormMeta, G as GenericForm, w as GetDisplayState, H as HandleSubmit, x as HistoryConfig, I as IsTuple, y as IsUnion, J as JoinSegments, z as Json, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, P as OnInvalidSubmitPolicy, Q as OnSubmit, R as PartialFlatPath, S as Path, T as PathKey, V as PendingValidationStatus, W as Primitive, X as ROOT_PATH, Y as ROOT_PATH_KEY, Z as ReactiveValidationStatus, _ as RegisterDirective, $ as RegisterFlatPath, a0 as RegisterOptions, a1 as RegisterSelectModifier, a2 as RegisterTextModifier, a3 as RegisterTransform, a4 as RegisterValue, a5 as Segment, a6 as SetValueCallback, a7 as SetValuePayload, a8 as SettledValidationStatus, a9 as SlimPrimitiveKind, aa as SlimRuntimeOf, ab as SubmitHandler, ac as Unset, U as UseFormConfiguration, a as UseFormReturnType, ad as ValidateOn, ae as ValidateOnConfig, af as ValidationError, ag as ValidationResponse, ah as ValidationResponseWithoutValue, ai as ValueOfUnion, aj as WriteMeta, ak as WriteShape, al as canonicalizePath, am as isPathPrefix, an as isUnset, ao as parseDottedPath, ap as unset } from './shared/attaform.DniawQLP.js';
|
|
3
|
-
export { UseFormConfig, UseFormConfigV3, UseFormConfigV4, UseFormReturn, UseFormReturnV3, UseFormReturnV4, fieldMeta, useForm, withMeta } from './index.js';
|
|
4
|
-
export { P as PathInput, a as PathOutput } from './shared/attaform.Fp3sCrVs.js';
|
|
5
|
-
import 'vue';
|
|
6
|
-
import './shared/attaform.DRUT703x.js';
|
|
7
|
-
import 'zod';
|
package/dist/zod.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|