headless-survey-engine 0.0.0-stage → 4.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.
@@ -0,0 +1,827 @@
1
+ import { SurveyLogicContext, SurveyLogicRecord, SurveyLogicValue } from "survey-expression";
2
+ import { z } from "zod";
3
+ import { BlockChildren, BlockDocument, BlockDocumentInput, BlockNode, BlockNodeProps, BlockRegistry, BlockTypeDefinition, OwnProps } from "headless-block-editor";
4
+ export interface SurveyAnswerIssue {
5
+ message: string;
6
+ name: string;
7
+ }
8
+ export type SurveyAnswerValue = boolean | number | string | SurveyAnswerValue[] | {
9
+ [name: string]: SurveyAnswerValue;
10
+ };
11
+ export type SurveyAnswers = Record<string, SurveyAnswerValue>;
12
+ export declare enum SurveyAnswerValidationMode {
13
+ Draft = "draft",
14
+ Submit = "submit"
15
+ }
16
+ export declare enum SurveyBooleanDisplayStyle {
17
+ Checkbox = "checkbox",
18
+ Radio = "radio",
19
+ Switch = "switch"
20
+ }
21
+ export declare const surveyExpressionSchema: z.ZodString;
22
+ export interface SurveyValidator {
23
+ expression: string;
24
+ text: string;
25
+ }
26
+ export declare const surveyValidatorSchema: z.ZodObject<{
27
+ expression: typeof surveyExpressionSchema;
28
+ text: z.ZodString;
29
+ }>;
30
+ export declare const surveyConditionSchema: z.ZodDefault<z.ZodString>;
31
+ export declare const surveyNameSchema: z.ZodString;
32
+ export interface SurveyQuestionBaseProps extends BlockNodeProps {
33
+ description: string;
34
+ enableIf: string;
35
+ isRequired: boolean;
36
+ name: string;
37
+ requiredErrorText: string;
38
+ requiredIf: string;
39
+ title: string;
40
+ validators: SurveyValidator[];
41
+ visibleIf: string;
42
+ }
43
+ export declare const surveyQuestionBasePropsShape: {
44
+ description: z.ZodDefault<z.ZodString>;
45
+ enableIf: typeof surveyConditionSchema;
46
+ isRequired: z.ZodDefault<z.ZodBoolean>;
47
+ name: typeof surveyNameSchema;
48
+ requiredErrorText: z.ZodDefault<z.ZodString>;
49
+ requiredIf: typeof surveyConditionSchema;
50
+ title: z.ZodDefault<z.ZodString>;
51
+ validators: z.ZodDefault<z.ZodArray<typeof surveyValidatorSchema>>;
52
+ visibleIf: typeof surveyConditionSchema;
53
+ };
54
+ export interface SurveyBooleanNodeProps extends SurveyQuestionBaseProps {
55
+ displayStyle: SurveyBooleanDisplayStyle;
56
+ labelFalse: string;
57
+ labelTrue: string;
58
+ }
59
+ export declare const surveyBooleanNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
60
+ displayStyle: z.ZodDefault<z.ZodEnum<Record<SurveyBooleanDisplayStyle, SurveyBooleanDisplayStyle>>>;
61
+ labelFalse: z.ZodDefault<z.ZodString>;
62
+ labelTrue: z.ZodDefault<z.ZodString>;
63
+ }>;
64
+ export declare enum SurveyNodeType {
65
+ Boolean = "boolean",
66
+ ButtonGroup = "buttongroup",
67
+ Checkbox = "checkbox",
68
+ Comment = "comment",
69
+ Dropdown = "dropdown",
70
+ Expression = "expression",
71
+ Html = "html",
72
+ Image = "image",
73
+ ImagePicker = "imagepicker",
74
+ Matrix = "matrix",
75
+ MatrixDynamic = "matrixdynamic",
76
+ MultipleText = "multipletext",
77
+ Page = "page",
78
+ Panel = "panel",
79
+ PanelDynamic = "paneldynamic",
80
+ RadioGroup = "radiogroup",
81
+ Ranking = "ranking",
82
+ Rating = "rating",
83
+ Slider = "slider",
84
+ TagBox = "tagbox",
85
+ Text = "text"
86
+ }
87
+ export type SurveyBooleanNode = BlockNode<SurveyNodeType.Boolean, SurveyBooleanNodeProps>;
88
+ export interface SurveyChoice {
89
+ text: string;
90
+ value: number | string;
91
+ }
92
+ export declare const surveyChoiceSchema: z.ZodObject<{
93
+ text: z.ZodDefault<z.ZodString>;
94
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
95
+ }>;
96
+ export interface SurveyChoicesProps {
97
+ choices: SurveyChoice[];
98
+ }
99
+ export declare const surveyChoicesPropsShape: {
100
+ choices: z.ZodDefault<z.ZodArray<typeof surveyChoiceSchema>>;
101
+ };
102
+ export interface SurveyButtonGroupNodeProps extends SurveyChoicesProps, SurveyQuestionBaseProps {}
103
+ export declare const surveyButtonGroupNodePropsSchema: z.ZodObject<typeof surveyChoicesPropsShape & typeof surveyQuestionBasePropsShape>;
104
+ export type SurveyButtonGroupNode = BlockNode<SurveyNodeType.ButtonGroup, SurveyButtonGroupNodeProps>;
105
+ export interface SurveyCalculatedValue {
106
+ expression: string;
107
+ includeIntoResult: boolean;
108
+ name: string;
109
+ }
110
+ export declare const surveyCalculatedValueSchema: z.ZodObject<{
111
+ expression: typeof surveyExpressionSchema;
112
+ includeIntoResult: z.ZodDefault<z.ZodBoolean>;
113
+ name: typeof surveyNameSchema;
114
+ }>;
115
+ export declare enum SurveyChoicesOrder {
116
+ Ascending = "asc",
117
+ Descending = "desc",
118
+ None = "none",
119
+ Random = "random"
120
+ }
121
+ export interface SurveyChoiceOptionsProps extends SurveyChoicesProps {
122
+ choicesOrder: SurveyChoicesOrder;
123
+ hasOther: boolean;
124
+ otherText: string;
125
+ }
126
+ export declare const surveyChoiceOptionsPropsShape: typeof surveyChoicesPropsShape & {
127
+ choicesOrder: z.ZodDefault<z.ZodEnum<typeof SurveyChoicesOrder>>;
128
+ hasOther: z.ZodDefault<z.ZodBoolean>;
129
+ otherText: z.ZodDefault<z.ZodString>;
130
+ };
131
+ export interface SurveyNoneChoiceProps {
132
+ hasNone: boolean;
133
+ noneText: string;
134
+ }
135
+ export declare const surveyNoneChoicePropsShape: {
136
+ hasNone: z.ZodDefault<z.ZodBoolean>;
137
+ noneText: z.ZodDefault<z.ZodString>;
138
+ };
139
+ export interface SurveyCheckboxNodeProps extends SurveyChoiceOptionsProps, SurveyNoneChoiceProps, SurveyQuestionBaseProps {
140
+ hasSelectAll: boolean;
141
+ maxSelected?: number;
142
+ minSelected?: number;
143
+ selectAllText: string;
144
+ }
145
+ export declare const surveyCheckboxNodePropsSchema: z.ZodObject<typeof surveyChoiceOptionsPropsShape & typeof surveyNoneChoicePropsShape & typeof surveyQuestionBasePropsShape & {
146
+ hasSelectAll: z.ZodDefault<z.ZodBoolean>;
147
+ maxSelected: z.ZodOptional<z.ZodInt>;
148
+ minSelected: z.ZodOptional<z.ZodInt>;
149
+ selectAllText: z.ZodDefault<z.ZodString>;
150
+ }>;
151
+ export type SurveyCheckboxNode = BlockNode<SurveyNodeType.Checkbox, SurveyCheckboxNodeProps>;
152
+ export interface SurveyCommentNodeProps extends SurveyQuestionBaseProps {
153
+ maxLength?: number;
154
+ placeholder: string;
155
+ rows: number;
156
+ }
157
+ export declare const surveyCommentNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
158
+ maxLength: z.ZodOptional<z.ZodInt>;
159
+ placeholder: z.ZodDefault<z.ZodString>;
160
+ rows: z.ZodDefault<z.ZodInt>;
161
+ }>;
162
+ export type SurveyCommentNode = BlockNode<SurveyNodeType.Comment, SurveyCommentNodeProps>;
163
+ export declare const surveyContainerBasePropsShape: {
164
+ description: z.ZodDefault<z.ZodString>;
165
+ title: z.ZodDefault<z.ZodString>;
166
+ visibleIf: typeof surveyConditionSchema;
167
+ };
168
+ export interface SurveyPanelNodeProps extends BlockNodeProps {
169
+ children: SurveyPlaceableNode[];
170
+ description: string;
171
+ enableIf: string;
172
+ title: string;
173
+ visibleIf: string;
174
+ }
175
+ export declare const surveyPanelNodePropsSchema: z.ZodObject<typeof surveyContainerBasePropsShape & {
176
+ enableIf: typeof surveyConditionSchema;
177
+ }>;
178
+ export type SurveyPanelNode = BlockNode<SurveyNodeType.Panel, SurveyPanelNodeProps>;
179
+ export interface SurveyDropdownNodeProps extends SurveyChoiceOptionsProps, SurveyQuestionBaseProps {
180
+ placeholder: string;
181
+ }
182
+ export declare const surveyDropdownNodePropsSchema: z.ZodObject<typeof surveyChoiceOptionsPropsShape & typeof surveyQuestionBasePropsShape & {
183
+ placeholder: z.ZodDefault<z.ZodString>;
184
+ }>;
185
+ export type SurveyDropdownNode = BlockNode<SurveyNodeType.Dropdown, SurveyDropdownNodeProps>;
186
+ export declare enum SurveyExpressionDisplayFormat {
187
+ Decimal = "decimal",
188
+ None = "none",
189
+ Percent = "percent"
190
+ }
191
+ export interface SurveyExpressionNodeProps extends SurveyQuestionBaseProps {
192
+ displayFormat: SurveyExpressionDisplayFormat;
193
+ expression: string;
194
+ maxFractionDigits: number;
195
+ }
196
+ export declare const surveyExpressionNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
197
+ displayFormat: z.ZodDefault<z.ZodEnum<typeof SurveyExpressionDisplayFormat>>;
198
+ expression: typeof surveyConditionSchema;
199
+ maxFractionDigits: z.ZodDefault<z.ZodInt>;
200
+ }>;
201
+ export type SurveyExpressionNode = BlockNode<SurveyNodeType.Expression, SurveyExpressionNodeProps>;
202
+ export interface SurveyHtmlNodeProps extends BlockNodeProps {
203
+ html: string;
204
+ name: string;
205
+ visibleIf: string;
206
+ }
207
+ export declare const surveyHtmlNodePropsSchema: z.ZodObject<{
208
+ html: z.ZodDefault<z.ZodString>;
209
+ name: typeof surveyNameSchema;
210
+ visibleIf: typeof surveyConditionSchema;
211
+ }>;
212
+ export type SurveyHtmlNode = BlockNode<SurveyNodeType.Html, SurveyHtmlNodeProps>;
213
+ export declare enum SurveyImageFit {
214
+ Contain = "contain",
215
+ Cover = "cover",
216
+ Fill = "fill",
217
+ None = "none"
218
+ }
219
+ export interface SurveyImageBoxProps {
220
+ imageFit: SurveyImageFit;
221
+ imageHeight?: number;
222
+ imageWidth?: number;
223
+ }
224
+ export declare const surveyImageBoxPropsShape: {
225
+ imageFit: z.ZodDefault<z.ZodEnum<typeof SurveyImageFit>>;
226
+ imageHeight: z.ZodOptional<z.ZodInt>;
227
+ imageWidth: z.ZodOptional<z.ZodInt>;
228
+ };
229
+ export interface SurveyImageNodeProps extends BlockNodeProps, SurveyImageBoxProps {
230
+ altText: string;
231
+ imageLink: string;
232
+ name: string;
233
+ visibleIf: string;
234
+ }
235
+ export declare const surveyImageNodePropsSchema: z.ZodObject<typeof surveyImageBoxPropsShape & {
236
+ altText: z.ZodDefault<z.ZodString>;
237
+ imageLink: z.ZodDefault<z.ZodString>;
238
+ name: typeof surveyNameSchema;
239
+ visibleIf: typeof surveyConditionSchema;
240
+ }>;
241
+ export type SurveyImageNode = BlockNode<SurveyNodeType.Image, SurveyImageNodeProps>;
242
+ export interface SurveyImageChoice extends SurveyChoice {
243
+ imageLink: string;
244
+ }
245
+ export declare const surveyImageChoiceSchema: z.ZodObject<typeof surveyChoiceSchema.shape & {
246
+ imageLink: z.ZodString;
247
+ }>;
248
+ export interface SurveyImagePickerNodeProps extends SurveyImageBoxProps, SurveyQuestionBaseProps {
249
+ choices: SurveyImageChoice[];
250
+ isLabelVisible: boolean;
251
+ multiSelect: boolean;
252
+ }
253
+ export declare const surveyImagePickerNodePropsSchema: z.ZodObject<typeof surveyImageBoxPropsShape & typeof surveyQuestionBasePropsShape & {
254
+ choices: z.ZodDefault<z.ZodArray<typeof surveyImageChoiceSchema>>;
255
+ isLabelVisible: z.ZodDefault<z.ZodBoolean>;
256
+ multiSelect: z.ZodDefault<z.ZodBoolean>;
257
+ }>;
258
+ export type SurveyImagePickerNode = BlockNode<SurveyNodeType.ImagePicker, SurveyImagePickerNodeProps>;
259
+ export declare enum SurveyMatrixCellType {
260
+ Boolean = "boolean",
261
+ Checkbox = "checkbox",
262
+ Comment = "comment",
263
+ Dropdown = "dropdown",
264
+ Rating = "rating",
265
+ Text = "text"
266
+ }
267
+ export interface SurveyMatrixColumn {
268
+ cellType: SurveyMatrixCellType;
269
+ choices: SurveyChoice[];
270
+ isRequired: boolean;
271
+ name: string;
272
+ title: string;
273
+ }
274
+ export declare const surveyMatrixColumnSchema: z.ZodObject<{
275
+ cellType: z.ZodEnum<typeof SurveyMatrixCellType>;
276
+ choices: z.ZodDefault<z.ZodArray<typeof surveyChoiceSchema>>;
277
+ isRequired: z.ZodDefault<z.ZodBoolean>;
278
+ name: typeof surveyNameSchema;
279
+ title: z.ZodDefault<z.ZodString>;
280
+ }>;
281
+ export interface SurveyMatrixDynamicNodeProps extends SurveyQuestionBaseProps {
282
+ addRowText: string;
283
+ columns: SurveyMatrixColumn[];
284
+ maxRowCount: number;
285
+ minRowCount: number;
286
+ removeRowText: string;
287
+ rowCount: number;
288
+ }
289
+ export declare const surveyMatrixDynamicNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
290
+ addRowText: z.ZodDefault<z.ZodString>;
291
+ columns: z.ZodDefault<z.ZodArray<typeof surveyMatrixColumnSchema>>;
292
+ maxRowCount: z.ZodDefault<z.ZodInt>;
293
+ minRowCount: z.ZodDefault<z.ZodInt>;
294
+ removeRowText: z.ZodDefault<z.ZodString>;
295
+ rowCount: z.ZodDefault<z.ZodInt>;
296
+ }>;
297
+ export type SurveyMatrixDynamicNode = BlockNode<SurveyNodeType.MatrixDynamic, SurveyMatrixDynamicNodeProps>;
298
+ export interface SurveyMatrixNodeProps extends SurveyQuestionBaseProps {
299
+ columns: SurveyChoice[];
300
+ isAllRowRequired: boolean;
301
+ rows: SurveyChoice[];
302
+ }
303
+ export declare const surveyMatrixNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
304
+ columns: z.ZodDefault<z.ZodArray<typeof surveyChoiceSchema>>;
305
+ isAllRowRequired: z.ZodDefault<z.ZodBoolean>;
306
+ rows: z.ZodDefault<z.ZodArray<typeof surveyChoiceSchema>>;
307
+ }>;
308
+ export type SurveyMatrixNode = BlockNode<SurveyNodeType.Matrix, SurveyMatrixNodeProps>;
309
+ export declare enum SurveyMultipleTextItemInputType {
310
+ Email = "email",
311
+ Number = "number",
312
+ Text = "text"
313
+ }
314
+ export interface SurveyMultipleTextItem {
315
+ inputType: SurveyMultipleTextItemInputType;
316
+ isRequired: boolean;
317
+ name: string;
318
+ title: string;
319
+ }
320
+ export declare const surveyMultipleTextItemSchema: z.ZodObject<{
321
+ inputType: z.ZodEnum<typeof SurveyMultipleTextItemInputType>;
322
+ isRequired: z.ZodDefault<z.ZodBoolean>;
323
+ name: typeof surveyNameSchema;
324
+ title: z.ZodDefault<z.ZodString>;
325
+ }>;
326
+ export interface SurveyMultipleTextNodeProps extends SurveyQuestionBaseProps {
327
+ items: SurveyMultipleTextItem[];
328
+ }
329
+ export declare const surveyMultipleTextNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
330
+ items: z.ZodDefault<z.ZodArray<typeof surveyMultipleTextItemSchema>>;
331
+ }>;
332
+ export type SurveyMultipleTextNode = BlockNode<SurveyNodeType.MultipleText, SurveyMultipleTextNodeProps>;
333
+ export type SurveyTemplateNode = Exclude<SurveyQuestionNode, SurveyPanelDynamicNode>;
334
+ export interface SurveyPanelDynamicNodeProps extends SurveyQuestionBaseProps {
335
+ addPanelText: string;
336
+ maxPanelCount: number;
337
+ minPanelCount: number;
338
+ panelCount: number;
339
+ removePanelText: string;
340
+ template: SurveyTemplateNode[];
341
+ }
342
+ export declare const surveyPanelDynamicNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
343
+ addPanelText: z.ZodDefault<z.ZodString>;
344
+ maxPanelCount: z.ZodDefault<z.ZodInt>;
345
+ minPanelCount: z.ZodDefault<z.ZodInt>;
346
+ panelCount: z.ZodDefault<z.ZodInt>;
347
+ removePanelText: z.ZodDefault<z.ZodString>;
348
+ }>;
349
+ export type SurveyPanelDynamicNode = BlockNode<SurveyNodeType.PanelDynamic, SurveyPanelDynamicNodeProps>;
350
+ export interface SurveyRadioGroupNodeProps extends SurveyChoiceOptionsProps, SurveyNoneChoiceProps, SurveyQuestionBaseProps {}
351
+ export declare const surveyRadioGroupNodePropsSchema: z.ZodObject<typeof surveyChoiceOptionsPropsShape & typeof surveyNoneChoicePropsShape & typeof surveyQuestionBasePropsShape>;
352
+ export type SurveyRadioGroupNode = BlockNode<SurveyNodeType.RadioGroup, SurveyRadioGroupNodeProps>;
353
+ export interface SurveyRankingNodeProps extends SurveyChoicesProps, SurveyQuestionBaseProps {}
354
+ export declare const surveyRankingNodePropsSchema: z.ZodObject<typeof surveyChoicesPropsShape & typeof surveyQuestionBasePropsShape>;
355
+ export type SurveyRankingNode = BlockNode<SurveyNodeType.Ranking, SurveyRankingNodeProps>;
356
+ export declare enum SurveyRatingType {
357
+ Labels = "labels",
358
+ Smileys = "smileys",
359
+ Stars = "stars"
360
+ }
361
+ export interface SurveyRatingNodeProps extends SurveyQuestionBaseProps {
362
+ maxRateDescription: string;
363
+ minRateDescription: string;
364
+ rateCount: number;
365
+ rateType: SurveyRatingType;
366
+ }
367
+ export declare const surveyRatingNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
368
+ maxRateDescription: z.ZodDefault<z.ZodString>;
369
+ minRateDescription: z.ZodDefault<z.ZodString>;
370
+ rateCount: z.ZodDefault<z.ZodInt>;
371
+ rateType: z.ZodDefault<z.ZodEnum<typeof SurveyRatingType>>;
372
+ }>;
373
+ export type SurveyRatingNode = BlockNode<SurveyNodeType.Rating, SurveyRatingNodeProps>;
374
+ export interface SurveySliderNodeProps extends SurveyQuestionBaseProps {
375
+ isValueVisible: boolean;
376
+ max: number;
377
+ min: number;
378
+ step: number;
379
+ }
380
+ export declare const surveySliderNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
381
+ isValueVisible: z.ZodDefault<z.ZodBoolean>;
382
+ max: z.ZodDefault<z.ZodNumber>;
383
+ min: z.ZodDefault<z.ZodNumber>;
384
+ step: z.ZodDefault<z.ZodNumber>;
385
+ }>;
386
+ export type SurveySliderNode = BlockNode<SurveyNodeType.Slider, SurveySliderNodeProps>;
387
+ export interface SurveyTagBoxNodeProps extends SurveyChoiceOptionsProps, SurveyQuestionBaseProps {
388
+ maxSelected?: number;
389
+ placeholder: string;
390
+ }
391
+ export declare const surveyTagBoxNodePropsSchema: z.ZodObject<typeof surveyChoiceOptionsPropsShape & typeof surveyQuestionBasePropsShape & {
392
+ maxSelected: z.ZodOptional<z.ZodInt>;
393
+ placeholder: z.ZodDefault<z.ZodString>;
394
+ }>;
395
+ export type SurveyTagBoxNode = BlockNode<SurveyNodeType.TagBox, SurveyTagBoxNodeProps>;
396
+ export declare enum SurveyTextInputType {
397
+ Date = "date",
398
+ DatetimeLocal = "datetime-local",
399
+ Email = "email",
400
+ Number = "number",
401
+ Password = "password",
402
+ Tel = "tel",
403
+ Text = "text",
404
+ Time = "time",
405
+ Url = "url"
406
+ }
407
+ export interface SurveyTextNodeProps extends SurveyQuestionBaseProps {
408
+ inputType: SurveyTextInputType;
409
+ max: string;
410
+ maxLength?: number;
411
+ min: string;
412
+ minLength?: number;
413
+ pattern: string;
414
+ placeholder: string;
415
+ }
416
+ export declare const surveyTextNodePropsSchema: z.ZodObject<typeof surveyQuestionBasePropsShape & {
417
+ inputType: z.ZodDefault<z.ZodEnum<typeof SurveyTextInputType>>;
418
+ max: z.ZodDefault<z.ZodString>;
419
+ maxLength: z.ZodOptional<z.ZodInt>;
420
+ min: z.ZodDefault<z.ZodString>;
421
+ minLength: z.ZodOptional<z.ZodInt>;
422
+ pattern: z.ZodDefault<z.ZodString>;
423
+ placeholder: z.ZodDefault<z.ZodString>;
424
+ }>;
425
+ export type SurveyTextNode = BlockNode<SurveyNodeType.Text, SurveyTextNodeProps>;
426
+ export type SurveyQuestionNode = SurveyBooleanNode | SurveyButtonGroupNode | SurveyCheckboxNode | SurveyCommentNode | SurveyDropdownNode | SurveyExpressionNode | SurveyHtmlNode | SurveyImageNode | SurveyImagePickerNode | SurveyMatrixDynamicNode | SurveyMatrixNode | SurveyMultipleTextNode | SurveyPanelDynamicNode | SurveyRadioGroupNode | SurveyRankingNode | SurveyRatingNode | SurveySliderNode | SurveyTagBoxNode | SurveyTextNode;
427
+ export type SurveyPlaceableNode = SurveyPanelNode | SurveyQuestionNode;
428
+ export interface SurveyPageNodeProps extends BlockNodeProps {
429
+ children: SurveyPlaceableNode[];
430
+ description: string;
431
+ title: string;
432
+ visibleIf: string;
433
+ }
434
+ export declare const surveyPageNodePropsSchema: z.ZodObject<typeof surveyContainerBasePropsShape>;
435
+ export type SurveyPageNode = BlockNode<SurveyNodeType.Page, SurveyPageNodeProps>;
436
+ export type SurveyNode = SurveyPageNode | SurveyPlaceableNode;
437
+ export declare enum SurveyProgressBarPlacement {
438
+ Bottom = "bottom",
439
+ Off = "off",
440
+ Top = "top"
441
+ }
442
+ export interface SurveyRootProps {
443
+ accentColor: string;
444
+ backgroundColor: string;
445
+ calculatedValues: SurveyCalculatedValue[];
446
+ completedHtml: string;
447
+ completeText: string;
448
+ description: string;
449
+ isQuestionNumbersVisible: boolean;
450
+ logo: string;
451
+ pageNextText: string;
452
+ pagePrevText: string;
453
+ showProgressBar: SurveyProgressBarPlacement;
454
+ title: string;
455
+ }
456
+ export declare const surveyRootPropsSchema: z.ZodObject<{
457
+ accentColor: z.ZodDefault<z.ZodString>;
458
+ backgroundColor: z.ZodDefault<z.ZodString>;
459
+ calculatedValues: z.ZodDefault<z.ZodArray<typeof surveyCalculatedValueSchema>>;
460
+ completedHtml: z.ZodDefault<z.ZodString>;
461
+ completeText: z.ZodDefault<z.ZodString>;
462
+ description: z.ZodDefault<z.ZodString>;
463
+ isQuestionNumbersVisible: z.ZodDefault<z.ZodBoolean>;
464
+ logo: z.ZodDefault<z.ZodString>;
465
+ pageNextText: z.ZodDefault<z.ZodString>;
466
+ pagePrevText: z.ZodDefault<z.ZodString>;
467
+ showProgressBar: z.ZodDefault<z.ZodEnum<typeof SurveyProgressBarPlacement>>;
468
+ title: z.ZodDefault<z.ZodString>;
469
+ }, z.core.$strict>;
470
+ export type SurveyDocument = BlockDocument<SurveyNode, SurveyRootProps, SurveyPageNode>;
471
+ export interface SurveyDocumentIssue {
472
+ message: string;
473
+ pointer: string;
474
+ }
475
+ export interface SurveyElementView {
476
+ children: SurveyElementView[];
477
+ isEnabled: boolean;
478
+ isRequired: boolean;
479
+ node: SurveyPlaceableNode;
480
+ pointer: string;
481
+ }
482
+ export interface SurveyNodeTypeDefinition<TNode extends BlockNode = BlockNode> extends BlockTypeDefinition<TNode> {
483
+ createDefaultProps: () => OwnProps<TNode["props"]>;
484
+ formSchema: z.ZodObject;
485
+ label: string;
486
+ }
487
+ export type SurveyNodeDefinitionMap = { [K in SurveyNode["type"]]: SurveyNodeTypeDefinition<Extract<SurveyNode, {
488
+ type: K;
489
+ }>>; };
490
+ export type SurveyNodeDefinition = SurveyNodeDefinitionMap[SurveyNode["type"]];
491
+ export interface SurveyPageError {
492
+ message: string;
493
+ name: string;
494
+ pointer: string;
495
+ }
496
+ export interface SurveyPanelRowView {
497
+ isEnabled: boolean;
498
+ isRequired: boolean;
499
+ node: SurveyTemplateNode;
500
+ }
501
+ export interface SurveyProgress {
502
+ current: number;
503
+ total: number;
504
+ }
505
+ export interface SurveyRunnerState {
506
+ answers: SurveyAnswers;
507
+ isCompleted: boolean;
508
+ pageIndex: number;
509
+ }
510
+ export interface SurveyRunnerCompletion {
511
+ answers: SurveyAnswers;
512
+ errors: SurveyPageError[];
513
+ state: SurveyRunnerState;
514
+ }
515
+ export interface SurveyRunnerMove {
516
+ errors: SurveyPageError[];
517
+ state: SurveyRunnerState;
518
+ }
519
+ export declare const boundedChildren: <TSchema extends z.ZodType>(schema: TSchema) => z.ZodArray<TSchema>;
520
+ export declare const checkSurveyCalculatedValues: (calculatedValues: readonly SurveyCalculatedValue[], listPointer: string, names: Set<string>, issues: SurveyDocumentIssue[]) => void;
521
+ export declare const checkSurveyDocument: (document: SurveyDocument) => SurveyDocumentIssue[];
522
+ export declare const checkSurveyExpressionField: (source: string, label: string, pointer: string, issues: SurveyDocumentIssue[]) => void;
523
+ export declare const checkSurveyMinimumWithinMaximum: (minimum: number | undefined, maximum: number | undefined, minimumPointer: string, issues: SurveyDocumentIssue[]) => void;
524
+ export declare const checkSurveyNodes: (nodes: readonly SurveyNode[], listPointer: string, names: Set<string>, issues: SurveyDocumentIssue[]) => void;
525
+ export declare const checkSurveyNoneChoice: (props: SurveyChoicesProps & SurveyNoneChoiceProps, nodePointer: string, issues: SurveyDocumentIssue[]) => void;
526
+ export declare const checkSurveyOptionalExpression: (source: string, label: string, pointer: string, issues: SurveyDocumentIssue[]) => void;
527
+ export declare const checkSurveyQuestion: (props: SurveyQuestionBaseProps, nodePointer: string, names: Set<string>, issues: SurveyDocumentIssue[]) => void;
528
+ export declare const MAX_SURVEY_QUESTION_NAME_LENGTH = 256;
529
+ export declare const MAX_SURVEY_QUESTION_COUNT = 1e3;
530
+ export declare const MAX_SURVEY_NODE_COUNT = 1500;
531
+ export declare const MAX_SURVEY_CHOICE_COUNT = 200;
532
+ export declare const MAX_SURVEY_MULTIPLE_TEXT_ITEM_COUNT = 50;
533
+ export declare const MAX_SURVEY_COMMENT_ROW_COUNT = 20;
534
+ export declare const MAX_SURVEY_PANEL_COUNT = 20;
535
+ export declare const MAX_SURVEY_MATRIX_COLUMN_COUNT = 50;
536
+ export declare const MAX_SURVEY_MATRIX_ROW_COUNT = 100;
537
+ export declare const MAX_SURVEY_TEXT_LENGTH = 1e3;
538
+ export declare const MAX_SURVEY_IMAGE_SIZE = 2048;
539
+ export declare const MAX_SURVEY_HTML_LENGTH = 2e4;
540
+ export declare const MAX_SURVEY_ID_LENGTH = 64;
541
+ export declare const MAX_SURVEY_VALIDATOR_COUNT = 20;
542
+ export declare const MAX_SURVEY_CALCULATED_VALUE_COUNT = 100;
543
+ export declare const MAX_SURVEY_PATTERN_LENGTH = 200;
544
+ export declare const MAX_SURVEY_URL_LENGTH = 2048;
545
+ export declare const MAX_SURVEY_ANSWER_LENGTH = 1e4;
546
+ export declare const MAX_SURVEY_ANSWER_ENTRY_COUNT = 200;
547
+ export declare const createSeededRandom: (seed: number) => (() => number);
548
+ export declare const createSurveyDocument: () => SurveyDocument;
549
+ export declare const flattenSurveyQuestions: (nodes: SurveyNode[]) => SurveyQuestionNode[];
550
+ export declare const getSurveyChoiceText: ({ text, value }: SurveyChoice) => string;
551
+ export declare const getSurveyOrderedChoices: (choices: SurveyChoice[], choicesOrder: SurveyChoicesOrder, seed: string) => SurveyChoice[];
552
+ export declare const hashSurveySeed: (seed: string) => number;
553
+ export declare const createSurveyBooleanAnswerSchema: () => z.ZodBoolean;
554
+ export declare const createSurveyButtonGroupAnswerSchema: (node: SurveyButtonGroupNode) => z.ZodType;
555
+ export declare const createSurveyCheckboxAnswerSchema: (node: SurveyCheckboxNode) => z.ZodType;
556
+ export declare const createSurveyChoiceValueSchema: ({ choices, hasNone, hasOther }: {
557
+ choices: SurveyChoice[];
558
+ hasNone?: boolean;
559
+ hasOther?: boolean;
560
+ }) => z.ZodType<number | string>;
561
+ export declare const createSurveyCommentAnswerSchema: (node: SurveyCommentNode) => z.ZodType;
562
+ export declare const createSurveyDropdownAnswerSchema: (node: SurveyDropdownNode) => z.ZodType;
563
+ export declare const createSurveyExpressionAnswerSchema: () => z.ZodType;
564
+ export declare const createSurveyImagePickerAnswerSchema: (node: SurveyImagePickerNode) => z.ZodType;
565
+ export declare const createSurveyMatrixAnswerSchema: (node: SurveyMatrixNode) => z.ZodType;
566
+ export declare const createSurveyMatrixCellAnswerSchema: (column: SurveyMatrixColumn) => z.ZodType;
567
+ export declare const createSurveyMatrixDynamicAnswerSchema: (node: SurveyMatrixDynamicNode) => z.ZodType;
568
+ export declare const createSurveyMultipleTextAnswerSchema: (node: SurveyMultipleTextNode) => z.ZodType;
569
+ export declare const createSurveyNamedAnswerSchema: (fields: {
570
+ isRequired?: boolean;
571
+ name: string;
572
+ schema: z.ZodType;
573
+ }[]) => z.ZodType;
574
+ export declare const createSurveyNumberAnswerSchema: ({ max, min }: {
575
+ max?: number;
576
+ min?: number;
577
+ }) => z.ZodNumber;
578
+ export declare const createSurveyPanelDynamicAnswerSchema: (node: SurveyPanelDynamicNode, createTemplateAnswerSchema: (node: SurveyTemplateNode) => z.ZodType, values: SurveyLogicContext["values"], now: Date) => z.ZodType;
579
+ export declare const createSurveyPatternAnswerSchema: (schema: z.ZodType<string>, pattern: string) => z.ZodType<string>;
580
+ export declare const createSurveyRadioGroupAnswerSchema: (node: SurveyRadioGroupNode) => z.ZodType;
581
+ export declare const createSurveyRankingAnswerSchema: (node: SurveyRankingNode) => z.ZodType;
582
+ export declare const createSurveyRatingAnswerSchema: (node: SurveyRatingNode) => z.ZodType;
583
+ export declare const createSurveyRatingValueSchema: (rateCount: number) => z.ZodNumber;
584
+ export declare const createSurveySelectionAnswerSchema: ({ choices, hasNone, hasOther, maxSelected, minSelected }: {
585
+ choices: SurveyChoice[];
586
+ hasNone?: boolean;
587
+ hasOther?: boolean;
588
+ maxSelected?: number;
589
+ minSelected?: number;
590
+ }) => z.ZodArray<z.ZodType<number | string>>;
591
+ export declare const createSurveySliderAnswerSchema: (node: SurveySliderNode) => z.ZodType;
592
+ export declare const createSurveyStringAnswerSchema: ({ maxLength, minLength }: {
593
+ maxLength?: number;
594
+ minLength?: number;
595
+ }) => z.ZodString;
596
+ export declare const createSurveyStringRangeAnswerSchema: ({ max, min }: {
597
+ max: string;
598
+ min: string;
599
+ }) => z.ZodString;
600
+ export declare const createSurveyTagBoxAnswerSchema: (node: SurveyTagBoxNode) => z.ZodType;
601
+ export declare const createSurveyTextAnswerSchema: (node: SurveyTextNode) => z.ZodType;
602
+ export declare const parseSurveyNumberBound: (bound: string) => number | undefined;
603
+ export declare const checkIsLastSurveyPage: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => boolean;
604
+ export declare const checkIsSurveyAnsweringNode: (node: SurveyNode) => node is Exclude<SurveyNode, SurveyHtmlNode | SurveyImageNode | SurveyPageNode | SurveyPanelNode>;
605
+ export declare const checkSurveyAnswerEmpty: (value: unknown) => boolean;
606
+ export declare const checkSurveyExpressionHolds: (source: string, values: SurveyLogicContext["values"], now: Date, scopes?: SurveyLogicContext["scopes"]) => boolean;
607
+ export declare const checkSurveyNodeEnabled: (node: SurveyNode, values: SurveyLogicContext["values"], now: Date, scopes?: SurveyLogicContext["scopes"]) => boolean;
608
+ export declare const checkSurveyNodeRequired: (node: SurveyNode, values: SurveyLogicContext["values"], now: Date, scopes?: SurveyLogicContext["scopes"]) => boolean;
609
+ export declare const checkSurveyNodeVisible: (node: SurveyNode, values: SurveyLogicContext["values"], now: Date, scopes?: SurveyLogicContext["scopes"]) => boolean;
610
+ export declare const completeSurvey: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyRunnerCompletion;
611
+ export declare const SURVEY_REQUIRED_MESSAGE = "Please answer this question.";
612
+ export declare const SURVEY_INVALID_ANSWER_MESSAGE = "This answer is not valid.";
613
+ export declare const SURVEY_TOO_SHORT_MESSAGE = "This answer is too short.";
614
+ export declare const SURVEY_TOO_LONG_MESSAGE = "This answer is too long.";
615
+ export declare const SURVEY_TOO_FEW_SELECTED_MESSAGE = "Select more choices.";
616
+ export declare const SURVEY_TOO_MANY_SELECTED_MESSAGE = "Select fewer choices.";
617
+ export declare const SURVEY_OUT_OF_RANGE_MESSAGE = "This answer is out of range.";
618
+ export declare const SURVEY_NOT_A_CHOICE_MESSAGE = "This answer is not one of the choices.";
619
+ export declare const SURVEY_WRONG_COUNT_MESSAGE = "This answer has the wrong number of rows or panels.";
620
+ export declare const MATRIX_CELL_RATING_COUNT = 5;
621
+ export declare const SURVEY_NONE_ANSWER = "none";
622
+ export declare const SURVEY_UNKNOWN_QUESTION_MESSAGE = "Unknown question";
623
+ export declare const SURVEY_NOT_SHOWN_MESSAGE = "This question is not shown";
624
+ export declare const createSurveyAnswerSchema: (node: SurveyQuestionNode, values: SurveyLogicContext["values"], now: Date) => z.ZodType;
625
+ export declare const createSurveyNestedAnswerSchema: (inner: z.ZodType<SurveyAnswerValue>) => z.ZodType<SurveyAnswerValue>;
626
+ export declare const createSurveyRunnerState: (document: SurveyDocument, answers: SurveyAnswers, pageIndex: number) => SurveyRunnerState;
627
+ export declare const flattenSurveyElementViews: (views: SurveyElementView[]) => SurveyElementView[];
628
+ export declare const getSurveyElementViews: (nodes: SurveyPlaceableNode[], listPointer: string, values: SurveyLogicContext["values"], now: Date, isParentEnabled: boolean) => SurveyElementView[];
629
+ export declare const getSurveyExpressionNodes: (document: SurveyDocument) => SurveyExpressionNode[];
630
+ export declare const getSurveyPageElements: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyElementView[];
631
+ export declare const getSurveyPageErrors: (document: SurveyDocument, pageIndex: number, answers: SurveyAnswers, values: SurveyLogicContext["values"], now: Date) => SurveyPageError[];
632
+ export declare const getSurveyPageViews: (document: SurveyDocument, pageIndex: number, values: SurveyLogicContext["values"], now: Date) => SurveyElementView[];
633
+ export declare const getSurveyPanelRowAnswers: (node: SurveyPanelDynamicNode, row: SurveyAnswers, values: SurveyLogicContext["values"], now: Date) => SurveyAnswers;
634
+ export declare const getSurveyPanelRowViews: (node: SurveyPanelDynamicNode, row: Record<string, SurveyAnswerValue | undefined>, values: SurveyLogicContext["values"], now: Date) => SurveyPanelRowView[];
635
+ export declare const getSurveyProgress: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyProgress;
636
+ export declare const getSurveyQuestionErrors: (view: SurveyElementView, answers: SurveyAnswers, values: SurveyLogicContext["values"], now: Date) => SurveyPageError[];
637
+ export declare const getSurveyRunnerValues: (document: SurveyDocument, answers: SurveyAnswers, now: Date) => SurveyLogicContext["values"];
638
+ export declare const getSurveyVisiblePageIndexes: (document: SurveyDocument, answers: SurveyAnswers, now: Date) => number[];
639
+ export declare const getSurveyVisiblePageIndexesFromValues: (document: SurveyDocument, values: SurveyLogicContext["values"], now: Date) => number[];
640
+ export declare const goToNextSurveyPage: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyRunnerMove;
641
+ export declare const goToPreviousSurveyPage: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyRunnerState;
642
+ export declare const setSurveyAnswer: (state: SurveyRunnerState, name: string, value?: SurveyAnswerValue) => SurveyRunnerState;
643
+ export declare const surveyAnswerScalarSchema: z.ZodType<boolean | number | string>;
644
+ export declare const surveyAnswerValueSchema: z.ZodType<SurveyAnswerValue>;
645
+ export declare const toSurveyAnswerValue: (value: SurveyLogicValue) => SurveyAnswerValue | undefined;
646
+ export declare const toSurveyPanelScope: (row: Record<string, SurveyAnswerValue | undefined>) => SurveyLogicRecord;
647
+ export declare const validateSurveyAnswers: (document: SurveyDocument, answers: SurveyAnswers, mode: SurveyAnswerValidationMode, now: Date) => SurveyAnswerIssue[];
648
+ export declare const validateSurveyPage: (document: SurveyDocument, state: SurveyRunnerState, now: Date) => SurveyPageError[];
649
+ export declare const surveyBooleanNodeType: {
650
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyBooleanNode>["createDefaultProps"];
651
+ formSchema: typeof surveyBooleanNodePropsSchema;
652
+ label: string;
653
+ propsSchema: typeof surveyBooleanNodePropsSchema;
654
+ slots: SurveyNodeTypeDefinition<SurveyBooleanNode>["slots"];
655
+ type: SurveyNodeType.Boolean;
656
+ };
657
+ export declare const surveyButtonGroupNodeType: {
658
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyButtonGroupNode>["createDefaultProps"];
659
+ formSchema: typeof surveyButtonGroupNodePropsSchema;
660
+ label: string;
661
+ propsSchema: typeof surveyButtonGroupNodePropsSchema;
662
+ slots: SurveyNodeTypeDefinition<SurveyButtonGroupNode>["slots"];
663
+ type: SurveyNodeType.ButtonGroup;
664
+ };
665
+ export declare const surveyCheckboxNodeType: {
666
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyCheckboxNode>["createDefaultProps"];
667
+ formSchema: typeof surveyCheckboxNodePropsSchema;
668
+ label: string;
669
+ propsSchema: typeof surveyCheckboxNodePropsSchema;
670
+ slots: SurveyNodeTypeDefinition<SurveyCheckboxNode>["slots"];
671
+ type: SurveyNodeType.Checkbox;
672
+ };
673
+ export declare const surveyCommentNodeType: {
674
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyCommentNode>["createDefaultProps"];
675
+ formSchema: typeof surveyCommentNodePropsSchema;
676
+ label: string;
677
+ propsSchema: typeof surveyCommentNodePropsSchema;
678
+ slots: SurveyNodeTypeDefinition<SurveyCommentNode>["slots"];
679
+ type: SurveyNodeType.Comment;
680
+ };
681
+ export declare const surveyDocumentSchema: z.ZodType<SurveyDocument, BlockDocumentInput>;
682
+ export declare const surveyDropdownNodeType: {
683
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyDropdownNode>["createDefaultProps"];
684
+ formSchema: typeof surveyDropdownNodePropsSchema;
685
+ label: string;
686
+ propsSchema: typeof surveyDropdownNodePropsSchema;
687
+ slots: SurveyNodeTypeDefinition<SurveyDropdownNode>["slots"];
688
+ type: SurveyNodeType.Dropdown;
689
+ };
690
+ export declare const surveyExpressionNodeType: {
691
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyExpressionNode>["createDefaultProps"];
692
+ formSchema: typeof surveyExpressionNodePropsSchema;
693
+ label: string;
694
+ propsSchema: typeof surveyExpressionNodePropsSchema;
695
+ slots: SurveyNodeTypeDefinition<SurveyExpressionNode>["slots"];
696
+ type: SurveyNodeType.Expression;
697
+ };
698
+ export declare const surveyHtmlNodeType: {
699
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyHtmlNode>["createDefaultProps"];
700
+ formSchema: typeof surveyHtmlNodePropsSchema;
701
+ label: string;
702
+ propsSchema: typeof surveyHtmlNodePropsSchema;
703
+ slots: SurveyNodeTypeDefinition<SurveyHtmlNode>["slots"];
704
+ type: SurveyNodeType.Html;
705
+ };
706
+ export declare const surveyIdSchema: z.ZodString;
707
+ export declare const surveyImageNodeType: {
708
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyImageNode>["createDefaultProps"];
709
+ formSchema: typeof surveyImageNodePropsSchema;
710
+ label: string;
711
+ propsSchema: typeof surveyImageNodePropsSchema;
712
+ slots: SurveyNodeTypeDefinition<SurveyImageNode>["slots"];
713
+ type: SurveyNodeType.Image;
714
+ };
715
+ export declare const surveyImagePickerNodeType: {
716
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyImagePickerNode>["createDefaultProps"];
717
+ formSchema: typeof surveyImagePickerNodePropsSchema;
718
+ label: string;
719
+ propsSchema: typeof surveyImagePickerNodePropsSchema;
720
+ slots: SurveyNodeTypeDefinition<SurveyImagePickerNode>["slots"];
721
+ type: SurveyNodeType.ImagePicker;
722
+ };
723
+ export declare const surveyMatrixDynamicNodeType: {
724
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyMatrixDynamicNode>["createDefaultProps"];
725
+ formSchema: typeof surveyMatrixDynamicNodePropsSchema;
726
+ label: string;
727
+ propsSchema: typeof surveyMatrixDynamicNodePropsSchema;
728
+ slots: SurveyNodeTypeDefinition<SurveyMatrixDynamicNode>["slots"];
729
+ type: SurveyNodeType.MatrixDynamic;
730
+ };
731
+ export declare const surveyMatrixNodeType: {
732
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyMatrixNode>["createDefaultProps"];
733
+ formSchema: typeof surveyMatrixNodePropsSchema;
734
+ label: string;
735
+ propsSchema: typeof surveyMatrixNodePropsSchema;
736
+ slots: SurveyNodeTypeDefinition<SurveyMatrixNode>["slots"];
737
+ type: SurveyNodeType.Matrix;
738
+ };
739
+ export declare const surveyMultipleTextNodeType: {
740
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyMultipleTextNode>["createDefaultProps"];
741
+ formSchema: typeof surveyMultipleTextNodePropsSchema;
742
+ label: string;
743
+ propsSchema: typeof surveyMultipleTextNodePropsSchema;
744
+ slots: SurveyNodeTypeDefinition<SurveyMultipleTextNode>["slots"];
745
+ type: SurveyNodeType.MultipleText;
746
+ };
747
+ export declare const surveyNodeChildren: BlockChildren<SurveyNode>;
748
+ export declare const surveyPlaceableNodeSchema: z.ZodType<SurveyPlaceableNode>;
749
+ export declare const surveyPageNodeSchema: z.ZodType<SurveyPageNode>;
750
+ export declare const surveyNodeSchema: z.ZodType<SurveyNode>;
751
+ export declare const surveyNodeTypeDefinitionMap: SurveyNodeDefinitionMap;
752
+ export declare const SURVEY_ROOT_NODE_TYPES: SurveyNodeType.Page[];
753
+ export declare const SURVEY_PLACEABLE_NODE_TYPES: SurveyPlaceableNode["type"][];
754
+ export declare const SURVEY_TEMPLATE_NODE_TYPES: SurveyTemplateNode["type"][];
755
+ export declare const surveyPageNodeType: {
756
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyPageNode>["createDefaultProps"];
757
+ formSchema: typeof surveyPageNodePropsSchema;
758
+ label: string;
759
+ propsSchema: typeof surveyPageNodePropsSchema;
760
+ slots: SurveyNodeTypeDefinition<SurveyPageNode>["slots"];
761
+ type: SurveyNodeType.Page;
762
+ };
763
+ export declare const surveyPanelDynamicNodeType: {
764
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyPanelDynamicNode>["createDefaultProps"];
765
+ formSchema: typeof surveyPanelDynamicNodePropsSchema;
766
+ label: string;
767
+ propsSchema: typeof surveyPanelDynamicNodePropsSchema;
768
+ slots: SurveyNodeTypeDefinition<SurveyPanelDynamicNode>["slots"];
769
+ type: SurveyNodeType.PanelDynamic;
770
+ };
771
+ export declare const surveyPanelNodeType: {
772
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyPanelNode>["createDefaultProps"];
773
+ formSchema: typeof surveyPanelNodePropsSchema;
774
+ label: string;
775
+ propsSchema: typeof surveyPanelNodePropsSchema;
776
+ slots: SurveyNodeTypeDefinition<SurveyPanelNode>["slots"];
777
+ type: SurveyNodeType.Panel;
778
+ };
779
+ export declare const surveyRadioGroupNodeType: {
780
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyRadioGroupNode>["createDefaultProps"];
781
+ formSchema: typeof surveyRadioGroupNodePropsSchema;
782
+ label: string;
783
+ propsSchema: typeof surveyRadioGroupNodePropsSchema;
784
+ slots: SurveyNodeTypeDefinition<SurveyRadioGroupNode>["slots"];
785
+ type: SurveyNodeType.RadioGroup;
786
+ };
787
+ export declare const surveyRankingNodeType: {
788
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyRankingNode>["createDefaultProps"];
789
+ formSchema: typeof surveyRankingNodePropsSchema;
790
+ label: string;
791
+ propsSchema: typeof surveyRankingNodePropsSchema;
792
+ slots: SurveyNodeTypeDefinition<SurveyRankingNode>["slots"];
793
+ type: SurveyNodeType.Ranking;
794
+ };
795
+ export declare const surveyRatingNodeType: {
796
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyRatingNode>["createDefaultProps"];
797
+ formSchema: typeof surveyRatingNodePropsSchema;
798
+ label: string;
799
+ propsSchema: typeof surveyRatingNodePropsSchema;
800
+ slots: SurveyNodeTypeDefinition<SurveyRatingNode>["slots"];
801
+ type: SurveyNodeType.Rating;
802
+ };
803
+ export declare const surveyRegistry: BlockRegistry<SurveyNode, SurveyRootProps, SurveyNodeDefinition>;
804
+ export declare const surveySliderNodeType: {
805
+ createDefaultProps: SurveyNodeTypeDefinition<SurveySliderNode>["createDefaultProps"];
806
+ formSchema: typeof surveySliderNodePropsSchema;
807
+ label: string;
808
+ propsSchema: typeof surveySliderNodePropsSchema;
809
+ slots: SurveyNodeTypeDefinition<SurveySliderNode>["slots"];
810
+ type: SurveyNodeType.Slider;
811
+ };
812
+ export declare const surveyTagBoxNodeType: {
813
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyTagBoxNode>["createDefaultProps"];
814
+ formSchema: typeof surveyTagBoxNodePropsSchema;
815
+ label: string;
816
+ propsSchema: typeof surveyTagBoxNodePropsSchema;
817
+ slots: SurveyNodeTypeDefinition<SurveyTagBoxNode>["slots"];
818
+ type: SurveyNodeType.TagBox;
819
+ };
820
+ export declare const surveyTextNodeType: {
821
+ createDefaultProps: SurveyNodeTypeDefinition<SurveyTextNode>["createDefaultProps"];
822
+ formSchema: typeof surveyTextNodePropsSchema;
823
+ label: string;
824
+ propsSchema: typeof surveyTextNodePropsSchema;
825
+ slots: SurveyNodeTypeDefinition<SurveyTextNode>["slots"];
826
+ type: SurveyNodeType.Text;
827
+ };