@paragrav/rhf-utils 0.0.74 → 0.0.75
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 +164 -98
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@paragrav/rhf-utils",
|
|
3
3
|
"author": "paragrav.dev",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.75",
|
|
6
6
|
"description": "Integration utilities for react-hook-form.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -18,184 +18,250 @@
|
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"zod": {
|
|
25
|
-
"createRhfUtilsClientForZod": {
|
|
26
|
-
"default": "./dist/esm/client/zod/createRhfUtilsClientForZod.mjs",
|
|
27
|
-
"types": "./dist/types/client/zod/createRhfUtilsClientForZod.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"useRhfUtilsClientForZodContext": {
|
|
30
|
-
"default": "./dist/esm/client/zod/useRhfUtilsClientForZodContext.mjs",
|
|
31
|
-
"types": "./dist/types/client/zod/useRhfUtilsClientForZodContext.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"RhfUtilsClientForZodContextProvider": {
|
|
34
|
-
"default": "./dist/esm/client/zod/RhfUtilsClientForZodContextProvider.mjs",
|
|
35
|
-
"types": "./dist/types/client/zod/RhfUtilsClientForZodContextProvider.d.ts"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
21
|
+
"import": {
|
|
22
|
+
"default": "./dist/esm/exports.mjs",
|
|
23
|
+
"types": "./dist/types/exports.d.ts"
|
|
38
24
|
}
|
|
39
25
|
},
|
|
40
26
|
"./client/zod/createRhfUtilsClientForZod": {
|
|
41
|
-
"
|
|
42
|
-
|
|
27
|
+
"import": {
|
|
28
|
+
"default": "./dist/esm/client/zod/createRhfUtilsClientForZod.mjs",
|
|
29
|
+
"types": "./dist/types/client/zod/createRhfUtilsClientForZod.d.ts"
|
|
30
|
+
}
|
|
43
31
|
},
|
|
44
32
|
"./client/zod/useRhfUtilsClientForZodContext": {
|
|
45
|
-
"
|
|
46
|
-
|
|
33
|
+
"import": {
|
|
34
|
+
"default": "./dist/esm/client/zod/useRhfUtilsClientForZodContext.mjs",
|
|
35
|
+
"types": "./dist/types/client/zod/useRhfUtilsClientForZodContext.d.ts"
|
|
36
|
+
}
|
|
47
37
|
},
|
|
48
38
|
"./client/zod/RhfUtilsClientForZodContextProvider": {
|
|
49
|
-
"
|
|
50
|
-
|
|
39
|
+
"import": {
|
|
40
|
+
"default": "./dist/esm/client/zod/RhfUtilsClientForZodContextProvider.mjs",
|
|
41
|
+
"types": "./dist/types/client/zod/RhfUtilsClientForZodContextProvider.d.ts"
|
|
42
|
+
}
|
|
51
43
|
},
|
|
52
44
|
"./devtool/LazyDevTool": {
|
|
53
|
-
"
|
|
54
|
-
|
|
45
|
+
"import": {
|
|
46
|
+
"default": "./dist/esm/devtool/LazyDevTool.mjs",
|
|
47
|
+
"types": "./dist/types/devtool/LazyDevTool.d.ts"
|
|
48
|
+
}
|
|
55
49
|
},
|
|
56
50
|
"./errors/flat/context/FlatFieldErrorsContextProvider": {
|
|
57
|
-
"
|
|
58
|
-
|
|
51
|
+
"import": {
|
|
52
|
+
"default": "./dist/esm/errors/flat/context/FlatFieldErrorsContextProvider.mjs",
|
|
53
|
+
"types": "./dist/types/errors/flat/context/FlatFieldErrorsContextProvider.d.ts"
|
|
54
|
+
}
|
|
59
55
|
},
|
|
60
56
|
"./errors/flat/context/useFlatFieldErrorsContext": {
|
|
61
|
-
"
|
|
62
|
-
|
|
57
|
+
"import": {
|
|
58
|
+
"default": "./dist/esm/errors/flat/context/useFlatFieldErrorsContext.mjs",
|
|
59
|
+
"types": "./dist/types/errors/flat/context/useFlatFieldErrorsContext.d.ts"
|
|
60
|
+
}
|
|
63
61
|
},
|
|
64
62
|
"./errors/flat/FlatFieldErrorsList": {
|
|
65
|
-
"
|
|
66
|
-
|
|
63
|
+
"import": {
|
|
64
|
+
"default": "./dist/esm/errors/flat/FlatFieldErrorsList.mjs",
|
|
65
|
+
"types": "./dist/types/errors/flat/FlatFieldErrorsList.d.ts"
|
|
66
|
+
}
|
|
67
67
|
},
|
|
68
68
|
"./errors/FormErrorMessage": {
|
|
69
|
-
"
|
|
70
|
-
|
|
69
|
+
"import": {
|
|
70
|
+
"default": "./dist/esm/errors/message/FormErrorMessage.mjs",
|
|
71
|
+
"types": "./dist/types/errors/message/FormErrorMessage.d.ts"
|
|
72
|
+
}
|
|
71
73
|
},
|
|
72
74
|
"./errors/FormErrorMessageByPath": {
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
+
"import": {
|
|
76
|
+
"default": "./dist/esm/errors/message/FormErrorMessageByPath.mjs",
|
|
77
|
+
"types": "./dist/types/errors/message/FormErrorMessageByPath.d.ts"
|
|
78
|
+
}
|
|
75
79
|
},
|
|
76
80
|
"./errors/useFormErrorConsoleDebug": {
|
|
77
|
-
"
|
|
78
|
-
|
|
81
|
+
"import": {
|
|
82
|
+
"default": "./dist/esm/errors/useFormErrorConsoleDebug.mjs",
|
|
83
|
+
"types": "./dist/types/errors/useFormErrorConsoleDebug.d.ts"
|
|
84
|
+
}
|
|
79
85
|
},
|
|
80
86
|
"./errors/useFormErrorsEffect": {
|
|
81
|
-
"
|
|
82
|
-
|
|
87
|
+
"import": {
|
|
88
|
+
"default": "./dist/esm/errors/useFormErrorsEffect.mjs",
|
|
89
|
+
"types": "./dist/types/errors/useFormErrorsEffect.d.ts"
|
|
90
|
+
}
|
|
83
91
|
},
|
|
84
92
|
"./errors/useFormErrorsIfAny": {
|
|
85
|
-
"
|
|
86
|
-
|
|
93
|
+
"import": {
|
|
94
|
+
"default": "./dist/esm/errors/useFormErrorsIfAny.mjs",
|
|
95
|
+
"types": "./dist/types/errors/useFormErrorsIfAny.d.ts"
|
|
96
|
+
}
|
|
87
97
|
},
|
|
88
98
|
"./errors/useFormErrorsTransformMemo": {
|
|
89
|
-
"
|
|
90
|
-
|
|
99
|
+
"import": {
|
|
100
|
+
"default": "./dist/esm/errors/useFormErrorsTransformMemo.mjs",
|
|
101
|
+
"types": "./dist/types/errors/useFormErrorsTransformMemo.d.ts"
|
|
102
|
+
}
|
|
91
103
|
},
|
|
92
104
|
"./errors/useFormRequestSubmit": {
|
|
93
|
-
"
|
|
94
|
-
|
|
105
|
+
"import": {
|
|
106
|
+
"default": "./dist/esm/errors/useFormRequestSubmit.mjs",
|
|
107
|
+
"types": "./dist/types/errors/useFormRequestSubmit.d.ts"
|
|
108
|
+
}
|
|
95
109
|
},
|
|
96
110
|
"./errors/FormNonFieldErrorMarker": {
|
|
97
|
-
"
|
|
98
|
-
|
|
111
|
+
"import": {
|
|
112
|
+
"default": "./dist/esm/errors/nonfield/FormNonFieldErrorMarker.mjs",
|
|
113
|
+
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.d.ts"
|
|
114
|
+
}
|
|
99
115
|
},
|
|
100
116
|
"./errors/FormNonFieldErrorMarkerHtmlAttribute": {
|
|
101
|
-
"
|
|
102
|
-
|
|
117
|
+
"import": {
|
|
118
|
+
"default": "./dist/esm/errors/nonfield/FormNonFieldErrorMarker.utils.mjs",
|
|
119
|
+
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.utils.d.ts"
|
|
120
|
+
}
|
|
103
121
|
},
|
|
104
122
|
"./errors/useFormHasOnlyOrphanFieldErrorsMemo": {
|
|
105
|
-
"
|
|
106
|
-
|
|
123
|
+
"import": {
|
|
124
|
+
"default": "./dist/esm/errors/orphan/useFormHasOnlyOrphanFieldErrorsMemo.mjs",
|
|
125
|
+
"types": "./dist/types/errors/orphan/useFormHasOnlyOrphanFieldErrorsMemo.d.ts"
|
|
126
|
+
}
|
|
107
127
|
},
|
|
108
128
|
"./errors/useOrphanFormErrorsToConsoleError": {
|
|
109
|
-
"
|
|
110
|
-
|
|
129
|
+
"import": {
|
|
130
|
+
"default": "./dist/esm/errors/orphan/useOrphanFormErrorsToConsoleError.mjs",
|
|
131
|
+
"types": "./dist/types/errors/orphan/useOrphanFormErrorsToConsoleError.d.ts"
|
|
132
|
+
}
|
|
111
133
|
},
|
|
112
134
|
"./errors/useOrphanFormErrors": {
|
|
113
|
-
"
|
|
114
|
-
|
|
135
|
+
"import": {
|
|
136
|
+
"default": "./dist/esm/errors/orphan/useOrphanFormErrors.mjs",
|
|
137
|
+
"types": "./dist/types/errors/orphan/useOrphanFormErrors.d.ts"
|
|
138
|
+
}
|
|
115
139
|
},
|
|
116
140
|
"./errors/useRootFormFieldErrors": {
|
|
117
|
-
"
|
|
118
|
-
|
|
141
|
+
"import": {
|
|
142
|
+
"default": "./dist/esm/errors/root/useRootFormFieldErrors.mjs",
|
|
143
|
+
"types": "./dist/types/errors/root/useRootFormFieldErrors.d.ts"
|
|
144
|
+
}
|
|
119
145
|
},
|
|
120
146
|
"./errors/RootErrorsListFromFlatFieldErrorsContext": {
|
|
121
|
-
"
|
|
122
|
-
|
|
147
|
+
"import": {
|
|
148
|
+
"default": "./dist/esm/errors/root/RootErrorsListFromFlatFieldErrorsContext.mjs",
|
|
149
|
+
"types": "./dist/types/errors/root/RootErrorsListFromFlatFieldErrorsContext.d.ts"
|
|
150
|
+
}
|
|
123
151
|
},
|
|
124
152
|
"./form/useForm": {
|
|
125
|
-
"
|
|
126
|
-
|
|
153
|
+
"import": {
|
|
154
|
+
"default": "./dist/esm/form/useForm.mjs",
|
|
155
|
+
"types": "./dist/types/form/useForm.d.ts"
|
|
156
|
+
}
|
|
127
157
|
},
|
|
128
158
|
"./form/context/group/FormGroupContextProvider": {
|
|
129
|
-
"
|
|
130
|
-
|
|
159
|
+
"import": {
|
|
160
|
+
"default": "./dist/esm/form/context/group/FormGroupContextProvider.mjs",
|
|
161
|
+
"types": "./dist/types/form/context/group/FormGroupContextProvider.d.ts"
|
|
162
|
+
}
|
|
131
163
|
},
|
|
132
164
|
"./form/context/group/useFormGroupParentTracker": {
|
|
133
|
-
"
|
|
134
|
-
|
|
165
|
+
"import": {
|
|
166
|
+
"default": "./dist/esm/form/context/group/useFormGroupParentTracker.mjs",
|
|
167
|
+
"types": "./dist/types/form/context/group/useFormGroupParentTracker.d.ts"
|
|
168
|
+
}
|
|
135
169
|
},
|
|
136
170
|
"./form/context/group/useFormOrParentIsBusy": {
|
|
137
|
-
"
|
|
138
|
-
|
|
171
|
+
"import": {
|
|
172
|
+
"default": "./dist/esm/form/context/group/useFormOrParentIsBusy.mjs",
|
|
173
|
+
"types": "./dist/types/form/context/group/useFormOrParentIsBusy.d.ts"
|
|
174
|
+
}
|
|
139
175
|
},
|
|
140
176
|
"./form/context/group/useFormGroupChildIsSubmittingTracker": {
|
|
141
|
-
"
|
|
142
|
-
|
|
177
|
+
"import": {
|
|
178
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildIsSubmittingTracker.mjs",
|
|
179
|
+
"types": "./dist/types/form/context/group/useFormGroupChildIsSubmittingTracker.d.ts"
|
|
180
|
+
}
|
|
143
181
|
},
|
|
144
182
|
"./form/context/group/useFormGroupChildTracker": {
|
|
145
|
-
"
|
|
146
|
-
|
|
183
|
+
"import": {
|
|
184
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildTracker.mjs",
|
|
185
|
+
"types": "./dist/types/form/context/group/useFormGroupChildTracker.d.ts"
|
|
186
|
+
}
|
|
147
187
|
},
|
|
148
188
|
"./form/context/group/useFormGroupChildIsMountedTracker": {
|
|
149
|
-
"
|
|
150
|
-
|
|
189
|
+
"import": {
|
|
190
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildIsMountedTracker.mjs",
|
|
191
|
+
"types": "./dist/types/form/context/group/useFormGroupChildIsMountedTracker.d.ts"
|
|
192
|
+
}
|
|
151
193
|
},
|
|
152
194
|
"./form/context/group/useFormGroupIsAnyBusy": {
|
|
153
|
-
"
|
|
154
|
-
|
|
195
|
+
"import": {
|
|
196
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsAnyBusy.mjs",
|
|
197
|
+
"types": "./dist/types/form/context/group/useFormGroupIsAnyBusy.d.ts"
|
|
198
|
+
}
|
|
155
199
|
},
|
|
156
200
|
"./form/context/group/useFormGroupIsChildBusy": {
|
|
157
|
-
"
|
|
158
|
-
|
|
201
|
+
"import": {
|
|
202
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsChildBusy.mjs",
|
|
203
|
+
"types": "./dist/types/form/context/group/useFormGroupIsChildBusy.d.ts"
|
|
204
|
+
}
|
|
159
205
|
},
|
|
160
206
|
"./form/context/group/useFormGroupIsParentBusy": {
|
|
161
|
-
"
|
|
162
|
-
|
|
207
|
+
"import": {
|
|
208
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsParentBusy.mjs",
|
|
209
|
+
"types": "./dist/types/form/context/group/useFormGroupIsParentBusy.d.ts"
|
|
210
|
+
}
|
|
163
211
|
},
|
|
164
212
|
"./form/context/utils/FormUtilsContextProvider": {
|
|
165
|
-
"
|
|
166
|
-
|
|
213
|
+
"import": {
|
|
214
|
+
"default": "./dist/esm/form/context/utils/FormUtilsContextProvider.mjs",
|
|
215
|
+
"types": "./dist/types/form/context/utils/FormUtilsContextProvider.d.ts"
|
|
216
|
+
}
|
|
167
217
|
},
|
|
168
218
|
"./form/context/utils/useFormUtilsContext": {
|
|
169
|
-
"
|
|
170
|
-
|
|
219
|
+
"import": {
|
|
220
|
+
"default": "./dist/esm/form/context/utils/useFormUtilsContext.mjs",
|
|
221
|
+
"types": "./dist/types/form/context/utils/useFormUtilsContext.d.ts"
|
|
222
|
+
}
|
|
171
223
|
},
|
|
172
224
|
"./form/utils/getSubmitterButtonData": {
|
|
173
|
-
"
|
|
174
|
-
|
|
225
|
+
"import": {
|
|
226
|
+
"default": "./dist/esm/form/utils/getSubmitterButtonData.mjs",
|
|
227
|
+
"types": "./dist/types/form/utils/getSubmitterButtonData.d.ts"
|
|
228
|
+
}
|
|
175
229
|
},
|
|
176
230
|
"./submit/useFormOnSubmitSuccessful": {
|
|
177
|
-
"
|
|
178
|
-
|
|
231
|
+
"import": {
|
|
232
|
+
"default": "./dist/esm/submit/useFormOnSubmitSuccessful.mjs",
|
|
233
|
+
"types": "./dist/types/submit/useFormOnSubmitSuccessful.d.ts"
|
|
234
|
+
}
|
|
179
235
|
},
|
|
180
236
|
"./submit/error/FormSubmitError": {
|
|
181
|
-
"
|
|
182
|
-
|
|
237
|
+
"import": {
|
|
238
|
+
"default": "./dist/esm/submit/error/FormSubmitError.mjs",
|
|
239
|
+
"types": "./dist/types/submit/error/FormSubmitError.d.ts"
|
|
240
|
+
}
|
|
183
241
|
},
|
|
184
242
|
"./submit/useFormOnSubmitSuccessfulAndReset": {
|
|
185
|
-
"
|
|
186
|
-
|
|
243
|
+
"import": {
|
|
244
|
+
"default": "./dist/esm/submit/useFormOnSubmitSuccessfulAndReset.mjs",
|
|
245
|
+
"types": "./dist/types/submit/useFormOnSubmitSuccessfulAndReset.d.ts"
|
|
246
|
+
}
|
|
187
247
|
},
|
|
188
248
|
"./submit/useResetFormOnSubmitError": {
|
|
189
|
-
"
|
|
190
|
-
|
|
249
|
+
"import": {
|
|
250
|
+
"default": "./dist/esm/submit/useResetFormOnSubmitError.mjs",
|
|
251
|
+
"types": "./dist/types/submit/useResetFormOnSubmitError.d.ts"
|
|
252
|
+
}
|
|
191
253
|
},
|
|
192
254
|
"./submit/useResetFormAfterSubmitSuccessful": {
|
|
193
|
-
"
|
|
194
|
-
|
|
255
|
+
"import": {
|
|
256
|
+
"default": "./dist/esm/submit/useResetFormAfterSubmitSuccessful.mjs",
|
|
257
|
+
"types": "./dist/types/submit/useResetFormAfterSubmitSuccessful.d.ts"
|
|
258
|
+
}
|
|
195
259
|
},
|
|
196
260
|
"./submit/useSubmitFormOnChange": {
|
|
197
|
-
"
|
|
198
|
-
|
|
261
|
+
"import": {
|
|
262
|
+
"default": "./dist/esm/submit/useSubmitFormOnChange.mjs",
|
|
263
|
+
"types": "./dist/types/submit/useSubmitFormOnChange.d.ts"
|
|
264
|
+
}
|
|
199
265
|
}
|
|
200
266
|
},
|
|
201
267
|
"peerDependencies": {
|