@saasquatch/mint-components 1.14.6-7 → 1.14.6-9
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/{ShadowViewAddon-40f0bc74.js → ShadowViewAddon-d1dda2b0.js} +1 -0
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +7 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +1 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +6 -4
- package/dist/esm/{ShadowViewAddon-8a0d9e83.js → ShadowViewAddon-81771102.js} +1 -0
- package/dist/esm/sqm-big-stat_42.entry.js +7 -5
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-8a0d9e83.js → ShadowViewAddon-81771102.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.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-4139feb5.js → p-460974bf.js} +1 -1
- package/dist/mint-components/{p-8af8ab01.system.entry.js → p-59970cb1.system.entry.js} +1 -1
- package/dist/mint-components/p-7094012d.system.entry.js +1 -0
- package/dist/mint-components/{p-ad6420a2.system.js → p-ad128614.system.js} +1 -1
- package/dist/mint-components/{p-2ccebe27.entry.js → p-b2ff8561.entry.js} +12 -12
- package/dist/mint-components/{p-cd1c6113.entry.js → p-ba585a4b.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-36ef6219.system.entry.js +0 -1
|
@@ -4094,6 +4094,7 @@ const styleString$d = sheet$d.toString();
|
|
|
4094
4094
|
function LeadFormView(props) {
|
|
4095
4095
|
var _a, _b, _c, _d;
|
|
4096
4096
|
const { states, refs, callbacks, content } = props;
|
|
4097
|
+
console.log({ states });
|
|
4097
4098
|
if (states.error) {
|
|
4098
4099
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
4099
4100
|
}
|
|
@@ -24,7 +24,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
|
24
24
|
const usePortalLogin = require('./usePortalLogin-63d896d1.js');
|
|
25
25
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
26
26
|
const utilities = require('./utilities-78f5e169.js');
|
|
27
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
27
|
+
const ShadowViewAddon = require('./ShadowViewAddon-d1dda2b0.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
29
|
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
30
30
|
|
|
@@ -1329,7 +1329,7 @@ function useLeadForm(props) {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
}, [formRef.current]);
|
|
1331
1331
|
const submit = async (event) => {
|
|
1332
|
-
var _a, _b;
|
|
1332
|
+
var _a, _b, _c, _d;
|
|
1333
1333
|
let formControls = event.target.getFormControls();
|
|
1334
1334
|
let formData = {};
|
|
1335
1335
|
let validationErrors = {};
|
|
@@ -1366,10 +1366,10 @@ function useLeadForm(props) {
|
|
|
1366
1366
|
key: props.formKey,
|
|
1367
1367
|
formData,
|
|
1368
1368
|
};
|
|
1369
|
-
const result = await submitLead({ formSubmissionInput: variables });
|
|
1370
1369
|
try {
|
|
1370
|
+
const result = await submitLead({ formSubmissionInput: variables });
|
|
1371
1371
|
console.log({
|
|
1372
|
-
success: result.data.submitForm.success,
|
|
1372
|
+
success: (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.submitForm) === null || _b === void 0 ? void 0 : _b.success,
|
|
1373
1373
|
isError: result instanceof Error,
|
|
1374
1374
|
});
|
|
1375
1375
|
if (result instanceof Error) {
|
|
@@ -1380,11 +1380,12 @@ function useLeadForm(props) {
|
|
|
1380
1380
|
error: "",
|
|
1381
1381
|
validationErrors: {},
|
|
1382
1382
|
});
|
|
1383
|
-
if ((
|
|
1383
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.submitForm) === null || _d === void 0 ? void 0 : _d.success) {
|
|
1384
1384
|
setSuccess(true);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
1387
|
catch (error) {
|
|
1388
|
+
console.log({ error });
|
|
1388
1389
|
setLeadFormState({
|
|
1389
1390
|
loading: false,
|
|
1390
1391
|
error: props.networkErrorMessage,
|
|
@@ -1411,6 +1412,7 @@ function useLeadForm(props) {
|
|
|
1411
1412
|
errorMessage =
|
|
1412
1413
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
1413
1414
|
}
|
|
1415
|
+
console.log({ errors, errorMessage });
|
|
1414
1416
|
return {
|
|
1415
1417
|
states: {
|
|
1416
1418
|
loading,
|
|
@@ -36,7 +36,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
|
|
|
36
36
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
|
|
37
37
|
require('./ErrorView-b2fcf954.js');
|
|
38
38
|
const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
|
|
39
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
39
|
+
const ShadowViewAddon = require('./ShadowViewAddon-d1dda2b0.js');
|
|
40
40
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
41
41
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
|
|
42
42
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-6344cd93.js');
|
|
@@ -51,6 +51,7 @@ const styleString = sheet.toString();
|
|
|
51
51
|
export function LeadFormView(props) {
|
|
52
52
|
var _a, _b, _c, _d;
|
|
53
53
|
const { states, refs, callbacks, content } = props;
|
|
54
|
+
console.log({ states });
|
|
54
55
|
if (states.error) {
|
|
55
56
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
56
57
|
}
|
|
@@ -40,7 +40,7 @@ export function useLeadForm(props) {
|
|
|
40
40
|
};
|
|
41
41
|
}, [formRef.current]);
|
|
42
42
|
const submit = async (event) => {
|
|
43
|
-
var _a, _b;
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
44
|
let formControls = event.target.getFormControls();
|
|
45
45
|
let formData = {};
|
|
46
46
|
let validationErrors = {};
|
|
@@ -77,10 +77,10 @@ export function useLeadForm(props) {
|
|
|
77
77
|
key: props.formKey,
|
|
78
78
|
formData,
|
|
79
79
|
};
|
|
80
|
-
const result = await submitLead({ formSubmissionInput: variables });
|
|
81
80
|
try {
|
|
81
|
+
const result = await submitLead({ formSubmissionInput: variables });
|
|
82
82
|
console.log({
|
|
83
|
-
success: result.data.submitForm.success,
|
|
83
|
+
success: (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.submitForm) === null || _b === void 0 ? void 0 : _b.success,
|
|
84
84
|
isError: result instanceof Error,
|
|
85
85
|
});
|
|
86
86
|
if (result instanceof Error) {
|
|
@@ -91,11 +91,12 @@ export function useLeadForm(props) {
|
|
|
91
91
|
error: "",
|
|
92
92
|
validationErrors: {},
|
|
93
93
|
});
|
|
94
|
-
if ((
|
|
94
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.submitForm) === null || _d === void 0 ? void 0 : _d.success) {
|
|
95
95
|
setSuccess(true);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
catch (error) {
|
|
99
|
+
console.log({ error });
|
|
99
100
|
setLeadFormState({
|
|
100
101
|
loading: false,
|
|
101
102
|
error: props.networkErrorMessage,
|
|
@@ -122,6 +123,7 @@ export function useLeadForm(props) {
|
|
|
122
123
|
errorMessage =
|
|
123
124
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
124
125
|
}
|
|
126
|
+
console.log({ errors, errorMessage });
|
|
125
127
|
return {
|
|
126
128
|
states: {
|
|
127
129
|
loading,
|
|
@@ -4092,6 +4092,7 @@ const styleString$d = sheet$d.toString();
|
|
|
4092
4092
|
function LeadFormView(props) {
|
|
4093
4093
|
var _a, _b, _c, _d;
|
|
4094
4094
|
const { states, refs, callbacks, content } = props;
|
|
4095
|
+
console.log({ states });
|
|
4095
4096
|
if (states.error) {
|
|
4096
4097
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
4097
4098
|
}
|
|
@@ -20,7 +20,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
|
20
20
|
import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
|
|
21
21
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
22
22
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
23
|
-
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
23
|
+
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-81771102.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
25
|
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
26
26
|
|
|
@@ -1325,7 +1325,7 @@ function useLeadForm(props) {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
}, [formRef.current]);
|
|
1327
1327
|
const submit = async (event) => {
|
|
1328
|
-
var _a, _b;
|
|
1328
|
+
var _a, _b, _c, _d;
|
|
1329
1329
|
let formControls = event.target.getFormControls();
|
|
1330
1330
|
let formData = {};
|
|
1331
1331
|
let validationErrors = {};
|
|
@@ -1362,10 +1362,10 @@ function useLeadForm(props) {
|
|
|
1362
1362
|
key: props.formKey,
|
|
1363
1363
|
formData,
|
|
1364
1364
|
};
|
|
1365
|
-
const result = await submitLead({ formSubmissionInput: variables });
|
|
1366
1365
|
try {
|
|
1366
|
+
const result = await submitLead({ formSubmissionInput: variables });
|
|
1367
1367
|
console.log({
|
|
1368
|
-
success: result.data.submitForm.success,
|
|
1368
|
+
success: (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.submitForm) === null || _b === void 0 ? void 0 : _b.success,
|
|
1369
1369
|
isError: result instanceof Error,
|
|
1370
1370
|
});
|
|
1371
1371
|
if (result instanceof Error) {
|
|
@@ -1376,11 +1376,12 @@ function useLeadForm(props) {
|
|
|
1376
1376
|
error: "",
|
|
1377
1377
|
validationErrors: {},
|
|
1378
1378
|
});
|
|
1379
|
-
if ((
|
|
1379
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.submitForm) === null || _d === void 0 ? void 0 : _d.success) {
|
|
1380
1380
|
setSuccess(true);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
catch (error) {
|
|
1384
|
+
console.log({ error });
|
|
1384
1385
|
setLeadFormState({
|
|
1385
1386
|
loading: false,
|
|
1386
1387
|
error: props.networkErrorMessage,
|
|
@@ -1407,6 +1408,7 @@ function useLeadForm(props) {
|
|
|
1407
1408
|
errorMessage =
|
|
1408
1409
|
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
1409
1410
|
}
|
|
1411
|
+
console.log({ errors, errorMessage });
|
|
1410
1412
|
return {
|
|
1411
1413
|
states: {
|
|
1412
1414
|
loading,
|
|
@@ -32,7 +32,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
|
|
|
32
32
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
|
|
33
33
|
import './ErrorView-48e2b969.js';
|
|
34
34
|
import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
|
|
35
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-
|
|
35
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-81771102.js';
|
|
36
36
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
37
37
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
|
|
38
38
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-f1dd4b77.js';
|