@wise/dynamic-flow-client 5.9.0 → 5.9.1
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/build/domain/components/step/StepDomainComponent.js +6 -1
- package/build/domain/mappers/mapStepSchemas.js +2 -4
- package/build/domain/mappers/mapStepToComponent.js +4 -3
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +0 -10
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.test.js +0 -40
- package/build/main.js +34 -43
- package/build/main.mjs +34 -43
- package/build/renderers/mappers/selectInputComponentToProps.js +9 -1
- package/build/stories/spec/schemas/features/PersistAsync.story.js +35 -0
- package/build/stories/spec/schemas/oneOf/OneOfWithSingleOption.story.js +114 -0
- package/build/tests/PersistAsync.test.js +33 -0
- package/build/tests/SchemaReferences.test.js +88 -0
- package/build/tests/Submission.test.js +80 -0
- package/build/tests/renderers/SelectInputRendererProps.test.js +1 -0
- package/build/types/domain/components/step/StepDomainComponent.d.ts +2 -1
- package/build/types/domain/components/step/StepDomainComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +1 -531
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +0 -16
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/types.d.ts +0 -1
- package/build/types/domain/types.d.ts.map +1 -1
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts +2 -2
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts.map +1 -1
- package/package.json +13 -13
package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts
CHANGED
|
@@ -2,535 +2,5 @@ import type { OneOfSchema } from '@wise/dynamic-flow-types/spec';
|
|
|
2
2
|
import type { MapperProps, SchemaMapperProps } from '../types';
|
|
3
3
|
export declare const oneOfSchemaToComponent: (schemaMapperProps: SchemaMapperProps & {
|
|
4
4
|
schema: OneOfSchema;
|
|
5
|
-
}, mapperProps: MapperProps) => import("../../../components/SelectInputComponent").SelectInputComponent
|
|
6
|
-
schemaId?: string;
|
|
7
|
-
isSchemaReferencedInStep?: boolean;
|
|
8
|
-
control?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
help?: string;
|
|
11
|
-
hidden: boolean;
|
|
12
|
-
media?: import("../../../types").Media;
|
|
13
|
-
title?: string;
|
|
14
|
-
tags?: string[];
|
|
15
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
16
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
17
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
18
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").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/spec").JsonElement>;
|
|
26
|
-
lastSubmitted: import("../../../types").LocalValue;
|
|
27
|
-
lastResponse: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
28
|
-
errors: string[];
|
|
29
|
-
persist: () => Promise<import("@wise/dynamic-flow-types/spec").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
|
-
media?: import("../../../types").Media;
|
|
40
|
-
title?: string;
|
|
41
|
-
tags?: string[];
|
|
42
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
43
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
44
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
45
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").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
|
-
media?: import("../../../types").Media;
|
|
63
|
-
title?: string;
|
|
64
|
-
tags?: string[];
|
|
65
|
-
getLocalValue: () => boolean;
|
|
66
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
67
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
68
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").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
|
-
additionalText?: string;
|
|
86
|
-
inlineAlert?: import("../../../types").InlineAlert;
|
|
87
|
-
supportingValues?: import("../../../types").SupportingValues;
|
|
88
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
89
|
-
onChange: (value: boolean) => void;
|
|
90
|
-
} & {
|
|
91
|
-
kind: "input";
|
|
92
|
-
}) | (import("../../../types").BaseComponent & {
|
|
93
|
-
schemaId?: string;
|
|
94
|
-
isSchemaReferencedInStep?: boolean;
|
|
95
|
-
control?: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
help?: string;
|
|
98
|
-
hidden: boolean;
|
|
99
|
-
media?: import("../../../types").Media;
|
|
100
|
-
title?: string;
|
|
101
|
-
tags?: string[];
|
|
102
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
103
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
104
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
105
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
106
|
-
validate: () => boolean;
|
|
107
|
-
} & {
|
|
108
|
-
type: "const";
|
|
109
|
-
kind: "input";
|
|
110
|
-
layout: import("../../../types").LayoutComponent[];
|
|
111
|
-
} & {
|
|
112
|
-
kind: "input";
|
|
113
|
-
}) | (import("../../../types").BaseComponent & {
|
|
114
|
-
schemaId?: string;
|
|
115
|
-
isSchemaReferencedInStep?: boolean;
|
|
116
|
-
control?: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
help?: string;
|
|
119
|
-
hidden: boolean;
|
|
120
|
-
media?: import("../../../types").Media;
|
|
121
|
-
title?: string;
|
|
122
|
-
tags?: string[];
|
|
123
|
-
getLocalValue: () => string | null;
|
|
124
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
125
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
126
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
127
|
-
validate: () => boolean;
|
|
128
|
-
} & {
|
|
129
|
-
id: string;
|
|
130
|
-
autoComplete: string;
|
|
131
|
-
disabled: boolean;
|
|
132
|
-
errors: string[] | undefined;
|
|
133
|
-
placeholder?: string;
|
|
134
|
-
required: boolean;
|
|
135
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
136
|
-
value: string | null;
|
|
137
|
-
alert?: import("../../../types").InlineAlert;
|
|
138
|
-
onBlur: () => void;
|
|
139
|
-
onFocus: () => void;
|
|
140
|
-
} & {
|
|
141
|
-
type: "date";
|
|
142
|
-
kind: "input";
|
|
143
|
-
minimumDate?: string;
|
|
144
|
-
maximumDate?: string;
|
|
145
|
-
suggestions?: import("../../../types").Suggestions;
|
|
146
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
147
|
-
onChange: (value: string | null) => void;
|
|
148
|
-
} & {
|
|
149
|
-
kind: "input";
|
|
150
|
-
}) | (import("../../../types").BaseComponent & {
|
|
151
|
-
schemaId?: string;
|
|
152
|
-
isSchemaReferencedInStep?: boolean;
|
|
153
|
-
control?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
help?: string;
|
|
156
|
-
hidden: boolean;
|
|
157
|
-
media?: import("../../../types").Media;
|
|
158
|
-
title?: string;
|
|
159
|
-
tags?: string[];
|
|
160
|
-
getLocalValue: () => number | null;
|
|
161
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
162
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
163
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
164
|
-
validate: () => boolean;
|
|
165
|
-
} & {
|
|
166
|
-
id: string;
|
|
167
|
-
autoComplete: string;
|
|
168
|
-
disabled: boolean;
|
|
169
|
-
errors: string[] | undefined;
|
|
170
|
-
placeholder?: string;
|
|
171
|
-
required: boolean;
|
|
172
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
173
|
-
value: number | null;
|
|
174
|
-
alert?: import("../../../types").InlineAlert;
|
|
175
|
-
onBlur: () => void;
|
|
176
|
-
onFocus: () => void;
|
|
177
|
-
} & {
|
|
178
|
-
type: "integer";
|
|
179
|
-
kind: "input";
|
|
180
|
-
maximum?: number;
|
|
181
|
-
minimum?: number;
|
|
182
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
183
|
-
onChange: (value: number | null) => void;
|
|
184
|
-
} & {
|
|
185
|
-
kind: "input";
|
|
186
|
-
}) | (import("../../../types").BaseComponent & {
|
|
187
|
-
schemaId?: string;
|
|
188
|
-
isSchemaReferencedInStep?: boolean;
|
|
189
|
-
control?: string;
|
|
190
|
-
description?: string;
|
|
191
|
-
help?: string;
|
|
192
|
-
hidden: boolean;
|
|
193
|
-
media?: import("../../../types").Media;
|
|
194
|
-
title?: string;
|
|
195
|
-
tags?: string[];
|
|
196
|
-
getLocalValue: () => import("../../../types").LocalValueArray | null;
|
|
197
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
198
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
199
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
200
|
-
validate: () => boolean;
|
|
201
|
-
} & {
|
|
202
|
-
id: string;
|
|
203
|
-
autoComplete: string;
|
|
204
|
-
disabled: boolean;
|
|
205
|
-
errors: string[] | undefined;
|
|
206
|
-
placeholder?: string;
|
|
207
|
-
required: boolean;
|
|
208
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
209
|
-
value: import("../../../types").LocalValueArray | null;
|
|
210
|
-
alert?: import("../../../types").InlineAlert;
|
|
211
|
-
onBlur: () => void;
|
|
212
|
-
onFocus: () => void;
|
|
213
|
-
} & {
|
|
214
|
-
type: "multi-select";
|
|
215
|
-
kind: "input";
|
|
216
|
-
children: import("../../../types").SchemaComponent[];
|
|
217
|
-
maxItems?: number;
|
|
218
|
-
minItems?: number;
|
|
219
|
-
options: import("../../../components/SelectInputComponent").SelectInputOption[];
|
|
220
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
221
|
-
selectedIndices: number[];
|
|
222
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
223
|
-
getSelectedChildren: () => import("../../../types").SchemaComponent[] | null;
|
|
224
|
-
onSelect: (indices: number[]) => void;
|
|
225
|
-
} & {
|
|
226
|
-
kind: "input";
|
|
227
|
-
}) | (import("../../../types").BaseComponent & {
|
|
228
|
-
schemaId?: string;
|
|
229
|
-
isSchemaReferencedInStep?: boolean;
|
|
230
|
-
control?: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
help?: string;
|
|
233
|
-
hidden: boolean;
|
|
234
|
-
media?: import("../../../types").Media;
|
|
235
|
-
title?: string;
|
|
236
|
-
tags?: string[];
|
|
237
|
-
getLocalValue: () => File[];
|
|
238
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
239
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
240
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
241
|
-
validate: () => boolean;
|
|
242
|
-
} & {
|
|
243
|
-
id: string;
|
|
244
|
-
autoComplete: string;
|
|
245
|
-
disabled: boolean;
|
|
246
|
-
errors: string[] | undefined;
|
|
247
|
-
placeholder?: string;
|
|
248
|
-
required: boolean;
|
|
249
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
250
|
-
value: File[];
|
|
251
|
-
alert?: import("../../../types").InlineAlert;
|
|
252
|
-
onBlur: () => void;
|
|
253
|
-
onFocus: () => void;
|
|
254
|
-
} & {
|
|
255
|
-
type: "multi-upload";
|
|
256
|
-
kind: "input";
|
|
257
|
-
accepts?: string[];
|
|
258
|
-
cameraConfig?: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
259
|
-
files: {
|
|
260
|
-
file: File;
|
|
261
|
-
errors: string[];
|
|
262
|
-
id: string;
|
|
263
|
-
base64Value: string | null;
|
|
264
|
-
}[];
|
|
265
|
-
format: "blob" | "base64";
|
|
266
|
-
maxItems?: number;
|
|
267
|
-
maxSize?: number;
|
|
268
|
-
minItems?: number;
|
|
269
|
-
persistedState: import("../../../types").PersistedState[];
|
|
270
|
-
source?: import("../../../types").UploadSource;
|
|
271
|
-
validationAsyncState?: undefined;
|
|
272
|
-
uploadLabel?: string;
|
|
273
|
-
onRemoveFile: (index: number) => Promise<void>;
|
|
274
|
-
onInsertFile: (index: number, file: File) => Promise<string>;
|
|
275
|
-
} & {
|
|
276
|
-
kind: "input";
|
|
277
|
-
}) | (import("../../../types").BaseComponent & {
|
|
278
|
-
schemaId?: string;
|
|
279
|
-
isSchemaReferencedInStep?: boolean;
|
|
280
|
-
control?: string;
|
|
281
|
-
description?: string;
|
|
282
|
-
help?: string;
|
|
283
|
-
hidden: boolean;
|
|
284
|
-
media?: import("../../../types").Media;
|
|
285
|
-
title?: string;
|
|
286
|
-
tags?: string[];
|
|
287
|
-
getLocalValue: () => number | null;
|
|
288
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
289
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
290
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
291
|
-
validate: () => boolean;
|
|
292
|
-
} & {
|
|
293
|
-
id: string;
|
|
294
|
-
autoComplete: string;
|
|
295
|
-
disabled: boolean;
|
|
296
|
-
errors: string[] | undefined;
|
|
297
|
-
placeholder?: string;
|
|
298
|
-
required: boolean;
|
|
299
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
300
|
-
value: number | null;
|
|
301
|
-
alert?: import("../../../types").InlineAlert;
|
|
302
|
-
onBlur: () => void;
|
|
303
|
-
onFocus: () => void;
|
|
304
|
-
} & {
|
|
305
|
-
type: "number";
|
|
306
|
-
kind: "input";
|
|
307
|
-
maximum?: number;
|
|
308
|
-
minimum?: number;
|
|
309
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
310
|
-
onChange: (value: number | null) => void;
|
|
311
|
-
} & {
|
|
312
|
-
kind: "input";
|
|
313
|
-
}) | (import("../../../types").BaseComponent & {
|
|
314
|
-
schemaId?: string;
|
|
315
|
-
isSchemaReferencedInStep?: boolean;
|
|
316
|
-
control?: string;
|
|
317
|
-
description?: string;
|
|
318
|
-
help?: string;
|
|
319
|
-
hidden: boolean;
|
|
320
|
-
media?: import("../../../types").Media;
|
|
321
|
-
title?: string;
|
|
322
|
-
tags?: string[];
|
|
323
|
-
getLocalValue: () => import("../../../types").LocalValueObject;
|
|
324
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
325
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
326
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
327
|
-
validate: () => boolean;
|
|
328
|
-
} & {
|
|
329
|
-
type: "object";
|
|
330
|
-
kind: "input";
|
|
331
|
-
componentMap: Record<string, import("../../../types").SchemaComponent>;
|
|
332
|
-
alert?: import("../../../types").InlineAlert;
|
|
333
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
334
|
-
} & {
|
|
335
|
-
kind: "input";
|
|
336
|
-
}) | (import("../../../types").BaseComponent & {
|
|
337
|
-
schemaId?: string;
|
|
338
|
-
isSchemaReferencedInStep?: boolean;
|
|
339
|
-
control?: string;
|
|
340
|
-
description?: string;
|
|
341
|
-
help?: string;
|
|
342
|
-
hidden: boolean;
|
|
343
|
-
media?: import("../../../types").Media;
|
|
344
|
-
title?: string;
|
|
345
|
-
tags?: string[];
|
|
346
|
-
getLocalValue: () => import("../../../types").LocalValueArray;
|
|
347
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
348
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
349
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
350
|
-
validate: () => boolean;
|
|
351
|
-
} & {
|
|
352
|
-
type: "repeatable";
|
|
353
|
-
kind: "input";
|
|
354
|
-
id?: string;
|
|
355
|
-
components: import("../../../types").SchemaComponent[];
|
|
356
|
-
addItemTitle: string;
|
|
357
|
-
alert?: import("../../../types").InlineAlert;
|
|
358
|
-
editableComponent: import("../../../types").SchemaComponent | null;
|
|
359
|
-
editableIndex: number | null;
|
|
360
|
-
editItemTitle: string;
|
|
361
|
-
errors: string[] | undefined;
|
|
362
|
-
maxItems?: number;
|
|
363
|
-
minItems?: number;
|
|
364
|
-
summaryDefaults: import("../../../types").RepeatableSummary;
|
|
365
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
366
|
-
onAdd: () => void;
|
|
367
|
-
onEdit: (itemIndex: number) => void;
|
|
368
|
-
onRemove: () => void;
|
|
369
|
-
onSave: () => boolean;
|
|
370
|
-
} & {
|
|
371
|
-
kind: "input";
|
|
372
|
-
}) | (import("../../../types").BaseComponent & {
|
|
373
|
-
schemaId?: string;
|
|
374
|
-
isSchemaReferencedInStep?: boolean;
|
|
375
|
-
control?: string;
|
|
376
|
-
description?: string;
|
|
377
|
-
help?: string;
|
|
378
|
-
hidden: boolean;
|
|
379
|
-
media?: import("../../../types").Media;
|
|
380
|
-
title?: string;
|
|
381
|
-
tags?: string[];
|
|
382
|
-
getLocalValue: () => string | null;
|
|
383
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
384
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
385
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
386
|
-
validate: () => boolean;
|
|
387
|
-
} & {
|
|
388
|
-
id: string;
|
|
389
|
-
autoComplete: string;
|
|
390
|
-
disabled: boolean;
|
|
391
|
-
errors: string[] | undefined;
|
|
392
|
-
placeholder?: string;
|
|
393
|
-
required: boolean;
|
|
394
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
395
|
-
value: string | null;
|
|
396
|
-
alert?: import("../../../types").InlineAlert;
|
|
397
|
-
onBlur: () => void;
|
|
398
|
-
onFocus: () => void;
|
|
399
|
-
} & {
|
|
400
|
-
type: "text";
|
|
401
|
-
kind: "input";
|
|
402
|
-
autocapitalization?: import("../../../types").Autocapitalization;
|
|
403
|
-
displayFormat?: string;
|
|
404
|
-
maxLength?: number;
|
|
405
|
-
minLength?: number;
|
|
406
|
-
suggestions?: import("../../../types").Suggestions;
|
|
407
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
408
|
-
onChange: (value: string | null) => void;
|
|
409
|
-
} & {
|
|
410
|
-
kind: "input";
|
|
411
|
-
}) | (import("../../../types").BaseComponent & {
|
|
412
|
-
schemaId?: string;
|
|
413
|
-
isSchemaReferencedInStep?: boolean;
|
|
414
|
-
control?: string;
|
|
415
|
-
description?: string;
|
|
416
|
-
help?: string;
|
|
417
|
-
hidden: boolean;
|
|
418
|
-
media?: import("../../../types").Media;
|
|
419
|
-
title?: string;
|
|
420
|
-
tags?: string[];
|
|
421
|
-
getLocalValue: () => import("../../../types").LocalValueArray;
|
|
422
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
423
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
424
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
425
|
-
validate: () => boolean;
|
|
426
|
-
} & {
|
|
427
|
-
type: "tuple";
|
|
428
|
-
kind: "input";
|
|
429
|
-
components: import("../../../types").SchemaComponent[];
|
|
430
|
-
alert?: import("../../../types").InlineAlert;
|
|
431
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
432
|
-
} & {
|
|
433
|
-
kind: "input";
|
|
434
|
-
}) | (import("../../../types").BaseComponent & {
|
|
435
|
-
schemaId?: string;
|
|
436
|
-
isSchemaReferencedInStep?: boolean;
|
|
437
|
-
control?: string;
|
|
438
|
-
description?: string;
|
|
439
|
-
help?: string;
|
|
440
|
-
hidden: boolean;
|
|
441
|
-
media?: import("../../../types").Media;
|
|
442
|
-
title?: string;
|
|
443
|
-
tags?: string[];
|
|
444
|
-
getLocalValue: () => File | null;
|
|
445
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
446
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
447
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
448
|
-
validate: () => boolean;
|
|
449
|
-
} & {
|
|
450
|
-
id: string;
|
|
451
|
-
autoComplete: string;
|
|
452
|
-
disabled: boolean;
|
|
453
|
-
errors: string[] | undefined;
|
|
454
|
-
placeholder?: string;
|
|
455
|
-
required: boolean;
|
|
456
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
457
|
-
value: File | null;
|
|
458
|
-
alert?: import("../../../types").InlineAlert;
|
|
459
|
-
onBlur: () => void;
|
|
460
|
-
onFocus: () => void;
|
|
461
|
-
} & {
|
|
462
|
-
type: "upload";
|
|
463
|
-
kind: "input";
|
|
464
|
-
format: "blob" | "base64";
|
|
465
|
-
cameraConfig?: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
466
|
-
maxSize?: number;
|
|
467
|
-
accepts?: string[];
|
|
468
|
-
source?: import("../../../types").UploadSource;
|
|
469
|
-
validationAsyncState?: undefined;
|
|
470
|
-
base64Value: string | null;
|
|
471
|
-
onUpload: (value: File | null) => Promise<void>;
|
|
472
|
-
} & {
|
|
473
|
-
kind: "input";
|
|
474
|
-
}) | (import("../../../types").BaseComponent & {
|
|
475
|
-
schemaId?: string;
|
|
476
|
-
isSchemaReferencedInStep?: boolean;
|
|
477
|
-
control?: string;
|
|
478
|
-
description?: string;
|
|
479
|
-
help?: string;
|
|
480
|
-
hidden: boolean;
|
|
481
|
-
media?: import("../../../types").Media;
|
|
482
|
-
title?: string;
|
|
483
|
-
tags?: string[];
|
|
484
|
-
getLocalValue: () => import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
485
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
486
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
487
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
488
|
-
validate: () => boolean;
|
|
489
|
-
} & {
|
|
490
|
-
type: "formatted-value";
|
|
491
|
-
kind: "input";
|
|
492
|
-
format: string;
|
|
493
|
-
alert?: import("../../../types").InlineAlert;
|
|
494
|
-
errors: string[] | undefined;
|
|
495
|
-
value: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
496
|
-
onChange: (newValue: import("@wise/dynamic-flow-types/spec").JsonElement) => void;
|
|
497
|
-
} & {
|
|
498
|
-
kind: "input";
|
|
499
|
-
}) | (import("../../../types").BaseComponent & {
|
|
500
|
-
schemaId?: string;
|
|
501
|
-
isSchemaReferencedInStep?: boolean;
|
|
502
|
-
control?: string;
|
|
503
|
-
description?: string;
|
|
504
|
-
help?: string;
|
|
505
|
-
hidden: boolean;
|
|
506
|
-
media?: import("../../../types").Media;
|
|
507
|
-
title?: string;
|
|
508
|
-
tags?: string[];
|
|
509
|
-
getLocalValue: () => import("../../../types").LocalValueObject;
|
|
510
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
511
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
512
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
513
|
-
validate: () => boolean;
|
|
514
|
-
} & {
|
|
515
|
-
id: string;
|
|
516
|
-
autoComplete: string;
|
|
517
|
-
disabled: boolean;
|
|
518
|
-
errors: string[] | undefined;
|
|
519
|
-
placeholder?: string;
|
|
520
|
-
required: boolean;
|
|
521
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
522
|
-
value: import("../../../types").LocalValueObject;
|
|
523
|
-
alert?: import("../../../types").InlineAlert;
|
|
524
|
-
onBlur: () => void;
|
|
525
|
-
onFocus: () => void;
|
|
526
|
-
} & {
|
|
527
|
-
type: "money-input";
|
|
528
|
-
kind: "input";
|
|
529
|
-
components: {
|
|
530
|
-
amount: import("../../../components/TextInputComponent").TextInputComponent;
|
|
531
|
-
currency: import("../../../components/SelectInputComponent").SelectInputComponent;
|
|
532
|
-
};
|
|
533
|
-
} & {
|
|
534
|
-
kind: "input";
|
|
535
|
-
});
|
|
5
|
+
}, mapperProps: MapperProps) => import("../../../components/SelectInputComponent").SelectInputComponent;
|
|
536
6
|
//# sourceMappingURL=oneOfSchemaToComponent.d.ts.map
|
package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oneOfSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,+BAA+B,CAAC;AASzE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG/D,eAAO,MAAM,sBAAsB,GACjC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,EAC9D,aAAa,WAAW
|
|
1
|
+
{"version":3,"file":"oneOfSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,+BAA+B,CAAC;AASzE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG/D,eAAO,MAAM,sBAAsB,GACjC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,EAC9D,aAAa,WAAW,4EAyEzB,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
5
5
|
schema: SchemaWithPersistAsync;
|
|
6
6
|
}, mapperProps: MapperProps) => import("../../components/PersistAsyncComponent").PersistAsyncComponent | (import("../../types").BaseComponent & {
|
|
7
7
|
schemaId?: string;
|
|
8
|
-
isSchemaReferencedInStep?: boolean;
|
|
9
8
|
control?: string;
|
|
10
9
|
description?: string;
|
|
11
10
|
help?: string;
|
|
@@ -28,7 +27,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
28
27
|
kind: "input";
|
|
29
28
|
}) | (import("../../types").BaseComponent & {
|
|
30
29
|
schemaId?: string;
|
|
31
|
-
isSchemaReferencedInStep?: boolean;
|
|
32
30
|
control?: string;
|
|
33
31
|
description?: string;
|
|
34
32
|
help?: string;
|
|
@@ -65,7 +63,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
65
63
|
kind: "input";
|
|
66
64
|
}) | (import("../../types").BaseComponent & {
|
|
67
65
|
schemaId?: string;
|
|
68
|
-
isSchemaReferencedInStep?: boolean;
|
|
69
66
|
control?: string;
|
|
70
67
|
description?: string;
|
|
71
68
|
help?: string;
|
|
@@ -86,7 +83,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
86
83
|
kind: "input";
|
|
87
84
|
}) | (import("../../types").BaseComponent & {
|
|
88
85
|
schemaId?: string;
|
|
89
|
-
isSchemaReferencedInStep?: boolean;
|
|
90
86
|
control?: string;
|
|
91
87
|
description?: string;
|
|
92
88
|
help?: string;
|
|
@@ -123,7 +119,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
123
119
|
kind: "input";
|
|
124
120
|
}) | (import("../../types").BaseComponent & {
|
|
125
121
|
schemaId?: string;
|
|
126
|
-
isSchemaReferencedInStep?: boolean;
|
|
127
122
|
control?: string;
|
|
128
123
|
description?: string;
|
|
129
124
|
help?: string;
|
|
@@ -159,7 +154,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
159
154
|
kind: "input";
|
|
160
155
|
}) | (import("../../types").BaseComponent & {
|
|
161
156
|
schemaId?: string;
|
|
162
|
-
isSchemaReferencedInStep?: boolean;
|
|
163
157
|
control?: string;
|
|
164
158
|
description?: string;
|
|
165
159
|
help?: string;
|
|
@@ -200,7 +194,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
200
194
|
kind: "input";
|
|
201
195
|
}) | (import("../../types").BaseComponent & {
|
|
202
196
|
schemaId?: string;
|
|
203
|
-
isSchemaReferencedInStep?: boolean;
|
|
204
197
|
control?: string;
|
|
205
198
|
description?: string;
|
|
206
199
|
help?: string;
|
|
@@ -250,7 +243,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
250
243
|
kind: "input";
|
|
251
244
|
}) | (import("../../types").BaseComponent & {
|
|
252
245
|
schemaId?: string;
|
|
253
|
-
isSchemaReferencedInStep?: boolean;
|
|
254
246
|
control?: string;
|
|
255
247
|
description?: string;
|
|
256
248
|
help?: string;
|
|
@@ -286,7 +278,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
286
278
|
kind: "input";
|
|
287
279
|
}) | (import("../../types").BaseComponent & {
|
|
288
280
|
schemaId?: string;
|
|
289
|
-
isSchemaReferencedInStep?: boolean;
|
|
290
281
|
control?: string;
|
|
291
282
|
description?: string;
|
|
292
283
|
help?: string;
|
|
@@ -309,7 +300,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
309
300
|
kind: "input";
|
|
310
301
|
}) | (import("../../types").BaseComponent & {
|
|
311
302
|
schemaId?: string;
|
|
312
|
-
isSchemaReferencedInStep?: boolean;
|
|
313
303
|
control?: string;
|
|
314
304
|
description?: string;
|
|
315
305
|
help?: string;
|
|
@@ -345,7 +335,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
345
335
|
kind: "input";
|
|
346
336
|
}) | (import("../../types").BaseComponent & {
|
|
347
337
|
schemaId?: string;
|
|
348
|
-
isSchemaReferencedInStep?: boolean;
|
|
349
338
|
control?: string;
|
|
350
339
|
description?: string;
|
|
351
340
|
help?: string;
|
|
@@ -384,7 +373,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
384
373
|
kind: "input";
|
|
385
374
|
}) | (import("../../types").BaseComponent & {
|
|
386
375
|
schemaId?: string;
|
|
387
|
-
isSchemaReferencedInStep?: boolean;
|
|
388
376
|
control?: string;
|
|
389
377
|
description?: string;
|
|
390
378
|
help?: string;
|
|
@@ -423,7 +411,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
423
411
|
kind: "input";
|
|
424
412
|
}) | (import("../../types").BaseComponent & {
|
|
425
413
|
schemaId?: string;
|
|
426
|
-
isSchemaReferencedInStep?: boolean;
|
|
427
414
|
control?: string;
|
|
428
415
|
description?: string;
|
|
429
416
|
help?: string;
|
|
@@ -446,7 +433,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
446
433
|
kind: "input";
|
|
447
434
|
}) | (import("../../types").BaseComponent & {
|
|
448
435
|
schemaId?: string;
|
|
449
|
-
isSchemaReferencedInStep?: boolean;
|
|
450
436
|
control?: string;
|
|
451
437
|
description?: string;
|
|
452
438
|
help?: string;
|
|
@@ -486,7 +472,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
486
472
|
kind: "input";
|
|
487
473
|
}) | (import("../../types").BaseComponent & {
|
|
488
474
|
schemaId?: string;
|
|
489
|
-
isSchemaReferencedInStep?: boolean;
|
|
490
475
|
control?: string;
|
|
491
476
|
description?: string;
|
|
492
477
|
help?: string;
|
|
@@ -511,7 +496,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
511
496
|
kind: "input";
|
|
512
497
|
}) | (import("../../types").BaseComponent & {
|
|
513
498
|
schemaId?: string;
|
|
514
|
-
isSchemaReferencedInStep?: boolean;
|
|
515
499
|
control?: string;
|
|
516
500
|
description?: string;
|
|
517
501
|
help?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistAsyncSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/schema/persistAsyncSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAOzD,eAAO,MAAM,6BAA6B,GACxC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,EACzE,aAAa,WAAW
|
|
1
|
+
{"version":3,"file":"persistAsyncSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/schema/persistAsyncSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAOzD,eAAO,MAAM,6BAA6B,GACxC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,EACzE,aAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCzB,CAAC"}
|