@saasquatch/mint-components 1.16.0-8 → 1.16.0-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/sqm-banking-info-form_17.cjs.entry.js +6 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +0 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +2 -2
- package/dist/esm/sqm-banking-info-form_17.entry.js +6 -8
- 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-7fe7e515.entry.js → p-609613e8.entry.js} +4 -4
- package/dist/mint-components/p-ddcf4a9e.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-ba42732b.system.entry.js +0 -1
|
@@ -1199,10 +1199,10 @@ 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 = "";
|
|
1204
1202
|
await refetch();
|
|
1205
1203
|
setStep("/dashboard");
|
|
1204
|
+
// reset redirect hash
|
|
1205
|
+
window.location.hash = "";
|
|
1206
1206
|
}
|
|
1207
1207
|
catch (e) {
|
|
1208
1208
|
console.error(e);
|
|
@@ -2256,8 +2256,6 @@ function useDocusignForm(props) {
|
|
|
2256
2256
|
throw new Error();
|
|
2257
2257
|
// Fire form change event
|
|
2258
2258
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2259
|
-
// reset redirect hash
|
|
2260
|
-
window.location.hash = "";
|
|
2261
2259
|
setShowExitButton(true);
|
|
2262
2260
|
}
|
|
2263
2261
|
catch (e) {
|
|
@@ -3228,8 +3226,6 @@ function useIndirectTaxForm(props) {
|
|
|
3228
3226
|
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3229
3227
|
// Fire form change event
|
|
3230
3228
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3231
|
-
// reset redirect hash
|
|
3232
|
-
window.location.hash = "";
|
|
3233
3229
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3234
3230
|
!hasValidCurrentDocument) {
|
|
3235
3231
|
// Go to docusign form
|
|
@@ -3245,6 +3241,8 @@ function useIndirectTaxForm(props) {
|
|
|
3245
3241
|
setStep("/dashboard");
|
|
3246
3242
|
}
|
|
3247
3243
|
}
|
|
3244
|
+
// reset redirect hash
|
|
3245
|
+
window.location.hash = "";
|
|
3248
3246
|
}
|
|
3249
3247
|
catch (e) {
|
|
3250
3248
|
setErrors({ general: true });
|
|
@@ -7990,10 +7988,10 @@ function useUserInfoForm(props) {
|
|
|
7990
7988
|
postalCode: userData.postalCode,
|
|
7991
7989
|
currency: userData.currency,
|
|
7992
7990
|
});
|
|
7993
|
-
// reset redirect hash
|
|
7994
|
-
window.location.hash = "";
|
|
7995
7991
|
const nextStep = context.overrideNextStep || "/2";
|
|
7996
7992
|
setStep(nextStep);
|
|
7993
|
+
// reset redirect hash
|
|
7994
|
+
window.location.hash = "";
|
|
7997
7995
|
}
|
|
7998
7996
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7999
7997
|
const regionObj = hasStates
|
|
@@ -250,10 +250,10 @@ 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 = "";
|
|
255
253
|
await refetch();
|
|
256
254
|
setStep("/dashboard");
|
|
255
|
+
// reset redirect hash
|
|
256
|
+
window.location.hash = "";
|
|
257
257
|
}
|
|
258
258
|
catch (e) {
|
|
259
259
|
console.error(e);
|
|
@@ -105,8 +105,6 @@ 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 = "";
|
|
110
108
|
setShowExitButton(true);
|
|
111
109
|
}
|
|
112
110
|
catch (e) {
|
|
@@ -172,8 +172,6 @@ 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 = "";
|
|
177
175
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
178
176
|
!hasValidCurrentDocument) {
|
|
179
177
|
// Go to docusign form
|
|
@@ -189,6 +187,8 @@ export function useIndirectTaxForm(props) {
|
|
|
189
187
|
setStep("/dashboard");
|
|
190
188
|
}
|
|
191
189
|
}
|
|
190
|
+
// reset redirect hash
|
|
191
|
+
window.location.hash = "";
|
|
192
192
|
}
|
|
193
193
|
catch (e) {
|
|
194
194
|
setErrors({ general: true });
|
|
@@ -153,10 +153,10 @@ export function useUserInfoForm(props) {
|
|
|
153
153
|
postalCode: userData.postalCode,
|
|
154
154
|
currency: userData.currency,
|
|
155
155
|
});
|
|
156
|
-
// reset redirect hash
|
|
157
|
-
window.location.hash = "";
|
|
158
156
|
const nextStep = context.overrideNextStep || "/2";
|
|
159
157
|
setStep(nextStep);
|
|
158
|
+
// reset redirect hash
|
|
159
|
+
window.location.hash = "";
|
|
160
160
|
}
|
|
161
161
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
162
162
|
const regionObj = hasStates
|
|
@@ -1195,10 +1195,10 @@ 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 = "";
|
|
1200
1198
|
await refetch();
|
|
1201
1199
|
setStep("/dashboard");
|
|
1200
|
+
// reset redirect hash
|
|
1201
|
+
window.location.hash = "";
|
|
1202
1202
|
}
|
|
1203
1203
|
catch (e) {
|
|
1204
1204
|
console.error(e);
|
|
@@ -2252,8 +2252,6 @@ function useDocusignForm(props) {
|
|
|
2252
2252
|
throw new Error();
|
|
2253
2253
|
// Fire form change event
|
|
2254
2254
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2255
|
-
// reset redirect hash
|
|
2256
|
-
window.location.hash = "";
|
|
2257
2255
|
setShowExitButton(true);
|
|
2258
2256
|
}
|
|
2259
2257
|
catch (e) {
|
|
@@ -3224,8 +3222,6 @@ function useIndirectTaxForm(props) {
|
|
|
3224
3222
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3225
3223
|
// Fire form change event
|
|
3226
3224
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
3227
|
-
// reset redirect hash
|
|
3228
|
-
window.location.hash = "";
|
|
3229
3225
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
3230
3226
|
!hasValidCurrentDocument) {
|
|
3231
3227
|
// Go to docusign form
|
|
@@ -3241,6 +3237,8 @@ function useIndirectTaxForm(props) {
|
|
|
3241
3237
|
setStep("/dashboard");
|
|
3242
3238
|
}
|
|
3243
3239
|
}
|
|
3240
|
+
// reset redirect hash
|
|
3241
|
+
window.location.hash = "";
|
|
3244
3242
|
}
|
|
3245
3243
|
catch (e) {
|
|
3246
3244
|
setErrors({ general: true });
|
|
@@ -7986,10 +7984,10 @@ function useUserInfoForm(props) {
|
|
|
7986
7984
|
postalCode: userData.postalCode,
|
|
7987
7985
|
currency: userData.currency,
|
|
7988
7986
|
});
|
|
7989
|
-
// reset redirect hash
|
|
7990
|
-
window.location.hash = "";
|
|
7991
7987
|
const nextStep = context.overrideNextStep || "/2";
|
|
7992
7988
|
setStep(nextStep);
|
|
7989
|
+
// reset redirect hash
|
|
7990
|
+
window.location.hash = "";
|
|
7993
7991
|
}
|
|
7994
7992
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7995
7993
|
const regionObj = hasStates
|