attaform 0.21.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- 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.B5LNzqQh.cjs → attaform.01iKS_lz.cjs} +18 -5
- package/dist/shared/{attaform.DP-u7_tk.mjs.map → attaform.01iKS_lz.cjs.map} +1 -1
- package/dist/shared/{attaform.C41gjp-a.mjs → attaform.6xE0Lcfd.mjs} +2 -2
- package/dist/shared/{attaform.C41gjp-a.mjs.map → attaform.6xE0Lcfd.mjs.map} +1 -1
- package/dist/shared/{attaform.BBDIKtKY.cjs → attaform.AyujQoHp.cjs} +4 -4
- package/dist/shared/{attaform.BBDIKtKY.cjs.map → attaform.AyujQoHp.cjs.map} +1 -1
- package/dist/shared/{attaform.BGf_J22U.d.ts → attaform.BGwNZ9GV.d.cts} +10 -2
- package/dist/shared/{attaform.DP-u7_tk.mjs → attaform.BKFwekY2.mjs} +16 -6
- package/dist/shared/{attaform.B5LNzqQh.cjs.map → attaform.BKFwekY2.mjs.map} +1 -1
- package/dist/shared/{attaform.CcnF1AKJ.cjs → attaform.C-RtnCJM.cjs} +116 -47
- package/dist/shared/attaform.C-RtnCJM.cjs.map +1 -0
- package/dist/shared/{attaform.BkjJfMvJ.d.cts → attaform.CCCeEPwa.d.mts} +10 -2
- package/dist/shared/{attaform.BwLp9KM7.cjs → attaform.CRzpFCjV.cjs} +2 -2
- package/dist/shared/{attaform.BwLp9KM7.cjs.map → attaform.CRzpFCjV.cjs.map} +1 -1
- package/dist/shared/{attaform.D2ZuIOCf.cjs → attaform.CjMcwV7W.cjs} +557 -126
- package/dist/shared/attaform.CjMcwV7W.cjs.map +1 -0
- package/dist/shared/{attaform.CTheKoTc.mjs → attaform.CsB-iKbU.mjs} +557 -126
- package/dist/shared/attaform.CsB-iKbU.mjs.map +1 -0
- package/dist/shared/{attaform.BCcrLApm.d.mts → attaform.D4XYaasQ.d.ts} +10 -2
- package/dist/shared/{attaform.D6GYGshL.mjs → attaform.DCjgGir_.mjs} +3 -3
- package/dist/shared/{attaform.D6GYGshL.mjs.map → attaform.DCjgGir_.mjs.map} +1 -1
- package/dist/shared/{attaform.BVeLgfEh.mjs → attaform.DNuiFCXG.mjs} +4 -4
- package/dist/shared/{attaform.BVeLgfEh.mjs.map → attaform.DNuiFCXG.mjs.map} +1 -1
- package/dist/shared/{attaform.BYgioWLF.d.ts → attaform.DUMWQefY.d.ts} +1 -1
- package/dist/shared/{attaform.CrD73S4m.mjs → attaform.DgCfLqay.mjs} +116 -47
- package/dist/shared/attaform.DgCfLqay.mjs.map +1 -0
- package/dist/shared/{attaform.ory-3WhV.d.ts → attaform.DvUH4a3o.d.cts} +181 -6
- package/dist/shared/{attaform.ory-3WhV.d.cts → attaform.DvUH4a3o.d.mts} +181 -6
- package/dist/shared/{attaform.ory-3WhV.d.mts → attaform.DvUH4a3o.d.ts} +181 -6
- package/dist/shared/{attaform.BoY6RZUl.d.cts → attaform.FN0vaQAg.d.mts} +1 -1
- package/dist/shared/{attaform.BwrowMp2.cjs → attaform.Q3eAD2wD.cjs} +3 -3
- package/dist/shared/{attaform.BwrowMp2.cjs.map → attaform.Q3eAD2wD.cjs.map} +1 -1
- package/dist/shared/{attaform.CnEl--PF.d.mts → attaform.aekT7mMx.d.cts} +1 -1
- package/dist/zod-v3.cjs +2 -2
- 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 +2 -2
- package/dist/zod-v4.cjs +2 -2
- 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 +2 -2
- package/dist/zod.cjs +5 -5
- package/dist/zod.d.cts +5 -5
- package/dist/zod.d.mts +5 -5
- package/dist/zod.d.ts +5 -5
- package/dist/zod.mjs +5 -5
- package/package.json +2 -2
- package/dist/shared/attaform.CTheKoTc.mjs.map +0 -1
- package/dist/shared/attaform.CcnF1AKJ.cjs.map +0 -1
- package/dist/shared/attaform.CrD73S4m.mjs.map +0 -1
- package/dist/shared/attaform.D2ZuIOCf.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PERSISTENCE_MODULE_KEY, n as normalizePersistConfig } from '../shared/attaform.
|
|
1
|
+
import { P as PERSISTENCE_MODULE_KEY, n as normalizePersistConfig } from '../shared/attaform.CsB-iKbU.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.AyujQoHp.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 { k as kindOf, g as getIntersectionLeft, b as getIntersectionRight, c as unwrapLazy, d as unwrapInner, e as unwrapPipe, h as getDiscriminator, i as getDiscriminatedOptions, j as getUnionOptions, l as getRecordKeyType, m as getRecordValueType, n as getTupleItems, o as getSetValueType, p as getArrayElement, q as getObjectShape, r as getEnumValues, s as getLiteralValues, t as getChecks, v as getCatchDefault, x as getDefaultValue } from '../shared/attaform.
|
|
2
|
+
import { k as kindOf, g as getIntersectionLeft, b as getIntersectionRight, c as unwrapLazy, d as unwrapInner, e as unwrapPipe, h as getDiscriminator, i as getDiscriminatedOptions, j as getUnionOptions, l as getRecordKeyType, m as getRecordValueType, n as getTupleItems, o as getSetValueType, p as getArrayElement, q as getObjectShape, r as getEnumValues, s as getLiteralValues, t as getChecks, v as getCatchDefault, x as getDefaultValue } from '../shared/attaform.DNuiFCXG.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.CjMcwV7W.cjs');
|
|
4
|
+
const paths = require('../shared/attaform.01iKS_lz.cjs');
|
|
5
5
|
|
|
6
6
|
const PROTOCOL_VERSION = 1;
|
|
7
7
|
const JOIN_COLLECTION_WINDOW_MS = 50;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as structuralSnapshot, e as isPlainRecord, f as safeAssign, g as diffAndApply, h as slimKindOf, j as applyPatchesForward } from '../shared/attaform.
|
|
2
|
-
import { a as canonicalizePath } from '../shared/attaform.
|
|
1
|
+
import { s as structuralSnapshot, e as isPlainRecord, f as safeAssign, g as diffAndApply, h as slimKindOf, j as applyPatchesForward } from '../shared/attaform.CsB-iKbU.mjs';
|
|
2
|
+
import { a as canonicalizePath } from '../shared/attaform.BKFwekY2.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.CjMcwV7W.cjs');
|
|
5
|
+
const paths = require('../shared/attaform.01iKS_lz.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 { t as getAtPath, v as setAtPath, e as isPlainRecord, f as safeAssign, w as resolveStorageKeyBase, k as normalizeNumericOption, x as DEFAULT_PERSISTENCE_DEBOUNCE_MS, y as cleanupOrphanKeys, z as mergeSparseHydration, B as deleteAtPath } from '../shared/attaform.
|
|
3
|
-
import { _ as __DEV__, s as segmentsForPathKey, l as isPathPrefix, a as canonicalizePath } from '../shared/attaform.
|
|
2
|
+
import { t as getAtPath, v as setAtPath, e as isPlainRecord, f as safeAssign, w as resolveStorageKeyBase, k as normalizeNumericOption, x as DEFAULT_PERSISTENCE_DEBOUNCE_MS, y as cleanupOrphanKeys, z as mergeSparseHydration, B as deleteAtPath } from '../shared/attaform.CsB-iKbU.mjs';
|
|
3
|
+
import { _ as __DEV__, s as segmentsForPathKey, l as isPathPrefix, a as canonicalizePath } from '../shared/attaform.BKFwekY2.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.01iKS_lz.cjs');
|
|
4
|
+
const devtoolsShared = require('./shared/attaform.CRzpFCjV.cjs');
|
|
5
|
+
const injectWizard = require('./shared/attaform.CjMcwV7W.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, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { b as AnyForm, c 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 { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.
|
|
5
|
-
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as
|
|
2
|
+
import { S as SSRDetectOptions, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.BGwNZ9GV.cjs';
|
|
3
|
+
export { b as AnyForm, c 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.BGwNZ9GV.cjs';
|
|
4
|
+
import { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.DvUH4a3o.cjs';
|
|
5
|
+
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as OnChangeConfig, W as OnChangeContext, X as OnChangeErrorContext, Y as OnChangeErrorHandler, Z as OnChangeHandler, _ as OnChangeOptions, $ as OnChangeSource, a0 as OnError, a1 as OnInvalidSubmitPolicy, a2 as OnSubmit, a3 as PartialFlatPath, a4 as Path, a5 as PathKey, a6 as PendingValidationStatus, a7 as PersistConfig, a8 as PersistConfigOptions, a9 as PersistIncludeMode, aa as Primitive, ab as ROOT_PATH, ac as ROOT_PATH_KEY, ad as ReactiveValidationStatus, ae as RegisterDirective, af as RegisterFlatPath, ag as RegisterOptions, ah as RegisterSelectModifier, ai as RegisterTextModifier, aj as RegisterTransform, ak as Segment, al as SetValueCallback, am as SetValueOptions, an as SetValuePayload, ao as SettledValidationStatus, ap as SlimPrimitiveKind, aq as SlimRuntimeOf, ar as SubmitHandler, as as Unset, at as ValidateOn, au as ValidateOnConfig, av as ValidationResponse, aw as ValidationResponseWithoutValue, ax as ValueOfUnion, ay as WriteMeta, az as WriteShape, aA as canonicalizePath, aB as isPathPrefix, aC as isUnset, aD as parseDottedPath, aE as unset } from './shared/attaform.DvUH4a3o.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
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, App } from 'vue';
|
|
2
|
-
import { S as SSRDetectOptions, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { b as AnyForm, c 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 { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.
|
|
5
|
-
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as
|
|
2
|
+
import { S as SSRDetectOptions, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.CCCeEPwa.mjs';
|
|
3
|
+
export { b as AnyForm, c 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.CCCeEPwa.mjs';
|
|
4
|
+
import { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.DvUH4a3o.mjs';
|
|
5
|
+
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as OnChangeConfig, W as OnChangeContext, X as OnChangeErrorContext, Y as OnChangeErrorHandler, Z as OnChangeHandler, _ as OnChangeOptions, $ as OnChangeSource, a0 as OnError, a1 as OnInvalidSubmitPolicy, a2 as OnSubmit, a3 as PartialFlatPath, a4 as Path, a5 as PathKey, a6 as PendingValidationStatus, a7 as PersistConfig, a8 as PersistConfigOptions, a9 as PersistIncludeMode, aa as Primitive, ab as ROOT_PATH, ac as ROOT_PATH_KEY, ad as ReactiveValidationStatus, ae as RegisterDirective, af as RegisterFlatPath, ag as RegisterOptions, ah as RegisterSelectModifier, ai as RegisterTextModifier, aj as RegisterTransform, ak as Segment, al as SetValueCallback, am as SetValueOptions, an as SetValuePayload, ao as SettledValidationStatus, ap as SlimPrimitiveKind, aq as SlimRuntimeOf, ar as SubmitHandler, as as Unset, at as ValidateOn, au as ValidateOnConfig, av as ValidationResponse, aw as ValidationResponseWithoutValue, ax as ValueOfUnion, ay as WriteMeta, az as WriteShape, aA as canonicalizePath, aB as isPathPrefix, aC as isUnset, aD as parseDottedPath, aE as unset } from './shared/attaform.DvUH4a3o.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
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, App } from 'vue';
|
|
2
|
-
import { S as SSRDetectOptions, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.
|
|
3
|
-
export { b as AnyForm, c 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 { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.
|
|
5
|
-
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as
|
|
2
|
+
import { S as SSRDetectOptions, a as SerializedFormData, A as AttaformRegistry } from './shared/attaform.D4XYaasQ.js';
|
|
3
|
+
export { b as AnyForm, c 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.D4XYaasQ.js';
|
|
4
|
+
import { A as AttaformDefaults, F as FormKey, G as GenericForm, U as UseFormConfiguration, a as AbstractSchema, D as DefaultValuesInput, b as UseFormReturnType, R as RegisterModelDynamicCustomDirective, c as RegisterValue, d as GetDisplayState, V as ValidationError, e as ApiErrorEnvelope, f as ApiErrorDetails } from './shared/attaform.DvUH4a3o.js';
|
|
5
|
+
export { g as ApiErrorEntry, h as ArrayItem, i as ArrayPath, C as CoercionEntry, j as CoercionRegistry, k as CoercionResult, l as CustomDirectiveRegisterAssignerFn, m as DeepPartial, n as DefaultValuesResponse, o as DefaultValuesShape, p as DisplayCtx, q as DisplayMachine, r as DisplayState, E as ErrorsProxyShape, s as FieldMetaPayload, t as FieldState, u as FieldStateMap, v as FieldStateMapEntry, w as FlatPath, x as FormErrorRecord, y as FormErrorsSurface, z as FormMeta, B as FormStorage, H as FormStorageKind, I as HandleSubmit, J as HistoryConfig, K as IsTuple, L as IsUnion, M as JoinSegments, N as KeyofUnion, O as LiftedValueShape, P as MetaTrackerValue, Q as NestedReadType, S as NestedType, T as OnChangeConfig, W as OnChangeContext, X as OnChangeErrorContext, Y as OnChangeErrorHandler, Z as OnChangeHandler, _ as OnChangeOptions, $ as OnChangeSource, a0 as OnError, a1 as OnInvalidSubmitPolicy, a2 as OnSubmit, a3 as PartialFlatPath, a4 as Path, a5 as PathKey, a6 as PendingValidationStatus, a7 as PersistConfig, a8 as PersistConfigOptions, a9 as PersistIncludeMode, aa as Primitive, ab as ROOT_PATH, ac as ROOT_PATH_KEY, ad as ReactiveValidationStatus, ae as RegisterDirective, af as RegisterFlatPath, ag as RegisterOptions, ah as RegisterSelectModifier, ai as RegisterTextModifier, aj as RegisterTransform, ak as Segment, al as SetValueCallback, am as SetValueOptions, an as SetValuePayload, ao as SettledValidationStatus, ap as SlimPrimitiveKind, aq as SlimRuntimeOf, ar as SubmitHandler, as as Unset, at as ValidateOn, au as ValidateOnConfig, av as ValidationResponse, aw as ValidationResponseWithoutValue, ax as ValueOfUnion, ay as WriteMeta, az as WriteShape, aA as canonicalizePath, aB as isPathPrefix, aC as isUnset, aD as parseDottedPath, aE as unset } from './shared/attaform.DvUH4a3o.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
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as canonicalizePath, I as InvalidPathError } from './shared/attaform.
|
|
2
|
-
export { A as AnonPersistError, b 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, h as ReservedFormKeyError, S as SubmitErrorHandlerError, i as assignKey, c as createAttaform, j as createRegistry, g as getRegistryFromApp, l as isPathPrefix, m as isRegisterValue, n as kAttaformRegistry, p as parseDottedPath, u as useRegistry, v as vRegister } from './shared/attaform.
|
|
3
|
-
export { D as DEVTOOLS_WINDOW_KEY, h as hydrateAttaformState, r as renderAttaformState } from './shared/attaform.
|
|
4
|
-
import { k as normalizeNumericOption } from './shared/attaform.
|
|
5
|
-
export { A as AttaformErrorCode, D as DEFAULT_TIMINGS, m as defaultCoercionRules, o as defaultDisplayState, p as defineCoercion, i as injectForm, a as injectWizard, b as isUnset, l as lazy, q as makeDefaultDisplayState, u as unset, r as useForm, c as useRegister, d as useWizard } from './shared/attaform.
|
|
1
|
+
import { a as canonicalizePath, I as InvalidPathError } from './shared/attaform.BKFwekY2.mjs';
|
|
2
|
+
export { A as AnonPersistError, b 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, h as ReservedFormKeyError, S as SubmitErrorHandlerError, i as assignKey, c as createAttaform, j as createRegistry, g as getRegistryFromApp, l as isPathPrefix, m as isRegisterValue, n as kAttaformRegistry, p as parseDottedPath, u as useRegistry, v as vRegister } from './shared/attaform.BKFwekY2.mjs';
|
|
3
|
+
export { D as DEVTOOLS_WINDOW_KEY, h as hydrateAttaformState, r as renderAttaformState } from './shared/attaform.6xE0Lcfd.mjs';
|
|
4
|
+
import { k as normalizeNumericOption } from './shared/attaform.CsB-iKbU.mjs';
|
|
5
|
+
export { A as AttaformErrorCode, D as DEFAULT_TIMINGS, m as defaultCoercionRules, o as defaultDisplayState, p as defineCoercion, i as injectForm, a as injectWizard, b as isUnset, l as lazy, q as makeDefaultDisplayState, u as unset, r as useForm, c as useRegister, d as useWizard } from './shared/attaform.CsB-iKbU.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.CRzpFCjV.cjs');
|
|
5
|
+
const paths = require('../../shared/attaform.01iKS_lz.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 { c as createAttaform, k as kAttaformWizardActiveStepResolver, g as getRegistryFromApp } from '../../shared/attaform.
|
|
2
|
+
import { r as renderAttaformState, h as hydrateAttaformState, D as DEVTOOLS_WINDOW_KEY } from '../../shared/attaform.6xE0Lcfd.mjs';
|
|
3
|
+
import { c as createAttaform, k as kAttaformWizardActiveStepResolver, g as getRegistryFromApp } from '../../shared/attaform.BKFwekY2.mjs';
|
|
4
4
|
|
|
5
5
|
var attaform_default = defineNuxtPlugin({
|
|
6
6
|
// `enforce: 'pre'` makes the "we run before any component's setup" claim
|
|
@@ -1672,17 +1672,20 @@ function canonicalizePath(input) {
|
|
|
1672
1672
|
if (typeof input === "string") {
|
|
1673
1673
|
const cached = canonicalStringCache.get(input);
|
|
1674
1674
|
if (cached !== void 0) return cached;
|
|
1675
|
-
const
|
|
1676
|
-
const
|
|
1677
|
-
const entry = { segments
|
|
1675
|
+
const segments = parseDottedPath(input);
|
|
1676
|
+
const key = JSON.stringify(segments);
|
|
1677
|
+
const entry = { segments, key };
|
|
1678
1678
|
if (canonicalStringCache.size >= CANONICAL_STRING_CACHE_MAX) {
|
|
1679
1679
|
const oldest = canonicalStringCache.keys().next().value;
|
|
1680
1680
|
if (oldest !== void 0) canonicalStringCache.delete(oldest);
|
|
1681
1681
|
}
|
|
1682
1682
|
canonicalStringCache.set(input, entry);
|
|
1683
|
-
rememberSegmentsForPathKey(
|
|
1683
|
+
rememberSegmentsForPathKey(key, segments);
|
|
1684
1684
|
return entry;
|
|
1685
1685
|
}
|
|
1686
|
+
return keyForSegments(input);
|
|
1687
|
+
}
|
|
1688
|
+
function keyForSegments(input) {
|
|
1686
1689
|
const segments = Array.from(input).map(normalizeSegment);
|
|
1687
1690
|
const key = JSON.stringify(segments);
|
|
1688
1691
|
rememberSegmentsForPathKey(key, segments);
|
|
@@ -1719,6 +1722,13 @@ function isPathPrefix(prefix, path) {
|
|
|
1719
1722
|
}
|
|
1720
1723
|
return true;
|
|
1721
1724
|
}
|
|
1725
|
+
function pathsEqual(a, b) {
|
|
1726
|
+
if (a.length !== b.length) return false;
|
|
1727
|
+
for (let i = 0; i < a.length; i++) {
|
|
1728
|
+
if (a[i] !== b[i]) return false;
|
|
1729
|
+
}
|
|
1730
|
+
return true;
|
|
1731
|
+
}
|
|
1722
1732
|
|
|
1723
1733
|
exports.AnonPersistError = AnonPersistError;
|
|
1724
1734
|
exports.AttaformError = AttaformError;
|
|
@@ -1756,10 +1766,13 @@ exports.kAttaformRegistry = kAttaformRegistry;
|
|
|
1756
1766
|
exports.kAttaformWizardActiveStepResolver = kAttaformWizardActiveStepResolver;
|
|
1757
1767
|
exports.kFormContext = kFormContext;
|
|
1758
1768
|
exports.kFormInstanceId = kFormInstanceId;
|
|
1769
|
+
exports.keyForSegments = keyForSegments;
|
|
1759
1770
|
exports.parseDottedPath = parseDottedPath;
|
|
1760
1771
|
exports.pathKeyToDotted = pathKeyToDotted;
|
|
1772
|
+
exports.pathsEqual = pathsEqual;
|
|
1761
1773
|
exports.segmentsForPathKey = segmentsForPathKey;
|
|
1774
|
+
exports.segmentsToDotted = segmentsToDotted;
|
|
1762
1775
|
exports.toError = toError;
|
|
1763
1776
|
exports.useRegistry = useRegistry;
|
|
1764
1777
|
exports.vRegister = vRegister;
|
|
1765
|
-
//# sourceMappingURL=attaform.
|
|
1778
|
+
//# sourceMappingURL=attaform.01iKS_lz.cjs.map
|