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.
- package/dist/CogsState.jsx +256 -262
- package/dist/CogsState.jsx.map +1 -1
- package/dist/Functions.jsx +1 -1
- package/package.json +1 -1
- package/src/CogsState.tsx +7 -14
package/dist/Functions.jsx
CHANGED
|
@@ -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 {
|
|
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
package/src/CogsState.tsx
CHANGED
|
@@ -2376,20 +2376,13 @@ function createProxyHandler<T>(
|
|
|
2376
2376
|
stateKey,
|
|
2377
2377
|
itemComponentId,
|
|
2378
2378
|
itemPath: finalPath,
|
|
2379
|
-
children:
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
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
|
};
|