@saasquatch/mint-components 1.8.0-99 → 1.8.0
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/{GenericTableView-b2b3d9fb.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-119ea8d4.js → ShadowViewAddon-7b5c40eb.js} +66 -34
- package/dist/cjs/{email-registration-view-5924a3c7.js → email-registration-view-a6b6430e.js} +1 -1
- package/dist/cjs/{global-f28745b3.js → global-b277b460.js} +3 -3
- package/dist/cjs/{index-78c52836.js → index-b0129cd6.js} +0 -18
- package/dist/cjs/{index.module-9243c470.js → index.module-76379dd7.js} +582 -16
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-33ebaf57.js → luxon-a4661470.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mockRewardData-08b362bc.js → mockRewardData-8e760564.js} +8 -7
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-731799e5.js → re-render-dbeba624.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-b6f5e3f6.js → sqm-asset-card-view-a0e33f21.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +1354 -1779
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +66 -66
- package/dist/cjs/{sqm-close-button-view-a41308c2.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-26aeebca.js → sqm-invoice-table-view-035d5aed.js} +74 -11
- package/dist/cjs/{sqm-leaderboard-rank-view-5c12ea2a.js → sqm-leaderboard-rank-view-5a3d4a88.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-8ccfc185.js → sqm-logout-current-user-view-c9f18d96.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4ebb86ac.js → sqm-navigation-sidebar-item-view-a3d8eedf.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-1bac8b89.js → sqm-navigation-sidebar-view-dd53f947.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-container-view-e565003b.js → sqm-portal-container-view-5fb2ad49.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-423633a1.js → sqm-portal-email-verification-view-05fad72d.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +14 -11
- package/dist/cjs/{sqm-portal-forgot-password-view-8d0923e1.js → sqm-portal-forgot-password-view-ca5f6db9.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-a6fc5fdd.js → sqm-portal-profile-view-e28f61d6.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-reset-password-view-d639e312.js → sqm-portal-reset-password-view-07a13210.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-verify-email-view-1e6255e9.js → sqm-portal-verify-email-view-ce552bbc.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +14 -16
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +21 -21
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +107 -122
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-2e945b0c.js → sqm-text-span-view-e1cd9bd3.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-7c2013c9.js → stencil-hooks.module-faabb426.js} +1 -1
- package/dist/cjs/{useChildElements-3caf3e22.js → useChildElements-ad37ecbf.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-fb690bc3.js → useInstantAccessRegistration-01509697.js} +4 -4
- package/dist/cjs/{useReferralTable-6a7ad97b.js → useReferralTable-6cbd3b88.js} +11 -13
- package/dist/cjs/{useRegistrationFormState-98b2818e.js → useRegistrationFormState-1d403dd8.js} +3 -3
- package/dist/cjs/{utilities-0541106d.js → utilities-6d5addc7.js} +2 -2
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +11 -11
- package/dist/collection/components/sqm-invoice-table/InvoiceTableCell.stories.js +2 -2
- package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -2
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +0 -1
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +4 -4
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +0 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -1
- package/dist/collection/components/sqm-invoice-table/mockInvoiceData.js +4 -4
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +2 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +61 -16
- package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +5 -4
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -1
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +1 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -0
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +31 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -3
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +4 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -2
- 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 -3
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -5
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +6 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +14 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +47 -7
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +200 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +259 -235
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -237
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +8 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +127 -251
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +15 -19
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +187 -154
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +33 -18
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +32 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +42 -16
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +961 -880
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +40 -88
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +46 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +476 -171
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +19 -27
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +7 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +154 -113
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -12
- package/dist/collection/components/tax-and-cash/utils.js +18 -1
- package/dist/collection/stories/PortalTemplates.stories.js +5 -0
- package/dist/esm/{GenericTableView-a2b0ba19.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{ShadowViewAddon-8ab7e840.js → ShadowViewAddon-d9424229.js} +66 -34
- package/dist/esm/{email-registration-view-f48adc22.js → email-registration-view-4a4202e7.js} +1 -1
- package/dist/esm/{global-2d34c7d9.js → global-35b8d91c.js} +3 -3
- package/dist/esm/{index-f16aa635.js → index-17b4da69.js} +1 -18
- package/dist/esm/{index.module-a46df001.js → index.module-6242dccd.js} +563 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-01b10a1d.js → luxon-4706d11b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mockRewardData-e9fdc4fa.js → mockRewardData-6f03c9fb.js} +8 -7
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-22af3424.js → re-render-9542be16.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-24845a25.js → sqm-asset-card-view-9d93fbdd.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +1354 -1779
- package/dist/esm/sqm-big-stat_38.entry.js +66 -66
- package/dist/esm/{sqm-close-button-view-233e2434.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-45e3b5c2.js → sqm-invoice-table-view-1115795f.js} +73 -12
- package/dist/esm/{sqm-leaderboard-rank-view-d704f03c.js → sqm-leaderboard-rank-view-10657658.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-8ae8f259.js → sqm-logout-current-user-view-2c6122cd.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-e06988b9.js → sqm-navigation-sidebar-item-view-058eba98.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-view-6f66acc9.js → sqm-navigation-sidebar-view-414bcb19.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +7 -7
- package/dist/esm/{sqm-portal-container-view-e42e3789.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-de885af1.js → sqm-portal-email-verification-view-251945de.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +14 -11
- package/dist/esm/{sqm-portal-forgot-password-view-c57e849c.js → sqm-portal-forgot-password-view-a764ad67.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-1ec985ec.js → sqm-portal-profile-view-0294c422.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +10 -10
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form.entry.js +10 -10
- package/dist/esm/{sqm-portal-reset-password-view-e523c018.js → sqm-portal-reset-password-view-d3e726a9.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -10
- package/dist/esm/{sqm-portal-verify-email-view-fb6875bb.js → sqm-portal-verify-email-view-283bf637.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -10
- package/dist/esm/sqm-referral-table_11.entry.js +14 -16
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +5 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +21 -21
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +107 -122
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +6 -6
- package/dist/esm/{sqm-text-span-view-d776bd9c.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-aa42e74f.js → stencil-hooks.module-8032b139.js} +2 -2
- package/dist/esm/{useChildElements-b6d750df.js → useChildElements-92ae8069.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-ad474a64.js → useInstantAccessRegistration-8dca4f2a.js} +4 -4
- package/dist/esm/{useReferralTable-ae86bc4f.js → useReferralTable-e5d6476f.js} +11 -13
- package/dist/esm/{useRegistrationFormState-4d8fe860.js → useRegistrationFormState-0703f6b0.js} +3 -3
- package/dist/esm/{utilities-8d9fb379.js → utilities-94e1e2b4.js} +2 -2
- package/dist/esm-es5/{GenericTableView-a2b0ba19.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-d9424229.js +1 -0
- package/dist/esm-es5/{email-registration-view-f48adc22.js → email-registration-view-4a4202e7.js} +1 -1
- package/dist/esm-es5/{global-2d34c7d9.js → global-35b8d91c.js} +2 -2
- package/dist/esm-es5/{index-f16aa635.js → index-17b4da69.js} +1 -1
- package/dist/esm-es5/index.module-6242dccd.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-01b10a1d.js → luxon-4706d11b.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mockRewardData-6f03c9fb.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-22af3424.js → re-render-9542be16.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-24845a25.js → sqm-asset-card-view-9d93fbdd.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-233e2434.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-1115795f.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ae8f259.js → sqm-logout-current-user-view-2c6122cd.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-e06988b9.js → sqm-navigation-sidebar-item-view-058eba98.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-6f66acc9.js → sqm-navigation-sidebar-view-414bcb19.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-e42e3789.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-de885af1.js → sqm-portal-email-verification-view-251945de.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c57e849c.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-1ec985ec.js → sqm-portal-profile-view-0294c422.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-e523c018.js → sqm-portal-reset-password-view-d3e726a9.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-fb6875bb.js → sqm-portal-verify-email-view-283bf637.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-d776bd9c.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-aa42e74f.js → stencil-hooks.module-8032b139.js} +2 -2
- package/dist/esm-es5/useChildElements-92ae8069.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8dca4f2a.js +1 -0
- package/dist/esm-es5/{useReferralTable-ae86bc4f.js → useReferralTable-e5d6476f.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-0703f6b0.js +1 -0
- package/dist/esm-es5/{utilities-8d9fb379.js → utilities-94e1e2b4.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-cb6b695d.js → p-0076de9e.js} +1 -1
- package/dist/mint-components/{p-7a1fdfcc.js → p-0570c048.js} +1 -1
- package/dist/mint-components/{p-867e46a4.js → p-05a69cbe.js} +2 -2
- package/dist/mint-components/p-06cb48d2.system.entry.js +1 -0
- package/dist/mint-components/{p-12929f2d.entry.js → p-08a97a39.entry.js} +1 -1
- package/dist/mint-components/p-0a898ab1.js +1 -0
- package/dist/mint-components/p-0dede431.entry.js +1 -0
- package/dist/mint-components/p-166c69f2.system.entry.js +1 -0
- package/dist/mint-components/p-18c843e3.system.entry.js +1 -0
- package/dist/mint-components/p-1b22871f.system.entry.js +1 -0
- package/dist/mint-components/{p-8d37b2a1.js → p-2446212d.js} +2 -2
- package/dist/mint-components/p-24b8cd17.system.entry.js +1 -0
- package/dist/mint-components/{p-48c6cec0.entry.js → p-2ee988c7.entry.js} +10 -10
- package/dist/mint-components/{p-5fb5d99b.system.js → p-3036cf58.system.js} +1 -1
- package/dist/mint-components/{p-d7e09410.system.entry.js → p-32096f32.system.entry.js} +1 -1
- package/dist/mint-components/p-34d72151.js +1 -0
- package/dist/mint-components/p-3684cab6.js +1 -0
- package/dist/mint-components/p-37d97a22.system.js +1 -0
- package/dist/mint-components/p-38be1e51.system.entry.js +1 -0
- package/dist/mint-components/{p-ee74765c.entry.js → p-399d6f42.entry.js} +1 -1
- package/dist/mint-components/p-3da3974e.js +1 -0
- package/dist/mint-components/{p-1821e198.system.entry.js → p-3f75df7b.system.entry.js} +1 -1
- package/dist/mint-components/p-3f8d6a52.entry.js +1 -0
- package/dist/mint-components/p-409c030a.system.entry.js +1 -0
- package/dist/mint-components/{p-9e1850fb.js → p-4153fbb6.js} +1 -1
- package/dist/mint-components/p-44119827.system.js +1 -0
- package/dist/mint-components/{p-283c5cbc.js → p-46ef82ed.js} +1 -1
- package/dist/mint-components/p-491f2603.entry.js +1 -0
- package/dist/mint-components/p-4944f4c4.entry.js +1 -0
- package/dist/mint-components/p-4bdfee88.entry.js +1 -0
- package/dist/mint-components/{p-923f5b38.system.js → p-4ceba64c.system.js} +1 -1
- package/dist/mint-components/p-4d9744bf.js +1 -0
- package/dist/mint-components/{p-62697548.system.js → p-4f775e84.system.js} +1 -1
- package/dist/mint-components/{p-021207af.entry.js → p-53c5e69a.entry.js} +2 -2
- package/dist/mint-components/{p-a985672d.system.entry.js → p-5532c083.system.entry.js} +1 -1
- package/dist/mint-components/{p-73e3e768.entry.js → p-5935bae5.entry.js} +2 -2
- package/dist/mint-components/p-5b52e8fb.system.js +1 -0
- package/dist/mint-components/{p-b1bc8951.js → p-5d0c9424.js} +1 -1
- package/dist/mint-components/{p-9400590c.system.js → p-5e8996cd.system.js} +1 -1
- package/dist/mint-components/p-60d0d672.entry.js +152 -0
- package/dist/mint-components/{p-d1cde664.entry.js → p-6163a7a4.entry.js} +1 -1
- package/dist/mint-components/{p-a7ac3831.system.entry.js → p-61ad3dd4.system.entry.js} +1 -1
- package/dist/mint-components/{p-02b7a1a3.entry.js → p-61eb751c.entry.js} +1 -1
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/{p-ea544e8b.system.js → p-6465d2e7.system.js} +1 -1
- package/dist/mint-components/p-64c3217a.js +1 -0
- package/dist/mint-components/p-65106298.js +1 -0
- package/dist/mint-components/{p-95e549a9.system.entry.js → p-6713ef50.system.entry.js} +1 -1
- package/dist/mint-components/p-67b91751.system.js +1 -0
- package/dist/mint-components/{p-98fb8aae.system.js → p-6b5e355c.system.js} +1 -1
- package/dist/mint-components/{p-129d5cfc.system.entry.js → p-6bb4054f.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ec76885.js → p-70955f74.js} +1 -1
- package/dist/mint-components/p-73fb8be6.js +1 -0
- package/dist/mint-components/{p-140def64.system.js → p-7487f23c.system.js} +1 -1
- package/dist/mint-components/{p-f8de07af.system.entry.js → p-74c9a1a4.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ae285ad.js → p-79da7f18.js} +1 -1
- package/dist/mint-components/p-79fc68b0.js +1 -0
- package/dist/mint-components/p-7eb6fab2.system.js +1 -0
- package/dist/mint-components/{p-32866386.entry.js → p-7f9eaa09.entry.js} +1 -1
- package/dist/mint-components/{p-0cf35f9d.system.entry.js → p-83082eeb.system.entry.js} +1 -1
- package/dist/mint-components/p-848f1a2e.system.entry.js +1 -0
- package/dist/mint-components/{p-5b4a77b3.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
- package/dist/mint-components/p-89995fd0.js +391 -0
- package/dist/mint-components/p-8a0c7deb.system.entry.js +1 -0
- package/dist/mint-components/p-8a577aad.entry.js +144 -0
- package/dist/mint-components/p-8a9132a1.entry.js +1 -0
- package/dist/mint-components/{p-23669a93.entry.js → p-8d6eda67.entry.js} +1 -1
- package/dist/mint-components/p-8e3e3f21.system.entry.js +1 -0
- package/dist/mint-components/p-9149f891.entry.js +1 -0
- package/dist/mint-components/p-91749794.system.js +1 -0
- package/dist/mint-components/{p-1c9fe397.entry.js → p-92110eef.entry.js} +1 -1
- package/dist/mint-components/{p-4c4f0973.system.js → p-922578e4.system.js} +1 -1
- package/dist/mint-components/p-92b99bb2.system.entry.js +1 -0
- package/dist/mint-components/p-9755ab8f.system.js +1 -0
- package/dist/mint-components/{p-42949824.entry.js → p-97e55da3.entry.js} +1 -1
- package/dist/mint-components/p-9dcfa187.system.js +1 -0
- package/dist/mint-components/{p-e04a924c.js → p-9df0dca8.js} +1 -1
- package/dist/mint-components/{p-ddbcf186.system.entry.js → p-9fe25b2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-0f60f863.system.js → p-a0634399.system.js} +1 -1
- package/dist/mint-components/{p-1911ed09.system.entry.js → p-a2d9fed8.system.entry.js} +1 -1
- package/dist/mint-components/{p-2cb996af.entry.js → p-a3875af8.entry.js} +2 -2
- package/dist/mint-components/{p-45cc2a06.system.entry.js → p-a6ebb722.system.entry.js} +1 -1
- package/dist/mint-components/p-a7e54efb.js +1 -0
- package/dist/mint-components/p-a93e0eb8.system.js +1 -0
- package/dist/mint-components/{p-07a2b404.system.js → p-b153fc0c.system.js} +1 -1
- package/dist/mint-components/p-b322725f.entry.js +1 -0
- package/dist/mint-components/p-b689baf8.system.js +1 -0
- package/dist/mint-components/p-b7afcca4.system.entry.js +1 -0
- package/dist/mint-components/{p-caca3160.js → p-b9474165.js} +1 -1
- package/dist/mint-components/{p-698b699e.system.js → p-bc1d707d.system.js} +1 -1
- package/dist/mint-components/{p-86b8d490.system.entry.js → p-be584089.system.entry.js} +1 -1
- package/dist/mint-components/{p-7c80164e.system.js → p-c06048c9.system.js} +1 -1
- package/dist/mint-components/{p-abc149fe.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/p-c53f12df.entry.js +13 -0
- package/dist/mint-components/{p-b52d8951.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-1fa36f98.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/{p-66ad53b1.entry.js → p-c74a8f95.entry.js} +1 -1
- package/dist/mint-components/{p-ef158fe8.system.js → p-d079af07.system.js} +1 -1
- package/dist/mint-components/{p-f1524d37.system.js → p-d4b174e1.system.js} +1 -1
- package/dist/mint-components/{p-c23bbbc4.system.js → p-d5a682bf.system.js} +2 -2
- package/dist/mint-components/p-d943d0e8.system.entry.js +1 -0
- package/dist/mint-components/{p-82d7a656.system.entry.js → p-d95ab3ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-a399550d.system.entry.js → p-dad6d93d.system.entry.js} +1 -1
- package/dist/mint-components/{p-61f546e6.entry.js → p-dda8a486.entry.js} +1 -1
- package/dist/mint-components/{p-57644280.js → p-df1b9e5b.js} +1 -1
- package/dist/mint-components/p-e02fb133.system.js +1 -0
- package/dist/mint-components/p-e15443a8.entry.js +1 -0
- package/dist/mint-components/{p-f0c0bec9.entry.js → p-e1f3a863.entry.js} +1 -1
- package/dist/mint-components/{p-d8b73a80.system.entry.js → p-e2fbe1a1.system.entry.js} +1 -1
- package/dist/mint-components/{p-9bd20f34.system.entry.js → p-e31a3242.system.entry.js} +1 -1
- package/dist/mint-components/{p-03ce2c9b.js → p-e3e16c36.js} +1 -1
- package/dist/mint-components/p-e48c06c7.system.entry.js +1 -0
- package/dist/mint-components/{p-d234546c.system.entry.js → p-e5802992.system.entry.js} +1 -1
- package/dist/mint-components/{p-054c86e8.js → p-e704842c.js} +1 -1
- package/dist/mint-components/p-e78a9295.entry.js +1 -0
- package/dist/mint-components/{p-5e8b7e98.entry.js → p-e88f7872.entry.js} +1 -1
- package/dist/mint-components/{p-ca83944e.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/{p-34c938bb.system.entry.js → p-e8fc71f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-98694b8a.js → p-ea6a7135.js} +1 -1
- package/dist/mint-components/{p-c59d4f22.entry.js → p-ed5c7e8a.entry.js} +1 -1
- package/dist/mint-components/{p-d812f2f1.entry.js → p-eed578fa.entry.js} +1 -1
- package/dist/mint-components/{p-c3160411.entry.js → p-f0cfe297.entry.js} +1 -1
- package/dist/mint-components/p-f1963937.entry.js +1 -0
- package/dist/mint-components/p-f37b7296.entry.js +9 -0
- package/dist/mint-components/{p-4220a501.system.entry.js → p-f4a6e490.system.entry.js} +1 -1
- package/dist/mint-components/{p-256aff43.js → p-f5f25aba.js} +1 -1
- package/dist/mint-components/{p-e6973d80.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-07529a98.system.js → p-fca0dc98.system.js} +1 -1
- package/dist/mint-components/{p-1e56ab57.system.js → p-ff17b3a4.system.js} +1 -1
- package/dist/types/components/sqm-invoice-table/InvoiceTableCell.stories.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +9 -5
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +1 -1
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +2 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +55 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +9 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +79 -98
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +1 -53
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -9
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +44 -72
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -4
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +60 -60
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +8 -3
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +13 -8
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +287 -324
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +14 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +114 -84
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +44 -43
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +11 -5
- package/dist/types/components/tax-and-cash/utils.d.ts +8 -0
- package/dist/types/components.d.ts +1352 -1380
- package/dist/types/saasquatch.d.ts +8 -7
- package/dist/types/stories/PortalTemplates.stories.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -3
- package/dist/cjs/sqm-docusign-embed.cjs.entry.js +0 -34
- package/dist/collection/components/sqm-docusign-embed/sqm-docusign-embed.js +0 -65
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignCompletedView.js +0 -29
- package/dist/collection/utils/useParentQuery.js +0 -27
- package/dist/collection/utils/useParentState.js +0 -37
- package/dist/esm/sqm-docusign-embed.entry.js +0 -30
- package/dist/esm-es5/ShadowViewAddon-8ab7e840.js +0 -1
- package/dist/esm-es5/index.module-a46df001.js +0 -1
- package/dist/esm-es5/mockRewardData-e9fdc4fa.js +0 -1
- package/dist/esm-es5/sqm-docusign-embed.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-45e3b5c2.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-d704f03c.js +0 -1
- package/dist/esm-es5/useChildElements-b6d750df.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-ad474a64.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-4d8fe860.js +0 -1
- package/dist/mint-components/p-020ccace.js +0 -1
- package/dist/mint-components/p-0251c974.system.js +0 -1
- package/dist/mint-components/p-03aa1079.js +0 -1
- package/dist/mint-components/p-0b1330d9.entry.js +0 -1
- package/dist/mint-components/p-0b4f95fe.system.entry.js +0 -1
- package/dist/mint-components/p-0c2a6340.entry.js +0 -144
- package/dist/mint-components/p-11d95a57.entry.js +0 -1
- package/dist/mint-components/p-18b77c5f.entry.js +0 -9
- package/dist/mint-components/p-1a69f973.entry.js +0 -1
- package/dist/mint-components/p-1a8335fb.system.entry.js +0 -1
- package/dist/mint-components/p-1fba8a7d.entry.js +0 -148
- package/dist/mint-components/p-26ec23ad.entry.js +0 -1
- package/dist/mint-components/p-2e5c408f.entry.js +0 -1
- package/dist/mint-components/p-2f7c3f5c.js +0 -1
- package/dist/mint-components/p-3ac706c9.js +0 -1
- package/dist/mint-components/p-3ca2e26d.system.entry.js +0 -1
- package/dist/mint-components/p-474c202e.system.entry.js +0 -1
- package/dist/mint-components/p-4df8a784.system.js +0 -1
- package/dist/mint-components/p-67eadc94.js +0 -391
- package/dist/mint-components/p-69cdf17a.system.js +0 -1
- package/dist/mint-components/p-6e356df6.system.entry.js +0 -1
- package/dist/mint-components/p-7266c84f.system.entry.js +0 -1
- package/dist/mint-components/p-7520e15a.js +0 -1
- package/dist/mint-components/p-7689bdec.entry.js +0 -1
- package/dist/mint-components/p-7d81da49.system.entry.js +0 -1
- package/dist/mint-components/p-8019e18f.system.entry.js +0 -1
- package/dist/mint-components/p-830f82bb.system.entry.js +0 -1
- package/dist/mint-components/p-8502e27c.entry.js +0 -1
- package/dist/mint-components/p-88380a45.entry.js +0 -1
- package/dist/mint-components/p-94ad6231.js +0 -1
- package/dist/mint-components/p-965b6a7d.entry.js +0 -13
- package/dist/mint-components/p-9b2e401c.js +0 -1
- package/dist/mint-components/p-a2728372.system.entry.js +0 -1
- package/dist/mint-components/p-a448f535.system.js +0 -1
- package/dist/mint-components/p-a5ce663d.system.entry.js +0 -1
- package/dist/mint-components/p-b5b0128d.js +0 -1
- package/dist/mint-components/p-baddce7c.system.entry.js +0 -1
- package/dist/mint-components/p-c0dd4993.system.js +0 -1
- package/dist/mint-components/p-c7d2b2e3.entry.js +0 -1
- package/dist/mint-components/p-cc570915.system.entry.js +0 -1
- package/dist/mint-components/p-d5364cae.system.js +0 -1
- package/dist/mint-components/p-d87be499.system.js +0 -1
- package/dist/mint-components/p-df8f553b.entry.js +0 -1
- package/dist/mint-components/p-e1335d59.system.entry.js +0 -1
- package/dist/mint-components/p-e36ffd5d.system.js +0 -1
- package/dist/mint-components/p-e37a287c.entry.js +0 -1
- package/dist/mint-components/p-e5b44552.system.js +0 -1
- package/dist/mint-components/p-e86ec70c.system.js +0 -1
- package/dist/mint-components/p-e9419043.js +0 -1
- package/dist/mint-components/p-eb537272.system.js +0 -1
- package/dist/mint-components/p-eba772a8.entry.js +0 -1
- package/dist/mint-components/p-f438972d.system.entry.js +0 -1
- package/dist/mint-components/p-f6e5df75.js +0 -1
- package/dist/mint-components/p-fa11bb8f.entry.js +0 -1
- package/dist/types/components/sqm-docusign-embed/sqm-docusign-embed.d.ts +0 -20
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/DocusignCompletedView.d.ts +0 -1
- package/dist/types/utils/useParentQuery.d.ts +0 -12
- package/dist/types/utils/useParentState.d.ts +0 -12
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { isDemo, useSetParent } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component,
|
|
3
|
+
import { Component, Host, Prop, State, h } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
-
import { useParent } from "../../../utils/useParentState";
|
|
6
5
|
import { getProps } from "../../../utils/utils";
|
|
7
6
|
import { TAX_CONTEXT_NAMESPACE } from "../sqm-tax-and-cash/data";
|
|
8
7
|
import { UserInfoFormView } from "./sqm-user-info-form-view";
|
|
@@ -15,107 +14,108 @@ export class TaxForm {
|
|
|
15
14
|
constructor() {
|
|
16
15
|
this.ignored = true;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @uiName First name label
|
|
17
|
+
* @uiName First name field label
|
|
20
18
|
*/
|
|
21
19
|
this.firstName = "First name";
|
|
22
20
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @uiName Last name label
|
|
21
|
+
* @uiName Last name field label
|
|
25
22
|
*/
|
|
26
23
|
this.lastName = "Last name";
|
|
27
24
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @uiName Email label
|
|
25
|
+
* @uiName Email field label
|
|
30
26
|
*/
|
|
31
27
|
this.email = "Email";
|
|
32
28
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @uiName Country label
|
|
29
|
+
* @uiName Country field label
|
|
35
30
|
*/
|
|
36
31
|
this.country = "Country";
|
|
37
32
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @uiName Currency label
|
|
33
|
+
* @uiName Currency field label
|
|
40
34
|
*/
|
|
41
35
|
this.currency = "Currency";
|
|
42
36
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @uiName Currency help text
|
|
37
|
+
* @uiName Currency field help text
|
|
45
38
|
*/
|
|
46
39
|
this.currencyHelpText = "Choose your preferred payout currency";
|
|
47
40
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @uiName Tax and banking label
|
|
50
|
-
*/
|
|
51
|
-
this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
52
|
-
/**
|
|
53
|
-
* Sub text shown at the top of the page, used to show the current step of the tax form.
|
|
54
|
-
* @uiName Tax form step text
|
|
41
|
+
* @uiName Setup progress
|
|
55
42
|
*/
|
|
56
43
|
this.formStep = "Step {step} of {count}";
|
|
57
44
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @uiName Form heading text
|
|
45
|
+
* @uiName Step 1 title
|
|
60
46
|
*/
|
|
61
47
|
this.personalInformation = "Personal Information";
|
|
62
48
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @uiName Submit button text
|
|
49
|
+
* @uiName Continue button label
|
|
65
50
|
*/
|
|
66
51
|
this.continueButton = "Continue";
|
|
67
52
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @uiName Participant is partner title
|
|
53
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
54
|
+
* @uiName Participant is a partner alert title
|
|
55
|
+
* @uiWidget textArea
|
|
70
56
|
*/
|
|
71
57
|
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
72
58
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @uiName Participant is partner description
|
|
59
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
60
|
+
* @uiName Participant is a partner alert description
|
|
61
|
+
* @uiWidget textArea
|
|
75
62
|
*/
|
|
76
63
|
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
77
64
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* @
|
|
65
|
+
* Part of the alert displayed at the top of the page.
|
|
66
|
+
* @uiName Form submission error message title
|
|
67
|
+
* @uiWidget textArea
|
|
81
68
|
*/
|
|
82
69
|
this.generalErrorTitle = "There was a problem submitting your information";
|
|
83
70
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* @
|
|
71
|
+
* Part of the alert displayed at the top of the page.
|
|
72
|
+
* @uiName Form submission error message description
|
|
73
|
+
* @uiWidget textArea
|
|
87
74
|
*/
|
|
88
75
|
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
|
|
89
76
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @uiName Terms and conditions
|
|
77
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
78
|
+
* @uiName Terms and conditions checkbox
|
|
79
|
+
*/
|
|
80
|
+
this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
81
|
+
/**
|
|
82
|
+
* The text link that appears in the terms and conditions checkbox
|
|
83
|
+
* @uiName Terms and conditions text
|
|
84
|
+
* @uiWidget textArea
|
|
92
85
|
*/
|
|
93
|
-
this.termsAndConditionsLabel = "
|
|
86
|
+
this.termsAndConditionsLabel = "terms and conditions";
|
|
94
87
|
/**
|
|
95
88
|
* Placeholder text displayed in the country search dropdown
|
|
96
|
-
* @uiName
|
|
89
|
+
* @uiName Country field placeholder text
|
|
97
90
|
*/
|
|
98
91
|
this.searchForCountryText = "Search for country..";
|
|
99
92
|
/**
|
|
100
93
|
* Placeholder text displayed in the currency search dropdown
|
|
101
|
-
* @uiName
|
|
94
|
+
* @uiName Currency field placeholder text
|
|
102
95
|
*/
|
|
103
96
|
this.searchForCurrencyText = "Search for currency..";
|
|
104
97
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @uiName
|
|
98
|
+
* Displayed under a field that is missing required information.
|
|
99
|
+
* @uiName Empty form field error message
|
|
107
100
|
*/
|
|
108
101
|
this.fieldRequiredError = "{fieldName} is required";
|
|
109
102
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @uiName
|
|
103
|
+
* Part of the alert displayed at the top of the page.
|
|
104
|
+
* @uiName Page load error message title
|
|
105
|
+
* @uiWidget textArea
|
|
112
106
|
*/
|
|
113
107
|
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
114
108
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @uiName
|
|
109
|
+
* Part of the alert displayed at the top of the page.
|
|
110
|
+
* @uiName Page load error message description
|
|
111
|
+
* @uiWidget textArea
|
|
117
112
|
*/
|
|
118
113
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
114
|
+
/**
|
|
115
|
+
* Displayed at the top of the page on all set up steps.
|
|
116
|
+
* @uiName Page description
|
|
117
|
+
*/
|
|
118
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
119
119
|
withHooks(this);
|
|
120
120
|
}
|
|
121
121
|
disconnectedCallback() { }
|
|
@@ -133,7 +133,6 @@ export class TaxForm {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
console.debug("Rendering user info form");
|
|
137
136
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
138
137
|
return (h(Host, null,
|
|
139
138
|
h(UserInfoFormView, { data: props.data,
|
|
@@ -158,10 +157,10 @@ export class TaxForm {
|
|
|
158
157
|
"optional": false,
|
|
159
158
|
"docs": {
|
|
160
159
|
"tags": [{
|
|
161
|
-
"text": "First name label",
|
|
160
|
+
"text": "First name field label",
|
|
162
161
|
"name": "uiName"
|
|
163
162
|
}],
|
|
164
|
-
"text": "
|
|
163
|
+
"text": ""
|
|
165
164
|
},
|
|
166
165
|
"attribute": "first-name",
|
|
167
166
|
"reflect": false,
|
|
@@ -179,10 +178,10 @@ export class TaxForm {
|
|
|
179
178
|
"optional": false,
|
|
180
179
|
"docs": {
|
|
181
180
|
"tags": [{
|
|
182
|
-
"text": "Last name label",
|
|
181
|
+
"text": "Last name field label",
|
|
183
182
|
"name": "uiName"
|
|
184
183
|
}],
|
|
185
|
-
"text": "
|
|
184
|
+
"text": ""
|
|
186
185
|
},
|
|
187
186
|
"attribute": "last-name",
|
|
188
187
|
"reflect": false,
|
|
@@ -200,10 +199,10 @@ export class TaxForm {
|
|
|
200
199
|
"optional": false,
|
|
201
200
|
"docs": {
|
|
202
201
|
"tags": [{
|
|
203
|
-
"text": "Email label",
|
|
202
|
+
"text": "Email field label",
|
|
204
203
|
"name": "uiName"
|
|
205
204
|
}],
|
|
206
|
-
"text": "
|
|
205
|
+
"text": ""
|
|
207
206
|
},
|
|
208
207
|
"attribute": "email",
|
|
209
208
|
"reflect": false,
|
|
@@ -221,10 +220,10 @@ export class TaxForm {
|
|
|
221
220
|
"optional": false,
|
|
222
221
|
"docs": {
|
|
223
222
|
"tags": [{
|
|
224
|
-
"text": "Country label",
|
|
223
|
+
"text": "Country field label",
|
|
225
224
|
"name": "uiName"
|
|
226
225
|
}],
|
|
227
|
-
"text": "
|
|
226
|
+
"text": ""
|
|
228
227
|
},
|
|
229
228
|
"attribute": "country",
|
|
230
229
|
"reflect": false,
|
|
@@ -242,10 +241,10 @@ export class TaxForm {
|
|
|
242
241
|
"optional": false,
|
|
243
242
|
"docs": {
|
|
244
243
|
"tags": [{
|
|
245
|
-
"text": "Currency label",
|
|
244
|
+
"text": "Currency field label",
|
|
246
245
|
"name": "uiName"
|
|
247
246
|
}],
|
|
248
|
-
"text": "
|
|
247
|
+
"text": ""
|
|
249
248
|
},
|
|
250
249
|
"attribute": "currency",
|
|
251
250
|
"reflect": false,
|
|
@@ -263,36 +262,15 @@ export class TaxForm {
|
|
|
263
262
|
"optional": false,
|
|
264
263
|
"docs": {
|
|
265
264
|
"tags": [{
|
|
266
|
-
"text": "Currency help text",
|
|
265
|
+
"text": "Currency field help text",
|
|
267
266
|
"name": "uiName"
|
|
268
267
|
}],
|
|
269
|
-
"text": "
|
|
268
|
+
"text": ""
|
|
270
269
|
},
|
|
271
270
|
"attribute": "currency-help-text",
|
|
272
271
|
"reflect": false,
|
|
273
272
|
"defaultValue": "\"Choose your preferred payout currency\""
|
|
274
273
|
},
|
|
275
|
-
"allowBankingCollection": {
|
|
276
|
-
"type": "string",
|
|
277
|
-
"mutable": false,
|
|
278
|
-
"complexType": {
|
|
279
|
-
"original": "string",
|
|
280
|
-
"resolved": "string",
|
|
281
|
-
"references": {}
|
|
282
|
-
},
|
|
283
|
-
"required": false,
|
|
284
|
-
"optional": false,
|
|
285
|
-
"docs": {
|
|
286
|
-
"tags": [{
|
|
287
|
-
"text": "Tax and banking label",
|
|
288
|
-
"name": "uiName"
|
|
289
|
-
}],
|
|
290
|
-
"text": "Label text for tax and banking collection checkbox"
|
|
291
|
-
},
|
|
292
|
-
"attribute": "allow-banking-collection",
|
|
293
|
-
"reflect": false,
|
|
294
|
-
"defaultValue": "\"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information\""
|
|
295
|
-
},
|
|
296
274
|
"formStep": {
|
|
297
275
|
"type": "string",
|
|
298
276
|
"mutable": false,
|
|
@@ -305,10 +283,10 @@ export class TaxForm {
|
|
|
305
283
|
"optional": false,
|
|
306
284
|
"docs": {
|
|
307
285
|
"tags": [{
|
|
308
|
-
"text": "
|
|
286
|
+
"text": "Setup progress",
|
|
309
287
|
"name": "uiName"
|
|
310
288
|
}],
|
|
311
|
-
"text": "
|
|
289
|
+
"text": ""
|
|
312
290
|
},
|
|
313
291
|
"attribute": "form-step",
|
|
314
292
|
"reflect": false,
|
|
@@ -326,10 +304,10 @@ export class TaxForm {
|
|
|
326
304
|
"optional": false,
|
|
327
305
|
"docs": {
|
|
328
306
|
"tags": [{
|
|
329
|
-
"text": "
|
|
307
|
+
"text": "Step 1 title",
|
|
330
308
|
"name": "uiName"
|
|
331
309
|
}],
|
|
332
|
-
"text": "
|
|
310
|
+
"text": ""
|
|
333
311
|
},
|
|
334
312
|
"attribute": "personal-information",
|
|
335
313
|
"reflect": false,
|
|
@@ -347,10 +325,10 @@ export class TaxForm {
|
|
|
347
325
|
"optional": false,
|
|
348
326
|
"docs": {
|
|
349
327
|
"tags": [{
|
|
350
|
-
"text": "
|
|
328
|
+
"text": "Continue button label",
|
|
351
329
|
"name": "uiName"
|
|
352
330
|
}],
|
|
353
|
-
"text": "
|
|
331
|
+
"text": ""
|
|
354
332
|
},
|
|
355
333
|
"attribute": "continue-button",
|
|
356
334
|
"reflect": false,
|
|
@@ -368,10 +346,13 @@ export class TaxForm {
|
|
|
368
346
|
"optional": false,
|
|
369
347
|
"docs": {
|
|
370
348
|
"tags": [{
|
|
371
|
-
"text": "Participant is partner title",
|
|
349
|
+
"text": "Participant is a partner alert title",
|
|
372
350
|
"name": "uiName"
|
|
351
|
+
}, {
|
|
352
|
+
"text": "textArea",
|
|
353
|
+
"name": "uiWidget"
|
|
373
354
|
}],
|
|
374
|
-
"text": "
|
|
355
|
+
"text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
|
|
375
356
|
},
|
|
376
357
|
"attribute": "is-partner-alert-header",
|
|
377
358
|
"reflect": false,
|
|
@@ -389,10 +370,13 @@ export class TaxForm {
|
|
|
389
370
|
"optional": false,
|
|
390
371
|
"docs": {
|
|
391
372
|
"tags": [{
|
|
392
|
-
"text": "Participant is partner description",
|
|
373
|
+
"text": "Participant is a partner alert description",
|
|
393
374
|
"name": "uiName"
|
|
375
|
+
}, {
|
|
376
|
+
"text": "textArea",
|
|
377
|
+
"name": "uiWidget"
|
|
394
378
|
}],
|
|
395
|
-
"text": "
|
|
379
|
+
"text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
|
|
396
380
|
},
|
|
397
381
|
"attribute": "is-partner-alert-description",
|
|
398
382
|
"reflect": false,
|
|
@@ -410,10 +394,13 @@ export class TaxForm {
|
|
|
410
394
|
"optional": false,
|
|
411
395
|
"docs": {
|
|
412
396
|
"tags": [{
|
|
413
|
-
"text": "
|
|
397
|
+
"text": "Form submission error message title",
|
|
414
398
|
"name": "uiName"
|
|
399
|
+
}, {
|
|
400
|
+
"text": "textArea",
|
|
401
|
+
"name": "uiWidget"
|
|
415
402
|
}],
|
|
416
|
-
"text": "
|
|
403
|
+
"text": "Part of the alert displayed at the top of the page."
|
|
417
404
|
},
|
|
418
405
|
"attribute": "general-error-title",
|
|
419
406
|
"reflect": false,
|
|
@@ -431,15 +418,39 @@ export class TaxForm {
|
|
|
431
418
|
"optional": false,
|
|
432
419
|
"docs": {
|
|
433
420
|
"tags": [{
|
|
434
|
-
"text": "
|
|
421
|
+
"text": "Form submission error message description",
|
|
435
422
|
"name": "uiName"
|
|
423
|
+
}, {
|
|
424
|
+
"text": "textArea",
|
|
425
|
+
"name": "uiWidget"
|
|
436
426
|
}],
|
|
437
|
-
"text": "
|
|
427
|
+
"text": "Part of the alert displayed at the top of the page."
|
|
438
428
|
},
|
|
439
429
|
"attribute": "general-error-description",
|
|
440
430
|
"reflect": false,
|
|
441
431
|
"defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
|
|
442
432
|
},
|
|
433
|
+
"allowBankingCollection": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"mutable": false,
|
|
436
|
+
"complexType": {
|
|
437
|
+
"original": "string",
|
|
438
|
+
"resolved": "string",
|
|
439
|
+
"references": {}
|
|
440
|
+
},
|
|
441
|
+
"required": false,
|
|
442
|
+
"optional": false,
|
|
443
|
+
"docs": {
|
|
444
|
+
"tags": [{
|
|
445
|
+
"text": "Terms and conditions checkbox",
|
|
446
|
+
"name": "uiName"
|
|
447
|
+
}],
|
|
448
|
+
"text": "Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}."
|
|
449
|
+
},
|
|
450
|
+
"attribute": "allow-banking-collection",
|
|
451
|
+
"reflect": false,
|
|
452
|
+
"defaultValue": "\"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information\""
|
|
453
|
+
},
|
|
443
454
|
"termsAndConditionsLabel": {
|
|
444
455
|
"type": "string",
|
|
445
456
|
"mutable": false,
|
|
@@ -452,14 +463,17 @@ export class TaxForm {
|
|
|
452
463
|
"optional": false,
|
|
453
464
|
"docs": {
|
|
454
465
|
"tags": [{
|
|
455
|
-
"text": "Terms and conditions
|
|
466
|
+
"text": "Terms and conditions text",
|
|
456
467
|
"name": "uiName"
|
|
468
|
+
}, {
|
|
469
|
+
"text": "textArea",
|
|
470
|
+
"name": "uiWidget"
|
|
457
471
|
}],
|
|
458
|
-
"text": "
|
|
472
|
+
"text": "The text link that appears in the terms and conditions checkbox"
|
|
459
473
|
},
|
|
460
474
|
"attribute": "terms-and-conditions-label",
|
|
461
475
|
"reflect": false,
|
|
462
|
-
"defaultValue": "\"
|
|
476
|
+
"defaultValue": "\"terms and conditions\""
|
|
463
477
|
},
|
|
464
478
|
"searchForCountryText": {
|
|
465
479
|
"type": "string",
|
|
@@ -473,7 +487,7 @@ export class TaxForm {
|
|
|
473
487
|
"optional": false,
|
|
474
488
|
"docs": {
|
|
475
489
|
"tags": [{
|
|
476
|
-
"text": "
|
|
490
|
+
"text": "Country field placeholder text",
|
|
477
491
|
"name": "uiName"
|
|
478
492
|
}],
|
|
479
493
|
"text": "Placeholder text displayed in the country search dropdown"
|
|
@@ -494,7 +508,7 @@ export class TaxForm {
|
|
|
494
508
|
"optional": false,
|
|
495
509
|
"docs": {
|
|
496
510
|
"tags": [{
|
|
497
|
-
"text": "
|
|
511
|
+
"text": "Currency field placeholder text",
|
|
498
512
|
"name": "uiName"
|
|
499
513
|
}],
|
|
500
514
|
"text": "Placeholder text displayed in the currency search dropdown"
|
|
@@ -515,10 +529,10 @@ export class TaxForm {
|
|
|
515
529
|
"optional": false,
|
|
516
530
|
"docs": {
|
|
517
531
|
"tags": [{
|
|
518
|
-
"text": "
|
|
532
|
+
"text": "Empty form field error message",
|
|
519
533
|
"name": "uiName"
|
|
520
534
|
}],
|
|
521
|
-
"text": "
|
|
535
|
+
"text": "Displayed under a field that is missing required information."
|
|
522
536
|
},
|
|
523
537
|
"attribute": "field-required-error",
|
|
524
538
|
"reflect": false,
|
|
@@ -536,10 +550,13 @@ export class TaxForm {
|
|
|
536
550
|
"optional": false,
|
|
537
551
|
"docs": {
|
|
538
552
|
"tags": [{
|
|
539
|
-
"text": "
|
|
553
|
+
"text": "Page load error message title",
|
|
540
554
|
"name": "uiName"
|
|
555
|
+
}, {
|
|
556
|
+
"text": "textArea",
|
|
557
|
+
"name": "uiWidget"
|
|
541
558
|
}],
|
|
542
|
-
"text": "
|
|
559
|
+
"text": "Part of the alert displayed at the top of the page."
|
|
543
560
|
},
|
|
544
561
|
"attribute": "loading-error-alert-header",
|
|
545
562
|
"reflect": false,
|
|
@@ -557,21 +574,45 @@ export class TaxForm {
|
|
|
557
574
|
"optional": false,
|
|
558
575
|
"docs": {
|
|
559
576
|
"tags": [{
|
|
560
|
-
"text": "
|
|
577
|
+
"text": "Page load error message description",
|
|
561
578
|
"name": "uiName"
|
|
579
|
+
}, {
|
|
580
|
+
"text": "textArea",
|
|
581
|
+
"name": "uiWidget"
|
|
562
582
|
}],
|
|
563
|
-
"text": "
|
|
583
|
+
"text": "Part of the alert displayed at the top of the page."
|
|
564
584
|
},
|
|
565
585
|
"attribute": "loading-error-alert-description",
|
|
566
586
|
"reflect": false,
|
|
567
587
|
"defaultValue": "\"Please refresh the page and try again. If this problem continues, contact Support.\""
|
|
568
588
|
},
|
|
589
|
+
"taxAndPayoutsDescription": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"mutable": false,
|
|
592
|
+
"complexType": {
|
|
593
|
+
"original": "string",
|
|
594
|
+
"resolved": "string",
|
|
595
|
+
"references": {}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": false,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [{
|
|
601
|
+
"text": "Page description",
|
|
602
|
+
"name": "uiName"
|
|
603
|
+
}],
|
|
604
|
+
"text": "Displayed at the top of the page on all set up steps."
|
|
605
|
+
},
|
|
606
|
+
"attribute": "tax-and-payouts-description",
|
|
607
|
+
"reflect": false,
|
|
608
|
+
"defaultValue": "\"Submit your tax documents and add your banking information to receive your rewards.\""
|
|
609
|
+
},
|
|
569
610
|
"demoData": {
|
|
570
611
|
"type": "unknown",
|
|
571
612
|
"mutable": false,
|
|
572
613
|
"complexType": {
|
|
573
614
|
"original": "DemoData<UseUserInfoFormResult>",
|
|
574
|
-
"resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; loadingError: boolean; loading: boolean; isPartner: boolean; isUser: boolean; formState: { errors: {}; firstName: string; lastName: string; email: string; countryCode: string; currency: string; }; }; refs?: { formRef: Ref<HTMLFormElement>; currencyRef: Ref<HTMLSelectElement>; }; data?: { currencies:
|
|
615
|
+
"resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; loadingError: boolean; loading: boolean; isPartner: boolean; isUser: boolean; formState: { errors: {}; firstName: string; lastName: string; email: string; countryCode: string; currency: string; }; }; refs?: { formRef: Ref<HTMLFormElement>; currencyRef: Ref<HTMLSelectElement>; }; data?: { currencies: { displayName: string; currencyCode: string; }[]; countries: TaxCountry[]; allCurrencies: { displayName: string; currencyCode: string; }[]; allCountries: TaxCountry[]; }; setStep?: (value: string) => void; onSubmit?: (event: any) => Promise<void>; }",
|
|
575
616
|
"references": {
|
|
576
617
|
"DemoData": {
|
|
577
618
|
"location": "import",
|
|
@@ -602,7 +643,7 @@ export class TaxForm {
|
|
|
602
643
|
}; }
|
|
603
644
|
}
|
|
604
645
|
function useDemoUserInfoForm(props) {
|
|
605
|
-
const
|
|
646
|
+
const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
|
|
606
647
|
return deepmerge({
|
|
607
648
|
setStep,
|
|
608
649
|
onSubmit: () => {
|
|
@@ -634,11 +675,11 @@ function useDemoUserInfoForm(props) {
|
|
|
634
675
|
loadingError: false,
|
|
635
676
|
formState: {
|
|
636
677
|
errors: {
|
|
637
|
-
email:
|
|
638
|
-
firstName:
|
|
639
|
-
lastName:
|
|
640
|
-
countryCode:
|
|
641
|
-
currency:
|
|
678
|
+
email: false,
|
|
679
|
+
firstName: false,
|
|
680
|
+
lastName: false,
|
|
681
|
+
countryCode: false,
|
|
682
|
+
currency: false,
|
|
642
683
|
},
|
|
643
684
|
},
|
|
644
685
|
},
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useEffect, useRef, useState } from "@saasquatch/universal-hooks";
|
|
1
|
+
import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hooks";
|
|
3
2
|
import jsonpointer from "jsonpointer";
|
|
4
|
-
import {
|
|
5
|
-
import { useParent, useParentValue } from "../../../utils/useParentState";
|
|
6
|
-
import { COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
3
|
+
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
7
4
|
import { objectIsFull } from "../utils";
|
|
5
|
+
import { useParent, useParentQueryValue, useParentValue } from "@saasquatch/component-boilerplate";
|
|
8
6
|
export function useUserInfoForm(props) {
|
|
9
|
-
var _a, _b, _c, _d
|
|
10
|
-
const user = useUserIdentity();
|
|
7
|
+
var _a, _b, _c, _d;
|
|
11
8
|
const currencyRef = useRef(undefined);
|
|
12
9
|
const formRef = useRef(null);
|
|
13
10
|
const context = useParentValue(TAX_FORM_CONTEXT_NAMESPACE);
|
|
11
|
+
const countries = useParentValue(SORTED_COUNTRIES_NAMESPACE);
|
|
14
12
|
const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
|
|
15
13
|
const [userFormContext, setUserFormContext] = useParent(USER_FORM_CONTEXT_NAMESPACE);
|
|
16
14
|
const { data, loading, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
17
|
-
const
|
|
18
|
-
const currencies =
|
|
19
|
-
const countries = (_a = countriesRes === null || countriesRes === void 0 ? void 0 : countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data;
|
|
15
|
+
const _currencies = useParentValue(CURRENCIES_NAMESPACE);
|
|
16
|
+
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
20
17
|
const [countrySearch, setCountrySearch] = useState("");
|
|
21
18
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
22
19
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
@@ -144,8 +141,8 @@ export function useUserInfoForm(props) {
|
|
|
144
141
|
disabled: loading,
|
|
145
142
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
146
143
|
loading: loading,
|
|
147
|
-
isPartner: !!((
|
|
148
|
-
isUser: !!((
|
|
144
|
+
isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
145
|
+
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
149
146
|
formState: {
|
|
150
147
|
...userFormContext,
|
|
151
148
|
errors: formErrors,
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { intl } from "../../global/global";
|
|
2
|
+
export function validTaxDocument(requiredType, currentType) {
|
|
3
|
+
if (requiredType === "W9" && currentType === "W9")
|
|
4
|
+
return true;
|
|
5
|
+
if ((requiredType === "W8BEN" || requiredType === "W8BENE") &&
|
|
6
|
+
(currentType === "W8BEN" || currentType === "W8BENE"))
|
|
7
|
+
return true;
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
2
10
|
export const objectIsFull = (obj) => {
|
|
3
11
|
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
4
12
|
};
|
|
@@ -22,4 +30,13 @@ export const getIsRequiredErrorMessage = (fieldName, errorMessage) => {
|
|
|
22
30
|
fieldName,
|
|
23
31
|
});
|
|
24
32
|
};
|
|
25
|
-
|
|
33
|
+
export function getCountryObj({ countryCode, locale, }) {
|
|
34
|
+
// @ts-ignore DisplayNames not in Intl type
|
|
35
|
+
const displayName = new Intl.DisplayNames([locale], {
|
|
36
|
+
type: "region",
|
|
37
|
+
}).of(countryCode);
|
|
38
|
+
return {
|
|
39
|
+
countryCode,
|
|
40
|
+
displayName,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -14,6 +14,7 @@ import editProfileTemplate from "../templates/EditProfile.html";
|
|
|
14
14
|
import activityTemplate from "../templates/Activity.html";
|
|
15
15
|
import resetPasswordEmailTemplate from "../templates/ResetPasswordEmail.html";
|
|
16
16
|
import verifyEmailTemplate from "../templates/VerifyEmail.html";
|
|
17
|
+
import taxPayoutReminderEmailTemplate from "../templates/taxPayoutReminderEmail.html";
|
|
17
18
|
import loginTemplate from "../templates/Login.html";
|
|
18
19
|
import registerTemplate from "../templates/Register.html";
|
|
19
20
|
import forgotPasswordTemplate from "../templates/ForgotPassword.html";
|
|
@@ -112,3 +113,7 @@ export const VerifyEmail = createHookStory(() => {
|
|
|
112
113
|
const { states, callbacks } = useTemplate(verifyEmailTemplate);
|
|
113
114
|
return h(TemplateView, { states: states, callbacks: callbacks });
|
|
114
115
|
});
|
|
116
|
+
export const taxPayoutReminderEmail = createHookStory(() => {
|
|
117
|
+
const { states, callbacks } = useTemplate(taxPayoutReminderEmailTemplate);
|
|
118
|
+
return h(TemplateView, { states: states, callbacks: callbacks });
|
|
119
|
+
});
|