@saasquatch/mint-components 1.16.0-7 → 1.16.0-8
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_17.cjs.entry.js +6 -4
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
- package/dist/esm/sqm-banking-info-form_17.entry.js +6 -4
- package/dist/esm-es5/sqm-banking-info-form_17.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-bf07feef.entry.js → p-7fe7e515.entry.js} +4 -4
- package/dist/mint-components/p-ba42732b.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-7812a317.system.entry.js +0 -1
|
@@ -1199,6 +1199,8 @@ function useBankingInfoForm(props) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
// Fire form change event
|
|
1201
1201
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1202
|
+
// reset redirect hash
|
|
1203
|
+
window.location.hash = "";
|
|
1202
1204
|
await refetch();
|
|
1203
1205
|
setStep("/dashboard");
|
|
1204
1206
|
}
|
|
@@ -2254,6 +2256,8 @@ function useDocusignForm(props) {
|
|
|
2254
2256
|
throw new Error();
|
|
2255
2257
|
// Fire form change event
|
|
2256
2258
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2259
|
+
// reset redirect hash
|
|
2260
|
+
window.location.hash = "";
|
|
2257
2261
|
setShowExitButton(true);
|
|
2258
2262
|
}
|
|
2259
2263
|
catch (e) {
|
|
@@ -3224,6 +3228,8 @@ function useIndirectTaxForm(props) {
|
|
|
3224
3228
|
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3225
3229
|
// Fire form change event
|
|
3226
3230
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3231
|
+
// reset redirect hash
|
|
3232
|
+
window.location.hash = "";
|
|
3227
3233
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3228
3234
|
!hasValidCurrentDocument) {
|
|
3229
3235
|
// Go to docusign form
|
|
@@ -4467,10 +4473,6 @@ function useTaxAndCash() {
|
|
|
4467
4473
|
setStep(currentStep);
|
|
4468
4474
|
}
|
|
4469
4475
|
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4470
|
-
stencilHooks_module.useEffect(() => {
|
|
4471
|
-
console.log("reset hash");
|
|
4472
|
-
window.location.hash = "";
|
|
4473
|
-
}, [setStep]);
|
|
4474
4476
|
function getFinanceNetworkFilter() {
|
|
4475
4477
|
var _a, _b, _c;
|
|
4476
4478
|
if (step === "/1")
|
|
@@ -250,6 +250,8 @@ export function useBankingInfoForm(props) {
|
|
|
250
250
|
}
|
|
251
251
|
// Fire form change event
|
|
252
252
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
253
|
+
// reset redirect hash
|
|
254
|
+
window.location.hash = "";
|
|
253
255
|
await refetch();
|
|
254
256
|
setStep("/dashboard");
|
|
255
257
|
}
|
|
@@ -105,6 +105,8 @@ export function useDocusignForm(props) {
|
|
|
105
105
|
throw new Error();
|
|
106
106
|
// Fire form change event
|
|
107
107
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
108
|
+
// reset redirect hash
|
|
109
|
+
window.location.hash = "";
|
|
108
110
|
setShowExitButton(true);
|
|
109
111
|
}
|
|
110
112
|
catch (e) {
|
|
@@ -172,6 +172,8 @@ export function useIndirectTaxForm(props) {
|
|
|
172
172
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
173
173
|
// Fire form change event
|
|
174
174
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
175
|
+
// reset redirect hash
|
|
176
|
+
window.location.hash = "";
|
|
175
177
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
176
178
|
!hasValidCurrentDocument) {
|
|
177
179
|
// Go to docusign form
|
|
@@ -146,10 +146,6 @@ export function useTaxAndCash() {
|
|
|
146
146
|
setStep(currentStep);
|
|
147
147
|
}
|
|
148
148
|
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
149
|
-
useEffect(() => {
|
|
150
|
-
console.log("reset hash");
|
|
151
|
-
window.location.hash = "";
|
|
152
|
-
}, [setStep]);
|
|
153
149
|
function getFinanceNetworkFilter() {
|
|
154
150
|
var _a, _b, _c;
|
|
155
151
|
if (step === "/1")
|
|
@@ -1195,6 +1195,8 @@ function useBankingInfoForm(props) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
// Fire form change event
|
|
1197
1197
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1198
|
+
// reset redirect hash
|
|
1199
|
+
window.location.hash = "";
|
|
1198
1200
|
await refetch();
|
|
1199
1201
|
setStep("/dashboard");
|
|
1200
1202
|
}
|
|
@@ -2250,6 +2252,8 @@ function useDocusignForm(props) {
|
|
|
2250
2252
|
throw new Error();
|
|
2251
2253
|
// Fire form change event
|
|
2252
2254
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2255
|
+
// reset redirect hash
|
|
2256
|
+
window.location.hash = "";
|
|
2253
2257
|
setShowExitButton(true);
|
|
2254
2258
|
}
|
|
2255
2259
|
catch (e) {
|
|
@@ -3220,6 +3224,8 @@ function useIndirectTaxForm(props) {
|
|
|
3220
3224
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3221
3225
|
// Fire form change event
|
|
3222
3226
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
3227
|
+
// reset redirect hash
|
|
3228
|
+
window.location.hash = "";
|
|
3223
3229
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3224
3230
|
!hasValidCurrentDocument) {
|
|
3225
3231
|
// Go to docusign form
|
|
@@ -4463,10 +4469,6 @@ function useTaxAndCash() {
|
|
|
4463
4469
|
setStep(currentStep);
|
|
4464
4470
|
}
|
|
4465
4471
|
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4466
|
-
useEffect(() => {
|
|
4467
|
-
console.log("reset hash");
|
|
4468
|
-
window.location.hash = "";
|
|
4469
|
-
}, [setStep]);
|
|
4470
4472
|
function getFinanceNetworkFilter() {
|
|
4471
4473
|
var _a, _b, _c;
|
|
4472
4474
|
if (step === "/1")
|