freemium-survey-components 2.0.75 → 2.0.76
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/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/types/types.d.ts +6 -0
- package/package.json +1 -1
package/lib/types/types.d.ts
CHANGED
|
@@ -618,11 +618,16 @@ export interface SurveyProps {
|
|
|
618
618
|
canResubmit?: boolean;
|
|
619
619
|
allowMultipleSubmission?: boolean;
|
|
620
620
|
loadAsNewSurvey?: boolean;
|
|
621
|
+
handleSecondaryAction?: (data: {
|
|
622
|
+
survey: SurveyType;
|
|
623
|
+
answers: AnswersType['formValues'];
|
|
624
|
+
}) => void;
|
|
621
625
|
handleAction?: (action: HandleActions, callback: Function) => void;
|
|
622
626
|
onBlockChange?: (currentBlock: BlockWithQuestionType, currentPage?: SurveyPageType) => void;
|
|
623
627
|
footerProps?: Pick<SurveyFooterProps, 'languageDDComponent' | 'showFooterText' | 'surveyPoweredBy'>;
|
|
624
628
|
getSurveyProgress?: (progressData: Omit<SurveyProgressProps, 'completedText'>) => void;
|
|
625
629
|
surveyServAssetUrl?: string;
|
|
630
|
+
secBtnTxt?: string;
|
|
626
631
|
}
|
|
627
632
|
export interface AugmentedSurveyProps extends SurveyProps {
|
|
628
633
|
survey: AugmentedSurveyType;
|
|
@@ -670,6 +675,7 @@ export type CardQuestionFooterProps = QuestionFooterProps & {
|
|
|
670
675
|
isReverseAnimation?: boolean;
|
|
671
676
|
};
|
|
672
677
|
export type StandardQuestionFooterProps = QuestionFooterProps & {
|
|
678
|
+
secBtnTxt?: string;
|
|
673
679
|
blockIndex: number;
|
|
674
680
|
clearRadioSelection: (index: number) => void;
|
|
675
681
|
};
|