@saasquatch/mint-components 1.12.0-0 → 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
|
@@ -210,6 +210,7 @@ const stepFourProps = {
|
|
|
210
210
|
},
|
|
211
211
|
},
|
|
212
212
|
callbacks: {
|
|
213
|
+
onVerification: () => { },
|
|
213
214
|
onSubmit: async () => console.log("Submit"),
|
|
214
215
|
setPaymentMethodChecked: () => { },
|
|
215
216
|
setPaymentScheduleChecked: () => { },
|
|
@@ -246,6 +247,8 @@ const docusignFormProps = {
|
|
|
246
247
|
};
|
|
247
248
|
const dashboardProps = {
|
|
248
249
|
states: {
|
|
250
|
+
showVerifyIdentity: false,
|
|
251
|
+
payoutStatus: "DONE",
|
|
249
252
|
canEditPayoutInfo: true,
|
|
250
253
|
disabled: false,
|
|
251
254
|
status: "ACTIVE",
|
|
@@ -257,6 +260,7 @@ const dashboardProps = {
|
|
|
257
260
|
indirectTaxNumber: "123456",
|
|
258
261
|
indirectTaxType: "VAT",
|
|
259
262
|
showNewFormDialog: false,
|
|
263
|
+
hasHold: false,
|
|
260
264
|
},
|
|
261
265
|
slots: {
|
|
262
266
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
@@ -763,6 +767,8 @@ export const TaxAndCashDashboardActiveW8BENForm = () => {
|
|
|
763
767
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
764
768
|
...dashboardProps,
|
|
765
769
|
states: {
|
|
770
|
+
payoutStatus: "DONE",
|
|
771
|
+
showVerifyIdentity: false,
|
|
766
772
|
noFormNeeded: false,
|
|
767
773
|
canEditPayoutInfo: true,
|
|
768
774
|
documentType: "W8BEN",
|
|
@@ -771,6 +777,7 @@ export const TaxAndCashDashboardActiveW8BENForm = () => {
|
|
|
771
777
|
indirectTaxType: "VAT",
|
|
772
778
|
indirectTaxNumber: "123456",
|
|
773
779
|
showNewFormDialog: false,
|
|
780
|
+
hasHold: false,
|
|
774
781
|
},
|
|
775
782
|
} }));
|
|
776
783
|
};
|
|
@@ -778,6 +785,8 @@ export const TaxAndCashDashboardActiveW8BENEForm = () => {
|
|
|
778
785
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
779
786
|
...dashboardProps,
|
|
780
787
|
states: {
|
|
788
|
+
payoutStatus: "DONE",
|
|
789
|
+
showVerifyIdentity: false,
|
|
781
790
|
noFormNeeded: false,
|
|
782
791
|
canEditPayoutInfo: true,
|
|
783
792
|
documentType: "W8BENE",
|
|
@@ -786,6 +795,7 @@ export const TaxAndCashDashboardActiveW8BENEForm = () => {
|
|
|
786
795
|
indirectTaxType: "VAT",
|
|
787
796
|
indirectTaxNumber: "123456",
|
|
788
797
|
showNewFormDialog: false,
|
|
798
|
+
hasHold: false,
|
|
789
799
|
},
|
|
790
800
|
} }));
|
|
791
801
|
};
|
|
@@ -793,6 +803,8 @@ export const TaxAndCashDashboardNotActiveW9Form = () => {
|
|
|
793
803
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
794
804
|
...dashboardProps,
|
|
795
805
|
states: {
|
|
806
|
+
payoutStatus: "DONE",
|
|
807
|
+
showVerifyIdentity: false,
|
|
796
808
|
noFormNeeded: false,
|
|
797
809
|
canEditPayoutInfo: true,
|
|
798
810
|
status: "INACTIVE",
|
|
@@ -802,6 +814,7 @@ export const TaxAndCashDashboardNotActiveW9Form = () => {
|
|
|
802
814
|
indirectTaxType: "VAT",
|
|
803
815
|
indirectTaxNumber: "123456",
|
|
804
816
|
showNewFormDialog: false,
|
|
817
|
+
hasHold: false,
|
|
805
818
|
},
|
|
806
819
|
} }));
|
|
807
820
|
};
|
|
@@ -809,6 +822,8 @@ export const TaxAndCashDashboardNotVerifiedW9Form = () => {
|
|
|
809
822
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
810
823
|
...dashboardProps,
|
|
811
824
|
states: {
|
|
825
|
+
payoutStatus: "DONE",
|
|
826
|
+
showVerifyIdentity: false,
|
|
812
827
|
canEditPayoutInfo: true,
|
|
813
828
|
disabled: false,
|
|
814
829
|
status: "NOT_VERIFIED",
|
|
@@ -819,6 +834,7 @@ export const TaxAndCashDashboardNotVerifiedW9Form = () => {
|
|
|
819
834
|
indirectTaxType: "VAT",
|
|
820
835
|
indirectTaxNumber: "123456",
|
|
821
836
|
showNewFormDialog: false,
|
|
837
|
+
hasHold: false,
|
|
822
838
|
},
|
|
823
839
|
} }));
|
|
824
840
|
};
|
|
@@ -826,6 +842,8 @@ export const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
|
|
|
826
842
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
827
843
|
...dashboardProps,
|
|
828
844
|
states: {
|
|
845
|
+
payoutStatus: "DONE",
|
|
846
|
+
showVerifyIdentity: false,
|
|
829
847
|
canEditPayoutInfo: true,
|
|
830
848
|
disabled: false,
|
|
831
849
|
status: "NOT_VERIFIED",
|
|
@@ -837,6 +855,7 @@ export const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
|
|
|
837
855
|
indirectTaxType: "VAT",
|
|
838
856
|
indirectTaxNumber: "123456",
|
|
839
857
|
showNewFormDialog: false,
|
|
858
|
+
hasHold: false,
|
|
840
859
|
},
|
|
841
860
|
} }));
|
|
842
861
|
};
|
|
@@ -844,6 +863,8 @@ export const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
|
|
|
844
863
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
845
864
|
...dashboardProps,
|
|
846
865
|
states: {
|
|
866
|
+
payoutStatus: "DONE",
|
|
867
|
+
showVerifyIdentity: false,
|
|
847
868
|
canEditPayoutInfo: true,
|
|
848
869
|
disabled: false,
|
|
849
870
|
status: "NOT_VERIFIED",
|
|
@@ -855,6 +876,7 @@ export const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
|
|
|
855
876
|
indirectTaxType: "VAT",
|
|
856
877
|
indirectTaxNumber: "123456",
|
|
857
878
|
showNewFormDialog: false,
|
|
879
|
+
hasHold: false,
|
|
858
880
|
},
|
|
859
881
|
} }));
|
|
860
882
|
};
|
|
@@ -862,6 +884,8 @@ export const TaxAndCashDashboardNotActiveW8BENEForm = () => {
|
|
|
862
884
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
863
885
|
...dashboardProps,
|
|
864
886
|
states: {
|
|
887
|
+
payoutStatus: "DONE",
|
|
888
|
+
showVerifyIdentity: false,
|
|
865
889
|
canEditPayoutInfo: true,
|
|
866
890
|
disabled: false,
|
|
867
891
|
status: "NOT_ACTIVE",
|
|
@@ -873,6 +897,7 @@ export const TaxAndCashDashboardNotActiveW8BENEForm = () => {
|
|
|
873
897
|
indirectTaxType: "VAT",
|
|
874
898
|
country: "United Kingdom",
|
|
875
899
|
showNewFormDialog: false,
|
|
900
|
+
hasHold: false,
|
|
876
901
|
},
|
|
877
902
|
} }));
|
|
878
903
|
};
|
|
@@ -880,6 +905,8 @@ export const TaxAndCashDashboardNoFormNeeded = () => {
|
|
|
880
905
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
881
906
|
...dashboardProps,
|
|
882
907
|
states: {
|
|
908
|
+
payoutStatus: "DONE",
|
|
909
|
+
showVerifyIdentity: false,
|
|
883
910
|
canEditPayoutInfo: true,
|
|
884
911
|
disabled: false,
|
|
885
912
|
documentType: "W9",
|
|
@@ -891,6 +918,7 @@ export const TaxAndCashDashboardNoFormNeeded = () => {
|
|
|
891
918
|
indirectTaxNumber: "123456",
|
|
892
919
|
indirectTaxType: "GST",
|
|
893
920
|
showNewFormDialog: false,
|
|
921
|
+
hasHold: false,
|
|
894
922
|
},
|
|
895
923
|
} }));
|
|
896
924
|
};
|
|
@@ -898,6 +926,8 @@ export const TaxAndCashDashboardIndirectTaxCanada = () => {
|
|
|
898
926
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
899
927
|
...dashboardProps,
|
|
900
928
|
states: {
|
|
929
|
+
payoutStatus: "DONE",
|
|
930
|
+
showVerifyIdentity: false,
|
|
901
931
|
canEditPayoutInfo: true,
|
|
902
932
|
status: "ACTIVE",
|
|
903
933
|
disabled: false,
|
|
@@ -910,6 +940,7 @@ export const TaxAndCashDashboardIndirectTaxCanada = () => {
|
|
|
910
940
|
indirectTaxType: "GST",
|
|
911
941
|
indirectTaxNumber: "123456",
|
|
912
942
|
showNewFormDialog: false,
|
|
943
|
+
hasHold: false,
|
|
913
944
|
},
|
|
914
945
|
} }));
|
|
915
946
|
};
|
|
@@ -917,6 +948,8 @@ export const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
|
|
|
917
948
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
918
949
|
...dashboardProps,
|
|
919
950
|
states: {
|
|
951
|
+
payoutStatus: "DONE",
|
|
952
|
+
showVerifyIdentity: false,
|
|
920
953
|
canEditPayoutInfo: true,
|
|
921
954
|
status: "ACTIVE",
|
|
922
955
|
disabled: false,
|
|
@@ -930,6 +963,7 @@ export const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
|
|
|
930
963
|
indirectTaxNumber: "123456",
|
|
931
964
|
qstNumber: "44212",
|
|
932
965
|
showNewFormDialog: false,
|
|
966
|
+
hasHold: false,
|
|
933
967
|
},
|
|
934
968
|
} }));
|
|
935
969
|
};
|
|
@@ -937,6 +971,8 @@ export const TaxAndCashDashboardIndirectTaxSpain = () => {
|
|
|
937
971
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
938
972
|
...dashboardProps,
|
|
939
973
|
states: {
|
|
974
|
+
payoutStatus: "DONE",
|
|
975
|
+
showVerifyIdentity: false,
|
|
940
976
|
canEditPayoutInfo: true,
|
|
941
977
|
status: "ACTIVE",
|
|
942
978
|
disabled: false,
|
|
@@ -950,6 +986,7 @@ export const TaxAndCashDashboardIndirectTaxSpain = () => {
|
|
|
950
986
|
indirectTaxNumber: "123456",
|
|
951
987
|
subRegionTaxNumber: "44212",
|
|
952
988
|
showNewFormDialog: false,
|
|
989
|
+
hasHold: false,
|
|
953
990
|
},
|
|
954
991
|
} }));
|
|
955
992
|
};
|
|
@@ -957,6 +994,8 @@ export const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
|
|
|
957
994
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
958
995
|
...dashboardProps,
|
|
959
996
|
states: {
|
|
997
|
+
payoutStatus: "DONE",
|
|
998
|
+
showVerifyIdentity: false,
|
|
960
999
|
canEditPayoutInfo: true,
|
|
961
1000
|
status: "ACTIVE",
|
|
962
1001
|
documentType: "W8BEN",
|
|
@@ -965,6 +1004,7 @@ export const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
|
|
|
965
1004
|
noFormNeeded: false,
|
|
966
1005
|
notRegistered: true,
|
|
967
1006
|
showNewFormDialog: false,
|
|
1007
|
+
hasHold: false,
|
|
968
1008
|
},
|
|
969
1009
|
} }));
|
|
970
1010
|
};
|
|
@@ -972,6 +1012,8 @@ export const TaxAndCashDashboardIdentityVerifcationRequired = () => {
|
|
|
972
1012
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
973
1013
|
...dashboardProps,
|
|
974
1014
|
states: {
|
|
1015
|
+
payoutStatus: "VERIFICATION_NEEDED",
|
|
1016
|
+
showVerifyIdentity: true,
|
|
975
1017
|
showIdentityVerificationDialog: true,
|
|
976
1018
|
identiyRequired: true,
|
|
977
1019
|
canEditPayoutInfo: true,
|
|
@@ -982,6 +1024,7 @@ export const TaxAndCashDashboardIdentityVerifcationRequired = () => {
|
|
|
982
1024
|
noFormNeeded: false,
|
|
983
1025
|
notRegistered: true,
|
|
984
1026
|
showNewFormDialog: false,
|
|
1027
|
+
hasHold: false,
|
|
985
1028
|
},
|
|
986
1029
|
} }));
|
|
987
1030
|
};
|
|
@@ -989,6 +1032,8 @@ export const TaxAndCashDashboardNewTaxForm = () => {
|
|
|
989
1032
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
990
1033
|
...dashboardProps,
|
|
991
1034
|
states: {
|
|
1035
|
+
payoutStatus: "DONE",
|
|
1036
|
+
showVerifyIdentity: false,
|
|
992
1037
|
canEditPayoutInfo: true,
|
|
993
1038
|
status: "ACTIVE",
|
|
994
1039
|
documentType: "W8BEN",
|
|
@@ -997,6 +1042,27 @@ export const TaxAndCashDashboardNewTaxForm = () => {
|
|
|
997
1042
|
noFormNeeded: false,
|
|
998
1043
|
notRegistered: true,
|
|
999
1044
|
showNewFormDialog: true,
|
|
1045
|
+
hasHold: false,
|
|
1046
|
+
},
|
|
1047
|
+
} }));
|
|
1048
|
+
};
|
|
1049
|
+
export const TaxAndCashDashboardPayoutsOnHold = () => {
|
|
1050
|
+
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1051
|
+
...dashboardProps,
|
|
1052
|
+
states: {
|
|
1053
|
+
payoutStatus: "DONE",
|
|
1054
|
+
showVerifyIdentity: false,
|
|
1055
|
+
canEditPayoutInfo: true,
|
|
1056
|
+
disabled: true,
|
|
1057
|
+
status: "ACTIVE",
|
|
1058
|
+
documentType: "W8BEN",
|
|
1059
|
+
documentTypeString: taxTypeToName("W8BEN"),
|
|
1060
|
+
dateSubmitted: "Jan 18th, 2025",
|
|
1061
|
+
noFormNeeded: false,
|
|
1062
|
+
indirectTaxNumber: "123456",
|
|
1063
|
+
country: "Slovania",
|
|
1064
|
+
showNewFormDialog: false,
|
|
1065
|
+
hasHold: true,
|
|
1000
1066
|
},
|
|
1001
1067
|
} }));
|
|
1002
1068
|
};
|
|
@@ -1004,6 +1070,8 @@ export const TaxAndCashDashboardLoading = () => {
|
|
|
1004
1070
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1005
1071
|
...dashboardProps,
|
|
1006
1072
|
states: {
|
|
1073
|
+
payoutStatus: "DONE",
|
|
1074
|
+
showVerifyIdentity: false,
|
|
1007
1075
|
canEditPayoutInfo: true,
|
|
1008
1076
|
disabled: false,
|
|
1009
1077
|
status: "ACTIVE",
|
|
@@ -1013,6 +1081,7 @@ export const TaxAndCashDashboardLoading = () => {
|
|
|
1013
1081
|
noFormNeeded: false,
|
|
1014
1082
|
loading: true,
|
|
1015
1083
|
showNewFormDialog: false,
|
|
1084
|
+
hasHold: false,
|
|
1016
1085
|
},
|
|
1017
1086
|
} }));
|
|
1018
1087
|
};
|
|
@@ -1020,6 +1089,8 @@ export const TaxAndCashDashboardWithLoadingError = () => {
|
|
|
1020
1089
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1021
1090
|
...dashboardProps,
|
|
1022
1091
|
states: {
|
|
1092
|
+
payoutStatus: "DONE",
|
|
1093
|
+
showVerifyIdentity: false,
|
|
1023
1094
|
disabled: false,
|
|
1024
1095
|
canEditPayoutInfo: true,
|
|
1025
1096
|
status: "ACTIVE",
|
|
@@ -1030,6 +1101,7 @@ export const TaxAndCashDashboardWithLoadingError = () => {
|
|
|
1030
1101
|
loading: true,
|
|
1031
1102
|
loadingError: true,
|
|
1032
1103
|
showNewFormDialog: false,
|
|
1104
|
+
hasHold: false,
|
|
1033
1105
|
},
|
|
1034
1106
|
} }));
|
|
1035
1107
|
};
|
|
@@ -1037,6 +1109,8 @@ export const TaxAndCashDashboardWithGeneralError = () => {
|
|
|
1037
1109
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1038
1110
|
...dashboardProps,
|
|
1039
1111
|
states: {
|
|
1112
|
+
payoutStatus: "DONE",
|
|
1113
|
+
showVerifyIdentity: false,
|
|
1040
1114
|
canEditPayoutInfo: true,
|
|
1041
1115
|
disabled: false,
|
|
1042
1116
|
status: "ACTIVE",
|
|
@@ -1048,6 +1122,7 @@ export const TaxAndCashDashboardWithGeneralError = () => {
|
|
|
1048
1122
|
indirectTaxType: "VAT",
|
|
1049
1123
|
country: "Slovania",
|
|
1050
1124
|
showNewFormDialog: false,
|
|
1125
|
+
hasHold: false,
|
|
1051
1126
|
errors: {
|
|
1052
1127
|
general: true,
|
|
1053
1128
|
},
|
|
@@ -1058,6 +1133,8 @@ export const TaxAndCashDashboardDisabled = () => {
|
|
|
1058
1133
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1059
1134
|
...dashboardProps,
|
|
1060
1135
|
states: {
|
|
1136
|
+
payoutStatus: "DONE",
|
|
1137
|
+
showVerifyIdentity: false,
|
|
1061
1138
|
canEditPayoutInfo: true,
|
|
1062
1139
|
disabled: true,
|
|
1063
1140
|
status: "ACTIVE",
|
|
@@ -1068,6 +1145,7 @@ export const TaxAndCashDashboardDisabled = () => {
|
|
|
1068
1145
|
indirectTaxNumber: "123456",
|
|
1069
1146
|
country: "Slovania",
|
|
1070
1147
|
showNewFormDialog: false,
|
|
1148
|
+
hasHold: false,
|
|
1071
1149
|
},
|
|
1072
1150
|
} }));
|
|
1073
1151
|
};
|
package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js
CHANGED
|
@@ -314,7 +314,7 @@ export class BankingInfoForm {
|
|
|
314
314
|
},
|
|
315
315
|
};
|
|
316
316
|
if (props.states.isPartner && props.states.showVerification) {
|
|
317
|
-
return h("sqm-code-verification",
|
|
317
|
+
return (h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
|
|
318
318
|
}
|
|
319
319
|
return (h(Host, null,
|
|
320
320
|
h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
@@ -1619,6 +1619,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1619
1619
|
setPaymentScheduleChecked,
|
|
1620
1620
|
setCountrySearch: () => { },
|
|
1621
1621
|
onBack: async () => setStep("/dashboard"),
|
|
1622
|
+
onVerification: () => { },
|
|
1622
1623
|
},
|
|
1623
1624
|
text: props.getTextProps(),
|
|
1624
1625
|
refs: {
|
|
@@ -288,6 +288,12 @@ export function useBankingInfoForm(props) {
|
|
|
288
288
|
}
|
|
289
289
|
await runMutation(formData, token);
|
|
290
290
|
};
|
|
291
|
+
const onVerification = async (token) => {
|
|
292
|
+
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
293
|
+
detail: { token },
|
|
294
|
+
bubbles: false,
|
|
295
|
+
}));
|
|
296
|
+
};
|
|
291
297
|
function setPaymentMethodChecked(paymentMethod) {
|
|
292
298
|
_setPaymentMethodChecked(paymentMethod);
|
|
293
299
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -312,6 +318,7 @@ export function useBankingInfoForm(props) {
|
|
|
312
318
|
setPaymentScheduleChecked,
|
|
313
319
|
onBack: () => setStep("/dashboard"),
|
|
314
320
|
setCountrySearch,
|
|
321
|
+
onVerification,
|
|
315
322
|
},
|
|
316
323
|
states: {
|
|
317
324
|
showVerification,
|
package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js
CHANGED
|
@@ -80,7 +80,6 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
80
80
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
81
81
|
if (!allowed)
|
|
82
82
|
return;
|
|
83
|
-
console.log(e);
|
|
84
83
|
if (typeof e.data === "number") {
|
|
85
84
|
setiFrameHeight(e.data + "px");
|
|
86
85
|
}
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -3,10 +3,20 @@ export default {
|
|
|
3
3
|
title: "Components/Payout Status Alert",
|
|
4
4
|
};
|
|
5
5
|
const defaultProps = {
|
|
6
|
+
error: false,
|
|
6
7
|
status: "INFORMATION_REQUIRED",
|
|
7
8
|
loading: false,
|
|
9
|
+
showVerifyIdentity: false,
|
|
8
10
|
};
|
|
9
11
|
export const InformationRequired = () => (h("sqm-payout-status-alert", { demoData: { states: defaultProps } }));
|
|
10
12
|
export const VerifyIdentity = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "VERIFICATION_NEEDED" } } }));
|
|
13
|
+
export const VerifyIdentityOpen = () => (h("sqm-payout-status-alert", { demoData: {
|
|
14
|
+
states: {
|
|
15
|
+
...defaultProps,
|
|
16
|
+
status: "VERIFICATION_NEEDED",
|
|
17
|
+
showVerifyIdentity: true,
|
|
18
|
+
},
|
|
19
|
+
} }));
|
|
11
20
|
export const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "HOLD" } } }));
|
|
12
21
|
export const Loading = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, loading: true } } }));
|
|
22
|
+
export const Error = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, error: true } } }));
|
|
@@ -9,12 +9,53 @@ const style = {
|
|
|
9
9
|
margin: "0",
|
|
10
10
|
marginBottom: "var(--sl-spacing-small)",
|
|
11
11
|
},
|
|
12
|
+
ErrorAlertContainer: {
|
|
13
|
+
"&::part(base)": {
|
|
14
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
15
|
+
borderTop: "none",
|
|
16
|
+
},
|
|
17
|
+
"& sl-icon::part(base)": {
|
|
18
|
+
color: "var(--sl-color-danger-500)",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
WarningAlertContainer: {
|
|
22
|
+
"&::part(base)": {
|
|
23
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
24
|
+
borderTop: "none",
|
|
25
|
+
},
|
|
26
|
+
"& sl-icon::part(base)": {
|
|
27
|
+
color: "var(--sl-color-danger-500)",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
InfoAlertContainer: {
|
|
31
|
+
"&::part(base)": {
|
|
32
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
33
|
+
borderTop: "none",
|
|
34
|
+
},
|
|
35
|
+
"& sl-icon::part(base)": {
|
|
36
|
+
color: "var(--sl-color-blue-500)",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
Dialog: {
|
|
40
|
+
"&::part(panel)": {
|
|
41
|
+
height: "600px",
|
|
42
|
+
},
|
|
43
|
+
"&::part(close-button)": {
|
|
44
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
45
|
+
},
|
|
46
|
+
"&::part(title)": {
|
|
47
|
+
display: "none",
|
|
48
|
+
},
|
|
49
|
+
"&::part(header)": {},
|
|
50
|
+
"&::part(body)": { padding: "0" },
|
|
51
|
+
"&::part(footer)": {},
|
|
52
|
+
},
|
|
12
53
|
};
|
|
13
54
|
const sheet = createStyleSheet(style);
|
|
14
55
|
const styleString = sheet.toString();
|
|
15
56
|
export function PayoutStatusAlertView(props) {
|
|
16
|
-
var _a, _b, _c, _d;
|
|
17
|
-
const { text, states } = props;
|
|
57
|
+
var _a, _b, _c, _d, _e;
|
|
58
|
+
const { text, states, data, callbacks } = props;
|
|
18
59
|
if (states.loading) {
|
|
19
60
|
return h("sl-skeleton", { class: sheet.classes.SkeletonOne });
|
|
20
61
|
}
|
|
@@ -22,14 +63,24 @@ export function PayoutStatusAlertView(props) {
|
|
|
22
63
|
return h("div", null);
|
|
23
64
|
}
|
|
24
65
|
function getAlert(status) {
|
|
66
|
+
if (states.error)
|
|
67
|
+
return {
|
|
68
|
+
header: text.errorHeader,
|
|
69
|
+
description: text.errorDescription,
|
|
70
|
+
buttonText: null,
|
|
71
|
+
alertType: "critical",
|
|
72
|
+
icon: "exclamation-triangle",
|
|
73
|
+
class: sheet.classes.ErrorAlertContainer,
|
|
74
|
+
};
|
|
25
75
|
switch (status) {
|
|
26
76
|
case "INFORMATION_REQUIRED":
|
|
27
77
|
return {
|
|
28
78
|
header: text.informationRequiredHeader,
|
|
29
79
|
description: text.informationRequiredDescription,
|
|
30
|
-
buttonText: text.
|
|
80
|
+
buttonText: text.informationRequiredButtonText,
|
|
31
81
|
alertType: "info",
|
|
32
|
-
icon: "
|
|
82
|
+
icon: "info-circle",
|
|
83
|
+
class: sheet.classes.InfoAlertContainer,
|
|
33
84
|
};
|
|
34
85
|
case "VERIFICATION_NEEDED":
|
|
35
86
|
return {
|
|
@@ -37,7 +88,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
37
88
|
description: text.verificationRequiredDescription,
|
|
38
89
|
buttonText: text.verificationRequiredButtonText,
|
|
39
90
|
alertType: "warning",
|
|
40
|
-
icon: "exclamation-
|
|
91
|
+
icon: "exclamation-triangle",
|
|
92
|
+
class: sheet.classes.WarningAlertContainer,
|
|
41
93
|
};
|
|
42
94
|
case "HOLD":
|
|
43
95
|
return {
|
|
@@ -45,7 +97,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
45
97
|
description: text.holdDescription,
|
|
46
98
|
buttonText: null,
|
|
47
99
|
alertType: "warning",
|
|
48
|
-
icon: "exclamation-
|
|
100
|
+
icon: "exclamation-triangle",
|
|
101
|
+
class: sheet.classes.WarningAlertContainer,
|
|
49
102
|
};
|
|
50
103
|
default:
|
|
51
104
|
return;
|
|
@@ -55,18 +108,24 @@ export function PayoutStatusAlertView(props) {
|
|
|
55
108
|
function getButton(status) {
|
|
56
109
|
switch (status) {
|
|
57
110
|
case "INFORMATION_REQUIRED":
|
|
58
|
-
return (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": "
|
|
111
|
+
return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
59
112
|
case "VERIFICATION_NEEDED":
|
|
60
|
-
return (h("sl-button", { type: "default", loading: states.loading
|
|
113
|
+
return (h("sl-button", { type: "default", loading: states.loading,
|
|
114
|
+
//AL: TODO callback to open verification form
|
|
115
|
+
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
|
|
61
116
|
default:
|
|
62
117
|
return;
|
|
63
118
|
}
|
|
64
119
|
}
|
|
65
120
|
return (h("div", { part: "sqm-base" },
|
|
66
121
|
h("style", { type: "text/css" }, styleString),
|
|
67
|
-
h("
|
|
68
|
-
h("sl-icon", { slot: "icon", name: (
|
|
69
|
-
h("strong", null, (
|
|
70
|
-
h("p", { class: sheet.classes.AlertDescriptionText }, (
|
|
71
|
-
getButton(states.status))
|
|
122
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: (_a = getAlert(states.status)) === null || _a === void 0 ? void 0 : _a.alertType, class: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.class, open: true },
|
|
123
|
+
h("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
124
|
+
h("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
125
|
+
h("p", { class: sheet.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
126
|
+
getButton(states.status)),
|
|
127
|
+
h("sl-dialog", { noDismiss: true, class: sheet.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
|
|
128
|
+
h("iframe", {
|
|
129
|
+
// AL: TODO replace iframe URL with verification url when available
|
|
130
|
+
scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" }))));
|
|
72
131
|
}
|