@saasquatch/mint-components 1.12.0-8 → 1.12.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-c3e91cee.js} +22 -25
- package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +139 -224
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +218 -386
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-5d3a2d35.js → sqm-invoice-table-view-e3b03a00.js} +1 -59
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +13 -88
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +366 -377
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -6
- package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
- package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-e012b2aa.js} +22 -25
- package/dist/esm/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm/{index.module-6c840c4e.js → index.module-def4aec5.js} +3 -40
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-1bcfd0de.js → re-render-12fd274a.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +138 -223
- package/dist/esm/sqm-big-stat_39.entry.js +217 -385
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-e9075c0b.js → sqm-invoice-table-view-6e13a323.js} +1 -59
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +18 -93
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
- package/dist/esm/sqm-stencilbook.entry.js +366 -377
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46b89952.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +9 -9
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-9fc1ac80.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-3f5bba22.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-12fd274a.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-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.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-60ef06cc.js +1 -0
- 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-4307c992.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-ffe955c8.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-view-1d3066e1.js +1 -0
- 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-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-3f5bba22.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-f450654b.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-021a735d.entry.js} +1 -1
- package/dist/mint-components/{p-ac51940e.system.js → p-02424350.system.js} +1 -1
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-59818690.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/{p-11d1b212.js → p-0b9fa97f.js} +1 -1
- package/dist/mint-components/{p-5becb2ff.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-9eae245f.js → p-10685090.js} +4 -7
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-012daf3c.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/{p-e12d3414.system.entry.js → p-1dd69917.system.entry.js} +1 -1
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-d468925f.entry.js → p-2dd67762.entry.js} +1 -1
- package/dist/mint-components/{p-1d27da33.js → p-2ee2ebba.js} +2 -2
- package/dist/mint-components/{p-84b25a46.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/{p-f4cbbe47.entry.js → p-32d1d162.entry.js} +1 -1
- package/dist/mint-components/{p-cb433855.system.entry.js → p-35d84041.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/{p-f36e33ff.entry.js → p-3ec16698.entry.js} +2 -2
- package/dist/mint-components/p-40b1de58.js +1 -0
- package/dist/mint-components/p-4112e198.system.js +1 -0
- package/dist/mint-components/{p-04348a9b.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/p-458b2894.entry.js +9 -0
- package/dist/mint-components/{p-e0e7635a.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-cd44de66.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-4ea58025.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc422446.system.js → p-59fe4ad1.system.js} +1 -1
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-bc826117.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-22425c71.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/{p-0121e044.js → p-61eab172.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/{p-0893073b.entry.js → p-7049e9b0.entry.js} +1 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/p-7f088154.entry.js +1 -0
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-6c928c7d.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/{p-d83b0cf3.js → p-8704937c.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-96242551.system.entry.js +1 -0
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-9c310991.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-f531a5c9.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/{p-fd21ae8f.entry.js → p-aad11a68.entry.js} +1 -1
- package/dist/mint-components/p-aee2304a.entry.js +223 -0
- package/dist/mint-components/{p-04ced592.system.entry.js → p-af062c8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/{p-5291891c.entry.js → p-b4c52c5a.entry.js} +2 -2
- package/dist/mint-components/{p-36e9296e.system.entry.js → p-b5861974.system.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-8d554a89.system.js → p-c84659a3.system.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d5de2646.system.entry.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-d8d2de11.entry.js} +1 -1
- package/dist/mint-components/p-d8e68e16.entry.js +13 -0
- package/dist/mint-components/{p-4e373c3d.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/{p-d35d8c06.entry.js → p-e3735866.entry.js} +2 -2
- package/dist/mint-components/p-e6d74386.system.entry.js +1 -0
- package/dist/mint-components/{p-68747d88.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-eba44835.system.entry.js} +1 -1
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-43621f12.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
- package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -2
- package/dist/types/components.d.ts +108 -591
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/extractProps-fd93ba62.js +0 -21
- package/dist/cjs/keys-cff24974.js +0 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -345
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
- package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
- package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -156
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -116
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
- package/dist/esm/extractProps-ae1afbb3.js +0 -19
- package/dist/esm/keys-db1897ae.js +0 -6
- package/dist/esm/sqm-code-verification.entry.js +0 -341
- package/dist/esm/sqm-email-verification.entry.js +0 -279
- package/dist/esm/sqm-scroll.entry.js +0 -105
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm/sqm-widget-verification.entry.js +0 -206
- package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/keys-db1897ae.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-e9075c0b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f8e78810.js +0 -1
- package/dist/esm-es5/sqm-scroll.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-1649ee1e.entry.js +0 -240
- package/dist/mint-components/p-1712a9fd.entry.js +0 -11
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-39e412e8.system.entry.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-54ffae13.entry.js +0 -194
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-63ac51e1.system.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-8690f682.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-947fe79b.entry.js +0 -1
- package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-a85f57bb.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-c510fb88.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-d238372a.system.entry.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e01ac27c.system.js +0 -1
- package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
- package/dist/mint-components/p-ead27698.system.entry.js +0 -1
- package/dist/mint-components/p-f340214f.entry.js +0 -25
- package/dist/mint-components/p-f55060db.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fffc3590.entry.js +0 -9
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -19
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
-
import { k as useState, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, M as Mn, E as En, K, c as xe, i as isDemo, S as Sn } from './index.module-6c840c4e.js';
|
|
4
|
-
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
6
|
-
import { g as getProps } from './utils-334c1e34.js';
|
|
7
|
-
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
8
|
-
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE } from './keys-db1897ae.js';
|
|
9
|
-
import { u as useVerificationEmail } from './useVerificationEmail-c32696ba.js';
|
|
10
|
-
|
|
11
|
-
const UpsertUserEmailMutation = dist.gql `
|
|
12
|
-
mutation upsertUser($userInput: UserInput!) {
|
|
13
|
-
user(userInput: $userInput) {
|
|
14
|
-
id
|
|
15
|
-
accountId
|
|
16
|
-
email
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
const UserLookupQuery = dist.gql `
|
|
21
|
-
query user {
|
|
22
|
-
viewer {
|
|
23
|
-
... on User {
|
|
24
|
-
id
|
|
25
|
-
accountId
|
|
26
|
-
email
|
|
27
|
-
impactConnection {
|
|
28
|
-
user {
|
|
29
|
-
id
|
|
30
|
-
email
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
function useUpsertUserEmail() {
|
|
38
|
-
const user = K();
|
|
39
|
-
const [request, { loading: loading, data, errors }] = xe(UpsertUserEmailMutation);
|
|
40
|
-
const upsertUserEmail = async (email) => {
|
|
41
|
-
try {
|
|
42
|
-
const result = await request({
|
|
43
|
-
user: {
|
|
44
|
-
id: user.id,
|
|
45
|
-
accountId: user.accountId,
|
|
46
|
-
email,
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
if (result instanceof Error || !result)
|
|
50
|
-
throw new Error();
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
console.error("Could not set email on user", e);
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return [
|
|
59
|
-
upsertUserEmail,
|
|
60
|
-
{
|
|
61
|
-
loading,
|
|
62
|
-
data,
|
|
63
|
-
errors,
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
function useWidgetEmailVerification(props) {
|
|
68
|
-
const [_, setShowCode] = Mn(SHOW_CODE_NAMESPACE);
|
|
69
|
-
const [email, setEmail] = Mn(VERIFICATION_EMAIL_NAMESPACE);
|
|
70
|
-
const [emailExists, setEmailExists] = useState(false);
|
|
71
|
-
const [error, setError] = useState(false);
|
|
72
|
-
const [mutationError, setMutationError] = useState(false);
|
|
73
|
-
const { initialized, send: [sendEmail, { loading: sendLoading, errors }], } = useVerificationEmail();
|
|
74
|
-
const [upsertUserEmail] = useUpsertUserEmail();
|
|
75
|
-
const [loading, setLoading] = useState(true);
|
|
76
|
-
const { data, loading: initialLoading } = En(UserLookupQuery, {});
|
|
77
|
-
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,}))$/;
|
|
78
|
-
useEffect(() => {
|
|
79
|
-
if (!(data === null || data === void 0 ? void 0 : data.viewer))
|
|
80
|
-
return;
|
|
81
|
-
setEmailExists(!!data.viewer.email);
|
|
82
|
-
}, [data]);
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
if (initialized)
|
|
85
|
-
setLoading(false);
|
|
86
|
-
}, [initialized]);
|
|
87
|
-
const submitEmail = async (e) => {
|
|
88
|
-
e.preventDefault();
|
|
89
|
-
if (!(data === null || data === void 0 ? void 0 : data.viewer))
|
|
90
|
-
return;
|
|
91
|
-
setLoading(true);
|
|
92
|
-
const toAddress = data.viewer.email;
|
|
93
|
-
if (!toAddress) {
|
|
94
|
-
// If no email on the user, set one
|
|
95
|
-
const formData = e.detail.formData;
|
|
96
|
-
const newEmail = formData.get("email").toString();
|
|
97
|
-
if (!emailRegex.test(newEmail)) {
|
|
98
|
-
setError(true);
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const result = await upsertUserEmail(newEmail);
|
|
102
|
-
if (!result || !result.user.email)
|
|
103
|
-
setError(true);
|
|
104
|
-
}
|
|
105
|
-
// UI should not allow this call til initialisation is done
|
|
106
|
-
if (!initialized)
|
|
107
|
-
return;
|
|
108
|
-
const result = await sendEmail();
|
|
109
|
-
if (!result || !result.success)
|
|
110
|
-
setMutationError(true);
|
|
111
|
-
else {
|
|
112
|
-
// This is used to let the code verification widget know an email was already sent
|
|
113
|
-
setEmail(toAddress);
|
|
114
|
-
setShowCode(true);
|
|
115
|
-
}
|
|
116
|
-
setLoading(false);
|
|
117
|
-
};
|
|
118
|
-
return {
|
|
119
|
-
callbacks: {
|
|
120
|
-
submitEmail,
|
|
121
|
-
},
|
|
122
|
-
states: {
|
|
123
|
-
loading,
|
|
124
|
-
initialLoading: initialLoading && !initialized,
|
|
125
|
-
error,
|
|
126
|
-
email: data === null || data === void 0 ? void 0 : data.viewer.email,
|
|
127
|
-
sendCodeError: mutationError,
|
|
128
|
-
},
|
|
129
|
-
text: props.getTextProps(),
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const style = {
|
|
134
|
-
Wrapper: {
|
|
135
|
-
display: "flex",
|
|
136
|
-
flexDirection: "column",
|
|
137
|
-
gap: "var(--sl-spacing-medium)",
|
|
138
|
-
marginTop: "var(--sl-spacing-medium)",
|
|
139
|
-
},
|
|
140
|
-
InputsContainer: {
|
|
141
|
-
display: "flex",
|
|
142
|
-
gap: "var(--sl-spacing-medium)",
|
|
143
|
-
position: "relative",
|
|
144
|
-
flexDirection: "column",
|
|
145
|
-
maxWidth: "320px",
|
|
146
|
-
},
|
|
147
|
-
ErrorAlertContainer: {
|
|
148
|
-
"&::part(base)": {
|
|
149
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
150
|
-
borderTop: "none",
|
|
151
|
-
},
|
|
152
|
-
"&::part(message)": {
|
|
153
|
-
display: "flex",
|
|
154
|
-
flexDirection: "column",
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
ContinueButton: {
|
|
158
|
-
width: "100%",
|
|
159
|
-
maxWidth: "100px",
|
|
160
|
-
},
|
|
161
|
-
SkeletonOne: {
|
|
162
|
-
width: "50%",
|
|
163
|
-
height: "16px",
|
|
164
|
-
},
|
|
165
|
-
SkeletonTwo: {
|
|
166
|
-
width: "30%",
|
|
167
|
-
height: "34px",
|
|
168
|
-
},
|
|
169
|
-
SkeletonThree: {
|
|
170
|
-
width: "15%",
|
|
171
|
-
height: "24px",
|
|
172
|
-
},
|
|
173
|
-
ErrorInput: {
|
|
174
|
-
"&::part(base)": {
|
|
175
|
-
border: "1px solid var(--sl-color-danger-500)",
|
|
176
|
-
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
177
|
-
},
|
|
178
|
-
"&::part(help-text)": {
|
|
179
|
-
color: "var(--sl-color-danger-500)",
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
};
|
|
183
|
-
const vanillaStyle = `
|
|
184
|
-
:host {
|
|
185
|
-
display: block;
|
|
186
|
-
}
|
|
187
|
-
:host([hidden]): {
|
|
188
|
-
display: none;
|
|
189
|
-
}
|
|
190
|
-
`;
|
|
191
|
-
const sheet = createStyleSheet(style);
|
|
192
|
-
const styleString = sheet.toString();
|
|
193
|
-
function WidgetEmailVerificationView(props) {
|
|
194
|
-
const { states, callbacks, text } = props;
|
|
195
|
-
const renderLoadingSkeleton = () => {
|
|
196
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
197
|
-
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
198
|
-
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }),
|
|
199
|
-
h("sl-skeleton", { class: sheet.classes.SkeletonThree })));
|
|
200
|
-
};
|
|
201
|
-
return (h("div", { part: "sqm-base" },
|
|
202
|
-
h("style", { type: "text/css" },
|
|
203
|
-
vanillaStyle,
|
|
204
|
-
styleString),
|
|
205
|
-
states.sendCodeError && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet.classes.ErrorAlertContainer, open: true },
|
|
206
|
-
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
207
|
-
h("b", null, text.sendCodeErrorHeader),
|
|
208
|
-
text.sendCodeErrorDescription)),
|
|
209
|
-
states.initialLoading ? (renderLoadingSkeleton()) : (h("div", { class: sheet.classes.Wrapper },
|
|
210
|
-
h(TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
|
|
211
|
-
h("sl-form", { "onSl-submit": callbacks.submitEmail },
|
|
212
|
-
h("div", { class: sheet.classes.InputsContainer },
|
|
213
|
-
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
|
|
214
|
-
? {
|
|
215
|
-
class: sheet.classes.ErrorInput,
|
|
216
|
-
helpText: text.emailValidationErrorText,
|
|
217
|
-
}
|
|
218
|
-
: {}))),
|
|
219
|
-
h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)))))));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
const WidgetEmailVerification = class {
|
|
223
|
-
constructor(hostRef) {
|
|
224
|
-
registerInstance(this, hostRef);
|
|
225
|
-
/**
|
|
226
|
-
* @uiName Verify email widget header text
|
|
227
|
-
*/
|
|
228
|
-
this.verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
229
|
-
/**
|
|
230
|
-
* @uiName Send code to email alert header
|
|
231
|
-
*/
|
|
232
|
-
this.sendCodeErrorHeader = "There was an error sending your code.";
|
|
233
|
-
/**
|
|
234
|
-
* @uiName Send code to email alert description
|
|
235
|
-
*/
|
|
236
|
-
this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
237
|
-
/**
|
|
238
|
-
* @uiName Email input label
|
|
239
|
-
*/
|
|
240
|
-
this.emailLabel = "Email";
|
|
241
|
-
/**
|
|
242
|
-
* @uiName Send code button text
|
|
243
|
-
*/
|
|
244
|
-
this.sendCodeText = "Send code";
|
|
245
|
-
/**
|
|
246
|
-
* @uiName Send code button text
|
|
247
|
-
*/
|
|
248
|
-
this.emailValidationErrorText = "Please enter a valid email";
|
|
249
|
-
h$1(this);
|
|
250
|
-
}
|
|
251
|
-
disconnectedCallback() { }
|
|
252
|
-
getTextProps() {
|
|
253
|
-
return getProps(this);
|
|
254
|
-
}
|
|
255
|
-
render() {
|
|
256
|
-
const props = isDemo()
|
|
257
|
-
? useDemoWidgetEmailVerification(this)
|
|
258
|
-
: useWidgetEmailVerification(this);
|
|
259
|
-
return h(WidgetEmailVerificationView, Object.assign({}, props));
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
function useDemoWidgetEmailVerification(props) {
|
|
263
|
-
const setShowCode = Sn(SHOW_CODE_NAMESPACE);
|
|
264
|
-
return cjs({
|
|
265
|
-
states: {
|
|
266
|
-
error: true,
|
|
267
|
-
initialLoading: false,
|
|
268
|
-
loading: false,
|
|
269
|
-
email: "test@example.com",
|
|
270
|
-
sendCodeError: true,
|
|
271
|
-
},
|
|
272
|
-
callbacks: {
|
|
273
|
-
submitEmail: async () => setShowCode(true),
|
|
274
|
-
},
|
|
275
|
-
text: props.getTextProps(),
|
|
276
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export { WidgetEmailVerification as sqm_email_verification };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
|
-
|
|
5
|
-
const REVEAL_EVENT = "sq:reveal";
|
|
6
|
-
function useScroll(props) {
|
|
7
|
-
const { scrollTagName, scrollId } = props;
|
|
8
|
-
async function scroll() {
|
|
9
|
-
const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
|
|
10
|
-
element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
|
|
11
|
-
detail: scrollTagName || `#${scrollId}`,
|
|
12
|
-
bubbles: true,
|
|
13
|
-
composed: true,
|
|
14
|
-
}));
|
|
15
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
16
|
-
element.scrollIntoView({ behavior: props.scrollAnimation });
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
callbacks: { scroll },
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const Scroll = class {
|
|
24
|
-
constructor(hostRef) {
|
|
25
|
-
registerInstance(this, hostRef);
|
|
26
|
-
this.ignored = true;
|
|
27
|
-
/**
|
|
28
|
-
* @uiName Button type
|
|
29
|
-
* @uiType string
|
|
30
|
-
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
31
|
-
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
this.buttonType = "default";
|
|
35
|
-
/**
|
|
36
|
-
* @uiName Scroll animation style
|
|
37
|
-
* @uiType string
|
|
38
|
-
* @uiEnum ["smooth", "auto"]
|
|
39
|
-
* @uiEnumNames ["Smooth", "Auto"]
|
|
40
|
-
*/
|
|
41
|
-
this.scrollAnimation = "smooth";
|
|
42
|
-
h(this);
|
|
43
|
-
}
|
|
44
|
-
disconnectedCallback() { }
|
|
45
|
-
render() {
|
|
46
|
-
var _a;
|
|
47
|
-
const { callbacks } = useScroll(this);
|
|
48
|
-
const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
|
|
49
|
-
const style = {
|
|
50
|
-
Button: {
|
|
51
|
-
"& .outline": {
|
|
52
|
-
"&::part(base)": {
|
|
53
|
-
color: "var(--sl-color-" + outlineColor + "-500)",
|
|
54
|
-
borderColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
55
|
-
backgroundColor: "transparent",
|
|
56
|
-
"&:hover": {
|
|
57
|
-
color: "var(--sl-color-primary-text)",
|
|
58
|
-
backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
"& .neutral": {
|
|
63
|
-
"&::part(base)": {
|
|
64
|
-
color: "var(--sl-color-primary-text)",
|
|
65
|
-
background: "var(--sl-color-neutral-500)",
|
|
66
|
-
"&:hover": {
|
|
67
|
-
opacity: "0.8",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
"& .mobile": {
|
|
72
|
-
"@media (max-width: 499px)": {
|
|
73
|
-
width: "100%",
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
const sheet = createStyleSheet(style);
|
|
79
|
-
const styleString = sheet.toString();
|
|
80
|
-
const vanillaStyle = `
|
|
81
|
-
:host{
|
|
82
|
-
display: contents;
|
|
83
|
-
}
|
|
84
|
-
${this.mobile &&
|
|
85
|
-
`
|
|
86
|
-
@media only screen and (max-width: 499px) {
|
|
87
|
-
:host {
|
|
88
|
-
display: block;
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
`}
|
|
93
|
-
`;
|
|
94
|
-
let classStack = "";
|
|
95
|
-
if (this.outline && this.buttonType != "default")
|
|
96
|
-
classStack += "outline ";
|
|
97
|
-
if (this.buttonType === "neutral")
|
|
98
|
-
classStack += "neutral ";
|
|
99
|
-
if (this.mobile)
|
|
100
|
-
classStack += "mobile ";
|
|
101
|
-
return (h$1("div", { class: sheet.classes.Button }, h$1("style", { type: "text/css" }, vanillaStyle, styleString), h$1("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (h$1("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, h$1("slot", null))));
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export { Scroll as sqm_scroll };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, i as isDemo, F as Fn, S as Sn, K, o as an } from './index.module-6c840c4e.js';
|
|
4
|
-
import { g as getProps } from './utils-334c1e34.js';
|
|
5
|
-
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
6
|
-
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
7
|
-
|
|
8
|
-
const USER_LOOKUP = dist.gql `
|
|
9
|
-
query checkUserVerification {
|
|
10
|
-
viewer {
|
|
11
|
-
... on User {
|
|
12
|
-
id
|
|
13
|
-
accountId
|
|
14
|
-
email
|
|
15
|
-
emailVerified
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
function useWidgetVerificationInternal() {
|
|
21
|
-
const userIdentity = K();
|
|
22
|
-
const [showCode, setShowCode] = Fn({
|
|
23
|
-
namespace: SHOW_CODE_NAMESPACE,
|
|
24
|
-
initialValue: false,
|
|
25
|
-
});
|
|
26
|
-
const [email, setEmail] = Fn({
|
|
27
|
-
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
28
|
-
initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
|
|
29
|
-
});
|
|
30
|
-
const setContext = Sn(VERIFICATION_PARENT_NAMESPACE);
|
|
31
|
-
const [loading, setLoading] = useState(true);
|
|
32
|
-
const [fetch] = an(USER_LOOKUP);
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
const checkUser = async () => {
|
|
35
|
-
var _a;
|
|
36
|
-
try {
|
|
37
|
-
const res = await fetch({});
|
|
38
|
-
if (!res || res instanceof Error)
|
|
39
|
-
throw new Error();
|
|
40
|
-
if ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified)
|
|
41
|
-
setContext(true);
|
|
42
|
-
}
|
|
43
|
-
catch (e) {
|
|
44
|
-
console.error("Could not fetch user information:", e);
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
setLoading(false);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
checkUser();
|
|
51
|
-
}, []);
|
|
52
|
-
const onVerification = () => {
|
|
53
|
-
setContext(true);
|
|
54
|
-
};
|
|
55
|
-
return { showCode, onVerification, loading };
|
|
56
|
-
}
|
|
57
|
-
const WidgetVerificationInternal = class {
|
|
58
|
-
constructor(hostRef) {
|
|
59
|
-
registerInstance(this, hostRef);
|
|
60
|
-
h(this);
|
|
61
|
-
}
|
|
62
|
-
disconnectedCallback() { }
|
|
63
|
-
getStepTextProps(prefix) {
|
|
64
|
-
const props = getProps(this);
|
|
65
|
-
return extractProps(props, prefix);
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
const { showCode, onVerification, loading } = isDemo()
|
|
69
|
-
? useDemoWidgetVerificationInternal()
|
|
70
|
-
: useWidgetVerificationInternal();
|
|
71
|
-
// TODO: Shoelace spinner is throwing errors
|
|
72
|
-
if (loading)
|
|
73
|
-
return h$1("div", null);
|
|
74
|
-
// if (loading) {
|
|
75
|
-
// return <sl-spinner style="font-size: 2rem;"></sl-spinner>;
|
|
76
|
-
// }
|
|
77
|
-
if (showCode) {
|
|
78
|
-
return (h$1("sqm-code-verification", Object.assign({ onVerification: onVerification }, this.getStepTextProps("codeStep_"))));
|
|
79
|
-
}
|
|
80
|
-
return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"))));
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
function useDemoWidgetVerificationInternal() {
|
|
84
|
-
const [showCode, setShowCode] = Fn({
|
|
85
|
-
namespace: SHOW_CODE_NAMESPACE,
|
|
86
|
-
initialValue: false,
|
|
87
|
-
});
|
|
88
|
-
const [email, setEmail] = Fn({
|
|
89
|
-
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
90
|
-
initialValue: undefined,
|
|
91
|
-
});
|
|
92
|
-
const setContext = Sn(VERIFICATION_PARENT_NAMESPACE);
|
|
93
|
-
const onVerification = () => {
|
|
94
|
-
setContext(true);
|
|
95
|
-
};
|
|
96
|
-
return { showCode, onVerification, loading: false };
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export { WidgetVerificationInternal as sqm_widget_verification_internal };
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { b as browser, n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { F as Fn, b as useCallback } from './index.module-6c840c4e.js';
|
|
4
|
-
import { g as getProps } from './utils-334c1e34.js';
|
|
5
|
-
import { V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
6
|
-
|
|
7
|
-
const debug = browser("sq:widget-verification");
|
|
8
|
-
function useTemplateChildren({ parent, callback }) {
|
|
9
|
-
const parentObserver = new MutationObserver(listenForTemplateChanges);
|
|
10
|
-
const childTemplateObserver = new MutationObserver(callback);
|
|
11
|
-
parentObserver.observe(parent, {
|
|
12
|
-
childList: true,
|
|
13
|
-
// We only care about immediate children templates
|
|
14
|
-
subtree: false,
|
|
15
|
-
});
|
|
16
|
-
listenForTemplateChanges({ addedNodes: parent.querySelectorAll("template") });
|
|
17
|
-
function listenForTemplateChanges(mutationList) {
|
|
18
|
-
var _a;
|
|
19
|
-
// Be smart, only look at the mutation list
|
|
20
|
-
(_a = mutationList.addedNodes) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
|
|
21
|
-
childTemplateObserver.observe(t.content, {
|
|
22
|
-
childList: true,
|
|
23
|
-
attributes: true,
|
|
24
|
-
// Look deep into the templates for re-rendering
|
|
25
|
-
subtree: true,
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return () => {
|
|
30
|
-
parentObserver.disconnect();
|
|
31
|
-
childTemplateObserver.disconnect();
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const WidgetVerification = class {
|
|
35
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
36
|
-
CODE STEP PROPS
|
|
37
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
38
|
-
constructor(hostRef) {
|
|
39
|
-
registerInstance(this, hostRef);
|
|
40
|
-
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
|
|
41
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
42
|
-
EMAIL STEP PROPS
|
|
43
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
44
|
-
/**
|
|
45
|
-
* @uiName Verify email widget header text
|
|
46
|
-
* @uiGroup Email Verification Step
|
|
47
|
-
*/
|
|
48
|
-
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
49
|
-
/**
|
|
50
|
-
* @uiName Send code to email alert header
|
|
51
|
-
* @uiGroup Email Verification Step
|
|
52
|
-
*/
|
|
53
|
-
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
54
|
-
/**
|
|
55
|
-
* @uiName Send code to email alert description
|
|
56
|
-
* @uiGroup Email Verification Step
|
|
57
|
-
*/
|
|
58
|
-
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
59
|
-
/**
|
|
60
|
-
* @uiName Email input label
|
|
61
|
-
* @uiGroup Email Verification Step
|
|
62
|
-
*/
|
|
63
|
-
this.emailStep_emailLabel = "Email";
|
|
64
|
-
/**
|
|
65
|
-
* @uiName Send code button text
|
|
66
|
-
* @uiGroup Email Verification Step
|
|
67
|
-
*/
|
|
68
|
-
this.emailStep_sendCodeText = "Send code";
|
|
69
|
-
/**
|
|
70
|
-
* @uiName Send code button text
|
|
71
|
-
* @uiGroup Email Verification Step
|
|
72
|
-
*/
|
|
73
|
-
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
74
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
75
|
-
EMAIL STEP PROPS
|
|
76
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
77
|
-
/**
|
|
78
|
-
* @uiName Verify code widget header text
|
|
79
|
-
* @uiGroup Code Verification Step
|
|
80
|
-
*/
|
|
81
|
-
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
82
|
-
/**
|
|
83
|
-
* @uiName Reverify code widget header text
|
|
84
|
-
* @uiGroup Code Verification Step
|
|
85
|
-
*/
|
|
86
|
-
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
87
|
-
/**
|
|
88
|
-
* Text displayed under verify button
|
|
89
|
-
* @uiName Resend code text
|
|
90
|
-
* @uiGroup Code Verification Step
|
|
91
|
-
*/
|
|
92
|
-
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
93
|
-
/**
|
|
94
|
-
* The link that appears in the resend code link
|
|
95
|
-
* @uiName Resend code label
|
|
96
|
-
* @uiGroup Code Verification Step
|
|
97
|
-
*/
|
|
98
|
-
this.codeStep_resendCodeLabel = "Resend code";
|
|
99
|
-
/**
|
|
100
|
-
* Link text displayed under verify button
|
|
101
|
-
* @uiName Resend code text
|
|
102
|
-
* @uiGroup Code Verification Step
|
|
103
|
-
*/
|
|
104
|
-
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
105
|
-
/**
|
|
106
|
-
* Error text displayed under verification input
|
|
107
|
-
* @uiName Invalid code text
|
|
108
|
-
* @uiGroup Code Verification Step
|
|
109
|
-
*/
|
|
110
|
-
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
111
|
-
/**
|
|
112
|
-
* @uiName Verify code button text
|
|
113
|
-
* @uiGroup Code Verification Step
|
|
114
|
-
*/
|
|
115
|
-
this.codeStep_verifyText = "Verify";
|
|
116
|
-
/**
|
|
117
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
118
|
-
* @uiName Network error message
|
|
119
|
-
* @uiGroup Code Verification Step
|
|
120
|
-
*/
|
|
121
|
-
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
122
|
-
h(this);
|
|
123
|
-
}
|
|
124
|
-
disconnectedCallback() { }
|
|
125
|
-
render() {
|
|
126
|
-
const [context, setContext] = Fn({
|
|
127
|
-
namespace: VERIFICATION_PARENT_NAMESPACE,
|
|
128
|
-
initialValue: false,
|
|
129
|
-
});
|
|
130
|
-
const [container, setContainer] = useState(undefined);
|
|
131
|
-
const [slot, setSlot] = useState(undefined);
|
|
132
|
-
const updateTemplates = useCallback(() => {
|
|
133
|
-
const isAuth = context;
|
|
134
|
-
const templates = slot.querySelectorAll(`template`);
|
|
135
|
-
const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
|
|
136
|
-
if (template) {
|
|
137
|
-
// use outerHTML if template's innerHTML is unset (only happens in Stencilbook)
|
|
138
|
-
const newContent = template.innerHTML || template.firstElementChild.outerHTML;
|
|
139
|
-
// if template contents are an exact match
|
|
140
|
-
if (newContent === container.innerHTML) {
|
|
141
|
-
debug("don't rerender");
|
|
142
|
-
}
|
|
143
|
-
else if (template) {
|
|
144
|
-
container.innerHTML = newContent;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
const plopTargets = Array.from(slot.children).filter((el) => el.tagName === "RAISINS-PLOP-TARGET");
|
|
148
|
-
// if editing in raisins
|
|
149
|
-
if (plopTargets.length) {
|
|
150
|
-
const loggedInPlopTargets = plopTargets.filter((el) => el.slot === "verified");
|
|
151
|
-
const loggedOutPlopTargets = plopTargets.filter((el) => el.slot === "not-verified");
|
|
152
|
-
loggedOutPlopTargets.forEach((target, i) => {
|
|
153
|
-
if (isAuth) {
|
|
154
|
-
target.style.display = "none";
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
// Place last plop target at the bottom of the parent
|
|
158
|
-
if (i === loggedOutPlopTargets.length - 1) {
|
|
159
|
-
target.style.bottom = "0px";
|
|
160
|
-
target.style.left = "0px";
|
|
161
|
-
target.style.right = "0px";
|
|
162
|
-
target.style.position = "absolute";
|
|
163
|
-
}
|
|
164
|
-
target.style.height = "25px";
|
|
165
|
-
});
|
|
166
|
-
loggedInPlopTargets.forEach((target, i) => {
|
|
167
|
-
if (!isAuth) {
|
|
168
|
-
target.style.display = "none";
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
// Place last plop target at the bottom of the parent
|
|
172
|
-
if (i === loggedInPlopTargets.length - 1) {
|
|
173
|
-
target.style.bottom = "0px";
|
|
174
|
-
target.style.left = "0px";
|
|
175
|
-
target.style.right = "0px";
|
|
176
|
-
target.style.position = "absolute";
|
|
177
|
-
}
|
|
178
|
-
target.style.height = "25px";
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}, [container, slot, context]);
|
|
182
|
-
useEffect(() => {
|
|
183
|
-
if (!container || !slot) {
|
|
184
|
-
debug("DOM not ready:");
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
// Run on first render
|
|
188
|
-
updateTemplates();
|
|
189
|
-
return useTemplateChildren({ parent: slot, callback: updateTemplates });
|
|
190
|
-
}, [slot, container, context]);
|
|
191
|
-
// useEffect(() => {
|
|
192
|
-
// const host = useHost();
|
|
193
|
-
// const callback = (e: CustomEvent) => {
|
|
194
|
-
// e.stopPropagation();
|
|
195
|
-
// setContext({ token: e.detail.token });
|
|
196
|
-
// };
|
|
197
|
-
// host.addEventListener(VERIFICATION_EVENT_KEY, callback);
|
|
198
|
-
// return () => {
|
|
199
|
-
// host.removeEventListener(VERIFICATION_EVENT_KEY, callback);
|
|
200
|
-
// };
|
|
201
|
-
// }, []);
|
|
202
|
-
return (h$1(Host, null, h$1("div", { ref: setSlot, style: { display: "contents" } }, h$1("template", { slot: "not-verified" }, h$1("sqm-widget-verification-internal", Object.assign({}, getProps(this)))), h$1("slot", { name: "not-verified" }), h$1("slot", { name: "verified" })), h$1("div", { ref: setContainer }, h$1("slot", { name: "shown" }))));
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export { WidgetVerification as sqm_widget_verification };
|