freemium-survey-components 1.0.156 → 1.0.157
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/types/components/icons/emoji.d.ts +8 -0
- package/lib/types/components/utils.d.ts +2 -0
- package/lib/types/survey/utils/use-standard-survey.d.ts +1 -1
- package/lib/types/types.d.ts +21 -1
- package/package.json +1 -1
- package/lib/types/components/slider/index.d.ts +0 -0
- package/lib/types/components/slider/slider.stories.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PointScaleRatingType, QuestionTypeVariantType } from '../../types';
|
|
2
|
+
declare const Emoji: ({ highlight, index, type, scale, }: {
|
|
3
|
+
highlight: boolean;
|
|
4
|
+
index?: number | undefined;
|
|
5
|
+
scale: PointScaleRatingType;
|
|
6
|
+
type: Extract<QuestionTypeVariantType, 'STAR' | 'EMOJI'>;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default Emoji;
|
|
@@ -2,7 +2,7 @@ import { AnswerStatus, AnswersType, BlockWithQuestionType, SurveyQuestionType, Q
|
|
|
2
2
|
export declare const useStandardSurvey: (props: AugmentedSurveyProps) => {
|
|
3
3
|
blocks: import("../../types").SurveyBlockWithQuestionNamesType[];
|
|
4
4
|
questions: SurveyQuestionType[];
|
|
5
|
-
renderedBlocks:
|
|
5
|
+
renderedBlocks: BlockWithQuestionType[];
|
|
6
6
|
activeBlock: BlockWithQuestionType;
|
|
7
7
|
activeIndexOfBlocks: number;
|
|
8
8
|
activeIndexOfRenderedBlocks: number;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare type PromptSettingsType = {
|
|
|
14
14
|
type_variant?: PromptSettingsTypeVariants | null;
|
|
15
15
|
reverse_order?: boolean | null;
|
|
16
16
|
};
|
|
17
|
-
export declare type QuestionType = 'TEXT' | 'NUMBER' | 'PARAGRAPH' | 'BOOLEAN' | 'DATE' | 'RANGE' | 'DROPDOWN' | 'CHECKBOX' | 'RADIO' | 'THANK_YOU' | 'MULTI_SELECT' | 'MULTI_SELECT_LOOKUP';
|
|
17
|
+
export declare type QuestionType = 'TEXT' | 'NUMBER' | 'PARAGRAPH' | 'BOOLEAN' | 'DATE' | 'RANGE' | 'DROPDOWN' | 'CHECKBOX' | 'RADIO' | 'THANK_YOU' | 'MULTI_SELECT' | 'MULTI_SELECT_LOOKUP' | 'MATRIX_RATING_SCALE';
|
|
18
18
|
export declare type QuestionThemeType = SurveyTypes;
|
|
19
19
|
export declare type QuestionTypeVariantType = 'EMOJI' | 'STAR' | 'TEXT' | 'NUMBER' | 'THUMBS' | 'TICK';
|
|
20
20
|
export declare type ScalePropertiesOrderType = 'ascending' | 'descending';
|
|
@@ -43,6 +43,24 @@ export declare type QuestionScalePropertiesType = {
|
|
|
43
43
|
button_style?: ScalePropertiesButtonStyleType | null;
|
|
44
44
|
labels?: ScalePropertiesLabelsType | null;
|
|
45
45
|
};
|
|
46
|
+
export declare type MatrixTypes = 'SINGLE_ANSWER' | 'MULTIPLE_ANSWERS';
|
|
47
|
+
export declare type MatrixStatementType = {
|
|
48
|
+
id?: string | null;
|
|
49
|
+
name?: string | null;
|
|
50
|
+
order?: number | null;
|
|
51
|
+
is_active?: boolean | null;
|
|
52
|
+
};
|
|
53
|
+
export declare type MatrixRatingLabelType = {
|
|
54
|
+
id?: string | null;
|
|
55
|
+
name?: string | null;
|
|
56
|
+
order?: number | null;
|
|
57
|
+
is_active?: boolean | null;
|
|
58
|
+
};
|
|
59
|
+
export declare type MatrixPropertiesType = {
|
|
60
|
+
type?: MatrixTypes | null;
|
|
61
|
+
statements?: MatrixStatementType[] | null;
|
|
62
|
+
rating_labels?: MatrixRatingLabelType[] | null;
|
|
63
|
+
};
|
|
46
64
|
export declare type ReviewPageType = {
|
|
47
65
|
name?: string | null;
|
|
48
66
|
img?: string | null;
|
|
@@ -92,6 +110,7 @@ export declare type SurveyQuestionTypeInfo = {
|
|
|
92
110
|
meta?: QuestionTypeInfoMetaType | null;
|
|
93
111
|
pivot_question?: boolean | null;
|
|
94
112
|
header_text?: string | null;
|
|
113
|
+
matrix_properties?: MatrixPropertiesType | null;
|
|
95
114
|
};
|
|
96
115
|
export declare type DependentBlockConditionType = 'ALL' | 'EQUALS' | 'BETWEEN';
|
|
97
116
|
export declare type QuestionMetaType = {
|
|
@@ -179,6 +198,7 @@ export declare type DisplayLogicType = {
|
|
|
179
198
|
based_on_question_name?: string | null;
|
|
180
199
|
based_on_question_type?: string | null;
|
|
181
200
|
based_on_contact_field_name?: string | null;
|
|
201
|
+
matrix_rating_scale_statement_id?: string | null;
|
|
182
202
|
};
|
|
183
203
|
export declare type SurveyBlockType = {
|
|
184
204
|
is_deleted?: boolean | null;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|