freemium-survey-components 1.0.135 → 1.0.136
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SurveyBlockWithQuestionNamesType, SurveyQuestionType, AnswersType, BlockWithQuestionType, SurveyResponseType, AnswerStatus } from '../../types';
|
|
1
|
+
import { SurveyBlockWithQuestionNamesType, SurveyQuestionType, AnswersType, BlockWithQuestionType, SurveyResponseType, AnswerStatus, ContactDataType } from '../../types';
|
|
2
2
|
export declare const getPivotQuestion: ({ questions, }: {
|
|
3
3
|
questions: SurveyQuestionType[];
|
|
4
4
|
}) => SurveyQuestionType;
|
|
@@ -32,9 +32,7 @@ export declare const fetchNextBlockIndex: ({ renderedBlocks, activeBlock, blocks
|
|
|
32
32
|
blocks: SurveyBlockWithQuestionNamesType[];
|
|
33
33
|
questions: SurveyQuestionType[];
|
|
34
34
|
renderedBlocks: BlockWithQuestionType[];
|
|
35
|
-
contactData?:
|
|
36
|
-
[key: string]: string | number | null;
|
|
37
|
-
} | undefined;
|
|
35
|
+
contactData?: ContactDataType | null | undefined;
|
|
38
36
|
}) => number;
|
|
39
37
|
export declare const canCommitDirtyValue: ({ question, answers, }: {
|
|
40
38
|
question: SurveyQuestionType;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -392,7 +392,7 @@ export interface SurveyResponseType {
|
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
export declare type ContactDataType = {
|
|
395
|
-
[key: string]: string |
|
|
395
|
+
[key: string]: string | boolean | null;
|
|
396
396
|
};
|
|
397
397
|
export declare type AnswerStatus = 'PARTIAL' | 'COMPLETE' | 'PARTIAL_COMPLETE';
|
|
398
398
|
export interface SurveyProps {
|
|
@@ -403,7 +403,7 @@ export interface SurveyProps {
|
|
|
403
403
|
placeholders?: {
|
|
404
404
|
[key: string]: string;
|
|
405
405
|
};
|
|
406
|
-
contactData?: ContactDataType;
|
|
406
|
+
contactData?: ContactDataType | null;
|
|
407
407
|
initialPivotAnswer?: number;
|
|
408
408
|
onSubmit: (data: {
|
|
409
409
|
[key: string]: string | number | Array<string | number> | {
|
|
@@ -461,7 +461,7 @@ export declare type WidgetProps = {
|
|
|
461
461
|
placeholders: {
|
|
462
462
|
[key: string]: string;
|
|
463
463
|
};
|
|
464
|
-
contactData?: ContactDataType;
|
|
464
|
+
contactData?: ContactDataType | null;
|
|
465
465
|
onSubmit: (data: any, callback: any, answerType: 'PARTIAL' | 'COMPLETE' | 'PARTIAL_COMPLETE', action: 'EDIT' | 'CREATE') => void;
|
|
466
466
|
onDismiss: () => void;
|
|
467
467
|
onClose?: () => void;
|
|
@@ -482,7 +482,7 @@ export declare type WidgetSurveyProps = {
|
|
|
482
482
|
answers: SurveyResponseType | null;
|
|
483
483
|
answerStatus?: AnswerStatus | null;
|
|
484
484
|
placeholders: any;
|
|
485
|
-
contactData?: ContactDataType;
|
|
485
|
+
contactData?: ContactDataType | null;
|
|
486
486
|
onSubmit: (data: any, callback: any, answerType: 'PARTIAL' | 'COMPLETE' | 'PARTIAL_COMPLETE', action: 'EDIT' | 'CREATE') => void;
|
|
487
487
|
widgetHeaderQuerySelector?: string;
|
|
488
488
|
setCurrentSurveyState: (x: any) => void;
|