freemium-survey-components 1.0.138 → 1.0.140
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;
|
|
@@ -87,9 +87,12 @@ export declare const getInitialState: ({ blocks, answerStatus, questions, respon
|
|
|
87
87
|
responses: SurveyResponseType | null;
|
|
88
88
|
answerStatus: AnswerStatus | null;
|
|
89
89
|
}) => {
|
|
90
|
-
renderedBlocks:
|
|
90
|
+
renderedBlocks: BlockWithQuestionType[];
|
|
91
91
|
activeIndexOfRenderedBlocks: number;
|
|
92
|
-
pivot:
|
|
92
|
+
pivot: {
|
|
93
|
+
question: SurveyQuestionType;
|
|
94
|
+
answer: number;
|
|
95
|
+
} | null;
|
|
93
96
|
answers: {
|
|
94
97
|
formValues: {};
|
|
95
98
|
others: {};
|
|
@@ -97,22 +100,4 @@ export declare const getInitialState: ({ blocks, answerStatus, questions, respon
|
|
|
97
100
|
};
|
|
98
101
|
isInitialTransition: boolean;
|
|
99
102
|
isAllQuestionsAnswered: boolean;
|
|
100
|
-
} | {
|
|
101
|
-
activeIndexOfRenderedBlocks: number;
|
|
102
|
-
isInitialTransition: boolean;
|
|
103
|
-
renderedBlocks: BlockWithQuestionType[];
|
|
104
|
-
pivot: {
|
|
105
|
-
question: SurveyQuestionType;
|
|
106
|
-
answer: any;
|
|
107
|
-
};
|
|
108
|
-
answers: {
|
|
109
|
-
others: {
|
|
110
|
-
[key: string]: string;
|
|
111
|
-
};
|
|
112
|
-
formValues: {
|
|
113
|
-
[key: string]: string | number | {} | string[] | null;
|
|
114
|
-
};
|
|
115
|
-
commitDirtyValue: boolean;
|
|
116
|
-
};
|
|
117
|
-
isAllQuestionsAnswered: boolean;
|
|
118
103
|
};
|
|
@@ -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;
|