@tanstack/solid-form 1.15.3 → 1.17.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.
@@ -91,6 +91,10 @@ export function createFormHookContexts() {
91
91
  any,
92
92
  any,
93
93
  any,
94
+ any,
95
+ any,
96
+ any,
97
+ any,
94
98
  any
95
99
  >
96
100
  >
@@ -120,6 +124,8 @@ export function createFormHookContexts() {
120
124
  any,
121
125
  any,
122
126
  any,
127
+ any,
128
+ any,
123
129
  any
124
130
  >
125
131
  }
@@ -146,6 +152,8 @@ type AppFieldExtendedSolidFormApi<
146
152
  TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
147
153
  TOnSubmit extends undefined | FormValidateOrFn<TFormData>,
148
154
  TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
155
+ TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
156
+ TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
149
157
  TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
150
158
  TSubmitMeta,
151
159
  TFieldComponents extends Record<string, Component<any>>,
@@ -159,6 +167,8 @@ type AppFieldExtendedSolidFormApi<
159
167
  TOnBlurAsync,
160
168
  TOnSubmit,
161
169
  TOnSubmitAsync,
170
+ TOnDynamic,
171
+ TOnDynamicAsync,
162
172
  TOnServer,
163
173
  TSubmitMeta
164
174
  > &
@@ -172,6 +182,8 @@ type AppFieldExtendedSolidFormApi<
172
182
  TOnBlurAsync,
173
183
  TOnSubmit,
174
184
  TOnSubmitAsync,
185
+ TOnDynamic,
186
+ TOnDynamicAsync,
175
187
  TOnServer,
176
188
  TSubmitMeta,
177
189
  NoInfer<TFieldComponents>
@@ -188,6 +200,8 @@ export interface WithFormProps<
188
200
  TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
189
201
  TOnSubmit extends undefined | FormValidateOrFn<TFormData>,
190
202
  TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
203
+ TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
204
+ TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
191
205
  TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
192
206
  TSubmitMeta,
193
207
  TFieldComponents extends Record<string, Component<any>>,
@@ -202,6 +216,8 @@ export interface WithFormProps<
202
216
  TOnBlurAsync,
203
217
  TOnSubmit,
204
218
  TOnSubmitAsync,
219
+ TOnDynamic,
220
+ TOnDynamicAsync,
205
221
  TOnServer,
206
222
  TSubmitMeta
207
223
  > {
@@ -219,6 +235,8 @@ export interface WithFormProps<
219
235
  TOnBlurAsync,
220
236
  TOnSubmit,
221
237
  TOnSubmitAsync,
238
+ TOnDynamic,
239
+ TOnDynamicAsync,
222
240
  TOnServer,
223
241
  TSubmitMeta,
224
242
  TFieldComponents,
@@ -242,6 +260,8 @@ export function createFormHook<
242
260
  TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
243
261
  TOnSubmit extends undefined | FormValidateOrFn<TFormData>,
244
262
  TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
263
+ TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
264
+ TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
245
265
  TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
246
266
  TSubmitMeta,
247
267
  >(
@@ -255,6 +275,8 @@ export function createFormHook<
255
275
  TOnBlurAsync,
256
276
  TOnSubmit,
257
277
  TOnSubmitAsync,
278
+ TOnDynamic,
279
+ TOnDynamicAsync,
258
280
  TOnServer,
259
281
  TSubmitMeta
260
282
  >
@@ -268,6 +290,8 @@ export function createFormHook<
268
290
  TOnBlurAsync,
269
291
  TOnSubmit,
270
292
  TOnSubmitAsync,
293
+ TOnDynamic,
294
+ TOnDynamicAsync,
271
295
  TOnServer,
272
296
  TSubmitMeta,
273
297
  TComponents,
@@ -303,6 +327,8 @@ export function createFormHook<
303
327
  TOnBlurAsync,
304
328
  TOnSubmit,
305
329
  TOnSubmitAsync,
330
+ TOnDynamic,
331
+ TOnDynamicAsync,
306
332
  TOnServer,
307
333
  TSubmitMeta,
308
334
  TComponents
@@ -317,6 +343,8 @@ export function createFormHook<
317
343
  TOnBlurAsync,
318
344
  TOnSubmit,
319
345
  TOnSubmitAsync,
346
+ TOnDynamic,
347
+ TOnDynamicAsync,
320
348
  TOnServer,
321
349
  TSubmitMeta,
322
350
  TComponents,
@@ -341,6 +369,8 @@ export function createFormHook<
341
369
  TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
342
370
  TOnSubmit extends undefined | FormValidateOrFn<TFormData>,
343
371
  TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
372
+ TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
373
+ TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
344
374
  TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
345
375
  TSubmitMeta,
346
376
  TRenderProps extends Record<string, unknown> = {},
@@ -356,6 +386,8 @@ export function createFormHook<
356
386
  TOnBlurAsync,
357
387
  TOnSubmit,
358
388
  TOnSubmitAsync,
389
+ TOnDynamic,
390
+ TOnDynamicAsync,
359
391
  TOnServer,
360
392
  TSubmitMeta,
361
393
  TComponents,
@@ -370,6 +402,11 @@ export function createFormHook<
370
402
  UnwrapDefaultOrAny<undefined | FormValidateOrFn<TFormData>, TOnBlurAsync>,
371
403
  UnwrapDefaultOrAny<undefined | FormValidateOrFn<TFormData>, TOnSubmit>,
372
404
  UnwrapDefaultOrAny<undefined | FormValidateOrFn<TFormData>, TOnSubmitAsync>,
405
+ UnwrapDefaultOrAny<undefined | FormValidateOrFn<TFormData>, TOnDynamic>,
406
+ UnwrapDefaultOrAny<
407
+ undefined | FormValidateOrFn<TFormData>,
408
+ TOnDynamicAsync
409
+ >,
373
410
  UnwrapDefaultOrAny<undefined | FormValidateOrFn<TFormData>, TOnServer>,
374
411
  UnwrapOrAny<TSubmitMeta>,
375
412
  UnwrapOrAny<TComponents>,
package/src/types.ts CHANGED
@@ -30,6 +30,10 @@ export interface CreateFieldOptions<
30
30
  TOnSubmitAsync extends
31
31
  | undefined
32
32
  | FieldAsyncValidateOrFn<TParentData, TName, TData>,
33
+ TOnDynamic extends undefined | FieldValidateOrFn<TParentData, TName, TData>,
34
+ TOnDynamicAsync extends
35
+ | undefined
36
+ | FieldAsyncValidateOrFn<TParentData, TName, TData>,
33
37
  TFormOnMount extends undefined | FormValidateOrFn<TParentData>,
34
38
  TFormOnChange extends undefined | FormValidateOrFn<TParentData>,
35
39
  TFormOnChangeAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
@@ -37,6 +41,8 @@ export interface CreateFieldOptions<
37
41
  TFormOnBlurAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
38
42
  TFormOnSubmit extends undefined | FormValidateOrFn<TParentData>,
39
43
  TFormOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
44
+ TFormOnDynamic extends undefined | FormValidateOrFn<TParentData>,
45
+ TFormOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
40
46
  TFormOnServer extends undefined | FormAsyncValidateOrFn<TParentData>,
41
47
  TSubmitMeta,
42
48
  > extends FieldApiOptions<
@@ -50,6 +56,8 @@ export interface CreateFieldOptions<
50
56
  TOnBlurAsync,
51
57
  TOnSubmit,
52
58
  TOnSubmitAsync,
59
+ TOnDynamic,
60
+ TOnDynamicAsync,
53
61
  TFormOnMount,
54
62
  TFormOnChange,
55
63
  TFormOnChangeAsync,
@@ -57,6 +65,8 @@ export interface CreateFieldOptions<
57
65
  TFormOnBlurAsync,
58
66
  TFormOnSubmit,
59
67
  TFormOnSubmitAsync,
68
+ TFormOnDynamic,
69
+ TFormOnDynamicAsync,
60
70
  TFormOnServer,
61
71
  TSubmitMeta
62
72
  >,
@@ -79,6 +89,10 @@ export interface CreateFieldOptionsBound<
79
89
  TOnSubmitAsync extends
80
90
  | undefined
81
91
  | FieldAsyncValidateOrFn<TParentData, TName, TData>,
92
+ TOnDynamic extends undefined | FieldValidateOrFn<TParentData, TName, TData>,
93
+ TOnDynamicAsync extends
94
+ | undefined
95
+ | FieldAsyncValidateOrFn<TParentData, TName, TData>,
82
96
  > extends FieldOptions<
83
97
  TParentData,
84
98
  TName,
@@ -89,6 +103,8 @@ export interface CreateFieldOptionsBound<
89
103
  TOnBlur,
90
104
  TOnBlurAsync,
91
105
  TOnSubmit,
92
- TOnSubmitAsync
106
+ TOnSubmitAsync,
107
+ TOnDynamic,
108
+ TOnDynamicAsync
93
109
  >,
94
110
  FieldOptionsMode {}