@conform-to/react 1.15.1 → 1.16.0
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/README.md +1 -1
- package/dist/future/forms.d.ts +43 -0
- package/dist/future/forms.js +322 -0
- package/dist/future/forms.mjs +318 -0
- package/dist/future/hooks.d.ts +25 -4
- package/dist/future/hooks.js +21 -8
- package/dist/future/hooks.mjs +21 -8
- package/dist/future/index.d.ts +3 -1
- package/dist/future/index.js +4 -0
- package/dist/future/index.mjs +2 -0
- package/dist/future/state.d.ts +28 -13
- package/dist/future/state.js +37 -33
- package/dist/future/state.mjs +39 -35
- package/dist/future/types.d.ts +275 -28
- package/dist/future/util.d.ts +44 -1
- package/dist/future/util.js +67 -5
- package/dist/future/util.mjs +64 -6
- package/dist/integrations.d.ts +3 -3
- package/package.json +2 -2
package/dist/integrations.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare function createDummySelect(form: HTMLFormElement, name: string, v
|
|
|
6
6
|
export declare function isDummySelect(element: HTMLElement): element is HTMLSelectElement;
|
|
7
7
|
export declare function getInputValue(element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement): string | string[] | null;
|
|
8
8
|
export declare function useInputEvent(onUpdate: React.Dispatch<React.SetStateAction<string | string[] | undefined>>): {
|
|
9
|
-
change(value: string | string[])
|
|
10
|
-
focus()
|
|
11
|
-
blur()
|
|
9
|
+
change: (value: string | string[]) => void;
|
|
10
|
+
focus: () => void;
|
|
11
|
+
blur: () => void;
|
|
12
12
|
register: RefCallback<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | undefined>;
|
|
13
13
|
};
|
|
14
14
|
export declare function useInputValue<Value extends string | string[] | Array<string | undefined>>(options: {
|
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": "1.
|
|
6
|
+
"version": "1.16.0",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.mjs",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/edmundhung/conform/issues"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@conform-to/dom": "1.
|
|
44
|
+
"@conform-to/dom": "1.16.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.17.8",
|