@octanejs/hook-form 0.1.2 → 0.1.6
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/package.json +8 -4
- package/src/types/form.ts +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/hook-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
6
9
|
"description": "React Hook Form for the octane renderer — the full react-hook-form 7.81.0 source ported onto octane's hooks: performant, flexible forms with native-event validation (onInput), field arrays, and schema resolvers.",
|
|
7
10
|
"author": {
|
|
8
11
|
"name": "Dominic Gannaway",
|
|
@@ -26,8 +29,8 @@
|
|
|
26
29
|
"exports": {
|
|
27
30
|
".": "./src/index.ts"
|
|
28
31
|
},
|
|
29
|
-
"
|
|
30
|
-
"octane": "0.1.
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"octane": "0.1.9"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
36
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -38,7 +41,8 @@
|
|
|
38
41
|
"react-hook-form": "7.81.0",
|
|
39
42
|
"vitest": "^4.1.9",
|
|
40
43
|
"zod": "^3.25.76",
|
|
41
|
-
"@octanejs/testing-library": "0.1.
|
|
44
|
+
"@octanejs/testing-library": "0.1.6",
|
|
45
|
+
"octane": "0.1.9"
|
|
42
46
|
},
|
|
43
47
|
"scripts": {
|
|
44
48
|
"test": "vitest run"
|
package/src/types/form.ts
CHANGED
|
@@ -225,8 +225,8 @@ export type UseFormRegisterReturn<TFieldName extends InternalFieldName = Interna
|
|
|
225
225
|
* }, [register])
|
|
226
226
|
*
|
|
227
227
|
* // Register without ref
|
|
228
|
-
* const {
|
|
229
|
-
* <input
|
|
228
|
+
* const { onInput, onBlur, name } = register("name6")
|
|
229
|
+
* <input onInput={onInput} onBlur={onBlur} name={name} />
|
|
230
230
|
* ```
|
|
231
231
|
*/
|
|
232
232
|
export type UseFormRegister<TFieldValues extends FieldValues> = <
|