cogsbox-state 0.5.397 → 0.5.399
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 +262 -256
- package/dist/CogsState.jsx.map +1 -1
- package/dist/Functions.jsx +1 -1
- package/package.json +1 -1
- package/src/CogsState.tsx +14 -7
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 { formRefStore as O, getGlobalStore as d } 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,13 +2376,20 @@ function createProxyHandler<T>(
|
|
|
2376
2376
|
stateKey,
|
|
2377
2377
|
itemComponentId,
|
|
2378
2378
|
itemPath: finalPath,
|
|
2379
|
-
children:
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
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
|
+
}),
|
|
2386
2393
|
});
|
|
2387
2394
|
});
|
|
2388
2395
|
};
|