attaform 0.21.0 → 0.21.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.
- package/dist/chunks/dev-key-collision-warnings.cjs +1 -1
- package/dist/chunks/dev-key-collision-warnings.mjs +1 -1
- package/dist/chunks/devtools.cjs +1 -1
- package/dist/chunks/devtools.mjs +1 -1
- package/dist/chunks/fingerprint2.cjs +1 -1
- package/dist/chunks/fingerprint2.mjs +1 -1
- package/dist/chunks/indexeddb.cjs +1 -1
- package/dist/chunks/indexeddb.mjs +1 -1
- package/dist/chunks/local-storage.cjs +1 -1
- package/dist/chunks/local-storage.mjs +1 -1
- package/dist/chunks/multi-tab-sync.cjs +2 -2
- package/dist/chunks/multi-tab-sync.mjs +2 -2
- package/dist/chunks/session-storage.cjs +1 -1
- package/dist/chunks/session-storage.mjs +1 -1
- package/dist/chunks/wire-persistence.cjs +2 -2
- package/dist/chunks/wire-persistence.mjs +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +15 -14
- package/dist/index.d.mts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.mjs +5 -5
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/runtime/plugins/attaform.cjs +2 -2
- package/dist/runtime/plugins/attaform.mjs +2 -2
- package/dist/shared/{attaform.BzvOdiSI.cjs → attaform.BSkvn43g.cjs} +4 -4
- package/dist/shared/{attaform.BzvOdiSI.cjs.map → attaform.BSkvn43g.cjs.map} +1 -1
- package/dist/shared/{attaform.F8LMHHWV.d.cts → attaform.BWfliRIK.d.cts} +78 -2
- package/dist/shared/{attaform.r3PePkDR.mjs → attaform.Be8NZG9M.mjs} +9 -3
- package/dist/shared/attaform.Be8NZG9M.mjs.map +1 -0
- package/dist/shared/{attaform.CEf6wYfD.cjs → attaform.Bq5sX7TF.cjs} +2 -2
- package/dist/shared/{attaform.CEf6wYfD.cjs.map → attaform.Bq5sX7TF.cjs.map} +1 -1
- package/dist/shared/{attaform.7lzO9pdM.d.mts → attaform.Bv7dRDWK.d.ts} +78 -2
- package/dist/shared/{attaform._rsCZy2j.cjs → attaform.CICFZ1iS.cjs} +9 -3
- package/dist/shared/attaform.CICFZ1iS.cjs.map +1 -0
- package/dist/shared/{attaform.BUszFoKq.cjs → attaform.ClXwitZj.cjs} +366 -63
- package/dist/shared/attaform.ClXwitZj.cjs.map +1 -0
- package/dist/shared/{attaform.B1nyO4ec.d.cts → attaform.D0dWZsJt.d.cts} +269 -49
- package/dist/shared/{attaform.B1nyO4ec.d.mts → attaform.D0dWZsJt.d.mts} +269 -49
- package/dist/shared/{attaform.B1nyO4ec.d.ts → attaform.D0dWZsJt.d.ts} +269 -49
- package/dist/shared/{attaform.BA3vRDos.cjs → attaform.D32WwKk6.cjs} +214 -33
- package/dist/shared/attaform.D32WwKk6.cjs.map +1 -0
- package/dist/shared/{attaform.BnK_bfcb.mjs → attaform.DMEP_ENr.mjs} +4 -4
- package/dist/shared/{attaform.PnqML3xW.cjs.map → attaform.DMEP_ENr.mjs.map} +1 -1
- package/dist/shared/{attaform.DSqO6Db7.mjs → attaform.DR6RmxWZ.mjs} +367 -64
- package/dist/shared/attaform.DR6RmxWZ.mjs.map +1 -0
- package/dist/shared/{attaform.CkjTapyq.mjs → attaform.DozgVlCE.mjs} +4 -4
- package/dist/shared/{attaform.CkjTapyq.mjs.map → attaform.DozgVlCE.mjs.map} +1 -1
- package/dist/shared/{attaform.BK1RE2ha.d.ts → attaform.Duecg2NO.d.mts} +2 -2
- package/dist/shared/{attaform.BDIEq9qP.d.cts → attaform.FudOcHaa.d.cts} +2 -2
- package/dist/shared/{attaform.BQ6drorq.d.mts → attaform.MtrpT6Ki.d.ts} +2 -2
- package/dist/shared/{attaform.CRsXyy-Y.d.ts → attaform.NQ8mybyW.d.mts} +78 -2
- package/dist/shared/{attaform.PnqML3xW.cjs → attaform.S-pYLSo4.cjs} +4 -4
- package/dist/shared/{attaform.BnK_bfcb.mjs.map → attaform.S-pYLSo4.cjs.map} +1 -1
- package/dist/shared/{attaform.ezb5Nh2t.mjs → attaform.Y1ZGhM4k.mjs} +2 -2
- package/dist/shared/{attaform.ezb5Nh2t.mjs.map → attaform.Y1ZGhM4k.mjs.map} +1 -1
- package/dist/shared/{attaform.Y_Mgg0Yp.mjs → attaform.pmtahXKy.mjs} +214 -34
- package/dist/shared/attaform.pmtahXKy.mjs.map +1 -0
- package/dist/zod-v3.cjs +3 -3
- package/dist/zod-v3.d.cts +3 -3
- package/dist/zod-v3.d.mts +3 -3
- package/dist/zod-v3.d.ts +3 -3
- package/dist/zod-v3.mjs +3 -3
- package/dist/zod-v4.cjs +3 -3
- package/dist/zod-v4.d.cts +4 -4
- package/dist/zod-v4.d.mts +4 -4
- package/dist/zod-v4.d.ts +4 -4
- package/dist/zod-v4.mjs +3 -3
- package/dist/zod.cjs +5 -5
- package/dist/zod.cjs.map +1 -1
- package/dist/zod.d.cts +52 -10
- package/dist/zod.d.mts +52 -10
- package/dist/zod.d.ts +52 -10
- package/dist/zod.mjs +6 -6
- package/dist/zod.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/shared/attaform.BA3vRDos.cjs.map +0 -1
- package/dist/shared/attaform.BUszFoKq.cjs.map +0 -1
- package/dist/shared/attaform.DSqO6Db7.mjs.map +0 -1
- package/dist/shared/attaform.Y_Mgg0Yp.mjs.map +0 -1
- package/dist/shared/attaform._rsCZy2j.cjs.map +0 -1
- package/dist/shared/attaform.r3PePkDR.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PERSISTENCE_MODULE_KEY, s as normalizePersistConfig } from '../shared/attaform.
|
|
1
|
+
import { P as PERSISTENCE_MODULE_KEY, s as normalizePersistConfig } from '../shared/attaform.DR6RmxWZ.mjs';
|
|
2
2
|
|
|
3
3
|
async function warnOnSchemaFingerprintMismatch(key, existing, incoming) {
|
|
4
4
|
let existingFp;
|
package/dist/chunks/devtools.cjs
CHANGED
package/dist/chunks/devtools.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const canonicalStringify = require('../shared/attaform.CQN9R62B.cjs');
|
|
4
|
-
const index = require('../shared/attaform.
|
|
4
|
+
const index = require('../shared/attaform.S-pYLSo4.cjs');
|
|
5
5
|
|
|
6
6
|
const cyclicSentinel = "<cyclic>";
|
|
7
7
|
function fingerprintZodSchema(schema) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as canonicalStringify } from '../shared/attaform.BJGA_UOS.mjs';
|
|
2
|
-
import { s as kindOf, j as getIntersectionLeft, k as getIntersectionRight, t as unwrapLazy, u as unwrapInner, v as unwrapPipe, h as getDiscriminator, e as getDiscriminatedOptions, r as getUnionOptions, n as getRecordKeyType, o as getRecordValueType, q as getTupleItems, p as getSetValueType, g as getArrayElement, m as getObjectShape, i as getEnumValues, l as getLiteralValues, c as getChecks, b as getCatchDefault, d as getDefaultValue } from '../shared/attaform.
|
|
2
|
+
import { s as kindOf, j as getIntersectionLeft, k as getIntersectionRight, t as unwrapLazy, u as unwrapInner, v as unwrapPipe, h as getDiscriminator, e as getDiscriminatedOptions, r as getUnionOptions, n as getRecordKeyType, o as getRecordValueType, q as getTupleItems, p as getSetValueType, g as getArrayElement, m as getObjectShape, i as getEnumValues, l as getLiteralValues, c as getChecks, b as getCatchDefault, d as getDefaultValue } from '../shared/attaform.DMEP_ENr.mjs';
|
|
3
3
|
|
|
4
4
|
const cyclicSentinel = "<cyclic>";
|
|
5
5
|
function fingerprintZodSchema(schema) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const injectWizard = require('../shared/attaform.
|
|
4
|
-
const paths = require('../shared/attaform.
|
|
3
|
+
const injectWizard = require('../shared/attaform.ClXwitZj.cjs');
|
|
4
|
+
const paths = require('../shared/attaform.D32WwKk6.cjs');
|
|
5
5
|
|
|
6
6
|
const PROTOCOL_VERSION = 1;
|
|
7
7
|
const JOIN_COLLECTION_WINDOW_MS = 50;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as structuralSnapshot, m as isPlainRecord, u as safeAssign, h as diffAndApply, x as slimKindOf, b as applyPatchesForward } from '../shared/attaform.
|
|
2
|
-
import { j as canonicalizePath } from '../shared/attaform.
|
|
1
|
+
import { y as structuralSnapshot, m as isPlainRecord, u as safeAssign, h as diffAndApply, x as slimKindOf, b as applyPatchesForward } from '../shared/attaform.DR6RmxWZ.mjs';
|
|
2
|
+
import { j as canonicalizePath } from '../shared/attaform.pmtahXKy.mjs';
|
|
3
3
|
|
|
4
4
|
const PROTOCOL_VERSION = 1;
|
|
5
5
|
const JOIN_COLLECTION_WINDOW_MS = 50;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const vue = require('vue');
|
|
4
|
-
const injectWizard = require('../shared/attaform.
|
|
5
|
-
const paths = require('../shared/attaform.
|
|
4
|
+
const injectWizard = require('../shared/attaform.ClXwitZj.cjs');
|
|
5
|
+
const paths = require('../shared/attaform.D32WwKk6.cjs');
|
|
6
6
|
|
|
7
7
|
const PERSISTED_ENVELOPE_VERSION = 6;
|
|
8
8
|
function readPersistedPayload(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRaw } from 'vue';
|
|
2
|
-
import { i as getAtPath, w as setAtPath, m as isPlainRecord, u as safeAssign, t as resolveStorageKeyBase, r as normalizeNumericOption, D as DEFAULT_PERSISTENCE_DEBOUNCE_MS, c as cleanupOrphanKeys, q as mergeSparseHydration, g as deleteAtPath } from '../shared/attaform.
|
|
3
|
-
import { _ as __DEV__, G as segmentsForPathKey, t as isPathPrefix, j as canonicalizePath } from '../shared/attaform.
|
|
2
|
+
import { i as getAtPath, w as setAtPath, m as isPlainRecord, u as safeAssign, t as resolveStorageKeyBase, r as normalizeNumericOption, D as DEFAULT_PERSISTENCE_DEBOUNCE_MS, c as cleanupOrphanKeys, q as mergeSparseHydration, g as deleteAtPath } from '../shared/attaform.DR6RmxWZ.mjs';
|
|
3
|
+
import { _ as __DEV__, G as segmentsForPathKey, t as isPathPrefix, j as canonicalizePath } from '../shared/attaform.pmtahXKy.mjs';
|
|
4
4
|
|
|
5
5
|
const PERSISTED_ENVELOPE_VERSION = 6;
|
|
6
6
|
function readPersistedPayload(value) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const paths = require('./shared/attaform.
|
|
4
|
-
const devtoolsShared = require('./shared/attaform.
|
|
5
|
-
const injectWizard = require('./shared/attaform.
|
|
3
|
+
const paths = require('./shared/attaform.D32WwKk6.cjs');
|
|
4
|
+
const devtoolsShared = require('./shared/attaform.Bq5sX7TF.cjs');
|
|
5
|
+
const injectWizard = require('./shared/attaform.ClXwitZj.cjs');
|
|
6
6
|
|
|
7
7
|
function escapeForInlineScript(json) {
|
|
8
8
|
return json.replace(/[<>&\u2028\u2029]/g, (char) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, App } from 'vue';
|
|
2
|
-
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.
|
|
4
|
-
import { f as AttaformDefaults, v as FormKey, G as GenericForm,
|
|
5
|
-
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler,
|
|
2
|
+
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.BWfliRIK.cjs';
|
|
3
|
+
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.BWfliRIK.cjs';
|
|
4
|
+
import { f as AttaformDefaults, v as FormKey, G as GenericForm, al as UseFormConfiguration, A as AbstractSchema, j as DefaultValuesInput, am as UseFormReturnType, aa as RegisterValue, a5 as RegisterModelDynamicCustomDirective, z as GetDisplayState, ap as ValidationError, c as ApiErrorEnvelope, a as ApiErrorDetails } from './shared/attaform.D0dWZsJt.cjs';
|
|
5
|
+
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler, ak as Unset, an as ValidateOn, ao as ValidateOnConfig, aq as ValidationResponse, ar as ValidationResponseWithoutValue, as as ValueOfUnion, at as WriteMeta, au as WriteShape, av as canonicalizePath, aw as isPathPrefix, ax as isUnset, ay as parseDottedPath, az as unset } from './shared/attaform.D0dWZsJt.cjs';
|
|
6
6
|
export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SubmitErrorHandlerError } from './shared/attaform.DkA5J8NW.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -264,13 +264,13 @@ declare global {
|
|
|
264
264
|
/**
|
|
265
265
|
* Anti-flash timing for the library-default display reducer.
|
|
266
266
|
*
|
|
267
|
-
* - `showDelay` — how long a validation
|
|
268
|
-
*
|
|
269
|
-
* reveals `'pending'` at all, so a
|
|
270
|
-
* not flash a spinner on every keystroke.
|
|
271
|
-
* - `minVisible` — once shown, the minimum time the spinner stays up.
|
|
272
|
-
*
|
|
273
|
-
*
|
|
267
|
+
* - `showDelay` — how long in-flight work (a validation run or an async
|
|
268
|
+
* register transform) may run before its spinner is allowed to show. Work
|
|
269
|
+
* that settles inside this window never reveals `'pending'` at all, so a
|
|
270
|
+
* fast (often synchronous) check does not flash a spinner on every keystroke.
|
|
271
|
+
* - `minVisible` — once shown, the minimum time the spinner stays up. Work
|
|
272
|
+
* that lands just past `showDelay` is held here so the spinner does not
|
|
273
|
+
* itself flash on and immediately off.
|
|
274
274
|
*
|
|
275
275
|
* Both are milliseconds.
|
|
276
276
|
*/
|
|
@@ -279,9 +279,10 @@ type DisplayTimings = {
|
|
|
279
279
|
readonly minVisible: number;
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
|
-
* Library-default anti-flash timings. `showDelay:
|
|
283
|
-
* synchronous, microtask-resolved, and tiny-async
|
|
284
|
-
*
|
|
282
|
+
* Library-default anti-flash timings. `showDelay: 120` cleanly swallows
|
|
283
|
+
* synchronous, microtask-resolved, and tiny-async work (validation runs and
|
|
284
|
+
* async register transforms alike) so none of them flash a spinner;
|
|
285
|
+
* `minVisible: 120` keeps a shown spinner snappy once one does land.
|
|
285
286
|
* Retune via {@link makeDefaultDisplayState} without touching the engine.
|
|
286
287
|
*/
|
|
287
288
|
declare const DEFAULT_TIMINGS: DisplayTimings;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, App } from 'vue';
|
|
2
|
-
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.
|
|
4
|
-
import { f as AttaformDefaults, v as FormKey, G as GenericForm,
|
|
5
|
-
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler,
|
|
2
|
+
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.NQ8mybyW.mjs';
|
|
3
|
+
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.NQ8mybyW.mjs';
|
|
4
|
+
import { f as AttaformDefaults, v as FormKey, G as GenericForm, al as UseFormConfiguration, A as AbstractSchema, j as DefaultValuesInput, am as UseFormReturnType, aa as RegisterValue, a5 as RegisterModelDynamicCustomDirective, z as GetDisplayState, ap as ValidationError, c as ApiErrorEnvelope, a as ApiErrorDetails } from './shared/attaform.D0dWZsJt.mjs';
|
|
5
|
+
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler, ak as Unset, an as ValidateOn, ao as ValidateOnConfig, aq as ValidationResponse, ar as ValidationResponseWithoutValue, as as ValueOfUnion, at as WriteMeta, au as WriteShape, av as canonicalizePath, aw as isPathPrefix, ax as isUnset, ay as parseDottedPath, az as unset } from './shared/attaform.D0dWZsJt.mjs';
|
|
6
6
|
export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SubmitErrorHandlerError } from './shared/attaform.DkA5J8NW.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -264,13 +264,13 @@ declare global {
|
|
|
264
264
|
/**
|
|
265
265
|
* Anti-flash timing for the library-default display reducer.
|
|
266
266
|
*
|
|
267
|
-
* - `showDelay` — how long a validation
|
|
268
|
-
*
|
|
269
|
-
* reveals `'pending'` at all, so a
|
|
270
|
-
* not flash a spinner on every keystroke.
|
|
271
|
-
* - `minVisible` — once shown, the minimum time the spinner stays up.
|
|
272
|
-
*
|
|
273
|
-
*
|
|
267
|
+
* - `showDelay` — how long in-flight work (a validation run or an async
|
|
268
|
+
* register transform) may run before its spinner is allowed to show. Work
|
|
269
|
+
* that settles inside this window never reveals `'pending'` at all, so a
|
|
270
|
+
* fast (often synchronous) check does not flash a spinner on every keystroke.
|
|
271
|
+
* - `minVisible` — once shown, the minimum time the spinner stays up. Work
|
|
272
|
+
* that lands just past `showDelay` is held here so the spinner does not
|
|
273
|
+
* itself flash on and immediately off.
|
|
274
274
|
*
|
|
275
275
|
* Both are milliseconds.
|
|
276
276
|
*/
|
|
@@ -279,9 +279,10 @@ type DisplayTimings = {
|
|
|
279
279
|
readonly minVisible: number;
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
|
-
* Library-default anti-flash timings. `showDelay:
|
|
283
|
-
* synchronous, microtask-resolved, and tiny-async
|
|
284
|
-
*
|
|
282
|
+
* Library-default anti-flash timings. `showDelay: 120` cleanly swallows
|
|
283
|
+
* synchronous, microtask-resolved, and tiny-async work (validation runs and
|
|
284
|
+
* async register transforms alike) so none of them flash a spinner;
|
|
285
|
+
* `minVisible: 120` keeps a shown spinner snappy once one does land.
|
|
285
286
|
* Retune via {@link makeDefaultDisplayState} without touching the engine.
|
|
286
287
|
*/
|
|
287
288
|
declare const DEFAULT_TIMINGS: DisplayTimings;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, App } from 'vue';
|
|
2
|
-
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.
|
|
4
|
-
import { f as AttaformDefaults, v as FormKey, G as GenericForm,
|
|
5
|
-
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler,
|
|
2
|
+
import { S as SSRDetectOptions, c as SerializedFormData, b as AttaformRegistry } from './shared/attaform.Bv7dRDWK.js';
|
|
3
|
+
export { A as AnyForm, a as AttaformErrorCode, C as CompiledStep, F as FormStatus, I as InjectWizardInput, L as LazyMarker, d as StepSlot, U as UseRegisterReturn, e as UseWizardReturnType, W as WizardAggregateError, f as WizardCtx, g as WizardCtxForm, h as WizardOnError, i as WizardOnSubmit, j as WizardOptions, k as WizardPersistFn, l as WizardRestoreFn, m as WizardRestoreState, n as WizardStatusesProxy, o as WizardSubmitContext, p as createRegistry, q as defaultCoercionRules, r as defineCoercion, s as getRegistryFromApp, t as injectForm, u as injectWizard, v as kAttaformRegistry, w as lazy, x as useRegister, y as useRegistry, z as useWizard } from './shared/attaform.Bv7dRDWK.js';
|
|
4
|
+
import { f as AttaformDefaults, v as FormKey, G as GenericForm, al as UseFormConfiguration, A as AbstractSchema, j as DefaultValuesInput, am as UseFormReturnType, aa as RegisterValue, a5 as RegisterModelDynamicCustomDirective, z as GetDisplayState, ap as ValidationError, c as ApiErrorEnvelope, a as ApiErrorDetails } from './shared/attaform.D0dWZsJt.js';
|
|
5
|
+
export { b as ApiErrorEntry, d as ArrayItem, e as ArrayPath, C as CoercionEntry, g as CoercionRegistry, h as CoercionResult, i as CustomDirectiveRegisterAssignerFn, D as DeepPartial, k as DefaultValuesResponse, l as DefaultValuesShape, m as DisplayCtx, n as DisplayMachine, o as DisplayState, E as ErrorsProxyShape, F as FieldMetaPayload, p as FieldState, q as FieldStateMap, r as FieldStateMapEntry, s as FlatPath, t as FormErrorRecord, u as FormErrorsSurface, w as FormMeta, x as FormStorage, y as FormStorageKind, H as HandleSubmit, B as HistoryConfig, I as IsTuple, J as IsUnion, K as JoinSegments, L as KeyofUnion, M as LiftedValueShape, N as MetaTrackerValue, O as NestedReadType, P as NestedType, Q as OnError, R as OnInvalidSubmitPolicy, S as OnSubmit, T as PartialFlatPath, U as Path, V as PathKey, W as PendingValidationStatus, X as PersistConfig, Y as PersistConfigOptions, Z as PersistIncludeMode, $ as Primitive, a0 as ROOT_PATH, a1 as ROOT_PATH_KEY, a2 as ReactiveValidationStatus, a3 as RegisterDirective, a4 as RegisterFlatPath, a6 as RegisterOptions, a7 as RegisterSelectModifier, a8 as RegisterTextModifier, a9 as RegisterTransform, ac as Segment, ad as SetValueCallback, ae as SetValuePayload, af as SettledValidationStatus, ag as SlimPrimitiveKind, ah as SlimRuntimeOf, ai as SubmitHandler, ak as Unset, an as ValidateOn, ao as ValidateOnConfig, aq as ValidationResponse, ar as ValidationResponseWithoutValue, as as ValueOfUnion, at as WriteMeta, au as WriteShape, av as canonicalizePath, aw as isPathPrefix, ax as isUnset, ay as parseDottedPath, az as unset } from './shared/attaform.D0dWZsJt.js';
|
|
6
6
|
export { A as AnonPersistError, a as AttaformError, I as InvalidPathError, b as InvalidUseFormConfigError, O as OutsideSetupError, R as RegistryNotInstalledError, c as ReservedFormKeyError, S as SubmitErrorHandlerError } from './shared/attaform.DkA5J8NW.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -264,13 +264,13 @@ declare global {
|
|
|
264
264
|
/**
|
|
265
265
|
* Anti-flash timing for the library-default display reducer.
|
|
266
266
|
*
|
|
267
|
-
* - `showDelay` — how long a validation
|
|
268
|
-
*
|
|
269
|
-
* reveals `'pending'` at all, so a
|
|
270
|
-
* not flash a spinner on every keystroke.
|
|
271
|
-
* - `minVisible` — once shown, the minimum time the spinner stays up.
|
|
272
|
-
*
|
|
273
|
-
*
|
|
267
|
+
* - `showDelay` — how long in-flight work (a validation run or an async
|
|
268
|
+
* register transform) may run before its spinner is allowed to show. Work
|
|
269
|
+
* that settles inside this window never reveals `'pending'` at all, so a
|
|
270
|
+
* fast (often synchronous) check does not flash a spinner on every keystroke.
|
|
271
|
+
* - `minVisible` — once shown, the minimum time the spinner stays up. Work
|
|
272
|
+
* that lands just past `showDelay` is held here so the spinner does not
|
|
273
|
+
* itself flash on and immediately off.
|
|
274
274
|
*
|
|
275
275
|
* Both are milliseconds.
|
|
276
276
|
*/
|
|
@@ -279,9 +279,10 @@ type DisplayTimings = {
|
|
|
279
279
|
readonly minVisible: number;
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
|
-
* Library-default anti-flash timings. `showDelay:
|
|
283
|
-
* synchronous, microtask-resolved, and tiny-async
|
|
284
|
-
*
|
|
282
|
+
* Library-default anti-flash timings. `showDelay: 120` cleanly swallows
|
|
283
|
+
* synchronous, microtask-resolved, and tiny-async work (validation runs and
|
|
284
|
+
* async register transforms alike) so none of them flash a spinner;
|
|
285
|
+
* `minVisible: 120` keeps a shown spinner snappy once one does land.
|
|
285
286
|
* Retune via {@link makeDefaultDisplayState} without touching the engine.
|
|
286
287
|
*/
|
|
287
288
|
declare const DEFAULT_TIMINGS: DisplayTimings;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as canonicalizePath, c as InvalidPathError } from './shared/attaform.
|
|
2
|
-
export { A as AnonPersistError, a as AttaformError, D as DEFAULT_SENSITIVE_NAMES, d as InvalidUseFormConfigError, O as OutsideSetupError, R as ROOT_PATH, e as ROOT_PATH_KEY, f as RegistryNotInstalledError, g as ReservedFormKeyError, S as SubmitErrorHandlerError, i as assignKey, m as createAttaform, p as createRegistry, s as getRegistryFromApp, t as isPathPrefix, u as isRegisterValue, x as kAttaformRegistry, C as parseDottedPath,
|
|
3
|
-
export { D as DEVTOOLS_WINDOW_KEY, h as hydrateAttaformState, r as renderAttaformState } from './shared/attaform.
|
|
4
|
-
import { r as normalizeNumericOption } from './shared/attaform.
|
|
5
|
-
export { A as AttaformErrorCode, a as DEFAULT_TIMINGS, d as defaultCoercionRules, e as defaultDisplayState, f as defineCoercion, k as injectForm, l as injectWizard, n as isUnset, o as lazy, p as makeDefaultDisplayState, z as unset, B as useForm, C as useWizard } from './shared/attaform.
|
|
1
|
+
import { j as canonicalizePath, c as InvalidPathError } from './shared/attaform.pmtahXKy.mjs';
|
|
2
|
+
export { A as AnonPersistError, a as AttaformError, D as DEFAULT_SENSITIVE_NAMES, d as InvalidUseFormConfigError, O as OutsideSetupError, R as ROOT_PATH, e as ROOT_PATH_KEY, f as RegistryNotInstalledError, g as ReservedFormKeyError, S as SubmitErrorHandlerError, i as assignKey, m as createAttaform, p as createRegistry, s as getRegistryFromApp, t as isPathPrefix, u as isRegisterValue, x as kAttaformRegistry, C as parseDottedPath, J as useRegister, K as useRegistry, L as vRegister } from './shared/attaform.pmtahXKy.mjs';
|
|
3
|
+
export { D as DEVTOOLS_WINDOW_KEY, h as hydrateAttaformState, r as renderAttaformState } from './shared/attaform.Y1ZGhM4k.mjs';
|
|
4
|
+
import { r as normalizeNumericOption } from './shared/attaform.DR6RmxWZ.mjs';
|
|
5
|
+
export { A as AttaformErrorCode, a as DEFAULT_TIMINGS, d as defaultCoercionRules, e as defaultDisplayState, f as defineCoercion, k as injectForm, l as injectWizard, n as isUnset, o as lazy, p as makeDefaultDisplayState, z as unset, B as useForm, C as useWizard } from './shared/attaform.DR6RmxWZ.mjs';
|
|
6
6
|
|
|
7
7
|
function escapeForInlineScript(json) {
|
|
8
8
|
return json.replace(/[<>&\u2028\u2029]/g, (char) => {
|
package/dist/nuxt.d.cts
CHANGED
package/dist/nuxt.d.mts
CHANGED
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const app = require('nuxt/app');
|
|
4
|
-
const devtoolsShared = require('../../shared/attaform.
|
|
5
|
-
const paths = require('../../shared/attaform.
|
|
4
|
+
const devtoolsShared = require('../../shared/attaform.Bq5sX7TF.cjs');
|
|
5
|
+
const paths = require('../../shared/attaform.D32WwKk6.cjs');
|
|
6
6
|
|
|
7
7
|
var attaform_default = app.defineNuxtPlugin({
|
|
8
8
|
// `enforce: 'pre'` makes the "we run before any component's setup" claim
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig, useRoute } from 'nuxt/app';
|
|
2
|
-
import { r as renderAttaformState, h as hydrateAttaformState, D as DEVTOOLS_WINDOW_KEY } from '../../shared/attaform.
|
|
3
|
-
import { m as createAttaform, y as kAttaformWizardActiveStepResolver, s as getRegistryFromApp } from '../../shared/attaform.
|
|
2
|
+
import { r as renderAttaformState, h as hydrateAttaformState, D as DEVTOOLS_WINDOW_KEY } from '../../shared/attaform.Y1ZGhM4k.mjs';
|
|
3
|
+
import { m as createAttaform, y as kAttaformWizardActiveStepResolver, s as getRegistryFromApp } from '../../shared/attaform.pmtahXKy.mjs';
|
|
4
4
|
|
|
5
5
|
var attaform_default = defineNuxtPlugin({
|
|
6
6
|
// `enforce: 'pre'` makes the "we run before any component's setup" claim
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const walkFieldMeta = require('./attaform.
|
|
5
|
-
const injectWizard = require('./attaform.
|
|
6
|
-
const paths = require('./attaform.
|
|
4
|
+
const walkFieldMeta = require('./attaform.CICFZ1iS.cjs');
|
|
5
|
+
const injectWizard = require('./attaform.ClXwitZj.cjs');
|
|
6
|
+
const paths = require('./attaform.D32WwKk6.cjs');
|
|
7
7
|
|
|
8
8
|
const fieldMeta = walkFieldMeta.fieldMetaStore;
|
|
9
9
|
function withMeta(schema, payload) {
|
|
@@ -1563,4 +1563,4 @@ exports.isZodSchemaType = isZodSchemaType;
|
|
|
1563
1563
|
exports.useForm = useForm;
|
|
1564
1564
|
exports.withMeta = withMeta;
|
|
1565
1565
|
exports.zodAdapter = zodAdapter;
|
|
1566
|
-
//# sourceMappingURL=attaform.
|
|
1566
|
+
//# sourceMappingURL=attaform.BSkvn43g.cjs.map
|