react-form-manage 1.1.0-beta.2 → 1.1.0-beta.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/CHANGELOG.md +14 -0
- package/dist/types/public.d.ts +2 -1
- package/package.json +1 -1
- package/src/types/public.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.1.0-beta.3] - 2026-03-03
|
|
6
|
+
|
|
7
|
+
### Type Fix
|
|
8
|
+
|
|
9
|
+
- **PublicFormInstance.setFieldValues**: Corrected options parameter type from `SetFieldValueOptions` to `OnChangeOptions`
|
|
10
|
+
- `setFieldValues` does not support `deepTrigger` option (only available in `setFieldValue`)
|
|
11
|
+
- Now correctly reflects the actual implementation
|
|
12
|
+
|
|
13
|
+
### Technical Details
|
|
14
|
+
|
|
15
|
+
- `SetFieldValueOptions` extends `OnChangeOptions` with additional `deepTrigger?: boolean`
|
|
16
|
+
- `setFieldValue` (singular): Supports `deepTrigger` for nested field updates
|
|
17
|
+
- `setFieldValues` (plural): Batch updates without `deepTrigger` support
|
|
18
|
+
|
|
5
19
|
## [1.1.0-beta.2] - 2026-03-03
|
|
6
20
|
|
|
7
21
|
### Type Improvements
|
package/dist/types/public.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SUBMIT_STATE } from "../constants/form";
|
|
2
|
+
import { OnChangeOptions } from "../hooks/useFormItemControl";
|
|
2
3
|
import { SetFieldValueOptions } from "../providers/Form";
|
|
3
4
|
import type { GetConstantType } from "./util";
|
|
4
5
|
export type FormValues<T = any> = T;
|
|
@@ -36,7 +37,7 @@ export interface PublicFormInstance<T = any> {
|
|
|
36
37
|
submit: (values?: T) => void;
|
|
37
38
|
submitAsync: (values?: T) => Promise<void>;
|
|
38
39
|
setFieldValue: (name: keyof T | (string & {}), value: any, options?: SetFieldValueOptions) => void;
|
|
39
|
-
setFieldValues: (values: Partial<T>, options?:
|
|
40
|
+
setFieldValues: (values: Partial<T>, options?: OnChangeOptions) => void;
|
|
40
41
|
getFieldValue: (name: keyof T | (string & {})) => any;
|
|
41
42
|
getFieldValues: (names?: Array<keyof T | (string & {})>) => Array<{
|
|
42
43
|
name: string;
|
package/package.json
CHANGED
package/src/types/public.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SUBMIT_STATE } from "../constants/form";
|
|
2
|
+
import { OnChangeOptions } from "../hooks/useFormItemControl";
|
|
2
3
|
import { SetFieldValueOptions } from "../providers/Form";
|
|
3
4
|
import type { GetConstantType } from "./util";
|
|
4
5
|
|
|
@@ -44,7 +45,7 @@ export interface PublicFormInstance<T = any> {
|
|
|
44
45
|
value: any,
|
|
45
46
|
options?: SetFieldValueOptions,
|
|
46
47
|
) => void;
|
|
47
|
-
setFieldValues: (values: Partial<T>, options?:
|
|
48
|
+
setFieldValues: (values: Partial<T>, options?: OnChangeOptions) => void;
|
|
48
49
|
getFieldValue: (name: keyof T | (string & {})) => any;
|
|
49
50
|
getFieldValues: (
|
|
50
51
|
names?: Array<keyof T | (string & {})>,
|