@paragrav/rhf-utils 0.0.65 → 0.0.67
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/dist/esm/client/zod/index.mjs +5 -4
- package/package.json +75 -149
- package/dist/esm/node_modules/@hookform/resolvers/zod/dist/zod.mjs +0 -49
- /package/dist/types/{src/client → client}/config.d.ts +0 -0
- /package/dist/types/{src/client → client}/context.d.ts +0 -0
- /package/dist/types/{src/client → client}/index.d.ts +0 -0
- /package/dist/types/{src/client → client}/zod/context/index.d.ts +0 -0
- /package/dist/types/{src/client → client}/zod/context/provider.d.ts +0 -0
- /package/dist/types/{src/client → client}/zod/index.d.ts +0 -0
- /package/dist/types/{src/devtool → devtool}/LazyDevTool.d.ts +0 -0
- /package/dist/types/{src/env-conditions → env-conditions}/development.d.ts +0 -0
- /package/dist/types/{src/env-conditions → env-conditions}/production.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/consoleErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/context/index.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/context/provider.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/flat/flattenFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/flat/getFlatFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/flat/types.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/flat/useFormFlatFieldErrorsMemo.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/flat/useRefdFieldErrorsMemo.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/isFieldError.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/message/FormErrorMessage.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/message/FormErrorMessageByPath.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/nonfield/FormNonFieldErrorMarker.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/nonfield/FormNonFieldErrorMarker.spec.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/nonfield/FormNonFieldErrorMarker.utils.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/nonfield/FormNonFieldErrorMarkerHtmlAttribute.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/nonfield/isNonFieldError.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/getOrphansFromFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/getOrphansFromFlatFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/isOrphanFormError.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/useFormHasOrphanAndNoFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/useOrphanFormErrorsMemo.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/orphan/useOrphanFormErrorsToConsole.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/outputErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/FormRootErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/FormRootErrorsFromContext.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/consts.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/getRootsFromFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/getRootsFromFlatFieldErrors.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/isFormErrorPathRoot.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/root/useRootFormFieldErrorsMemo.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormErrorConsoleDebug.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormErrorsEffect.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormErrorsIfAny.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormErrorsMemo.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormErrorsToConsole.d.ts +0 -0
- /package/dist/types/{src/errors → errors}/useFormRequestSubmit.d.ts +0 -0
- /package/dist/types/{src/exports.d.ts → exports.d.ts} +0 -0
- /package/dist/types/{src/form → form}/FormWithProviders.d.ts +0 -0
- /package/dist/types/{src/form → form}/SafeFieldValues.d.ts +0 -0
- /package/dist/types/{src/form → form}/_Form.d.ts +0 -0
- /package/dist/types/{src/form → form}/_FormBase.d.ts +0 -0
- /package/dist/types/{src/form → form}/_FormProviders.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/FormGroupContextProvider.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/index.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupChildIsMountedTracker.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupChildIsSubmittingTracker.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupChildTracker.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupIsAnyBusy.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupIsChildBusy.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupIsParentBusy.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormGroupParentTracker.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/group/useFormOrParentIsBusy.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/utils/FormUtilsContextProvider.d.ts +0 -0
- /package/dist/types/{src/form → form}/context/utils/useFormUtilsContext.d.ts +0 -0
- /package/dist/types/{src/form → form}/useForm.d.ts +0 -0
- /package/dist/types/{src/form → form}/useFormIsBusy.d.ts +0 -0
- /package/dist/types/{src/form → form}/useFormOptions.d.ts +0 -0
- /package/dist/types/{src/form → form}/utils/getSubmitterButtonData.d.ts +0 -0
- /package/dist/types/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/types/{src/submit → submit}/error/FormSubmitError.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/error/setCtxErrorsByFormSubmitError.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/useFormOnSubmitSuccessful.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/useFormOnSubmitSuccessfulAndReset.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/useResetFormOnSubmitError.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/useResetFormOnSubmitSuccessful.d.ts +0 -0
- /package/dist/types/{src/submit → submit}/useSubmitFormOnChange.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/createContext.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/fixedForwardRef.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/isEmptyObject.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/useImperativeForwardedRef.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/useThrowAsyncError.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/useToggle.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { zodResolver as t } from "
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { zodResolver as t } from "@hookform/resolvers/zod";
|
|
2
|
+
import "zod";
|
|
3
|
+
import { createRhfUtilsClient as o } from "../index.mjs";
|
|
4
|
+
const l = o(t);
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
l as createZodRhfUtilsClient
|
|
6
7
|
};
|
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.67",
|
|
6
6
|
"description": "Integration utilities for react-hook-form.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -18,226 +18,152 @@
|
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"types": "./dist/types/exports.d.ts"
|
|
24
|
-
}
|
|
21
|
+
"default": "./dist/esm/exports.mjs",
|
|
22
|
+
"types": "./dist/types/exports.d.ts"
|
|
25
23
|
},
|
|
26
24
|
"./createZodRhfUtilsClient": {
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"types": "./dist/types/client/zod/createZodRhfUtilsClient.d.ts"
|
|
30
|
-
}
|
|
25
|
+
"default": "./dist/esm/client/zod/createZodRhfUtilsClient.mjs",
|
|
26
|
+
"types": "./dist/types/client/zod/createZodRhfUtilsClient.d.ts"
|
|
31
27
|
},
|
|
32
28
|
"./useRhfUtilsZodContext": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"types": "./dist/types/client/zod/useRhfUtilsZodContext.d.ts"
|
|
36
|
-
}
|
|
29
|
+
"default": "./dist/esm/client/zod/useRhfUtilsZodContext.mjs",
|
|
30
|
+
"types": "./dist/types/client/zod/useRhfUtilsZodContext.d.ts"
|
|
37
31
|
},
|
|
38
32
|
"./RhfUtilsZodContextProvider": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"types": "./dist/types/client/zod/RhfUtilsZodContextProvider.d.ts"
|
|
42
|
-
}
|
|
33
|
+
"default": "./dist/esm/client/zod/RhfUtilsZodContextProvider.mjs",
|
|
34
|
+
"types": "./dist/types/client/zod/RhfUtilsZodContextProvider.d.ts"
|
|
43
35
|
},
|
|
44
36
|
"./LazyDevTool": {
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"types": "./dist/types/devtool/LazyDevTool.d.ts"
|
|
48
|
-
}
|
|
37
|
+
"default": "./dist/esm/devtool/LazyDevTool.mjs",
|
|
38
|
+
"types": "./dist/types/devtool/LazyDevTool.d.ts"
|
|
49
39
|
},
|
|
50
40
|
"./errors/FormErrorMessage": {
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"types": "./dist/types/errors/message/FormErrorMessage.d.ts"
|
|
54
|
-
}
|
|
41
|
+
"default": "./dist/esm/errors/message/FormErrorMessage.mjs",
|
|
42
|
+
"types": "./dist/types/errors/message/FormErrorMessage.d.ts"
|
|
55
43
|
},
|
|
56
44
|
"./errors/FormErrorMessageByPath": {
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
"types": "./dist/types/errors/message/FormErrorMessageByPath.d.ts"
|
|
60
|
-
}
|
|
45
|
+
"default": "./dist/esm/errors/message/FormErrorMessageByPath.mjs",
|
|
46
|
+
"types": "./dist/types/errors/message/FormErrorMessageByPath.d.ts"
|
|
61
47
|
},
|
|
62
48
|
"./errors/useFormErrorConsoleDebug": {
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
"types": "./dist/types/errors/useFormErrorConsoleDebug.d.ts"
|
|
66
|
-
}
|
|
49
|
+
"default": "./dist/esm/errors/useFormErrorConsoleDebug.mjs",
|
|
50
|
+
"types": "./dist/types/errors/useFormErrorConsoleDebug.d.ts"
|
|
67
51
|
},
|
|
68
52
|
"./errors/useFormErrorsEffect": {
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
"types": "./dist/types/errors/useFormErrorsEffect.d.ts"
|
|
72
|
-
}
|
|
53
|
+
"default": "./dist/esm/errors/useFormErrorsEffect.mjs",
|
|
54
|
+
"types": "./dist/types/errors/useFormErrorsEffect.d.ts"
|
|
73
55
|
},
|
|
74
56
|
"./errors/useFormErrorsIfAny": {
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
"types": "./dist/types/errors/useFormErrorsIfAny.d.ts"
|
|
78
|
-
}
|
|
57
|
+
"default": "./dist/esm/errors/useFormErrorsIfAny.mjs",
|
|
58
|
+
"types": "./dist/types/errors/useFormErrorsIfAny.d.ts"
|
|
79
59
|
},
|
|
80
60
|
"./errors/useFormErrorsOnChange": {
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
"types": "./dist/types/errors/useFormErrorsOnChange.d.ts"
|
|
84
|
-
}
|
|
61
|
+
"default": "./dist/esm/errors/useFormErrorsOnChange.mjs",
|
|
62
|
+
"types": "./dist/types/errors/useFormErrorsOnChange.d.ts"
|
|
85
63
|
},
|
|
86
64
|
"./errors/useFormRequestSubmit": {
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
"types": "./dist/types/errors/useFormRequestSubmit.d.ts"
|
|
90
|
-
}
|
|
65
|
+
"default": "./dist/esm/errors/useFormRequestSubmit.mjs",
|
|
66
|
+
"types": "./dist/types/errors/useFormRequestSubmit.d.ts"
|
|
91
67
|
},
|
|
92
68
|
"./errors/FormNonFieldErrorMarker": {
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.d.ts"
|
|
96
|
-
}
|
|
69
|
+
"default": "./dist/esm/errors/nonfield/FormNonFieldErrorMarker.mjs",
|
|
70
|
+
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.d.ts"
|
|
97
71
|
},
|
|
98
72
|
"./errors/FormNonFieldErrorMarkerHtmlAttribute": {
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.utils.d.ts"
|
|
102
|
-
}
|
|
73
|
+
"default": "./dist/esm/errors/nonfield/FormNonFieldErrorMarker.utils.mjs",
|
|
74
|
+
"types": "./dist/types/errors/nonfield/FormNonFieldErrorMarker.utils.d.ts"
|
|
103
75
|
},
|
|
104
76
|
"./errors/useOrphanFormErrorsToConsoleError": {
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
"types": "./dist/types/errors/orphan/useOrphanFormErrorsToConsoleError.d.ts"
|
|
108
|
-
}
|
|
77
|
+
"default": "./dist/esm/errors/orphan/useOrphanFormErrorsToConsoleError.mjs",
|
|
78
|
+
"types": "./dist/types/errors/orphan/useOrphanFormErrorsToConsoleError.d.ts"
|
|
109
79
|
},
|
|
110
80
|
"./errors/useFormErrorsHasOnlyOrphans": {
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
"types": "./dist/types/errors/orphan/useFormErrorsHasOnlyOrphans.d.ts"
|
|
114
|
-
}
|
|
81
|
+
"default": "./dist/esm/errors/orphan/useFormErrorsHasOnlyOrphans.mjs",
|
|
82
|
+
"types": "./dist/types/errors/orphan/useFormErrorsHasOnlyOrphans.d.ts"
|
|
115
83
|
},
|
|
116
84
|
"./errors/useOrphanFormErrors": {
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
"types": "./dist/types/errors/orphan/useOrphanFormErrors.d.ts"
|
|
120
|
-
}
|
|
85
|
+
"default": "./dist/esm/errors/orphan/useOrphanFormErrors.mjs",
|
|
86
|
+
"types": "./dist/types/errors/orphan/useOrphanFormErrors.d.ts"
|
|
121
87
|
},
|
|
122
88
|
"./errors/useRootFormFieldErrors": {
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
"types": "./dist/types/errors/root/useRootFormFieldErrors.d.ts"
|
|
126
|
-
}
|
|
89
|
+
"default": "./dist/esm/errors/root/useRootFormFieldErrors.mjs",
|
|
90
|
+
"types": "./dist/types/errors/root/useRootFormFieldErrors.d.ts"
|
|
127
91
|
},
|
|
128
92
|
"./form/useForm": {
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
"types": "./dist/types/form/useForm.d.ts"
|
|
132
|
-
}
|
|
93
|
+
"default": "./dist/esm/form/useForm.mjs",
|
|
94
|
+
"types": "./dist/types/form/useForm.d.ts"
|
|
133
95
|
},
|
|
134
96
|
"./form/context/FormUtilsContextProvider": {
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
"types": "./dist/types/form/context/FormUtilsContextProvider.d.ts"
|
|
138
|
-
}
|
|
97
|
+
"default": "./dist/esm/form/context/FormUtilsContextProvider.mjs",
|
|
98
|
+
"types": "./dist/types/form/context/FormUtilsContextProvider.d.ts"
|
|
139
99
|
},
|
|
140
100
|
"./form/context/useFormUtilsContext": {
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
"types": "./dist/types/form/context/useFormUtilsContext.d.ts"
|
|
144
|
-
}
|
|
101
|
+
"default": "./dist/esm/form/context/useFormUtilsContext.mjs",
|
|
102
|
+
"types": "./dist/types/form/context/useFormUtilsContext.d.ts"
|
|
145
103
|
},
|
|
146
104
|
"./form/context/group/FormGroupContextProvider": {
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
"types": "./dist/types/form/context/group/FormGroupContextProvider.d.ts"
|
|
150
|
-
}
|
|
105
|
+
"default": "./dist/esm/form/context/group/FormGroupContextProvider.mjs",
|
|
106
|
+
"types": "./dist/types/form/context/group/FormGroupContextProvider.d.ts"
|
|
151
107
|
},
|
|
152
108
|
"./form/context/group/useFormGroupParentTracker": {
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
"types": "./dist/types/form/context/group/useFormGroupParentTracker.d.ts"
|
|
156
|
-
}
|
|
109
|
+
"default": "./dist/esm/form/context/group/useFormGroupParentTracker.mjs",
|
|
110
|
+
"types": "./dist/types/form/context/group/useFormGroupParentTracker.d.ts"
|
|
157
111
|
},
|
|
158
112
|
"./form/context/group/useFormOrParentIsBusy": {
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
"types": "./dist/types/form/context/group/useFormOrParentIsBusy.d.ts"
|
|
162
|
-
}
|
|
113
|
+
"default": "./dist/esm/form/context/group/useFormOrParentIsBusy.mjs",
|
|
114
|
+
"types": "./dist/types/form/context/group/useFormOrParentIsBusy.d.ts"
|
|
163
115
|
},
|
|
164
116
|
"./form/context/group/useFormGroupChildIsSubmittingTracker": {
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
"types": "./dist/types/form/context/group/useFormGroupChildIsSubmittingTracker.d.ts"
|
|
168
|
-
}
|
|
117
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildIsSubmittingTracker.mjs",
|
|
118
|
+
"types": "./dist/types/form/context/group/useFormGroupChildIsSubmittingTracker.d.ts"
|
|
169
119
|
},
|
|
170
120
|
"./form/context/group/useFormGroupChildTracker": {
|
|
171
|
-
"
|
|
172
|
-
|
|
173
|
-
"types": "./dist/types/form/context/group/useFormGroupChildTracker.d.ts"
|
|
174
|
-
}
|
|
121
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildTracker.mjs",
|
|
122
|
+
"types": "./dist/types/form/context/group/useFormGroupChildTracker.d.ts"
|
|
175
123
|
},
|
|
176
124
|
"./form/context/group/useFormGroupChildIsMountedTracker": {
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
"types": "./dist/types/form/context/group/useFormGroupChildIsMountedTracker.d.ts"
|
|
180
|
-
}
|
|
125
|
+
"default": "./dist/esm/form/context/group/useFormGroupChildIsMountedTracker.mjs",
|
|
126
|
+
"types": "./dist/types/form/context/group/useFormGroupChildIsMountedTracker.d.ts"
|
|
181
127
|
},
|
|
182
128
|
"./form/context/group/useFormGroupIsAnyBusy": {
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
"types": "./dist/types/form/context/group/useFormGroupIsAnyBusy.d.ts"
|
|
186
|
-
}
|
|
129
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsAnyBusy.mjs",
|
|
130
|
+
"types": "./dist/types/form/context/group/useFormGroupIsAnyBusy.d.ts"
|
|
187
131
|
},
|
|
188
132
|
"./form/context/group/useFormGroupIsChildBusy": {
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
"types": "./dist/types/form/context/group/useFormGroupIsChildBusy.d.ts"
|
|
192
|
-
}
|
|
133
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsChildBusy.mjs",
|
|
134
|
+
"types": "./dist/types/form/context/group/useFormGroupIsChildBusy.d.ts"
|
|
193
135
|
},
|
|
194
136
|
"./form/context/group/useFormGroupIsParentBusy": {
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
"types": "./dist/types/form/context/group/useFormGroupIsParentBusy.d.ts"
|
|
198
|
-
}
|
|
137
|
+
"default": "./dist/esm/form/context/group/useFormGroupIsParentBusy.mjs",
|
|
138
|
+
"types": "./dist/types/form/context/group/useFormGroupIsParentBusy.d.ts"
|
|
199
139
|
},
|
|
200
140
|
"./form/context/utils/getSubmitterButtonData": {
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
"types": "./dist/types/form/utils/getSubmitterButtonData.d.ts"
|
|
204
|
-
}
|
|
141
|
+
"default": "./dist/esm/form/utils/getSubmitterButtonData.mjs",
|
|
142
|
+
"types": "./dist/types/form/utils/getSubmitterButtonData.d.ts"
|
|
205
143
|
},
|
|
206
144
|
"./submit/useFormOnSubmitSuccessful": {
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
"types": "./dist/types/submit/useFormOnSubmitSuccessful.d.ts"
|
|
210
|
-
}
|
|
145
|
+
"default": "./dist/esm/submit/useFormOnSubmitSuccessful.mjs",
|
|
146
|
+
"types": "./dist/types/submit/useFormOnSubmitSuccessful.d.ts"
|
|
211
147
|
},
|
|
212
148
|
"./submit/error/FormSubmitError": {
|
|
213
|
-
"
|
|
214
|
-
|
|
215
|
-
"types": "./dist/types/submit/error/FormSubmitError.d.ts"
|
|
216
|
-
}
|
|
149
|
+
"default": "./dist/esm/submit/error/FormSubmitError.mjs",
|
|
150
|
+
"types": "./dist/types/submit/error/FormSubmitError.d.ts"
|
|
217
151
|
},
|
|
218
152
|
"./submit/useFormOnSubmitSuccessfulAndReset": {
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
"types": "./dist/types/submit/useFormOnSubmitSuccessfulAndReset.d.ts"
|
|
222
|
-
}
|
|
153
|
+
"default": "./dist/esm/submit/useFormOnSubmitSuccessfulAndReset.mjs",
|
|
154
|
+
"types": "./dist/types/submit/useFormOnSubmitSuccessfulAndReset.d.ts"
|
|
223
155
|
},
|
|
224
156
|
"./submit/useResetFormOnSubmitError": {
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
"types": "./dist/types/submit/useResetFormOnSubmitError.d.ts"
|
|
228
|
-
}
|
|
157
|
+
"default": "./dist/esm/submit/useResetFormOnSubmitError.mjs",
|
|
158
|
+
"types": "./dist/types/submit/useResetFormOnSubmitError.d.ts"
|
|
229
159
|
},
|
|
230
160
|
"./submit/useResetFormAfterSubmitSuccessful": {
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
"types": "./dist/types/submit/useResetFormAfterSubmitSuccessful.d.ts"
|
|
234
|
-
}
|
|
161
|
+
"default": "./dist/esm/submit/useResetFormAfterSubmitSuccessful.mjs",
|
|
162
|
+
"types": "./dist/types/submit/useResetFormAfterSubmitSuccessful.d.ts"
|
|
235
163
|
},
|
|
236
164
|
"./submit/useSubmitFormOnChange": {
|
|
237
|
-
"
|
|
238
|
-
|
|
239
|
-
"types": "./dist/types/submit/useSubmitFormOnChange.d.ts"
|
|
240
|
-
}
|
|
165
|
+
"default": "./dist/esm/submit/useSubmitFormOnChange.mjs",
|
|
166
|
+
"types": "./dist/types/submit/useSubmitFormOnChange.d.ts"
|
|
241
167
|
}
|
|
242
168
|
},
|
|
243
169
|
"scripts": {
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { appendErrors as v } from "react-hook-form";
|
|
2
|
-
import { validateFieldsNatively as d, toNestErrors as h } from "@hookform/resolvers";
|
|
3
|
-
var m = function(i, u) {
|
|
4
|
-
for (var o = {}; i.length; ) {
|
|
5
|
-
var r = i[0], c = r.code, n = r.message, e = r.path.join(".");
|
|
6
|
-
if (!o[e])
|
|
7
|
-
if ("unionErrors" in r) {
|
|
8
|
-
var s = r.unionErrors[0].errors[0];
|
|
9
|
-
o[e] = { message: s.message, type: s.code };
|
|
10
|
-
} else
|
|
11
|
-
o[e] = { message: n, type: c };
|
|
12
|
-
if ("unionErrors" in r && r.unionErrors.forEach(function(f) {
|
|
13
|
-
return f.errors.forEach(function(l) {
|
|
14
|
-
return i.push(l);
|
|
15
|
-
});
|
|
16
|
-
}), u) {
|
|
17
|
-
var t = o[e].types, a = t && t[r.code];
|
|
18
|
-
o[e] = v(e, u, o, c, a ? [].concat(a, r.message) : r.message);
|
|
19
|
-
}
|
|
20
|
-
i.shift();
|
|
21
|
-
}
|
|
22
|
-
return o;
|
|
23
|
-
}, E = function(i, u, o) {
|
|
24
|
-
return o === void 0 && (o = {}), function(r, c, n) {
|
|
25
|
-
try {
|
|
26
|
-
return Promise.resolve(function(e, s) {
|
|
27
|
-
try {
|
|
28
|
-
var t = Promise.resolve(i[o.mode === "sync" ? "parse" : "parseAsync"](r, u)).then(function(a) {
|
|
29
|
-
return n.shouldUseNativeValidation && d({}, n), { errors: {}, values: o.raw ? r : a };
|
|
30
|
-
});
|
|
31
|
-
} catch (a) {
|
|
32
|
-
return s(a);
|
|
33
|
-
}
|
|
34
|
-
return t && t.then ? t.then(void 0, s) : t;
|
|
35
|
-
}(0, function(e) {
|
|
36
|
-
if (function(s) {
|
|
37
|
-
return s.errors != null;
|
|
38
|
-
}(e))
|
|
39
|
-
return { values: {}, errors: h(m(e.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
40
|
-
throw e;
|
|
41
|
-
}));
|
|
42
|
-
} catch (e) {
|
|
43
|
-
return Promise.reject(e);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
E as zodResolver
|
|
49
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{src/errors → errors}/nonfield/FormNonFieldErrorMarkerHtmlAttribute.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{src/form → form}/context/group/useFormGroupChildIsSubmittingTracker.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|