freemium-survey-components 2.0.13 → 2.0.15
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.
|
@@ -9,10 +9,10 @@ type FileUploadPropsType = {
|
|
|
9
9
|
onChangeHandler: (answer: QuestionAnswerType) => void;
|
|
10
10
|
onFileUpload?: (contentType: string, fileSize: string, fileName: string, question: SurveyQuestionType) => Promise<string>;
|
|
11
11
|
setErrors: (obj: ValidatingQuestions['fileUploadErrors']) => void;
|
|
12
|
-
|
|
12
|
+
preview?: boolean;
|
|
13
13
|
translationVariables: TranslationVariablesType;
|
|
14
14
|
surveyServAssetUrl?: string;
|
|
15
15
|
value?: string;
|
|
16
16
|
};
|
|
17
|
-
declare const FileUpload: ({ question, onChangeHandler, onFileUpload, setErrors,
|
|
17
|
+
declare const FileUpload: ({ question, onChangeHandler, onFileUpload, setErrors, translationVariables, surveyServAssetUrl, value, preview, }: FileUploadPropsType) => React.JSX.Element;
|
|
18
18
|
export default FileUpload;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuestionStoryProps } from './QuestionStory';
|
|
3
|
+
interface FileStoryProps extends Omit<QuestionStoryProps, 'question'> {
|
|
4
|
+
labelText: string;
|
|
5
|
+
}
|
|
6
|
+
declare const FileStory: (props: FileStoryProps) => React.JSX.Element;
|
|
7
|
+
export default FileStory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnswersType, AugmentedSurveyType, QuestionAnswerType, SurveyBlockType, SurveyProps, SurveyQuestionType, TranslationVariablesType, ValidatingQuestions, WidgetStyles } from '../types';
|
|
3
|
-
declare const Question: ({ surveyLanguage, language, question, formValues, othersMeta, onChangeHandler, saveOthersValue, autoFocusDelay, isFinalQn, isWidget, isMobile, initialPivotAnswer, initialQuestionAnswer, isInitialTransition, formQuestionErrors, contactFormErrors, activeIndexOfRenderedStatement, textboxQuestionErrors, isReverseAnimation, fileUploadErrors, onFileUpload, widgetStyle, setErrors, translationVariables, surveyServAssetUrl, setFocus, block, surveyStyle, }: {
|
|
3
|
+
declare const Question: ({ surveyLanguage, language, question, formValues, othersMeta, onChangeHandler, saveOthersValue, autoFocusDelay, isFinalQn, isWidget, isMobile, initialPivotAnswer, initialQuestionAnswer, isInitialTransition, formQuestionErrors, contactFormErrors, activeIndexOfRenderedStatement, textboxQuestionErrors, isReverseAnimation, fileUploadErrors, preview, onFileUpload, widgetStyle, setErrors, translationVariables, surveyServAssetUrl, setFocus, block, surveyStyle, }: {
|
|
4
4
|
surveyLanguage: AugmentedSurveyType['language'];
|
|
5
5
|
language: string | null;
|
|
6
6
|
question: SurveyQuestionType;
|
|
@@ -14,6 +14,7 @@ declare const Question: ({ surveyLanguage, language, question, formValues, other
|
|
|
14
14
|
setFocus?: boolean | undefined;
|
|
15
15
|
isReverseAnimation?: boolean | undefined;
|
|
16
16
|
isFinalQn?: boolean | undefined;
|
|
17
|
+
preview?: boolean | undefined;
|
|
17
18
|
isWidget?: boolean | undefined;
|
|
18
19
|
onFileUpload?: ((contentType: string, fileSize: string, fileName: string, question: SurveyQuestionType) => Promise<string>) | undefined;
|
|
19
20
|
isMobile: boolean;
|
package/lib/types/types.d.ts
CHANGED