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.
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { QuestionTypeVariantType } from '../types';
2
+ export declare const getIconName: (id: number, variant?: QuestionTypeVariantType | undefined) => string;
@@ -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: never[] | BlockWithQuestionType[];
5
+ renderedBlocks: BlockWithQuestionType[];
6
6
  activeBlock: BlockWithQuestionType;
7
7
  activeIndexOfBlocks: number;
8
8
  activeIndexOfRenderedBlocks: number;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "1.0.156",
3
+ "version": "1.0.157",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
File without changes
File without changes