@saasquatch/mint-components 1.14.6-10 → 1.14.6-11
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/cjs/sqm-big-stat_42.cjs.entry.js +2 -8
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +2 -8
- package/dist/esm/sqm-big-stat_42.entry.js +2 -8
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-8d86d7e6.system.entry.js +1 -0
- package/dist/mint-components/{p-79e1a189.entry.js → p-fa303868.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-10343b27.system.entry.js +0 -1
|
@@ -1329,7 +1329,7 @@ function useLeadForm(props) {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
}, [formRef.current]);
|
|
1331
1331
|
const submit = async (event) => {
|
|
1332
|
-
var _a
|
|
1332
|
+
var _a;
|
|
1333
1333
|
let formControls = event.target.getFormControls();
|
|
1334
1334
|
let formData = {};
|
|
1335
1335
|
let validationErrors = {};
|
|
@@ -1368,11 +1368,6 @@ function useLeadForm(props) {
|
|
|
1368
1368
|
};
|
|
1369
1369
|
try {
|
|
1370
1370
|
const result = await submitLead({ formSubmissionInput: variables });
|
|
1371
|
-
console.log({
|
|
1372
|
-
result,
|
|
1373
|
-
success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
|
|
1374
|
-
isError: result instanceof Error,
|
|
1375
|
-
});
|
|
1376
1371
|
if (result instanceof Error) {
|
|
1377
1372
|
throw result;
|
|
1378
1373
|
}
|
|
@@ -1381,12 +1376,11 @@ function useLeadForm(props) {
|
|
|
1381
1376
|
error: "",
|
|
1382
1377
|
validationErrors: {},
|
|
1383
1378
|
});
|
|
1384
|
-
if ((
|
|
1379
|
+
if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
|
|
1385
1380
|
setSuccess(true);
|
|
1386
1381
|
}
|
|
1387
1382
|
}
|
|
1388
1383
|
catch (error) {
|
|
1389
|
-
console.log({ error });
|
|
1390
1384
|
setLeadFormState({
|
|
1391
1385
|
loading: false,
|
|
1392
1386
|
error: props.networkErrorMessage,
|
|
@@ -40,7 +40,7 @@ export function useLeadForm(props) {
|
|
|
40
40
|
};
|
|
41
41
|
}, [formRef.current]);
|
|
42
42
|
const submit = async (event) => {
|
|
43
|
-
var _a
|
|
43
|
+
var _a;
|
|
44
44
|
let formControls = event.target.getFormControls();
|
|
45
45
|
let formData = {};
|
|
46
46
|
let validationErrors = {};
|
|
@@ -79,11 +79,6 @@ export function useLeadForm(props) {
|
|
|
79
79
|
};
|
|
80
80
|
try {
|
|
81
81
|
const result = await submitLead({ formSubmissionInput: variables });
|
|
82
|
-
console.log({
|
|
83
|
-
result,
|
|
84
|
-
success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
|
|
85
|
-
isError: result instanceof Error,
|
|
86
|
-
});
|
|
87
82
|
if (result instanceof Error) {
|
|
88
83
|
throw result;
|
|
89
84
|
}
|
|
@@ -92,12 +87,11 @@ export function useLeadForm(props) {
|
|
|
92
87
|
error: "",
|
|
93
88
|
validationErrors: {},
|
|
94
89
|
});
|
|
95
|
-
if ((
|
|
90
|
+
if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
|
|
96
91
|
setSuccess(true);
|
|
97
92
|
}
|
|
98
93
|
}
|
|
99
94
|
catch (error) {
|
|
100
|
-
console.log({ error });
|
|
101
95
|
setLeadFormState({
|
|
102
96
|
loading: false,
|
|
103
97
|
error: props.networkErrorMessage,
|
|
@@ -1325,7 +1325,7 @@ function useLeadForm(props) {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
}, [formRef.current]);
|
|
1327
1327
|
const submit = async (event) => {
|
|
1328
|
-
var _a
|
|
1328
|
+
var _a;
|
|
1329
1329
|
let formControls = event.target.getFormControls();
|
|
1330
1330
|
let formData = {};
|
|
1331
1331
|
let validationErrors = {};
|
|
@@ -1364,11 +1364,6 @@ function useLeadForm(props) {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
try {
|
|
1366
1366
|
const result = await submitLead({ formSubmissionInput: variables });
|
|
1367
|
-
console.log({
|
|
1368
|
-
result,
|
|
1369
|
-
success: (_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success,
|
|
1370
|
-
isError: result instanceof Error,
|
|
1371
|
-
});
|
|
1372
1367
|
if (result instanceof Error) {
|
|
1373
1368
|
throw result;
|
|
1374
1369
|
}
|
|
@@ -1377,12 +1372,11 @@ function useLeadForm(props) {
|
|
|
1377
1372
|
error: "",
|
|
1378
1373
|
validationErrors: {},
|
|
1379
1374
|
});
|
|
1380
|
-
if ((
|
|
1375
|
+
if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
|
|
1381
1376
|
setSuccess(true);
|
|
1382
1377
|
}
|
|
1383
1378
|
}
|
|
1384
1379
|
catch (error) {
|
|
1385
|
-
console.log({ error });
|
|
1386
1380
|
setLeadFormState({
|
|
1387
1381
|
loading: false,
|
|
1388
1382
|
error: props.networkErrorMessage,
|