freemium-survey-components 1.0.267 → 1.0.268
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/matrix/range.stories.d.ts +0 -0
- package/lib/types/components/matrix/utils.d.ts +3 -0
- package/lib/types/components/matrix-widget/matrix.stories.d.ts +0 -0
- package/lib/types/components/range copy/range.stories.d.ts +1 -0
- package/lib/types/components/utils.d.ts +2 -0
- package/lib/types/mock.d.ts +2 -3
- package/lib/types/survey/eux.stories.d.ts +0 -0
- package/lib/types/survey/utils/use-card-survey.d.ts +1 -3
- package/lib/types/survey/utils/use-standard-survey.d.ts +1 -3
- package/lib/types/types.d.ts +1 -0
- package/package.json +1 -1
- package/lib/types/components/tooltip/index.d.ts +0 -2
- /package/lib/types/components/{tooltip/tooltip.stories.d.ts → matrix copy/matrix.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;
|
|
File without changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SurveyQuestionTypeInfo } from '../../types';
|
|
2
|
+
export declare const getClassNames: (value: any, activeStarRating: any, type_variant: any, isDescending: any, range: any, propsValue: any) => string;
|
|
3
|
+
export declare const isBinaryQuestion: (type_info: SurveyQuestionTypeInfo) => boolean;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/mock.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SurveyType } from './types';
|
|
2
2
|
export declare const CSAT_SURVEY: SurveyType;
|
|
3
|
-
export declare const CSAT_SURVEY_MESSAGE_CONSENT_QUESTIONS:
|
|
4
|
-
export declare const CSAT_SURVEY_DROPDOWN_DATETIME_QUESTION:
|
|
3
|
+
export declare const CSAT_SURVEY_MESSAGE_CONSENT_QUESTIONS: SurveyType;
|
|
4
|
+
export declare const CSAT_SURVEY_DROPDOWN_DATETIME_QUESTION: SurveyType;
|
|
5
5
|
export declare const FORM_FIELDS_SURVEY: SurveyType;
|
|
6
6
|
export declare const CES_YES_NO_SURVEY: SurveyType;
|
|
7
7
|
export declare const NPS_SURVEY: SurveyType;
|
|
@@ -72,7 +72,6 @@ export declare const MOCK_TRANSLATIONS_VARIABLES: {
|
|
|
72
72
|
skip: string;
|
|
73
73
|
submit_survey: string;
|
|
74
74
|
submitting: string;
|
|
75
|
-
enter_comment: string;
|
|
76
75
|
};
|
|
77
76
|
export declare const EMOJI_ALL_SCALES: SurveyType;
|
|
78
77
|
export declare const STAR_ALL_SCALES: SurveyType;
|
|
File without changes
|
|
@@ -19,9 +19,7 @@ export declare const useCardSurvey: (props: AugmentedSurveyProps) => {
|
|
|
19
19
|
} | null;
|
|
20
20
|
answers: AnswersType;
|
|
21
21
|
isInitialTransition: boolean;
|
|
22
|
-
translationVariables:
|
|
23
|
-
[key: string]: string | null;
|
|
24
|
-
};
|
|
22
|
+
translationVariables: import("../../types").TranslationVariablesType;
|
|
25
23
|
formQuestionErrors: null;
|
|
26
24
|
textboxQuestionErrors: null;
|
|
27
25
|
navigateToNextBlock: () => void;
|
|
@@ -16,9 +16,7 @@ export declare const useStandardSurvey: (props: AugmentedSurveyProps) => {
|
|
|
16
16
|
answer?: string | number | undefined;
|
|
17
17
|
} | null;
|
|
18
18
|
answers: AnswersType;
|
|
19
|
-
translationVariables:
|
|
20
|
-
[key: string]: string | null;
|
|
21
|
-
};
|
|
19
|
+
translationVariables: import("../../types").TranslationVariablesType;
|
|
22
20
|
formQuestionErrors: null;
|
|
23
21
|
textboxQuestionErrors: null;
|
|
24
22
|
saveFormValues: (block: BlockWithQuestionType, value: QuestionAnswerType, commitDirtyValue?: boolean, blockIndex?: number) => void;
|
package/lib/types/types.d.ts
CHANGED
package/package.json
CHANGED
/package/lib/types/components/{tooltip/tooltip.stories.d.ts → matrix copy/matrix.stories.d.ts}
RENAMED
|
File without changes
|