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.
@@ -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: Function, status: AnswerStatus) => void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",