freemium-survey-components 0.8.9 → 0.8.13
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/lib/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/types/mock.d.ts +129 -22
- package/lib/types/survey/Illustrations.d.ts +2 -0
- package/lib/types/survey/index.d.ts +3 -1
- package/package.json +1 -1
- package/lib/my-custom-file-name.css +0 -705
package/lib/types/mock.d.ts
CHANGED
|
@@ -6,10 +6,9 @@ declare const _default: {
|
|
|
6
6
|
gratitude_message: string;
|
|
7
7
|
ui_branding: {
|
|
8
8
|
footer_html: string;
|
|
9
|
-
logo_url: string;
|
|
10
9
|
};
|
|
11
10
|
meta: {
|
|
12
|
-
blocks: {
|
|
11
|
+
blocks: ({
|
|
13
12
|
name: string;
|
|
14
13
|
title: string;
|
|
15
14
|
order: number;
|
|
@@ -19,7 +18,37 @@ declare const _default: {
|
|
|
19
18
|
is_based_on_score: boolean;
|
|
20
19
|
is_same_for_all: boolean;
|
|
21
20
|
jump_logic: null;
|
|
22
|
-
|
|
21
|
+
question_score_category?: undefined;
|
|
22
|
+
position?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
order: number;
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
question_names: string[];
|
|
29
|
+
question_score_category: {
|
|
30
|
+
promoter: string;
|
|
31
|
+
passive: string;
|
|
32
|
+
detractor: string;
|
|
33
|
+
};
|
|
34
|
+
required: boolean;
|
|
35
|
+
is_based_on_score: boolean;
|
|
36
|
+
is_same_for_all: boolean;
|
|
37
|
+
jump_logic: null;
|
|
38
|
+
position?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
order: number;
|
|
42
|
+
type: string;
|
|
43
|
+
title: string;
|
|
44
|
+
question_names: string[];
|
|
45
|
+
position: number;
|
|
46
|
+
required: boolean;
|
|
47
|
+
is_based_on_score: boolean;
|
|
48
|
+
is_same_for_all: boolean;
|
|
49
|
+
jump_logic: null;
|
|
50
|
+
question_score_category?: undefined;
|
|
51
|
+
})[];
|
|
23
52
|
};
|
|
24
53
|
question_details: {
|
|
25
54
|
questions: ({
|
|
@@ -36,6 +65,7 @@ declare const _default: {
|
|
|
36
65
|
choices: {
|
|
37
66
|
value: number;
|
|
38
67
|
position: number;
|
|
68
|
+
dependent_question_names: string[];
|
|
39
69
|
}[];
|
|
40
70
|
linear_scale: {
|
|
41
71
|
button_style: string;
|
|
@@ -46,7 +76,37 @@ declare const _default: {
|
|
|
46
76
|
end: string;
|
|
47
77
|
};
|
|
48
78
|
footer_text: string;
|
|
79
|
+
meta: {
|
|
80
|
+
branches: {
|
|
81
|
+
min: number;
|
|
82
|
+
max: number;
|
|
83
|
+
id: string;
|
|
84
|
+
}[];
|
|
85
|
+
branchType: string;
|
|
86
|
+
placeholder?: undefined;
|
|
87
|
+
readOnly?: undefined;
|
|
88
|
+
};
|
|
89
|
+
text?: undefined;
|
|
90
|
+
type_info?: undefined;
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
text: string;
|
|
94
|
+
name: string;
|
|
95
|
+
position: number;
|
|
96
|
+
type_info: {
|
|
97
|
+
pivot_question: boolean;
|
|
98
|
+
question_type: string;
|
|
99
|
+
choices: {
|
|
100
|
+
value: string;
|
|
101
|
+
position: number;
|
|
102
|
+
}[];
|
|
103
|
+
validation?: undefined;
|
|
104
|
+
linear_scale?: undefined;
|
|
105
|
+
score_presets?: undefined;
|
|
106
|
+
footer_text?: undefined;
|
|
49
107
|
meta?: undefined;
|
|
108
|
+
text?: undefined;
|
|
109
|
+
type_info?: undefined;
|
|
50
110
|
};
|
|
51
111
|
} | {
|
|
52
112
|
text: string;
|
|
@@ -57,23 +117,17 @@ declare const _default: {
|
|
|
57
117
|
question_type: string;
|
|
58
118
|
meta: {
|
|
59
119
|
placeholder: string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
proceedBtnText: string;
|
|
63
|
-
othersOption: boolean;
|
|
64
|
-
othersRequired: boolean;
|
|
120
|
+
branches?: undefined;
|
|
121
|
+
branchType?: undefined;
|
|
65
122
|
readOnly?: undefined;
|
|
66
|
-
redirectUrl?: undefined;
|
|
67
|
-
skipThankYouPage?: undefined;
|
|
68
123
|
};
|
|
69
|
-
choices: {
|
|
70
|
-
value: string;
|
|
71
|
-
position: number;
|
|
72
|
-
}[];
|
|
73
124
|
validation?: undefined;
|
|
125
|
+
choices?: undefined;
|
|
74
126
|
linear_scale?: undefined;
|
|
75
127
|
score_presets?: undefined;
|
|
76
128
|
footer_text?: undefined;
|
|
129
|
+
text?: undefined;
|
|
130
|
+
type_info?: undefined;
|
|
77
131
|
};
|
|
78
132
|
} | {
|
|
79
133
|
text: string;
|
|
@@ -84,30 +138,75 @@ declare const _default: {
|
|
|
84
138
|
question_type: string;
|
|
85
139
|
meta: {
|
|
86
140
|
readOnly: boolean;
|
|
87
|
-
|
|
88
|
-
|
|
141
|
+
branches?: undefined;
|
|
142
|
+
branchType?: undefined;
|
|
89
143
|
placeholder?: undefined;
|
|
90
|
-
autoProceed?: undefined;
|
|
91
|
-
autoProceedDelay?: undefined;
|
|
92
|
-
proceedBtnText?: undefined;
|
|
93
|
-
othersOption?: undefined;
|
|
94
|
-
othersRequired?: undefined;
|
|
95
144
|
};
|
|
96
145
|
validation?: undefined;
|
|
97
146
|
choices?: undefined;
|
|
98
147
|
linear_scale?: undefined;
|
|
99
148
|
score_presets?: undefined;
|
|
100
149
|
footer_text?: undefined;
|
|
150
|
+
text?: undefined;
|
|
151
|
+
type_info?: undefined;
|
|
152
|
+
};
|
|
153
|
+
} | {
|
|
154
|
+
name: string;
|
|
155
|
+
position: number;
|
|
156
|
+
text: string;
|
|
157
|
+
type_info: {
|
|
158
|
+
text: string;
|
|
159
|
+
type_info: {
|
|
160
|
+
pivot_question: boolean;
|
|
161
|
+
question_type: string;
|
|
162
|
+
};
|
|
163
|
+
question_type: string;
|
|
164
|
+
choices: {
|
|
165
|
+
value: string;
|
|
166
|
+
position: number;
|
|
167
|
+
}[];
|
|
168
|
+
pivot_question?: undefined;
|
|
169
|
+
validation?: undefined;
|
|
170
|
+
linear_scale?: undefined;
|
|
171
|
+
score_presets?: undefined;
|
|
172
|
+
footer_text?: undefined;
|
|
173
|
+
meta?: undefined;
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
name: string;
|
|
177
|
+
position: number;
|
|
178
|
+
text: string;
|
|
179
|
+
type_info: {
|
|
180
|
+
text: string;
|
|
181
|
+
meta: {
|
|
182
|
+
placeholder: string;
|
|
183
|
+
branches?: undefined;
|
|
184
|
+
branchType?: undefined;
|
|
185
|
+
readOnly?: undefined;
|
|
186
|
+
};
|
|
187
|
+
pivot_question: boolean;
|
|
188
|
+
question_type: string;
|
|
189
|
+
validation?: undefined;
|
|
190
|
+
choices?: undefined;
|
|
191
|
+
linear_scale?: undefined;
|
|
192
|
+
score_presets?: undefined;
|
|
193
|
+
footer_text?: undefined;
|
|
194
|
+
type_info?: undefined;
|
|
101
195
|
};
|
|
102
196
|
})[];
|
|
103
197
|
};
|
|
104
198
|
channels: string[];
|
|
105
199
|
state: string;
|
|
106
|
-
ui_theme: {
|
|
200
|
+
ui_theme: {
|
|
201
|
+
primary_text_color: string;
|
|
202
|
+
question_background: string;
|
|
203
|
+
question_text_color: string;
|
|
204
|
+
};
|
|
107
205
|
channel_info: {
|
|
108
206
|
email_channel_info: {
|
|
109
207
|
dkim_settings: null;
|
|
110
208
|
email_body: string;
|
|
209
|
+
email_body_bottom: string;
|
|
111
210
|
footer: string;
|
|
112
211
|
from_email: string;
|
|
113
212
|
from_name: string;
|
|
@@ -120,5 +219,13 @@ declare const _default: {
|
|
|
120
219
|
link_channel_info: null;
|
|
121
220
|
web_in_app_info: null;
|
|
122
221
|
};
|
|
222
|
+
schedule_info: null;
|
|
223
|
+
contact_info: null;
|
|
224
|
+
throttle_info: null;
|
|
225
|
+
email_channel_info: {
|
|
226
|
+
email_body: string;
|
|
227
|
+
email_body_bottom: string;
|
|
228
|
+
subject: string;
|
|
229
|
+
};
|
|
123
230
|
};
|
|
124
231
|
export default _default;
|
|
@@ -6,6 +6,7 @@ interface SurveyProps {
|
|
|
6
6
|
survey: {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
|
+
placeholders: any;
|
|
9
10
|
npsValue?: number;
|
|
10
11
|
widget?: boolean;
|
|
11
12
|
widgetNavigatorQuerySelector?: string;
|
|
@@ -15,6 +16,7 @@ interface SurveyProps {
|
|
|
15
16
|
surveyContainerWidth?: string;
|
|
16
17
|
widgetStyle?: 'default' | 'cozy' | 'compact';
|
|
17
18
|
preview?: boolean;
|
|
19
|
+
mobilePreview?: boolean;
|
|
18
20
|
}
|
|
19
|
-
declare const Survey: ({ survey, onSubmit, widget, surveyContainerWidth, npsValue, widgetStyle, widgetNavigatorQuerySelector, preview, }: SurveyProps) => JSX.Element | null;
|
|
21
|
+
declare const Survey: ({ survey, placeholders, onSubmit, widget, surveyContainerWidth, npsValue, widgetStyle, widgetNavigatorQuerySelector, preview, mobilePreview, }: SurveyProps) => JSX.Element | null;
|
|
20
22
|
export { Survey };
|