@wise/dynamic-flow-client 4.8.7 → 4.9.0-exp-modal-renderer-c6d2baa

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.
Files changed (53) hide show
  1. package/build/main.js +101 -58
  2. package/build/main.mjs +101 -58
  3. package/build/types/revamp/domain/components/AlertComponent.d.ts +1 -0
  4. package/build/types/revamp/domain/components/AllOfComponent.d.ts +2 -1
  5. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -0
  6. package/build/types/revamp/domain/components/BoxComponent.d.ts +1 -0
  7. package/build/types/revamp/domain/components/ButtonComponent.d.ts +1 -0
  8. package/build/types/revamp/domain/components/ColumnsComponent.d.ts +1 -0
  9. package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -0
  10. package/build/types/revamp/domain/components/ContainerComponent.d.ts +1 -0
  11. package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -0
  12. package/build/types/revamp/domain/components/DecisionComponent.d.ts +1 -0
  13. package/build/types/revamp/domain/components/DividerComponent.d.ts +1 -0
  14. package/build/types/revamp/domain/components/FormComponent.d.ts +1 -0
  15. package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -0
  16. package/build/types/revamp/domain/components/ImageComponent.d.ts +1 -0
  17. package/build/types/revamp/domain/components/InstructionsComponent.d.ts +1 -0
  18. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -0
  19. package/build/types/revamp/domain/components/ListComponent.d.ts +1 -0
  20. package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +1 -0
  21. package/build/types/revamp/domain/components/MarkdownComponent.d.ts +1 -0
  22. package/build/types/revamp/domain/components/ModalComponent.d.ts +7 -9
  23. package/build/types/revamp/domain/components/ModalLayoutComponent.d.ts +14 -0
  24. package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -0
  25. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -0
  26. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -0
  27. package/build/types/revamp/domain/components/ObjectComponent.d.ts +2 -1
  28. package/build/types/revamp/domain/components/ParagraphComponent.d.ts +1 -0
  29. package/build/types/revamp/domain/components/PersistAsyncComponent.d.ts +1 -0
  30. package/build/types/revamp/domain/components/RepeatableComponent.d.ts +1 -0
  31. package/build/types/revamp/domain/components/ReviewComponent.d.ts +1 -0
  32. package/build/types/revamp/domain/components/RootDomainComponent.d.ts +4 -3
  33. package/build/types/revamp/domain/components/SectionComponent.d.ts +1 -0
  34. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -0
  35. package/build/types/revamp/domain/components/StatusListComponent.d.ts +1 -0
  36. package/build/types/revamp/domain/components/TabsComponent.d.ts +1 -0
  37. package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -0
  38. package/build/types/revamp/domain/components/TupleComponent.d.ts +2 -1
  39. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -0
  40. package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +1 -0
  41. package/build/types/revamp/domain/components/step/ExternalConfirmationComponent.d.ts +1 -0
  42. package/build/types/revamp/domain/components/step/StepDomainComponent.d.ts +6 -5
  43. package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +1 -1
  44. package/build/types/revamp/domain/mappers/layout/modalToContent.d.ts +2 -2
  45. package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +464 -1
  46. package/build/types/revamp/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +476 -1
  47. package/build/types/revamp/domain/types.d.ts +9 -4
  48. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +3 -3
  49. package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +1 -1
  50. package/build/types/revamp/renderers/mappers/modalLayoutComponentToProps.d.ts +4 -0
  51. package/package.json +2 -2
  52. package/build/types/revamp/domain/components/ModalContentComponent.d.ts +0 -10
  53. package/build/types/revamp/renderers/mappers/modalContentComponentToProps.d.ts +0 -4
@@ -2,4 +2,467 @@ import type { OneOfSchema } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps, SchemaMapperProps } from '../types';
3
3
  export declare const oneOfSchemaToComponent: (schemaMapperProps: SchemaMapperProps & {
4
4
  schema: OneOfSchema;
5
- }, mapperProps: MapperProps) => import("../../../types").SchemaComponent;
5
+ }, mapperProps: MapperProps) => import("../../../components/SelectInputComponent").SelectInputComponent | (import("../../../types").BaseComponent & {
6
+ schemaId?: string;
7
+ isSchemaReferencedInStep?: boolean;
8
+ control?: string;
9
+ description?: string;
10
+ help?: string;
11
+ hidden: boolean;
12
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
13
+ image?: import("../../../types").Image;
14
+ title?: string;
15
+ getLocalValue: () => import("../../../types").LocalValue;
16
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
17
+ getSummary: () => import("../../../types").RepeatableSummary;
18
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
19
+ validate: () => boolean;
20
+ } & {
21
+ type: "persist-async";
22
+ kind: "input";
23
+ component: import("../../../types").SchemaComponent;
24
+ abortController: AbortController;
25
+ submission: Promise<import("@wise/dynamic-flow-types/build/next").JsonElement>;
26
+ lastSubmitted: import("../../../types").LocalValue;
27
+ lastResponse: import("@wise/dynamic-flow-types/build/next").JsonElement;
28
+ errors: string[];
29
+ persist: () => Promise<import("@wise/dynamic-flow-types/build/next").JsonElement>;
30
+ } & {
31
+ kind: "input";
32
+ }) | (import("../../../types").BaseComponent & {
33
+ schemaId?: string;
34
+ isSchemaReferencedInStep?: boolean;
35
+ control?: string;
36
+ description?: string;
37
+ help?: string;
38
+ hidden: boolean;
39
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
40
+ image?: import("../../../types").Image;
41
+ title?: string;
42
+ getLocalValue: () => import("../../../types").LocalValue;
43
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
44
+ getSummary: () => import("../../../types").RepeatableSummary;
45
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
46
+ validate: () => boolean;
47
+ } & {
48
+ type: "all-of";
49
+ kind: "input";
50
+ components: import("../../../types").SchemaComponent[];
51
+ alert?: import("../../../types").InlineAlert;
52
+ getChildren: () => import("../../../types").SchemaComponent[];
53
+ } & {
54
+ kind: "input";
55
+ }) | (import("../../../types").BaseComponent & {
56
+ schemaId?: string;
57
+ isSchemaReferencedInStep?: boolean;
58
+ control?: string;
59
+ description?: string;
60
+ help?: string;
61
+ hidden: boolean;
62
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
63
+ image?: import("../../../types").Image;
64
+ title?: string;
65
+ getLocalValue: () => boolean;
66
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
67
+ getSummary: () => import("../../../types").RepeatableSummary;
68
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
69
+ validate: () => boolean;
70
+ } & {
71
+ id: string;
72
+ autoComplete: string;
73
+ disabled: boolean;
74
+ errors: string[] | undefined;
75
+ placeholder?: string;
76
+ required: boolean;
77
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
78
+ value: boolean;
79
+ alert?: import("../../../types").InlineAlert;
80
+ onBlur: () => void;
81
+ onFocus: () => void;
82
+ } & {
83
+ type: "boolean";
84
+ kind: "input";
85
+ validationAsyncState: import("../../../types").ValidationAsyncState;
86
+ onChange: (value: boolean) => void;
87
+ } & {
88
+ kind: "input";
89
+ }) | (import("../../../types").BaseComponent & {
90
+ schemaId?: string;
91
+ isSchemaReferencedInStep?: boolean;
92
+ control?: string;
93
+ description?: string;
94
+ help?: string;
95
+ hidden: boolean;
96
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
97
+ image?: import("../../../types").Image;
98
+ title?: string;
99
+ getLocalValue: () => import("../../../types").LocalValue;
100
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
101
+ getSummary: () => import("../../../types").RepeatableSummary;
102
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
103
+ validate: () => boolean;
104
+ } & {
105
+ type: "const";
106
+ kind: "input";
107
+ } & {
108
+ kind: "input";
109
+ }) | (import("../../../types").BaseComponent & {
110
+ schemaId?: string;
111
+ isSchemaReferencedInStep?: boolean;
112
+ control?: string;
113
+ description?: string;
114
+ help?: string;
115
+ hidden: boolean;
116
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
117
+ image?: import("../../../types").Image;
118
+ title?: string;
119
+ getLocalValue: () => string | null;
120
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
121
+ getSummary: () => import("../../../types").RepeatableSummary;
122
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
123
+ validate: () => boolean;
124
+ } & {
125
+ id: string;
126
+ autoComplete: string;
127
+ disabled: boolean;
128
+ errors: string[] | undefined;
129
+ placeholder?: string;
130
+ required: boolean;
131
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
132
+ value: string | null;
133
+ alert?: import("../../../types").InlineAlert;
134
+ onBlur: () => void;
135
+ onFocus: () => void;
136
+ } & {
137
+ type: "date";
138
+ kind: "input";
139
+ minimumDate?: string;
140
+ maximumDate?: string;
141
+ suggestions?: import("../../../types").Suggestions;
142
+ validationAsyncState: import("../../../types").ValidationAsyncState;
143
+ onChange: (value: string | null) => void;
144
+ } & {
145
+ kind: "input";
146
+ }) | (import("../../../types").BaseComponent & {
147
+ schemaId?: string;
148
+ isSchemaReferencedInStep?: boolean;
149
+ control?: string;
150
+ description?: string;
151
+ help?: string;
152
+ hidden: boolean;
153
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
154
+ image?: import("../../../types").Image;
155
+ title?: string;
156
+ getLocalValue: () => number | null;
157
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
158
+ getSummary: () => import("../../../types").RepeatableSummary;
159
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
160
+ validate: () => boolean;
161
+ } & {
162
+ id: string;
163
+ autoComplete: string;
164
+ disabled: boolean;
165
+ errors: string[] | undefined;
166
+ placeholder?: string;
167
+ required: boolean;
168
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
169
+ value: number | null;
170
+ alert?: import("../../../types").InlineAlert;
171
+ onBlur: () => void;
172
+ onFocus: () => void;
173
+ } & {
174
+ type: "integer";
175
+ kind: "input";
176
+ maximum?: number;
177
+ minimum?: number;
178
+ validationAsyncState: import("../../../types").ValidationAsyncState;
179
+ onChange: (value: number | null) => void;
180
+ } & {
181
+ kind: "input";
182
+ }) | (import("../../../types").BaseComponent & {
183
+ schemaId?: string;
184
+ isSchemaReferencedInStep?: boolean;
185
+ control?: string;
186
+ description?: string;
187
+ help?: string;
188
+ hidden: boolean;
189
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
190
+ image?: import("../../../types").Image;
191
+ title?: string;
192
+ getLocalValue: () => import("../../../types").LocalValueArray | null;
193
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
194
+ getSummary: () => import("../../../types").RepeatableSummary;
195
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
196
+ validate: () => boolean;
197
+ } & {
198
+ id: string;
199
+ autoComplete: string;
200
+ disabled: boolean;
201
+ errors: string[] | undefined;
202
+ placeholder?: string;
203
+ required: boolean;
204
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
205
+ value: import("../../../types").LocalValueArray | null;
206
+ alert?: import("../../../types").InlineAlert;
207
+ onBlur: () => void;
208
+ onFocus: () => void;
209
+ } & {
210
+ type: "multi-select";
211
+ kind: "input";
212
+ children: import("../../../types").SchemaComponent[];
213
+ maxItems?: number;
214
+ minItems?: number;
215
+ options: import("../../../components/SelectInputComponent").SelectInputOption[];
216
+ validationAsyncState: import("../../../types").ValidationAsyncState;
217
+ selectedIndices: number[];
218
+ getChildren: () => import("../../../types").SchemaComponent[];
219
+ getSelectedChildren: () => import("../../../types").SchemaComponent[] | null;
220
+ onSelect: (indices: number[]) => void;
221
+ } & {
222
+ kind: "input";
223
+ }) | (import("../../../types").BaseComponent & {
224
+ schemaId?: string;
225
+ isSchemaReferencedInStep?: boolean;
226
+ control?: string;
227
+ description?: string;
228
+ help?: string;
229
+ hidden: boolean;
230
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
231
+ image?: import("../../../types").Image;
232
+ title?: string;
233
+ getLocalValue: () => File[];
234
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
235
+ getSummary: () => import("../../../types").RepeatableSummary;
236
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
237
+ validate: () => boolean;
238
+ } & {
239
+ id: string;
240
+ autoComplete: string;
241
+ disabled: boolean;
242
+ errors: string[] | undefined;
243
+ placeholder?: string;
244
+ required: boolean;
245
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
246
+ value: File[];
247
+ alert?: import("../../../types").InlineAlert;
248
+ onBlur: () => void;
249
+ onFocus: () => void;
250
+ } & {
251
+ type: "multi-upload";
252
+ kind: "input";
253
+ accepts?: string[];
254
+ cameraConfig?: import("@wise/dynamic-flow-types/build/next").JsonElement;
255
+ files: {
256
+ file: File;
257
+ errors: string[];
258
+ id: string;
259
+ }[];
260
+ format: "blob" | "base64";
261
+ maxItems?: number;
262
+ maxSize?: number;
263
+ minItems?: number;
264
+ persistedState: import("../../../types").PersistedState[];
265
+ source?: import("../../../types").UploadSource;
266
+ validationAsyncState?: undefined;
267
+ uploadLabel?: string;
268
+ onRemoveFile: (index: number) => Promise<void>;
269
+ onInsertFile: (index: number, file: File) => Promise<string>;
270
+ } & {
271
+ kind: "input";
272
+ }) | (import("../../../types").BaseComponent & {
273
+ schemaId?: string;
274
+ isSchemaReferencedInStep?: boolean;
275
+ control?: string;
276
+ description?: string;
277
+ help?: string;
278
+ hidden: boolean;
279
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
280
+ image?: import("../../../types").Image;
281
+ title?: string;
282
+ getLocalValue: () => number | null;
283
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
284
+ getSummary: () => import("../../../types").RepeatableSummary;
285
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
286
+ validate: () => boolean;
287
+ } & {
288
+ id: string;
289
+ autoComplete: string;
290
+ disabled: boolean;
291
+ errors: string[] | undefined;
292
+ placeholder?: string;
293
+ required: boolean;
294
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
295
+ value: number | null;
296
+ alert?: import("../../../types").InlineAlert;
297
+ onBlur: () => void;
298
+ onFocus: () => void;
299
+ } & {
300
+ type: "number";
301
+ kind: "input";
302
+ maximum?: number;
303
+ minimum?: number;
304
+ validationAsyncState: import("../../../types").ValidationAsyncState;
305
+ onChange: (value: number | null) => void;
306
+ } & {
307
+ kind: "input";
308
+ }) | (import("../../../types").BaseComponent & {
309
+ schemaId?: string;
310
+ isSchemaReferencedInStep?: boolean;
311
+ control?: string;
312
+ description?: string;
313
+ help?: string;
314
+ hidden: boolean;
315
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
316
+ image?: import("../../../types").Image;
317
+ title?: string;
318
+ getLocalValue: () => import("../../../types").LocalValueObject;
319
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
320
+ getSummary: () => import("../../../types").RepeatableSummary;
321
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
322
+ validate: () => boolean;
323
+ } & {
324
+ type: "object";
325
+ kind: "input";
326
+ componentMap: Record<string, import("../../../types").SchemaComponent>;
327
+ alert?: import("../../../types").InlineAlert;
328
+ getChildren: () => import("../../../types").SchemaComponent[];
329
+ } & {
330
+ kind: "input";
331
+ }) | (import("../../../types").BaseComponent & {
332
+ schemaId?: string;
333
+ isSchemaReferencedInStep?: boolean;
334
+ control?: string;
335
+ description?: string;
336
+ help?: string;
337
+ hidden: boolean;
338
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
339
+ image?: import("../../../types").Image;
340
+ title?: string;
341
+ getLocalValue: () => import("../../../types").LocalValueArray;
342
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
343
+ getSummary: () => import("../../../types").RepeatableSummary;
344
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
345
+ validate: () => boolean;
346
+ } & {
347
+ type: "repeatable";
348
+ kind: "input";
349
+ id?: string;
350
+ components: import("../../../types").SchemaComponent[];
351
+ addItemTitle: string;
352
+ alert?: import("../../../types").InlineAlert;
353
+ editableComponent: import("../../../types").SchemaComponent | null;
354
+ editableIndex: number | null;
355
+ editItemTitle: string;
356
+ errors: string[] | undefined;
357
+ maxItems?: number;
358
+ minItems?: number;
359
+ summaryDefaults: import("../../../types").RepeatableSummary;
360
+ getChildren: () => import("../../../types").SchemaComponent[];
361
+ onAdd: () => void;
362
+ onEdit: (itemIndex: number) => void;
363
+ onRemove: () => void;
364
+ onSave: () => boolean;
365
+ } & {
366
+ kind: "input";
367
+ }) | (import("../../../types").BaseComponent & {
368
+ schemaId?: string;
369
+ isSchemaReferencedInStep?: boolean;
370
+ control?: string;
371
+ description?: string;
372
+ help?: string;
373
+ hidden: boolean;
374
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
375
+ image?: import("../../../types").Image;
376
+ title?: string;
377
+ getLocalValue: () => string | null;
378
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
379
+ getSummary: () => import("../../../types").RepeatableSummary;
380
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
381
+ validate: () => boolean;
382
+ } & {
383
+ id: string;
384
+ autoComplete: string;
385
+ disabled: boolean;
386
+ errors: string[] | undefined;
387
+ placeholder?: string;
388
+ required: boolean;
389
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
390
+ value: string | null;
391
+ alert?: import("../../../types").InlineAlert;
392
+ onBlur: () => void;
393
+ onFocus: () => void;
394
+ } & {
395
+ type: "text";
396
+ kind: "input";
397
+ autocapitalization?: import("../../../types").Autocapitalization;
398
+ displayFormat?: string;
399
+ maxLength?: number;
400
+ minLength?: number;
401
+ suggestions?: import("../../../types").Suggestions;
402
+ validationAsyncState: import("../../../types").ValidationAsyncState;
403
+ onChange: (value: string | null) => void;
404
+ } & {
405
+ kind: "input";
406
+ }) | (import("../../../types").BaseComponent & {
407
+ schemaId?: string;
408
+ isSchemaReferencedInStep?: boolean;
409
+ control?: string;
410
+ description?: string;
411
+ help?: string;
412
+ hidden: boolean;
413
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
414
+ image?: import("../../../types").Image;
415
+ title?: string;
416
+ getLocalValue: () => import("../../../types").LocalValueArray;
417
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
418
+ getSummary: () => import("../../../types").RepeatableSummary;
419
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
420
+ validate: () => boolean;
421
+ } & {
422
+ type: "tuple";
423
+ kind: "input";
424
+ components: import("../../../types").SchemaComponent[];
425
+ alert?: import("../../../types").InlineAlert;
426
+ getChildren: () => import("../../../types").SchemaComponent[];
427
+ } & {
428
+ kind: "input";
429
+ }) | (import("../../../types").BaseComponent & {
430
+ schemaId?: string;
431
+ isSchemaReferencedInStep?: boolean;
432
+ control?: string;
433
+ description?: string;
434
+ help?: string;
435
+ hidden: boolean;
436
+ icon?: import("@wise/dynamic-flow-types/build/next").Icon;
437
+ image?: import("../../../types").Image;
438
+ title?: string;
439
+ getLocalValue: () => File | null;
440
+ getSubmittableValueSync: () => import("@wise/dynamic-flow-types/build/next").Model;
441
+ getSummary: () => import("../../../types").RepeatableSummary;
442
+ getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/build/next").Model>;
443
+ validate: () => boolean;
444
+ } & {
445
+ id: string;
446
+ autoComplete: string;
447
+ disabled: boolean;
448
+ errors: string[] | undefined;
449
+ placeholder?: string;
450
+ required: boolean;
451
+ validationAsyncState?: import("../../../types").ValidationAsyncState;
452
+ value: File | null;
453
+ alert?: import("../../../types").InlineAlert;
454
+ onBlur: () => void;
455
+ onFocus: () => void;
456
+ } & {
457
+ type: "upload";
458
+ kind: "input";
459
+ format: "blob" | "base64";
460
+ cameraConfig?: import("@wise/dynamic-flow-types/build/next").JsonElement;
461
+ maxSize?: number;
462
+ accepts?: string[];
463
+ source?: import("../../../types").UploadSource;
464
+ validationAsyncState?: undefined;
465
+ onUpload: (value: File | null) => Promise<void>;
466
+ } & {
467
+ kind: "input";
468
+ });