freemium-survey-components 1.0.272 → 1.0.273

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonStyleShapeTypes, ButtonStyleTypes, PropertiesLabelsPreferenceType, QuestionTypeVariantType, ScalePropertiesOrderType, WidgetStyles } from '../../types';
2
3
  declare type RangeStoryProps = {
3
4
  btShape: ButtonStyleShapeTypes;
@@ -0,0 +1,2 @@
1
+ import './style.scss';
2
+ export declare const Tooltip: () => JSX.Element;
@@ -198,7 +198,7 @@ export declare type SurveyQuestionType = {
198
198
  question_weightage?: QuestionWeightageType | null;
199
199
  };
200
200
  declare type QuestionWeightageType = {
201
- is_choice_scoring_enabled: boolean;
201
+ is_scoring_enabled: boolean;
202
202
  weightage: {
203
203
  [key: string]: number;
204
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "1.0.272",
3
+ "version": "1.0.273",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
File without changes
@@ -1,59 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.scss';
3
- export declare type ButtonShapeType = 'rounded' | 'square' | 'curved';
4
- declare type NPSProps = {
5
- type_info: {
6
- linear_scale: {
7
- button_shape: ButtonShapeType;
8
- button_style: 'standard' | 'highlighted';
9
- };
10
- validation: {
11
- min: number;
12
- };
13
- rating_presets: {
14
- start: string;
15
- end: string;
16
- };
17
- footer_text: string;
18
- };
19
- onChangeHandler: (value: number) => void;
20
- npsValue?: number;
21
- };
22
- declare const NPS: {
23
- (props: NPSProps): JSX.Element;
24
- displayName: string;
25
- __docgenInfo: {
26
- description: string;
27
- displayName: string;
28
- props: {
29
- type_info: {
30
- defaultValue: null;
31
- description: string;
32
- name: string;
33
- required: boolean;
34
- type: {
35
- name: string;
36
- };
37
- };
38
- onChangeHandler: {
39
- defaultValue: null;
40
- description: string;
41
- name: string;
42
- required: boolean;
43
- type: {
44
- name: string;
45
- };
46
- };
47
- npsValue: {
48
- defaultValue: null;
49
- description: string;
50
- name: string;
51
- required: boolean;
52
- type: {
53
- name: string;
54
- };
55
- };
56
- };
57
- };
58
- };
59
- export { NPS };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ThankYouIllustration: {
3
- (): JSX.Element;
4
- parameters: any;
5
- };
@@ -1,19 +0,0 @@
1
- export declare const isEmpty: {
2
- (value: unknown): boolean;
3
- displayName: string;
4
- __docgenInfo: {
5
- description: string;
6
- displayName: string;
7
- props: {};
8
- };
9
- };
10
- export declare const resolvePlaceholders: (questionText: string | undefined, placeholders: Record<string, string> | undefined, npsRating?: string | number | undefined) => string;
11
- export declare const spreadCSSVariablesIfPresent: {
12
- (ui_theme: any): Object;
13
- displayName: string;
14
- __docgenInfo: {
15
- description: string;
16
- displayName: string;
17
- props: {};
18
- };
19
- };
@@ -1,295 +0,0 @@
1
- import { SurveyType } from '../types';
2
- export declare const sanitiseQuestion: {
3
- (questionText: any, placeholders: any, npsRating: any): any;
4
- parameters: any;
5
- };
6
- export declare const useExtractBlockFromQuestions: {
7
- (survey: SurveyType): {
8
- meta: {
9
- blocks: any[];
10
- survey_layout?: string | undefined;
11
- template?: {
12
- theme?: string | undefined;
13
- created_on?: string | undefined;
14
- created_by?: string | undefined;
15
- } | undefined;
16
- created_by?: {
17
- email?: string | undefined;
18
- phone?: string | undefined;
19
- mobile?: string | undefined;
20
- status?: string | undefined;
21
- active?: boolean | undefined;
22
- display_id?: string | undefined;
23
- freshid_user_id?: string | undefined;
24
- freshid_organisation_id?: string | undefined;
25
- first_name?: string | undefined;
26
- last_name?: string | undefined;
27
- job_title?: string | undefined;
28
- company_name?: string | undefined;
29
- activated_at?: string | undefined;
30
- weekly_report?: boolean | undefined;
31
- monthly_report?: boolean | undefined;
32
- created_at?: string | undefined;
33
- updated_at?: string | undefined;
34
- last_login?: string | undefined;
35
- } | undefined;
36
- };
37
- id?: string | null | undefined;
38
- display_id?: string | null | undefined;
39
- survey_id?: string | null | undefined;
40
- name?: string | null | undefined;
41
- desc?: string | null | undefined;
42
- type?: "NPS" | "CES" | "CSAT" | null | undefined;
43
- header_message?: string | null | undefined;
44
- gratitude_message?: string | null | undefined;
45
- state?: "ACTIVE" | "DRAFT" | "PAUSE" | null | undefined;
46
- question_details?: import("../types").QuestionDetailsType | null | undefined;
47
- contact_info?: any;
48
- schedule_info?: any;
49
- throttle_info?: any;
50
- ui_branding?: import("../types").UiBrandingType | undefined;
51
- ui_theme?: import("../types").UiThemeType | null | undefined;
52
- is_template?: boolean | null | undefined;
53
- created_at?: string | null | undefined;
54
- updated_at?: string | null | undefined;
55
- is_active?: boolean | null | undefined;
56
- channels?: string[] | null | undefined;
57
- channel_info?: any;
58
- template?: boolean | null | undefined;
59
- product_client_id?: string | null | undefined;
60
- is_recurring?: boolean | null | undefined;
61
- };
62
- parameters: any;
63
- displayName: string;
64
- __docgenInfo: {
65
- description: string;
66
- displayName: string;
67
- props: {
68
- id: {
69
- defaultValue: null;
70
- description: string;
71
- name: string;
72
- required: boolean;
73
- type: {
74
- name: string;
75
- };
76
- };
77
- display_id: {
78
- defaultValue: null;
79
- description: string;
80
- name: string;
81
- required: boolean;
82
- type: {
83
- name: string;
84
- };
85
- };
86
- survey_id: {
87
- defaultValue: null;
88
- description: string;
89
- name: string;
90
- required: boolean;
91
- type: {
92
- name: string;
93
- };
94
- };
95
- name: {
96
- defaultValue: null;
97
- description: string;
98
- name: string;
99
- required: boolean;
100
- type: {
101
- name: string;
102
- };
103
- };
104
- desc: {
105
- defaultValue: null;
106
- description: string;
107
- name: string;
108
- required: boolean;
109
- type: {
110
- name: string;
111
- };
112
- };
113
- type: {
114
- defaultValue: null;
115
- description: string;
116
- name: string;
117
- required: boolean;
118
- type: {
119
- name: string;
120
- };
121
- };
122
- header_message: {
123
- defaultValue: null;
124
- description: string;
125
- name: string;
126
- required: boolean;
127
- type: {
128
- name: string;
129
- };
130
- };
131
- gratitude_message: {
132
- defaultValue: null;
133
- description: string;
134
- name: string;
135
- required: boolean;
136
- type: {
137
- name: string;
138
- };
139
- };
140
- state: {
141
- defaultValue: null;
142
- description: string;
143
- name: string;
144
- required: boolean;
145
- type: {
146
- name: string;
147
- };
148
- };
149
- question_details: {
150
- defaultValue: null;
151
- description: string;
152
- name: string;
153
- required: boolean;
154
- type: {
155
- name: string;
156
- };
157
- };
158
- contact_info: {
159
- defaultValue: null;
160
- description: string;
161
- name: string;
162
- required: boolean;
163
- type: {
164
- name: string;
165
- };
166
- };
167
- schedule_info: {
168
- defaultValue: null;
169
- description: string;
170
- name: string;
171
- required: boolean;
172
- type: {
173
- name: string;
174
- };
175
- };
176
- throttle_info: {
177
- defaultValue: null;
178
- description: string;
179
- name: string;
180
- required: boolean;
181
- type: {
182
- name: string;
183
- };
184
- };
185
- ui_branding: {
186
- defaultValue: null;
187
- description: string;
188
- name: string;
189
- required: boolean;
190
- type: {
191
- name: string;
192
- };
193
- };
194
- ui_theme: {
195
- defaultValue: null;
196
- description: string;
197
- name: string;
198
- required: boolean;
199
- type: {
200
- name: string;
201
- };
202
- };
203
- is_template: {
204
- defaultValue: null;
205
- description: string;
206
- name: string;
207
- required: boolean;
208
- type: {
209
- name: string;
210
- };
211
- };
212
- meta: {
213
- defaultValue: null;
214
- description: string;
215
- name: string;
216
- required: boolean;
217
- type: {
218
- name: string;
219
- };
220
- };
221
- created_at: {
222
- defaultValue: null;
223
- description: string;
224
- name: string;
225
- required: boolean;
226
- type: {
227
- name: string;
228
- };
229
- };
230
- updated_at: {
231
- defaultValue: null;
232
- description: string;
233
- name: string;
234
- required: boolean;
235
- type: {
236
- name: string;
237
- };
238
- };
239
- is_active: {
240
- defaultValue: null;
241
- description: string;
242
- name: string;
243
- required: boolean;
244
- type: {
245
- name: string;
246
- };
247
- };
248
- channels: {
249
- defaultValue: null;
250
- description: string;
251
- name: string;
252
- required: boolean;
253
- type: {
254
- name: string;
255
- };
256
- };
257
- channel_info: {
258
- defaultValue: null;
259
- description: string;
260
- name: string;
261
- required: boolean;
262
- type: {
263
- name: string;
264
- };
265
- };
266
- template: {
267
- defaultValue: null;
268
- description: string;
269
- name: string;
270
- required: boolean;
271
- type: {
272
- name: string;
273
- };
274
- };
275
- product_client_id: {
276
- defaultValue: null;
277
- description: string;
278
- name: string;
279
- required: boolean;
280
- type: {
281
- name: string;
282
- };
283
- };
284
- is_recurring: {
285
- defaultValue: null;
286
- description: string;
287
- name: string;
288
- required: boolean;
289
- type: {
290
- name: string;
291
- };
292
- };
293
- };
294
- };
295
- };