@lehnihon/bit-form 2.2.16 → 2.2.17

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 (58) hide show
  1. package/dist/angular/index.cjs +1 -1
  2. package/dist/angular/index.d.cts +2 -2
  3. package/dist/angular/index.d.ts +2 -2
  4. package/dist/angular/index.js +1 -1
  5. package/dist/chunk-254C3DS5.js +2 -0
  6. package/dist/chunk-254C3DS5.js.map +1 -0
  7. package/dist/{chunk-UIBR5FS6.cjs → chunk-4FQRTIYP.cjs} +2 -2
  8. package/dist/{chunk-UIBR5FS6.cjs.map → chunk-4FQRTIYP.cjs.map} +1 -1
  9. package/dist/{chunk-HNSQFNCR.js → chunk-HCJTGESK.js} +2 -2
  10. package/dist/{chunk-FRKHIMXO.cjs → chunk-QLF2QLII.cjs} +2 -2
  11. package/dist/{chunk-FRKHIMXO.cjs.map → chunk-QLF2QLII.cjs.map} +1 -1
  12. package/dist/chunk-XRDTN4JG.cjs +2 -0
  13. package/dist/{chunk-HHDHVLGP.cjs.map → chunk-XRDTN4JG.cjs.map} +1 -1
  14. package/dist/{chunk-PGLND5EZ.js → chunk-YS4IB2ZO.js} +2 -2
  15. package/dist/{config-types-CewC0AIS.d.cts → config-types-BuN_ezi7.d.cts} +6 -0
  16. package/dist/{config-types-BgIAuvzu.d.ts → config-types-CjyxvUHF.d.ts} +6 -0
  17. package/dist/core/bindings.d.cts +2 -2
  18. package/dist/core/bindings.d.ts +2 -2
  19. package/dist/core/store.cjs +1 -1
  20. package/dist/core/store.d.cts +3 -3
  21. package/dist/core/store.d.ts +3 -3
  22. package/dist/core/store.js +1 -1
  23. package/dist/core.cjs +1 -1
  24. package/dist/core.d.cts +2 -2
  25. package/dist/core.d.ts +2 -2
  26. package/dist/core.js +1 -1
  27. package/dist/devtools/bridge.cjs +1 -1
  28. package/dist/devtools/bridge.js +1 -1
  29. package/dist/devtools/index.cjs +2 -2
  30. package/dist/devtools/index.d.cts +1 -1
  31. package/dist/devtools/index.d.ts +1 -1
  32. package/dist/devtools/index.js +1 -1
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +1 -1
  37. package/dist/react/index.cjs +1 -1
  38. package/dist/react/index.d.cts +4 -4
  39. package/dist/react/index.d.ts +4 -4
  40. package/dist/react/index.js +1 -1
  41. package/dist/react-native/index.cjs +1 -1
  42. package/dist/react-native/index.d.cts +3 -3
  43. package/dist/react-native/index.d.ts +3 -3
  44. package/dist/react-native/index.js +1 -1
  45. package/dist/{store-api-types-Cy-zEhRU.d.ts → store-api-types-CNBOPbCQ.d.ts} +2 -1
  46. package/dist/{store-api-types-CVQuHPhm.d.cts → store-api-types-C_K952Z3.d.cts} +2 -1
  47. package/dist/{use-bit-persist-BhMBUSzN.d.ts → use-bit-persist-BCc0wJNn.d.ts} +1 -1
  48. package/dist/{use-bit-persist-Dt264zYz.d.cts → use-bit-persist-DwRcnawp.d.cts} +1 -1
  49. package/dist/vue/index.cjs +1 -1
  50. package/dist/vue/index.d.cts +2 -2
  51. package/dist/vue/index.d.ts +2 -2
  52. package/dist/vue/index.js +1 -1
  53. package/package.json +1 -1
  54. package/dist/chunk-HHDHVLGP.cjs +0 -2
  55. package/dist/chunk-PQYTA2OP.js +0 -2
  56. package/dist/chunk-PQYTA2OP.js.map +0 -1
  57. /package/dist/{chunk-HNSQFNCR.js.map → chunk-HCJTGESK.js.map} +0 -0
  58. /package/dist/{chunk-PGLND5EZ.js.map → chunk-YS4IB2ZO.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/bit-form/bit-form/dist/chunk-HHDHVLGP.cjs","../src/core/store/engines/store-field-query-engine.ts","../src/core/store/orchestration/framework-store-brand.ts","../src/core/store/orchestration/hook-brand.ts","../src/core/store/managers/core/baseline-manager.ts","../src/core/store/managers/core/computed-manager.ts"],"names":["resolveFieldMask","args","path","getFieldConfig","masks","maskOption","createFieldStateSnapshot","state","value","isHidden","isRequired","isDirty","isValidating","pathKey","BIT_FRAMEWORK_STORE_SYMBOL","BIT_HOOKS_API_SYMBOL","BitBaselineManager","baselineValues","deepClone","values","BitComputedManager","getComputedEntries","onError","changedPaths","computedEntries","entriesToRun","nextValues","failedPaths","entry","dep","newValue","error","currentValue","getDeepValue","cached","valuesEqual","canUseScalarCache","deepEqual","setDeepValue","entries","map","dependents","childIdx","segments","len","prefix","children","reverseDependencies","affectedPaths","queue","queueIndex","currentPath","dependentPath","orderedAllEntries","indexByPath","affectedEntries","entryIndex","left","right","item","entryByPath","inDegree","dependencyPath","nextDependents","orderedPaths","nextDegree","signature","ordered","orderedEntries","index"],"mappings":"AAAA,iiCAAuE,wDAA0C,wDAAmI,wDAA0C,SCU9QA,EAAAA,CAAmCC,CAAAA,CAI3B,CACtB,GAAM,CAAE,IAAA,CAAAC,CAAAA,CAAM,cAAA,CAAAC,CAAAA,CAAgB,KAAA,CAAAC,CAAM,CAAA,CAAIH,CAAAA,CAClCI,CAAAA,iBAAaF,CAAAA,mBAAeD,CAAI,CAAA,6BAAG,MAAA,CAEzC,EAAA,CAAKG,CAAAA,CAIL,OAAI,OAAOA,CAAAA,EAAe,QAAA,iBACjBD,CAAAA,4BAAAA,CAAQC,CAAgC,GAAA,CAG1CA,CACT,CAEO,SAASC,EAAAA,CAGdL,CAAAA,CAQ+C,CAC/C,GAAM,CAAE,KAAA,CAAAM,CAAAA,CAAO,IAAA,CAAAL,CAAAA,CAAM,KAAA,CAAAM,CAAAA,CAAO,QAAA,CAAAC,CAAAA,CAAU,UAAA,CAAAC,CAAAA,CAAY,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CACtEX,CAAAA,CACIY,CAAAA,CAAUX,CAAAA,CAEhB,MAAO,CACL,KAAA,CAAAM,CAAAA,CACA,KAAA,CAAOD,CAAAA,CAAM,MAAA,CAAOM,CAAiC,CAAA,CACrD,OAAA,CAAS,CAAC,CAACN,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BAAA,CAAuBA,CAAAA,CAAwC,CACrE,OAAOA,CAAAA,CACJ,GAAA,CAAKX,CAAAA,EAAU,CAAA,EAAA","file":"/home/runner/work/bit-form/bit-form/dist/chunk-HHDHVLGP.cjs","sourcesContent":[null,"import type { BitMask, BitMaskName } from \"../../mask/types\";\nimport type {\n BitErrors,\n BitFieldDefinition,\n BitFieldState,\n BitPath,\n BitPathValue,\n BitState,\n} from \"../contracts/types\";\n\nexport function resolveFieldMask<T extends object>(args: {\n path: string;\n getFieldConfig: (path: string) => BitFieldDefinition<T> | undefined;\n masks: Record<BitMaskName, BitMask> | undefined;\n}): BitMask | undefined {\n const { path, getFieldConfig, masks } = args;\n const maskOption = getFieldConfig(path)?.mask;\n\n if (!maskOption) {\n return undefined;\n }\n\n if (typeof maskOption === \"string\") {\n return masks?.[maskOption as keyof typeof masks];\n }\n\n return maskOption;\n}\n\nexport function createFieldStateSnapshot<\n TForm extends object,\n P extends BitPath<TForm>,\n>(args: {\n state: Readonly<BitState<TForm>>;\n path: P;\n value: BitPathValue<TForm, P>;\n isHidden: boolean;\n isRequired: boolean;\n isDirty: boolean;\n isValidating: boolean;\n}): BitFieldState<TForm, BitPathValue<TForm, P>> {\n const { state, path, value, isHidden, isRequired, isDirty, isValidating } =\n args;\n const pathKey = path as string;\n\n return {\n value,\n error: state.errors[pathKey as keyof BitErrors<TForm>],\n touched: !!state.touched[pathKey as keyof typeof state.touched],\n isHidden,\n isRequired,\n isDirty,\n isValidating,\n };\n}\n","export const BIT_FRAMEWORK_STORE_SYMBOL = Symbol.for(\n \"bit-form.framework-store-api\",\n);\n","export const BIT_HOOKS_API_SYMBOL = Symbol.for(\"bit-form.hooks-api\");\n","import { deepClone } from \"../../../utils\";\n\nexport class BitBaselineManager<T extends object> {\n constructor(baselineValues: T) {\n this.baselineValues = deepClone(baselineValues);\n }\n\n private baselineValues: T;\n private baselineSnapshot?: Readonly<T>;\n\n getValues(): T {\n if (!this.baselineSnapshot) {\n this.baselineSnapshot = Object.freeze(deepClone(this.baselineValues));\n }\n\n return this.baselineSnapshot as T;\n }\n\n setValues(values: T): void {\n this.baselineValues = deepClone(values);\n this.baselineSnapshot = undefined;\n }\n}\n","import { deepEqual, getDeepValue, setDeepValue } from \"../../../utils\";\nimport type { BitComputedFn } from \"../../contracts/types\";\n\nexport interface BitComputedEntry<T extends object> {\n path: string;\n compute: BitComputedFn<T>;\n dependsOn: readonly string[];\n}\n\nexport class BitComputedManager<T extends object> {\n private equalityCache = new Map<\n string,\n { current: unknown; next: unknown; equal: boolean }\n >();\n private reverseDepsCache: Map<string, Set<string>> | null = null;\n private childDepsIndex: Map<string, Set<string>> | null = null;\n private validatedEntriesSignature: string | null = null;\n private validatedEntriesRef: BitComputedEntry<T>[] | null = null;\n private orderedAllEntriesCache: {\n signature: string;\n ordered: BitComputedEntry<T>[];\n } | null = null;\n private orderedIndexByPathCache: {\n signature: string;\n indexByPath: Map<string, number>;\n } | null = null;\n\n constructor(\n private getComputedEntries: () => BitComputedEntry<T>[],\n private onError?: (error: unknown, path: string) => void,\n ) {}\n\n private isCacheableScalar(value: unknown): boolean {\n return (\n value === null ||\n (typeof value !== \"object\" && typeof value !== \"function\")\n );\n }\n\n invalidateReverseDeps(): void {\n this.reverseDepsCache = null;\n this.childDepsIndex = null;\n this.orderedAllEntriesCache = null;\n this.validatedEntriesSignature = null;\n this.validatedEntriesRef = null;\n this.orderedIndexByPathCache = null;\n this.equalityCache.clear();\n }\n\n apply(values: T, changedPaths?: readonly string[]): T {\n const computedEntries = this.getComputedEntries();\n if (computedEntries.length === 0) return values;\n\n this.ensureEntriesAreValid(computedEntries);\n\n const entriesToRun = this.resolveEntriesToRun(\n computedEntries,\n changedPaths,\n );\n\n if (entriesToRun.length === 0) {\n return values;\n }\n\n let nextValues = values;\n const failedPaths = new Set<string>();\n\n for (const entry of entriesToRun) {\n // Skip this entry if any of its declared dependencies failed in this run.\n if (entry.dependsOn.some((dep) => failedPaths.has(dep))) {\n failedPaths.add(entry.path);\n continue;\n }\n\n let newValue: unknown;\n try {\n newValue = entry.compute(nextValues);\n } catch (error) {\n this.onError?.(error, entry.path);\n failedPaths.add(entry.path);\n continue;\n }\n const currentValue = getDeepValue(nextValues, entry.path);\n\n const cached = this.equalityCache.get(entry.path);\n let valuesEqual: boolean;\n const canUseScalarCache =\n this.isCacheableScalar(currentValue) &&\n this.isCacheableScalar(newValue);\n\n if (\n canUseScalarCache &&\n cached &&\n cached.current === currentValue &&\n cached.next === newValue\n ) {\n valuesEqual = cached.equal;\n } else {\n valuesEqual = deepEqual(currentValue, newValue);\n\n if (canUseScalarCache) {\n this.equalityCache.set(entry.path, {\n current: currentValue,\n next: newValue,\n equal: valuesEqual,\n });\n } else {\n this.equalityCache.delete(entry.path);\n }\n }\n\n if (!valuesEqual) {\n nextValues = setDeepValue(nextValues, entry.path, newValue);\n }\n }\n return nextValues;\n }\n\n private getReverseDependencies(\n entries: BitComputedEntry<T>[],\n ): Map<string, Set<string>> {\n if (this.reverseDepsCache) return this.reverseDepsCache;\n\n const map = new Map<string, Set<string>>();\n\n for (const entry of entries) {\n for (const dep of entry.dependsOn) {\n let dependents = map.get(dep);\n if (!dependents) {\n dependents = new Set();\n map.set(dep, dependents);\n }\n dependents.add(entry.path);\n }\n }\n\n const childIdx = new Map<string, Set<string>>();\n\n for (const dep of map.keys()) {\n const segments = dep.split(\".\");\n for (let len = 1; len < segments.length; len++) {\n const prefix = segments.slice(0, len).join(\".\");\n let children = childIdx.get(prefix);\n if (!children) {\n children = new Set();\n childIdx.set(prefix, children);\n }\n children.add(dep);\n }\n }\n\n this.reverseDepsCache = map;\n this.childDepsIndex = childIdx;\n return map;\n }\n\n private resolveEntriesToRun(\n entries: BitComputedEntry<T>[],\n changedPaths?: readonly string[],\n ): BitComputedEntry<T>[] {\n if (\n !changedPaths ||\n changedPaths.length === 0 ||\n changedPaths.includes(\"*\")\n ) {\n return this.getOrderedAllEntries(entries);\n }\n\n const reverseDependencies = this.getReverseDependencies(entries);\n const affectedPaths = new Set<string>();\n const queue = [...changedPaths];\n let queueIndex = 0;\n\n while (queueIndex < queue.length) {\n const currentPath = queue[queueIndex++]!;\n const dependents = this.getDependentsForPath(\n reverseDependencies,\n currentPath,\n );\n\n if (!dependents) {\n continue;\n }\n\n for (const dependentPath of dependents) {\n if (affectedPaths.has(dependentPath)) {\n continue;\n }\n\n affectedPaths.add(dependentPath);\n queue.push(dependentPath);\n }\n }\n\n if (affectedPaths.size === 0) {\n return [];\n }\n\n const orderedAllEntries = this.getOrderedAllEntries(entries);\n const indexByPath = this.getOrderedIndexByPath(entries, orderedAllEntries);\n const affectedEntries: Array<{\n index: number;\n entry: BitComputedEntry<T>;\n }> = [];\n\n affectedPaths.forEach((path) => {\n const entryIndex = indexByPath.get(path);\n if (entryIndex === undefined) {\n return;\n }\n\n const entry = orderedAllEntries[entryIndex];\n if (!entry) {\n return;\n }\n\n affectedEntries.push({ index: entryIndex, entry });\n });\n\n affectedEntries.sort((left, right) => left.index - right.index);\n return affectedEntries.map((item) => item.entry);\n }\n\n private orderEntries(entries: BitComputedEntry<T>[]) {\n if (entries.length <= 1) {\n return entries;\n }\n\n const entryByPath = new Map(entries.map((entry) => [entry.path, entry]));\n const inDegree = new Map<string, number>();\n const dependents = new Map<string, Set<string>>();\n\n entries.forEach((entry) => inDegree.set(entry.path, 0));\n\n entries.forEach((entry) => {\n entry.dependsOn.forEach((dependencyPath) => {\n if (!entryByPath.has(dependencyPath)) {\n return;\n }\n\n const nextDependents = dependents.get(dependencyPath) ?? new Set();\n if (!nextDependents.has(entry.path)) {\n nextDependents.add(entry.path);\n dependents.set(dependencyPath, nextDependents);\n inDegree.set(entry.path, (inDegree.get(entry.path) ?? 0) + 1);\n }\n });\n });\n\n const queue = entries\n .filter((entry) => (inDegree.get(entry.path) ?? 0) === 0)\n .map((entry) => entry.path);\n const orderedPaths: string[] = [];\n\n while (queue.length > 0) {\n const currentPath = queue.shift()!;\n orderedPaths.push(currentPath);\n\n const nextDependents = dependents.get(currentPath);\n if (!nextDependents) {\n continue;\n }\n\n nextDependents.forEach((dependentPath) => {\n const nextDegree = (inDegree.get(dependentPath) ?? 0) - 1;\n inDegree.set(dependentPath, nextDegree);\n\n if (nextDegree === 0) {\n queue.push(dependentPath);\n }\n });\n }\n\n if (orderedPaths.length !== entries.length) {\n throw new Error(\n \"BitStore: cyclic computed dependencies detected. Check computedDependsOn definitions.\",\n );\n }\n\n return orderedPaths.map((path) => entryByPath.get(path)!);\n }\n\n private getOrderedAllEntries(entries: BitComputedEntry<T>[]) {\n const signature = this.createEntriesSignature(entries);\n if (\n this.orderedAllEntriesCache &&\n this.orderedAllEntriesCache.signature === signature\n ) {\n return this.orderedAllEntriesCache.ordered;\n }\n\n const ordered = this.orderEntries(entries);\n this.orderedAllEntriesCache = { signature, ordered };\n return ordered;\n }\n\n private getOrderedIndexByPath(\n entries: BitComputedEntry<T>[],\n orderedEntries: BitComputedEntry<T>[],\n ): Map<string, number> {\n const signature = this.createEntriesSignature(entries);\n if (\n this.orderedIndexByPathCache &&\n this.orderedIndexByPathCache.signature === signature\n ) {\n return this.orderedIndexByPathCache.indexByPath;\n }\n\n const indexByPath = new Map<string, number>();\n orderedEntries.forEach((entry, index) => {\n indexByPath.set(entry.path, index);\n });\n\n this.orderedIndexByPathCache = { signature, indexByPath };\n return indexByPath;\n }\n\n private ensureEntriesAreValid(entries: BitComputedEntry<T>[]) {\n if (this.validatedEntriesRef === entries) {\n return;\n }\n\n const signature = this.createEntriesSignature(entries);\n if (this.validatedEntriesSignature === signature) {\n this.validatedEntriesRef = entries;\n return;\n }\n\n entries.forEach((entry) => this.assertDependencies(entry));\n this.invalidateReverseDeps();\n this.validatedEntriesSignature = signature;\n this.validatedEntriesRef = entries;\n }\n\n private createEntriesSignature(entries: BitComputedEntry<T>[]): string {\n return entries\n .map((entry) => `${entry.path}:${entry.dependsOn.join(\",\")}`)\n .join(\"|\");\n }\n\n private getDependentsForPath(\n reverseDependencies: Map<string, Set<string>>,\n changedPath: string,\n ) {\n const dependents = new Set<string>();\n\n const collect = (dependencyPath: string) => {\n const listeners = reverseDependencies.get(dependencyPath);\n if (!listeners) {\n return;\n }\n\n listeners.forEach((path) => dependents.add(path));\n };\n\n collect(changedPath);\n\n const parentSegments = changedPath.split(\".\");\n while (parentSegments.length > 1) {\n parentSegments.pop();\n collect(parentSegments.join(\".\"));\n }\n\n const childKeys = this.childDepsIndex?.get(changedPath);\n if (childKeys) {\n for (const childDep of childKeys) {\n collect(childDep);\n }\n }\n\n return dependents;\n }\n\n private assertDependencies(entry: BitComputedEntry<T>) {\n if (entry.dependsOn.length === 0) {\n throw new Error(\n `BitStore: computed field \\`${entry.path}\\` requires explicit computedDependsOn in v4.`,\n );\n }\n\n if (entry.dependsOn.includes(entry.path)) {\n throw new Error(\n `BitStore: computed field \\`${entry.path}\\` cannot depend on itself.`,\n );\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/bit-form/bit-form/dist/chunk-XRDTN4JG.cjs","../src/core/store/engines/store-field-query-engine.ts","../src/core/store/orchestration/framework-store-brand.ts","../src/core/store/orchestration/hook-brand.ts","../src/core/store/managers/core/baseline-manager.ts","../src/core/store/managers/core/computed-manager.ts"],"names":["resolveFieldMask","args","path","getFieldConfig","masks","maskOption","createFieldStateSnapshot","state","value","isHidden","isRequired","isDirty","isValidating","pathKey","BIT_FRAMEWORK_STORE_SYMBOL","BIT_HOOKS_API_SYMBOL","BitBaselineManager","baselineValues","deepClone","values","BitComputedManager","getComputedEntries","onError","changedPaths","computedEntries","entriesToRun","nextValues","failedPaths","entry","dep","newValue","error","currentValue","getDeepValue","cached","valuesEqual","canUseScalarCache","deepEqual","setDeepValue","entries","map","dependents","childIdx","segments","len","prefix","children","reverseDependencies","affectedPaths","queue","queueIndex","currentPath","dependentPath","orderedAllEntries","indexByPath","affectedEntries","entryIndex","left","right","item","entryByPath","inDegree","dependencyPath","nextDependents","orderedPaths","nextDegree","signature","ordered","orderedEntries","index"],"mappings":"AAAA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AA,CACxB,OAAAc,CAAAA,CAAe,OAAA,CAAQ,CAACxC,CAAAA,CAAOyC,CAAAA,CAAAA,EAAU,CACvCf,CAAAA,CAAY,GAAA,CAAI1B,CAAAA,CAAM,IAAA,CAAMyC,CAAK,CACnC,CAAC,CAAA,CAED,IAAA,CAAK,uBAAA,CAA0B,CAAE,SAAA,CAAAH,CAAAA,CAAW,WAAA,CAAAZ,CAAY,CAAA,CACjDA,CACT,CAEQ,qBAAA,CAAsBf,CAAAA,CAAgC,CAC5D,EAAA,CAAI,IAAA,CAAK,mBAAA,GAAwBA,CAAAA,CAC/B,MAAA,CAGF,IAAM2B,CAAAA,CAAY,IAAA,CAAK,sBAAA,CAAuB3B,CAAO,CAAA,CACrD,EAAA,CAAI,IAAA,CAAK,yBAAA,GAA8B2B,CAAAA,CAAW,CAChD,IAAA,CAAK,mBAAA,CAAsB3B,CAAAA,CAC3B,MACF,CAEAA,CAAAA,CAAQ,OAAA,CAASX,CAAAA,EAAU,IAAA,CAAK,kBAAA,CAAmBA,CAAK,CAAC,CAAA,CACzD,IAAA,CAAK,qBAAA,CAAsB,CAAA,CAC3B,IAAA,CAAK,yBAAA,CAA4BsC,CAAAA,CACjC,IAAA,CAAK,mBAAA,CAAsB3B,CAC7B,CAEQ,sBAAA,CAAuBA,CAAAA,CAAwC,CACrE,OAAOA,CAAAA,CACJ,GAAA,CAAKX,CAAAA,EAAU,CAAA,EAAA","file":"/home/runner/work/bit-form/bit-form/dist/chunk-XRDTN4JG.cjs","sourcesContent":[null,"import type { BitMask, BitMaskName } from \"../../mask/types\";\nimport type {\n BitErrors,\n BitFieldDefinition,\n BitFieldState,\n BitPath,\n BitPathValue,\n BitState,\n} from \"../contracts/types\";\n\nexport function resolveFieldMask<T extends object>(args: {\n path: string;\n getFieldConfig: (path: string) => BitFieldDefinition<T> | undefined;\n masks: Record<BitMaskName, BitMask> | undefined;\n}): BitMask | undefined {\n const { path, getFieldConfig, masks } = args;\n const maskOption = getFieldConfig(path)?.mask;\n\n if (!maskOption) {\n return undefined;\n }\n\n if (typeof maskOption === \"string\") {\n return masks?.[maskOption as keyof typeof masks];\n }\n\n return maskOption;\n}\n\nexport function createFieldStateSnapshot<\n TForm extends object,\n P extends BitPath<TForm>,\n>(args: {\n state: Readonly<BitState<TForm>>;\n path: P;\n value: BitPathValue<TForm, P>;\n isHidden: boolean;\n isRequired: boolean;\n isDirty: boolean;\n isValidating: boolean;\n}): BitFieldState<TForm, BitPathValue<TForm, P>> {\n const { state, path, value, isHidden, isRequired, isDirty, isValidating } =\n args;\n const pathKey = path as string;\n\n return {\n value,\n error: state.errors[pathKey as keyof BitErrors<TForm>],\n touched: !!state.touched[pathKey as keyof typeof state.touched],\n isHidden,\n isRequired,\n isDirty,\n isValidating,\n };\n}\n","export const BIT_FRAMEWORK_STORE_SYMBOL = Symbol.for(\n \"bit-form.framework-store-api\",\n);\n","export const BIT_HOOKS_API_SYMBOL = Symbol.for(\"bit-form.hooks-api\");\n","import { deepClone } from \"../../../utils\";\n\nexport class BitBaselineManager<T extends object> {\n constructor(baselineValues: T) {\n this.baselineValues = deepClone(baselineValues);\n }\n\n private baselineValues: T;\n private baselineSnapshot?: Readonly<T>;\n\n getValues(): T {\n if (!this.baselineSnapshot) {\n this.baselineSnapshot = Object.freeze(deepClone(this.baselineValues));\n }\n\n return this.baselineSnapshot as T;\n }\n\n setValues(values: T): void {\n this.baselineValues = deepClone(values);\n this.baselineSnapshot = undefined;\n }\n}\n","import { deepEqual, getDeepValue, setDeepValue } from \"../../../utils\";\nimport type { BitComputedFn } from \"../../contracts/types\";\n\nexport interface BitComputedEntry<T extends object> {\n path: string;\n compute: BitComputedFn<T>;\n dependsOn: readonly string[];\n}\n\nexport class BitComputedManager<T extends object> {\n private equalityCache = new Map<\n string,\n { current: unknown; next: unknown; equal: boolean }\n >();\n private reverseDepsCache: Map<string, Set<string>> | null = null;\n private childDepsIndex: Map<string, Set<string>> | null = null;\n private validatedEntriesSignature: string | null = null;\n private validatedEntriesRef: BitComputedEntry<T>[] | null = null;\n private orderedAllEntriesCache: {\n signature: string;\n ordered: BitComputedEntry<T>[];\n } | null = null;\n private orderedIndexByPathCache: {\n signature: string;\n indexByPath: Map<string, number>;\n } | null = null;\n\n constructor(\n private getComputedEntries: () => BitComputedEntry<T>[],\n private onError?: (error: unknown, path: string) => void,\n ) {}\n\n private isCacheableScalar(value: unknown): boolean {\n return (\n value === null ||\n (typeof value !== \"object\" && typeof value !== \"function\")\n );\n }\n\n invalidateReverseDeps(): void {\n this.reverseDepsCache = null;\n this.childDepsIndex = null;\n this.orderedAllEntriesCache = null;\n this.validatedEntriesSignature = null;\n this.validatedEntriesRef = null;\n this.orderedIndexByPathCache = null;\n this.equalityCache.clear();\n }\n\n apply(values: T, changedPaths?: readonly string[]): T {\n const computedEntries = this.getComputedEntries();\n if (computedEntries.length === 0) return values;\n\n this.ensureEntriesAreValid(computedEntries);\n\n const entriesToRun = this.resolveEntriesToRun(\n computedEntries,\n changedPaths,\n );\n\n if (entriesToRun.length === 0) {\n return values;\n }\n\n let nextValues = values;\n const failedPaths = new Set<string>();\n\n for (const entry of entriesToRun) {\n // Skip this entry if any of its declared dependencies failed in this run.\n if (entry.dependsOn.some((dep) => failedPaths.has(dep))) {\n failedPaths.add(entry.path);\n continue;\n }\n\n let newValue: unknown;\n try {\n newValue = entry.compute(nextValues);\n } catch (error) {\n this.onError?.(error, entry.path);\n failedPaths.add(entry.path);\n continue;\n }\n const currentValue = getDeepValue(nextValues, entry.path);\n\n const cached = this.equalityCache.get(entry.path);\n let valuesEqual: boolean;\n const canUseScalarCache =\n this.isCacheableScalar(currentValue) &&\n this.isCacheableScalar(newValue);\n\n if (\n canUseScalarCache &&\n cached &&\n cached.current === currentValue &&\n cached.next === newValue\n ) {\n valuesEqual = cached.equal;\n } else {\n valuesEqual = deepEqual(currentValue, newValue);\n\n if (canUseScalarCache) {\n this.equalityCache.set(entry.path, {\n current: currentValue,\n next: newValue,\n equal: valuesEqual,\n });\n } else {\n this.equalityCache.delete(entry.path);\n }\n }\n\n if (!valuesEqual) {\n nextValues = setDeepValue(nextValues, entry.path, newValue);\n }\n }\n return nextValues;\n }\n\n private getReverseDependencies(\n entries: BitComputedEntry<T>[],\n ): Map<string, Set<string>> {\n if (this.reverseDepsCache) return this.reverseDepsCache;\n\n const map = new Map<string, Set<string>>();\n\n for (const entry of entries) {\n for (const dep of entry.dependsOn) {\n let dependents = map.get(dep);\n if (!dependents) {\n dependents = new Set();\n map.set(dep, dependents);\n }\n dependents.add(entry.path);\n }\n }\n\n const childIdx = new Map<string, Set<string>>();\n\n for (const dep of map.keys()) {\n const segments = dep.split(\".\");\n for (let len = 1; len < segments.length; len++) {\n const prefix = segments.slice(0, len).join(\".\");\n let children = childIdx.get(prefix);\n if (!children) {\n children = new Set();\n childIdx.set(prefix, children);\n }\n children.add(dep);\n }\n }\n\n this.reverseDepsCache = map;\n this.childDepsIndex = childIdx;\n return map;\n }\n\n private resolveEntriesToRun(\n entries: BitComputedEntry<T>[],\n changedPaths?: readonly string[],\n ): BitComputedEntry<T>[] {\n if (\n !changedPaths ||\n changedPaths.length === 0 ||\n changedPaths.includes(\"*\")\n ) {\n return this.getOrderedAllEntries(entries);\n }\n\n const reverseDependencies = this.getReverseDependencies(entries);\n const affectedPaths = new Set<string>();\n const queue = [...changedPaths];\n let queueIndex = 0;\n\n while (queueIndex < queue.length) {\n const currentPath = queue[queueIndex++]!;\n const dependents = this.getDependentsForPath(\n reverseDependencies,\n currentPath,\n );\n\n if (!dependents) {\n continue;\n }\n\n for (const dependentPath of dependents) {\n if (affectedPaths.has(dependentPath)) {\n continue;\n }\n\n affectedPaths.add(dependentPath);\n queue.push(dependentPath);\n }\n }\n\n if (affectedPaths.size === 0) {\n return [];\n }\n\n const orderedAllEntries = this.getOrderedAllEntries(entries);\n const indexByPath = this.getOrderedIndexByPath(entries, orderedAllEntries);\n const affectedEntries: Array<{\n index: number;\n entry: BitComputedEntry<T>;\n }> = [];\n\n affectedPaths.forEach((path) => {\n const entryIndex = indexByPath.get(path);\n if (entryIndex === undefined) {\n return;\n }\n\n const entry = orderedAllEntries[entryIndex];\n if (!entry) {\n return;\n }\n\n affectedEntries.push({ index: entryIndex, entry });\n });\n\n affectedEntries.sort((left, right) => left.index - right.index);\n return affectedEntries.map((item) => item.entry);\n }\n\n private orderEntries(entries: BitComputedEntry<T>[]) {\n if (entries.length <= 1) {\n return entries;\n }\n\n const entryByPath = new Map(entries.map((entry) => [entry.path, entry]));\n const inDegree = new Map<string, number>();\n const dependents = new Map<string, Set<string>>();\n\n entries.forEach((entry) => inDegree.set(entry.path, 0));\n\n entries.forEach((entry) => {\n entry.dependsOn.forEach((dependencyPath) => {\n if (!entryByPath.has(dependencyPath)) {\n return;\n }\n\n const nextDependents = dependents.get(dependencyPath) ?? new Set();\n if (!nextDependents.has(entry.path)) {\n nextDependents.add(entry.path);\n dependents.set(dependencyPath, nextDependents);\n inDegree.set(entry.path, (inDegree.get(entry.path) ?? 0) + 1);\n }\n });\n });\n\n const queue = entries\n .filter((entry) => (inDegree.get(entry.path) ?? 0) === 0)\n .map((entry) => entry.path);\n const orderedPaths: string[] = [];\n\n while (queue.length > 0) {\n const currentPath = queue.shift()!;\n orderedPaths.push(currentPath);\n\n const nextDependents = dependents.get(currentPath);\n if (!nextDependents) {\n continue;\n }\n\n nextDependents.forEach((dependentPath) => {\n const nextDegree = (inDegree.get(dependentPath) ?? 0) - 1;\n inDegree.set(dependentPath, nextDegree);\n\n if (nextDegree === 0) {\n queue.push(dependentPath);\n }\n });\n }\n\n if (orderedPaths.length !== entries.length) {\n throw new Error(\n \"BitStore: cyclic computed dependencies detected. Check computedDependsOn definitions.\",\n );\n }\n\n return orderedPaths.map((path) => entryByPath.get(path)!);\n }\n\n private getOrderedAllEntries(entries: BitComputedEntry<T>[]) {\n const signature = this.createEntriesSignature(entries);\n if (\n this.orderedAllEntriesCache &&\n this.orderedAllEntriesCache.signature === signature\n ) {\n return this.orderedAllEntriesCache.ordered;\n }\n\n const ordered = this.orderEntries(entries);\n this.orderedAllEntriesCache = { signature, ordered };\n return ordered;\n }\n\n private getOrderedIndexByPath(\n entries: BitComputedEntry<T>[],\n orderedEntries: BitComputedEntry<T>[],\n ): Map<string, number> {\n const signature = this.createEntriesSignature(entries);\n if (\n this.orderedIndexByPathCache &&\n this.orderedIndexByPathCache.signature === signature\n ) {\n return this.orderedIndexByPathCache.indexByPath;\n }\n\n const indexByPath = new Map<string, number>();\n orderedEntries.forEach((entry, index) => {\n indexByPath.set(entry.path, index);\n });\n\n this.orderedIndexByPathCache = { signature, indexByPath };\n return indexByPath;\n }\n\n private ensureEntriesAreValid(entries: BitComputedEntry<T>[]) {\n if (this.validatedEntriesRef === entries) {\n return;\n }\n\n const signature = this.createEntriesSignature(entries);\n if (this.validatedEntriesSignature === signature) {\n this.validatedEntriesRef = entries;\n return;\n }\n\n entries.forEach((entry) => this.assertDependencies(entry));\n this.invalidateReverseDeps();\n this.validatedEntriesSignature = signature;\n this.validatedEntriesRef = entries;\n }\n\n private createEntriesSignature(entries: BitComputedEntry<T>[]): string {\n return entries\n .map((entry) => `${entry.path}:${entry.dependsOn.join(\",\")}`)\n .join(\"|\");\n }\n\n private getDependentsForPath(\n reverseDependencies: Map<string, Set<string>>,\n changedPath: string,\n ) {\n const dependents = new Set<string>();\n\n const collect = (dependencyPath: string) => {\n const listeners = reverseDependencies.get(dependencyPath);\n if (!listeners) {\n return;\n }\n\n listeners.forEach((path) => dependents.add(path));\n };\n\n collect(changedPath);\n\n const parentSegments = changedPath.split(\".\");\n while (parentSegments.length > 1) {\n parentSegments.pop();\n collect(parentSegments.join(\".\"));\n }\n\n const childKeys = this.childDepsIndex?.get(changedPath);\n if (childKeys) {\n for (const childDep of childKeys) {\n collect(childDep);\n }\n }\n\n return dependents;\n }\n\n private assertDependencies(entry: BitComputedEntry<T>) {\n if (entry.dependsOn.length === 0) {\n throw new Error(\n `BitStore: computed field \\`${entry.path}\\` requires explicit computedDependsOn in v4.`,\n );\n }\n\n if (entry.dependsOn.includes(entry.path)) {\n throw new Error(\n `BitStore: computed field \\`${entry.path}\\` cannot depend on itself.`,\n );\n }\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- import{d as D}from"./chunk-PQYTA2OP.js";import{a as j,b as U,d as V,e as I,g as q,i as L,j as W,k as O}from"./chunk-SYEUXL2E.js";import{b as x}from"./chunk-UIKO6GGW.js";import{a as C}from"./chunk-HE6EQZTH.js";import{c as v,f as A}from"./chunk-G3EHXKOS.js";import{createContext as J,useContext as K}from"react";import{jsx as Q}from"react/jsx-runtime";var _=J(null),bt=({store:t,children:e})=>Q(_.Provider,{value:D(t),children:e}),m=()=>{let t=K(_);if(!t)throw new Error("BitForm hooks devem ser usados dentro de um BitFormProvider");return t};import{useCallback as d,useMemo as w,useRef as X,useState as $,useSyncExternalStore as Y}from"react";function vt(){let t=m(),[e,r]=$(null),[i,o]=$(null),s=X(null),u=d(p=>U(t,p),[t]),a=d(()=>{let p=j(t);return s.current&&s.current.isValid===p.isValid&&s.current.isDirty===p.isDirty&&s.current.isSubmitting===p.isSubmitting?s.current:(s.current=p,p)},[t]),n=Y(u,a,a),S=w(()=>L(t,{clearSubmissionState:()=>{r(null),o(null)},setSubmissionResult:p=>{o(p)},setSubmissionError:p=>{r(p)}}),[t]),{controller:c,actions:P}=S,F=d(c.submit,[c]),g=d(c.onSubmit,[c]),y=d(c.reset,[c]),l=d(c.getValues,[c]),f=d(c.getErrors,[c]),b=d(c.getTouched,[c]),h=d(c.getDirtyValues,[c]),k=w(()=>({...n,submitError:e,lastResponse:i}),[n,e,i]);return w(()=>({meta:k,getValues:l,getErrors:f,getTouched:b,getDirtyValues:h,submit:F,onSubmit:g,reset:y,...P}),[k,l,f,b,h,F,g,y,P])}import{useCallback as z,useEffect as Z,useMemo as M,useRef as N,useSyncExternalStore as tt}from"react";function wt(t){let e=m(),r=M(()=>q(e,t),[e,t]),i=N(null),o=z(()=>{let n=r.readItems();return i.current&&v(i.current,n)?i.current:(i.current=n,n)},[r]),s=z(n=>e.observe.subscribePath(t,()=>n()),[e,t]),u=tt(s,o,o),a=M(()=>r.getFields(u),[r,u]);return Z(()=>()=>{O(e,`${t}.`)},[e,t]),M(()=>({fields:a,length:u.length,append:r.append,prepend:r.prepend,insert:r.insert,remove:r.remove,move:r.move,swap:r.swap,replace:r.replace,clear:r.clear}),[a,u.length,r])}import{useCallback as R,useMemo as et,useRef as rt,useSyncExternalStore as ot}from"react";function Dt(t){let e=m(),r=rt(null),i=R(()=>{let n=e.read.getScopeStatus(t);return r.current&&x(r.current,n)?r.current:(r.current=n,n)},[e,t]),o=R(n=>e.observe.subscribeScopeStatus(t,()=>n()),[e,t]),s=ot(o,i,i),u=R(async()=>{let n=await e.feature.validate({scope:t}),S=e.read.getScopeErrors(t);return{valid:n,errors:S}},[e,t]),a=R(()=>e.read.getScopeErrors(t),[e,t]);return et(()=>({scopeName:t,status:s,errors:s.errors,validate:u,getErrors:a,isValid:!s.hasErrors,isDirty:s.isDirty}),[t,s,u,a])}import{useCallback as B,useMemo as st,useRef as nt,useState as it,useSyncExternalStore as at}from"react";function Lt(t){let e=m(),[r,i]=it(0),o=t[r]??"",s=nt(null),u=B(()=>{let l=e.read.getScopeStatus(o);return s.current&&x(s.current,l)?s.current:(s.current=l,l)},[e,o]),a=at(B(l=>e.observe.subscribeScopeStatus(o,()=>l()),[e,o]),u,u),n=B(async()=>{let l=await e.feature.validate({scope:o}),f=e.read.getScopeErrors(o);return{valid:l,errors:f}},[e,o]),S=B(()=>e.read.getScopeErrors(o),[e,o]),c=B(async()=>{let l=e.read.getScopeFields(o);if(e.feature.hasValidationsInProgress(l))return!1;let f=await e.feature.validate({scope:o});if(f)i(b=>Math.min(b+1,t.length-1));else{let b=e.read.getScopeErrors(o),h=Object.keys(b);h.length>0&&e.write.markFieldsTouched(h)}return f},[e,o,t.length]),P=B(()=>{i(l=>Math.max(l-1,0))},[]),F=B(l=>{i(Math.max(0,Math.min(l-1,t.length-1)))},[t.length]),g=r===0,y=r>=t.length-1;return st(()=>({step:r+1,stepIndex:r,scope:o,next:c,prev:P,goTo:F,isFirst:g,isLast:y,status:a,errors:a.errors,isValid:!a.hasErrors,isDirty:a.isDirty,validate:n,getErrors:S}),[r,o,c,P,F,g,y,a,n,S])}import{useCallback as G,useSyncExternalStore as ut,useRef as ct}from"react";function Ht(t){let e=m(),r=ct(null),i=G(()=>{let s=A(e.read.getState().values,t);return r.current!==null&&v(r.current,s)?r.current:(r.current=s,s)},[e,t]),o=G(s=>e.observe.subscribePath(t,()=>s()),[e,t]);return ut(o,i,i)}import{useCallback as T,useMemo as H,useSyncExternalStore as lt}from"react";function Yt(){let t=m(),e=T(a=>I(t,a),[t]),r=lt(e,()=>V(t),()=>V(t)),i=T(async()=>t.feature.restorePersisted(),[t]),o=T(async()=>{await t.feature.forceSave()},[t]),s=T(async()=>{await t.feature.clearPersisted()},[t]),u=H(()=>({isSaving:r.isSaving,isRestoring:r.isRestoring,error:r.error}),[r]);return H(()=>({restore:i,save:o,clear:s,meta:u}),[i,o,s,u])}import{useCallback as E,useEffect as mt,useRef as pt,useSyncExternalStore as St}from"react";function ne(t){let e=m(),r=pt(null);mt(()=>()=>W(e,t),[e,t]);let i=E(()=>{let n=e.read.getFieldState(t),S=C(n,r.current);return r.current=S,S},[e,t]),o=E(n=>e.observe.subscribeFieldState(t,()=>n()),[e,t]),s=St(o,i,i),u=E(n=>e.write.setField(t,n),[e,t]),a=E(()=>e.write.blurField(t),[e,t]);return{fieldState:s,setValue:u,setBlur:a,store:e}}export{bt as a,m as b,vt as c,ne as d,wt as e,Dt as f,Lt as g,Ht as h,Yt as i};
2
- //# sourceMappingURL=chunk-PGLND5EZ.js.map
1
+ import{d as D}from"./chunk-254C3DS5.js";import{a as j,b as U,d as V,e as I,g as q,i as L,j as W,k as O}from"./chunk-SYEUXL2E.js";import{b as x}from"./chunk-UIKO6GGW.js";import{a as C}from"./chunk-HE6EQZTH.js";import{c as v,f as A}from"./chunk-G3EHXKOS.js";import{createContext as J,useContext as K}from"react";import{jsx as Q}from"react/jsx-runtime";var _=J(null),bt=({store:t,children:e})=>Q(_.Provider,{value:D(t),children:e}),m=()=>{let t=K(_);if(!t)throw new Error("BitForm hooks devem ser usados dentro de um BitFormProvider");return t};import{useCallback as d,useMemo as w,useRef as X,useState as $,useSyncExternalStore as Y}from"react";function vt(){let t=m(),[e,r]=$(null),[i,o]=$(null),s=X(null),u=d(p=>U(t,p),[t]),a=d(()=>{let p=j(t);return s.current&&s.current.isValid===p.isValid&&s.current.isDirty===p.isDirty&&s.current.isSubmitting===p.isSubmitting?s.current:(s.current=p,p)},[t]),n=Y(u,a,a),S=w(()=>L(t,{clearSubmissionState:()=>{r(null),o(null)},setSubmissionResult:p=>{o(p)},setSubmissionError:p=>{r(p)}}),[t]),{controller:c,actions:P}=S,F=d(c.submit,[c]),g=d(c.onSubmit,[c]),y=d(c.reset,[c]),l=d(c.getValues,[c]),f=d(c.getErrors,[c]),b=d(c.getTouched,[c]),h=d(c.getDirtyValues,[c]),k=w(()=>({...n,submitError:e,lastResponse:i}),[n,e,i]);return w(()=>({meta:k,getValues:l,getErrors:f,getTouched:b,getDirtyValues:h,submit:F,onSubmit:g,reset:y,...P}),[k,l,f,b,h,F,g,y,P])}import{useCallback as z,useEffect as Z,useMemo as M,useRef as N,useSyncExternalStore as tt}from"react";function wt(t){let e=m(),r=M(()=>q(e,t),[e,t]),i=N(null),o=z(()=>{let n=r.readItems();return i.current&&v(i.current,n)?i.current:(i.current=n,n)},[r]),s=z(n=>e.observe.subscribePath(t,()=>n()),[e,t]),u=tt(s,o,o),a=M(()=>r.getFields(u),[r,u]);return Z(()=>()=>{O(e,`${t}.`)},[e,t]),M(()=>({fields:a,length:u.length,append:r.append,prepend:r.prepend,insert:r.insert,remove:r.remove,move:r.move,swap:r.swap,replace:r.replace,clear:r.clear}),[a,u.length,r])}import{useCallback as R,useMemo as et,useRef as rt,useSyncExternalStore as ot}from"react";function Dt(t){let e=m(),r=rt(null),i=R(()=>{let n=e.read.getScopeStatus(t);return r.current&&x(r.current,n)?r.current:(r.current=n,n)},[e,t]),o=R(n=>e.observe.subscribeScopeStatus(t,()=>n()),[e,t]),s=ot(o,i,i),u=R(async()=>{let n=await e.feature.validate({scope:t}),S=e.read.getScopeErrors(t);return{valid:n,errors:S}},[e,t]),a=R(()=>e.read.getScopeErrors(t),[e,t]);return et(()=>({scopeName:t,status:s,errors:s.errors,validate:u,getErrors:a,isValid:!s.hasErrors,isDirty:s.isDirty}),[t,s,u,a])}import{useCallback as B,useMemo as st,useRef as nt,useState as it,useSyncExternalStore as at}from"react";function Lt(t){let e=m(),[r,i]=it(0),o=t[r]??"",s=nt(null),u=B(()=>{let l=e.read.getScopeStatus(o);return s.current&&x(s.current,l)?s.current:(s.current=l,l)},[e,o]),a=at(B(l=>e.observe.subscribeScopeStatus(o,()=>l()),[e,o]),u,u),n=B(async()=>{let l=await e.feature.validate({scope:o}),f=e.read.getScopeErrors(o);return{valid:l,errors:f}},[e,o]),S=B(()=>e.read.getScopeErrors(o),[e,o]),c=B(async()=>{let l=e.read.getScopeFields(o);if(e.feature.hasValidationsInProgress(l))return!1;let f=await e.feature.validate({scope:o});if(f)i(b=>Math.min(b+1,t.length-1));else{let b=e.read.getScopeErrors(o),h=Object.keys(b);h.length>0&&e.write.markFieldsTouched(h)}return f},[e,o,t.length]),P=B(()=>{i(l=>Math.max(l-1,0))},[]),F=B(l=>{i(Math.max(0,Math.min(l-1,t.length-1)))},[t.length]),g=r===0,y=r>=t.length-1;return st(()=>({step:r+1,stepIndex:r,scope:o,next:c,prev:P,goTo:F,isFirst:g,isLast:y,status:a,errors:a.errors,isValid:!a.hasErrors,isDirty:a.isDirty,validate:n,getErrors:S}),[r,o,c,P,F,g,y,a,n,S])}import{useCallback as G,useSyncExternalStore as ut,useRef as ct}from"react";function Ht(t){let e=m(),r=ct(null),i=G(()=>{let s=A(e.read.getState().values,t);return r.current!==null&&v(r.current,s)?r.current:(r.current=s,s)},[e,t]),o=G(s=>e.observe.subscribePath(t,()=>s()),[e,t]);return ut(o,i,i)}import{useCallback as T,useMemo as H,useSyncExternalStore as lt}from"react";function Yt(){let t=m(),e=T(a=>I(t,a),[t]),r=lt(e,()=>V(t),()=>V(t)),i=T(async()=>t.feature.restorePersisted(),[t]),o=T(async()=>{await t.feature.forceSave()},[t]),s=T(async()=>{await t.feature.clearPersisted()},[t]),u=H(()=>({isSaving:r.isSaving,isRestoring:r.isRestoring,error:r.error}),[r]);return H(()=>({restore:i,save:o,clear:s,meta:u}),[i,o,s,u])}import{useCallback as E,useEffect as mt,useRef as pt,useSyncExternalStore as St}from"react";function ne(t){let e=m(),r=pt(null);mt(()=>()=>W(e,t),[e,t]);let i=E(()=>{let n=e.read.getFieldState(t),S=C(n,r.current);return r.current=S,S},[e,t]),o=E(n=>e.observe.subscribeFieldState(t,()=>n()),[e,t]),s=St(o,i,i),u=E(n=>e.write.setField(t,n),[e,t]),a=E(()=>e.write.blurField(t),[e,t]);return{fieldState:s,setValue:u,setBlur:a,store:e}}export{bt as a,m as b,vt as c,ne as d,wt as e,Dt as f,Lt as g,Ht as h,Yt as i};
2
+ //# sourceMappingURL=chunk-YS4IB2ZO.js.map
@@ -171,6 +171,12 @@ interface BitHistoryConfig {
171
171
  * @default 50
172
172
  */
173
173
  limit?: number;
174
+ /**
175
+ * Debounce window (ms) used to coalesce rapid value changes into a single
176
+ * history snapshot.
177
+ * @default 300
178
+ */
179
+ debounceMs?: number;
174
180
  }
175
181
  /**
176
182
  * BitConfig - store configuration.
@@ -171,6 +171,12 @@ interface BitHistoryConfig {
171
171
  * @default 50
172
172
  */
173
173
  limit?: number;
174
+ /**
175
+ * Debounce window (ms) used to coalesce rapid value changes into a single
176
+ * history snapshot.
177
+ * @default 300
178
+ */
179
+ debounceMs?: number;
174
180
  }
175
181
  /**
176
182
  * BitConfig - store configuration.
@@ -1,12 +1,12 @@
1
1
  import { B as BitFormMeta, c as BitServerErrorOptions, b as BitValidationOptions } from '../meta-types-BC1VLABk.cjs';
2
- import { e as BitStoreApi } from '../store-api-types-CVQuHPhm.cjs';
2
+ import { e as BitStoreApi } from '../store-api-types-C_K952Z3.cjs';
3
3
  import { f as BitPersistMetadata, a as BitArrayPath, d as BitPath, e as BitPathValue, D as DeepPartial } from '../state-types-8bUndWfg.cjs';
4
4
  import { B as BitArrayBinding } from '../upload-C4JqIaU2.cjs';
5
5
  export { a as BitArrayBindingField, b as BitDeleteUploadFn, c as BitHistoryAdapterResult, d as BitPersistAdapterResult, e as BitStepsAdapterResult, f as BitUploadAdapterResult, g as BitUploadFn, h as BitUploadInput, i as BitUploadResult, j as BitUploadValue } from '../upload-C4JqIaU2.cjs';
6
6
  import '../bus-DzTqgkZ4.cjs';
7
7
  export { B as BitFieldInputEvent, f as formatMaskedValue, i as isBitFieldInputEventObject, p as parseMaskedInput } from '../field-binding-X5TkvfUt.cjs';
8
8
  import '../types-CUXh7PqD.cjs';
9
- import '../config-types-CewC0AIS.cjs';
9
+ import '../config-types-BuN_ezi7.cjs';
10
10
  import '../runtime-types-D1SRZr-n.cjs';
11
11
 
12
12
  declare function readFormMetaSnapshot<T extends object>(store: BitStoreApi<T>): BitFormMeta;
@@ -1,12 +1,12 @@
1
1
  import { B as BitFormMeta, c as BitServerErrorOptions, b as BitValidationOptions } from '../meta-types-BC1VLABk.js';
2
- import { e as BitStoreApi } from '../store-api-types-Cy-zEhRU.js';
2
+ import { e as BitStoreApi } from '../store-api-types-CNBOPbCQ.js';
3
3
  import { f as BitPersistMetadata, a as BitArrayPath, d as BitPath, e as BitPathValue, D as DeepPartial } from '../state-types-8bUndWfg.js';
4
4
  import { B as BitArrayBinding } from '../upload-ao6skK9K.js';
5
5
  export { a as BitArrayBindingField, b as BitDeleteUploadFn, c as BitHistoryAdapterResult, d as BitPersistAdapterResult, e as BitStepsAdapterResult, f as BitUploadAdapterResult, g as BitUploadFn, h as BitUploadInput, i as BitUploadResult, j as BitUploadValue } from '../upload-ao6skK9K.js';
6
6
  import '../bus-BFOBGmd9.js';
7
7
  export { B as BitFieldInputEvent, f as formatMaskedValue, i as isBitFieldInputEventObject, p as parseMaskedInput } from '../field-binding-Bi1g-D8X.js';
8
8
  import '../types-CUXh7PqD.js';
9
- import '../config-types-BgIAuvzu.js';
9
+ import '../config-types-CjyxvUHF.js';
10
10
  import '../runtime-types-D1SRZr-n.js';
11
11
 
12
12
  declare function readFormMetaSnapshot<T extends object>(store: BitStoreApi<T>): BitFormMeta;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHHDHVLGPcjs = require('../chunk-HHDHVLGP.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');exports.bitBus = _chunkHHDHVLGPcjs.a; exports.createBitBus = _chunkHHDHVLGPcjs.b; exports.createBitStore = _chunkHHDHVLGPcjs.e; exports.createFrameworkStoreAdapter = _chunkHHDHVLGPcjs.d; exports.extractFeatureSlice = _chunkHHDHVLGPcjs.i; exports.extractObserveSlice = _chunkHHDHVLGPcjs.g; exports.extractReadSlice = _chunkHHDHVLGPcjs.f; exports.extractSlices = _chunkHHDHVLGPcjs.j; exports.extractWriteSlice = _chunkHHDHVLGPcjs.h; exports.resolveBitStoreForHooks = _chunkHHDHVLGPcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXRDTN4JGcjs = require('../chunk-XRDTN4JG.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');exports.bitBus = _chunkXRDTN4JGcjs.a; exports.createBitBus = _chunkXRDTN4JGcjs.b; exports.createBitStore = _chunkXRDTN4JGcjs.e; exports.createFrameworkStoreAdapter = _chunkXRDTN4JGcjs.d; exports.extractFeatureSlice = _chunkXRDTN4JGcjs.i; exports.extractObserveSlice = _chunkXRDTN4JGcjs.g; exports.extractReadSlice = _chunkXRDTN4JGcjs.f; exports.extractSlices = _chunkXRDTN4JGcjs.j; exports.extractWriteSlice = _chunkXRDTN4JGcjs.h; exports.resolveBitStoreForHooks = _chunkXRDTN4JGcjs.c;
2
2
  //# sourceMappingURL=store.cjs.map
@@ -1,8 +1,8 @@
1
1
  export { createBitStore, createFrameworkStoreAdapter, resolveBitStoreForHooks } from '../index.cjs';
2
- import { e as BitStoreApi, g as BitStoreFeatureApi, h as BitStoreObserveSliceApi, i as BitStoreReadSliceApi, j as BitStoreWriteSliceApi } from '../store-api-types-CVQuHPhm.cjs';
3
- export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions } from '../store-api-types-CVQuHPhm.cjs';
2
+ import { e as BitStoreApi, g as BitStoreFeatureApi, h as BitStoreObserveSliceApi, i as BitStoreReadSliceApi, j as BitStoreWriteSliceApi } from '../store-api-types-C_K952Z3.cjs';
3
+ export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions } from '../store-api-types-C_K952Z3.cjs';
4
4
  export { B as BitFormMeta, a as BitHistoryMetadata, b as BitValidationOptions } from '../meta-types-BC1VLABk.cjs';
5
- export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from '../config-types-CewC0AIS.cjs';
5
+ export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from '../config-types-BuN_ezi7.cjs';
6
6
  export { B as BitArrayItem, a as BitArrayPath, b as BitErrors, c as BitFieldState, d as BitPath, e as BitPathValue, f as BitPersistMetadata, g as BitState, h as BitTouched, D as DeepPartial } from '../state-types-8bUndWfg.cjs';
7
7
  export { B as BitScheduler, a as BitSubmitResult, D as DevToolsOptions, S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.cjs';
8
8
  export { B as BitBus, a as BitBusListener, b as BitBusStorePort, c as BitFormGlobal, d as bitBus, e as createBitBus } from '../bus-DzTqgkZ4.cjs';
@@ -1,8 +1,8 @@
1
1
  export { createBitStore, createFrameworkStoreAdapter, resolveBitStoreForHooks } from '../index.js';
2
- import { e as BitStoreApi, g as BitStoreFeatureApi, h as BitStoreObserveSliceApi, i as BitStoreReadSliceApi, j as BitStoreWriteSliceApi } from '../store-api-types-Cy-zEhRU.js';
3
- export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions } from '../store-api-types-Cy-zEhRU.js';
2
+ import { e as BitStoreApi, g as BitStoreFeatureApi, h as BitStoreObserveSliceApi, i as BitStoreReadSliceApi, j as BitStoreWriteSliceApi } from '../store-api-types-CNBOPbCQ.js';
3
+ export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions } from '../store-api-types-CNBOPbCQ.js';
4
4
  export { B as BitFormMeta, a as BitHistoryMetadata, b as BitValidationOptions } from '../meta-types-BC1VLABk.js';
5
- export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from '../config-types-BgIAuvzu.js';
5
+ export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from '../config-types-CjyxvUHF.js';
6
6
  export { B as BitArrayItem, a as BitArrayPath, b as BitErrors, c as BitFieldState, d as BitPath, e as BitPathValue, f as BitPersistMetadata, g as BitState, h as BitTouched, D as DeepPartial } from '../state-types-8bUndWfg.js';
7
7
  export { B as BitScheduler, a as BitSubmitResult, D as DevToolsOptions, S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.js';
8
8
  export { B as BitBus, a as BitBusListener, b as BitBusStorePort, c as BitFormGlobal, d as bitBus, e as createBitBus } from '../bus-BFOBGmd9.js';
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j}from"../chunk-PQYTA2OP.js";import"../chunk-UIKO6GGW.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";export{a as bitBus,b as createBitBus,e as createBitStore,d as createFrameworkStoreAdapter,i as extractFeatureSlice,g as extractObserveSlice,f as extractReadSlice,j as extractSlices,h as extractWriteSlice,c as resolveBitStoreForHooks};
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../chunk-254C3DS5.js";import"../chunk-UIKO6GGW.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";export{a as bitBus,b as createBitBus,e as createBitStore,d as createFrameworkStoreAdapter,i as extractFeatureSlice,g as extractObserveSlice,f as extractReadSlice,j as extractSlices,h as extractWriteSlice,c as resolveBitStoreForHooks};
2
2
  //# sourceMappingURL=store.js.map
package/dist/core.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-W5CLDRRE.cjs');var _chunkHHDHVLGPcjs = require('./chunk-HHDHVLGP.cjs');var _chunkAVUK52JWcjs = require('./chunk-AVUK52JW.cjs');var _chunkBSGJ3T5Scjs = require('./chunk-BSGJ3T5S.cjs');var _chunkRHMJPKNVcjs = require('./chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('./chunk-3KI3GEU3.cjs');var _chunkGKNGJOB3cjs = require('./chunk-GKNGJOB3.cjs');var _chunkFTXV2NZOcjs = require('./chunk-FTXV2NZO.cjs');require('./chunk-WRNR6SXK.cjs');var _chunkPFPGASVZcjs = require('./chunk-PFPGASVZ.cjs');exports.areFieldSnapshotsEqual = _chunkGKNGJOB3cjs.b; exports.areScopeErrorsEqual = _chunkRHMJPKNVcjs.a; exports.bitBus = _chunkHHDHVLGPcjs.a; exports.cleanPrefixedKeys = _chunkFTXV2NZOcjs.j; exports.cleanupRegisteredField = _chunkAVUK52JWcjs.j; exports.cleanupRegisteredPrefix = _chunkAVUK52JWcjs.k; exports.createArrayBinding = _chunkAVUK52JWcjs.g; exports.createBitBus = _chunkHHDHVLGPcjs.b; exports.createBitStore = _chunkHHDHVLGPcjs.e; exports.createFieldStateSnapshot = _chunkGKNGJOB3cjs.a; exports.createFrameworkFormBinding = _chunkAVUK52JWcjs.i; exports.createFrameworkMaskedFieldBinding = _chunkAVUK52JWcjs.h; exports.createFrameworkStoreAdapter = _chunkHHDHVLGPcjs.d; exports.deepClone = _chunkFTXV2NZOcjs.a; exports.deepEqual = _chunkFTXV2NZOcjs.d; exports.deepMerge = _chunkFTXV2NZOcjs.b; exports.deriveFieldMeta = _chunk3KI3GEU3cjs.a; exports.extractFeatureSlice = _chunkHHDHVLGPcjs.i; exports.extractObserveSlice = _chunkHHDHVLGPcjs.g; exports.extractReadSlice = _chunkHHDHVLGPcjs.f; exports.extractServerErrors = _chunkFTXV2NZOcjs.n; exports.extractSlices = _chunkHHDHVLGPcjs.j; exports.extractWriteSlice = _chunkHHDHVLGPcjs.h; exports.formatMaskedValue = _chunkPFPGASVZcjs.b; exports.getDeepValue = _chunkFTXV2NZOcjs.f; exports.getScopeSubscriptionPaths = _chunkRHMJPKNVcjs.c; exports.isBitFieldInputEventObject = _chunkPFPGASVZcjs.a; exports.isHistoryMetaEqual = _chunkRHMJPKNVcjs.e; exports.isScopeStatusEqual = _chunkRHMJPKNVcjs.b; exports.isValidationErrorShape = _chunkFTXV2NZOcjs.m; exports.observeFormMetaSnapshot = _chunkAVUK52JWcjs.c; exports.observeHistoryMetaSnapshot = _chunkRHMJPKNVcjs.g; exports.observePersistMetaSnapshot = _chunkAVUK52JWcjs.f; exports.observeScopeStatusSnapshot = _chunkBSGJ3T5Scjs.a; exports.parseMaskedInput = _chunkPFPGASVZcjs.c; exports.readFormMetaSnapshot = _chunkAVUK52JWcjs.a; exports.readHistoryMetaSnapshot = _chunkRHMJPKNVcjs.f; exports.readPersistMetaSnapshot = _chunkAVUK52JWcjs.d; exports.resolveBitStoreForHooks = _chunkHHDHVLGPcjs.c; exports.setDeepValue = _chunkFTXV2NZOcjs.g; exports.subscribeFormMetaSnapshot = _chunkAVUK52JWcjs.b; exports.subscribePersistMetaSnapshot = _chunkAVUK52JWcjs.e; exports.valueEqual = _chunkFTXV2NZOcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-W5CLDRRE.cjs');var _chunkXRDTN4JGcjs = require('./chunk-XRDTN4JG.cjs');var _chunkAVUK52JWcjs = require('./chunk-AVUK52JW.cjs');var _chunkBSGJ3T5Scjs = require('./chunk-BSGJ3T5S.cjs');var _chunkRHMJPKNVcjs = require('./chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('./chunk-3KI3GEU3.cjs');var _chunkGKNGJOB3cjs = require('./chunk-GKNGJOB3.cjs');var _chunkFTXV2NZOcjs = require('./chunk-FTXV2NZO.cjs');require('./chunk-WRNR6SXK.cjs');var _chunkPFPGASVZcjs = require('./chunk-PFPGASVZ.cjs');exports.areFieldSnapshotsEqual = _chunkGKNGJOB3cjs.b; exports.areScopeErrorsEqual = _chunkRHMJPKNVcjs.a; exports.bitBus = _chunkXRDTN4JGcjs.a; exports.cleanPrefixedKeys = _chunkFTXV2NZOcjs.j; exports.cleanupRegisteredField = _chunkAVUK52JWcjs.j; exports.cleanupRegisteredPrefix = _chunkAVUK52JWcjs.k; exports.createArrayBinding = _chunkAVUK52JWcjs.g; exports.createBitBus = _chunkXRDTN4JGcjs.b; exports.createBitStore = _chunkXRDTN4JGcjs.e; exports.createFieldStateSnapshot = _chunkGKNGJOB3cjs.a; exports.createFrameworkFormBinding = _chunkAVUK52JWcjs.i; exports.createFrameworkMaskedFieldBinding = _chunkAVUK52JWcjs.h; exports.createFrameworkStoreAdapter = _chunkXRDTN4JGcjs.d; exports.deepClone = _chunkFTXV2NZOcjs.a; exports.deepEqual = _chunkFTXV2NZOcjs.d; exports.deepMerge = _chunkFTXV2NZOcjs.b; exports.deriveFieldMeta = _chunk3KI3GEU3cjs.a; exports.extractFeatureSlice = _chunkXRDTN4JGcjs.i; exports.extractObserveSlice = _chunkXRDTN4JGcjs.g; exports.extractReadSlice = _chunkXRDTN4JGcjs.f; exports.extractServerErrors = _chunkFTXV2NZOcjs.n; exports.extractSlices = _chunkXRDTN4JGcjs.j; exports.extractWriteSlice = _chunkXRDTN4JGcjs.h; exports.formatMaskedValue = _chunkPFPGASVZcjs.b; exports.getDeepValue = _chunkFTXV2NZOcjs.f; exports.getScopeSubscriptionPaths = _chunkRHMJPKNVcjs.c; exports.isBitFieldInputEventObject = _chunkPFPGASVZcjs.a; exports.isHistoryMetaEqual = _chunkRHMJPKNVcjs.e; exports.isScopeStatusEqual = _chunkRHMJPKNVcjs.b; exports.isValidationErrorShape = _chunkFTXV2NZOcjs.m; exports.observeFormMetaSnapshot = _chunkAVUK52JWcjs.c; exports.observeHistoryMetaSnapshot = _chunkRHMJPKNVcjs.g; exports.observePersistMetaSnapshot = _chunkAVUK52JWcjs.f; exports.observeScopeStatusSnapshot = _chunkBSGJ3T5Scjs.a; exports.parseMaskedInput = _chunkPFPGASVZcjs.c; exports.readFormMetaSnapshot = _chunkAVUK52JWcjs.a; exports.readHistoryMetaSnapshot = _chunkRHMJPKNVcjs.f; exports.readPersistMetaSnapshot = _chunkAVUK52JWcjs.d; exports.resolveBitStoreForHooks = _chunkXRDTN4JGcjs.c; exports.setDeepValue = _chunkFTXV2NZOcjs.g; exports.subscribeFormMetaSnapshot = _chunkAVUK52JWcjs.b; exports.subscribePersistMetaSnapshot = _chunkAVUK52JWcjs.e; exports.valueEqual = _chunkFTXV2NZOcjs.c;
2
2
  //# sourceMappingURL=core.cjs.map
package/dist/core.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { createBitStore, createFrameworkStoreAdapter, resolveBitStoreForHooks } from './index.cjs';
2
2
  export { extractFeatureSlice, extractObserveSlice, extractReadSlice, extractSlices, extractWriteSlice } from './core/store.cjs';
3
- export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions, e as BitStoreApi } from './store-api-types-CVQuHPhm.cjs';
3
+ export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions, e as BitStoreApi } from './store-api-types-C_K952Z3.cjs';
4
4
  export { B as BitFormMeta, a as BitHistoryMetadata, b as BitValidationOptions } from './meta-types-BC1VLABk.cjs';
5
- export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from './config-types-CewC0AIS.cjs';
5
+ export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from './config-types-BuN_ezi7.cjs';
6
6
  export { B as BitArrayItem, a as BitArrayPath, b as BitErrors, c as BitFieldState, d as BitPath, e as BitPathValue, f as BitPersistMetadata, g as BitState, h as BitTouched, D as DeepPartial } from './state-types-8bUndWfg.cjs';
7
7
  export { B as BitScheduler, a as BitSubmitResult, D as DevToolsOptions, S as ScopeStatus, V as ValidateScopeResult } from './runtime-types-D1SRZr-n.cjs';
8
8
  export { B as BitBus, a as BitBusListener, b as BitBusStorePort, c as BitFormGlobal, d as bitBus, e as createBitBus } from './bus-DzTqgkZ4.cjs';
package/dist/core.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { createBitStore, createFrameworkStoreAdapter, resolveBitStoreForHooks } from './index.js';
2
2
  export { extractFeatureSlice, extractObserveSlice, extractReadSlice, extractSlices, extractWriteSlice } from './core/store.js';
3
- export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions, e as BitStoreApi } from './store-api-types-Cy-zEhRU.js';
3
+ export { B as BitEqualityFn, a as BitFrameworkConfig, b as BitFrameworkStoreApi, c as BitSelector, d as BitSelectorSubscriptionOptions, e as BitStoreApi } from './store-api-types-CNBOPbCQ.js';
4
4
  export { B as BitFormMeta, a as BitHistoryMetadata, b as BitValidationOptions } from './meta-types-BC1VLABk.js';
5
- export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from './config-types-BgIAuvzu.js';
5
+ export { B as BitAfterSubmitEvent, a as BitAfterValidateEvent, b as BitBeforeSubmitEvent, c as BitBeforeValidateEvent, d as BitComputedFn, e as BitConfig, f as BitFieldChangeEvent, g as BitFieldChangeMeta, h as BitFieldConditional, i as BitFieldDefinition, j as BitFieldValidation, k as BitHistoryConfig, l as BitNormalizeFn, m as BitPersistConfig, n as BitPersistMode, o as BitPersistStorageAdapter, p as BitPlugin, q as BitPluginContext, r as BitPluginErrorEvent, s as BitPluginHooks, t as BitTransformFn, u as BitValidationConfig, V as ValidatorFn } from './config-types-CjyxvUHF.js';
6
6
  export { B as BitArrayItem, a as BitArrayPath, b as BitErrors, c as BitFieldState, d as BitPath, e as BitPathValue, f as BitPersistMetadata, g as BitState, h as BitTouched, D as DeepPartial } from './state-types-8bUndWfg.js';
7
7
  export { B as BitScheduler, a as BitSubmitResult, D as DevToolsOptions, S as ScopeStatus, V as ValidateScopeResult } from './runtime-types-D1SRZr-n.js';
8
8
  export { B as BitBus, a as BitBusListener, b as BitBusStorePort, c as BitFormGlobal, d as bitBus, e as createBitBus } from './bus-BFOBGmd9.js';
package/dist/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./chunk-5NA2TFPG.js";import{a as j,b as k,c as t,d as u,e as v,f as w,g as x,h as y,i as z,j as A}from"./chunk-PQYTA2OP.js";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as L,i as M,j as N,k as O}from"./chunk-SYEUXL2E.js";import{a as P}from"./chunk-W2E5UIXT.js";import{a as l,b as m,c as n,e as o,f as p,g as q}from"./chunk-UIKO6GGW.js";import{a as Q}from"./chunk-ICYXODTQ.js";import{a as r,b as s}from"./chunk-HE6EQZTH.js";import{a,b,c,d,f as e,g as f,j as g,m as h,n as i}from"./chunk-G3EHXKOS.js";import"./chunk-QCKCONCU.js";import{a as I,b as J,c as K}from"./chunk-3NUJVIAM.js";export{s as areFieldSnapshotsEqual,l as areScopeErrorsEqual,j as bitBus,g as cleanPrefixedKeys,N as cleanupRegisteredField,O as cleanupRegisteredPrefix,H as createArrayBinding,k as createBitBus,v as createBitStore,r as createFieldStateSnapshot,M as createFrameworkFormBinding,L as createFrameworkMaskedFieldBinding,u as createFrameworkStoreAdapter,a as deepClone,d as deepEqual,b as deepMerge,Q as deriveFieldMeta,z as extractFeatureSlice,x as extractObserveSlice,w as extractReadSlice,i as extractServerErrors,A as extractSlices,y as extractWriteSlice,J as formatMaskedValue,e as getDeepValue,n as getScopeSubscriptionPaths,I as isBitFieldInputEventObject,o as isHistoryMetaEqual,m as isScopeStatusEqual,h as isValidationErrorShape,D as observeFormMetaSnapshot,q as observeHistoryMetaSnapshot,G as observePersistMetaSnapshot,P as observeScopeStatusSnapshot,K as parseMaskedInput,B as readFormMetaSnapshot,p as readHistoryMetaSnapshot,E as readPersistMetaSnapshot,t as resolveBitStoreForHooks,f as setDeepValue,C as subscribeFormMetaSnapshot,F as subscribePersistMetaSnapshot,c as valueEqual};
1
+ import"./chunk-5NA2TFPG.js";import{a as j,b as k,c as t,d as u,e as v,f as w,g as x,h as y,i as z,j as A}from"./chunk-254C3DS5.js";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as L,i as M,j as N,k as O}from"./chunk-SYEUXL2E.js";import{a as P}from"./chunk-W2E5UIXT.js";import{a as l,b as m,c as n,e as o,f as p,g as q}from"./chunk-UIKO6GGW.js";import{a as Q}from"./chunk-ICYXODTQ.js";import{a as r,b as s}from"./chunk-HE6EQZTH.js";import{a,b,c,d,f as e,g as f,j as g,m as h,n as i}from"./chunk-G3EHXKOS.js";import"./chunk-QCKCONCU.js";import{a as I,b as J,c as K}from"./chunk-3NUJVIAM.js";export{s as areFieldSnapshotsEqual,l as areScopeErrorsEqual,j as bitBus,g as cleanPrefixedKeys,N as cleanupRegisteredField,O as cleanupRegisteredPrefix,H as createArrayBinding,k as createBitBus,v as createBitStore,r as createFieldStateSnapshot,M as createFrameworkFormBinding,L as createFrameworkMaskedFieldBinding,u as createFrameworkStoreAdapter,a as deepClone,d as deepEqual,b as deepMerge,Q as deriveFieldMeta,z as extractFeatureSlice,x as extractObserveSlice,w as extractReadSlice,i as extractServerErrors,A as extractSlices,y as extractWriteSlice,J as formatMaskedValue,e as getDeepValue,n as getScopeSubscriptionPaths,I as isBitFieldInputEventObject,o as isHistoryMetaEqual,m as isScopeStatusEqual,h as isValidationErrorShape,D as observeFormMetaSnapshot,q as observeHistoryMetaSnapshot,G as observePersistMetaSnapshot,P as observeScopeStatusSnapshot,K as parseMaskedInput,B as readFormMetaSnapshot,p as readHistoryMetaSnapshot,E as readPersistMetaSnapshot,t as resolveBitStoreForHooks,f as setDeepValue,C as subscribeFormMetaSnapshot,F as subscribePersistMetaSnapshot,c as valueEqual};
2
2
  //# sourceMappingURL=core.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUIBR5FS6cjs = require('../chunk-UIBR5FS6.cjs');require('../chunk-QKGTVKBU.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-HHDHVLGP.cjs');require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');exports.setupRemoteBridge = _chunkUIBR5FS6cjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4FQRTIYPcjs = require('../chunk-4FQRTIYP.cjs');require('../chunk-QKGTVKBU.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-XRDTN4JG.cjs');require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');exports.setupRemoteBridge = _chunk4FQRTIYPcjs.c;
2
2
  //# sourceMappingURL=bridge.cjs.map
@@ -1,2 +1,2 @@
1
- import{c as a}from"../chunk-HNSQFNCR.js";import"../chunk-K5X37E3U.js";import"../chunk-5NA2TFPG.js";import"../chunk-PQYTA2OP.js";import"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";export{a as setupRemoteBridge};
1
+ import{c as a}from"../chunk-HCJTGESK.js";import"../chunk-K5X37E3U.js";import"../chunk-5NA2TFPG.js";import"../chunk-254C3DS5.js";import"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";export{a as setupRemoteBridge};
2
2
  //# sourceMappingURL=bridge.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;var _chunkUIBR5FS6cjs = require('../chunk-UIBR5FS6.cjs');var _chunkQKGTVKBUcjs = require('../chunk-QKGTVKBU.cjs');require('../chunk-W5CLDRRE.cjs');var _chunkHHDHVLGPcjs = require('../chunk-HHDHVLGP.cjs');require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');function x(){return`
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;var _chunk4FQRTIYPcjs = require('../chunk-4FQRTIYP.cjs');var _chunkQKGTVKBUcjs = require('../chunk-QKGTVKBU.cjs');require('../chunk-W5CLDRRE.cjs');var _chunkXRDTN4JGcjs = require('../chunk-XRDTN4JG.cjs');require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');function x(){return`
2
2
  .bit-devtools-container {
3
3
  position: fixed;
4
4
  bottom: 20px;
@@ -129,5 +129,5 @@
129
129
  <button class="bit-devtools-trigger" style="transform: ${this.isOpen?"scale(0.9)":"scale(1)"};" title="Abrir DevTools">
130
130
  ${this.isOpen?"\u2716":"Bit"}
131
131
  </button>
132
- `;this.rootElement.innerHTML=i+t}}, _class);function y(n,r=_chunkHHDHVLGPcjs.a){let i=new d(n,{onUndo:o=>_optionalChain([_chunkUIBR5FS6cjs.b.call(void 0, r.stores,o), 'optionalAccess', _ => _.undo, 'call', _2 => _2()]),onRedo:o=>_optionalChain([_chunkUIBR5FS6cjs.b.call(void 0, r.stores,o), 'optionalAccess', _3 => _3.redo, 'call', _4 => _4()]),onReset:o=>_optionalChain([_chunkUIBR5FS6cjs.b.call(void 0, r.stores,o), 'optionalAccess', _5 => _5.reset, 'call', _6 => _6()])}),t=()=>_chunkUIBR5FS6cjs.a.call(void 0, r.stores);i.updateState(t());let e=r.subscribe(()=>{i.updateState(t())});return{ui:i,destroy:()=>{e(),n.innerHTML=""}}}function T(n,r="ws://localhost:3000",i){let t=new WebSocket(r),e=s=>{t.readyState===WebSocket.OPEN?t.send(JSON.stringify(s)):console.warn("[bit-form] Tentativa de envio falhou. WebSocket n\xE3o est\xE1 aberto.")},o=(s,l)=>{e({type:"ACTION",protocolVersion:1,payload:{storeId:s,action:l}})},a=new d(n,{onUndo:s=>o(s,"undo"),onRedo:s=>o(s,"redo"),onReset:s=>o(s,"reset")});return t.addEventListener("open",()=>{e({type:"HELLO",protocolVersion:1,payload:{role:"client",protocolVersion:1}}),console.log(`[bit-form] Conectado ao DevTools remoto em ${r}`)}),t.addEventListener("message",s=>{try{let l=JSON.parse(s.data);_chunkQKGTVKBUcjs.d.call(void 0, l)&&a.updateState(l.payload)}catch(l){console.error("[bit-form] Erro ao processar mensagem do WebSocket:",l)}}),t.addEventListener("error",s=>{console.error("[bit-form] Erro na conex\xE3o do DevTools remoto:",s)}),{ui:a,destroy:()=>{(t.readyState===WebSocket.OPEN||t.readyState===WebSocket.CONNECTING)&&t.close(),n.innerHTML=""}}}function b(n={}){let{mode:r="local",url:i,bus:t}=n,e,o=!1;if(typeof n.container=="string"){let s=document.querySelector(n.container);if(!s)throw new Error(`[bit-form] Container '${n.container}' n\xE3o encontrado na p\xE1gina.`);e=s}else n.container instanceof HTMLElement?e=n.container:(e=document.createElement("div"),e.id="bit-form-devtools-root",e.style.position="fixed",e.style.bottom="20px",e.style.right="20px",e.style.zIndex="9999",e.style.maxHeight="80vh",e.style.overflowY="auto",e.style.boxShadow="0 10px 25px rgba(0,0,0,0.1)",document.body.appendChild(e),o=!0);let a;if(r==="local")console.log("[bit-form] DevTools iniciado em modo Local."),a=y(e,t);else if(r==="remote")console.log("[bit-form] DevTools iniciado em modo Remote."),a=T(e,i,t);else throw new Error(`[bit-form] Modo DevTools inv\xE1lido: ${r}`);return{...a,destroy:()=>{a&&typeof a.destroy=="function"&&a.destroy(),o&&e.parentNode?e.parentNode.removeChild(e):e.innerHTML=""}}}function h(n){return typeof n=="boolean"?{enabled:n,mode:"local"}:{enabled:!!n,mode:_nullishCoalesce(_optionalChain([n, 'optionalAccess', _7 => _7.mode]), () => ("local")),url:_optionalChain([n, 'optionalAccess', _8 => _8.url])}}function D(n){return{name:"bit-devtools",setup:r=>{let i=h(_nullishCoalesce(n, () => (r.getConfig().devTools)));if(!i.enabled)return;let t=null,e=r.getConfig().bus;try{if(i.mode==="remote")t=_chunkUIBR5FS6cjs.c.call(void 0, i.url||"ws://localhost:3000",e);else{let o=b({bus:e});t=o&&typeof o.destroy=="function"?o.destroy:null}}catch (e2){}return()=>{t&&(t(),t=null)}}}}exports.DEVTOOLS_PROTOCOL_VERSION = _chunkQKGTVKBUcjs.a; exports.createDevToolsPlugin = D; exports.initDevTools = b;
132
+ `;this.rootElement.innerHTML=i+t}}, _class);function y(n,r=_chunkXRDTN4JGcjs.a){let i=new d(n,{onUndo:o=>_optionalChain([_chunk4FQRTIYPcjs.b.call(void 0, r.stores,o), 'optionalAccess', _ => _.undo, 'call', _2 => _2()]),onRedo:o=>_optionalChain([_chunk4FQRTIYPcjs.b.call(void 0, r.stores,o), 'optionalAccess', _3 => _3.redo, 'call', _4 => _4()]),onReset:o=>_optionalChain([_chunk4FQRTIYPcjs.b.call(void 0, r.stores,o), 'optionalAccess', _5 => _5.reset, 'call', _6 => _6()])}),t=()=>_chunk4FQRTIYPcjs.a.call(void 0, r.stores);i.updateState(t());let e=r.subscribe(()=>{i.updateState(t())});return{ui:i,destroy:()=>{e(),n.innerHTML=""}}}function T(n,r="ws://localhost:3000",i){let t=new WebSocket(r),e=s=>{t.readyState===WebSocket.OPEN?t.send(JSON.stringify(s)):console.warn("[bit-form] Tentativa de envio falhou. WebSocket n\xE3o est\xE1 aberto.")},o=(s,l)=>{e({type:"ACTION",protocolVersion:1,payload:{storeId:s,action:l}})},a=new d(n,{onUndo:s=>o(s,"undo"),onRedo:s=>o(s,"redo"),onReset:s=>o(s,"reset")});return t.addEventListener("open",()=>{e({type:"HELLO",protocolVersion:1,payload:{role:"client",protocolVersion:1}}),console.log(`[bit-form] Conectado ao DevTools remoto em ${r}`)}),t.addEventListener("message",s=>{try{let l=JSON.parse(s.data);_chunkQKGTVKBUcjs.d.call(void 0, l)&&a.updateState(l.payload)}catch(l){console.error("[bit-form] Erro ao processar mensagem do WebSocket:",l)}}),t.addEventListener("error",s=>{console.error("[bit-form] Erro na conex\xE3o do DevTools remoto:",s)}),{ui:a,destroy:()=>{(t.readyState===WebSocket.OPEN||t.readyState===WebSocket.CONNECTING)&&t.close(),n.innerHTML=""}}}function b(n={}){let{mode:r="local",url:i,bus:t}=n,e,o=!1;if(typeof n.container=="string"){let s=document.querySelector(n.container);if(!s)throw new Error(`[bit-form] Container '${n.container}' n\xE3o encontrado na p\xE1gina.`);e=s}else n.container instanceof HTMLElement?e=n.container:(e=document.createElement("div"),e.id="bit-form-devtools-root",e.style.position="fixed",e.style.bottom="20px",e.style.right="20px",e.style.zIndex="9999",e.style.maxHeight="80vh",e.style.overflowY="auto",e.style.boxShadow="0 10px 25px rgba(0,0,0,0.1)",document.body.appendChild(e),o=!0);let a;if(r==="local")console.log("[bit-form] DevTools iniciado em modo Local."),a=y(e,t);else if(r==="remote")console.log("[bit-form] DevTools iniciado em modo Remote."),a=T(e,i,t);else throw new Error(`[bit-form] Modo DevTools inv\xE1lido: ${r}`);return{...a,destroy:()=>{a&&typeof a.destroy=="function"&&a.destroy(),o&&e.parentNode?e.parentNode.removeChild(e):e.innerHTML=""}}}function h(n){return typeof n=="boolean"?{enabled:n,mode:"local"}:{enabled:!!n,mode:_nullishCoalesce(_optionalChain([n, 'optionalAccess', _7 => _7.mode]), () => ("local")),url:_optionalChain([n, 'optionalAccess', _8 => _8.url])}}function D(n){return{name:"bit-devtools",setup:r=>{let i=h(_nullishCoalesce(n, () => (r.getConfig().devTools)));if(!i.enabled)return;let t=null,e=r.getConfig().bus;try{if(i.mode==="remote")t=_chunk4FQRTIYPcjs.c.call(void 0, i.url||"ws://localhost:3000",e);else{let o=b({bus:e});t=o&&typeof o.destroy=="function"?o.destroy:null}}catch (e2){}return()=>{t&&(t(),t=null)}}}}exports.DEVTOOLS_PROTOCOL_VERSION = _chunkQKGTVKBUcjs.a; exports.createDevToolsPlugin = D; exports.initDevTools = b;
133
133
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { B as BitBus } from '../bus-DzTqgkZ4.cjs';
2
2
  import { DevToolsStoreSnapshots } from './protocol.cjs';
3
3
  export { DEVTOOLS_PROTOCOL_VERSION, DevToolsActionName, DevToolsActionPayload, DevToolsHelloMessage, DevToolsHelloPayload, DevToolsRemoteMessage, DevToolsStateUpdateMessage, DevToolsStoreSnapshot } from './protocol.cjs';
4
- import { p as BitPlugin } from '../config-types-CewC0AIS.cjs';
4
+ import { p as BitPlugin } from '../config-types-BuN_ezi7.cjs';
5
5
  import { D as DevToolsOptions } from '../runtime-types-D1SRZr-n.cjs';
6
6
  import '../state-types-8bUndWfg.cjs';
7
7
  import '../types-CUXh7PqD.cjs';
@@ -1,7 +1,7 @@
1
1
  import { B as BitBus } from '../bus-BFOBGmd9.js';
2
2
  import { DevToolsStoreSnapshots } from './protocol.js';
3
3
  export { DEVTOOLS_PROTOCOL_VERSION, DevToolsActionName, DevToolsActionPayload, DevToolsHelloMessage, DevToolsHelloPayload, DevToolsRemoteMessage, DevToolsStateUpdateMessage, DevToolsStoreSnapshot } from './protocol.js';
4
- import { p as BitPlugin } from '../config-types-BgIAuvzu.js';
4
+ import { p as BitPlugin } from '../config-types-CjyxvUHF.js';
5
5
  import { D as DevToolsOptions } from '../runtime-types-D1SRZr-n.js';
6
6
  import '../state-types-8bUndWfg.js';
7
7
  import '../types-CUXh7PqD.js';
@@ -1,4 +1,4 @@
1
- import{a as g,b as c,c as v}from"../chunk-HNSQFNCR.js";import{a as p,d as u}from"../chunk-K5X37E3U.js";import"../chunk-5NA2TFPG.js";import{a as f}from"../chunk-PQYTA2OP.js";import"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";function x(){return`
1
+ import{a as g,b as c,c as v}from"../chunk-HCJTGESK.js";import{a as p,d as u}from"../chunk-K5X37E3U.js";import"../chunk-5NA2TFPG.js";import{a as f}from"../chunk-254C3DS5.js";import"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";function x(){return`
2
2
  .bit-devtools-container {
3
3
  position: fixed;
4
4
  bottom: 20px;
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-W5CLDRRE.cjs');var _chunkHHDHVLGPcjs = require('./chunk-HHDHVLGP.cjs');require('./chunk-AVUK52JW.cjs');require('./chunk-BSGJ3T5S.cjs');require('./chunk-RHMJPKNV.cjs');require('./chunk-3KI3GEU3.cjs');require('./chunk-GKNGJOB3.cjs');require('./chunk-FTXV2NZO.cjs');require('./chunk-WRNR6SXK.cjs');require('./chunk-PFPGASVZ.cjs');exports.createBitStore = _chunkHHDHVLGPcjs.e; exports.createFrameworkStoreAdapter = _chunkHHDHVLGPcjs.d; exports.resolveBitStoreForHooks = _chunkHHDHVLGPcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-W5CLDRRE.cjs');var _chunkXRDTN4JGcjs = require('./chunk-XRDTN4JG.cjs');require('./chunk-AVUK52JW.cjs');require('./chunk-BSGJ3T5S.cjs');require('./chunk-RHMJPKNV.cjs');require('./chunk-3KI3GEU3.cjs');require('./chunk-GKNGJOB3.cjs');require('./chunk-FTXV2NZO.cjs');require('./chunk-WRNR6SXK.cjs');require('./chunk-PFPGASVZ.cjs');exports.createBitStore = _chunkXRDTN4JGcjs.e; exports.createFrameworkStoreAdapter = _chunkXRDTN4JGcjs.d; exports.resolveBitStoreForHooks = _chunkXRDTN4JGcjs.c;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { e as BitConfig } from './config-types-CewC0AIS.cjs';
2
- import { e as BitStoreApi, b as BitFrameworkStoreApi, f as BitStoreHooksApi } from './store-api-types-CVQuHPhm.cjs';
1
+ import { e as BitConfig } from './config-types-BuN_ezi7.cjs';
2
+ import { e as BitStoreApi, b as BitFrameworkStoreApi, f as BitStoreHooksApi } from './store-api-types-C_K952Z3.cjs';
3
3
  import './bus-DzTqgkZ4.cjs';
4
4
  import './types-CUXh7PqD.cjs';
5
5
  import './state-types-8bUndWfg.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { e as BitConfig } from './config-types-BgIAuvzu.js';
2
- import { e as BitStoreApi, b as BitFrameworkStoreApi, f as BitStoreHooksApi } from './store-api-types-Cy-zEhRU.js';
1
+ import { e as BitConfig } from './config-types-CjyxvUHF.js';
2
+ import { e as BitStoreApi, b as BitFrameworkStoreApi, f as BitStoreHooksApi } from './store-api-types-CNBOPbCQ.js';
3
3
  import './bus-BFOBGmd9.js';
4
4
  import './types-CUXh7PqD.js';
5
5
  import './state-types-8bUndWfg.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./chunk-5NA2TFPG.js";import{c as r,d as e,e as o}from"./chunk-PQYTA2OP.js";import"./chunk-SYEUXL2E.js";import"./chunk-W2E5UIXT.js";import"./chunk-UIKO6GGW.js";import"./chunk-ICYXODTQ.js";import"./chunk-HE6EQZTH.js";import"./chunk-G3EHXKOS.js";import"./chunk-QCKCONCU.js";import"./chunk-3NUJVIAM.js";export{o as createBitStore,e as createFrameworkStoreAdapter,r as resolveBitStoreForHooks};
1
+ import"./chunk-5NA2TFPG.js";import{c as r,d as e,e as o}from"./chunk-254C3DS5.js";import"./chunk-SYEUXL2E.js";import"./chunk-W2E5UIXT.js";import"./chunk-UIKO6GGW.js";import"./chunk-ICYXODTQ.js";import"./chunk-HE6EQZTH.js";import"./chunk-G3EHXKOS.js";import"./chunk-QCKCONCU.js";import"./chunk-3NUJVIAM.js";export{o as createBitStore,e as createFrameworkStoreAdapter,r as resolveBitStoreForHooks};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkFRKHIMXOcjs = require('../chunk-FRKHIMXO.cjs');var _chunkWLOKGOW6cjs = require('../chunk-WLOKGOW6.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-HHDHVLGP.cjs');var _chunkAVUK52JWcjs = require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');var _chunkRHMJPKNVcjs = require('../chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');var _chunkPFPGASVZcjs = require('../chunk-PFPGASVZ.cjs');var _react = require('react');function V(e){let{fieldState:t,setBlur:s,store:u}=_chunkFRKHIMXOcjs.d.call(void 0, e),{fieldController:n}=_react.useMemo.call(void 0, ()=>_chunkAVUK52JWcjs.h.call(void 0, u,e),[u,e]),i=_react.useMemo.call(void 0, ()=>n.displayValue(t.value),[t.value,n]),o=_react.useCallback.call(void 0, y=>{n.setValue(y)},[n]),{value:r}=t,x=_chunk3KI3GEU3cjs.a.call(void 0, t),{error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}=x,d=_react.useCallback.call(void 0, y=>{let j=_chunkPFPGASVZcjs.a.call(void 0, y)?_optionalChain([y, 'access', _ => _.target, 'optionalAccess', _2 => _2.value]):y;o(j)},[o]),R=_react.useCallback.call(void 0, ()=>{s()},[s]),M=_react.useMemo.call(void 0, ()=>({value:i,onChange:d,onBlur:R}),[i,d,R]),P=_react.useMemo.call(void 0, ()=>({error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}),[c,p,m,g,l,B,f,a]);return _react.useMemo.call(void 0, ()=>({value:r,displayValue:i,setValue:o,setBlur:s,onChange:d,onBlur:R,props:M,meta:P}),[r,i,o,s,d,R,M,P])}function N(){let e=_chunkFRKHIMXOcjs.b.call(void 0, ),t=_react.useRef.call(void 0, null),s=_react.useCallback.call(void 0, ()=>{let r=_chunkRHMJPKNVcjs.f.call(void 0, e);return t.current&&t.current.canUndo===r.canUndo&&t.current.canRedo===r.canRedo&&t.current.historyIndex===r.historyIndex&&t.current.historySize===r.historySize?t.current:(t.current=r,r)},[e]),u=_react.useCallback.call(void 0, r=>e.observe.subscribeHistoryMeta(()=>r()),[e]),n=_react.useSyncExternalStore.call(void 0, u,s,s),i=_react.useCallback.call(void 0, ()=>{e.feature.undo()},[e]),o=_react.useCallback.call(void 0, ()=>{e.feature.redo()},[e]);return _react.useMemo.call(void 0, ()=>({...n,undo:i,redo:o}),[n,i,o])}function Y(e,t,s){let u=_chunkFRKHIMXOcjs.b.call(void 0, ),n=V(e),{value:i,setValue:o,meta:r}=n,x=_optionalChain([r, 'optionalAccess', _3 => _3.error]),c=!!_optionalChain([r, 'optionalAccess', _4 => _4.isValidating]),p=_react.useRef.call(void 0, null),[m,g]=_react.useState.call(void 0, !1),l=_react.useMemo.call(void 0, ()=>({setLoading:g,setError:(a,d)=>u.write.setError(a,d),setValue:a=>o(a),getUploadKey:()=>p.current,setUploadKey:a=>{p.current=a}}),[u,o]),B=_react.useCallback.call(void 0, _chunkWLOKGOW6cjs.a.call(void 0, e,t,l),[e,t,l]),f=_react.useCallback.call(void 0, _chunkWLOKGOW6cjs.b.call(void 0, e,s,l),[e,s,l]);return _react.useMemo.call(void 0, ()=>({value:i,setValue:o,error:x,isValidating:c||m,upload:B,remove:f}),[i,o,x,c,m,B,f])}exports.BitFormProvider = _chunkFRKHIMXOcjs.a; exports.useBitArray = _chunkFRKHIMXOcjs.e; exports.useBitField = V; exports.useBitForm = _chunkFRKHIMXOcjs.c; exports.useBitHistory = N; exports.useBitPersist = _chunkFRKHIMXOcjs.i; exports.useBitScope = _chunkFRKHIMXOcjs.f; exports.useBitSteps = _chunkFRKHIMXOcjs.g; exports.useBitStore = _chunkFRKHIMXOcjs.b; exports.useBitUpload = Y; exports.useBitWatch = _chunkFRKHIMXOcjs.h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkQLF2QLIIcjs = require('../chunk-QLF2QLII.cjs');var _chunkWLOKGOW6cjs = require('../chunk-WLOKGOW6.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-XRDTN4JG.cjs');var _chunkAVUK52JWcjs = require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');var _chunkRHMJPKNVcjs = require('../chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');var _chunkPFPGASVZcjs = require('../chunk-PFPGASVZ.cjs');var _react = require('react');function V(e){let{fieldState:t,setBlur:s,store:u}=_chunkQLF2QLIIcjs.d.call(void 0, e),{fieldController:n}=_react.useMemo.call(void 0, ()=>_chunkAVUK52JWcjs.h.call(void 0, u,e),[u,e]),i=_react.useMemo.call(void 0, ()=>n.displayValue(t.value),[t.value,n]),o=_react.useCallback.call(void 0, y=>{n.setValue(y)},[n]),{value:r}=t,x=_chunk3KI3GEU3cjs.a.call(void 0, t),{error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}=x,d=_react.useCallback.call(void 0, y=>{let j=_chunkPFPGASVZcjs.a.call(void 0, y)?_optionalChain([y, 'access', _ => _.target, 'optionalAccess', _2 => _2.value]):y;o(j)},[o]),R=_react.useCallback.call(void 0, ()=>{s()},[s]),M=_react.useMemo.call(void 0, ()=>({value:i,onChange:d,onBlur:R}),[i,d,R]),P=_react.useMemo.call(void 0, ()=>({error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}),[c,p,m,g,l,B,f,a]);return _react.useMemo.call(void 0, ()=>({value:r,displayValue:i,setValue:o,setBlur:s,onChange:d,onBlur:R,props:M,meta:P}),[r,i,o,s,d,R,M,P])}function N(){let e=_chunkQLF2QLIIcjs.b.call(void 0, ),t=_react.useRef.call(void 0, null),s=_react.useCallback.call(void 0, ()=>{let r=_chunkRHMJPKNVcjs.f.call(void 0, e);return t.current&&t.current.canUndo===r.canUndo&&t.current.canRedo===r.canRedo&&t.current.historyIndex===r.historyIndex&&t.current.historySize===r.historySize?t.current:(t.current=r,r)},[e]),u=_react.useCallback.call(void 0, r=>e.observe.subscribeHistoryMeta(()=>r()),[e]),n=_react.useSyncExternalStore.call(void 0, u,s,s),i=_react.useCallback.call(void 0, ()=>{e.feature.undo()},[e]),o=_react.useCallback.call(void 0, ()=>{e.feature.redo()},[e]);return _react.useMemo.call(void 0, ()=>({...n,undo:i,redo:o}),[n,i,o])}function Y(e,t,s){let u=_chunkQLF2QLIIcjs.b.call(void 0, ),n=V(e),{value:i,setValue:o,meta:r}=n,x=_optionalChain([r, 'optionalAccess', _3 => _3.error]),c=!!_optionalChain([r, 'optionalAccess', _4 => _4.isValidating]),p=_react.useRef.call(void 0, null),[m,g]=_react.useState.call(void 0, !1),l=_react.useMemo.call(void 0, ()=>({setLoading:g,setError:(a,d)=>u.write.setError(a,d),setValue:a=>o(a),getUploadKey:()=>p.current,setUploadKey:a=>{p.current=a}}),[u,o]),B=_react.useCallback.call(void 0, _chunkWLOKGOW6cjs.a.call(void 0, e,t,l),[e,t,l]),f=_react.useCallback.call(void 0, _chunkWLOKGOW6cjs.b.call(void 0, e,s,l),[e,s,l]);return _react.useMemo.call(void 0, ()=>({value:i,setValue:o,error:x,isValidating:c||m,upload:B,remove:f}),[i,o,x,c,m,B,f])}exports.BitFormProvider = _chunkQLF2QLIIcjs.a; exports.useBitArray = _chunkQLF2QLIIcjs.e; exports.useBitField = V; exports.useBitForm = _chunkQLF2QLIIcjs.c; exports.useBitHistory = N; exports.useBitPersist = _chunkQLF2QLIIcjs.i; exports.useBitScope = _chunkQLF2QLIIcjs.f; exports.useBitSteps = _chunkQLF2QLIIcjs.g; exports.useBitStore = _chunkQLF2QLIIcjs.b; exports.useBitUpload = Y; exports.useBitWatch = _chunkQLF2QLIIcjs.h;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,13 +1,13 @@
1
- import { g as UseBitFieldResult, h as UseBitHistoryResult, i as UseBitUploadResult } from '../use-bit-persist-Dt264zYz.cjs';
2
- export { B as BitFormProvider, j as UseBitFieldBindProps, k as UseBitFieldMeta, U as UseBitPersistResult, l as UseBitStepsResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-Dt264zYz.cjs';
1
+ import { g as UseBitFieldResult, h as UseBitHistoryResult, i as UseBitUploadResult } from '../use-bit-persist-DwRcnawp.cjs';
2
+ export { B as BitFormProvider, j as UseBitFieldBindProps, k as UseBitFieldMeta, U as UseBitPersistResult, l as UseBitStepsResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-DwRcnawp.cjs';
3
3
  import { d as BitPath } from '../state-types-8bUndWfg.cjs';
4
4
  import '../bus-DzTqgkZ4.cjs';
5
5
  import { g as BitUploadFn, b as BitDeleteUploadFn } from '../upload-C4JqIaU2.cjs';
6
6
  export { S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.cjs';
7
7
  import 'react';
8
- import '../store-api-types-CVQuHPhm.cjs';
8
+ import '../store-api-types-C_K952Z3.cjs';
9
9
  import '../types-CUXh7PqD.cjs';
10
- import '../config-types-CewC0AIS.cjs';
10
+ import '../config-types-BuN_ezi7.cjs';
11
11
  import '../meta-types-BC1VLABk.cjs';
12
12
  import '../field-binding-X5TkvfUt.cjs';
13
13
 
@@ -1,13 +1,13 @@
1
- import { g as UseBitFieldResult, h as UseBitHistoryResult, i as UseBitUploadResult } from '../use-bit-persist-BhMBUSzN.js';
2
- export { B as BitFormProvider, j as UseBitFieldBindProps, k as UseBitFieldMeta, U as UseBitPersistResult, l as UseBitStepsResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-BhMBUSzN.js';
1
+ import { g as UseBitFieldResult, h as UseBitHistoryResult, i as UseBitUploadResult } from '../use-bit-persist-BCc0wJNn.js';
2
+ export { B as BitFormProvider, j as UseBitFieldBindProps, k as UseBitFieldMeta, U as UseBitPersistResult, l as UseBitStepsResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-BCc0wJNn.js';
3
3
  import { d as BitPath } from '../state-types-8bUndWfg.js';
4
4
  import '../bus-BFOBGmd9.js';
5
5
  import { g as BitUploadFn, b as BitDeleteUploadFn } from '../upload-ao6skK9K.js';
6
6
  export { S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.js';
7
7
  import 'react';
8
- import '../store-api-types-Cy-zEhRU.js';
8
+ import '../store-api-types-CNBOPbCQ.js';
9
9
  import '../types-CUXh7PqD.js';
10
- import '../config-types-BgIAuvzu.js';
10
+ import '../config-types-CjyxvUHF.js';
11
11
  import '../meta-types-BC1VLABk.js';
12
12
  import '../field-binding-Bi1g-D8X.js';
13
13
 
@@ -1,2 +1,2 @@
1
- import{a as D,b as U,c as K,d as k,e as z,f as q,g as A,h as L,i as O}from"../chunk-PGLND5EZ.js";import{a as E,b as I}from"../chunk-L7RLUUSB.js";import"../chunk-5NA2TFPG.js";import"../chunk-PQYTA2OP.js";import{h as T}from"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import{f as b}from"../chunk-UIKO6GGW.js";import{a as h}from"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import{a as H}from"../chunk-3NUJVIAM.js";import{useCallback as S,useMemo as F}from"react";function V(e){let{fieldState:t,setBlur:s,store:u}=k(e),{fieldController:n}=F(()=>T(u,e),[u,e]),i=F(()=>n.displayValue(t.value),[t.value,n]),o=S(y=>{n.setValue(y)},[n]),{value:r}=t,x=h(t),{error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}=x,d=S(y=>{let j=H(y)?y.target?.value:y;o(j)},[o]),R=S(()=>{s()},[s]),M=F(()=>({value:i,onChange:d,onBlur:R}),[i,d,R]),P=F(()=>({error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}),[c,p,m,g,l,B,f,a]);return F(()=>({value:r,displayValue:i,setValue:o,setBlur:s,onChange:d,onBlur:R,props:M,meta:P}),[r,i,o,s,d,R,M,P])}import{useCallback as v,useMemo as W,useRef as G,useSyncExternalStore as J}from"react";function N(){let e=U(),t=G(null),s=v(()=>{let r=b(e);return t.current&&t.current.canUndo===r.canUndo&&t.current.canRedo===r.canRedo&&t.current.historyIndex===r.historyIndex&&t.current.historySize===r.historySize?t.current:(t.current=r,r)},[e]),u=v(r=>e.observe.subscribeHistoryMeta(()=>r()),[e]),n=J(u,s,s),i=v(()=>{e.feature.undo()},[e]),o=v(()=>{e.feature.redo()},[e]);return W(()=>({...n,undo:i,redo:o}),[n,i,o])}import{useCallback as C,useMemo as w,useRef as Q,useState as X}from"react";function Y(e,t,s){let u=U(),n=V(e),{value:i,setValue:o,meta:r}=n,x=r?.error,c=!!r?.isValidating,p=Q(null),[m,g]=X(!1),l=w(()=>({setLoading:g,setError:(a,d)=>u.write.setError(a,d),setValue:a=>o(a),getUploadKey:()=>p.current,setUploadKey:a=>{p.current=a}}),[u,o]),B=C(E(e,t,l),[e,t,l]),f=C(I(e,s,l),[e,s,l]);return w(()=>({value:i,setValue:o,error:x,isValidating:c||m,upload:B,remove:f}),[i,o,x,c,m,B,f])}export{D as BitFormProvider,z as useBitArray,V as useBitField,K as useBitForm,N as useBitHistory,O as useBitPersist,q as useBitScope,A as useBitSteps,U as useBitStore,Y as useBitUpload,L as useBitWatch};
1
+ import{a as D,b as U,c as K,d as k,e as z,f as q,g as A,h as L,i as O}from"../chunk-YS4IB2ZO.js";import{a as E,b as I}from"../chunk-L7RLUUSB.js";import"../chunk-5NA2TFPG.js";import"../chunk-254C3DS5.js";import{h as T}from"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import{f as b}from"../chunk-UIKO6GGW.js";import{a as h}from"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import{a as H}from"../chunk-3NUJVIAM.js";import{useCallback as S,useMemo as F}from"react";function V(e){let{fieldState:t,setBlur:s,store:u}=k(e),{fieldController:n}=F(()=>T(u,e),[u,e]),i=F(()=>n.displayValue(t.value),[t.value,n]),o=S(y=>{n.setValue(y)},[n]),{value:r}=t,x=h(t),{error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}=x,d=S(y=>{let j=H(y)?y.target?.value:y;o(j)},[o]),R=S(()=>{s()},[s]),M=F(()=>({value:i,onChange:d,onBlur:R}),[i,d,R]),P=F(()=>({error:c,touched:p,invalid:m,isDirty:g,isValidating:l,isHidden:B,isRequired:f,hasError:a}),[c,p,m,g,l,B,f,a]);return F(()=>({value:r,displayValue:i,setValue:o,setBlur:s,onChange:d,onBlur:R,props:M,meta:P}),[r,i,o,s,d,R,M,P])}import{useCallback as v,useMemo as W,useRef as G,useSyncExternalStore as J}from"react";function N(){let e=U(),t=G(null),s=v(()=>{let r=b(e);return t.current&&t.current.canUndo===r.canUndo&&t.current.canRedo===r.canRedo&&t.current.historyIndex===r.historyIndex&&t.current.historySize===r.historySize?t.current:(t.current=r,r)},[e]),u=v(r=>e.observe.subscribeHistoryMeta(()=>r()),[e]),n=J(u,s,s),i=v(()=>{e.feature.undo()},[e]),o=v(()=>{e.feature.redo()},[e]);return W(()=>({...n,undo:i,redo:o}),[n,i,o])}import{useCallback as C,useMemo as w,useRef as Q,useState as X}from"react";function Y(e,t,s){let u=U(),n=V(e),{value:i,setValue:o,meta:r}=n,x=r?.error,c=!!r?.isValidating,p=Q(null),[m,g]=X(!1),l=w(()=>({setLoading:g,setError:(a,d)=>u.write.setError(a,d),setValue:a=>o(a),getUploadKey:()=>p.current,setUploadKey:a=>{p.current=a}}),[u,o]),B=C(E(e,t,l),[e,t,l]),f=C(I(e,s,l),[e,s,l]);return w(()=>({value:i,setValue:o,error:x,isValidating:c||m,upload:B,remove:f}),[i,o,x,c,m,B,f])}export{D as BitFormProvider,z as useBitArray,V as useBitField,K as useBitForm,N as useBitHistory,O as useBitPersist,q as useBitScope,A as useBitSteps,U as useBitStore,Y as useBitUpload,L as useBitWatch};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFRKHIMXOcjs = require('../chunk-FRKHIMXO.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-HHDHVLGP.cjs');var _chunkAVUK52JWcjs = require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');var _react = require('react');function g(i){let{fieldState:r,setBlur:o,store:l}=_chunkFRKHIMXOcjs.d.call(void 0, i),{fieldController:t}=_react.useMemo.call(void 0, ()=>_chunkAVUK52JWcjs.h.call(void 0, l,i),[l,i]),u=_react.useMemo.call(void 0, ()=>t.displayValue(r.value),[r.value,t]),d=_react.useCallback.call(void 0, s=>t.setValue(s),[t]),F=_react.useCallback.call(void 0, s=>t.setValue(s),[t]),{value:f}=r,e=_chunk3KI3GEU3cjs.a.call(void 0, r),n=_react.useCallback.call(void 0, ()=>{o()},[o]);return{value:f,displayValue:u,setValue:F,setBlur:o,onChangeText:d,onBlur:n,meta:{error:e.error,touched:e.touched,invalid:e.invalid,isValidating:e.isValidating,isDirty:e.isDirty,isHidden:e.isHidden,isRequired:e.isRequired,hasError:e.hasError},props:{value:u,onChangeText:d,onBlur:n}}}exports.BitFormProvider = _chunkFRKHIMXOcjs.a; exports.useBitArray = _chunkFRKHIMXOcjs.e; exports.useBitField = g; exports.useBitForm = _chunkFRKHIMXOcjs.c; exports.useBitPersist = _chunkFRKHIMXOcjs.i; exports.useBitScope = _chunkFRKHIMXOcjs.f; exports.useBitSteps = _chunkFRKHIMXOcjs.g; exports.useBitStore = _chunkFRKHIMXOcjs.b; exports.useBitWatch = _chunkFRKHIMXOcjs.h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQLF2QLIIcjs = require('../chunk-QLF2QLII.cjs');require('../chunk-W5CLDRRE.cjs');require('../chunk-XRDTN4JG.cjs');var _chunkAVUK52JWcjs = require('../chunk-AVUK52JW.cjs');require('../chunk-BSGJ3T5S.cjs');require('../chunk-RHMJPKNV.cjs');var _chunk3KI3GEU3cjs = require('../chunk-3KI3GEU3.cjs');require('../chunk-GKNGJOB3.cjs');require('../chunk-FTXV2NZO.cjs');require('../chunk-WRNR6SXK.cjs');require('../chunk-PFPGASVZ.cjs');var _react = require('react');function g(i){let{fieldState:r,setBlur:o,store:l}=_chunkQLF2QLIIcjs.d.call(void 0, i),{fieldController:t}=_react.useMemo.call(void 0, ()=>_chunkAVUK52JWcjs.h.call(void 0, l,i),[l,i]),u=_react.useMemo.call(void 0, ()=>t.displayValue(r.value),[r.value,t]),d=_react.useCallback.call(void 0, s=>t.setValue(s),[t]),F=_react.useCallback.call(void 0, s=>t.setValue(s),[t]),{value:f}=r,e=_chunk3KI3GEU3cjs.a.call(void 0, r),n=_react.useCallback.call(void 0, ()=>{o()},[o]);return{value:f,displayValue:u,setValue:F,setBlur:o,onChangeText:d,onBlur:n,meta:{error:e.error,touched:e.touched,invalid:e.invalid,isValidating:e.isValidating,isDirty:e.isDirty,isHidden:e.isHidden,isRequired:e.isRequired,hasError:e.hasError},props:{value:u,onChangeText:d,onBlur:n}}}exports.BitFormProvider = _chunkQLF2QLIIcjs.a; exports.useBitArray = _chunkQLF2QLIIcjs.e; exports.useBitField = g; exports.useBitForm = _chunkQLF2QLIIcjs.c; exports.useBitPersist = _chunkQLF2QLIIcjs.i; exports.useBitScope = _chunkQLF2QLIIcjs.f; exports.useBitSteps = _chunkQLF2QLIIcjs.g; exports.useBitStore = _chunkQLF2QLIIcjs.b; exports.useBitWatch = _chunkQLF2QLIIcjs.h;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,11 +1,11 @@
1
- export { B as BitFormProvider, U as UseBitPersistResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-Dt264zYz.cjs';
1
+ export { B as BitFormProvider, U as UseBitPersistResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-DwRcnawp.cjs';
2
2
  import { d as BitPath, e as BitPathValue } from '../state-types-8bUndWfg.cjs';
3
3
  import '../bus-DzTqgkZ4.cjs';
4
4
  export { S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.cjs';
5
5
  import 'react';
6
- import '../store-api-types-CVQuHPhm.cjs';
6
+ import '../store-api-types-C_K952Z3.cjs';
7
7
  import '../types-CUXh7PqD.cjs';
8
- import '../config-types-CewC0AIS.cjs';
8
+ import '../config-types-BuN_ezi7.cjs';
9
9
  import '../meta-types-BC1VLABk.cjs';
10
10
  import '../upload-C4JqIaU2.cjs';
11
11
  import '../field-binding-X5TkvfUt.cjs';
@@ -1,11 +1,11 @@
1
- export { B as BitFormProvider, U as UseBitPersistResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-BhMBUSzN.js';
1
+ export { B as BitFormProvider, U as UseBitPersistResult, u as useBitArray, a as useBitForm, b as useBitPersist, c as useBitScope, d as useBitSteps, e as useBitStore, f as useBitWatch } from '../use-bit-persist-BCc0wJNn.js';
2
2
  import { d as BitPath, e as BitPathValue } from '../state-types-8bUndWfg.js';
3
3
  import '../bus-BFOBGmd9.js';
4
4
  export { S as ScopeStatus, V as ValidateScopeResult } from '../runtime-types-D1SRZr-n.js';
5
5
  import 'react';
6
- import '../store-api-types-Cy-zEhRU.js';
6
+ import '../store-api-types-CNBOPbCQ.js';
7
7
  import '../types-CUXh7PqD.js';
8
- import '../config-types-BgIAuvzu.js';
8
+ import '../config-types-CjyxvUHF.js';
9
9
  import '../meta-types-BC1VLABk.js';
10
10
  import '../upload-ao6skK9K.js';
11
11
  import '../field-binding-Bi1g-D8X.js';
@@ -1,2 +1,2 @@
1
- import{a as x,b as P,c as v,d as B,e as y,f as h,g as V,h as T,i as S}from"../chunk-PGLND5EZ.js";import"../chunk-5NA2TFPG.js";import"../chunk-PQYTA2OP.js";import{h as m}from"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import{a as p}from"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";import{useMemo as c,useCallback as a}from"react";function g(i){let{fieldState:r,setBlur:o,store:l}=B(i),{fieldController:t}=c(()=>m(l,i),[l,i]),u=c(()=>t.displayValue(r.value),[r.value,t]),d=a(s=>t.setValue(s),[t]),F=a(s=>t.setValue(s),[t]),{value:f}=r,e=p(r),n=a(()=>{o()},[o]);return{value:f,displayValue:u,setValue:F,setBlur:o,onChangeText:d,onBlur:n,meta:{error:e.error,touched:e.touched,invalid:e.invalid,isValidating:e.isValidating,isDirty:e.isDirty,isHidden:e.isHidden,isRequired:e.isRequired,hasError:e.hasError},props:{value:u,onChangeText:d,onBlur:n}}}export{x as BitFormProvider,y as useBitArray,g as useBitField,v as useBitForm,S as useBitPersist,h as useBitScope,V as useBitSteps,P as useBitStore,T as useBitWatch};
1
+ import{a as x,b as P,c as v,d as B,e as y,f as h,g as V,h as T,i as S}from"../chunk-YS4IB2ZO.js";import"../chunk-5NA2TFPG.js";import"../chunk-254C3DS5.js";import{h as m}from"../chunk-SYEUXL2E.js";import"../chunk-W2E5UIXT.js";import"../chunk-UIKO6GGW.js";import{a as p}from"../chunk-ICYXODTQ.js";import"../chunk-HE6EQZTH.js";import"../chunk-G3EHXKOS.js";import"../chunk-QCKCONCU.js";import"../chunk-3NUJVIAM.js";import{useMemo as c,useCallback as a}from"react";function g(i){let{fieldState:r,setBlur:o,store:l}=B(i),{fieldController:t}=c(()=>m(l,i),[l,i]),u=c(()=>t.displayValue(r.value),[r.value,t]),d=a(s=>t.setValue(s),[t]),F=a(s=>t.setValue(s),[t]),{value:f}=r,e=p(r),n=a(()=>{o()},[o]);return{value:f,displayValue:u,setValue:F,setBlur:o,onChangeText:d,onBlur:n,meta:{error:e.error,touched:e.touched,invalid:e.invalid,isValidating:e.isValidating,isDirty:e.isDirty,isHidden:e.isHidden,isRequired:e.isRequired,hasError:e.hasError},props:{value:u,onChangeText:d,onBlur:n}}}export{x as BitFormProvider,y as useBitArray,g as useBitField,v as useBitForm,S as useBitPersist,h as useBitScope,V as useBitSteps,P as useBitStore,T as useBitWatch};
2
2
  //# sourceMappingURL=index.js.map