@saasquatch/mint-components 1.16.0-0 → 1.16.0-1
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +23 -14
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +7 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +29 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +32 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +13 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +23 -14
- package/dist/esm/sqm-big-stat_43.entry.js +7 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.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-4465b8e0.system.entry.js → p-0e864c3c.system.entry.js} +1 -1
- package/dist/mint-components/p-1354b74b.system.entry.js +1 -0
- package/dist/mint-components/{p-b94ffed3.entry.js → p-22a4a611.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-00658daa.entry.js → p-47bd2d7a.entry.js} +6 -6
- package/dist/mint-components/{p-fe7af690.system.entry.js → p-6f65f9e1.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc7a2647.system.entry.js → p-776733b5.system.entry.js} +1 -1
- package/dist/mint-components/{p-e2f1dd8e.entry.js → p-c46a0007.entry.js} +1 -1
- package/dist/mint-components/{p-08090b99.entry.js → p-eff2e68b.entry.js} +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +6 -0
- package/dist/types/components.d.ts +20 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-8e478d2c.system.entry.js +0 -1
|
@@ -41,7 +41,7 @@ export class RewardTableStatusCell {
|
|
|
41
41
|
this.pendingReviewText = "Awaiting review";
|
|
42
42
|
this.deniedText = "Detected self-referral";
|
|
43
43
|
this.payoutFailed = "Payout failed due to a fulfillment issue and is current being retried.";
|
|
44
|
-
this.payoutApproved = "Reward
|
|
44
|
+
this.payoutApproved = "Reward was scheduled for payment based on your settings, barring any account holds.";
|
|
45
45
|
this.payoutCancelled = "If you think this is a mistake, contact our Support team.";
|
|
46
46
|
}
|
|
47
47
|
rewardStatus(reward) {
|
|
@@ -486,7 +486,7 @@ export class RewardTableStatusCell {
|
|
|
486
486
|
},
|
|
487
487
|
"attribute": "payout-approved",
|
|
488
488
|
"reflect": false,
|
|
489
|
-
"defaultValue": "\"Reward
|
|
489
|
+
"defaultValue": "\"Reward was scheduled for payment based on your settings, barring any account holds.\""
|
|
490
490
|
},
|
|
491
491
|
"payoutCancelled": {
|
|
492
492
|
"type": "string",
|
|
@@ -132,7 +132,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
132
132
|
case "OVER_W9_THRESHOLD":
|
|
133
133
|
return {
|
|
134
134
|
header: text.w9RequiredHeader,
|
|
135
|
-
description: text.w9RequiredDescription,
|
|
135
|
+
description: intl.formatMessage({ id: "w9RequiredDescription", defaultMessage: text.w9RequiredDescription }, { termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)) }),
|
|
136
136
|
buttonText: text.w9RequiredButtonText,
|
|
137
137
|
alertType: "warning",
|
|
138
138
|
icon: "exclamation-triangle",
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -67,7 +67,7 @@ export class PayoutStatusAlert {
|
|
|
67
67
|
/**
|
|
68
68
|
* @uiName W9 payment threshold alert description
|
|
69
69
|
*/
|
|
70
|
-
this.w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as
|
|
70
|
+
this.w9RequiredDescription = "You have surpassed the $600 th ershold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
71
71
|
/**
|
|
72
72
|
* @uiName W9 payment threshold alert button text
|
|
73
73
|
*/
|
|
@@ -83,11 +83,15 @@ export class PayoutStatusAlert {
|
|
|
83
83
|
/**
|
|
84
84
|
* @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
|
|
85
85
|
*/
|
|
86
|
-
this.cashPayoutsPageUrl = "/
|
|
86
|
+
this.cashPayoutsPageUrl = "/taxAndCash";
|
|
87
87
|
/**
|
|
88
88
|
* @uiName Support link text
|
|
89
89
|
*/
|
|
90
90
|
this.supportLink = "support team";
|
|
91
|
+
/**
|
|
92
|
+
* @uiName Terms and Conditions text
|
|
93
|
+
*/
|
|
94
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
91
95
|
/**
|
|
92
96
|
* @uiName Error header
|
|
93
97
|
*/
|
|
@@ -403,7 +407,7 @@ export class PayoutStatusAlert {
|
|
|
403
407
|
},
|
|
404
408
|
"attribute": "w-9-required-description",
|
|
405
409
|
"reflect": false,
|
|
406
|
-
"defaultValue": "\"To remove the hold, you need to submit a W9 tax form as
|
|
410
|
+
"defaultValue": "\"You have surpassed the $600 th ershold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.\""
|
|
407
411
|
},
|
|
408
412
|
"w9RequiredButtonText": {
|
|
409
413
|
"type": "string",
|
|
@@ -487,7 +491,7 @@ export class PayoutStatusAlert {
|
|
|
487
491
|
},
|
|
488
492
|
"attribute": "cash-payouts-page-url",
|
|
489
493
|
"reflect": false,
|
|
490
|
-
"defaultValue": "\"/
|
|
494
|
+
"defaultValue": "\"/taxAndCash\""
|
|
491
495
|
},
|
|
492
496
|
"supportLink": {
|
|
493
497
|
"type": "string",
|
|
@@ -510,6 +514,27 @@ export class PayoutStatusAlert {
|
|
|
510
514
|
"reflect": false,
|
|
511
515
|
"defaultValue": "\"support team\""
|
|
512
516
|
},
|
|
517
|
+
"termsAndConditions": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "string",
|
|
522
|
+
"resolved": "string",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": false,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [{
|
|
529
|
+
"text": "Terms and Conditions text",
|
|
530
|
+
"name": "uiName"
|
|
531
|
+
}],
|
|
532
|
+
"text": ""
|
|
533
|
+
},
|
|
534
|
+
"attribute": "terms-and-conditions",
|
|
535
|
+
"reflect": false,
|
|
536
|
+
"defaultValue": "\"Terms and Conditions\""
|
|
537
|
+
},
|
|
513
538
|
"errorHeader": {
|
|
514
539
|
"type": "string",
|
|
515
540
|
"mutable": false,
|
|
@@ -930,7 +930,7 @@ export class TaxAndCashMonolith {
|
|
|
930
930
|
* @uiGroup Dashboard Properties
|
|
931
931
|
* @uiWidget textArea
|
|
932
932
|
*/
|
|
933
|
-
this.dashboard_w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as
|
|
933
|
+
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
934
934
|
/**
|
|
935
935
|
* @uiName W9 payment threshold alert button text
|
|
936
936
|
* @uiGroup Dashboard Properties
|
|
@@ -1038,6 +1038,12 @@ export class TaxAndCashMonolith {
|
|
|
1038
1038
|
* @uiGroup General Form Properties
|
|
1039
1039
|
*/
|
|
1040
1040
|
this.supportLink = "support team";
|
|
1041
|
+
/**
|
|
1042
|
+
* Link text for Terms and Conditions
|
|
1043
|
+
* @uiName Terms and Conditions text
|
|
1044
|
+
* @uiGroup General Form Properties
|
|
1045
|
+
*/
|
|
1046
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
1041
1047
|
withHooks(this);
|
|
1042
1048
|
}
|
|
1043
1049
|
disconnectedCallback() { }
|
|
@@ -4939,7 +4945,7 @@ export class TaxAndCashMonolith {
|
|
|
4939
4945
|
},
|
|
4940
4946
|
"attribute": "dashboard_w-9-required-description",
|
|
4941
4947
|
"reflect": false,
|
|
4942
|
-
"defaultValue": "\"To remove the hold, you need to submit a W9 tax form as
|
|
4948
|
+
"defaultValue": "\"You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.\""
|
|
4943
4949
|
},
|
|
4944
4950
|
"dashboard_w9RequiredButtonText": {
|
|
4945
4951
|
"type": "string",
|
|
@@ -5370,6 +5376,30 @@ export class TaxAndCashMonolith {
|
|
|
5370
5376
|
"reflect": false,
|
|
5371
5377
|
"defaultValue": "\"support team\""
|
|
5372
5378
|
},
|
|
5379
|
+
"termsAndConditions": {
|
|
5380
|
+
"type": "string",
|
|
5381
|
+
"mutable": false,
|
|
5382
|
+
"complexType": {
|
|
5383
|
+
"original": "string",
|
|
5384
|
+
"resolved": "string",
|
|
5385
|
+
"references": {}
|
|
5386
|
+
},
|
|
5387
|
+
"required": false,
|
|
5388
|
+
"optional": false,
|
|
5389
|
+
"docs": {
|
|
5390
|
+
"tags": [{
|
|
5391
|
+
"text": "Terms and Conditions text",
|
|
5392
|
+
"name": "uiName"
|
|
5393
|
+
}, {
|
|
5394
|
+
"text": "General Form Properties",
|
|
5395
|
+
"name": "uiGroup"
|
|
5396
|
+
}],
|
|
5397
|
+
"text": "Link text for Terms and Conditions"
|
|
5398
|
+
},
|
|
5399
|
+
"attribute": "terms-and-conditions",
|
|
5400
|
+
"reflect": false,
|
|
5401
|
+
"defaultValue": "\"Terms and Conditions\""
|
|
5402
|
+
},
|
|
5373
5403
|
"demoData": {
|
|
5374
5404
|
"type": "unknown",
|
|
5375
5405
|
"mutable": false,
|
|
@@ -402,20 +402,21 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
402
402
|
slots.payoutDetailsCardSlot,
|
|
403
403
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
404
404
|
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
405
|
-
h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
405
|
+
!states.noFormNeeded && (h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
406
406
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
407
407
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
408
|
-
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (h("div", null,
|
|
409
|
-
h("
|
|
410
|
-
h("
|
|
411
|
-
h("
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
408
|
+
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (h("div", null,
|
|
409
|
+
h("div", null,
|
|
410
|
+
h("span", { class: sheet.classes.TaxFormDetailsContainer },
|
|
411
|
+
h("div", { class: sheet.classes.StatusContainer },
|
|
412
|
+
h("h3", null, intl.formatMessage({
|
|
413
|
+
id: "section-subheader",
|
|
414
|
+
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
415
|
+
}, {
|
|
416
|
+
documentType: states.documentTypeString,
|
|
417
|
+
})),
|
|
418
|
+
h("span", { class: sheet.classes.StatusAlert }, statusMap[states.status]))),
|
|
419
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
419
420
|
h("div", { class: sheet.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
420
421
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
421
422
|
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (h("div", null,
|
|
@@ -238,7 +238,7 @@ export class TaxAndCashDashboard {
|
|
|
238
238
|
/**
|
|
239
239
|
* @uiName W9 payment threshold alert description
|
|
240
240
|
*/
|
|
241
|
-
this.w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as
|
|
241
|
+
this.w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
242
242
|
/**
|
|
243
243
|
* @uiName W9 payment threshold alert button text
|
|
244
244
|
*/
|
|
@@ -1310,7 +1310,7 @@ export class TaxAndCashDashboard {
|
|
|
1310
1310
|
},
|
|
1311
1311
|
"attribute": "w-9-required-description",
|
|
1312
1312
|
"reflect": false,
|
|
1313
|
-
"defaultValue": "\"To remove the hold, you need to submit a W9 tax form as
|
|
1313
|
+
"defaultValue": "\"You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.\""
|
|
1314
1314
|
},
|
|
1315
1315
|
"w9RequiredButtonText": {
|
|
1316
1316
|
"type": "string",
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -51,6 +51,8 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
// Clear override context once on submitted
|
|
53
53
|
setContext({});
|
|
54
|
+
if (window.location.hash)
|
|
55
|
+
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
54
56
|
}, []);
|
|
55
57
|
const { data, loading, errors: userError, refetch, } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
56
58
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|