@conform-to/react 0.7.2 → 0.7.3
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/hooks.js +2 -2
- package/hooks.mjs +2 -2
- package/package.json +2 -2
package/hooks.js
CHANGED
|
@@ -430,7 +430,7 @@ function useFieldList(ref, config) {
|
|
|
430
430
|
};
|
|
431
431
|
}, [ref, configRef, setError]);
|
|
432
432
|
return entries.map((_ref3, index) => {
|
|
433
|
-
var _config$initialError
|
|
433
|
+
var _config$initialError;
|
|
434
434
|
var [key, defaultValue] = _ref3;
|
|
435
435
|
var errors = error[index];
|
|
436
436
|
var initialError = Object.entries((_config$initialError = config.initialError) !== null && _config$initialError !== void 0 ? _config$initialError : {}).reduce((result, _ref4) => {
|
|
@@ -443,7 +443,7 @@ function useFieldList(ref, config) {
|
|
|
443
443
|
}, {});
|
|
444
444
|
var fieldConfig = {
|
|
445
445
|
name: "".concat(config.name, "[").concat(index, "]"),
|
|
446
|
-
defaultValue
|
|
446
|
+
defaultValue,
|
|
447
447
|
initialError,
|
|
448
448
|
error: errors === null || errors === void 0 ? void 0 : errors[0],
|
|
449
449
|
errors
|
package/hooks.mjs
CHANGED
|
@@ -426,7 +426,7 @@ function useFieldList(ref, config) {
|
|
|
426
426
|
};
|
|
427
427
|
}, [ref, configRef, setError]);
|
|
428
428
|
return entries.map((_ref3, index) => {
|
|
429
|
-
var _config$initialError
|
|
429
|
+
var _config$initialError;
|
|
430
430
|
var [key, defaultValue] = _ref3;
|
|
431
431
|
var errors = error[index];
|
|
432
432
|
var initialError = Object.entries((_config$initialError = config.initialError) !== null && _config$initialError !== void 0 ? _config$initialError : {}).reduce((result, _ref4) => {
|
|
@@ -439,7 +439,7 @@ function useFieldList(ref, config) {
|
|
|
439
439
|
}, {});
|
|
440
440
|
var fieldConfig = {
|
|
441
441
|
name: "".concat(config.name, "[").concat(index, "]"),
|
|
442
|
-
defaultValue
|
|
442
|
+
defaultValue,
|
|
443
443
|
initialError,
|
|
444
444
|
error: errors === null || errors === void 0 ? void 0 : errors[0],
|
|
445
445
|
errors
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Conform view adapter for react",
|
|
4
4
|
"homepage": "https://conform.guide",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.7.
|
|
6
|
+
"version": "0.7.3",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.mjs",
|
|
9
9
|
"types": "index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://github.com/edmundhung/conform/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@conform-to/dom": "0.7.
|
|
33
|
+
"@conform-to/dom": "0.7.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=16.8"
|