cogsbox-state 0.5.399 → 0.5.400

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.
@@ -2,7 +2,7 @@ import { jsx as V, Fragment as M } from "react/jsx-runtime";
2
2
  import "./CogsState.jsx";
3
3
  import { getNestedValue as N, isFunction as U, updateNestedProperty as T } from "./utility.js";
4
4
  import I, { useRef as b, useState as z, useEffect as R } from "react";
5
- import { formRefStore as O, getGlobalStore as d } from "./store.js";
5
+ import { getGlobalStore as d, formRefStore as O } from "./store.js";
6
6
  import { validateZodPathFunc as W } from "./useValidateZodPath.js";
7
7
  function j(n, e, t, r) {
8
8
  n(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-state",
3
- "version": "0.5.399",
3
+ "version": "0.5.400",
4
4
  "description": "React state management library with form controls and server sync",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/CogsState.tsx CHANGED
@@ -2376,20 +2376,13 @@ function createProxyHandler<T>(
2376
2376
  stateKey,
2377
2377
  itemComponentId,
2378
2378
  itemPath: finalPath,
2379
- children: createElement(FormControlComponent, {
2380
- setState: effectiveSetState as any,
2381
- stateKey: stateKey,
2382
- path: finalPath,
2383
- child: () =>
2384
- callbackfn(
2385
- item,
2386
- setter,
2387
- { localIndex, originalIndex },
2388
- arrayToMap as any,
2389
- rebuildStateShape(arrayToMap as any, path, meta)
2390
- ),
2391
- formOpts: undefined,
2392
- }),
2379
+ children: callbackfn(
2380
+ item,
2381
+ setter,
2382
+ { localIndex, originalIndex },
2383
+ arrayToMap as any,
2384
+ rebuildStateShape(arrayToMap as any, path, meta)
2385
+ ),
2393
2386
  });
2394
2387
  });
2395
2388
  };