react-form-manage 1.0.7-beta.1 → 1.0.7
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/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
- Improve `getValueFromEvent` in FormItem for custom event handler support
|
|
9
9
|
- Type `errors` as `FormFieldError[]` for better IDE support
|
|
10
10
|
|
|
11
|
+
## [1.0.7] - 2026-01-22
|
|
12
|
+
|
|
13
|
+
- Fix FormItem initial value propagation so cleaned-up items rehydrate correctly
|
|
14
|
+
- Keep `getValueFromEvent` custom extraction while preserving default `target.value` fallback
|
|
15
|
+
- Promote FormFieldError export and error typing improvements from beta to stable
|
|
16
|
+
|
|
11
17
|
## [1.0.6] - 2026-01-22
|
|
12
18
|
|
|
13
19
|
- Promote ValidationRule typing + regex pattern support to stable
|
|
@@ -334,8 +334,7 @@ export default function useFormItemControl({ formName, form, name, initialValue,
|
|
|
334
334
|
// console.log("Skip set init data when form is resetting");
|
|
335
335
|
if (isNil(value)) {
|
|
336
336
|
if (isNil(internalInitValue)) {
|
|
337
|
-
if (isNil(initialValue)) {
|
|
338
|
-
console.log("On init data", initialValue);
|
|
337
|
+
if (!isNil(initialValue)) {
|
|
339
338
|
onInitData(initialValue);
|
|
340
339
|
}
|
|
341
340
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-form-manage",
|
|
3
|
-
"version": "1.0.7
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Lightweight React form management with list and listener support.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"src",
|
|
13
|
+
"README.md",
|
|
14
|
+
"CHANGELOG.md"
|
|
15
|
+
],
|
|
11
16
|
"scripts": {
|
|
12
17
|
"dev": "vite",
|
|
13
18
|
"build": "tsc -p tsconfig.json && node -e \"console.log('Build completed!')\"",
|
|
@@ -27,7 +32,10 @@
|
|
|
27
32
|
"zustand": "^5.0.10"
|
|
28
33
|
},
|
|
29
34
|
"devDependencies": {
|
|
35
|
+
"@emotion/react": "^11.14.0",
|
|
36
|
+
"@emotion/styled": "^11.14.1",
|
|
30
37
|
"@eslint/js": "^9.14.0",
|
|
38
|
+
"@mui/material": "^7.3.7",
|
|
31
39
|
"@types/node": "^22.9.3",
|
|
32
40
|
"@types/react": "^19.2.9",
|
|
33
41
|
"@types/react-dom": "^19.2.3",
|
|
@@ -507,8 +507,7 @@ export default function useFormItemControl<T = any>({
|
|
|
507
507
|
|
|
508
508
|
if (isNil(value)) {
|
|
509
509
|
if (isNil(internalInitValue)) {
|
|
510
|
-
if (isNil(initialValue)) {
|
|
511
|
-
console.log("On init data", initialValue);
|
|
510
|
+
if (!isNil(initialValue)) {
|
|
512
511
|
onInitData(initialValue);
|
|
513
512
|
}
|
|
514
513
|
} else {
|