freemium-survey-components 1.0.87 → 1.0.88
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/types.d.ts +2 -4
- package/package.json +1 -1
package/lib/types/types.d.ts
CHANGED
|
@@ -306,9 +306,7 @@ export declare type WidgetProps = {
|
|
|
306
306
|
placeholders: {
|
|
307
307
|
[key: string]: string;
|
|
308
308
|
};
|
|
309
|
-
onSubmit: (data:
|
|
310
|
-
[key: string]: string | number | Array<string | number> | null;
|
|
311
|
-
}, callback: Function, status: AnswerStatus) => void;
|
|
309
|
+
onSubmit: (data: any, callback: any, answerType: 'PARTIAL' | 'COMPLETE' | 'PARTIAL_COMPLETE', action: 'EDIT' | 'CREATE') => void;
|
|
312
310
|
onDismiss: () => void;
|
|
313
311
|
onClose?: () => void;
|
|
314
312
|
surveyType: 'default' | 'compact' | 'cozy';
|
|
@@ -325,7 +323,7 @@ export declare type WidgetSurveyProps = {
|
|
|
325
323
|
answers: SurveyResponseType | null;
|
|
326
324
|
answerStatus?: AnswerStatus | null;
|
|
327
325
|
placeholders: any;
|
|
328
|
-
onSubmit: (data: any, callback:
|
|
326
|
+
onSubmit: (data: any, callback: any, answerType: 'PARTIAL' | 'COMPLETE' | 'PARTIAL_COMPLETE', action: 'EDIT' | 'CREATE') => void;
|
|
329
327
|
widgetHeaderQuerySelector?: string;
|
|
330
328
|
setCurrentSurveyState: (x: any) => void;
|
|
331
329
|
onAnsweringPrompt: (id: number) => void;
|