@arquimedes.co/eureka-forms 1.9.53-test → 1.9.54-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, setLoading: (loading: boolean) => void) => Promise<void>;
29
+ customSend?: (values: any, reload: Function) => 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 */
@@ -94,7 +94,7 @@ function ColumnForm(_a) {
94
94
  return _jsx("div", {});
95
95
  }
96
96
  var onSubmit = function (token) { return __awaiter(_this, void 0, void 0, function () {
97
- var valid, values, newValues, _i, _a, idStep, payload, url, resp, _b, error_1;
97
+ var valid, values, newValues, _i, _a, idStep, customResp, payload, url, resp, _b, error_1;
98
98
  return __generator(this, function (_c) {
99
99
  switch (_c.label) {
100
100
  case 0:
@@ -119,8 +119,11 @@ 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, setLoading)];
123
- case 3: return [2 /*return*/, _c.sent()];
122
+ return [4 /*yield*/, customSend(newValues, reload)];
123
+ case 3:
124
+ customResp = _c.sent();
125
+ setLoading(false);
126
+ return [2 /*return*/, customResp];
124
127
  case 4:
125
128
  payload = {
126
129
  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, setLoading: (loading: boolean) => void) => Promise<void>;
16
+ customSend?: (values: any, reload: Function) => 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.53-test",
4
+ "version":"1.9.54-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",