attaform 0.27.6 → 0.29.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 (192) hide show
  1. package/dist/abstract.d.mts +5 -4
  2. package/dist/abstract.mjs +4 -3
  3. package/dist/chunks/fingerprint.mjs +1 -2
  4. package/dist/chunks/fingerprint2.mjs +2 -3
  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/dev/shared/attaform-dev.A-TpJW0B.mjs +207 -0
  15. package/dist/dev/shared/attaform-dev.BO-71R54.mjs +820 -0
  16. package/dist/{shared/attaform.D6tk90Rc.cjs → dev/shared/attaform-dev.BgM6FdtA.mjs} +324 -73
  17. package/dist/dev/shared/attaform-dev.ButTkwHd.mjs +375 -0
  18. package/dist/{shared/attaform.BJGA_UOS.mjs → dev/shared/attaform-dev.BxfsuwBR.mjs} +8 -1
  19. package/dist/{shared/attaform.nMaz2C5P.mjs → dev/shared/attaform-dev.D8aoKb89.mjs} +190 -400
  20. package/dist/dev/shared/attaform-dev.DD5m2W51.mjs +220 -0
  21. package/dist/{shared/attaform.CKH2lGdL.mjs → dev/shared/attaform-dev.DHuydLAC.mjs} +3867 -4731
  22. package/dist/{shared/attaform.DYEr28Pt.mjs → dev/shared/attaform-dev.DrzObAZo.mjs} +6 -7
  23. package/dist/{shared/attaform.B1ZYt2Li.mjs → dev/shared/attaform-dev.q6UutkCx.mjs} +274 -672
  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 +14 -6
  33. package/dist/index.mjs +5 -4
  34. package/dist/nuxt.d.mts +10 -10
  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.CoR4mWfv.mjs → attaform.B0dKL8ST.mjs} +309 -46
  42. package/dist/shared/{attaform.Cs2Rbdlo.mjs → attaform.BK0cgu2K.mjs} +123 -140
  43. package/dist/shared/{attaform.B9Wyhfro.cjs → attaform.BndjUUYX.mjs} +11 -16
  44. package/dist/shared/{attaform.CQN9R62B.cjs → attaform.BxfsuwBR.mjs} +9 -4
  45. package/dist/shared/attaform.C2MVyuxC.mjs +811 -0
  46. package/dist/shared/{attaform.Fp3sCrVs.d.ts → attaform.CIWLMY-R.d.mts} +2 -2
  47. package/dist/shared/attaform.CZMAYwSK.mjs +6383 -0
  48. package/dist/shared/attaform.CZYt_5N_.mjs +207 -0
  49. package/dist/shared/{attaform.DniawQLP.d.cts → attaform.CsoeRi3P.d.mts} +490 -98
  50. package/dist/shared/attaform.Cvao8bW5.mjs +358 -0
  51. package/dist/shared/attaform.D0x-qSXm.mjs +197 -0
  52. package/dist/shared/{attaform.D8kliaKw.cjs → attaform.D1fnTifF.mjs} +279 -692
  53. package/dist/shared/{attaform.CHlJLAiv.d.mts → attaform.DDtqHYv1.d.mts} +155 -184
  54. package/dist/shared/{attaform.Biytrv0-.cjs → attaform.DffRL5pP.mjs} +215 -547
  55. package/dist/shared/attaform.DhnPb6nK.mjs +0 -1
  56. package/dist/shared/attaform.KvlEedlF.mjs +0 -1
  57. package/dist/shared/attaform.axHXVQO7.d.mts +44 -0
  58. package/dist/shared/attaform.v0fQtWyA.mjs +0 -1
  59. package/dist/transforms.d.mts +0 -22
  60. package/dist/transforms.mjs +1 -2
  61. package/dist/vite.d.mts +30 -9
  62. package/dist/vite.mjs +27 -4
  63. package/dist/webpack.d.mts +6 -1
  64. package/dist/webpack.mjs +0 -1
  65. package/dist/zod-v3.d.mts +13 -6
  66. package/dist/zod-v3.mjs +17 -4
  67. package/dist/zod-v4.d.mts +19 -26
  68. package/dist/zod-v4.mjs +16 -4
  69. package/dist/zod.d.mts +4 -3
  70. package/dist/zod.mjs +5 -4
  71. package/package.json +38 -20
  72. package/skills/attaform/SKILL.md +6 -2
  73. package/skills/attaform/references/custom-components.md +7 -2
  74. package/skills/attaform/references/errors.md +8 -3
  75. package/skills/attaform/references/saving.md +77 -0
  76. package/skills/attaform/references/wizards.md +10 -8
  77. package/dist/abstract.cjs +0 -48
  78. package/dist/abstract.cjs.map +0 -1
  79. package/dist/abstract.d.cts +0 -42
  80. package/dist/abstract.d.ts +0 -42
  81. package/dist/abstract.mjs.map +0 -1
  82. package/dist/chunks/dev-key-collision-warnings.cjs +0 -25
  83. package/dist/chunks/dev-key-collision-warnings.cjs.map +0 -1
  84. package/dist/chunks/dev-key-collision-warnings.mjs.map +0 -1
  85. package/dist/chunks/devtools.cjs +0 -157
  86. package/dist/chunks/devtools.cjs.map +0 -1
  87. package/dist/chunks/devtools.mjs.map +0 -1
  88. package/dist/chunks/fingerprint.cjs.map +0 -1
  89. package/dist/chunks/fingerprint.mjs.map +0 -1
  90. package/dist/chunks/fingerprint2.cjs.map +0 -1
  91. package/dist/chunks/fingerprint2.mjs.map +0 -1
  92. package/dist/esbuild.cjs +0 -28
  93. package/dist/esbuild.cjs.map +0 -1
  94. package/dist/esbuild.d.cts +0 -56
  95. package/dist/esbuild.d.ts +0 -56
  96. package/dist/esbuild.mjs.map +0 -1
  97. package/dist/index.cjs +0 -51
  98. package/dist/index.cjs.map +0 -1
  99. package/dist/index.d.cts +0 -249
  100. package/dist/index.d.ts +0 -249
  101. package/dist/index.mjs.map +0 -1
  102. package/dist/nuxt.cjs +0 -84
  103. package/dist/nuxt.cjs.map +0 -1
  104. package/dist/nuxt.d.cts +0 -66
  105. package/dist/nuxt.d.ts +0 -66
  106. package/dist/nuxt.mjs.map +0 -1
  107. package/dist/rollup.cjs +0 -24
  108. package/dist/rollup.cjs.map +0 -1
  109. package/dist/rollup.d.cts +0 -35
  110. package/dist/rollup.d.ts +0 -35
  111. package/dist/rollup.mjs.map +0 -1
  112. package/dist/rspack.cjs +0 -10
  113. package/dist/rspack.cjs.map +0 -1
  114. package/dist/rspack.d.cts +0 -40
  115. package/dist/rspack.d.ts +0 -40
  116. package/dist/rspack.mjs.map +0 -1
  117. package/dist/runtime/components/AttaformDevtoolsPanel.vue.d.ts +0 -7
  118. package/dist/runtime/components/DevtoolsValueTree.vue.d.ts +0 -35
  119. package/dist/runtime/plugins/attaform.cjs +0 -43
  120. package/dist/runtime/plugins/attaform.cjs.map +0 -1
  121. package/dist/runtime/plugins/attaform.d.cts +0 -5
  122. package/dist/runtime/plugins/attaform.d.ts +0 -5
  123. package/dist/runtime/plugins/attaform.mjs.map +0 -1
  124. package/dist/shared/attaform.B1ZYt2Li.mjs.map +0 -1
  125. package/dist/shared/attaform.B9Wyhfro.cjs.map +0 -1
  126. package/dist/shared/attaform.BGDV42hI.d.cts +0 -232
  127. package/dist/shared/attaform.BJGA_UOS.mjs.map +0 -1
  128. package/dist/shared/attaform.Biytrv0-.cjs.map +0 -1
  129. package/dist/shared/attaform.Bn0IzhD_.cjs +0 -800
  130. package/dist/shared/attaform.Bn0IzhD_.cjs.map +0 -1
  131. package/dist/shared/attaform.C9fPTxjB.d.cts +0 -41
  132. package/dist/shared/attaform.C9fPTxjB.d.ts +0 -41
  133. package/dist/shared/attaform.CKH2lGdL.mjs.map +0 -1
  134. package/dist/shared/attaform.CQN9R62B.cjs.map +0 -1
  135. package/dist/shared/attaform.CoR4mWfv.mjs.map +0 -1
  136. package/dist/shared/attaform.Cs2Rbdlo.mjs.map +0 -1
  137. package/dist/shared/attaform.D6tk90Rc.cjs.map +0 -1
  138. package/dist/shared/attaform.D8kliaKw.cjs.map +0 -1
  139. package/dist/shared/attaform.DLknk9nF.d.mts +0 -232
  140. package/dist/shared/attaform.DMxM2kol.mjs +0 -1275
  141. package/dist/shared/attaform.DMxM2kol.mjs.map +0 -1
  142. package/dist/shared/attaform.DRUT703x.d.cts +0 -56
  143. package/dist/shared/attaform.DRUT703x.d.ts +0 -56
  144. package/dist/shared/attaform.DYEr28Pt.mjs.map +0 -1
  145. package/dist/shared/attaform.DdQN7sgN.cjs +0 -1302
  146. package/dist/shared/attaform.DdQN7sgN.cjs.map +0 -1
  147. package/dist/shared/attaform.DhnPb6nK.mjs.map +0 -1
  148. package/dist/shared/attaform.DniawQLP.d.mts +0 -4763
  149. package/dist/shared/attaform.DniawQLP.d.ts +0 -4763
  150. package/dist/shared/attaform.DoQm_Vkd.cjs +0 -58
  151. package/dist/shared/attaform.DoQm_Vkd.cjs.map +0 -1
  152. package/dist/shared/attaform.DrvMscNX.cjs +0 -7697
  153. package/dist/shared/attaform.DrvMscNX.cjs.map +0 -1
  154. package/dist/shared/attaform.F2Q8iv38.d.ts +0 -2494
  155. package/dist/shared/attaform.FmqKO1Ex.d.cts +0 -2494
  156. package/dist/shared/attaform.KvlEedlF.mjs.map +0 -1
  157. package/dist/shared/attaform.RaTzp1WF.cjs +0 -26
  158. package/dist/shared/attaform.RaTzp1WF.cjs.map +0 -1
  159. package/dist/shared/attaform.nMaz2C5P.mjs.map +0 -1
  160. package/dist/shared/attaform.v0fQtWyA.mjs.map +0 -1
  161. package/dist/shared/attaform.yUrz7C2z.cjs +0 -29
  162. package/dist/shared/attaform.yUrz7C2z.cjs.map +0 -1
  163. package/dist/transforms.cjs +0 -12
  164. package/dist/transforms.cjs.map +0 -1
  165. package/dist/transforms.d.cts +0 -73
  166. package/dist/transforms.d.ts +0 -73
  167. package/dist/transforms.mjs.map +0 -1
  168. package/dist/vite.cjs +0 -363
  169. package/dist/vite.cjs.map +0 -1
  170. package/dist/vite.d.cts +0 -133
  171. package/dist/vite.d.ts +0 -133
  172. package/dist/vite.mjs.map +0 -1
  173. package/dist/webpack.cjs +0 -10
  174. package/dist/webpack.cjs.map +0 -1
  175. package/dist/webpack.d.cts +0 -37
  176. package/dist/webpack.d.ts +0 -37
  177. package/dist/webpack.mjs.map +0 -1
  178. package/dist/zod-v3.cjs +0 -53
  179. package/dist/zod-v3.cjs.map +0 -1
  180. package/dist/zod-v3.d.cts +0 -246
  181. package/dist/zod-v3.d.ts +0 -246
  182. package/dist/zod-v3.mjs.map +0 -1
  183. package/dist/zod-v4.cjs +0 -55
  184. package/dist/zod-v4.cjs.map +0 -1
  185. package/dist/zod-v4.d.cts +0 -172
  186. package/dist/zod-v4.d.ts +0 -172
  187. package/dist/zod-v4.mjs.map +0 -1
  188. package/dist/zod.cjs +0 -51
  189. package/dist/zod.cjs.map +0 -1
  190. package/dist/zod.d.cts +0 -7
  191. package/dist/zod.d.ts +0 -7
  192. 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 };
@@ -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":";;;"}