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