@saasquatch/mint-components 1.12.0-0 → 1.12.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-13173901.js} +33 -32
- package/dist/cjs/{global-c3637175.js → global-e4ebdbcc.js} +161 -10
- package/dist/cjs/index-56d1fa5b.js +2227 -0
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-236d0403.js} +1392 -228
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-5de6631a.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 +409 -440
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +127 -73
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +38 -34
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +34 -10
- package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
- 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-ce9a34ac.js → sqm-invoice-table-view-dbba9bb4.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-fc865ecf.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-050dbe0f.js → sqm-portal-email-verification-view-4bc2760b.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-d97086bc.js → sqm-portal-profile-view-cbab7c80.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
- 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 +17 -16
- 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 +62 -61
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -24
- 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-internal.cjs.entry.js +3 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-23beb180.js} +2 -2
- package/dist/cjs/useEmailVerification-33465f36.js +155 -0
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-7c125c00.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-54d0ba70.js} +14 -13
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-e7e820d0.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-ac5b5f2c.js} +2 -2
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +19 -9
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +6 -58
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -7
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +59 -7
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +88 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +29 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +56 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -79
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-72e231a5.js} +7 -6
- package/dist/esm/{global-6306a9b8.js → global-adae7650.js} +161 -10
- package/dist/esm/index-0c7b14c5.js +2225 -0
- package/dist/esm/{index.module-6c840c4e.js → index.module-c0eb7dc2.js} +1389 -222
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm/{re-render-1bcfd0de.js → re-render-5882a144.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +10 -41
- package/dist/esm/sqm-big-stat_39.entry.js +72 -18
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +36 -32
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +33 -9
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- 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-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
- package/dist/esm/sqm-logout-current-user.entry.js +3 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.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-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.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-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
- 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 +9 -8
- 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 +9 -8
- package/dist/esm/sqm-scroll.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +44 -22
- 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-internal.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -2
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-fe94b660.js} +2 -2
- package/dist/esm/useEmailVerification-8f2dc2bd.js +152 -0
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-52008143.js} +5 -4
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-4cfd1a8d.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-98445452.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-72e231a5.js +1 -0
- package/dist/esm-es5/global-adae7650.js +285 -0
- package/dist/esm-es5/index-0c7b14c5.js +1 -0
- package/dist/esm-es5/index.module-c0eb7dc2.js +53 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-5882a144.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_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.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-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
- 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-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.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-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.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-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.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-internal.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm-es5/useChildElements-fe94b660.js +1 -0
- package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +1 -1
- package/dist/esm-es5/useReferralTable-52008143.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-98445452.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-0078bc76.system.js +53 -0
- package/dist/mint-components/{p-5becb2ff.system.js → p-00ec17d4.system.js} +1 -1
- package/dist/mint-components/{p-cd44de66.system.js → p-06c561ea.system.js} +1 -1
- package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
- package/dist/mint-components/{p-d83b0cf3.js → p-0db003f7.js} +153 -153
- package/dist/mint-components/{p-0121e044.js → p-0ecb3019.js} +1 -1
- package/dist/mint-components/{p-04ced592.system.entry.js → p-14488d1c.system.entry.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a85f57bb.entry.js → p-15e01e7a.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-1602bf01.js} +1 -1
- package/dist/mint-components/p-18399da0.system.entry.js +1 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-18cd88c4.system.entry.js} +1 -1
- package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-1e40967f.entry.js} +1 -1
- package/dist/mint-components/p-1f02e20b.entry.js +1 -0
- package/dist/mint-components/p-253c87e1.system.entry.js +1 -0
- package/dist/mint-components/p-25a70095.system.entry.js +1 -0
- package/dist/mint-components/p-2632464d.entry.js +1 -0
- package/dist/mint-components/p-286190c4.system.entry.js +1 -0
- package/dist/mint-components/{p-4e373c3d.system.js → p-34a87e67.system.js} +1 -1
- package/dist/mint-components/{p-59818690.system.entry.js → p-34dab223.system.entry.js} +1 -1
- package/dist/mint-components/{p-947fe79b.entry.js → p-3ba349a3.entry.js} +1 -1
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-3c46b3de.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc826117.system.entry.js → p-3da2b3cf.system.entry.js} +1 -1
- package/dist/mint-components/p-414b3b6c.system.entry.js +1 -0
- package/dist/mint-components/p-4185f6f5.system.entry.js +1 -0
- package/dist/mint-components/{p-1d27da33.js → p-4209cd94.js} +4 -4
- package/dist/mint-components/{p-43621f12.system.js → p-423821b9.system.js} +1 -1
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-45d0b48a.system.entry.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-45d6cde6.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
- package/dist/mint-components/{p-5291891c.entry.js → p-4c0b7768.entry.js} +3 -3
- package/dist/mint-components/{p-c763c0b2.js → p-4d060f15.js} +1 -1
- package/dist/mint-components/p-52241ba9.system.js +1 -0
- package/dist/mint-components/p-556753b2.js +42 -0
- package/dist/mint-components/p-55dcb6ff.system.js +1 -0
- package/dist/mint-components/{p-9d34f4f0.entry.js → p-56b37aeb.entry.js} +3 -3
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-5a2fd8e0.system.entry.js} +1 -1
- package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
- package/dist/mint-components/{p-e0e7635a.js → p-611a30f0.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-64acc813.entry.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-657b290b.entry.js} +1 -1
- package/dist/mint-components/{p-04348a9b.js → p-65a449de.js} +1 -1
- package/dist/mint-components/p-65de8fb2.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-6a70d2d6.entry.js} +1 -1
- package/dist/mint-components/p-6eede6e5.system.entry.js +1 -0
- package/dist/mint-components/p-6fbfd683.js +1 -0
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-70886c65.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3b37bbf.js → p-7507d72b.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-78a831e0.system.entry.js} +1 -1
- package/dist/mint-components/p-78c1bd77.system.js +1 -0
- package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
- package/dist/mint-components/p-7c4c727c.system.entry.js +1 -0
- package/dist/mint-components/p-7e5f0292.system.entry.js +1 -0
- package/dist/mint-components/{p-ead27698.system.entry.js → p-816fb64f.system.entry.js} +1 -1
- package/dist/mint-components/p-832eba3a.entry.js +1 -0
- package/dist/mint-components/p-858a87ce.entry.js +1 -0
- package/dist/mint-components/p-89669879.system.js +1 -0
- package/dist/mint-components/p-8b7d2f44.entry.js +1 -0
- package/dist/mint-components/{p-b651706a.js → p-8ccb4267.js} +24 -24
- package/dist/mint-components/{p-a5a9aa07.entry.js → p-8d696fc9.entry.js} +11 -11
- package/dist/mint-components/{p-39af4acd.entry.js → p-8da20810.entry.js} +17 -17
- package/dist/mint-components/p-8defb972.system.entry.js +1 -0
- package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
- package/dist/mint-components/{p-721a89c6.entry.js → p-99a09fab.entry.js} +2 -2
- package/dist/mint-components/p-9cdaa099.entry.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-a1f0d8ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-a2e1af83.entry.js} +1 -1
- package/dist/mint-components/p-a80c8f5c.system.js +1 -0
- package/dist/mint-components/{p-1f9a9b70.system.entry.js → p-a9487844.system.entry.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-ab7322f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-ab89b44a.system.js} +1 -1
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-ac69b460.system.entry.js} +1 -1
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-b14a77e8.system.entry.js} +1 -1
- package/dist/mint-components/p-b28df069.js +1 -0
- package/dist/mint-components/p-b4771476.entry.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-c293f586.system.entry.js} +1 -1
- package/dist/mint-components/p-c9ca8473.system.entry.js +1 -0
- package/dist/mint-components/p-cac64545.system.entry.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-cadb8dba.entry.js} +1 -1
- package/dist/mint-components/{p-6c928c7d.entry.js → p-cafebf8a.entry.js} +1 -1
- package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
- package/dist/mint-components/{p-84b25a46.entry.js → p-cdcd825e.entry.js} +1 -1
- package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-d0c4f3bf.system.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-d2a925d5.entry.js} +1 -1
- package/dist/mint-components/p-d3293ac3.entry.js +11 -0
- package/dist/mint-components/{p-b1e8a802.entry.js → p-d39da925.entry.js} +1 -1
- package/dist/mint-components/p-d4138847.system.entry.js +1 -0
- package/dist/mint-components/p-d70bfe30.entry.js +8 -0
- package/dist/mint-components/p-d7b701a7.entry.js +1 -0
- package/dist/mint-components/{p-36f7caec.system.entry.js → p-d90ef1da.system.entry.js} +1 -1
- package/dist/mint-components/{p-ac51940e.system.js → p-dce3d296.system.js} +1 -1
- package/dist/mint-components/{p-68747d88.js → p-def70672.js} +1 -1
- package/dist/mint-components/p-e05ff098.system.js +1 -0
- package/dist/mint-components/p-e4c3817a.system.entry.js +1 -0
- package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
- package/dist/mint-components/p-e7797040.entry.js +1 -0
- package/dist/mint-components/{p-e93e5740.entry.js → p-e810da97.entry.js} +1 -1
- package/dist/mint-components/p-e82eec3c.entry.js +13 -0
- package/dist/mint-components/p-e8bfd924.system.entry.js +1 -0
- package/dist/mint-components/p-e8fcaaa2.entry.js +13 -0
- package/dist/mint-components/{p-1b861be5.entry.js → p-ee328054.entry.js} +1 -1
- package/dist/mint-components/p-ef49d744.entry.js +1 -0
- package/dist/mint-components/{p-22425c71.system.entry.js → p-f0fba496.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-f338ef55.system.js} +1 -1
- package/dist/mint-components/p-f5f0fc0e.entry.js +1 -0
- package/dist/mint-components/{p-65e2c043.system.js → p-faf019cf.system.js} +1 -1
- package/dist/mint-components/p-fcb224ab.js +25 -0
- package/dist/mint-components/{p-fc422446.system.js → p-fda3d0ca.system.js} +22 -22
- package/dist/mint-components/p-fe8e1071.entry.js +1 -0
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +2 -3
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -16
- package/dist/types/components.d.ts +82 -52
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
- package/dist/esm/useEmailVerification-7135732c.js +0 -72
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
- package/dist/esm-es5/global-6306a9b8.js +0 -285
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
- package/dist/esm-es5/useReferralTable-f6ffa103.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/mint-components/p-012daf3c.entry.js +0 -1
- package/dist/mint-components/p-0893073b.entry.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-117b4705.system.js +0 -1
- package/dist/mint-components/p-11d1b212.js +0 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
- package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
- package/dist/mint-components/p-23fdd44e.entry.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-36e9296e.system.entry.js +0 -1
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39397731.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-663303b7.entry.js +0 -8
- package/dist/mint-components/p-66a04cca.system.entry.js +0 -1
- package/dist/mint-components/p-7dd1ff31.system.entry.js +0 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
- package/dist/mint-components/p-8a337864.js +0 -7
- package/dist/mint-components/p-8d554a89.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-a02afa72.system.js +0 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-cb433855.system.entry.js +0 -1
- package/dist/mint-components/p-d35d8c06.entry.js +0 -11
- package/dist/mint-components/p-d468925f.entry.js +0 -1
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e12d3414.system.entry.js +0 -1
- package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
- package/dist/mint-components/p-f36e33ff.entry.js +0 -13
- package/dist/mint-components/p-f450654b.system.entry.js +0 -1
- package/dist/mint-components/p-f4cbbe47.entry.js +0 -1
- package/dist/mint-components/p-f531a5c9.system.entry.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fd21ae8f.entry.js +0 -1
|
@@ -15,6 +15,16 @@ const style = {
|
|
|
15
15
|
flexDirection: "column",
|
|
16
16
|
maxWidth: "320px",
|
|
17
17
|
},
|
|
18
|
+
ErrorAlertContainer: {
|
|
19
|
+
"&::part(base)": {
|
|
20
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
21
|
+
borderTop: "none",
|
|
22
|
+
},
|
|
23
|
+
"&::part(message)": {
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: "column",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
18
28
|
ContinueButton: {
|
|
19
29
|
width: "100%",
|
|
20
30
|
maxWidth: "100px",
|
|
@@ -63,15 +73,18 @@ export function WidgetEmailVerificationView(props) {
|
|
|
63
73
|
h("style", { type: "text/css" },
|
|
64
74
|
vanillaStyle,
|
|
65
75
|
styleString),
|
|
66
|
-
states.
|
|
67
|
-
" ",
|
|
76
|
+
states.sendCodeError && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet.classes.ErrorAlertContainer, open: true },
|
|
77
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
78
|
+
h("b", null, text.sendCodeErrorHeader),
|
|
79
|
+
text.sendCodeErrorDescription)),
|
|
80
|
+
states.initialLoading ? (renderLoadingSkeleton()) : (h("div", { class: sheet.classes.Wrapper },
|
|
68
81
|
h(TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
|
|
69
82
|
h("sl-form", { "onSl-submit": callbacks.submitEmail },
|
|
70
83
|
h("div", { class: sheet.classes.InputsContainer },
|
|
71
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.emailLabel, value: states.email, type: "email", id: "email", name: "email",
|
|
84
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.emailLabel, value: states.email, type: "email", id: "email", name: "email", disabled: !!states.email || states.loading }, (states.error
|
|
72
85
|
? {
|
|
73
86
|
class: sheet.classes.ErrorInput,
|
|
74
|
-
helpText:
|
|
87
|
+
helpText: text.emailValidationErrorText,
|
|
75
88
|
}
|
|
76
89
|
: {}))),
|
|
77
90
|
h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)))))));
|
|
@@ -15,9 +15,13 @@ export class WidgetEmailVerification {
|
|
|
15
15
|
*/
|
|
16
16
|
this.verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
17
17
|
/**
|
|
18
|
-
* @uiName
|
|
18
|
+
* @uiName Send code to email alert header
|
|
19
19
|
*/
|
|
20
|
-
this.
|
|
20
|
+
this.sendCodeErrorHeader = "There was an error sending your code.";
|
|
21
|
+
/**
|
|
22
|
+
* @uiName Send code to email alert description
|
|
23
|
+
*/
|
|
24
|
+
this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
21
25
|
/**
|
|
22
26
|
* @uiName Email input label
|
|
23
27
|
*/
|
|
@@ -26,6 +30,10 @@ export class WidgetEmailVerification {
|
|
|
26
30
|
* @uiName Send code button text
|
|
27
31
|
*/
|
|
28
32
|
this.sendCodeText = "Send code";
|
|
33
|
+
/**
|
|
34
|
+
* @uiName Send code button text
|
|
35
|
+
*/
|
|
36
|
+
this.emailValidationErrorText = "Please enter a valid email";
|
|
29
37
|
withHooks(this);
|
|
30
38
|
}
|
|
31
39
|
disconnectedCallback() { }
|
|
@@ -62,7 +70,28 @@ export class WidgetEmailVerification {
|
|
|
62
70
|
"reflect": false,
|
|
63
71
|
"defaultValue": "\"Start by verifying your email. We\u2019ll send you a code through our referral provider, impact.com.\""
|
|
64
72
|
},
|
|
65
|
-
"
|
|
73
|
+
"sendCodeErrorHeader": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [{
|
|
85
|
+
"text": "Send code to email alert header",
|
|
86
|
+
"name": "uiName"
|
|
87
|
+
}],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"attribute": "send-code-error-header",
|
|
91
|
+
"reflect": false,
|
|
92
|
+
"defaultValue": "\"There was an error sending your code.\""
|
|
93
|
+
},
|
|
94
|
+
"sendCodeErrorDescription": {
|
|
66
95
|
"type": "string",
|
|
67
96
|
"mutable": false,
|
|
68
97
|
"complexType": {
|
|
@@ -74,14 +103,14 @@ export class WidgetEmailVerification {
|
|
|
74
103
|
"optional": false,
|
|
75
104
|
"docs": {
|
|
76
105
|
"tags": [{
|
|
77
|
-
"text": "
|
|
106
|
+
"text": "Send code to email alert description",
|
|
78
107
|
"name": "uiName"
|
|
79
108
|
}],
|
|
80
109
|
"text": ""
|
|
81
110
|
},
|
|
82
|
-
"attribute": "error-
|
|
111
|
+
"attribute": "send-code-error-description",
|
|
83
112
|
"reflect": false,
|
|
84
|
-
"defaultValue": "\"
|
|
113
|
+
"defaultValue": "\"Please try again. If this problem continues, contact our program support team.\""
|
|
85
114
|
},
|
|
86
115
|
"emailLabel": {
|
|
87
116
|
"type": "string",
|
|
@@ -125,12 +154,33 @@ export class WidgetEmailVerification {
|
|
|
125
154
|
"reflect": false,
|
|
126
155
|
"defaultValue": "\"Send code\""
|
|
127
156
|
},
|
|
157
|
+
"emailValidationErrorText": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [{
|
|
169
|
+
"text": "Send code button text",
|
|
170
|
+
"name": "uiName"
|
|
171
|
+
}],
|
|
172
|
+
"text": ""
|
|
173
|
+
},
|
|
174
|
+
"attribute": "email-validation-error-text",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "\"Please enter a valid email\""
|
|
177
|
+
},
|
|
128
178
|
"demoData": {
|
|
129
179
|
"type": "unknown",
|
|
130
180
|
"mutable": false,
|
|
131
181
|
"complexType": {
|
|
132
182
|
"original": "DemoData<WidgetEmailVerificationViewProps>",
|
|
133
|
-
"resolved": "{ states?: { error:
|
|
183
|
+
"resolved": "{ states?: { error: boolean; initialLoading: boolean; loading: boolean; email: string; sendCodeError: boolean; }; }",
|
|
134
184
|
"references": {
|
|
135
185
|
"DemoData": {
|
|
136
186
|
"location": "import",
|
|
@@ -163,6 +213,8 @@ function useDemoWidgetEmailVerification(props) {
|
|
|
163
213
|
error: "",
|
|
164
214
|
loading: false,
|
|
165
215
|
email: "",
|
|
216
|
+
isEmailPrefilled: false,
|
|
217
|
+
sendCodeError: false,
|
|
166
218
|
},
|
|
167
219
|
callbacks: {
|
|
168
220
|
submitEmail: async () => { },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useMutation, useParent, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useState } from "@saasquatch/universal-hooks";
|
|
1
|
+
import { useMutation, useParent, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { SHOW_CODE_NAMESPACE, VERIFICATION_EMAIL_NAMESPACE } from "../keys";
|
|
5
5
|
export const VerificationEmailMutation = gql `
|
|
@@ -9,10 +9,30 @@ export const VerificationEmailMutation = gql `
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
|
+
export const UpsertUserEmailMutation = gql `
|
|
13
|
+
mutation upsertUser($userInput: UserInput!) {
|
|
14
|
+
user(userInput: $userInput) {
|
|
15
|
+
id
|
|
16
|
+
accountId
|
|
17
|
+
email
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export const UserLookupQuery = gql `
|
|
22
|
+
query user {
|
|
23
|
+
viewer {
|
|
24
|
+
... on User {
|
|
25
|
+
id
|
|
26
|
+
accountId
|
|
27
|
+
email
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
12
32
|
// TODO: Move to component-boilerplate
|
|
13
33
|
export function useVerificationEmailMutation() {
|
|
14
34
|
const user = useUserIdentity();
|
|
15
|
-
const [request, { loading, data, errors }] = useMutation(VerificationEmailMutation);
|
|
35
|
+
const [request, { loading: loading, data, errors }] = useMutation(VerificationEmailMutation);
|
|
16
36
|
const sendVerificationEmailMutation = async () => {
|
|
17
37
|
try {
|
|
18
38
|
const result = await request({
|
|
@@ -39,22 +59,79 @@ export function useVerificationEmailMutation() {
|
|
|
39
59
|
},
|
|
40
60
|
];
|
|
41
61
|
}
|
|
62
|
+
export function useUpsertUserEmail() {
|
|
63
|
+
const user = useUserIdentity();
|
|
64
|
+
const [request, { loading: loading, data, errors }] = useMutation(UpsertUserEmailMutation);
|
|
65
|
+
const upsertUserEmail = async (email) => {
|
|
66
|
+
try {
|
|
67
|
+
const result = await request({
|
|
68
|
+
user: {
|
|
69
|
+
id: user.id,
|
|
70
|
+
accountId: user.accountId,
|
|
71
|
+
email,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
if (result instanceof Error || !result)
|
|
75
|
+
throw new Error();
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
console.error("Could not set email on user", e);
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
return [
|
|
84
|
+
upsertUserEmail,
|
|
85
|
+
{
|
|
86
|
+
loading,
|
|
87
|
+
data,
|
|
88
|
+
errors,
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
}
|
|
42
92
|
export function useWidgetEmailVerification(props) {
|
|
43
93
|
const [_, setShowCode] = useParent(SHOW_CODE_NAMESPACE);
|
|
44
94
|
const [email, setEmail] = useParent(VERIFICATION_EMAIL_NAMESPACE);
|
|
95
|
+
const [emailExists, setEmailExists] = useState(false);
|
|
45
96
|
const [error, setError] = useState(false);
|
|
46
|
-
const [
|
|
97
|
+
const [mutationError, setMutationError] = useState(false);
|
|
98
|
+
const [sendVerificationEmailMutation] = useVerificationEmailMutation();
|
|
99
|
+
const [upsertUserEmail] = useUpsertUserEmail();
|
|
100
|
+
const [loading, setLoading] = useState(false);
|
|
101
|
+
const { data, loading: initialLoading } = useQuery(UserLookupQuery, {});
|
|
102
|
+
const emailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
if (!(data === null || data === void 0 ? void 0 : data.viewer))
|
|
105
|
+
return;
|
|
106
|
+
setEmailExists(!!data.viewer.email);
|
|
107
|
+
}, [data]);
|
|
47
108
|
const submitEmail = async (e) => {
|
|
48
109
|
e.preventDefault();
|
|
49
|
-
|
|
50
|
-
|
|
110
|
+
if (!(data === null || data === void 0 ? void 0 : data.viewer))
|
|
111
|
+
return;
|
|
112
|
+
setLoading(true);
|
|
113
|
+
const toAddress = data.viewer.email;
|
|
114
|
+
if (!toAddress) {
|
|
115
|
+
// If no email on the user, set one
|
|
116
|
+
const formData = e.detail.formData;
|
|
117
|
+
const newEmail = formData.get("email").toString();
|
|
118
|
+
if (!emailRegex.test(newEmail)) {
|
|
119
|
+
setError(true);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const result = await upsertUserEmail(newEmail);
|
|
123
|
+
if (!result || !result.user.email)
|
|
124
|
+
setError(true);
|
|
125
|
+
}
|
|
51
126
|
const result = await sendVerificationEmailMutation();
|
|
52
127
|
if (!result || !result.requestUserEmailVerification.success)
|
|
53
|
-
|
|
128
|
+
setMutationError(true);
|
|
54
129
|
else {
|
|
130
|
+
// This is used to let the code verification widget know an email was already sent
|
|
55
131
|
setEmail(toAddress);
|
|
56
132
|
setShowCode(true);
|
|
57
133
|
}
|
|
134
|
+
setLoading(false);
|
|
58
135
|
};
|
|
59
136
|
return {
|
|
60
137
|
callbacks: {
|
|
@@ -62,8 +139,10 @@ export function useWidgetEmailVerification(props) {
|
|
|
62
139
|
},
|
|
63
140
|
states: {
|
|
64
141
|
loading,
|
|
65
|
-
|
|
66
|
-
|
|
142
|
+
initialLoading,
|
|
143
|
+
error,
|
|
144
|
+
email: data === null || data === void 0 ? void 0 : data.viewer.email,
|
|
145
|
+
sendCodeError: mutationError,
|
|
67
146
|
},
|
|
68
147
|
text: props.getTextProps(),
|
|
69
148
|
};
|
|
@@ -9,11 +9,29 @@ const style = {
|
|
|
9
9
|
margin: "0",
|
|
10
10
|
marginBottom: "var(--sl-spacing-small)",
|
|
11
11
|
},
|
|
12
|
+
WarningAlertContainer: {
|
|
13
|
+
"&::part(base)": {
|
|
14
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
15
|
+
borderTop: "none",
|
|
16
|
+
},
|
|
17
|
+
"& sl-icon::part(base)": {
|
|
18
|
+
color: "var(--sl-color-danger-500)",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
InfoAlertContainer: {
|
|
22
|
+
"&::part(base)": {
|
|
23
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
24
|
+
borderTop: "none",
|
|
25
|
+
},
|
|
26
|
+
"& sl-icon::part(base)": {
|
|
27
|
+
color: "var(--sl-color-blue-500)",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
12
30
|
};
|
|
13
31
|
const sheet = createStyleSheet(style);
|
|
14
32
|
const styleString = sheet.toString();
|
|
15
33
|
export function PayoutStatusAlertView(props) {
|
|
16
|
-
var _a, _b, _c, _d;
|
|
34
|
+
var _a, _b, _c, _d, _e;
|
|
17
35
|
const { text, states } = props;
|
|
18
36
|
if (states.loading) {
|
|
19
37
|
return h("sl-skeleton", { class: sheet.classes.SkeletonOne });
|
|
@@ -29,7 +47,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
29
47
|
description: text.informationRequiredDescription,
|
|
30
48
|
buttonText: text.verificationRequiredButtonText,
|
|
31
49
|
alertType: "info",
|
|
32
|
-
icon: "
|
|
50
|
+
icon: "info-circle",
|
|
51
|
+
class: sheet.classes.InfoAlertContainer,
|
|
33
52
|
};
|
|
34
53
|
case "VERIFICATION_NEEDED":
|
|
35
54
|
return {
|
|
@@ -37,7 +56,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
37
56
|
description: text.verificationRequiredDescription,
|
|
38
57
|
buttonText: text.verificationRequiredButtonText,
|
|
39
58
|
alertType: "warning",
|
|
40
|
-
icon: "exclamation-
|
|
59
|
+
icon: "exclamation-triangle",
|
|
60
|
+
class: sheet.classes.WarningAlertContainer,
|
|
41
61
|
};
|
|
42
62
|
case "HOLD":
|
|
43
63
|
return {
|
|
@@ -45,7 +65,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
45
65
|
description: text.holdDescription,
|
|
46
66
|
buttonText: null,
|
|
47
67
|
alertType: "warning",
|
|
48
|
-
icon: "exclamation-
|
|
68
|
+
icon: "exclamation-triangle",
|
|
69
|
+
class: sheet.classes.WarningAlertContainer,
|
|
49
70
|
};
|
|
50
71
|
default:
|
|
51
72
|
return;
|
|
@@ -64,9 +85,9 @@ export function PayoutStatusAlertView(props) {
|
|
|
64
85
|
}
|
|
65
86
|
return (h("div", { part: "sqm-base" },
|
|
66
87
|
h("style", { type: "text/css" }, styleString),
|
|
67
|
-
h("
|
|
68
|
-
h("sl-icon", { slot: "icon", name: (
|
|
69
|
-
h("strong", null, (
|
|
70
|
-
h("p", { class: sheet.classes.AlertDescriptionText }, (
|
|
88
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: (_a = getAlert(states.status)) === null || _a === void 0 ? void 0 : _a.alertType, class: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.class, open: true },
|
|
89
|
+
h("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
90
|
+
h("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
91
|
+
h("p", { class: sheet.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
71
92
|
getButton(states.status))));
|
|
72
93
|
}
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -7,13 +7,37 @@ import { usePayoutStatus } from "./usePayoutStatus";
|
|
|
7
7
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
8
8
|
export class PayoutStatusAlert {
|
|
9
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* @uiName Info required alert header
|
|
12
|
+
*/
|
|
10
13
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
14
|
+
/**
|
|
15
|
+
* @uiName Info required alert description
|
|
16
|
+
*/
|
|
11
17
|
this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
|
|
18
|
+
/**
|
|
19
|
+
* @uiName Info required alert button text
|
|
20
|
+
*/
|
|
12
21
|
this.informationRequiredButtonText = "Payouts & Tax Settings";
|
|
22
|
+
/**
|
|
23
|
+
* @uiName Verification required alert header
|
|
24
|
+
*/
|
|
13
25
|
this.verificationRequiredHeader = "Verify your identity";
|
|
26
|
+
/**
|
|
27
|
+
* @uiName Verification required alert description
|
|
28
|
+
*/
|
|
14
29
|
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
30
|
+
/**
|
|
31
|
+
* @uiName Verification required alert button text
|
|
32
|
+
*/
|
|
15
33
|
this.verificationRequiredButtonText = "Start Verification";
|
|
34
|
+
/**
|
|
35
|
+
* @uiName Payout on hold alert header
|
|
36
|
+
*/
|
|
16
37
|
this.holdHeader = "Your payouts and account are on hold";
|
|
38
|
+
/**
|
|
39
|
+
* @uiName Payout on hold alert description
|
|
40
|
+
*/
|
|
17
41
|
this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to {support email}.";
|
|
18
42
|
withHooks(this);
|
|
19
43
|
}
|
|
@@ -41,7 +65,10 @@ export class PayoutStatusAlert {
|
|
|
41
65
|
"required": false,
|
|
42
66
|
"optional": false,
|
|
43
67
|
"docs": {
|
|
44
|
-
"tags": [
|
|
68
|
+
"tags": [{
|
|
69
|
+
"text": "Info required alert header",
|
|
70
|
+
"name": "uiName"
|
|
71
|
+
}],
|
|
45
72
|
"text": ""
|
|
46
73
|
},
|
|
47
74
|
"attribute": "information-required-header",
|
|
@@ -59,7 +86,10 @@ export class PayoutStatusAlert {
|
|
|
59
86
|
"required": false,
|
|
60
87
|
"optional": false,
|
|
61
88
|
"docs": {
|
|
62
|
-
"tags": [
|
|
89
|
+
"tags": [{
|
|
90
|
+
"text": "Info required alert description",
|
|
91
|
+
"name": "uiName"
|
|
92
|
+
}],
|
|
63
93
|
"text": ""
|
|
64
94
|
},
|
|
65
95
|
"attribute": "information-required-description",
|
|
@@ -77,7 +107,10 @@ export class PayoutStatusAlert {
|
|
|
77
107
|
"required": false,
|
|
78
108
|
"optional": false,
|
|
79
109
|
"docs": {
|
|
80
|
-
"tags": [
|
|
110
|
+
"tags": [{
|
|
111
|
+
"text": "Info required alert button text",
|
|
112
|
+
"name": "uiName"
|
|
113
|
+
}],
|
|
81
114
|
"text": ""
|
|
82
115
|
},
|
|
83
116
|
"attribute": "information-required-button-text",
|
|
@@ -95,7 +128,10 @@ export class PayoutStatusAlert {
|
|
|
95
128
|
"required": false,
|
|
96
129
|
"optional": false,
|
|
97
130
|
"docs": {
|
|
98
|
-
"tags": [
|
|
131
|
+
"tags": [{
|
|
132
|
+
"text": "Verification required alert header",
|
|
133
|
+
"name": "uiName"
|
|
134
|
+
}],
|
|
99
135
|
"text": ""
|
|
100
136
|
},
|
|
101
137
|
"attribute": "verification-required-header",
|
|
@@ -113,7 +149,10 @@ export class PayoutStatusAlert {
|
|
|
113
149
|
"required": false,
|
|
114
150
|
"optional": false,
|
|
115
151
|
"docs": {
|
|
116
|
-
"tags": [
|
|
152
|
+
"tags": [{
|
|
153
|
+
"text": "Verification required alert description",
|
|
154
|
+
"name": "uiName"
|
|
155
|
+
}],
|
|
117
156
|
"text": ""
|
|
118
157
|
},
|
|
119
158
|
"attribute": "verification-required-description",
|
|
@@ -131,7 +170,10 @@ export class PayoutStatusAlert {
|
|
|
131
170
|
"required": false,
|
|
132
171
|
"optional": false,
|
|
133
172
|
"docs": {
|
|
134
|
-
"tags": [
|
|
173
|
+
"tags": [{
|
|
174
|
+
"text": "Verification required alert button text",
|
|
175
|
+
"name": "uiName"
|
|
176
|
+
}],
|
|
135
177
|
"text": ""
|
|
136
178
|
},
|
|
137
179
|
"attribute": "verification-required-button-text",
|
|
@@ -149,7 +191,10 @@ export class PayoutStatusAlert {
|
|
|
149
191
|
"required": false,
|
|
150
192
|
"optional": false,
|
|
151
193
|
"docs": {
|
|
152
|
-
"tags": [
|
|
194
|
+
"tags": [{
|
|
195
|
+
"text": "Payout on hold alert header",
|
|
196
|
+
"name": "uiName"
|
|
197
|
+
}],
|
|
153
198
|
"text": ""
|
|
154
199
|
},
|
|
155
200
|
"attribute": "hold-header",
|
|
@@ -167,7 +212,10 @@ export class PayoutStatusAlert {
|
|
|
167
212
|
"required": false,
|
|
168
213
|
"optional": false,
|
|
169
214
|
"docs": {
|
|
170
|
-
"tags": [
|
|
215
|
+
"tags": [{
|
|
216
|
+
"text": "Payout on hold alert description",
|
|
217
|
+
"name": "uiName"
|
|
218
|
+
}],
|
|
171
219
|
"text": ""
|
|
172
220
|
},
|
|
173
221
|
"attribute": "hold-description",
|
|
@@ -247,22 +247,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
247
247
|
h("strong", null, text.error.generalTitle),
|
|
248
248
|
h("br", null),
|
|
249
249
|
text.error.generalDescription)),
|
|
250
|
-
states.identiyRequired && (h("div", null,
|
|
251
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.ExpiringSoonAlertContainer },
|
|
252
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
253
|
-
h("strong", null, text.verifyIdentityAlertHeader),
|
|
254
|
-
h("br", null),
|
|
255
|
-
text.verifyIdentityAlertMessage,
|
|
256
|
-
h("br", null),
|
|
257
|
-
h("sl-button", null, text.verifyIdentityButton)))),
|
|
258
|
-
h("sl-dialog", {
|
|
259
|
-
// AL: todo plugin open dialog
|
|
260
|
-
label: " verify Identity iframe", class: sheet.classes.Dialog, open: states.showIdentityVerificationDialog },
|
|
261
|
-
h("div", { style: {
|
|
262
|
-
width: "420px",
|
|
263
|
-
height: "420px",
|
|
264
|
-
border: "1px dotted black",
|
|
265
|
-
} })),
|
|
266
250
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
267
251
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
268
252
|
h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -69,18 +69,6 @@ export class TaxAndCashDashboard {
|
|
|
69
69
|
* @uiName Inactive W-8 error message description
|
|
70
70
|
*/
|
|
71
71
|
this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
72
|
-
/**
|
|
73
|
-
* Part of the alert displayed at the top of the page.
|
|
74
|
-
*
|
|
75
|
-
* @uiName Verify identity warning message header
|
|
76
|
-
*/
|
|
77
|
-
this.verifyIdentityAlertHeader = "Verify your identity";
|
|
78
|
-
/**
|
|
79
|
-
* Part of the alert displayed at the top of the page.
|
|
80
|
-
*
|
|
81
|
-
* @uiName Verify identity warning message description
|
|
82
|
-
*/
|
|
83
|
-
this.verifyIdentityAlertMessage = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
84
72
|
/**
|
|
85
73
|
* Additional text displayed next to the tax form's status badge.
|
|
86
74
|
*
|
|
@@ -281,10 +269,6 @@ export class TaxAndCashDashboard {
|
|
|
281
269
|
* @uiName Cancel button label
|
|
282
270
|
*/
|
|
283
271
|
this.cancelButton = "Cancel";
|
|
284
|
-
/**
|
|
285
|
-
* @uiName Verify button label
|
|
286
|
-
*/
|
|
287
|
-
this.verifyIdentityButton = "Start Verification";
|
|
288
272
|
withHooks(this);
|
|
289
273
|
}
|
|
290
274
|
disconnectedCallback() { }
|
|
@@ -531,48 +515,6 @@ export class TaxAndCashDashboard {
|
|
|
531
515
|
"reflect": false,
|
|
532
516
|
"defaultValue": "\"Your tax form may have expired or has personal information that doesn\u2019t match your profile. Please submit a new {documentType} form.\""
|
|
533
517
|
},
|
|
534
|
-
"verifyIdentityAlertHeader": {
|
|
535
|
-
"type": "string",
|
|
536
|
-
"mutable": false,
|
|
537
|
-
"complexType": {
|
|
538
|
-
"original": "string",
|
|
539
|
-
"resolved": "string",
|
|
540
|
-
"references": {}
|
|
541
|
-
},
|
|
542
|
-
"required": false,
|
|
543
|
-
"optional": true,
|
|
544
|
-
"docs": {
|
|
545
|
-
"tags": [{
|
|
546
|
-
"text": "Verify identity warning message header",
|
|
547
|
-
"name": "uiName"
|
|
548
|
-
}],
|
|
549
|
-
"text": "Part of the alert displayed at the top of the page."
|
|
550
|
-
},
|
|
551
|
-
"attribute": "verify-identity-alert-header",
|
|
552
|
-
"reflect": false,
|
|
553
|
-
"defaultValue": "\"Verify your identity\""
|
|
554
|
-
},
|
|
555
|
-
"verifyIdentityAlertMessage": {
|
|
556
|
-
"type": "string",
|
|
557
|
-
"mutable": false,
|
|
558
|
-
"complexType": {
|
|
559
|
-
"original": "string",
|
|
560
|
-
"resolved": "string",
|
|
561
|
-
"references": {}
|
|
562
|
-
},
|
|
563
|
-
"required": false,
|
|
564
|
-
"optional": true,
|
|
565
|
-
"docs": {
|
|
566
|
-
"tags": [{
|
|
567
|
-
"text": "Verify identity warning message description",
|
|
568
|
-
"name": "uiName"
|
|
569
|
-
}],
|
|
570
|
-
"text": "Part of the alert displayed at the top of the page."
|
|
571
|
-
},
|
|
572
|
-
"attribute": "verify-identity-alert-message",
|
|
573
|
-
"reflect": false,
|
|
574
|
-
"defaultValue": "\"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.\""
|
|
575
|
-
},
|
|
576
518
|
"invalidForm": {
|
|
577
519
|
"type": "string",
|
|
578
520
|
"mutable": false,
|
|
@@ -1488,27 +1430,6 @@ export class TaxAndCashDashboard {
|
|
|
1488
1430
|
"reflect": false,
|
|
1489
1431
|
"defaultValue": "\"Cancel\""
|
|
1490
1432
|
},
|
|
1491
|
-
"verifyIdentityButton": {
|
|
1492
|
-
"type": "string",
|
|
1493
|
-
"mutable": false,
|
|
1494
|
-
"complexType": {
|
|
1495
|
-
"original": "string",
|
|
1496
|
-
"resolved": "string",
|
|
1497
|
-
"references": {}
|
|
1498
|
-
},
|
|
1499
|
-
"required": false,
|
|
1500
|
-
"optional": false,
|
|
1501
|
-
"docs": {
|
|
1502
|
-
"tags": [{
|
|
1503
|
-
"text": "Verify button label",
|
|
1504
|
-
"name": "uiName"
|
|
1505
|
-
}],
|
|
1506
|
-
"text": ""
|
|
1507
|
-
},
|
|
1508
|
-
"attribute": "verify-identity-button",
|
|
1509
|
-
"reflect": false,
|
|
1510
|
-
"defaultValue": "\"Start Verification\""
|
|
1511
|
-
},
|
|
1512
1433
|
"demoData": {
|
|
1513
1434
|
"type": "unknown",
|
|
1514
1435
|
"mutable": false,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import {
|
|
2
|
+
import { f as useState, b as browser, u as useMemo } from './stencil-hooks.module-3c7f7c90.js';
|
|
3
|
+
import { i as intl } from './global-adae7650.js';
|
|
4
|
+
import { z as z$1, K, E as En, b as xe, n as ne, g as getEnvironmentSDK, Q } from './index.module-c0eb7dc2.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
-
import { l as luxon } from './luxon-
|
|
8
|
+
import { u as useChildElements } from './useChildElements-fe94b660.js';
|
|
9
|
+
import { l as luxon } from './luxon-63e24900.js';
|
|
10
|
+
import { d as dist } from './index-0c7b14c5.js';
|
|
10
11
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
11
12
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
12
13
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
13
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
14
|
+
import { a as isValidColor, b as isMobile } from './utilities-98445452.js';
|
|
14
15
|
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-6c582684.js';
|
|
15
16
|
|
|
16
17
|
const medium = {
|