attaform 0.27.5 → 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.
Files changed (184) hide show
  1. package/dist/abstract.d.mts +5 -4
  2. package/dist/abstract.mjs +4 -3
  3. package/dist/chunks/fingerprint.mjs +0 -1
  4. package/dist/chunks/fingerprint2.mjs +1 -2
  5. package/dist/dev/abstract.mjs +4 -0
  6. package/dist/{chunks → dev/chunks}/dev-key-collision-warnings.mjs +0 -1
  7. package/dist/{chunks → dev/chunks}/devtools.mjs +5 -6
  8. package/dist/{chunks/fingerprint.cjs → dev/chunks/fingerprint.mjs} +7 -10
  9. package/dist/{chunks/fingerprint2.cjs → dev/chunks/fingerprint2.mjs} +32 -35
  10. package/dist/dev/directive.mjs +1 -0
  11. package/dist/dev/history.mjs +89 -0
  12. package/dist/dev/index.mjs +5 -0
  13. package/dist/dev/runtime/plugins/attaform.mjs +40 -0
  14. package/dist/{shared/attaform.f2zyNh5d.cjs → dev/shared/attaform-dev.6qxD-Yqo.mjs} +187 -43
  15. package/dist/{shared/attaform.CQN9R62B.cjs → dev/shared/attaform-dev.BJGA_UOS.mjs} +1 -4
  16. package/dist/{shared/attaform.Dc1mx48r.mjs → dev/shared/attaform-dev.BR8u0YOZ.mjs} +6 -7
  17. package/dist/dev/shared/attaform-dev.BXE2cr0L.mjs +220 -0
  18. package/dist/dev/shared/attaform-dev.By4PRjt0.mjs +248 -0
  19. package/dist/{shared/attaform.Cg_8gFQ7.mjs → dev/shared/attaform-dev.D2I8e_Mm.mjs} +132 -568
  20. package/dist/dev/shared/attaform-dev.Dr2YzS5B.mjs +197 -0
  21. package/dist/{shared/attaform.nMaz2C5P.mjs → dev/shared/attaform-dev.P7cseiEG.mjs} +178 -397
  22. package/dist/{shared/attaform.BypWgXRB.mjs → dev/shared/attaform-dev.WmuhD_CZ.mjs} +3955 -5029
  23. package/dist/{shared/attaform.Dkjh_F30.mjs → dev/shared/attaform-dev.oYrkP9dj.mjs} +160 -508
  24. package/dist/dev/zod-v3.mjs +17 -0
  25. package/dist/dev/zod-v4.mjs +16 -0
  26. package/dist/dev/zod.mjs +5 -0
  27. package/dist/directive.d.mts +20 -0
  28. package/dist/directive.mjs +1 -0
  29. package/dist/esbuild.mjs +0 -1
  30. package/dist/history.d.mts +59 -0
  31. package/dist/history.mjs +89 -0
  32. package/dist/index.d.mts +11 -5
  33. package/dist/index.mjs +5 -4
  34. package/dist/nuxt.d.mts +1 -1
  35. package/dist/nuxt.mjs +5 -2
  36. package/dist/rollup.mjs +0 -1
  37. package/dist/rspack.d.mts +6 -1
  38. package/dist/rspack.mjs +0 -1
  39. package/dist/runtime/components/AttaformDevtoolsPanel.vue +9 -8
  40. package/dist/runtime/plugins/attaform.mjs +1 -2
  41. package/dist/shared/{attaform.CIBMfxg9.d.ts → attaform.B4VkS43-.d.mts} +2 -2
  42. package/dist/shared/{attaform.Cg1rUfcF.cjs → attaform.B8k8JrmK.mjs} +3778 -5297
  43. package/dist/shared/attaform.BJGA_UOS.mjs +0 -1
  44. package/dist/shared/{attaform.CTiZ9Rrv.mjs → attaform.C09fpdLS.mjs} +172 -16
  45. package/dist/shared/{attaform.Bh8A6YAc.cjs → attaform.CJP3RkGa.mjs} +141 -590
  46. package/dist/shared/{attaform.CzL2CZ8U.d.ts → attaform.Cgu-hdSb.d.mts} +328 -78
  47. package/dist/shared/attaform.Cs2Rbdlo.mjs +0 -1
  48. package/dist/shared/{attaform.DcFDQVpa.d.ts → attaform.D5V4tZWq.d.mts} +79 -179
  49. package/dist/shared/{attaform.CF-EnyJn.cjs → attaform.D6DCnnQu.mjs} +11 -16
  50. package/dist/shared/attaform.DhnPb6nK.mjs +0 -1
  51. package/dist/shared/attaform.Dq4vWxuG.mjs +197 -0
  52. package/dist/shared/attaform.JfSWdEcb.d.mts +44 -0
  53. package/dist/shared/attaform.KvlEedlF.mjs +0 -1
  54. package/dist/shared/{attaform.Crv0RNiz.cjs → attaform.NLmerepI.mjs} +175 -557
  55. package/dist/shared/attaform.h0i6LijT.mjs +242 -0
  56. package/dist/shared/{attaform.Biytrv0-.cjs → attaform.uLbun31C.mjs} +204 -544
  57. package/dist/shared/attaform.v0fQtWyA.mjs +0 -1
  58. package/dist/shared/attaform.wfY8XFvm.mjs +197 -0
  59. package/dist/transforms.mjs +0 -1
  60. package/dist/vite.d.mts +17 -5
  61. package/dist/vite.mjs +24 -2
  62. package/dist/webpack.d.mts +6 -1
  63. package/dist/webpack.mjs +0 -1
  64. package/dist/zod-v3.d.mts +11 -6
  65. package/dist/zod-v3.mjs +17 -4
  66. package/dist/zod-v4.d.mts +12 -6
  67. package/dist/zod-v4.mjs +16 -4
  68. package/dist/zod.d.mts +4 -3
  69. package/dist/zod.mjs +5 -4
  70. package/package.json +23 -8
  71. package/skills/attaform/SKILL.md +2 -1
  72. package/dist/abstract.cjs +0 -48
  73. package/dist/abstract.cjs.map +0 -1
  74. package/dist/abstract.d.cts +0 -42
  75. package/dist/abstract.d.ts +0 -42
  76. package/dist/abstract.mjs.map +0 -1
  77. package/dist/chunks/dev-key-collision-warnings.cjs +0 -25
  78. package/dist/chunks/dev-key-collision-warnings.cjs.map +0 -1
  79. package/dist/chunks/dev-key-collision-warnings.mjs.map +0 -1
  80. package/dist/chunks/devtools.cjs +0 -157
  81. package/dist/chunks/devtools.cjs.map +0 -1
  82. package/dist/chunks/devtools.mjs.map +0 -1
  83. package/dist/chunks/fingerprint.cjs.map +0 -1
  84. package/dist/chunks/fingerprint.mjs.map +0 -1
  85. package/dist/chunks/fingerprint2.cjs.map +0 -1
  86. package/dist/chunks/fingerprint2.mjs.map +0 -1
  87. package/dist/esbuild.cjs +0 -28
  88. package/dist/esbuild.cjs.map +0 -1
  89. package/dist/esbuild.d.cts +0 -56
  90. package/dist/esbuild.d.ts +0 -56
  91. package/dist/esbuild.mjs.map +0 -1
  92. package/dist/index.cjs +0 -51
  93. package/dist/index.cjs.map +0 -1
  94. package/dist/index.d.cts +0 -249
  95. package/dist/index.d.ts +0 -249
  96. package/dist/index.mjs.map +0 -1
  97. package/dist/nuxt.cjs +0 -84
  98. package/dist/nuxt.cjs.map +0 -1
  99. package/dist/nuxt.d.cts +0 -66
  100. package/dist/nuxt.d.ts +0 -66
  101. package/dist/nuxt.mjs.map +0 -1
  102. package/dist/rollup.cjs +0 -24
  103. package/dist/rollup.cjs.map +0 -1
  104. package/dist/rollup.d.cts +0 -35
  105. package/dist/rollup.d.ts +0 -35
  106. package/dist/rollup.mjs.map +0 -1
  107. package/dist/rspack.cjs +0 -10
  108. package/dist/rspack.cjs.map +0 -1
  109. package/dist/rspack.d.cts +0 -40
  110. package/dist/rspack.d.ts +0 -40
  111. package/dist/rspack.mjs.map +0 -1
  112. package/dist/runtime/components/AttaformDevtoolsPanel.vue.d.ts +0 -7
  113. package/dist/runtime/components/DevtoolsValueTree.vue.d.ts +0 -35
  114. package/dist/runtime/plugins/attaform.cjs +0 -43
  115. package/dist/runtime/plugins/attaform.cjs.map +0 -1
  116. package/dist/runtime/plugins/attaform.d.cts +0 -5
  117. package/dist/runtime/plugins/attaform.d.ts +0 -5
  118. package/dist/runtime/plugins/attaform.mjs.map +0 -1
  119. package/dist/shared/attaform.B3abZaCV.d.cts +0 -2484
  120. package/dist/shared/attaform.BJGA_UOS.mjs.map +0 -1
  121. package/dist/shared/attaform.Bh8A6YAc.cjs.map +0 -1
  122. package/dist/shared/attaform.Biytrv0-.cjs.map +0 -1
  123. package/dist/shared/attaform.Bn0IzhD_.cjs +0 -800
  124. package/dist/shared/attaform.Bn0IzhD_.cjs.map +0 -1
  125. package/dist/shared/attaform.BypWgXRB.mjs.map +0 -1
  126. package/dist/shared/attaform.C9fPTxjB.d.cts +0 -41
  127. package/dist/shared/attaform.C9fPTxjB.d.ts +0 -41
  128. package/dist/shared/attaform.CF-EnyJn.cjs.map +0 -1
  129. package/dist/shared/attaform.CJ1Z9Mz4.d.mts +0 -2484
  130. package/dist/shared/attaform.CQN9R62B.cjs.map +0 -1
  131. package/dist/shared/attaform.CTiZ9Rrv.mjs.map +0 -1
  132. package/dist/shared/attaform.Cg1rUfcF.cjs.map +0 -1
  133. package/dist/shared/attaform.Cg_8gFQ7.mjs.map +0 -1
  134. package/dist/shared/attaform.Crv0RNiz.cjs.map +0 -1
  135. package/dist/shared/attaform.Cs2Rbdlo.mjs.map +0 -1
  136. package/dist/shared/attaform.CzL2CZ8U.d.cts +0 -4713
  137. package/dist/shared/attaform.CzL2CZ8U.d.mts +0 -4713
  138. package/dist/shared/attaform.DRUT703x.d.cts +0 -56
  139. package/dist/shared/attaform.DRUT703x.d.ts +0 -56
  140. package/dist/shared/attaform.DYwyM5Cp.d.cts +0 -232
  141. package/dist/shared/attaform.Dc1mx48r.mjs.map +0 -1
  142. package/dist/shared/attaform.DhnPb6nK.mjs.map +0 -1
  143. package/dist/shared/attaform.Dkjh_F30.mjs.map +0 -1
  144. package/dist/shared/attaform.DoQm_Vkd.cjs +0 -58
  145. package/dist/shared/attaform.DoQm_Vkd.cjs.map +0 -1
  146. package/dist/shared/attaform.DrHOqB-d.d.mts +0 -232
  147. package/dist/shared/attaform.KvlEedlF.mjs.map +0 -1
  148. package/dist/shared/attaform.RaTzp1WF.cjs +0 -26
  149. package/dist/shared/attaform.RaTzp1WF.cjs.map +0 -1
  150. package/dist/shared/attaform.f2zyNh5d.cjs.map +0 -1
  151. package/dist/shared/attaform.nMaz2C5P.mjs.map +0 -1
  152. package/dist/shared/attaform.v0fQtWyA.mjs.map +0 -1
  153. package/dist/shared/attaform.yUrz7C2z.cjs +0 -29
  154. package/dist/shared/attaform.yUrz7C2z.cjs.map +0 -1
  155. package/dist/transforms.cjs +0 -12
  156. package/dist/transforms.cjs.map +0 -1
  157. package/dist/transforms.d.cts +0 -73
  158. package/dist/transforms.d.ts +0 -73
  159. package/dist/transforms.mjs.map +0 -1
  160. package/dist/vite.cjs +0 -363
  161. package/dist/vite.cjs.map +0 -1
  162. package/dist/vite.d.cts +0 -133
  163. package/dist/vite.d.ts +0 -133
  164. package/dist/vite.mjs.map +0 -1
  165. package/dist/webpack.cjs +0 -10
  166. package/dist/webpack.cjs.map +0 -1
  167. package/dist/webpack.d.cts +0 -37
  168. package/dist/webpack.d.ts +0 -37
  169. package/dist/webpack.mjs.map +0 -1
  170. package/dist/zod-v3.cjs +0 -53
  171. package/dist/zod-v3.cjs.map +0 -1
  172. package/dist/zod-v3.d.cts +0 -246
  173. package/dist/zod-v3.d.ts +0 -246
  174. package/dist/zod-v3.mjs.map +0 -1
  175. package/dist/zod-v4.cjs +0 -55
  176. package/dist/zod-v4.cjs.map +0 -1
  177. package/dist/zod-v4.d.cts +0 -172
  178. package/dist/zod-v4.d.ts +0 -172
  179. package/dist/zod-v4.mjs.map +0 -1
  180. package/dist/zod.cjs +0 -51
  181. package/dist/zod.cjs.map +0 -1
  182. package/dist/zod.d.cts +0 -7
  183. package/dist/zod.d.ts +0 -7
  184. 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.DYwyM5Cp.cjs';
2
- export { P as PathInput, a as PathOutput, u as useForm } from './shared/attaform.DYwyM5Cp.cjs';
3
- import { c as AttaformError } from './shared/attaform.B3abZaCV.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.B3abZaCV.cjs';
5
- import { F as FormKey, ar as SchemaFactoryOptions, A as AbstractSchema, o as FieldMetaPayload } from './shared/attaform.CzL2CZ8U.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.CzL2CZ8U.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.CIBMfxg9.js';
2
- export { P as PathInput, a as PathOutput, u as useForm } from './shared/attaform.CIBMfxg9.js';
3
- import { c as AttaformError } from './shared/attaform.DcFDQVpa.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.DcFDQVpa.js';
5
- import { F as FormKey, ar as SchemaFactoryOptions, A as AbstractSchema, o as FieldMetaPayload } from './shared/attaform.CzL2CZ8U.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.CzL2CZ8U.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 };
@@ -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.Cg1rUfcF.cjs');
5
- const fieldMeta = require('./shared/attaform.CF-EnyJn.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.B3abZaCV.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.CzL2CZ8U.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.DYwyM5Cp.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.DcFDQVpa.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.CzL2CZ8U.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.CIBMfxg9.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":";;;"}