@saasquatch/mint-components 1.15.0-44 → 1.15.0-45
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/IndirectTaxDetailsView-81f1ce92.js +646 -0
- package/dist/cjs/{ShadowViewAddon-85d2eed4.js → ShadowViewAddon-bebbd4d0.js} +1014 -1014
- package/dist/cjs/data-68a42a7b.js +137 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/{global-2298fc8b.js → global-242743b1.js} +73 -58
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +201 -1890
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-0a93a148.js → sqm-portal-email-verification-view-38bfdda4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-44a83439.js → sqm-portal-profile-view-036d355e.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +11405 -10110
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1220 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -7
- package/dist/cjs/{usePayoutStatus-f26f0467.js → usePayoutStatus-3cca69e5.js} +8 -5
- package/dist/cjs/utils-a6957c85.js +105 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +3 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -1
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +11 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +42 -7
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +6 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/global/styles.js +73 -58
- package/dist/collection/global/styles.ts +48 -40
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/IndirectTaxDetailsView-89731480.js +639 -0
- package/dist/esm/{ShadowViewAddon-d59ef625.js → ShadowViewAddon-b439f9c5.js} +1017 -1017
- package/dist/esm/data-ce8ed0ae.js +121 -0
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/{global-2da1dcec.js → global-f33bb903.js} +73 -58
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +125 -1807
- package/dist/esm/sqm-big-stat_42.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +338 -0
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-e8661ca9.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-70e1a345.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +3 -4
- package/dist/esm/sqm-stencilbook.entry.js +11077 -9782
- package/dist/esm/sqm-tax-and-cash.entry.js +1216 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -7
- package/dist/esm/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +8 -5
- package/dist/esm/utils-79d81bca.js +97 -0
- package/dist/esm-es5/IndirectTaxDetailsView-89731480.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-b439f9c5.js +1 -0
- package/dist/esm-es5/data-ce8ed0ae.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-2da1dcec.js → global-f33bb903.js} +4 -4
- 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_10.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-e8661ca9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-70e1a345.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.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/esm-es5/sqm-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +2 -2
- package/dist/esm-es5/utils-79d81bca.js +1 -0
- package/dist/mint-components/global/styles.ts +48 -40
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-a121e5a1.system.entry.js → p-059ad130.system.entry.js} +1 -1
- package/dist/mint-components/p-0768fe1d.system.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-d49373b7.system.js → p-10849094.system.js} +1 -1
- package/dist/mint-components/p-169c8564.system.js +1 -0
- package/dist/mint-components/p-1e79befd.entry.js +1 -0
- package/dist/mint-components/{p-761ee9ea.entry.js → p-1f8d3b1a.entry.js} +2 -2
- package/dist/mint-components/{p-4ce7e3b1.entry.js → p-227aa136.entry.js} +1 -1
- package/dist/mint-components/p-2378a0dd.entry.js +16 -0
- package/dist/mint-components/{p-f3a52eb6.js → p-24d6cfcd.js} +1 -1
- package/dist/mint-components/{p-28aed7f7.system.entry.js → p-283848df.system.entry.js} +1 -1
- package/dist/mint-components/{p-7dac5a58.system.entry.js → p-28e4b275.system.entry.js} +1 -1
- package/dist/mint-components/{p-5125ec72.system.entry.js → p-2d730bef.system.entry.js} +1 -1
- package/dist/mint-components/p-3206d0a4.js +103 -0
- package/dist/mint-components/{p-cc5f9775.system.entry.js → p-3bdccbc9.system.entry.js} +1 -1
- package/dist/mint-components/{p-73069eba.entry.js → p-44435060.entry.js} +1 -1
- package/dist/mint-components/{p-fad1752b.system.entry.js → p-4cfd562e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e70d8201.system.entry.js → p-538fe844.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ae3ec51.system.js → p-5a48bf9d.system.js} +1 -1
- package/dist/mint-components/{p-9fcc7901.system.entry.js → p-5dd09973.system.entry.js} +1 -1
- package/dist/mint-components/p-6a4582eb.system.entry.js +1 -0
- package/dist/mint-components/{p-d4e49019.entry.js → p-6d23f01a.entry.js} +2 -2
- package/dist/mint-components/p-6f323a9f.entry.js +11 -0
- package/dist/mint-components/p-7274fe6e.js +1 -0
- package/dist/mint-components/p-7813a75a.js +1 -0
- package/dist/mint-components/{p-e1e96de9.entry.js → p-7aef9c53.entry.js} +1 -1
- package/dist/mint-components/{p-7953c3da.entry.js → p-7cbbca72.entry.js} +1 -1
- package/dist/mint-components/p-7dc10820.system.js +1 -0
- package/dist/mint-components/p-8c126ccb.system.entry.js +1 -0
- package/dist/mint-components/p-901358ee.system.entry.js +1 -0
- package/dist/mint-components/p-9481740a.system.entry.js +1 -0
- package/dist/mint-components/{p-232996b5.system.entry.js → p-95ff58b2.system.entry.js} +1 -1
- package/dist/mint-components/{p-7aba33e1.js → p-9d48280a.js} +1 -1
- package/dist/mint-components/{p-3466bfaa.js → p-a341ce23.js} +2 -2
- package/dist/mint-components/{p-b090bbd2.js → p-a348f9b9.js} +1 -1
- package/dist/mint-components/p-a39c3535.system.entry.js +1 -0
- package/dist/mint-components/{p-5efed40f.system.js → p-a44b7a52.system.js} +2 -2
- package/dist/mint-components/p-a86635aa.system.entry.js +1 -0
- package/dist/mint-components/p-ae0636bb.system.js +1 -0
- package/dist/mint-components/{p-0019d57c.entry.js → p-b55e454d.entry.js} +1 -1
- package/dist/mint-components/p-c25b0ff4.js +394 -0
- package/dist/mint-components/{p-f2c48bc8.entry.js → p-c2e3f0f0.entry.js} +1 -1
- package/dist/mint-components/{p-7daa731c.system.js → p-c7878ec7.system.js} +1 -1
- package/dist/mint-components/p-e228b351.system.js +1 -0
- package/dist/mint-components/p-e524056f.entry.js +1 -0
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-836d3ec7.entry.js → p-e8422f7b.entry.js} +2 -2
- package/dist/mint-components/p-ee17ee0b.entry.js +1 -0
- package/dist/mint-components/p-f2ebbbe3.system.entry.js +1 -0
- package/dist/mint-components/p-fba00613.entry.js +93 -0
- package/dist/mint-components/p-fd2ee10c.entry.js +9 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +66 -22
- package/dist/types/global/styles.d.ts +2 -1
- package/dist/types/saasquatch.d.ts +106 -50
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +0 -2038
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +0 -2022
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +0 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +0 -1
- package/dist/mint-components/p-097a255f.js +0 -1
- package/dist/mint-components/p-15ad1e97.entry.js +0 -16
- package/dist/mint-components/p-16c55bb4.entry.js +0 -205
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-31b8f0ca.system.js +0 -1
- package/dist/mint-components/p-62d924e6.system.entry.js +0 -1
- package/dist/mint-components/p-6bcac9ed.system.entry.js +0 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-bfe08ca4.system.js +0 -1
- package/dist/mint-components/p-c53bd5bd.entry.js +0 -9
- package/dist/mint-components/p-e53c3c6e.system.js +0 -1
- package/dist/mint-components/p-f3558ef0.js +0 -394
- package/dist/mint-components/p-f66ccd51.entry.js +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -20
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -60
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -16
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -43
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -71
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -43
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -31
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -8
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -11
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +0 -24
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +0 -31
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +0 -20
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +0 -50
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +0 -104
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -48
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +0 -16
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState } from "@saasquatch/universal-hooks";
|
|
|
4
4
|
import { Component, Host, Prop, h } from "@stencil/core";
|
|
5
5
|
import deepmerge from "deepmerge";
|
|
6
6
|
import { getProps } from "../../../utils/utils";
|
|
7
|
-
import { TAX_CONTEXT_NAMESPACE } from "../
|
|
7
|
+
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
8
8
|
import { OtherRegionSlotView } from "../sqm-user-info-form/small-views/IndirectTaxDetailsView";
|
|
9
9
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
10
10
|
import { IndirectTaxFormView } from "./sqm-indirect-tax-form-view";
|
|
@@ -913,7 +913,7 @@ export class IndirectTaxForm {
|
|
|
913
913
|
}
|
|
914
914
|
function useDemoIndirectTaxForm(props) {
|
|
915
915
|
const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
|
|
916
|
-
const [option, setOption] = useState(
|
|
916
|
+
const [option, setOption] = useState("otherRegion");
|
|
917
917
|
const [demoFormState, setDemoFormState] = useState({});
|
|
918
918
|
return deepmerge({
|
|
919
919
|
states: {
|
|
@@ -2,10 +2,10 @@ import { useLocale, useMutation, useParent, useParentQueryValue, useParentValue,
|
|
|
2
2
|
import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import JSONPointer from "jsonpointer";
|
|
5
|
-
import { COUNTRIES_QUERY_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../
|
|
5
|
+
import { COUNTRIES_QUERY_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
6
|
+
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
6
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
7
8
|
import { getCountryObj, validTaxDocument } from "../utils";
|
|
8
|
-
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
9
9
|
const CONNECT_PARTNER = gql `
|
|
10
10
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
11
11
|
createImpactConnection(impactConnectionInput: $vars) {
|
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js
CHANGED
|
@@ -2,9 +2,9 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, Host, Prop, h } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { getProps } from "../../../utils/utils";
|
|
5
6
|
import { PayoutDetailsCardView } from "./sqm-payout-details-card-view";
|
|
6
7
|
import { usePayoutDetailsCard } from "./usePayoutDetailsCard";
|
|
7
|
-
import { getProps } from "../../../utils/utils";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Payout Details Card
|
|
10
10
|
* @exampleGroup Tax and Cash Components
|
|
@@ -31,6 +31,10 @@ export class PayoutDetailsCard {
|
|
|
31
31
|
* @uiName Payout missing information subtext
|
|
32
32
|
*/
|
|
33
33
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
34
|
+
/**
|
|
35
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
36
|
+
*/
|
|
37
|
+
this.stateController = "{}";
|
|
34
38
|
withHooks(this);
|
|
35
39
|
}
|
|
36
40
|
disconnectedCallback() { }
|
|
@@ -134,6 +138,27 @@ export class PayoutDetailsCard {
|
|
|
134
138
|
"reflect": false,
|
|
135
139
|
"defaultValue": "\"Missing banking information, go to Impact.com to resolve.\""
|
|
136
140
|
},
|
|
141
|
+
"stateController": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": true,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [{
|
|
153
|
+
"text": "{ \"title\": \"Loading\", \"props\": { \"states\": { \"loading\": true } } }",
|
|
154
|
+
"name": "componentState"
|
|
155
|
+
}],
|
|
156
|
+
"text": ""
|
|
157
|
+
},
|
|
158
|
+
"attribute": "state-controller",
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"defaultValue": "\"{}\""
|
|
161
|
+
},
|
|
137
162
|
"demoData": {
|
|
138
163
|
"type": "unknown",
|
|
139
164
|
"mutable": false,
|
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { DateTime } from "luxon";
|
|
2
3
|
import { intl } from "../../../global/global";
|
|
3
|
-
import { USER_QUERY_NAMESPACE } from "../
|
|
4
|
-
import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { USER_QUERY_NAMESPACE } from "../data";
|
|
5
5
|
export function usePayoutDetailsCard(props) {
|
|
6
6
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7
7
|
const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
@@ -23,17 +23,20 @@ const GET_USER_STATUS = gql `
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
export function getStatus(data) {
|
|
26
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
27
27
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
28
28
|
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
29
29
|
return "INFORMATION_REQUIRED";
|
|
30
|
-
if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
30
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
31
|
+
return "DONE";
|
|
32
|
+
}
|
|
33
|
+
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
31
34
|
return "VERIFICATION:REQUIRED";
|
|
32
|
-
if ((
|
|
35
|
+
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
33
36
|
return "VERIFICATION:INTERNAL";
|
|
34
|
-
if ((
|
|
37
|
+
if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
35
38
|
return "VERIFICATION:REVIEW";
|
|
36
|
-
if ((
|
|
39
|
+
if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
37
40
|
return "VERIFICATION:FAILED";
|
|
38
41
|
if (account.hold)
|
|
39
42
|
return "HOLD";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { isDemo, useParentState } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
3
|
import { Component, Prop, h } from "@stencil/core";
|
|
3
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
4
6
|
import { getProps } from "../../../utils/utils";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
+
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
8
|
+
import { ErrorView } from "./ErrorView";
|
|
7
9
|
import { extractProps } from "./extractProps";
|
|
10
|
+
import LoadingView from "./LoadingView";
|
|
8
11
|
import { useTaxAndCash } from "./useTaxAndCash";
|
|
9
|
-
import { isDemo, useParentState } from "@saasquatch/component-boilerplate";
|
|
10
|
-
import { ErrorView } from "./ErrorView";
|
|
11
12
|
/**
|
|
12
13
|
* @uiName Tax and Cash
|
|
13
14
|
* @exampleGroup Tax and Cash
|
|
@@ -973,6 +974,15 @@ export class TaxAndCashMonolith {
|
|
|
973
974
|
* @uiGroup General Form Properties
|
|
974
975
|
*/
|
|
975
976
|
this.supportLink = "support team";
|
|
977
|
+
/**
|
|
978
|
+
* @uiName Monolith States
|
|
979
|
+
* @componentState { "title": "Step 1", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"] }
|
|
980
|
+
* @componentState { "title": "Step 2", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"] }
|
|
981
|
+
* @componentState { "title": "Step 3", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"] }
|
|
982
|
+
* @componentState { "title": "Step 4", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"] }
|
|
983
|
+
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"] }
|
|
984
|
+
*/
|
|
985
|
+
this.stateController = "{}";
|
|
976
986
|
withHooks(this);
|
|
977
987
|
}
|
|
978
988
|
disconnectedCallback() { }
|
|
@@ -1017,21 +1027,23 @@ export class TaxAndCashMonolith {
|
|
|
1017
1027
|
h("hr", null)));
|
|
1018
1028
|
})));
|
|
1019
1029
|
}
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1030
|
+
const getStep = () => {
|
|
1031
|
+
switch (props.step) {
|
|
1032
|
+
case "/1":
|
|
1033
|
+
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"), extractProps(props, "sqm-user-info-form_"))));
|
|
1034
|
+
case "/2":
|
|
1035
|
+
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"), extractProps(props, "sqm-indirect-tax-form_"))));
|
|
1036
|
+
case "/3":
|
|
1037
|
+
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"), extractProps(props, "sqm-docusign-form_"))));
|
|
1038
|
+
case "/4":
|
|
1039
|
+
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"), extractProps(props, "sqm-banking-info-form_"))));
|
|
1040
|
+
case "/dashboard":
|
|
1041
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), extractProps(props, "sqm-tax-and-cash-dashboard_"))));
|
|
1042
|
+
case "/error":
|
|
1043
|
+
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
1044
|
+
}
|
|
1045
|
+
};
|
|
1046
|
+
return getStep() || h(LoadingView, null);
|
|
1035
1047
|
}
|
|
1036
1048
|
static get is() { return "sqm-tax-and-cash"; }
|
|
1037
1049
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5014,20 +5026,55 @@ export class TaxAndCashMonolith {
|
|
|
5014
5026
|
"reflect": false,
|
|
5015
5027
|
"defaultValue": "\"support team\""
|
|
5016
5028
|
},
|
|
5029
|
+
"stateController": {
|
|
5030
|
+
"type": "string",
|
|
5031
|
+
"mutable": false,
|
|
5032
|
+
"complexType": {
|
|
5033
|
+
"original": "string",
|
|
5034
|
+
"resolved": "string",
|
|
5035
|
+
"references": {}
|
|
5036
|
+
},
|
|
5037
|
+
"required": false,
|
|
5038
|
+
"optional": false,
|
|
5039
|
+
"docs": {
|
|
5040
|
+
"tags": [{
|
|
5041
|
+
"text": "Monolith States",
|
|
5042
|
+
"name": "uiName"
|
|
5043
|
+
}, {
|
|
5044
|
+
"text": "{ \"title\": \"Step 1\", \"props\": { \"step\": \"/1\" }, \"dependencies\": [\"sqm-user-info-form\"] }",
|
|
5045
|
+
"name": "componentState"
|
|
5046
|
+
}, {
|
|
5047
|
+
"text": "{ \"title\": \"Step 2\", \"props\": { \"step\": \"/2\" }, \"dependencies\": [\"sqm-indirect-tax-form\"] }",
|
|
5048
|
+
"name": "componentState"
|
|
5049
|
+
}, {
|
|
5050
|
+
"text": "{ \"title\": \"Step 3\", \"props\": { \"step\": \"/3\" }, \"dependencies\": [\"sqm-docusign-form\"] }",
|
|
5051
|
+
"name": "componentState"
|
|
5052
|
+
}, {
|
|
5053
|
+
"text": "{ \"title\": \"Step 4\", \"props\": { \"step\": \"/4\" }, \"dependencies\": [\"sqm-banking-info-form\"] }",
|
|
5054
|
+
"name": "componentState"
|
|
5055
|
+
}, {
|
|
5056
|
+
"text": "{ \"title\": \"Dashboard\", \"props\": { \"step\": \"/dashboard\" }, \"dependencies\": [\"sqm-tax-and-cash-dashboard\"] }",
|
|
5057
|
+
"name": "componentState"
|
|
5058
|
+
}],
|
|
5059
|
+
"text": ""
|
|
5060
|
+
},
|
|
5061
|
+
"attribute": "state-controller",
|
|
5062
|
+
"reflect": false,
|
|
5063
|
+
"defaultValue": "\"{}\""
|
|
5064
|
+
},
|
|
5017
5065
|
"demoData": {
|
|
5018
5066
|
"type": "unknown",
|
|
5019
5067
|
"mutable": false,
|
|
5020
5068
|
"complexType": {
|
|
5021
|
-
"original": "DemoData<
|
|
5022
|
-
"resolved": "{ loading?: boolean; setStep?: (value: string) => void; step?: string; context?: TaxContext; namespace?: string; }",
|
|
5069
|
+
"original": "DemoData<TaxAndCashMonolith>",
|
|
5070
|
+
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_currencyHelpText?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_classificationLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_currencyHelpText\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_classificationLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5023
5071
|
"references": {
|
|
5024
5072
|
"DemoData": {
|
|
5025
5073
|
"location": "import",
|
|
5026
5074
|
"path": "../../../global/demo"
|
|
5027
5075
|
},
|
|
5028
|
-
"
|
|
5029
|
-
"location": "
|
|
5030
|
-
"path": "./useTaxAndCash"
|
|
5076
|
+
"TaxAndCashMonolith": {
|
|
5077
|
+
"location": "global"
|
|
5031
5078
|
}
|
|
5032
5079
|
}
|
|
5033
5080
|
},
|
|
@@ -5037,9 +5084,6 @@ export class TaxAndCashMonolith {
|
|
|
5037
5084
|
"tags": [{
|
|
5038
5085
|
"text": undefined,
|
|
5039
5086
|
"name": "undocumented"
|
|
5040
|
-
}, {
|
|
5041
|
-
"text": "object",
|
|
5042
|
-
"name": "uiType"
|
|
5043
5087
|
}],
|
|
5044
5088
|
"text": ""
|
|
5045
5089
|
}
|
|
@@ -5051,8 +5095,13 @@ function useDemoTaxAndCash(props) {
|
|
|
5051
5095
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5052
5096
|
initialValue: "/1",
|
|
5053
5097
|
});
|
|
5098
|
+
console.log("PROPS", props);
|
|
5099
|
+
const states = parseStates(props.stateController);
|
|
5100
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
5101
|
+
? { ...prev, ...states[key] }
|
|
5102
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
5054
5103
|
return deepmerge({
|
|
5055
5104
|
step,
|
|
5056
5105
|
setStep,
|
|
5057
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5106
|
+
}, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
|
|
5058
5107
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContextValueName, useHost, useLocale, useParentQuery, useParentState, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useMemo } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
3
4
|
import { getCountryObj } from "../utils";
|
|
4
|
-
import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "./data";
|
|
5
5
|
function getCurrentStep(user) {
|
|
6
6
|
var _a, _b;
|
|
7
7
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
@@ -1724,23 +1724,31 @@ export class TaxAndCashDashboard {
|
|
|
1724
1724
|
}; }
|
|
1725
1725
|
}
|
|
1726
1726
|
function useDemoTaxAndCashDashboard(props) {
|
|
1727
|
+
// const states = parseStates(props.stateController);
|
|
1727
1728
|
return deepmerge({
|
|
1728
1729
|
states: {
|
|
1729
1730
|
dateSubmitted: "today",
|
|
1730
1731
|
documentType: "W9",
|
|
1731
1732
|
documentTypeString: "W9",
|
|
1732
|
-
status: "ACTIVE",
|
|
1733
1733
|
country: "United States",
|
|
1734
|
-
indirectTaxNumber: 55555555,
|
|
1734
|
+
indirectTaxNumber: "55555555",
|
|
1735
1735
|
indirectTaxType: "Indirect Tax",
|
|
1736
|
-
noFormNeeded:
|
|
1736
|
+
noFormNeeded: false,
|
|
1737
1737
|
disabled: false,
|
|
1738
1738
|
loading: false,
|
|
1739
1739
|
showNewFormDialog: false,
|
|
1740
1740
|
hasHold: false,
|
|
1741
|
-
|
|
1741
|
+
subRegion: "CA",
|
|
1742
|
+
subRegionTaxNumber: undefined,
|
|
1743
|
+
qstNumber: undefined,
|
|
1744
|
+
isBusinessEntity: false,
|
|
1745
|
+
province: undefined,
|
|
1746
|
+
notRegistered: true,
|
|
1747
|
+
loadingError: false,
|
|
1742
1748
|
payoutStatus: "DONE",
|
|
1743
1749
|
veriffLoading: false,
|
|
1750
|
+
canEditPayoutInfo: true,
|
|
1751
|
+
status: "ACTIVE",
|
|
1744
1752
|
},
|
|
1745
1753
|
callbacks: {
|
|
1746
1754
|
onClick: () => console.debug("check step"),
|
|
@@ -1750,5 +1758,12 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1750
1758
|
onVerifyClick: () => console.log("verify"),
|
|
1751
1759
|
},
|
|
1752
1760
|
text: props.getTextProps(),
|
|
1761
|
+
slots: {
|
|
1762
|
+
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
1763
|
+
states: {
|
|
1764
|
+
badgeStatus: "nextPayout",
|
|
1765
|
+
},
|
|
1766
|
+
} })),
|
|
1767
|
+
},
|
|
1753
1768
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1754
1769
|
}
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -2,11 +2,11 @@ import { useLocale, useParentQueryValue, useSetParent, } from "@saasquatch/compo
|
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import { vatLabels } from "../countries";
|
|
5
|
-
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../
|
|
6
|
-
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
7
|
-
import { taxTypeToName } from "../utils";
|
|
5
|
+
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
8
6
|
import { getStatus } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
7
|
+
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
9
8
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
9
|
+
import { taxTypeToName } from "../utils";
|
|
10
10
|
function getCountryName(countryCode, locale) {
|
|
11
11
|
if (!countryCode)
|
|
12
12
|
return undefined;
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
-
import { GeneralLoadingView } from "../TaxForm.stories";
|
|
5
|
-
import { FORM_STEPS } from "../
|
|
6
|
-
import { formatErrorMessage, validateBillingField } from "../utils";
|
|
4
|
+
// import { GeneralLoadingView } from "../TaxForm.stories";
|
|
5
|
+
import { FORM_STEPS } from "../data";
|
|
7
6
|
import { PHONE_EXTENSIONS } from "../phoneExtensions";
|
|
7
|
+
import LoadingView from "../sqm-tax-and-cash/LoadingView";
|
|
8
|
+
import { formatErrorMessage, validateBillingField } from "../utils";
|
|
8
9
|
const style = {
|
|
9
10
|
FormWrapper: {},
|
|
10
11
|
ErrorInput: {
|
|
@@ -227,7 +228,7 @@ const vanillaStyle = `
|
|
|
227
228
|
background-color: var(--sqm-input-background, #fff);
|
|
228
229
|
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
229
230
|
color: var(--sqm-input-color, white);
|
|
230
|
-
border-width: var(--sqm-border-
|
|
231
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
231
232
|
border-style: solid;
|
|
232
233
|
border-color: var(--sqm-input-border-color, #ccc);
|
|
233
234
|
}
|
|
@@ -322,7 +323,7 @@ export const UserInfoFormView = (props) => {
|
|
|
322
323
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
323
324
|
})),
|
|
324
325
|
h("br", null))),
|
|
325
|
-
states.loading ? (h(
|
|
326
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
326
327
|
h("div", { class: classes.TextContainer },
|
|
327
328
|
h("div", null,
|
|
328
329
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isDemo, useSetParent } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component,
|
|
3
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
5
|
import { getProps } from "../../../utils/utils";
|
|
6
|
-
import { TAX_CONTEXT_NAMESPACE } from "../
|
|
6
|
+
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
7
7
|
import { UserInfoFormView } from "./sqm-user-info-form-view";
|
|
8
8
|
import { useUserInfoForm } from "./useUserInfoForm";
|
|
9
9
|
/**
|
|
@@ -183,13 +183,12 @@ export class TaxForm {
|
|
|
183
183
|
}
|
|
184
184
|
render() {
|
|
185
185
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
186
|
-
return (h(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}, text: props.text, refs: props.refs })));
|
|
186
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
states: props.states, callbacks: {
|
|
189
|
+
...props.callbacks,
|
|
190
|
+
onSubmit: props.onSubmit,
|
|
191
|
+
}, text: props.text, refs: props.refs }));
|
|
193
192
|
}
|
|
194
193
|
static get is() { return "sqm-user-info-form"; }
|
|
195
194
|
static get encapsulation() { return "shadow"; }
|
|
@@ -924,9 +923,10 @@ export class TaxForm {
|
|
|
924
923
|
}
|
|
925
924
|
function useDemoUserInfoForm(props) {
|
|
926
925
|
const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
|
|
926
|
+
// @ts-ignore
|
|
927
927
|
return deepmerge({
|
|
928
928
|
setStep,
|
|
929
|
-
onSubmit: () => {
|
|
929
|
+
onSubmit: async () => {
|
|
930
930
|
setStep("/2");
|
|
931
931
|
},
|
|
932
932
|
onRadioClick: () => { },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useParent, useParentQueryValue, useParentValue, } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hooks";
|
|
2
3
|
import jsonpointer from "jsonpointer";
|
|
3
|
-
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../
|
|
4
|
-
import { objectIsFull } from "../utils";
|
|
5
|
-
import { useParent, useParentQueryValue, useParentValue, } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
6
5
|
import { ADDRESS_REGIONS } from "../subregions";
|
|
6
|
+
import { objectIsFull } from "../utils";
|
|
7
7
|
export function useUserInfoForm(props) {
|
|
8
8
|
var _a, _b, _c, _d;
|
|
9
9
|
const currencyRef = useRef(undefined);
|