@saasquatch/mint-components 1.12.0-1 → 1.12.0-10
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-88821c64.js → ShadowViewAddon-040cffad.js} +6 -3
- package/dist/cjs/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +91 -72
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +128 -63
- package/dist/cjs/sqm-code-verification.cjs.entry.js +67 -77
- package/dist/cjs/sqm-email-verification.cjs.entry.js +158 -12
- package/dist/cjs/{sqm-invoice-table-view-ce9a34ac.js → sqm-invoice-table-view-c58966f8.js} +79 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +56 -14
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +81 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +102 -19
- package/dist/cjs/usePayoutStatus-b9fb7399.js +70 -0
- package/dist/cjs/useVerificationEmail-6aacdb71.js +169 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +9 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +20 -10
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +34 -63
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +38 -29
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +65 -11
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +76 -20
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +327 -15
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +447 -22
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +165 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +78 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +10 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +146 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +30 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +6 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +22 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +99 -88
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-69b61037.js} +6 -3
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/{keys-a1496e39.js → keys-db1897ae.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +91 -72
- package/dist/esm/sqm-big-stat_39.entry.js +127 -62
- package/dist/esm/sqm-code-verification.entry.js +69 -79
- package/dist/esm/sqm-email-verification.entry.js +159 -13
- package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-d1cfdaf4.js} +79 -0
- package/dist/esm/sqm-stencilbook.entry.js +56 -14
- package/dist/esm/sqm-widget-verification-internal.entry.js +84 -14
- package/dist/esm/sqm-widget-verification.entry.js +104 -21
- package/dist/esm/usePayoutStatus-1a635054.js +67 -0
- package/dist/esm/useVerificationEmail-c32696ba.js +167 -0
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +1 -0
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{keys-a1496e39.js → keys-db1897ae.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_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/usePayoutStatus-1a635054.js +1 -0
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-15c7a1d2.system.entry.js +1 -0
- package/dist/mint-components/p-1712a9fd.entry.js +11 -0
- package/dist/mint-components/p-1e616d45.system.js +1 -0
- package/dist/mint-components/{p-721a89c6.entry.js → p-24092973.entry.js} +2 -2
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/p-331d060e.entry.js +223 -0
- package/dist/mint-components/p-39840341.js +1 -0
- package/dist/mint-components/p-4364001c.entry.js +12 -0
- package/dist/mint-components/p-4bd7a472.js +1 -0
- package/dist/mint-components/p-517224ef.js +19 -0
- package/dist/mint-components/p-5a23b560.system.entry.js +1 -0
- package/dist/mint-components/p-8300d8c8.system.js +1 -0
- package/dist/mint-components/p-8bddb468.system.entry.js +1 -0
- package/dist/mint-components/p-9596e97c.system.entry.js +1 -0
- package/dist/mint-components/p-974070c4.system.entry.js +1 -0
- package/dist/mint-components/{p-b651706a.js → p-9eae245f.js} +6 -3
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/p-b2a99637.system.js +1 -0
- package/dist/mint-components/{p-66a04cca.system.entry.js → p-b62faaa5.system.entry.js} +1 -1
- package/dist/mint-components/p-c41e1df8.entry.js +195 -0
- package/dist/mint-components/p-c510fb88.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -1
- package/dist/mint-components/p-d7806f31.js +48 -0
- package/dist/mint-components/p-e01ac27c.system.js +1 -0
- package/dist/mint-components/p-e45a8501.system.entry.js +1 -0
- package/dist/mint-components/p-e990dc21.system.js +1 -0
- package/dist/mint-components/p-f340214f.entry.js +25 -0
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +3 -3
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +4 -10
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +3 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +15 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +79 -0
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +14 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +41 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +10 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +19 -18
- package/dist/types/components.d.ts +366 -92
- 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/cjs/useEmailVerification-30a1c7f6.js +0 -75
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +0 -3
- package/dist/esm/useEmailVerification-7135732c.js +0 -72
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-08c03ba7.js +0 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
- package/dist/mint-components/p-117b4705.system.js +0 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
- package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
- package/dist/mint-components/p-1f9a9b70.system.entry.js +0 -1
- package/dist/mint-components/p-23fdd44e.entry.js +0 -1
- package/dist/mint-components/p-36f7caec.system.entry.js +0 -1
- package/dist/mint-components/p-39397731.entry.js +0 -1
- package/dist/mint-components/p-39af4acd.entry.js +0 -240
- package/dist/mint-components/p-4c9b6fbe.system.js +0 -1
- package/dist/mint-components/p-65e2c043.system.js +0 -1
- package/dist/mint-components/p-663303b7.entry.js +0 -8
- package/dist/mint-components/p-6cae44d7.js +0 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
- package/dist/mint-components/p-8a337864.js +0 -7
- package/dist/mint-components/p-a02afa72.system.js +0 -1
- package/dist/mint-components/p-a5a9aa07.entry.js +0 -189
- package/dist/mint-components/p-c763c0b2.js +0 -1
- package/dist/mint-components/p-e93e5740.entry.js +0 -1
- package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -1
|
@@ -69,18 +69,6 @@ export class TaxAndCashDashboard {
|
|
|
69
69
|
* @uiName Inactive W-8 error message description
|
|
70
70
|
*/
|
|
71
71
|
this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
72
|
-
/**
|
|
73
|
-
* Part of the alert displayed at the top of the page.
|
|
74
|
-
*
|
|
75
|
-
* @uiName Verify identity warning message header
|
|
76
|
-
*/
|
|
77
|
-
this.verifyIdentityAlertHeader = "Verify your identity";
|
|
78
|
-
/**
|
|
79
|
-
* Part of the alert displayed at the top of the page.
|
|
80
|
-
*
|
|
81
|
-
* @uiName Verify identity warning message description
|
|
82
|
-
*/
|
|
83
|
-
this.verifyIdentityAlertMessage = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
84
72
|
/**
|
|
85
73
|
* Additional text displayed next to the tax form's status badge.
|
|
86
74
|
*
|
|
@@ -185,18 +173,35 @@ export class TaxAndCashDashboard {
|
|
|
185
173
|
* @uiName Payout error message title
|
|
186
174
|
* @uiWidget textArea
|
|
187
175
|
*/
|
|
188
|
-
this.
|
|
176
|
+
this.payoutHoldAlertHeader = "Your payout is on hold";
|
|
189
177
|
/**
|
|
190
178
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
191
179
|
* @uiName Payout error message description
|
|
192
180
|
* @uiWidget textArea
|
|
193
181
|
*/
|
|
194
|
-
this.
|
|
182
|
+
this.payoutHoldAlertDescription = "Please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
195
183
|
/**
|
|
196
184
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
197
185
|
* @uiName Payout missing information subtext
|
|
198
186
|
*/
|
|
199
187
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
188
|
+
/**
|
|
189
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
190
|
+
* @uiName Verification required alert message title
|
|
191
|
+
* @uiWidget textArea
|
|
192
|
+
*/
|
|
193
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
194
|
+
/**
|
|
195
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
196
|
+
* @uiName Verification required alert message description
|
|
197
|
+
* @uiWidget textArea
|
|
198
|
+
*/
|
|
199
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
200
|
+
/**
|
|
201
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
202
|
+
* @uiName Verification required alert button text
|
|
203
|
+
*/
|
|
204
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
200
205
|
/**
|
|
201
206
|
* Part of the alert displayed at the top of the page.
|
|
202
207
|
* @uiName Form submission error message title
|
|
@@ -281,10 +286,6 @@ export class TaxAndCashDashboard {
|
|
|
281
286
|
* @uiName Cancel button label
|
|
282
287
|
*/
|
|
283
288
|
this.cancelButton = "Cancel";
|
|
284
|
-
/**
|
|
285
|
-
* @uiName Verify button label
|
|
286
|
-
*/
|
|
287
|
-
this.verifyIdentityButton = "Start Verification";
|
|
288
289
|
withHooks(this);
|
|
289
290
|
}
|
|
290
291
|
disconnectedCallback() { }
|
|
@@ -531,48 +532,6 @@ export class TaxAndCashDashboard {
|
|
|
531
532
|
"reflect": false,
|
|
532
533
|
"defaultValue": "\"Your tax form may have expired or has personal information that doesn\u2019t match your profile. Please submit a new {documentType} form.\""
|
|
533
534
|
},
|
|
534
|
-
"verifyIdentityAlertHeader": {
|
|
535
|
-
"type": "string",
|
|
536
|
-
"mutable": false,
|
|
537
|
-
"complexType": {
|
|
538
|
-
"original": "string",
|
|
539
|
-
"resolved": "string",
|
|
540
|
-
"references": {}
|
|
541
|
-
},
|
|
542
|
-
"required": false,
|
|
543
|
-
"optional": true,
|
|
544
|
-
"docs": {
|
|
545
|
-
"tags": [{
|
|
546
|
-
"text": "Verify identity warning message header",
|
|
547
|
-
"name": "uiName"
|
|
548
|
-
}],
|
|
549
|
-
"text": "Part of the alert displayed at the top of the page."
|
|
550
|
-
},
|
|
551
|
-
"attribute": "verify-identity-alert-header",
|
|
552
|
-
"reflect": false,
|
|
553
|
-
"defaultValue": "\"Verify your identity\""
|
|
554
|
-
},
|
|
555
|
-
"verifyIdentityAlertMessage": {
|
|
556
|
-
"type": "string",
|
|
557
|
-
"mutable": false,
|
|
558
|
-
"complexType": {
|
|
559
|
-
"original": "string",
|
|
560
|
-
"resolved": "string",
|
|
561
|
-
"references": {}
|
|
562
|
-
},
|
|
563
|
-
"required": false,
|
|
564
|
-
"optional": true,
|
|
565
|
-
"docs": {
|
|
566
|
-
"tags": [{
|
|
567
|
-
"text": "Verify identity warning message description",
|
|
568
|
-
"name": "uiName"
|
|
569
|
-
}],
|
|
570
|
-
"text": "Part of the alert displayed at the top of the page."
|
|
571
|
-
},
|
|
572
|
-
"attribute": "verify-identity-alert-message",
|
|
573
|
-
"reflect": false,
|
|
574
|
-
"defaultValue": "\"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.\""
|
|
575
|
-
},
|
|
576
535
|
"invalidForm": {
|
|
577
536
|
"type": "string",
|
|
578
537
|
"mutable": false,
|
|
@@ -984,7 +943,7 @@ export class TaxAndCashDashboard {
|
|
|
984
943
|
"reflect": false,
|
|
985
944
|
"defaultValue": "\"Account\""
|
|
986
945
|
},
|
|
987
|
-
"
|
|
946
|
+
"payoutHoldAlertHeader": {
|
|
988
947
|
"type": "string",
|
|
989
948
|
"mutable": false,
|
|
990
949
|
"complexType": {
|
|
@@ -1004,11 +963,11 @@ export class TaxAndCashDashboard {
|
|
|
1004
963
|
}],
|
|
1005
964
|
"text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
|
|
1006
965
|
},
|
|
1007
|
-
"attribute": "
|
|
966
|
+
"attribute": "payout-hold-alert-header",
|
|
1008
967
|
"reflect": false,
|
|
1009
|
-
"defaultValue": "\"Your payout is on hold
|
|
968
|
+
"defaultValue": "\"Your payout is on hold\""
|
|
1010
969
|
},
|
|
1011
|
-
"
|
|
970
|
+
"payoutHoldAlertDescription": {
|
|
1012
971
|
"type": "string",
|
|
1013
972
|
"mutable": false,
|
|
1014
973
|
"complexType": {
|
|
@@ -1028,9 +987,9 @@ export class TaxAndCashDashboard {
|
|
|
1028
987
|
}],
|
|
1029
988
|
"text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
|
|
1030
989
|
},
|
|
1031
|
-
"attribute": "
|
|
990
|
+
"attribute": "payout-hold-alert-description",
|
|
1032
991
|
"reflect": false,
|
|
1033
|
-
"defaultValue": "\"
|
|
992
|
+
"defaultValue": "\"Please contact Support or check your inbox for an email from our referral program provider, impact.com.\""
|
|
1034
993
|
},
|
|
1035
994
|
"payoutMissingInformationText": {
|
|
1036
995
|
"type": "string",
|
|
@@ -1053,6 +1012,75 @@ export class TaxAndCashDashboard {
|
|
|
1053
1012
|
"reflect": false,
|
|
1054
1013
|
"defaultValue": "\"Missing banking information, go to Impact.com to resolve.\""
|
|
1055
1014
|
},
|
|
1015
|
+
"verificationRequiredHeader": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"mutable": false,
|
|
1018
|
+
"complexType": {
|
|
1019
|
+
"original": "string",
|
|
1020
|
+
"resolved": "string",
|
|
1021
|
+
"references": {}
|
|
1022
|
+
},
|
|
1023
|
+
"required": false,
|
|
1024
|
+
"optional": false,
|
|
1025
|
+
"docs": {
|
|
1026
|
+
"tags": [{
|
|
1027
|
+
"text": "Verification required alert message title",
|
|
1028
|
+
"name": "uiName"
|
|
1029
|
+
}, {
|
|
1030
|
+
"text": "textArea",
|
|
1031
|
+
"name": "uiWidget"
|
|
1032
|
+
}],
|
|
1033
|
+
"text": "Part of the alert displayed at the top of the page when the user needs to verify their identity."
|
|
1034
|
+
},
|
|
1035
|
+
"attribute": "verification-required-header",
|
|
1036
|
+
"reflect": false,
|
|
1037
|
+
"defaultValue": "\"Verify your identity\""
|
|
1038
|
+
},
|
|
1039
|
+
"verificationRequiredDescription": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"mutable": false,
|
|
1042
|
+
"complexType": {
|
|
1043
|
+
"original": "string",
|
|
1044
|
+
"resolved": "string",
|
|
1045
|
+
"references": {}
|
|
1046
|
+
},
|
|
1047
|
+
"required": false,
|
|
1048
|
+
"optional": false,
|
|
1049
|
+
"docs": {
|
|
1050
|
+
"tags": [{
|
|
1051
|
+
"text": "Verification required alert message description",
|
|
1052
|
+
"name": "uiName"
|
|
1053
|
+
}, {
|
|
1054
|
+
"text": "textArea",
|
|
1055
|
+
"name": "uiWidget"
|
|
1056
|
+
}],
|
|
1057
|
+
"text": "Part of the alert displayed at the top of the page when the user needs to verify their identity"
|
|
1058
|
+
},
|
|
1059
|
+
"attribute": "verification-required-description",
|
|
1060
|
+
"reflect": false,
|
|
1061
|
+
"defaultValue": "\"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.\""
|
|
1062
|
+
},
|
|
1063
|
+
"verificationRequiredButtonText": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"mutable": false,
|
|
1066
|
+
"complexType": {
|
|
1067
|
+
"original": "string",
|
|
1068
|
+
"resolved": "string",
|
|
1069
|
+
"references": {}
|
|
1070
|
+
},
|
|
1071
|
+
"required": false,
|
|
1072
|
+
"optional": false,
|
|
1073
|
+
"docs": {
|
|
1074
|
+
"tags": [{
|
|
1075
|
+
"text": "Verification required alert button text",
|
|
1076
|
+
"name": "uiName"
|
|
1077
|
+
}],
|
|
1078
|
+
"text": "Part of the alert displayed at the top of the page when the user needs to verify their identity."
|
|
1079
|
+
},
|
|
1080
|
+
"attribute": "verification-required-button-text",
|
|
1081
|
+
"reflect": false,
|
|
1082
|
+
"defaultValue": "\"Start Verification\""
|
|
1083
|
+
},
|
|
1056
1084
|
"generalErrorTitle": {
|
|
1057
1085
|
"type": "string",
|
|
1058
1086
|
"mutable": false,
|
|
@@ -1488,33 +1516,12 @@ export class TaxAndCashDashboard {
|
|
|
1488
1516
|
"reflect": false,
|
|
1489
1517
|
"defaultValue": "\"Cancel\""
|
|
1490
1518
|
},
|
|
1491
|
-
"verifyIdentityButton": {
|
|
1492
|
-
"type": "string",
|
|
1493
|
-
"mutable": false,
|
|
1494
|
-
"complexType": {
|
|
1495
|
-
"original": "string",
|
|
1496
|
-
"resolved": "string",
|
|
1497
|
-
"references": {}
|
|
1498
|
-
},
|
|
1499
|
-
"required": false,
|
|
1500
|
-
"optional": false,
|
|
1501
|
-
"docs": {
|
|
1502
|
-
"tags": [{
|
|
1503
|
-
"text": "Verify button label",
|
|
1504
|
-
"name": "uiName"
|
|
1505
|
-
}],
|
|
1506
|
-
"text": ""
|
|
1507
|
-
},
|
|
1508
|
-
"attribute": "verify-identity-button",
|
|
1509
|
-
"reflect": false,
|
|
1510
|
-
"defaultValue": "\"Start Verification\""
|
|
1511
|
-
},
|
|
1512
1519
|
"demoData": {
|
|
1513
1520
|
"type": "unknown",
|
|
1514
1521
|
"mutable": false,
|
|
1515
1522
|
"complexType": {
|
|
1516
1523
|
"original": "DemoData<UseTaxAndCashDashboardResult>",
|
|
1517
|
-
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; showIdentityVerificationDialog?: boolean; identiyRequired?: boolean; errors?: { general?: boolean; }; }; }",
|
|
1524
|
+
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; showIdentityVerificationDialog?: boolean; identiyRequired?: boolean; hasHold: boolean; payoutStatus: PayoutStatus; showVerifyIdentity: boolean; errors?: { general?: boolean; }; }; }",
|
|
1518
1525
|
"references": {
|
|
1519
1526
|
"DemoData": {
|
|
1520
1527
|
"location": "import",
|
|
@@ -1555,12 +1562,16 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1555
1562
|
disabled: false,
|
|
1556
1563
|
loading: false,
|
|
1557
1564
|
showNewFormDialog: false,
|
|
1565
|
+
hasHold: false,
|
|
1566
|
+
showVerifyIdentity: false,
|
|
1567
|
+
payoutStatus: "DONE",
|
|
1558
1568
|
},
|
|
1559
1569
|
callbacks: {
|
|
1560
1570
|
onClick: () => console.debug("check step"),
|
|
1561
1571
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
1562
1572
|
onNewFormCancel: () => console.log("hide"),
|
|
1563
1573
|
onNewFormClick: () => console.log("show"),
|
|
1574
|
+
onVerifyIdentityCancel: () => console.log("hide"),
|
|
1564
1575
|
},
|
|
1565
1576
|
text: props.getTextProps(),
|
|
1566
1577
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -5,6 +5,7 @@ import { vatLabels } from "../countries";
|
|
|
5
5
|
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
6
6
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
7
7
|
import { taxTypeToName } from "../utils";
|
|
8
|
+
import { getStatus } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
8
9
|
function getCountryName(countryCode, locale) {
|
|
9
10
|
if (!countryCode)
|
|
10
11
|
return undefined;
|
|
@@ -40,10 +41,11 @@ function getIndirectTaxType(taxInformation) {
|
|
|
40
41
|
return "Indirect Tax";
|
|
41
42
|
}
|
|
42
43
|
export const useTaxAndCashDashboard = (props) => {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
44
45
|
const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
|
|
45
46
|
const setContext = useSetParent(TAX_FORM_CONTEXT_NAMESPACE);
|
|
46
47
|
const [showDialog, setShowDialog] = useState(false);
|
|
48
|
+
const [showVerification, setShowVerification] = useState(false);
|
|
47
49
|
const locale = useLocale();
|
|
48
50
|
useEffect(() => {
|
|
49
51
|
// Clear override context once on submitted
|
|
@@ -74,6 +76,7 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
74
76
|
setStep("/3");
|
|
75
77
|
};
|
|
76
78
|
const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
79
|
+
const payoutStatus = getStatus(data);
|
|
77
80
|
return {
|
|
78
81
|
states: {
|
|
79
82
|
dateSubmitted,
|
|
@@ -95,12 +98,16 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
95
98
|
loading,
|
|
96
99
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
97
100
|
showNewFormDialog: showDialog,
|
|
101
|
+
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
102
|
+
payoutStatus,
|
|
103
|
+
showVerifyIdentity: showVerification,
|
|
98
104
|
},
|
|
99
105
|
callbacks: {
|
|
100
106
|
onClick: () => setShowDialog(true),
|
|
101
107
|
onEditPayoutInfo,
|
|
102
108
|
onNewFormCancel: () => setShowDialog(false),
|
|
103
109
|
onNewFormClick,
|
|
110
|
+
onVerifyIdentityCancel: () => setShowVerification(false),
|
|
104
111
|
},
|
|
105
112
|
text: props.getTextProps(),
|
|
106
113
|
};
|
|
@@ -24,17 +24,20 @@ export function useUserInfoForm(props) {
|
|
|
24
24
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
25
25
|
const [formErrors, setErrors] = useState({});
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
28
28
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
29
29
|
if (!user || step !== "/1")
|
|
30
30
|
return;
|
|
31
31
|
// If form already filled out, skip initialising it
|
|
32
32
|
if (objectIsFull(userFormContext))
|
|
33
33
|
return;
|
|
34
|
-
|
|
34
|
+
// Prefer MI email if it was verified before this
|
|
35
|
+
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
36
|
+
: user.email;
|
|
37
|
+
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
35
38
|
// Initialise with partner information
|
|
36
39
|
setUserFormContext({
|
|
37
|
-
email
|
|
40
|
+
email,
|
|
38
41
|
firstName: user.impactConnection.user.firstName,
|
|
39
42
|
lastName: user.impactConnection.user.lastName,
|
|
40
43
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
@@ -50,17 +53,17 @@ export function useUserInfoForm(props) {
|
|
|
50
53
|
else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
|
|
51
54
|
// Initialise with user information
|
|
52
55
|
setUserFormContext({
|
|
53
|
-
email
|
|
56
|
+
email,
|
|
54
57
|
firstName: user.firstName,
|
|
55
58
|
lastName: user.lastName,
|
|
56
59
|
countryCode: user.countryCode || "US",
|
|
57
|
-
currency: (
|
|
58
|
-
phoneNumberCountryCode: ((
|
|
59
|
-
phoneNumber: (
|
|
60
|
-
address: (
|
|
61
|
-
city: (
|
|
62
|
-
state: (
|
|
63
|
-
postalCode: (
|
|
60
|
+
currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
|
|
61
|
+
phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
|
|
62
|
+
phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
|
|
63
|
+
address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
|
|
64
|
+
city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
|
|
65
|
+
state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
|
|
66
|
+
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
64
67
|
});
|
|
65
68
|
}
|
|
66
69
|
}, [data, step, userFormContext]);
|
|
@@ -139,6 +142,8 @@ export function useUserInfoForm(props) {
|
|
|
139
142
|
const { allowBankingCollection, ...userData } = formData;
|
|
140
143
|
setUserFormContext({
|
|
141
144
|
...userFormContext,
|
|
145
|
+
firstName: userData.firstName,
|
|
146
|
+
lastName: userData.lastName,
|
|
142
147
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
143
148
|
phoneNumber: userData.phoneNumber,
|
|
144
149
|
countryCode: userData.countryCode,
|
|
@@ -1269,9 +1269,12 @@ const payoutBalanceQuery = () => {
|
|
|
1269
1269
|
query payoutBalance {
|
|
1270
1270
|
viewer: viewer {
|
|
1271
1271
|
... on User {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1272
|
+
id
|
|
1273
|
+
impactConnection {
|
|
1274
|
+
publisher {
|
|
1275
|
+
payoutsAccount {
|
|
1276
|
+
balance
|
|
1277
|
+
}
|
|
1275
1278
|
}
|
|
1276
1279
|
}
|
|
1277
1280
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Util function for getting just the props with a certain prefix.
|
|
3
|
+
* @param props Text props on stencil component
|
|
4
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
5
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6
|
+
*/
|
|
7
|
+
function extractProps(props, prefix) {
|
|
8
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
9
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
10
|
+
const key = k.replace(prefix, "");
|
|
11
|
+
return {
|
|
12
|
+
...prev,
|
|
13
|
+
[key]: props[k],
|
|
14
|
+
};
|
|
15
|
+
}, {});
|
|
16
|
+
return formattedProps;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { extractProps as e };
|
|
@@ -3,4 +3,4 @@ const VERIFICATION_EMAIL_NAMESPACE = "sq:verification-email";
|
|
|
3
3
|
const VERIFICATION_PARENT_NAMESPACE = "sq:verification-context";
|
|
4
4
|
const VERIFICATION_EVENT_KEY = "sq:code-verified";
|
|
5
5
|
|
|
6
|
-
export { SHOW_CODE_NAMESPACE as S,
|
|
6
|
+
export { SHOW_CODE_NAMESPACE as S, VERIFICATION_PARENT_NAMESPACE as V, VERIFICATION_EMAIL_NAMESPACE as a, VERIFICATION_EVENT_KEY as b };
|