@surveystudio/node-registery 1.3.0 → 1.5.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.
- package/README.md +14 -1
- package/dist/builder.d.mts +923 -13
- package/dist/builder.mjs +683 -11
- package/dist/{coreTypes-CyFAym5A.d.mts → coreTypes-D5NniS2n.d.mts} +6 -1
- package/dist/logic.d.mts +29 -87
- package/dist/logic.mjs +577 -40
- package/dist/runner.d.mts +2 -2
- package/dist/{types-4zXsOMLb.d.mts → types-BMMQVXYP.d.mts} +1 -1
- package/dist/types-D3jarfsb.d.mts +265 -0
- package/package.json +1 -1
- package/dist/types-BMnck1ag.d.mts +0 -59
package/dist/builder.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BuilderRegistry, C as CompleteBuilderRegistry, N as NodeBuilder, a as NodeBuilderProps, b as NodeCanvasProps, Q as QuestionNodeDefinition, d as defineBuilderRegistry, c as defineQuestionNode } from './types-
|
|
2
|
-
import { J as JsonValue } from './coreTypes-
|
|
3
|
-
export { N as NodeManifest,
|
|
4
|
-
import { P as PlainTextData, B as
|
|
1
|
+
export { B as BuilderRegistry, C as CompleteBuilderRegistry, N as NodeBuilder, a as NodeBuilderProps, b as NodeCanvasProps, Q as QuestionNodeDefinition, d as defineBuilderRegistry, c as defineQuestionNode } from './types-BMMQVXYP.mjs';
|
|
2
|
+
import { J as JsonValue, P as PropertyField } from './coreTypes-D5NniS2n.mjs';
|
|
3
|
+
export { N as NodeManifest, a as PropertyFieldType, S as SelectOption } from './coreTypes-D5NniS2n.mjs';
|
|
4
|
+
import { P as PlainTextData, C as CaptchaData, E as EmojiRatingData, A as AudioData, B as BaseMediaData, I as ImageData, V as VideoData, a as BranchData, b as ConditionData, c as EndData, S as StartData, d as ValidationData, e as ConsentData, D as DropdownData, M as MultipleChoiceData, R as RankingData, f as SingleChoiceData, g as RatingData, h as SliderData, i as CascadingChoiceData, j as MatrixChoiceData, k as BaseTextData, l as MultiInputData, N as NumberInputData, T as TextInputData, Z as ZipCodeInputData } from './types-D3jarfsb.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
declare const plainTextBuilder: {
|
|
@@ -9,31 +9,775 @@ declare const plainTextBuilder: {
|
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
+
declare const captchaBuilder: {
|
|
13
|
+
type: "captcha";
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare const emojiRatingBuilder: {
|
|
18
|
+
type: "emojiRating";
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
declare const imageBuilder: {
|
|
23
|
+
type: "image";
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
declare const videoBuilder: {
|
|
27
|
+
type: "video";
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
declare const audioBuilder: {
|
|
31
|
+
type: "audio";
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare const startBuilder: {
|
|
36
|
+
type: "start";
|
|
37
|
+
label: string;
|
|
38
|
+
};
|
|
39
|
+
declare const branchBuilder: {
|
|
40
|
+
type: "branch";
|
|
41
|
+
label: string;
|
|
42
|
+
};
|
|
43
|
+
declare const validationBuilder: {
|
|
44
|
+
type: "validation";
|
|
45
|
+
label: string;
|
|
46
|
+
};
|
|
47
|
+
declare const endBuilder: {
|
|
48
|
+
type: "end";
|
|
49
|
+
label: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
declare const consentBuilder: {
|
|
53
|
+
type: "consent";
|
|
54
|
+
label: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
declare const singleChoiceBuilder: {
|
|
58
|
+
type: "singleChoice";
|
|
59
|
+
label: string;
|
|
60
|
+
};
|
|
61
|
+
declare const multipleChoiceBuilder: {
|
|
62
|
+
type: "multipleChoice";
|
|
63
|
+
label: string;
|
|
64
|
+
};
|
|
65
|
+
declare const dropdownBuilder: {
|
|
66
|
+
type: "dropdown";
|
|
67
|
+
label: string;
|
|
68
|
+
};
|
|
69
|
+
declare const rankingBuilder: {
|
|
70
|
+
type: "ranking";
|
|
71
|
+
label: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare const ratingBuilder: {
|
|
75
|
+
type: "rating";
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
declare const sliderBuilder: {
|
|
79
|
+
type: "slider";
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
declare const matrixChoiceBuilder: {
|
|
84
|
+
type: "matrixChoice";
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
declare const cascadingChoiceBuilder: {
|
|
88
|
+
type: "cascadingChoice";
|
|
89
|
+
label: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
12
92
|
declare const plainTextManifest: {
|
|
13
93
|
type: "plainText";
|
|
14
94
|
label: string;
|
|
15
95
|
description: string;
|
|
16
|
-
category: "media";
|
|
17
|
-
dataType: "none";
|
|
18
|
-
defaultData: PlainTextData;
|
|
96
|
+
category: "media";
|
|
97
|
+
dataType: "none";
|
|
98
|
+
defaultData: PlainTextData;
|
|
99
|
+
properties: ({
|
|
100
|
+
name: string;
|
|
101
|
+
label: string;
|
|
102
|
+
type: "text";
|
|
103
|
+
placeholder: string;
|
|
104
|
+
defaultValue?: never;
|
|
105
|
+
} | {
|
|
106
|
+
name: string;
|
|
107
|
+
label: string;
|
|
108
|
+
type: "textarea";
|
|
109
|
+
placeholder: string;
|
|
110
|
+
defaultValue: string;
|
|
111
|
+
} | {
|
|
112
|
+
name: string;
|
|
113
|
+
label: string;
|
|
114
|
+
type: "text";
|
|
115
|
+
defaultValue: string;
|
|
116
|
+
placeholder?: never;
|
|
117
|
+
} | {
|
|
118
|
+
name: string;
|
|
119
|
+
label: string;
|
|
120
|
+
type: "condition";
|
|
121
|
+
defaultValue: {
|
|
122
|
+
id: string;
|
|
123
|
+
type: "group";
|
|
124
|
+
logicType: "AND" | "OR";
|
|
125
|
+
children: JsonValue[];
|
|
126
|
+
};
|
|
127
|
+
placeholder?: never;
|
|
128
|
+
})[];
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
declare const captchaManifest: {
|
|
132
|
+
type: "captcha";
|
|
133
|
+
label: string;
|
|
134
|
+
description: string;
|
|
135
|
+
category: "input";
|
|
136
|
+
dataType: "text";
|
|
137
|
+
defaultData: CaptchaData;
|
|
138
|
+
properties: ({
|
|
139
|
+
name: string;
|
|
140
|
+
label: string;
|
|
141
|
+
type: "text";
|
|
142
|
+
placeholder: string;
|
|
143
|
+
defaultValue?: never;
|
|
144
|
+
helperText?: never;
|
|
145
|
+
} | {
|
|
146
|
+
name: string;
|
|
147
|
+
label: string;
|
|
148
|
+
type: "textarea";
|
|
149
|
+
placeholder: string;
|
|
150
|
+
defaultValue: string;
|
|
151
|
+
helperText?: never;
|
|
152
|
+
} | {
|
|
153
|
+
name: string;
|
|
154
|
+
label: string;
|
|
155
|
+
type: "switch";
|
|
156
|
+
defaultValue: false;
|
|
157
|
+
helperText: string;
|
|
158
|
+
placeholder?: never;
|
|
159
|
+
} | {
|
|
160
|
+
name: string;
|
|
161
|
+
label: string;
|
|
162
|
+
type: "condition";
|
|
163
|
+
defaultValue: {
|
|
164
|
+
id: string;
|
|
165
|
+
type: "group";
|
|
166
|
+
logicType: "AND";
|
|
167
|
+
children: never[];
|
|
168
|
+
};
|
|
169
|
+
helperText: string;
|
|
170
|
+
placeholder?: never;
|
|
171
|
+
} | {
|
|
172
|
+
name: string;
|
|
173
|
+
label: string;
|
|
174
|
+
type: "text";
|
|
175
|
+
placeholder: string;
|
|
176
|
+
helperText: string;
|
|
177
|
+
defaultValue?: never;
|
|
178
|
+
})[];
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
declare const emojiRatingManifest: {
|
|
182
|
+
type: "emojiRating";
|
|
183
|
+
label: string;
|
|
184
|
+
description: string;
|
|
185
|
+
category: "choice";
|
|
186
|
+
dataType: "option";
|
|
187
|
+
defaultData: EmojiRatingData;
|
|
188
|
+
properties: ({
|
|
189
|
+
name: string;
|
|
190
|
+
label: string;
|
|
191
|
+
type: "text";
|
|
192
|
+
placeholder: string;
|
|
193
|
+
defaultValue?: never;
|
|
194
|
+
helperText?: never;
|
|
195
|
+
} | {
|
|
196
|
+
name: string;
|
|
197
|
+
label: string;
|
|
198
|
+
type: "textarea";
|
|
199
|
+
placeholder: string;
|
|
200
|
+
defaultValue: string;
|
|
201
|
+
helperText?: never;
|
|
202
|
+
} | {
|
|
203
|
+
name: string;
|
|
204
|
+
label: string;
|
|
205
|
+
type: "switch";
|
|
206
|
+
defaultValue: false;
|
|
207
|
+
helperText: string;
|
|
208
|
+
placeholder?: never;
|
|
209
|
+
} | {
|
|
210
|
+
name: string;
|
|
211
|
+
label: string;
|
|
212
|
+
type: "condition";
|
|
213
|
+
defaultValue: {
|
|
214
|
+
id: string;
|
|
215
|
+
type: "group";
|
|
216
|
+
logicType: "AND";
|
|
217
|
+
children: never[];
|
|
218
|
+
};
|
|
219
|
+
helperText: string;
|
|
220
|
+
placeholder?: never;
|
|
221
|
+
} | {
|
|
222
|
+
name: string;
|
|
223
|
+
label: string;
|
|
224
|
+
type: "emojiOptions";
|
|
225
|
+
defaultValue: {
|
|
226
|
+
label: string;
|
|
227
|
+
value: string;
|
|
228
|
+
}[];
|
|
229
|
+
placeholder?: never;
|
|
230
|
+
helperText?: never;
|
|
231
|
+
})[];
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
declare const imageManifest: {
|
|
235
|
+
type: "image";
|
|
236
|
+
label: string;
|
|
237
|
+
description: string;
|
|
238
|
+
category: "media";
|
|
239
|
+
dataType: "object";
|
|
240
|
+
defaultData: ImageData;
|
|
241
|
+
properties: (PropertyField<BaseMediaData> | {
|
|
242
|
+
name: string;
|
|
243
|
+
label: string;
|
|
244
|
+
type: "condition";
|
|
245
|
+
defaultValue: {
|
|
246
|
+
id: string;
|
|
247
|
+
type: "group";
|
|
248
|
+
logicType: "AND";
|
|
249
|
+
children: never[];
|
|
250
|
+
};
|
|
251
|
+
helperText: string;
|
|
252
|
+
})[];
|
|
253
|
+
};
|
|
254
|
+
declare const videoManifest: {
|
|
255
|
+
type: "video";
|
|
256
|
+
label: string;
|
|
257
|
+
description: string;
|
|
258
|
+
category: "media";
|
|
259
|
+
dataType: "object";
|
|
260
|
+
defaultData: VideoData;
|
|
261
|
+
properties: (PropertyField<BaseMediaData> | {
|
|
262
|
+
name: string;
|
|
263
|
+
label: string;
|
|
264
|
+
type: "condition";
|
|
265
|
+
defaultValue: {
|
|
266
|
+
id: string;
|
|
267
|
+
type: "group";
|
|
268
|
+
logicType: "AND";
|
|
269
|
+
children: never[];
|
|
270
|
+
};
|
|
271
|
+
helperText: string;
|
|
272
|
+
})[];
|
|
273
|
+
};
|
|
274
|
+
declare const audioManifest: {
|
|
275
|
+
type: "audio";
|
|
276
|
+
label: string;
|
|
277
|
+
description: string;
|
|
278
|
+
category: "media";
|
|
279
|
+
dataType: "object";
|
|
280
|
+
defaultData: AudioData;
|
|
281
|
+
properties: (PropertyField<BaseMediaData> | {
|
|
282
|
+
name: string;
|
|
283
|
+
label: string;
|
|
284
|
+
type: "condition";
|
|
285
|
+
defaultValue: {
|
|
286
|
+
id: string;
|
|
287
|
+
type: "group";
|
|
288
|
+
logicType: "AND";
|
|
289
|
+
children: never[];
|
|
290
|
+
};
|
|
291
|
+
helperText: string;
|
|
292
|
+
})[];
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
declare const startManifest: {
|
|
296
|
+
type: "start";
|
|
297
|
+
label: string;
|
|
298
|
+
description: string;
|
|
299
|
+
category: "flow";
|
|
300
|
+
dataType: "none";
|
|
301
|
+
defaultData: StartData;
|
|
302
|
+
properties: {
|
|
303
|
+
name: string;
|
|
304
|
+
label: string;
|
|
305
|
+
type: "textarea";
|
|
306
|
+
placeholder: string;
|
|
307
|
+
}[];
|
|
308
|
+
};
|
|
309
|
+
declare const branchManifest: {
|
|
310
|
+
type: "branch";
|
|
311
|
+
label: string;
|
|
312
|
+
description: string;
|
|
313
|
+
category: "logic";
|
|
314
|
+
dataType: "none";
|
|
315
|
+
defaultData: BranchData;
|
|
316
|
+
properties: {
|
|
317
|
+
name: string;
|
|
318
|
+
label: string;
|
|
319
|
+
type: "condition";
|
|
320
|
+
defaultValue: ConditionData;
|
|
321
|
+
}[];
|
|
322
|
+
};
|
|
323
|
+
declare const validationManifest: {
|
|
324
|
+
type: "validation";
|
|
325
|
+
label: string;
|
|
326
|
+
description: string;
|
|
327
|
+
category: "logic";
|
|
328
|
+
dataType: "none";
|
|
329
|
+
defaultData: ValidationData;
|
|
330
|
+
properties: ({
|
|
331
|
+
name: string;
|
|
332
|
+
label: string;
|
|
333
|
+
type: "text";
|
|
334
|
+
placeholder: string;
|
|
335
|
+
defaultValue: string;
|
|
336
|
+
options?: never;
|
|
337
|
+
} | {
|
|
338
|
+
name: string;
|
|
339
|
+
label: string;
|
|
340
|
+
type: "condition";
|
|
341
|
+
defaultValue: ConditionData;
|
|
342
|
+
placeholder?: never;
|
|
343
|
+
options?: never;
|
|
344
|
+
} | {
|
|
345
|
+
name: string;
|
|
346
|
+
label: string;
|
|
347
|
+
type: "select";
|
|
348
|
+
defaultValue: string;
|
|
349
|
+
options: {
|
|
350
|
+
label: string;
|
|
351
|
+
value: string;
|
|
352
|
+
}[];
|
|
353
|
+
placeholder?: never;
|
|
354
|
+
})[];
|
|
355
|
+
};
|
|
356
|
+
declare const endManifest: {
|
|
357
|
+
type: "end";
|
|
358
|
+
label: string;
|
|
359
|
+
description: string;
|
|
360
|
+
category: "flow";
|
|
361
|
+
dataType: "none";
|
|
362
|
+
defaultData: EndData;
|
|
363
|
+
properties: ({
|
|
364
|
+
name: string;
|
|
365
|
+
label: string;
|
|
366
|
+
type: "textarea";
|
|
367
|
+
placeholder: string;
|
|
368
|
+
defaultValue?: never;
|
|
369
|
+
options?: never;
|
|
370
|
+
} | {
|
|
371
|
+
name: string;
|
|
372
|
+
label: string;
|
|
373
|
+
type: "text";
|
|
374
|
+
placeholder: string;
|
|
375
|
+
defaultValue?: never;
|
|
376
|
+
options?: never;
|
|
377
|
+
} | {
|
|
378
|
+
name: string;
|
|
379
|
+
label: string;
|
|
380
|
+
type: "select";
|
|
381
|
+
defaultValue: string;
|
|
382
|
+
options: {
|
|
383
|
+
label: string;
|
|
384
|
+
value: string;
|
|
385
|
+
}[];
|
|
386
|
+
placeholder?: never;
|
|
387
|
+
})[];
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
declare const consentManifest: {
|
|
391
|
+
type: "consent";
|
|
392
|
+
label: string;
|
|
393
|
+
description: string;
|
|
394
|
+
category: "choice";
|
|
395
|
+
dataType: "boolean";
|
|
396
|
+
defaultData: ConsentData;
|
|
397
|
+
properties: ({
|
|
398
|
+
name: string;
|
|
399
|
+
label: string;
|
|
400
|
+
type: "text";
|
|
401
|
+
placeholder: string;
|
|
402
|
+
defaultValue?: never;
|
|
403
|
+
} | {
|
|
404
|
+
name: string;
|
|
405
|
+
label: string;
|
|
406
|
+
type: "textarea";
|
|
407
|
+
placeholder: string;
|
|
408
|
+
defaultValue?: never;
|
|
409
|
+
} | {
|
|
410
|
+
name: string;
|
|
411
|
+
label: string;
|
|
412
|
+
type: "condition";
|
|
413
|
+
defaultValue: {
|
|
414
|
+
id: string;
|
|
415
|
+
type: "group";
|
|
416
|
+
logicType: "AND";
|
|
417
|
+
children: never[];
|
|
418
|
+
};
|
|
419
|
+
placeholder?: never;
|
|
420
|
+
})[];
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
declare const singleChoiceManifest: {
|
|
424
|
+
type: "singleChoice";
|
|
425
|
+
label: string;
|
|
426
|
+
description: string;
|
|
427
|
+
category: "choice";
|
|
428
|
+
dataType: "option";
|
|
429
|
+
defaultData: SingleChoiceData;
|
|
430
|
+
properties: ({
|
|
431
|
+
name: string;
|
|
432
|
+
label: string;
|
|
433
|
+
type: "text";
|
|
434
|
+
defaultValue?: never;
|
|
435
|
+
placeholder?: never;
|
|
436
|
+
helperText?: never;
|
|
437
|
+
} | {
|
|
438
|
+
name: string;
|
|
439
|
+
label: string;
|
|
440
|
+
type: "textarea";
|
|
441
|
+
defaultValue?: never;
|
|
442
|
+
placeholder?: never;
|
|
443
|
+
helperText?: never;
|
|
444
|
+
} | {
|
|
445
|
+
name: string;
|
|
446
|
+
label: string;
|
|
447
|
+
type: "condition";
|
|
448
|
+
defaultValue: {
|
|
449
|
+
id: string;
|
|
450
|
+
type: "group";
|
|
451
|
+
logicType: "AND";
|
|
452
|
+
children: never[];
|
|
453
|
+
};
|
|
454
|
+
placeholder?: never;
|
|
455
|
+
helperText?: never;
|
|
456
|
+
} | {
|
|
457
|
+
name: string;
|
|
458
|
+
label: string;
|
|
459
|
+
type: "options";
|
|
460
|
+
defaultValue: never[];
|
|
461
|
+
placeholder?: never;
|
|
462
|
+
helperText?: never;
|
|
463
|
+
} | {
|
|
464
|
+
name: string;
|
|
465
|
+
label: string;
|
|
466
|
+
type: "textarea";
|
|
467
|
+
placeholder: string;
|
|
468
|
+
helperText: string;
|
|
469
|
+
defaultValue?: never;
|
|
470
|
+
} | {
|
|
471
|
+
name: string;
|
|
472
|
+
label: string;
|
|
473
|
+
type: "switch";
|
|
474
|
+
defaultValue: false;
|
|
475
|
+
placeholder?: never;
|
|
476
|
+
helperText?: never;
|
|
477
|
+
visible?: never;
|
|
478
|
+
} | {
|
|
479
|
+
name: string;
|
|
480
|
+
label: string;
|
|
481
|
+
type: "text";
|
|
482
|
+
placeholder: string;
|
|
483
|
+
helperText: string;
|
|
484
|
+
defaultValue?: never;
|
|
485
|
+
visible?: never;
|
|
486
|
+
} | {
|
|
487
|
+
name: string;
|
|
488
|
+
label: string;
|
|
489
|
+
type: "text";
|
|
490
|
+
placeholder: string;
|
|
491
|
+
visible: (data: SingleChoiceData) => boolean;
|
|
492
|
+
defaultValue?: never;
|
|
493
|
+
helperText?: never;
|
|
494
|
+
})[];
|
|
495
|
+
};
|
|
496
|
+
declare const dropdownManifest: {
|
|
497
|
+
type: "dropdown";
|
|
498
|
+
label: string;
|
|
499
|
+
description: string;
|
|
500
|
+
category: "choice";
|
|
501
|
+
dataType: "option";
|
|
502
|
+
defaultData: DropdownData;
|
|
503
|
+
properties: ({
|
|
504
|
+
name: string;
|
|
505
|
+
label: string;
|
|
506
|
+
type: "text";
|
|
507
|
+
defaultValue?: never;
|
|
508
|
+
placeholder?: never;
|
|
509
|
+
helperText?: never;
|
|
510
|
+
} | {
|
|
511
|
+
name: string;
|
|
512
|
+
label: string;
|
|
513
|
+
type: "textarea";
|
|
514
|
+
defaultValue?: never;
|
|
515
|
+
placeholder?: never;
|
|
516
|
+
helperText?: never;
|
|
517
|
+
} | {
|
|
518
|
+
name: string;
|
|
519
|
+
label: string;
|
|
520
|
+
type: "condition";
|
|
521
|
+
defaultValue: {
|
|
522
|
+
id: string;
|
|
523
|
+
type: "group";
|
|
524
|
+
logicType: "AND";
|
|
525
|
+
children: never[];
|
|
526
|
+
};
|
|
527
|
+
placeholder?: never;
|
|
528
|
+
helperText?: never;
|
|
529
|
+
} | {
|
|
530
|
+
name: string;
|
|
531
|
+
label: string;
|
|
532
|
+
type: "options";
|
|
533
|
+
defaultValue: never[];
|
|
534
|
+
placeholder?: never;
|
|
535
|
+
helperText?: never;
|
|
536
|
+
} | {
|
|
537
|
+
name: string;
|
|
538
|
+
label: string;
|
|
539
|
+
type: "textarea";
|
|
540
|
+
placeholder: string;
|
|
541
|
+
helperText: string;
|
|
542
|
+
defaultValue?: never;
|
|
543
|
+
} | {
|
|
544
|
+
name: string;
|
|
545
|
+
label: string;
|
|
546
|
+
type: "text";
|
|
547
|
+
placeholder: string;
|
|
548
|
+
defaultValue?: never;
|
|
549
|
+
} | {
|
|
550
|
+
name: string;
|
|
551
|
+
label: string;
|
|
552
|
+
type: "switch";
|
|
553
|
+
defaultValue: true;
|
|
554
|
+
placeholder?: never;
|
|
555
|
+
})[];
|
|
556
|
+
};
|
|
557
|
+
declare const multipleChoiceManifest: {
|
|
558
|
+
type: "multipleChoice";
|
|
559
|
+
label: string;
|
|
560
|
+
description: string;
|
|
561
|
+
category: "choice";
|
|
562
|
+
dataType: "array";
|
|
563
|
+
defaultData: MultipleChoiceData;
|
|
564
|
+
properties: ({
|
|
565
|
+
name: string;
|
|
566
|
+
label: string;
|
|
567
|
+
type: "text";
|
|
568
|
+
defaultValue?: never;
|
|
569
|
+
placeholder?: never;
|
|
570
|
+
helperText?: never;
|
|
571
|
+
} | {
|
|
572
|
+
name: string;
|
|
573
|
+
label: string;
|
|
574
|
+
type: "textarea";
|
|
575
|
+
defaultValue?: never;
|
|
576
|
+
placeholder?: never;
|
|
577
|
+
helperText?: never;
|
|
578
|
+
} | {
|
|
579
|
+
name: string;
|
|
580
|
+
label: string;
|
|
581
|
+
type: "condition";
|
|
582
|
+
defaultValue: {
|
|
583
|
+
id: string;
|
|
584
|
+
type: "group";
|
|
585
|
+
logicType: "AND";
|
|
586
|
+
children: never[];
|
|
587
|
+
};
|
|
588
|
+
placeholder?: never;
|
|
589
|
+
helperText?: never;
|
|
590
|
+
} | {
|
|
591
|
+
name: string;
|
|
592
|
+
label: string;
|
|
593
|
+
type: "options";
|
|
594
|
+
defaultValue: never[];
|
|
595
|
+
placeholder?: never;
|
|
596
|
+
helperText?: never;
|
|
597
|
+
} | {
|
|
598
|
+
name: string;
|
|
599
|
+
label: string;
|
|
600
|
+
type: "textarea";
|
|
601
|
+
placeholder: string;
|
|
602
|
+
helperText: string;
|
|
603
|
+
defaultValue?: never;
|
|
604
|
+
} | {
|
|
605
|
+
name: string;
|
|
606
|
+
label: string;
|
|
607
|
+
type: "number";
|
|
608
|
+
helperText: string;
|
|
609
|
+
defaultValue: number;
|
|
610
|
+
placeholder?: never;
|
|
611
|
+
visible?: never;
|
|
612
|
+
} | {
|
|
613
|
+
name: string;
|
|
614
|
+
label: string;
|
|
615
|
+
type: "switch";
|
|
616
|
+
defaultValue: false;
|
|
617
|
+
helperText?: never;
|
|
618
|
+
placeholder?: never;
|
|
619
|
+
visible?: never;
|
|
620
|
+
} | {
|
|
621
|
+
name: string;
|
|
622
|
+
label: string;
|
|
623
|
+
type: "text";
|
|
624
|
+
placeholder: string;
|
|
625
|
+
helperText?: never;
|
|
626
|
+
defaultValue?: never;
|
|
627
|
+
visible?: never;
|
|
628
|
+
} | {
|
|
629
|
+
name: string;
|
|
630
|
+
label: string;
|
|
631
|
+
type: "text";
|
|
632
|
+
placeholder: string;
|
|
633
|
+
visible: (data: MultipleChoiceData) => boolean;
|
|
634
|
+
helperText?: never;
|
|
635
|
+
defaultValue?: never;
|
|
636
|
+
} | {
|
|
637
|
+
name: string;
|
|
638
|
+
label: string;
|
|
639
|
+
type: "switch";
|
|
640
|
+
defaultValue: false;
|
|
641
|
+
helperText: string;
|
|
642
|
+
placeholder?: never;
|
|
643
|
+
visible?: never;
|
|
644
|
+
})[];
|
|
645
|
+
};
|
|
646
|
+
declare const rankingManifest: {
|
|
647
|
+
type: "ranking";
|
|
648
|
+
label: string;
|
|
649
|
+
description: string;
|
|
650
|
+
category: "choice";
|
|
651
|
+
dataType: "array";
|
|
652
|
+
defaultData: RankingData;
|
|
19
653
|
properties: ({
|
|
20
654
|
name: string;
|
|
21
655
|
label: string;
|
|
22
656
|
type: "text";
|
|
23
|
-
placeholder: string;
|
|
24
657
|
defaultValue?: never;
|
|
658
|
+
placeholder?: never;
|
|
659
|
+
helperText?: never;
|
|
660
|
+
} | {
|
|
661
|
+
name: string;
|
|
662
|
+
label: string;
|
|
663
|
+
type: "textarea";
|
|
664
|
+
defaultValue?: never;
|
|
665
|
+
placeholder?: never;
|
|
666
|
+
helperText?: never;
|
|
667
|
+
} | {
|
|
668
|
+
name: string;
|
|
669
|
+
label: string;
|
|
670
|
+
type: "condition";
|
|
671
|
+
defaultValue: {
|
|
672
|
+
id: string;
|
|
673
|
+
type: "group";
|
|
674
|
+
logicType: "AND";
|
|
675
|
+
children: never[];
|
|
676
|
+
};
|
|
677
|
+
placeholder?: never;
|
|
678
|
+
helperText?: never;
|
|
679
|
+
} | {
|
|
680
|
+
name: string;
|
|
681
|
+
label: string;
|
|
682
|
+
type: "options";
|
|
683
|
+
defaultValue: never[];
|
|
684
|
+
placeholder?: never;
|
|
685
|
+
helperText?: never;
|
|
25
686
|
} | {
|
|
26
687
|
name: string;
|
|
27
688
|
label: string;
|
|
28
689
|
type: "textarea";
|
|
29
690
|
placeholder: string;
|
|
691
|
+
helperText: string;
|
|
692
|
+
defaultValue?: never;
|
|
693
|
+
} | {
|
|
694
|
+
name: string;
|
|
695
|
+
label: string;
|
|
696
|
+
type: "select";
|
|
697
|
+
defaultValue: string;
|
|
698
|
+
options: {
|
|
699
|
+
label: string;
|
|
700
|
+
value: string;
|
|
701
|
+
}[];
|
|
702
|
+
})[];
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
declare const ratingManifest: {
|
|
706
|
+
type: "rating";
|
|
707
|
+
label: string;
|
|
708
|
+
description: string;
|
|
709
|
+
category: "choice";
|
|
710
|
+
dataType: "number";
|
|
711
|
+
defaultData: RatingData;
|
|
712
|
+
properties: ({
|
|
713
|
+
name: string;
|
|
714
|
+
label: string;
|
|
715
|
+
type: "select";
|
|
30
716
|
defaultValue: string;
|
|
717
|
+
options: {
|
|
718
|
+
label: string;
|
|
719
|
+
value: string;
|
|
720
|
+
}[];
|
|
31
721
|
} | {
|
|
32
722
|
name: string;
|
|
33
723
|
label: string;
|
|
34
724
|
type: "text";
|
|
725
|
+
defaultValue?: never;
|
|
726
|
+
} | {
|
|
727
|
+
name: string;
|
|
728
|
+
label: string;
|
|
729
|
+
type: "textarea";
|
|
730
|
+
defaultValue?: never;
|
|
731
|
+
} | {
|
|
732
|
+
name: string;
|
|
733
|
+
label: string;
|
|
734
|
+
type: "condition";
|
|
735
|
+
defaultValue: {
|
|
736
|
+
id: string;
|
|
737
|
+
type: "group";
|
|
738
|
+
logicType: "AND";
|
|
739
|
+
children: never[];
|
|
740
|
+
};
|
|
741
|
+
} | {
|
|
742
|
+
name: string;
|
|
743
|
+
label: string;
|
|
744
|
+
type: "options";
|
|
745
|
+
defaultValue: never[];
|
|
746
|
+
visible: (data: RatingData) => boolean;
|
|
747
|
+
} | {
|
|
748
|
+
name: string;
|
|
749
|
+
label: string;
|
|
750
|
+
type: "number";
|
|
751
|
+
defaultValue: number;
|
|
752
|
+
visible?: never;
|
|
753
|
+
})[];
|
|
754
|
+
};
|
|
755
|
+
declare const sliderManifest: {
|
|
756
|
+
type: "slider";
|
|
757
|
+
label: string;
|
|
758
|
+
description: string;
|
|
759
|
+
category: "choice";
|
|
760
|
+
dataType: "number";
|
|
761
|
+
defaultData: SliderData;
|
|
762
|
+
properties: ({
|
|
763
|
+
name: string;
|
|
764
|
+
label: string;
|
|
765
|
+
type: "select";
|
|
35
766
|
defaultValue: string;
|
|
36
|
-
|
|
767
|
+
options: {
|
|
768
|
+
label: string;
|
|
769
|
+
value: string;
|
|
770
|
+
}[];
|
|
771
|
+
} | {
|
|
772
|
+
name: string;
|
|
773
|
+
label: string;
|
|
774
|
+
type: "text";
|
|
775
|
+
defaultValue?: never;
|
|
776
|
+
} | {
|
|
777
|
+
name: string;
|
|
778
|
+
label: string;
|
|
779
|
+
type: "textarea";
|
|
780
|
+
defaultValue?: never;
|
|
37
781
|
} | {
|
|
38
782
|
name: string;
|
|
39
783
|
label: string;
|
|
@@ -41,10 +785,104 @@ declare const plainTextManifest: {
|
|
|
41
785
|
defaultValue: {
|
|
42
786
|
id: string;
|
|
43
787
|
type: "group";
|
|
44
|
-
logicType: "AND"
|
|
45
|
-
children:
|
|
788
|
+
logicType: "AND";
|
|
789
|
+
children: never[];
|
|
46
790
|
};
|
|
47
|
-
|
|
791
|
+
} | {
|
|
792
|
+
name: string;
|
|
793
|
+
label: string;
|
|
794
|
+
type: "options";
|
|
795
|
+
defaultValue: never[];
|
|
796
|
+
visible: (data: SliderData) => boolean;
|
|
797
|
+
min?: never;
|
|
798
|
+
} | {
|
|
799
|
+
name: string;
|
|
800
|
+
label: string;
|
|
801
|
+
type: "number";
|
|
802
|
+
defaultValue: number;
|
|
803
|
+
visible?: never;
|
|
804
|
+
min?: never;
|
|
805
|
+
} | {
|
|
806
|
+
name: string;
|
|
807
|
+
label: string;
|
|
808
|
+
type: "number";
|
|
809
|
+
defaultValue: number;
|
|
810
|
+
min: number;
|
|
811
|
+
visible?: never;
|
|
812
|
+
})[];
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
declare const matrixChoiceManifest: {
|
|
816
|
+
type: "matrixChoice";
|
|
817
|
+
label: string;
|
|
818
|
+
description: string;
|
|
819
|
+
category: "choice";
|
|
820
|
+
dataType: "object";
|
|
821
|
+
defaultData: MatrixChoiceData;
|
|
822
|
+
properties: ({
|
|
823
|
+
name: string;
|
|
824
|
+
label: string;
|
|
825
|
+
type: "text";
|
|
826
|
+
defaultValue?: never;
|
|
827
|
+
} | {
|
|
828
|
+
name: string;
|
|
829
|
+
label: string;
|
|
830
|
+
type: "textarea";
|
|
831
|
+
defaultValue?: never;
|
|
832
|
+
} | {
|
|
833
|
+
name: string;
|
|
834
|
+
label: string;
|
|
835
|
+
type: "condition";
|
|
836
|
+
defaultValue: {
|
|
837
|
+
id: string;
|
|
838
|
+
type: "group";
|
|
839
|
+
logicType: "AND";
|
|
840
|
+
children: never[];
|
|
841
|
+
};
|
|
842
|
+
} | {
|
|
843
|
+
name: string;
|
|
844
|
+
label: string;
|
|
845
|
+
type: "options";
|
|
846
|
+
defaultValue: never[];
|
|
847
|
+
} | {
|
|
848
|
+
name: string;
|
|
849
|
+
label: string;
|
|
850
|
+
type: "switch";
|
|
851
|
+
defaultValue: false;
|
|
852
|
+
})[];
|
|
853
|
+
};
|
|
854
|
+
declare const cascadingChoiceManifest: {
|
|
855
|
+
type: "cascadingChoice";
|
|
856
|
+
label: string;
|
|
857
|
+
description: string;
|
|
858
|
+
category: "choice";
|
|
859
|
+
dataType: "array";
|
|
860
|
+
defaultData: CascadingChoiceData;
|
|
861
|
+
properties: ({
|
|
862
|
+
name: string;
|
|
863
|
+
label: string;
|
|
864
|
+
type: "text";
|
|
865
|
+
defaultValue?: never;
|
|
866
|
+
} | {
|
|
867
|
+
name: string;
|
|
868
|
+
label: string;
|
|
869
|
+
type: "textarea";
|
|
870
|
+
defaultValue?: never;
|
|
871
|
+
} | {
|
|
872
|
+
name: string;
|
|
873
|
+
label: string;
|
|
874
|
+
type: "condition";
|
|
875
|
+
defaultValue: {
|
|
876
|
+
id: string;
|
|
877
|
+
type: "group";
|
|
878
|
+
logicType: "AND";
|
|
879
|
+
children: never[];
|
|
880
|
+
};
|
|
881
|
+
} | {
|
|
882
|
+
name: string;
|
|
883
|
+
label: string;
|
|
884
|
+
type: "stepBuilder";
|
|
885
|
+
defaultValue: never[];
|
|
48
886
|
})[];
|
|
49
887
|
};
|
|
50
888
|
|
|
@@ -313,10 +1151,82 @@ declare const builderRegistry: {
|
|
|
313
1151
|
type: "zipCodeInput";
|
|
314
1152
|
label: string;
|
|
315
1153
|
};
|
|
1154
|
+
readonly singleChoice: {
|
|
1155
|
+
type: "singleChoice";
|
|
1156
|
+
label: string;
|
|
1157
|
+
};
|
|
1158
|
+
readonly multipleChoice: {
|
|
1159
|
+
type: "multipleChoice";
|
|
1160
|
+
label: string;
|
|
1161
|
+
};
|
|
1162
|
+
readonly dropdown: {
|
|
1163
|
+
type: "dropdown";
|
|
1164
|
+
label: string;
|
|
1165
|
+
};
|
|
1166
|
+
readonly ranking: {
|
|
1167
|
+
type: "ranking";
|
|
1168
|
+
label: string;
|
|
1169
|
+
};
|
|
1170
|
+
readonly cascadingChoice: {
|
|
1171
|
+
type: "cascadingChoice";
|
|
1172
|
+
label: string;
|
|
1173
|
+
};
|
|
1174
|
+
readonly matrixChoice: {
|
|
1175
|
+
type: "matrixChoice";
|
|
1176
|
+
label: string;
|
|
1177
|
+
};
|
|
1178
|
+
readonly rating: {
|
|
1179
|
+
type: "rating";
|
|
1180
|
+
label: string;
|
|
1181
|
+
};
|
|
1182
|
+
readonly slider: {
|
|
1183
|
+
type: "slider";
|
|
1184
|
+
label: string;
|
|
1185
|
+
};
|
|
1186
|
+
readonly consent: {
|
|
1187
|
+
type: "consent";
|
|
1188
|
+
label: string;
|
|
1189
|
+
};
|
|
1190
|
+
readonly captcha: {
|
|
1191
|
+
type: "captcha";
|
|
1192
|
+
label: string;
|
|
1193
|
+
};
|
|
1194
|
+
readonly image: {
|
|
1195
|
+
type: "image";
|
|
1196
|
+
label: string;
|
|
1197
|
+
};
|
|
1198
|
+
readonly video: {
|
|
1199
|
+
type: "video";
|
|
1200
|
+
label: string;
|
|
1201
|
+
};
|
|
1202
|
+
readonly audio: {
|
|
1203
|
+
type: "audio";
|
|
1204
|
+
label: string;
|
|
1205
|
+
};
|
|
316
1206
|
readonly plainText: {
|
|
317
1207
|
type: "plainText";
|
|
318
1208
|
label: string;
|
|
319
1209
|
};
|
|
1210
|
+
readonly emojiRating: {
|
|
1211
|
+
type: "emojiRating";
|
|
1212
|
+
label: string;
|
|
1213
|
+
};
|
|
1214
|
+
readonly start: {
|
|
1215
|
+
type: "start";
|
|
1216
|
+
label: string;
|
|
1217
|
+
};
|
|
1218
|
+
readonly end: {
|
|
1219
|
+
type: "end";
|
|
1220
|
+
label: string;
|
|
1221
|
+
};
|
|
1222
|
+
readonly branch: {
|
|
1223
|
+
type: "branch";
|
|
1224
|
+
label: string;
|
|
1225
|
+
};
|
|
1226
|
+
readonly validation: {
|
|
1227
|
+
type: "validation";
|
|
1228
|
+
label: string;
|
|
1229
|
+
};
|
|
320
1230
|
};
|
|
321
1231
|
|
|
322
|
-
export { builderRegistry, dateInputBuilder, dateInputManifest, emailInputBuilder, emailInputManifest, multiInputBuilder, multiInputManifest, numberInputBuilder, numberInputManifest, plainTextBuilder, plainTextManifest, textInputBuilder, textInputManifest, zipCodeInputBuilder, zipCodeInputManifest };
|
|
1232
|
+
export { PropertyField, audioBuilder, audioManifest, branchBuilder, branchManifest, builderRegistry, captchaBuilder, captchaManifest, cascadingChoiceBuilder, cascadingChoiceManifest, consentBuilder, consentManifest, dateInputBuilder, dateInputManifest, dropdownBuilder, dropdownManifest, emailInputBuilder, emailInputManifest, emojiRatingBuilder, emojiRatingManifest, endBuilder, endManifest, imageBuilder, imageManifest, matrixChoiceBuilder, matrixChoiceManifest, multiInputBuilder, multiInputManifest, multipleChoiceBuilder, multipleChoiceManifest, numberInputBuilder, numberInputManifest, plainTextBuilder, plainTextManifest, rankingBuilder, rankingManifest, ratingBuilder, ratingManifest, singleChoiceBuilder, singleChoiceManifest, sliderBuilder, sliderManifest, startBuilder, startManifest, textInputBuilder, textInputManifest, validationBuilder, validationManifest, videoBuilder, videoManifest, zipCodeInputBuilder, zipCodeInputManifest };
|