attaform 0.17.0 → 0.17.1

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 (56) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.cts +4 -4
  3. package/dist/index.d.mts +4 -4
  4. package/dist/index.d.ts +4 -4
  5. package/dist/index.mjs +2 -2
  6. package/dist/nuxt.d.cts +1 -1
  7. package/dist/nuxt.d.mts +1 -1
  8. package/dist/nuxt.d.ts +1 -1
  9. package/dist/shared/{attaform.ClfCi1i2.d.mts → attaform.B1jvxsOF.d.mts} +1 -1
  10. package/dist/shared/{attaform.BT55rDNN.mjs → attaform.B3ZaPIzS.mjs} +15 -2
  11. package/dist/shared/attaform.B3ZaPIzS.mjs.map +1 -0
  12. package/dist/shared/{attaform.0Wg7UEeX.cjs → attaform.B5qiXQwN.cjs} +10 -2
  13. package/dist/shared/attaform.B5qiXQwN.cjs.map +1 -0
  14. package/dist/shared/{attaform.C6_zOf8x.cjs → attaform.BV40t5y2.cjs} +16 -6
  15. package/dist/shared/attaform.BV40t5y2.cjs.map +1 -0
  16. package/dist/shared/attaform.C0iFnTN0.d.ts +165 -0
  17. package/dist/shared/{attaform.D7lomopc.d.cts → attaform.C6qzEdIM.d.cts} +1 -1
  18. package/dist/shared/attaform.CHorcsIU.d.cts +165 -0
  19. package/dist/shared/{attaform.B0zue7zt.d.ts → attaform.CTwNcpLE.d.ts} +1 -1
  20. package/dist/shared/{attaform.D6Q5ZP8L.mjs → attaform.CVCmBKZX.mjs} +10 -2
  21. package/dist/shared/attaform.CVCmBKZX.mjs.map +1 -0
  22. package/dist/shared/{attaform.BYbsV2Wv.d.mts → attaform.C_5aB6EQ.d.cts} +95 -15
  23. package/dist/shared/{attaform.BYbsV2Wv.d.ts → attaform.C_5aB6EQ.d.mts} +95 -15
  24. package/dist/shared/{attaform.BYbsV2Wv.d.cts → attaform.C_5aB6EQ.d.ts} +95 -15
  25. package/dist/shared/{attaform.BFumZXY2.cjs → attaform.Cer8JO_P.cjs} +15 -2
  26. package/dist/shared/attaform.Cer8JO_P.cjs.map +1 -0
  27. package/dist/shared/{attaform.Cj0pCNVn.mjs → attaform.CpERWz3u.mjs} +16 -6
  28. package/dist/shared/attaform.CpERWz3u.mjs.map +1 -0
  29. package/dist/shared/attaform.CuE-bS1C.d.mts +165 -0
  30. package/dist/zod-v3.cjs +2 -2
  31. package/dist/zod-v3.d.cts +26 -4
  32. package/dist/zod-v3.d.mts +26 -4
  33. package/dist/zod-v3.d.ts +26 -4
  34. package/dist/zod-v3.mjs +2 -2
  35. package/dist/zod-v4.cjs +2 -2
  36. package/dist/zod-v4.d.cts +4 -4
  37. package/dist/zod-v4.d.mts +4 -4
  38. package/dist/zod-v4.d.ts +4 -4
  39. package/dist/zod-v4.mjs +2 -2
  40. package/dist/zod.cjs +3 -3
  41. package/dist/zod.cjs.map +1 -1
  42. package/dist/zod.d.cts +6 -5
  43. package/dist/zod.d.mts +6 -5
  44. package/dist/zod.d.ts +6 -5
  45. package/dist/zod.mjs +3 -3
  46. package/dist/zod.mjs.map +1 -1
  47. package/package.json +4 -4
  48. package/dist/shared/attaform.0Wg7UEeX.cjs.map +0 -1
  49. package/dist/shared/attaform.AOgGyRoI.d.cts +0 -65
  50. package/dist/shared/attaform.BFumZXY2.cjs.map +0 -1
  51. package/dist/shared/attaform.BQ-iGGWd.d.mts +0 -65
  52. package/dist/shared/attaform.BT55rDNN.mjs.map +0 -1
  53. package/dist/shared/attaform.C6_zOf8x.cjs.map +0 -1
  54. package/dist/shared/attaform.CX9v2M8k.d.ts +0 -65
  55. package/dist/shared/attaform.Cj0pCNVn.mjs.map +0 -1
  56. package/dist/shared/attaform.D6Q5ZP8L.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const plugin = require('./shared/attaform.Dee2rU1P.cjs');
4
4
  const serialize = require('./shared/attaform.C8LVFVVe.cjs');
5
- const useFormContext = require('./shared/attaform.BFumZXY2.cjs');
5
+ const useFormContext = require('./shared/attaform.Cer8JO_P.cjs');
6
6
  const paths = require('./shared/attaform.BBM2muQ9.cjs');
7
7
 
8
8
  function escapeForInlineScript(json) {
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { App, InjectionKey, Plugin } from 'vue';
2
- import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.BYbsV2Wv.cjs';
3
- export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.BYbsV2Wv.cjs';
4
- export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.D7lomopc.cjs';
2
+ import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.C_5aB6EQ.cjs';
3
+ export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.C_5aB6EQ.cjs';
4
+ export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.C6qzEdIM.cjs';
5
5
  export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SensitivePersistFieldError, d as SubmitErrorHandlerError } from './shared/attaform.B7rzpK1U.cjs';
6
6
 
7
7
  /**
@@ -326,7 +326,7 @@ declare function escapeForInlineScript(json: string): string;
326
326
  * Returns the same form API as the typed entry points; see
327
327
  * `UseFormReturnType` for the full surface.
328
328
  */
329
- declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType>;
329
+ declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form, ReadForm extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType, ReadForm>;
330
330
 
331
331
  /**
332
332
  * Symbol slot used by custom directive integrations to install an
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { App, InjectionKey, Plugin } from 'vue';
2
- import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.BYbsV2Wv.mjs';
3
- export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.BYbsV2Wv.mjs';
4
- export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.ClfCi1i2.mjs';
2
+ import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.C_5aB6EQ.mjs';
3
+ export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.C_5aB6EQ.mjs';
4
+ export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.B1jvxsOF.mjs';
5
5
  export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SensitivePersistFieldError, d as SubmitErrorHandlerError } from './shared/attaform.B7rzpK1U.mjs';
6
6
 
7
7
  /**
@@ -326,7 +326,7 @@ declare function escapeForInlineScript(json: string): string;
326
326
  * Returns the same form API as the typed entry points; see
327
327
  * `UseFormReturnType` for the full surface.
328
328
  */
329
- declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType>;
329
+ declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form, ReadForm extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType, ReadForm>;
330
330
 
331
331
  /**
332
332
  * Symbol slot used by custom directive integrations to install an
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { App, InjectionKey, Plugin } from 'vue';
2
- import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.BYbsV2Wv.js';
3
- export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.BYbsV2Wv.js';
4
- export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.B0zue7zt.js';
2
+ import { C as CoercionRegistry, S as SlimPrimitiveKind, a as CoercionEntry, A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, b as AbstractSchema, D as DeepPartial, c as DefaultValuesShape, d as UseFormReturnType, R as RegisterValue, e as RegisterModelDynamicCustomDirective, f as ShouldShowErrors, V as ValidationError, g as ApiErrorEnvelope, h as ApiErrorDetails } from './shared/attaform.C_5aB6EQ.js';
3
+ export { i as ApiErrorEntry, j as ArrayItem, k as ArrayPath, l as CoercionResult, m as CustomDirectiveRegisterAssignerFn, n as DefaultValuesResponse, o as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, v as FormMeta, w as FormStorage, x as FormStorageKind, H as HandleSubmit, y as HistoryConfig, I as IsTuple, z as IsUnion, J as JoinSegments, K as KeyofUnion, L as LiftedValueShape, M as MetaTrackerValue, N as NestedReadType, B as NestedType, O as OnError, E as OnInvalidSubmitPolicy, P as OnSubmit, Q as Path, T as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, _ as ROOT_PATH, $ as ROOT_PATH_KEY, a0 as ReactiveValidationStatus, a1 as RegisterDirective, a2 as RegisterFlatPath, a3 as RegisterOptions, a4 as RegisterSelectModifier, a5 as RegisterTextModifier, a6 as RegisterTransform, a7 as Segment, a8 as SetValueCallback, a9 as SetValuePayload, aa as SettledValidationStatus, ab as ShouldShowErrorsConfig, ac as SlimRuntimeOf, ad as SubmitHandler, ae as Unset, af as ValidateOn, ag as ValidateOnConfig, ah as ValidationResponse, ai as ValidationResponseWithoutValue, aj as ValueOfUnion, ak as WriteMeta, al as WriteShape, am as canonicalizePath, an as isPathPrefix, ao as isUnset, ap as parseDottedPath, aq as unset } from './shared/attaform.C_5aB6EQ.js';
4
+ export { A as AttaformErrorCode, i as injectForm, u as useRegister } from './shared/attaform.CTwNcpLE.js';
5
5
  export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SensitivePersistFieldError, d as SubmitErrorHandlerError } from './shared/attaform.B7rzpK1U.js';
6
6
 
7
7
  /**
@@ -326,7 +326,7 @@ declare function escapeForInlineScript(json: string): string;
326
326
  * Returns the same form API as the typed entry points; see
327
327
  * `UseFormReturnType` for the full surface.
328
328
  */
329
- declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType>;
329
+ declare function useAbstractForm<Form extends GenericForm, GetValueFormType extends GenericForm = Form, ReadForm extends GenericForm = Form>(configuration: UseFormConfiguration<Form, GetValueFormType, AbstractSchema<Form, GetValueFormType>, DeepPartial<DefaultValuesShape<Form>>>): UseFormReturnType<Form, GetValueFormType, ReadForm>;
330
330
 
331
331
  /**
332
332
  * Symbol slot used by custom directive integrations to install an
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { I as InvalidPathError } from './shared/attaform.CIEQgJnM.mjs';
2
2
  export { A as AnonPersistError, a as AttaformError, D as DEFAULT_SENSITIVE_NAMES, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, d as ReservedFormKeyError, S as SensitivePersistFieldError, e as SubmitErrorHandlerError, f as assignKey, c as createAttaform, h as createRegistry, g as getRegistryFromApp, i as isRegisterValue, k as kAttaformRegistry, u as useRegister, j as useRegistry, v as vRegister } from './shared/attaform.CIEQgJnM.mjs';
3
3
  export { h as hydrateAttaformState, r as renderAttaformState } from './shared/attaform.Vo-Kft0t.mjs';
4
- import { n as normalizeNumericOption } from './shared/attaform.BT55rDNN.mjs';
5
- export { A as AttaformErrorCode, d as defaultCoercionRules, b as defaultShouldShowErrors, c as defineCoercion, i as injectForm, a as isUnset, u as unset, e as useForm } from './shared/attaform.BT55rDNN.mjs';
4
+ import { n as normalizeNumericOption } from './shared/attaform.B3ZaPIzS.mjs';
5
+ export { A as AttaformErrorCode, d as defaultCoercionRules, b as defaultShouldShowErrors, c as defineCoercion, i as injectForm, a as isUnset, u as unset, e as useForm } from './shared/attaform.B3ZaPIzS.mjs';
6
6
  import { c as canonicalizePath } from './shared/attaform.h1sq3BFu.mjs';
7
7
  export { R as ROOT_PATH, a as ROOT_PATH_KEY, i as isPathPrefix, p as parseDottedPath } from './shared/attaform.h1sq3BFu.mjs';
8
8
 
package/dist/nuxt.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { A as AttaformDefaults } from './shared/attaform.BYbsV2Wv.cjs';
2
+ import { A as AttaformDefaults } from './shared/attaform.C_5aB6EQ.cjs';
3
3
  import 'vue';
4
4
 
5
5
  /**
package/dist/nuxt.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { A as AttaformDefaults } from './shared/attaform.BYbsV2Wv.mjs';
2
+ import { A as AttaformDefaults } from './shared/attaform.C_5aB6EQ.mjs';
3
3
  import 'vue';
4
4
 
5
5
  /**
package/dist/nuxt.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { A as AttaformDefaults } from './shared/attaform.BYbsV2Wv.js';
2
+ import { A as AttaformDefaults } from './shared/attaform.C_5aB6EQ.js';
3
3
  import 'vue';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { G as GenericForm, F as FormKey, d as UseFormReturnType, R as RegisterValue } from './attaform.BYbsV2Wv.mjs';
1
+ import { G as GenericForm, F as FormKey, d as UseFormReturnType, R as RegisterValue } from './attaform.C_5aB6EQ.mjs';
2
2
  import { Ref } from 'vue';
3
3
 
4
4
  /**
@@ -2456,6 +2456,10 @@ function buildFormApi(state, formInstanceId, options = {}) {
2456
2456
  void persistence.clearPersistedDraft(segments).catch(() => void 0);
2457
2457
  }
2458
2458
  };
2459
+ function clear(pathInput) {
2460
+ const segments = pathInput === void 0 ? ROOT_PATH : canonicalizePath(pathInput).segments;
2461
+ return state.clear(segments);
2462
+ }
2459
2463
  const persist = async (pathInput, options2) => {
2460
2464
  const segments = canonicalizePath(pathInput).segments;
2461
2465
  enforceSensitiveCheck(segments, options2?.acknowledgeSensitive === true, state.isSensitivePath);
@@ -2518,6 +2522,7 @@ function buildFormApi(state, formInstanceId, options = {}) {
2518
2522
  meta: formMeta,
2519
2523
  reset,
2520
2524
  resetField,
2525
+ clear,
2521
2526
  persist,
2522
2527
  clearPersistedDraft,
2523
2528
  focusFirstError,
@@ -3404,6 +3409,9 @@ function createFormStore(options) {
3404
3409
  );
3405
3410
  }
3406
3411
  }
3412
+ function clear(path) {
3413
+ return setValueAtPath(path, schema.getEmptyValueAtPath(path));
3414
+ }
3407
3415
  function reset(nextDefaultValues) {
3408
3416
  const resetSource = nextDefaultValues ?? defaultValues;
3409
3417
  const completedResetConstraints = resetSource === void 0 ? void 0 : mergeStructural(schema, [], resetSource);
@@ -3614,6 +3622,7 @@ function createFormStore(options) {
3614
3622
  getValueAtPath,
3615
3623
  reset,
3616
3624
  resetField,
3625
+ clear,
3617
3626
  setSchemaErrorsForPath,
3618
3627
  setAllSchemaErrors,
3619
3628
  clearSchemaErrors,
@@ -4326,7 +4335,11 @@ function useAbstractForm(configuration) {
4326
4335
  if (merged.rememberVariants !== void 0) {
4327
4336
  apiOptions.rememberVariants = merged.rememberVariants;
4328
4337
  }
4329
- return buildFormApi(state, formInstanceId, apiOptions);
4338
+ return buildFormApi(
4339
+ state,
4340
+ formInstanceId,
4341
+ apiOptions
4342
+ );
4330
4343
  }
4331
4344
  function mergeWithDefaults(defaults, configuration) {
4332
4345
  const strict = configuration.strict ?? defaults.strict;
@@ -4804,4 +4817,4 @@ function warnIfAmbientProviderHadDuplicates() {
4804
4817
  }
4805
4818
 
4806
4819
  export { AttaformErrorCode as A, isUnset as a, defaultShouldShowErrors as b, defineCoercion as c, defaultCoercionRules as d, useAbstractForm as e, setAtPath as f, getAtPath as g, humanize as h, injectForm as i, isPlainRecord as j, normalizeNumericOption as n, slimKindOf as s, unset as u };
4807
- //# sourceMappingURL=attaform.BT55rDNN.mjs.map
4820
+ //# sourceMappingURL=attaform.B3ZaPIzS.mjs.map