@saasquatch/mint-components 2.0.2-20 → 2.0.2-22
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-banking-info-form_10.cjs.entry.js +19 -15
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +9 -6
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +10 -9
- package/dist/esm/sqm-banking-info-form_10.entry.js +19 -15
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-b3783e7d.entry.js → p-003fe134.entry.js} +2 -2
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-d91948d9.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-d078327c.system.entry.js +0 -1
|
@@ -903,11 +903,6 @@ function useBankingInfoForm(props) {
|
|
|
903
903
|
const paymentMethodChecked = !hasPayPal
|
|
904
904
|
? "toBankAccount"
|
|
905
905
|
: _paymentMethodChecked;
|
|
906
|
-
console.log({ context });
|
|
907
|
-
domContextHooks_module.useEffect(() => {
|
|
908
|
-
// reset redirect hash
|
|
909
|
-
window.location.hash = "";
|
|
910
|
-
}, []);
|
|
911
906
|
domContextHooks_module.useEffect(() => {
|
|
912
907
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
913
908
|
if (!userData)
|
|
@@ -1079,6 +1074,7 @@ function useBankingInfoForm(props) {
|
|
|
1079
1074
|
}
|
|
1080
1075
|
await runMutation(formData, token);
|
|
1081
1076
|
setShowModal(false);
|
|
1077
|
+
window.location.hash = "";
|
|
1082
1078
|
};
|
|
1083
1079
|
const onVerification = async (token) => {
|
|
1084
1080
|
host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
|
|
@@ -1108,7 +1104,14 @@ function useBankingInfoForm(props) {
|
|
|
1108
1104
|
setBankCountry: updateBankCountry,
|
|
1109
1105
|
setPaymentMethodChecked,
|
|
1110
1106
|
setPaymentScheduleChecked,
|
|
1111
|
-
onBack: () =>
|
|
1107
|
+
onBack: () => {
|
|
1108
|
+
if (window.location.hash) {
|
|
1109
|
+
window.location.hash = "";
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
setStep("/dashboard");
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1112
1115
|
setCountrySearch,
|
|
1113
1116
|
onVerification,
|
|
1114
1117
|
onVerificationHide: () => onVerification(null),
|
|
@@ -1716,10 +1719,6 @@ function useDocusignForm(props) {
|
|
|
1716
1719
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1717
1720
|
const actualDocumentType = existingDocumentType ||
|
|
1718
1721
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
1719
|
-
domContextHooks_module.useEffect(() => {
|
|
1720
|
-
// reset redirect hash
|
|
1721
|
-
window.location.hash = "";
|
|
1722
|
-
}, []);
|
|
1723
1722
|
domContextHooks_module.useEffect(() => {
|
|
1724
1723
|
if (!existingDocumentType)
|
|
1725
1724
|
return;
|
|
@@ -1785,11 +1784,16 @@ function useDocusignForm(props) {
|
|
|
1785
1784
|
}
|
|
1786
1785
|
};
|
|
1787
1786
|
const progressStep = () => {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1787
|
+
if (window.location.hash) {
|
|
1788
|
+
window.location.hash = "";
|
|
1789
|
+
}
|
|
1790
|
+
else {
|
|
1791
|
+
setStep(context.overrideNextStep ||
|
|
1792
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
1793
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
1794
|
+
? "/dashboard"
|
|
1795
|
+
: "/4");
|
|
1796
|
+
}
|
|
1793
1797
|
};
|
|
1794
1798
|
const allLoading = userLoading || documentLoading || loading;
|
|
1795
1799
|
return {
|
|
@@ -125,11 +125,6 @@ export function useBankingInfoForm(props) {
|
|
|
125
125
|
const paymentMethodChecked = !hasPayPal
|
|
126
126
|
? "toBankAccount"
|
|
127
127
|
: _paymentMethodChecked;
|
|
128
|
-
console.log({ context });
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
// reset redirect hash
|
|
131
|
-
window.location.hash = "";
|
|
132
|
-
}, []);
|
|
133
128
|
useEffect(() => {
|
|
134
129
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
135
130
|
if (!userData)
|
|
@@ -301,6 +296,7 @@ export function useBankingInfoForm(props) {
|
|
|
301
296
|
}
|
|
302
297
|
await runMutation(formData, token);
|
|
303
298
|
setShowModal(false);
|
|
299
|
+
window.location.hash = "";
|
|
304
300
|
};
|
|
305
301
|
const onVerification = async (token) => {
|
|
306
302
|
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
@@ -330,7 +326,14 @@ export function useBankingInfoForm(props) {
|
|
|
330
326
|
setBankCountry: updateBankCountry,
|
|
331
327
|
setPaymentMethodChecked,
|
|
332
328
|
setPaymentScheduleChecked,
|
|
333
|
-
onBack: () =>
|
|
329
|
+
onBack: () => {
|
|
330
|
+
if (window.location.hash) {
|
|
331
|
+
window.location.hash = "";
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
setStep("/dashboard");
|
|
335
|
+
}
|
|
336
|
+
},
|
|
334
337
|
setCountrySearch,
|
|
335
338
|
onVerification,
|
|
336
339
|
onVerificationHide: () => onVerification(null),
|
|
@@ -50,10 +50,6 @@ export function useDocusignForm(props) {
|
|
|
50
50
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
51
51
|
const actualDocumentType = existingDocumentType ||
|
|
52
52
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
// reset redirect hash
|
|
55
|
-
window.location.hash = "";
|
|
56
|
-
}, []);
|
|
57
53
|
useEffect(() => {
|
|
58
54
|
if (!existingDocumentType)
|
|
59
55
|
return;
|
|
@@ -119,11 +115,16 @@ export function useDocusignForm(props) {
|
|
|
119
115
|
}
|
|
120
116
|
};
|
|
121
117
|
const progressStep = () => {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
if (window.location.hash) {
|
|
119
|
+
window.location.hash = "";
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
setStep(context.overrideNextStep ||
|
|
123
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
124
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
125
|
+
? "/dashboard"
|
|
126
|
+
: "/4");
|
|
127
|
+
}
|
|
127
128
|
};
|
|
128
129
|
const allLoading = userLoading || documentLoading || loading;
|
|
129
130
|
return {
|
|
@@ -899,11 +899,6 @@ function useBankingInfoForm(props) {
|
|
|
899
899
|
const paymentMethodChecked = !hasPayPal
|
|
900
900
|
? "toBankAccount"
|
|
901
901
|
: _paymentMethodChecked;
|
|
902
|
-
console.log({ context });
|
|
903
|
-
useEffect(() => {
|
|
904
|
-
// reset redirect hash
|
|
905
|
-
window.location.hash = "";
|
|
906
|
-
}, []);
|
|
907
902
|
useEffect(() => {
|
|
908
903
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
909
904
|
if (!userData)
|
|
@@ -1075,6 +1070,7 @@ function useBankingInfoForm(props) {
|
|
|
1075
1070
|
}
|
|
1076
1071
|
await runMutation(formData, token);
|
|
1077
1072
|
setShowModal(false);
|
|
1073
|
+
window.location.hash = "";
|
|
1078
1074
|
};
|
|
1079
1075
|
const onVerification = async (token) => {
|
|
1080
1076
|
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
@@ -1104,7 +1100,14 @@ function useBankingInfoForm(props) {
|
|
|
1104
1100
|
setBankCountry: updateBankCountry,
|
|
1105
1101
|
setPaymentMethodChecked,
|
|
1106
1102
|
setPaymentScheduleChecked,
|
|
1107
|
-
onBack: () =>
|
|
1103
|
+
onBack: () => {
|
|
1104
|
+
if (window.location.hash) {
|
|
1105
|
+
window.location.hash = "";
|
|
1106
|
+
}
|
|
1107
|
+
else {
|
|
1108
|
+
setStep("/dashboard");
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1108
1111
|
setCountrySearch,
|
|
1109
1112
|
onVerification,
|
|
1110
1113
|
onVerificationHide: () => onVerification(null),
|
|
@@ -1712,10 +1715,6 @@ function useDocusignForm(props) {
|
|
|
1712
1715
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1713
1716
|
const actualDocumentType = existingDocumentType ||
|
|
1714
1717
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
1715
|
-
useEffect(() => {
|
|
1716
|
-
// reset redirect hash
|
|
1717
|
-
window.location.hash = "";
|
|
1718
|
-
}, []);
|
|
1719
1718
|
useEffect(() => {
|
|
1720
1719
|
if (!existingDocumentType)
|
|
1721
1720
|
return;
|
|
@@ -1781,11 +1780,16 @@ function useDocusignForm(props) {
|
|
|
1781
1780
|
}
|
|
1782
1781
|
};
|
|
1783
1782
|
const progressStep = () => {
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1783
|
+
if (window.location.hash) {
|
|
1784
|
+
window.location.hash = "";
|
|
1785
|
+
}
|
|
1786
|
+
else {
|
|
1787
|
+
setStep(context.overrideNextStep ||
|
|
1788
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
1789
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
1790
|
+
? "/dashboard"
|
|
1791
|
+
: "/4");
|
|
1792
|
+
}
|
|
1789
1793
|
};
|
|
1790
1794
|
const allLoading = userLoading || documentLoading || loading;
|
|
1791
1795
|
return {
|