@saasquatch/mint-components 1.12.0-2 → 1.12.0-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-13173901.js → ShadowViewAddon-040cffad.js} +38 -36
- package/dist/cjs/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/{global-e4ebdbcc.js → global-c3637175.js} +10 -161
- package/dist/cjs/{index.module-236d0403.js → index.module-b8d9d0ba.js} +228 -1392
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-5de6631a.js → re-render-5bde3d2e.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1175 -548
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +247 -127
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +150 -20
- package/dist/cjs/sqm-empty_4.cjs.entry.js +7 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- 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-dbba9bb4.js → sqm-invoice-table-view-4fcf021f.js} +155 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-navigation-sidebar-item-view-fc865ecf.js → sqm-navigation-sidebar-item-view-a2135064.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-4bc2760b.js → sqm-portal-email-verification-view-050dbe0f.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-cbab7c80.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -7
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +61 -62
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +117 -48
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +183 -107
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-23beb180.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-7c125c00.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/usePayoutStatus-8f924372.js +1045 -0
- package/dist/cjs/{useReferralTable-54d0ba70.js → useReferralTable-824ac152.js} +13 -14
- package/dist/cjs/{useRegistrationFormState-e7e820d0.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/useVerificationEmail-2eb28c2a.js +173 -0
- package/dist/cjs/{utilities-ac5b5f2c.js → utilities-f7de6c04.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +2 -1
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +7 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +30 -7
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +32 -26
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +10 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +37 -10
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +21 -44
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +579 -118
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +19 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +149 -3
- package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +128 -14
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +15 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +92 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +269 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +44 -18
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +6 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +55 -22
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +19 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/esm/{ShadowViewAddon-72e231a5.js → ShadowViewAddon-69b61037.js} +12 -10
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/{global-adae7650.js → global-6306a9b8.js} +10 -161
- package/dist/esm/{index.module-c0eb7dc2.js → index.module-6c840c4e.js} +222 -1389
- package/dist/esm/{keys-a1496e39.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-5882a144.js → re-render-1bcfd0de.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +835 -209
- package/dist/esm/sqm-big-stat_39.entry.js +192 -72
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +148 -18
- package/dist/esm/sqm-empty_4.entry.js +4 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-663674f2.js → sqm-invoice-table-view-b3127605.js} +155 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -4
- package/dist/esm/sqm-logout-current-user.entry.js +2 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-4715e546.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-598eb9a7.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-a0f6ad48.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +5 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -9
- package/dist/esm/sqm-scroll.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +115 -46
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
- package/dist/esm/sqm-widget-verification.entry.js +184 -108
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-fe94b660.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/usePayoutStatus-0bc0380f.js +1039 -0
- package/dist/esm/{useReferralTable-52008143.js → useReferralTable-f6ffa103.js} +4 -5
- package/dist/esm/{useRegistrationFormState-4cfd1a8d.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/useVerificationEmail-2a21d0e3.js +171 -0
- package/dist/esm/{utilities-98445452.js → utilities-443732be.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +1 -0
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/global-6306a9b8.js +285 -0
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/{keys-a1496e39.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-5882a144.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.entry.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-email-verification.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-b3127605.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-4715e546.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.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-email-verification-view-598eb9a7.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.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-a0f6ad48.js → sqm-portal-profile-view-15ddbec8.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.entry.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-scroll.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.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +1 -1
- package/dist/esm-es5/usePayoutStatus-0bc0380f.js +6 -0
- package/dist/esm-es5/useReferralTable-f6ffa103.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/useVerificationEmail-2a21d0e3.js +1 -0
- package/dist/esm-es5/{utilities-98445452.js → utilities-443732be.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-0ecb3019.js → p-0121e044.js} +1 -1
- package/dist/mint-components/p-012daf3c.entry.js +1 -0
- package/dist/mint-components/p-021ccc29.entry.js +25 -0
- package/dist/mint-components/{p-1e40967f.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-65a449de.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-14488d1c.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-78a831e0.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/p-0893073b.entry.js +1 -0
- package/dist/mint-components/p-0a94fe9f.system.entry.js +1 -0
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/p-156e37c2.system.entry.js +1 -0
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/{p-ee328054.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-4209cd94.js → p-1d27da33.js} +4 -4
- package/dist/mint-components/{p-5a2fd8e0.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0fba496.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-1602bf01.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2c342de3.system.entry.js +1 -0
- package/dist/mint-components/p-2e209454.entry.js +16 -0
- package/dist/mint-components/p-3007fb7d.system.entry.js +1 -0
- package/dist/mint-components/p-36e9296e.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3925bcd6.entry.js +13 -0
- package/dist/mint-components/{p-45d0b48a.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-423821b9.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/p-478a3755.entry.js +9 -0
- package/dist/mint-components/p-47b47e3b.js +31 -0
- package/dist/mint-components/{p-f338ef55.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/{p-34a87e67.system.js → p-4e373c3d.system.js} +1 -1
- package/dist/mint-components/{p-ab89b44a.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-ab7322f0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c0b7768.entry.js → p-5291891c.entry.js} +3 -3
- package/dist/mint-components/{p-4c9b6fbe.system.js → p-57dd28bd.system.js} +1 -1
- package/dist/mint-components/{p-34dab223.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-00ec17d4.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-a1f0d8ba.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/p-64491210.system.entry.js +1 -0
- package/dist/mint-components/{p-def70672.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-cafebf8a.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/{p-70886c65.system.entry.js → p-70af9ba2.system.entry.js} +1 -1
- package/dist/mint-components/{p-657b290b.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/p-7dd1ff31.system.entry.js +1 -0
- package/dist/mint-components/{p-d0c4f3bf.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdcd825e.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-45d6cde6.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8d554a89.system.js +1 -0
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-9379ee08.js +48 -0
- package/dist/mint-components/{p-d2a925d5.entry.js → p-94454880.entry.js} +1 -1
- package/dist/mint-components/{p-3ba349a3.entry.js → p-947fe79b.entry.js} +1 -1
- package/dist/mint-components/p-95bff95a.system.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/p-9bd417fd.entry.js +1 -0
- package/dist/mint-components/{p-c293f586.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-56b37aeb.entry.js → p-9d34f4f0.entry.js} +3 -3
- package/dist/mint-components/{p-64acc813.entry.js → p-9e0230c3.entry.js} +1 -1
- package/dist/mint-components/{p-8ccb4267.js → p-9eae245f.js} +30 -27
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-a2e1af83.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-15e01e7a.entry.js → p-a85f57bb.entry.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/p-a8c28561.system.js +1 -0
- package/dist/mint-components/p-a954c299.entry.js +205 -0
- package/dist/mint-components/{p-dce3d296.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/{p-d39da925.entry.js → p-b1e8a802.entry.js} +1 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-3da2b3cf.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bd1372d2.system.js +6 -0
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-3c46b3de.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-cadb8dba.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-18cd88c4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c1fa5e04.system.js +1 -0
- package/dist/mint-components/{p-7507d72b.js → p-c3b37bbf.js} +1 -1
- package/dist/mint-components/{p-ac69b460.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -0
- package/dist/mint-components/p-cb433855.system.entry.js +1 -0
- package/dist/mint-components/{p-6a70d2d6.entry.js → p-cd200c95.entry.js} +1 -1
- package/dist/mint-components/{p-06c561ea.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/p-d468925f.entry.js +1 -0
- package/dist/mint-components/p-d4877a65.system.entry.js +1 -0
- package/dist/mint-components/{p-0db003f7.js → p-d83b0cf3.js} +153 -153
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/p-def516b8.system.js +1 -0
- package/dist/mint-components/p-e01ac27c.system.js +1 -0
- package/dist/mint-components/{p-611a30f0.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/p-e12d3414.system.entry.js +1 -0
- package/dist/mint-components/{p-816fb64f.system.entry.js → p-ead27698.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/p-f1184442.js +1 -0
- package/dist/mint-components/p-f196d71a.entry.js +241 -0
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/p-f36e33ff.entry.js +13 -0
- package/dist/mint-components/p-f450654b.system.entry.js +1 -0
- package/dist/mint-components/p-f4cbbe47.entry.js +1 -0
- package/dist/mint-components/p-f531a5c9.system.entry.js +1 -0
- package/dist/mint-components/{p-b14a77e8.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-fda3d0ca.system.js → p-fc422446.system.js} +22 -22
- package/dist/mint-components/p-fd21ae8f.entry.js +1 -0
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +2 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -6
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +89 -1
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -0
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +46 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +12 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +15 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
- 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 +4 -0
- package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
- package/dist/types/components.d.ts +481 -83
- 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/index-56d1fa5b.js +0 -2227
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -356
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -33
- package/dist/cjs/useEmailVerification-33465f36.js +0 -155
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -27
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +0 -3
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm/sqm-code-verification.entry.js +0 -352
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -29
- package/dist/esm/useEmailVerification-8f2dc2bd.js +0 -152
- package/dist/esm-es5/ShadowViewAddon-72e231a5.js +0 -1
- package/dist/esm-es5/global-adae7650.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-c0eb7dc2.js +0 -53
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-663674f2.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/useChildElements-fe94b660.js +0 -1
- package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +0 -1
- package/dist/esm-es5/useReferralTable-52008143.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +0 -1
- package/dist/mint-components/p-0078bc76.system.js +0 -53
- package/dist/mint-components/p-18399da0.system.entry.js +0 -1
- package/dist/mint-components/p-1f02e20b.entry.js +0 -1
- package/dist/mint-components/p-253c87e1.system.entry.js +0 -1
- package/dist/mint-components/p-25a70095.system.entry.js +0 -1
- package/dist/mint-components/p-2632464d.entry.js +0 -1
- package/dist/mint-components/p-286190c4.system.entry.js +0 -1
- package/dist/mint-components/p-414b3b6c.system.entry.js +0 -1
- package/dist/mint-components/p-4185f6f5.system.entry.js +0 -1
- package/dist/mint-components/p-4d060f15.js +0 -1
- package/dist/mint-components/p-52241ba9.system.js +0 -1
- package/dist/mint-components/p-556753b2.js +0 -42
- package/dist/mint-components/p-55dcb6ff.system.js +0 -1
- package/dist/mint-components/p-65de8fb2.js +0 -1
- package/dist/mint-components/p-6cae44d7.js +0 -1
- package/dist/mint-components/p-6eede6e5.system.entry.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-78c1bd77.system.js +0 -1
- package/dist/mint-components/p-7c4c727c.system.entry.js +0 -1
- package/dist/mint-components/p-7e5f0292.system.entry.js +0 -1
- package/dist/mint-components/p-832eba3a.entry.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8b7d2f44.entry.js +0 -1
- package/dist/mint-components/p-8d696fc9.entry.js +0 -189
- package/dist/mint-components/p-8da20810.entry.js +0 -240
- package/dist/mint-components/p-8defb972.system.entry.js +0 -1
- package/dist/mint-components/p-99a09fab.entry.js +0 -9
- package/dist/mint-components/p-9cdaa099.entry.js +0 -1
- package/dist/mint-components/p-a80c8f5c.system.js +0 -1
- package/dist/mint-components/p-a9487844.system.entry.js +0 -1
- package/dist/mint-components/p-b28df069.js +0 -1
- package/dist/mint-components/p-b4771476.entry.js +0 -1
- package/dist/mint-components/p-c9ca8473.system.entry.js +0 -1
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-d3293ac3.entry.js +0 -11
- package/dist/mint-components/p-d4138847.system.entry.js +0 -1
- package/dist/mint-components/p-d70bfe30.entry.js +0 -8
- package/dist/mint-components/p-d7b701a7.entry.js +0 -1
- package/dist/mint-components/p-d90ef1da.system.entry.js +0 -1
- package/dist/mint-components/p-e05ff098.system.js +0 -1
- package/dist/mint-components/p-e4c3817a.system.entry.js +0 -1
- package/dist/mint-components/p-e7797040.entry.js +0 -1
- package/dist/mint-components/p-e810da97.entry.js +0 -1
- package/dist/mint-components/p-e82eec3c.entry.js +0 -13
- package/dist/mint-components/p-e8bfd924.system.entry.js +0 -1
- package/dist/mint-components/p-e8fcaaa2.entry.js +0 -13
- package/dist/mint-components/p-ef49d744.entry.js +0 -1
- package/dist/mint-components/p-f5f0fc0e.entry.js +0 -1
- package/dist/mint-components/p-faf019cf.system.js +0 -1
- package/dist/mint-components/p-fcb224ab.js +0 -25
- package/dist/mint-components/p-fe8e1071.entry.js +0 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -1
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index
|
|
4
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
5
|
-
const index_module = require('./index.module-
|
|
6
|
-
const reRender = require('./re-render-
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
8
|
-
const index = require('./index-56d1fa5b.js');
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
5
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
6
|
+
const reRender = require('./re-render-5bde3d2e.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-410d2435.js');
|
|
9
8
|
|
|
10
9
|
const debug = stencilHooks_module.browser("sq:useReferralTable");
|
|
11
10
|
const CSS_NAMESPACE = "sqm-referral-table";
|
|
12
|
-
const GET_REFERRER_DATA =
|
|
11
|
+
const GET_REFERRER_DATA = index_module.dist.gql `
|
|
13
12
|
query getReferrals(
|
|
14
13
|
$programId: ID
|
|
15
14
|
$rewardFilter: RewardFilterInput
|
|
@@ -78,7 +77,7 @@ const GET_REFERRER_DATA = index.dist.gql `
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
`;
|
|
81
|
-
const GET_REFERRAL_DATA =
|
|
80
|
+
const GET_REFERRAL_DATA = index_module.dist.gql `
|
|
82
81
|
query getReferrals(
|
|
83
82
|
$limit: Int!
|
|
84
83
|
$offset: Int!
|
|
@@ -215,7 +214,7 @@ const GET_REFERRAL_DATA = index.dist.gql `
|
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
216
|
`;
|
|
218
|
-
const GET_IMPACT_TAX =
|
|
217
|
+
const GET_IMPACT_TAX = index_module.dist.gql `
|
|
219
218
|
query getImpactTax {
|
|
220
219
|
viewer {
|
|
221
220
|
... on User {
|
|
@@ -312,12 +311,12 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
312
311
|
// show the referrer row before any other rows
|
|
313
312
|
let referrerRow;
|
|
314
313
|
if (showReferrerRow && states.currentPage === 0) {
|
|
315
|
-
const referrerPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderReferrerCell(referrerData, locale, index
|
|
314
|
+
const referrerPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderReferrerCell(referrerData, locale, index.h)));
|
|
316
315
|
referrerRow = await Promise.all(referrerPromise);
|
|
317
316
|
}
|
|
318
317
|
// get the column cells (renderCell is asynchronous)
|
|
319
318
|
const cellsPromise = data === null || data === void 0 ? void 0 : data.map(async (r) => {
|
|
320
|
-
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(r, { locale, taxConnection }, index
|
|
319
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(r, { locale, taxConnection }, index.h)));
|
|
321
320
|
const cells = (await Promise.all(cellPromise));
|
|
322
321
|
return cells;
|
|
323
322
|
});
|
|
@@ -405,7 +404,7 @@ async function tryMethod(c, callback) {
|
|
|
405
404
|
debug("label promise failed", e);
|
|
406
405
|
}
|
|
407
406
|
debug("label promise failed", e);
|
|
408
|
-
return index
|
|
407
|
+
return index.h("span", null);
|
|
409
408
|
}
|
|
410
409
|
try {
|
|
411
410
|
return await renderPromise;
|
|
@@ -415,8 +414,8 @@ async function tryMethod(c, callback) {
|
|
|
415
414
|
// This should not happen so we fail fast
|
|
416
415
|
debug("Error rendering label", e);
|
|
417
416
|
const userError = generateUserError(e);
|
|
418
|
-
return (index
|
|
419
|
-
index
|
|
417
|
+
return (index.h("details", null,
|
|
418
|
+
index.h("summary", null, "Error"),
|
|
420
419
|
userError));
|
|
421
420
|
}
|
|
422
421
|
}
|
package/dist/cjs/{useRegistrationFormState-e7e820d0.js → useRegistrationFormState-f9ce55be.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
4
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
function useRegistrationFormState(formState) {
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
4
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
5
|
+
|
|
6
|
+
const UserLookupQuery = index_module.dist.gql `
|
|
7
|
+
query userLookup {
|
|
8
|
+
viewer {
|
|
9
|
+
... on User {
|
|
10
|
+
id
|
|
11
|
+
accountId
|
|
12
|
+
email
|
|
13
|
+
impactConnection {
|
|
14
|
+
user {
|
|
15
|
+
id
|
|
16
|
+
email
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const ParticipantVerificationEmailMutation = index_module.dist.gql `
|
|
24
|
+
mutation requestUserEmailVerification($user: UserIdInput!) {
|
|
25
|
+
requestUserEmailVerification(user: $user) {
|
|
26
|
+
success
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const ImpactVerificationEmailMutation = index_module.dist.gql `
|
|
31
|
+
mutation requestImpactPublisherEmail2FA($user: UserIdInput!) {
|
|
32
|
+
requestImpactPublisherEmail2FA(user: $user) {
|
|
33
|
+
success
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const VerifyUserEmailMutation = index_module.dist.gql `
|
|
38
|
+
mutation verifyUserEmail($user: UserIdInput!, $code: String!) {
|
|
39
|
+
verifyUserEmail(user: $user, code: $code) {
|
|
40
|
+
id
|
|
41
|
+
accountId
|
|
42
|
+
email
|
|
43
|
+
emailVerified
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const SubmitImpactCodeMutation = index_module.dist.gql `
|
|
48
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
49
|
+
$user: UserIdInput!
|
|
50
|
+
$code: String!
|
|
51
|
+
) {
|
|
52
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
53
|
+
verifiedEmail
|
|
54
|
+
accessKey
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
// ! It's important when using this hook to ensure initialisation
|
|
59
|
+
// ! is done before calling any mutations
|
|
60
|
+
function useVerificationEmail() {
|
|
61
|
+
const userIdentity = index_module.K();
|
|
62
|
+
const [verificationEmail, setVerificationEmail] = stencilHooks_module.useState(null);
|
|
63
|
+
const [hasEmails, setHasEmails] = stencilHooks_module.useState({
|
|
64
|
+
participant: false,
|
|
65
|
+
impact: false,
|
|
66
|
+
});
|
|
67
|
+
const [fetch] = index_module.an(UserLookupQuery);
|
|
68
|
+
// Send mutations
|
|
69
|
+
const [sendParticipantEmail, { loading: participantEmailLoading, errors: participantEmailErrors },] = index_module.xe(ParticipantVerificationEmailMutation);
|
|
70
|
+
const [sendImpactEmail, { loading: impactEmailLoading, errors: impactEmailErrors },] = index_module.xe(ImpactVerificationEmailMutation);
|
|
71
|
+
const sendLoading = participantEmailLoading || impactEmailLoading;
|
|
72
|
+
const sendErrors = participantEmailErrors || impactEmailErrors;
|
|
73
|
+
// Verification mutations
|
|
74
|
+
const [verifyUserEmail, { loading: verifyMutationLoading, errors: verifyMutationErrors },] = index_module.xe(VerifyUserEmailMutation);
|
|
75
|
+
const [submitImpactCode, { loading: submitImpactCodeLoading, errors: submitImpactCodeErrors },] = index_module.xe(SubmitImpactCodeMutation);
|
|
76
|
+
const verifyLoading = verifyMutationLoading || submitImpactCodeLoading;
|
|
77
|
+
const verifyErrors = verifyMutationErrors || submitImpactCodeErrors;
|
|
78
|
+
const [initialized, setInitialized] = stencilHooks_module.useState(false);
|
|
79
|
+
const initialise = async () => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
81
|
+
try {
|
|
82
|
+
const lookup = await fetch({});
|
|
83
|
+
if (!lookup || lookup instanceof Error)
|
|
84
|
+
throw new Error();
|
|
85
|
+
setHasEmails({
|
|
86
|
+
participant: !!((_a = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _a === void 0 ? void 0 : _a.email),
|
|
87
|
+
impact: !!((_d = (_c = (_b = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.email),
|
|
88
|
+
});
|
|
89
|
+
setVerificationEmail(((_g = (_f = (_e = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.user) === null || _g === void 0 ? void 0 : _g.email) || ((_h = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _h === void 0 ? void 0 : _h.email) ||
|
|
90
|
+
null);
|
|
91
|
+
setInitialized(true);
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
console.error("Could not initialise verification", e);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const sendVerificationEmail = async () => {
|
|
98
|
+
let result = null;
|
|
99
|
+
if (!initialized)
|
|
100
|
+
return result;
|
|
101
|
+
if (!hasEmails.participant && !hasEmails.impact)
|
|
102
|
+
return result;
|
|
103
|
+
try {
|
|
104
|
+
const request = hasEmails.impact ? sendImpactEmail : sendParticipantEmail;
|
|
105
|
+
const res = await request({
|
|
106
|
+
user: {
|
|
107
|
+
id: userIdentity.id,
|
|
108
|
+
accountId: userIdentity.accountId,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
if (res instanceof Error || !res)
|
|
112
|
+
throw new Error();
|
|
113
|
+
result = hasEmails.impact
|
|
114
|
+
? res.requestImpactPublisherEmail2FA
|
|
115
|
+
: res.requestUserEmailVerification;
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
console.error("Could not send verification email", e);
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const verifyVerificationEmail = async (code) => {
|
|
125
|
+
var _a;
|
|
126
|
+
let result = null;
|
|
127
|
+
if (!initialized)
|
|
128
|
+
return result;
|
|
129
|
+
if (!hasEmails.participant && !hasEmails.impact)
|
|
130
|
+
return result;
|
|
131
|
+
try {
|
|
132
|
+
const request = hasEmails.impact ? submitImpactCode : verifyUserEmail;
|
|
133
|
+
const res = await request({
|
|
134
|
+
user: {
|
|
135
|
+
id: userIdentity.id,
|
|
136
|
+
accountId: userIdentity.accountId,
|
|
137
|
+
},
|
|
138
|
+
code,
|
|
139
|
+
});
|
|
140
|
+
if (res instanceof Error || !res)
|
|
141
|
+
throw new Error();
|
|
142
|
+
result = {
|
|
143
|
+
success: true,
|
|
144
|
+
accessKey: hasEmails.impact
|
|
145
|
+
? (_a = res.submitImpactPublisherEmail2FACode) === null || _a === void 0 ? void 0 : _a.accessKey : undefined,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
catch (e) {
|
|
149
|
+
console.error("Could not verify email", e);
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
stencilHooks_module.useEffect(() => {
|
|
156
|
+
if (!initialized)
|
|
157
|
+
initialise();
|
|
158
|
+
}, []);
|
|
159
|
+
return {
|
|
160
|
+
initialized,
|
|
161
|
+
verificationEmail,
|
|
162
|
+
send: [
|
|
163
|
+
sendVerificationEmail,
|
|
164
|
+
{ loading: sendLoading, errors: sendErrors },
|
|
165
|
+
],
|
|
166
|
+
verify: [
|
|
167
|
+
verifyVerificationEmail,
|
|
168
|
+
{ loading: verifyLoading, errors: verifyErrors },
|
|
169
|
+
],
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
exports.useVerificationEmail = useVerificationEmail;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
4
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
5
5
|
|
|
6
6
|
// import { IntlMessageFormat } from 'intl-messageformat';
|
|
7
7
|
function isMobile(breakPoint) {
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
"./components/sqm-timeline/sqm-timeline.js",
|
|
109
109
|
"./components/sqm-titled-section/sqm-titled-section.js",
|
|
110
110
|
"./components/sqm-user-name/sqm-user-name.js",
|
|
111
|
-
"./components/sqm-widget-verification/sqm-widget-verification-
|
|
111
|
+
"./components/sqm-widget-verification/sqm-widget-verification-controller.js",
|
|
112
112
|
"./components/sqm-widget-verification/sqm-widget-verification.js",
|
|
113
|
-
"./components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js",
|
|
114
113
|
"./components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js",
|
|
114
|
+
"./components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js",
|
|
115
115
|
"./components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js",
|
|
116
116
|
"./components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js"
|
|
117
117
|
],
|
|
@@ -709,9 +709,12 @@ const payoutBalanceQuery = () => {
|
|
|
709
709
|
query payoutBalance {
|
|
710
710
|
viewer: viewer {
|
|
711
711
|
... on User {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
712
|
+
id
|
|
713
|
+
impactConnection {
|
|
714
|
+
publisher {
|
|
715
|
+
payoutsAccount {
|
|
716
|
+
balance
|
|
717
|
+
}
|
|
715
718
|
}
|
|
716
719
|
}
|
|
717
720
|
}
|
|
@@ -6,3 +6,10 @@ const defaultProps = {
|
|
|
6
6
|
payoutSettingsComplete: true,
|
|
7
7
|
};
|
|
8
8
|
export const CompletedTaxForm = () => (h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } }));
|
|
9
|
+
export const CompletedTaxFormWithStatsContainer = () => (h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
10
|
+
h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
11
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
12
|
+
h("p", null, "Referrals")),
|
|
13
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
14
|
+
h("p", null, "Cash Balance"))),
|
|
15
|
+
h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } })));
|
package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js
CHANGED
|
@@ -3,6 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
const style = {
|
|
4
4
|
Wrapper: {
|
|
5
5
|
maxWidth: "200px",
|
|
6
|
+
marginLeft: "auto",
|
|
6
7
|
},
|
|
7
8
|
PayoutButtonDescription: {
|
|
8
9
|
color: "var(--sl-color-neutral-500)",
|
|
@@ -16,7 +17,7 @@ export function PayoutButtonScrollView(props) {
|
|
|
16
17
|
const { text, states } = props;
|
|
17
18
|
if (!states.payoutSettingsComplete)
|
|
18
19
|
return h("div", null);
|
|
19
|
-
return (h("div", {
|
|
20
|
+
return (h("div", { class: sheet.classes.Wrapper },
|
|
20
21
|
h("style", { type: "text/css" }, styleString),
|
|
21
22
|
h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
22
23
|
h("p", { class: sheet.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
3
4
|
import { getProps } from "../../utils/utils";
|
|
4
5
|
import { PayoutButtonScrollView, } from "./sqm-payout-button-scroll-view";
|
|
5
6
|
import deepmerge from "deepmerge";
|
|
7
|
+
import { usePayoutButton } from "./usePayoutButton";
|
|
6
8
|
/**
|
|
7
9
|
* @uiName Payout Button Scroll
|
|
8
10
|
*/
|
|
@@ -25,7 +27,9 @@ export class PayoutButtonScroll {
|
|
|
25
27
|
return getProps(this);
|
|
26
28
|
}
|
|
27
29
|
render() {
|
|
28
|
-
const props =
|
|
30
|
+
const props = isDemo()
|
|
31
|
+
? useDemoPayoutButtonScroll(this)
|
|
32
|
+
: usePayoutButton(this);
|
|
29
33
|
return h(PayoutButtonScrollView, Object.assign({}, props));
|
|
30
34
|
}
|
|
31
35
|
static get is() { return "sqm-payout-button-scroll"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
import { useQuery } from "@saasquatch/component-boilerplate";
|
|
3
|
-
import { useEffect
|
|
3
|
+
import { useEffect } from "@saasquatch/universal-hooks";
|
|
4
4
|
const GET_PAYOUT_DETAILS = gql `
|
|
5
5
|
query getPayoutDetails {
|
|
6
6
|
user: viewer {
|
|
@@ -21,15 +21,8 @@ const GET_PAYOUT_DETAILS = gql `
|
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
23
|
export function usePayoutButton(props) {
|
|
24
|
+
var _a, _b, _c;
|
|
24
25
|
const { data, refetch } = useQuery(GET_PAYOUT_DETAILS, {});
|
|
25
|
-
const [completed, setCompleted] = useState(false);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
var _a, _b, _c;
|
|
28
|
-
if (!data)
|
|
29
|
-
return;
|
|
30
|
-
const hasCompleted = (_c = (_b = (_a = data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.payoutAccount;
|
|
31
|
-
setCompleted(hasCompleted);
|
|
32
|
-
}, [data]);
|
|
33
26
|
useEffect(() => {
|
|
34
27
|
const cb = () => refetch();
|
|
35
28
|
window.addEventListener("sqm:tax-form-updated", cb);
|
|
@@ -37,7 +30,7 @@ export function usePayoutButton(props) {
|
|
|
37
30
|
}, []);
|
|
38
31
|
return {
|
|
39
32
|
states: {
|
|
40
|
-
payoutSettingsComplete:
|
|
33
|
+
payoutSettingsComplete: !!((_c = (_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) === null || _c === void 0 ? void 0 : _c.payoutsAccount),
|
|
41
34
|
},
|
|
42
35
|
text: props.getTextProps(),
|
|
43
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { GenericTableView } from "../../tables/GenericTableView";
|
|
3
|
-
import { AvailableNoExpiry, PendingNoUnpend, Redeemed, Denied, PendingReview, PayoutSent, PayoutFailed, PendingNewTaxForm, PendingPartnerCreation, PendingTaxReview, PendingTaxSubmission, } from "./ReferralTableRewardsCell.stories";
|
|
3
|
+
import { AvailableNoExpiry, PendingNoUnpend, Redeemed, Denied, PendingReview, PayoutSent, PayoutFailed, PendingNewTaxForm, PendingPartnerCreation, PendingTaxReview, PendingTaxSubmission, PayoutCancelled, } from "./ReferralTableRewardsCell.stories";
|
|
4
4
|
import { DateCell, PendingReview as PendingReviewStatus, Pending as PendingStatus, Denied as DeniedStatus, Converted as ConvertedStatus, InProgress, } from "./ReferralTableCell.stories";
|
|
5
5
|
import scenario from "./referral-table.feature";
|
|
6
6
|
export default {
|
|
@@ -132,6 +132,12 @@ const simpleUserTableProps = {
|
|
|
132
132
|
h(DateCell, null),
|
|
133
133
|
h(PayoutFailed, null),
|
|
134
134
|
],
|
|
135
|
+
[
|
|
136
|
+
h("sqm-referral-table-user-cell", { name: "Sarah Joseph" }),
|
|
137
|
+
h(ConvertedStatus, null),
|
|
138
|
+
h(DateCell, null),
|
|
139
|
+
h(PayoutCancelled, null),
|
|
140
|
+
],
|
|
135
141
|
[
|
|
136
142
|
h("sqm-referral-table-user-cell", { name: "Sarah Joseph" }),
|
|
137
143
|
h(ConvertedStatus, null),
|
|
@@ -126,6 +126,9 @@ const deniedReward = {
|
|
|
126
126
|
const payoutFailedReward = {
|
|
127
127
|
statuses: ["PAYOUT_FAILED"],
|
|
128
128
|
};
|
|
129
|
+
const payoutCancelledReward = {
|
|
130
|
+
statuses: ["PAYOUT_CANCELLED"],
|
|
131
|
+
};
|
|
129
132
|
const pendingReviewReward = {
|
|
130
133
|
statuses: ["PENDING_REVIEW"],
|
|
131
134
|
};
|
|
@@ -205,8 +208,8 @@ function getMonths() {
|
|
|
205
208
|
function getYears() {
|
|
206
209
|
return DateTime.now().toMillis() + 200000000000;
|
|
207
210
|
}
|
|
208
|
-
const statusText = "{status, select, AVAILABLE {Available}
|
|
209
|
-
const statusLongText = "{status, select, AVAILABLE {Reward expiring on}
|
|
211
|
+
const statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
212
|
+
const statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
210
213
|
export const PendingNoUnpend = () => {
|
|
211
214
|
return (h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...pendingReward, ...nullScheduledFor }], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
212
215
|
};
|
|
@@ -289,8 +292,7 @@ export const PayoutFailed = () => {
|
|
|
289
292
|
},
|
|
290
293
|
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
291
294
|
};
|
|
292
|
-
|
|
293
|
-
export const PayoutCancelled = () => {
|
|
295
|
+
export const PayoutDenied = () => {
|
|
294
296
|
return (h("sqm-referral-table-rewards-cell", { rewards: [
|
|
295
297
|
{
|
|
296
298
|
...cashPayoutSentReward,
|
|
@@ -300,6 +302,16 @@ export const PayoutCancelled = () => {
|
|
|
300
302
|
},
|
|
301
303
|
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
302
304
|
};
|
|
305
|
+
export const PayoutCancelled = () => {
|
|
306
|
+
return (h("sqm-referral-table-rewards-cell", { rewards: [
|
|
307
|
+
{
|
|
308
|
+
...cashPayoutSentReward,
|
|
309
|
+
...payoutCancelledReward,
|
|
310
|
+
datePayoutRetried: getDays(),
|
|
311
|
+
dateGiven: null,
|
|
312
|
+
},
|
|
313
|
+
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
314
|
+
};
|
|
303
315
|
export const PendingReview = () => {
|
|
304
316
|
return (h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...pendingReviewReward }], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
305
317
|
};
|
|
@@ -263,24 +263,16 @@ export const StatusCellExpired = () => {
|
|
|
263
263
|
const pending = {
|
|
264
264
|
statuses: ["PENDING"],
|
|
265
265
|
};
|
|
266
|
-
// const pendingTaxReview = {
|
|
267
|
-
// statuses: ["PENDING_TAX_REVIEW"],
|
|
268
|
-
// };
|
|
269
|
-
// const pendingNewTaxForm = {
|
|
270
|
-
// statuses: ["PENDING_NEW_TAX_FORM"],
|
|
271
|
-
// };
|
|
272
|
-
// const pendingTaxSubmission = {
|
|
273
|
-
// statuses: ["PENDING_TAX_SUBMISSION"],
|
|
274
|
-
// };
|
|
275
|
-
// const pendingPartnerCreation = {
|
|
276
|
-
// statuses: ["PENDING_PARTNER_CREATION"],
|
|
277
|
-
// };
|
|
278
266
|
const payoutSent = {
|
|
279
267
|
statuses: ["PAYOUT_SENT"],
|
|
280
268
|
};
|
|
281
269
|
const payoutFailed = {
|
|
282
270
|
statuses: ["PAYOUT_FAILED"],
|
|
283
271
|
};
|
|
272
|
+
const payoutCancelled = {
|
|
273
|
+
statuses: ["PAYOUT_CANCELLED"],
|
|
274
|
+
dateCancelled: 1355612521321,
|
|
275
|
+
};
|
|
284
276
|
const us_tax = {
|
|
285
277
|
pendingReasons: ["US_TAX"],
|
|
286
278
|
};
|
|
@@ -342,6 +334,9 @@ export const StatusCellPayoutSent = () => {
|
|
|
342
334
|
export const StatusCellPayoutFailed = () => {
|
|
343
335
|
return (h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: { ...rewardsData, ...payoutFailed } }));
|
|
344
336
|
};
|
|
337
|
+
export const StatusCellPayoutCancelled = () => {
|
|
338
|
+
return (h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: { ...rewardsData, ...payoutCancelled } }));
|
|
339
|
+
};
|
|
345
340
|
export const StatusCellPendingWithLongText = () => {
|
|
346
341
|
return (h("div", { style: { width: "200px" } },
|
|
347
342
|
h("sqm-rewards-table-status-cell", { statusText: "Pending for 300,000,000 months and some change", reward: { ...rewardsData, ...pending } })));
|
|
@@ -3,12 +3,19 @@ export default {
|
|
|
3
3
|
title: "Components/Widget Code Verification",
|
|
4
4
|
};
|
|
5
5
|
const defaultProps = {
|
|
6
|
+
initialiseLoading: false,
|
|
6
7
|
email: "testemail@example.com",
|
|
7
8
|
loading: false,
|
|
8
9
|
verifyFailed: false,
|
|
9
10
|
emailResent: false,
|
|
10
11
|
};
|
|
11
12
|
export const Default = () => (h("sqm-code-verification", { demoData: { states: defaultProps } }));
|
|
13
|
+
export const InitialLoading = () => (h("sqm-code-verification", { demoData: {
|
|
14
|
+
states: {
|
|
15
|
+
...defaultProps,
|
|
16
|
+
initialiseLoading: true,
|
|
17
|
+
},
|
|
18
|
+
} }));
|
|
12
19
|
export const Loading = () => (h("sqm-code-verification", { demoData: {
|
|
13
20
|
states: {
|
|
14
21
|
...defaultProps,
|
|
@@ -8,7 +8,7 @@ const style = {
|
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "column",
|
|
10
10
|
gap: "var(--sl-spacing-medium)",
|
|
11
|
-
maxWidth: "
|
|
11
|
+
maxWidth: "550px",
|
|
12
12
|
},
|
|
13
13
|
HeaderContainer: {
|
|
14
14
|
display: "flex",
|
|
@@ -122,7 +122,7 @@ export function WidgetCodeVerificationView(props) {
|
|
|
122
122
|
h("sl-input", { class: inputClass, name: "code" }),
|
|
123
123
|
h("sl-input", { class: inputClass, name: "code" })),
|
|
124
124
|
states.verifyFailed && (h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
125
|
-
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
125
|
+
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
126
126
|
h("div", { class: sheet.classes.FooterContainer },
|
|
127
127
|
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
128
128
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
1
|
+
import { isDemo, useSetParent } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useState, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
5
|
import { getProps } from "../../../utils/utils";
|
|
6
6
|
import { WidgetCodeVerificationView, } from "./sqm-code-verification-view";
|
|
7
7
|
import { useWidgetCodeVerification } from "./useCodeVerification";
|
|
8
|
+
import { VERIFICATION_PARENT_NAMESPACE } from "../keys";
|
|
8
9
|
export class WidgetCodeVerification {
|
|
9
10
|
constructor() {
|
|
10
11
|
/**
|
|
@@ -232,7 +233,7 @@ export class WidgetCodeVerification {
|
|
|
232
233
|
"mutable": false,
|
|
233
234
|
"complexType": {
|
|
234
235
|
"original": "DemoData<WidgetCodeVerificationViewProps>",
|
|
235
|
-
"resolved": "{ states?: { loading: boolean; email: string; verifyFailed?: boolean; emailResent: boolean; }; refs?: { codeWrapperRef: any; }; }",
|
|
236
|
+
"resolved": "{ states?: { initialiseLoading: boolean; loading: boolean; email: string; verifyFailed?: boolean; emailResent: boolean; }; refs?: { codeWrapperRef: any; }; }",
|
|
236
237
|
"references": {
|
|
237
238
|
"DemoData": {
|
|
238
239
|
"location": "import",
|
|
@@ -256,22 +257,44 @@ export class WidgetCodeVerification {
|
|
|
256
257
|
}],
|
|
257
258
|
"text": ""
|
|
258
259
|
}
|
|
260
|
+
},
|
|
261
|
+
"onVerification": {
|
|
262
|
+
"type": "unknown",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "(token: string) => any",
|
|
266
|
+
"resolved": "(token: string) => any",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": true,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [{
|
|
273
|
+
"text": undefined,
|
|
274
|
+
"name": "undocumented"
|
|
275
|
+
}],
|
|
276
|
+
"text": ""
|
|
277
|
+
}
|
|
259
278
|
}
|
|
260
279
|
}; }
|
|
261
280
|
}
|
|
262
281
|
function useDemoWidgetCodeVerification(props) {
|
|
282
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
283
|
+
const setVerifiedContext = useSetParent(VERIFICATION_PARENT_NAMESPACE);
|
|
263
284
|
return deepmerge({
|
|
264
285
|
states: {
|
|
265
286
|
loading: false,
|
|
266
|
-
email: "",
|
|
267
|
-
|
|
287
|
+
email: "test@example.com",
|
|
288
|
+
emailResent,
|
|
289
|
+
resendError: true,
|
|
290
|
+
verifyFailed: true,
|
|
268
291
|
},
|
|
269
292
|
refs: {
|
|
270
293
|
codeWrapperRef: () => { },
|
|
271
294
|
},
|
|
272
295
|
callbacks: {
|
|
273
|
-
resendEmail: async () =>
|
|
274
|
-
submitCode: async () =>
|
|
296
|
+
resendEmail: async () => setEmailResent(true),
|
|
297
|
+
submitCode: async () => setVerifiedContext(true),
|
|
275
298
|
},
|
|
276
299
|
text: props.getTextProps(),
|
|
277
300
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|