@arquimedes.co/eureka-forms 1.9.52-test → 1.9.53-test

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/dist/App.d.ts CHANGED
@@ -26,7 +26,7 @@ export interface AppProps {
26
26
  /** Custom steps to display */
27
27
  customSteps?: Record<string, CustomStep>;
28
28
  /** Custom function to call on send */
29
- customSend?: (values: any, reload: Function) => Promise<void>;
29
+ customSend?: (values: any, reload: Function, setLoading: (loading: boolean) => void) => Promise<void>;
30
30
  /** Custom submit buttons */
31
31
  customSubmit?: JSX.Element;
32
32
  /** Function to call on postview to fetch the download url of a file */
@@ -119,10 +119,8 @@ function ColumnForm(_a) {
119
119
  newValues[idStep] = calcValue(idStep, form.steps, values, customSteps);
120
120
  }
121
121
  if (!customSend) return [3 /*break*/, 4];
122
- return [4 /*yield*/, customSend(newValues, reload)];
123
- case 3:
124
- _c.sent();
125
- return [3 /*break*/, 9];
122
+ return [4 /*yield*/, customSend(newValues, reload, setLoading)];
123
+ case 3: return [2 /*return*/, _c.sent()];
126
124
  case 4:
127
125
  payload = {
128
126
  formValues: { steps: newValues },
@@ -13,7 +13,7 @@ export interface FormComponentProps {
13
13
  organization: Organization;
14
14
  originalValues: Record<string, unknown>;
15
15
  customSteps: Record<string, CustomStep>;
16
- customSend?: (values: any, reload: Function) => Promise<void>;
16
+ customSend?: (values: any, reload: Function, setLoading: (loading: boolean) => void) => Promise<void>;
17
17
  customSubmit?: JSX.Element;
18
18
  widthStats: WidthStats;
19
19
  internal: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.9.52-test",
4
+ "version":"1.9.53-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",