@saasquatch/mint-components 1.13.0-0 → 1.13.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/{GenericTableView-7ef786c3.js → GenericTableView-a9f4ba75.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-2aa1bd99.js → ShadowViewAddon-44cb1a98.js} +29 -29
- package/dist/cjs/{copy-text-view-43e8349f.js → copy-text-view-9b950efe.js} +10 -10
- package/dist/cjs/{email-registration-view-4eeee3e4.js → email-registration-view-55b378dc.js} +1 -1
- package/dist/cjs/{global-d9abaf4d.js → global-19fc8a7a.js} +3 -3
- package/dist/cjs/{index-3cf5ef3d.js → index-a29c60ef.js} +10 -0
- package/dist/cjs/{index.module-ccf9bd9c.js → index.module-57703088.js} +23 -58
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-14ae1f8a.js → luxon-2926d85f.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-a384d9f5.js → mockRewardData-272e22d6.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-1e63c82b.js → re-render-35b016ed.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-a3abee0b.js → sqm-asset-card-view-21ddf04f.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +65 -65
- package/dist/cjs/{sqm-base-registration-form-view-e4a74dee.js → sqm-base-registration-form-view-d5685747.js} +2 -2
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +93 -71
- package/dist/cjs/{sqm-close-button-view-0cdada3a.js → sqm-close-button-view-ea3fa23b.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +5 -5
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +53 -28
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-a13d1c7f.js → sqm-invoice-table-view-9dfa2a16.js} +2 -2
- package/dist/cjs/{sqm-leaderboard-rank-view-133f8d95.js → sqm-leaderboard-rank-view-d39a55d8.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-64ca6abe.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-38519acf.js → sqm-navigation-sidebar-item-view-9bba5f7e.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-37209a17.js → sqm-navigation-sidebar-view-17111896.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +13 -13
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-9a36f5ed.js → sqm-portal-container-view-4f15143a.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6e1e80e7.js → sqm-portal-email-verification-view-98d84549.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-forgot-password-view-97903679.js → sqm-portal-forgot-password-view-78f19ef9.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +78 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-f4489585.js → sqm-portal-profile-view-bae28ea0.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-registration-form-view-add61eb6.js → sqm-portal-registration-form-view-e947a5b3.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-reset-password-view-0ed5419e.js → sqm-portal-reset-password-view-fe602822.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-verify-email-view-cd2c3086.js → sqm-portal-verify-email-view-7b678f34.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +11 -11
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +15 -15
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +153 -151
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-a22f50aa.js → sqm-text-span-view-0aa82125.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-ece1ee46.js → stencil-hooks.module-3a336b0f.js} +1 -1
- package/dist/cjs/{useChildElements-438cf387.js → useChildElements-854cd1e5.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-7d91867a.js → useInstantAccessRegistration-daff8290.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-0d4fbcde.js → usePortalRegistrationForm-a89d736e.js} +9 -7
- package/dist/cjs/{useReferralTable-6b4920f9.js → useReferralTable-283d2316.js} +11 -11
- package/dist/cjs/useRegistrationFormState-986b5ea1.js +27 -0
- package/dist/cjs/{utilities-27e9535b.js → utilities-c135f16f.js} +2 -2
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +14 -3
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +60 -30
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +43 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +43 -63
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +11 -9
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +24 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +8 -14
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +24 -4
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -0
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +13 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -3
- package/dist/esm/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm/{ShadowViewAddon-af23bc54.js → ShadowViewAddon-eba44767.js} +29 -29
- package/dist/esm/{copy-text-view-61eebf5d.js → copy-text-view-b060162f.js} +10 -10
- package/dist/esm/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm/{global-3611a2b7.js → global-bedc4329.js} +3 -3
- package/dist/esm/{index-60f16d0a.js → index-91e7729f.js} +10 -0
- package/dist/esm/{index.module-f3d96fbb.js → index.module-a2989d3c.js} +6 -41
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-3b630de2.js → re-render-268bb9c8.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +65 -65
- package/dist/esm/{sqm-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +2 -2
- package/dist/esm/sqm-big-stat_38.entry.js +93 -71
- package/dist/esm/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +5 -5
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +53 -28
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +2 -2
- package/dist/esm/{sqm-leaderboard-rank-view-7cd0de83.js → sqm-leaderboard-rank-view-753c8d4a.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-pagination_3.entry.js +13 -13
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -11
- package/dist/esm/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +78 -17
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +10 -10
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/{sqm-portal-registration-form-view-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -10
- package/dist/esm/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -10
- package/dist/esm/sqm-referral-table_11.entry.js +11 -11
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +15 -15
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +153 -151
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +6 -6
- package/dist/esm/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm/{useChildElements-d1d3fedd.js → useChildElements-38c11321.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +4 -4
- package/dist/esm/{usePortalRegistrationForm-e8ec6d4e.js → usePortalRegistrationForm-5715c7a5.js} +9 -7
- package/dist/esm/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +11 -11
- package/dist/esm/useRegistrationFormState-01cdd8c7.js +23 -0
- package/dist/esm/{utilities-33996ce7.js → utilities-863d06d1.js} +2 -2
- package/dist/esm-es5/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-eba44767.js +1 -0
- package/dist/esm-es5/copy-text-view-b060162f.js +1 -0
- package/dist/esm-es5/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm-es5/{global-3611a2b7.js → global-bedc4329.js} +2 -2
- package/dist/esm-es5/{index-60f16d0a.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-a2989d3c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-3b630de2.js → re-render-268bb9c8.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.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-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.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-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.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-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm-es5/useChildElements-38c11321.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-5715c7a5.js +1 -0
- package/dist/esm-es5/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-01cdd8c7.js +1 -0
- package/dist/esm-es5/{utilities-33996ce7.js → utilities-863d06d1.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-76769baa.entry.js → p-0323586f.entry.js} +15 -15
- package/dist/mint-components/{p-5b6cf6cd.system.js → p-046f4631.system.js} +1 -1
- package/dist/mint-components/{p-863340dc.entry.js → p-0873eaa8.entry.js} +1 -1
- package/dist/mint-components/p-09c5e3ee.system.js +1 -0
- package/dist/mint-components/{p-dacefee2.entry.js → p-0aa62b64.entry.js} +1 -1
- package/dist/mint-components/p-0e53c59e.system.js +1 -0
- package/dist/mint-components/p-127e66c2.system.js +1 -0
- package/dist/mint-components/{p-1ab3f305.system.js → p-14a65f29.system.js} +1 -1
- package/dist/mint-components/{p-aed99250.js → p-16c7bfda.js} +3 -3
- package/dist/mint-components/{p-22110634.js → p-1833c4f5.js} +1 -1
- package/dist/mint-components/{p-3b923175.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/{p-38b8050c.system.entry.js → p-1b0c58bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-0aa76ad0.system.entry.js → p-1b3ab15a.system.entry.js} +1 -1
- package/dist/mint-components/p-1c5cffae.js +1 -0
- package/dist/mint-components/{p-682450a8.js → p-1ef299d7.js} +2 -2
- package/dist/mint-components/{p-1d58a8ff.entry.js → p-2126e1e6.entry.js} +1 -1
- package/dist/mint-components/{p-88197cfd.js → p-229f797b.js} +1 -1
- package/dist/mint-components/{p-c4c922fc.system.entry.js → p-24c4e0b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e56447fd.js → p-24db5c70.js} +1 -1
- package/dist/mint-components/{p-5309ebf3.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-26ec2894.entry.js +1 -0
- package/dist/mint-components/{p-5fb1bcb5.entry.js → p-28042d23.entry.js} +1 -1
- package/dist/mint-components/{p-6a95e6b7.js → p-2ab3b8d6.js} +2 -2
- package/dist/mint-components/{p-75956e50.entry.js → p-2bbff88f.entry.js} +1 -1
- package/dist/mint-components/{p-bd5706ba.entry.js → p-2dc5e60a.entry.js} +1 -1
- package/dist/mint-components/{p-c1ede4f5.system.js → p-2dca9e1a.system.js} +1 -1
- package/dist/mint-components/p-30108c0e.js +1 -0
- package/dist/mint-components/p-31a691af.js +1 -0
- package/dist/mint-components/p-35698aaa.system.js +1 -0
- package/dist/mint-components/{p-aa5446c1.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/{p-222fa722.system.js → p-38e5c429.system.js} +1 -1
- package/dist/mint-components/p-3972037c.system.entry.js +1 -0
- package/dist/mint-components/p-39b1a7fe.js +1 -0
- package/dist/mint-components/p-3bdd338c.system.js +1 -0
- package/dist/mint-components/{p-f8047aab.entry.js → p-3e1b7fb4.entry.js} +1 -1
- package/dist/mint-components/{p-6465b781.js → p-3ec660e9.js} +1 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/p-40e99b24.js +1 -0
- package/dist/mint-components/{p-93124bdb.entry.js → p-4448febd.entry.js} +1 -1
- package/dist/mint-components/{p-aeea67a3.entry.js → p-45436d5a.entry.js} +1 -1
- package/dist/mint-components/{p-64af8fa4.system.js → p-46ab5f80.system.js} +1 -1
- package/dist/mint-components/{p-58bcece7.system.js → p-48135f99.system.js} +1 -1
- package/dist/mint-components/{p-697d6e54.system.js → p-492b70db.system.js} +1 -1
- package/dist/mint-components/{p-683cfd07.js → p-492fdaf9.js} +1 -1
- package/dist/mint-components/{p-6ac9d2cf.entry.js → p-4ae54b04.entry.js} +1 -1
- package/dist/mint-components/{p-c33ccfb7.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-9259fd35.system.entry.js → p-4bcb04aa.system.entry.js} +1 -1
- package/dist/mint-components/p-4daa3f8a.system.entry.js +1 -0
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-a631db44.system.js → p-4f45be94.system.js} +1 -1
- package/dist/mint-components/{p-d47569d0.js → p-506679e9.js} +1 -1
- package/dist/mint-components/p-53aaa0a4.entry.js +1 -0
- package/dist/mint-components/p-550ef977.js +13 -0
- package/dist/mint-components/p-571c451e.entry.js +1 -0
- package/dist/mint-components/{p-12d27b9b.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-e64c49dd.system.js → p-6055eb4c.system.js} +1 -1
- package/dist/mint-components/{p-3dc9a448.entry.js → p-618e1342.entry.js} +1 -1
- package/dist/mint-components/{p-b33381a7.js → p-626e9e84.js} +1 -1
- package/dist/mint-components/{p-ffe78243.js → p-62f6627d.js} +1 -1
- package/dist/mint-components/{p-0fd20804.system.entry.js → p-635aaf11.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3499953.entry.js → p-65ba9e94.entry.js} +1 -1
- package/dist/mint-components/{p-ec379cf4.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/{p-d477a07b.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/{p-71d6b762.js → p-6de85677.js} +1 -1
- package/dist/mint-components/{p-f8b41805.system.js → p-7166caa6.system.js} +1 -1
- package/dist/mint-components/{p-9d078f60.js → p-726a9924.js} +1 -1
- package/dist/mint-components/{p-7d2d59ec.system.entry.js → p-731aa5c6.system.entry.js} +1 -1
- package/dist/mint-components/p-749c7c9c.system.js +1 -0
- package/dist/mint-components/{p-e864a155.entry.js → p-75f50e5a.entry.js} +1 -1
- package/dist/mint-components/{p-c2bc302f.system.entry.js → p-7989a098.system.entry.js} +1 -1
- package/dist/mint-components/p-79ea1597.system.entry.js +1 -0
- package/dist/mint-components/{p-9716a83b.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/{p-b7edef12.system.entry.js → p-7bcf4467.system.entry.js} +1 -1
- package/dist/mint-components/{p-3dbcd42a.system.entry.js → p-7cb919d4.system.entry.js} +1 -1
- package/dist/mint-components/{p-7bc9308c.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7175fc2.system.entry.js → p-8056fd5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a2a3d9dc.entry.js → p-80fc549b.entry.js} +1 -1
- package/dist/mint-components/{p-0e89ac7f.system.entry.js → p-81665df6.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b6200b3.js → p-837a0fdd.js} +1 -1
- package/dist/mint-components/{p-3ae32130.system.js → p-8413ade9.system.js} +1 -1
- package/dist/mint-components/{p-0725d1a7.system.entry.js → p-857947fa.system.entry.js} +1 -1
- package/dist/mint-components/p-868f176e.entry.js +1 -0
- package/dist/mint-components/{p-500a2bff.entry.js → p-8975c2be.entry.js} +1 -1
- package/dist/mint-components/p-8987607b.system.entry.js +1 -0
- package/dist/mint-components/{p-5c714029.js → p-8d77feee.js} +1 -1
- package/dist/mint-components/{p-2dff4fb2.js → p-92816d1f.js} +1 -1
- package/dist/mint-components/{p-7141d536.system.entry.js → p-92a25556.system.entry.js} +1 -1
- package/dist/mint-components/p-95c64cfd.system.js +1 -0
- package/dist/mint-components/{p-8f705bea.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-96b48c2b.system.js +1 -0
- package/dist/mint-components/{p-9e4e3d5f.system.js → p-97d4d651.system.js} +1 -1
- package/dist/mint-components/{p-b043693d.system.entry.js → p-988ea164.system.entry.js} +1 -1
- package/dist/mint-components/{p-ff19bf56.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/{p-9d954277.system.entry.js → p-9a0c3ed9.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc305236.system.entry.js → p-9a16a3d8.system.entry.js} +1 -1
- package/dist/mint-components/p-9b779add.entry.js +1 -0
- package/dist/mint-components/p-9e49479a.entry.js +13 -0
- package/dist/mint-components/p-9f231a48.system.entry.js +1 -0
- package/dist/mint-components/p-a1f40614.system.entry.js +1 -0
- package/dist/mint-components/{p-44c4a54f.system.entry.js → p-a21d1a30.system.entry.js} +1 -1
- package/dist/mint-components/{p-70eafbbd.system.entry.js → p-a4a5beb5.system.entry.js} +1 -1
- package/dist/mint-components/{p-15b2063c.system.js → p-a8524459.system.js} +1 -1
- package/dist/mint-components/{p-9fff2218.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/{p-273ad080.system.entry.js → p-aaeaff1a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac2b7eb8.system.js +1 -0
- package/dist/mint-components/{p-eac81420.entry.js → p-b114e746.entry.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-f81cc2cd.entry.js → p-b611eefd.entry.js} +1 -1
- package/dist/mint-components/{p-5057380a.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-d59c19ba.entry.js → p-b9d17fa1.entry.js} +2 -2
- package/dist/mint-components/{p-14dc52dc.system.entry.js → p-bd4810c7.system.entry.js} +1 -1
- package/dist/mint-components/p-be0c205a.system.entry.js +1 -0
- package/dist/mint-components/{p-8fb2af73.system.js → p-bfc7cfc0.system.js} +1 -1
- package/dist/mint-components/{p-e605fe66.entry.js → p-c470caf6.entry.js} +2 -2
- package/dist/mint-components/p-c4b21562.system.entry.js +1 -0
- package/dist/mint-components/{p-003fb0ae.system.js → p-c6a8c075.system.js} +1 -1
- package/dist/mint-components/{p-b11f43ee.js → p-c9f1dde7.js} +1 -1
- package/dist/mint-components/p-ca04737a.entry.js +1 -0
- package/dist/mint-components/{p-adc14a77.system.entry.js → p-ca740238.system.entry.js} +1 -1
- package/dist/mint-components/{p-0954e95d.entry.js → p-cd480e3f.entry.js} +2 -2
- package/dist/mint-components/{p-b619a5e0.js → p-cd651f81.js} +1 -1
- package/dist/mint-components/p-cf505e92.system.js +1 -0
- package/dist/mint-components/{p-a1cb66c0.system.js → p-d671e44e.system.js} +1 -1
- package/dist/mint-components/{p-9c7a031a.js → p-d87ce3d2.js} +1 -1
- package/dist/mint-components/p-de6d3392.entry.js +1 -0
- package/dist/mint-components/p-de9afac2.system.entry.js +1 -0
- package/dist/mint-components/{p-e0c608e4.system.js → p-e07bc6c4.system.js} +1 -1
- package/dist/mint-components/{p-823f61da.entry.js → p-e0b344fb.entry.js} +1 -1
- package/dist/mint-components/{p-3c00282b.entry.js → p-e544bb9a.entry.js} +1 -1
- package/dist/mint-components/p-ea9fd654.entry.js +9 -0
- package/dist/mint-components/{p-cd39acd0.system.entry.js → p-ebdcea27.system.entry.js} +1 -1
- package/dist/mint-components/p-f0c23e81.system.entry.js +1 -0
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/{p-a67e8ef4.system.js → p-f2fd1910.system.js} +1 -1
- package/dist/mint-components/{p-070fa30d.entry.js → p-f32c8cb5.entry.js} +1 -1
- package/dist/mint-components/{p-1739dfb8.entry.js → p-f4a1dc19.entry.js} +1 -1
- package/dist/mint-components/{p-a8bf33fc.js → p-f708da7b.js} +1 -1
- package/dist/mint-components/{p-7e3ada1b.system.js → p-f7c99803.system.js} +1 -1
- package/dist/mint-components/p-f940190a.js +1 -0
- package/dist/mint-components/{p-ef7b966e.system.js → p-f9de8a59.system.js} +1 -1
- package/dist/mint-components/{p-8799b28f.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/{p-f8450975.system.entry.js → p-fe4a9dfe.system.entry.js} +1 -1
- package/dist/types/components/sqm-base-registration/BaseRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +5 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +4 -0
- package/dist/types/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.d.ts +0 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- package/dist/types/components.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -2
- package/dist/cjs/useRegistrationFormState-5911d016.js +0 -14
- package/dist/esm/useRegistrationFormState-33f9cb24.js +0 -11
- package/dist/esm-es5/ShadowViewAddon-af23bc54.js +0 -1
- package/dist/esm-es5/copy-text-view-61eebf5d.js +0 -1
- package/dist/esm-es5/index.module-f3d96fbb.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-7cd0de83.js +0 -1
- package/dist/esm-es5/useChildElements-d1d3fedd.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-e8ec6d4e.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-33f9cb24.js +0 -1
- package/dist/mint-components/p-0c4c5874.js +0 -1
- package/dist/mint-components/p-0fe8fbe1.system.entry.js +0 -1
- package/dist/mint-components/p-13fe7290.js +0 -1
- package/dist/mint-components/p-192689fc.entry.js +0 -1
- package/dist/mint-components/p-27f281f4.system.js +0 -1
- package/dist/mint-components/p-38bd81d1.system.js +0 -1
- package/dist/mint-components/p-3c04f8d1.system.js +0 -1
- package/dist/mint-components/p-3d4978ca.system.entry.js +0 -1
- package/dist/mint-components/p-3e8e2f37.system.js +0 -1
- package/dist/mint-components/p-3f3cd0b9.system.entry.js +0 -1
- package/dist/mint-components/p-455a3f54.system.entry.js +0 -1
- package/dist/mint-components/p-4692d45d.system.entry.js +0 -1
- package/dist/mint-components/p-478e8baa.system.js +0 -1
- package/dist/mint-components/p-53238aee.js +0 -1
- package/dist/mint-components/p-5dd51c6f.entry.js +0 -9
- package/dist/mint-components/p-5e61bdfd.entry.js +0 -1
- package/dist/mint-components/p-6673a331.system.js +0 -1
- package/dist/mint-components/p-7027b14d.js +0 -1
- package/dist/mint-components/p-705de128.js +0 -13
- package/dist/mint-components/p-74d5d3d1.entry.js +0 -1
- package/dist/mint-components/p-7ef0cb0a.system.js +0 -1
- package/dist/mint-components/p-7facf5cd.system.entry.js +0 -1
- package/dist/mint-components/p-8329e1fa.system.js +0 -1
- package/dist/mint-components/p-8525931d.system.entry.js +0 -1
- package/dist/mint-components/p-8a0a87e7.system.entry.js +0 -1
- package/dist/mint-components/p-920b48ad.system.entry.js +0 -1
- package/dist/mint-components/p-944918d9.entry.js +0 -1
- package/dist/mint-components/p-989fdd2e.system.js +0 -1
- package/dist/mint-components/p-a9166b6a.entry.js +0 -1
- package/dist/mint-components/p-ad00a797.system.entry.js +0 -1
- package/dist/mint-components/p-b402df18.js +0 -1
- package/dist/mint-components/p-b667d890.system.entry.js +0 -1
- package/dist/mint-components/p-b6a4ce83.entry.js +0 -1
- package/dist/mint-components/p-b6f41077.entry.js +0 -1
- package/dist/mint-components/p-c56b47e5.system.js +0 -1
- package/dist/mint-components/p-d23d5113.js +0 -1
- package/dist/mint-components/p-d4c0d53f.js +0 -1
- package/dist/mint-components/p-d9dd65fd.entry.js +0 -1
- package/dist/mint-components/p-e10be944.entry.js +0 -1
- package/dist/mint-components/p-ec9c8ced.system.js +0 -1
- package/dist/mint-components/p-fde23de1.entry.js +0 -13
|
@@ -11,6 +11,7 @@ const defaultProps = {
|
|
|
11
11
|
registerPath: "/register",
|
|
12
12
|
},
|
|
13
13
|
callbacks: {
|
|
14
|
+
googleSubmit: async () => { },
|
|
14
15
|
submit: async (e) => await e,
|
|
15
16
|
},
|
|
16
17
|
content: {
|
|
@@ -25,9 +26,12 @@ const errorProps = {
|
|
|
25
26
|
registerPath: "/register",
|
|
26
27
|
},
|
|
27
28
|
callbacks: {
|
|
29
|
+
googleSubmit: async () => { },
|
|
28
30
|
submit: async (e) => await e,
|
|
29
31
|
},
|
|
30
|
-
content: {
|
|
32
|
+
content: {
|
|
33
|
+
pageLabel: "Sign in to your account",
|
|
34
|
+
},
|
|
31
35
|
};
|
|
32
36
|
const loadingProps = {
|
|
33
37
|
states: {
|
|
@@ -37,6 +41,7 @@ const loadingProps = {
|
|
|
37
41
|
registerPath: "/register",
|
|
38
42
|
},
|
|
39
43
|
callbacks: {
|
|
44
|
+
googleSubmit: async () => { },
|
|
40
45
|
submit: async (e) => await e,
|
|
41
46
|
},
|
|
42
47
|
content: {
|
|
@@ -44,12 +49,23 @@ const loadingProps = {
|
|
|
44
49
|
},
|
|
45
50
|
};
|
|
46
51
|
export const Default = () => (h("sqm-portal-login", { showGoogleLogin: false, demoData: { ...defaultProps } }));
|
|
47
|
-
export const IsGoogle = () => (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
export const IsGoogle = () => (
|
|
53
|
+
// <sqm-portal-login
|
|
54
|
+
// showGoogleLogin
|
|
55
|
+
// demoData={{
|
|
56
|
+
// ...defaultProps,
|
|
57
|
+
// content: {
|
|
58
|
+
// googleButton: <sl-button>Sign in with Google</sl-button>,
|
|
59
|
+
// },
|
|
60
|
+
// states: { ...defaultProps.states },
|
|
61
|
+
// }}
|
|
62
|
+
// ></sqm-portal-login>
|
|
63
|
+
h(PortalLoginView, Object.assign({}, defaultProps, { content: {
|
|
64
|
+
secondaryButton: (h("span", null,
|
|
65
|
+
"Don't have an account?",
|
|
66
|
+
" ",
|
|
67
|
+
h("sl-button", { style: { width: "50px" }, size: "large", type: "text" }, "Register"))),
|
|
68
|
+
googleButton: h("sl-button", null, "Sign in with Google"),
|
|
69
|
+
} })));
|
|
54
70
|
export const LoginWithError = () => h(PortalLoginView, Object.assign({}, errorProps));
|
|
55
71
|
export const LoginLoading = () => h(PortalLoginView, Object.assign({}, loadingProps));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isDemo, navigation } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import {
|
|
2
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
5
|
import { PortalLoginView } from "./sqm-portal-login-view";
|
|
@@ -67,7 +67,7 @@ export class PortalLogin {
|
|
|
67
67
|
/**
|
|
68
68
|
* @undocumented
|
|
69
69
|
*/
|
|
70
|
-
this.showGoogleLogin =
|
|
70
|
+
this.showGoogleLogin = false;
|
|
71
71
|
withHooks(this);
|
|
72
72
|
}
|
|
73
73
|
disconnectedCallback() { }
|
|
@@ -75,7 +75,6 @@ export class PortalLogin {
|
|
|
75
75
|
const { states, callbacks } = isDemo()
|
|
76
76
|
? useLoginDemo(this)
|
|
77
77
|
: usePortalLogin(this);
|
|
78
|
-
// AL: TODO styling cleanup
|
|
79
78
|
const styles = {
|
|
80
79
|
RegisterButton: {
|
|
81
80
|
"&::part(label)": {
|
|
@@ -88,13 +87,13 @@ export class PortalLogin {
|
|
|
88
87
|
const content = {
|
|
89
88
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
90
89
|
h("a", { onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
91
|
-
googleButton: this.showGoogleLogin ? (h("sqm-google-sign-in", { onInitComplete:
|
|
90
|
+
googleButton: this.showGoogleLogin ? (h("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })) : null,
|
|
92
91
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
93
92
|
h("style", null, styleString),
|
|
94
93
|
this.showGoogleLogin ? (h("span", null,
|
|
95
94
|
this.registerCTA,
|
|
96
95
|
" ",
|
|
97
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel))) : (h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath) }, this.registerLabel)))),
|
|
96
|
+
h("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel))) : (h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath) }, this.registerLabel)))),
|
|
98
97
|
emailLabel: this.emailLabel,
|
|
99
98
|
passwordLabel: this.passwordLabel,
|
|
100
99
|
submitLabel: this.submitLabel,
|
|
@@ -367,7 +366,7 @@ export class PortalLogin {
|
|
|
367
366
|
},
|
|
368
367
|
"attribute": "show-google-login",
|
|
369
368
|
"reflect": false,
|
|
370
|
-
"defaultValue": "
|
|
369
|
+
"defaultValue": "false"
|
|
371
370
|
},
|
|
372
371
|
"demoData": {
|
|
373
372
|
"type": "unknown",
|
|
@@ -414,6 +413,9 @@ function useLoginDemo(props) {
|
|
|
414
413
|
showLoginForm: "manual",
|
|
415
414
|
},
|
|
416
415
|
callbacks: {
|
|
416
|
+
googleSubmit: async () => {
|
|
417
|
+
console.log("google submit");
|
|
418
|
+
},
|
|
417
419
|
submit: async (_event) => {
|
|
418
420
|
console.log("submit");
|
|
419
421
|
},
|
|
@@ -423,11 +425,3 @@ function useLoginDemo(props) {
|
|
|
423
425
|
},
|
|
424
426
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
425
427
|
}
|
|
426
|
-
function useGoogleDemo() {
|
|
427
|
-
const [showLoginForm, setShowLoginForm] = useState({
|
|
428
|
-
mode: "manual",
|
|
429
|
-
});
|
|
430
|
-
return {
|
|
431
|
-
showLoginForm,
|
|
432
|
-
};
|
|
433
|
-
}
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useState } from "@saasquatch/universal-hooks";
|
|
3
|
-
import { navigation, useAuthenticateWithEmailAndPasswordMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
+
import { navigation, useAuthenticateWithGoogle, useAuthenticateWithEmailAndPasswordMutation, } from "@saasquatch/component-boilerplate";
|
|
4
4
|
import { sanitizeUrlPath } from "../../utils/utils";
|
|
5
5
|
export function usePortalLogin(props) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
7
7
|
const [request, { loading, errors, data }] = useAuthenticateWithEmailAndPasswordMutation();
|
|
8
|
+
const [loginWithGoogle, { loading: gLoading, errors: gErrors }] = useAuthenticateWithGoogle();
|
|
8
9
|
const [error, setError] = useState("");
|
|
9
10
|
const urlParams = new URLSearchParams(navigation.location.search);
|
|
10
11
|
const nextPageOverride = urlParams.get("nextPage");
|
|
12
|
+
const googleSubmit = async (e) => {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
15
|
+
return;
|
|
16
|
+
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
17
|
+
if (result instanceof Error) {
|
|
18
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
19
|
+
setError(props.networkErrorMessage);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
23
|
+
urlParams.delete("nextPage");
|
|
24
|
+
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
25
|
+
navigation.push(url.href);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
11
28
|
const submit = async (event) => {
|
|
12
29
|
var _a, _b;
|
|
13
30
|
setError("");
|
|
@@ -30,14 +47,17 @@ export function usePortalLogin(props) {
|
|
|
30
47
|
};
|
|
31
48
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
32
49
|
error;
|
|
50
|
+
const googleErrorMessage = ((_l = (_k = (_j = (_h = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.extensions) === null || _l === void 0 ? void 0 : _l.message) || ((_p = (_o = (_m = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _m === void 0 ? void 0 : _m.errors) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.message) ||
|
|
51
|
+
error;
|
|
33
52
|
return {
|
|
34
53
|
states: {
|
|
35
|
-
loading,
|
|
36
|
-
error: errorMessage,
|
|
54
|
+
loading: loading || gLoading,
|
|
55
|
+
error: errorMessage || googleErrorMessage,
|
|
37
56
|
registerPath: props.registerPath,
|
|
38
57
|
forgotPasswordPath: props.forgotPasswordPath,
|
|
39
58
|
},
|
|
40
59
|
callbacks: {
|
|
60
|
+
googleSubmit,
|
|
41
61
|
submit,
|
|
42
62
|
},
|
|
43
63
|
};
|
package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js
CHANGED
|
@@ -100,9 +100,11 @@ export function usePortalRegistrationForm(props) {
|
|
|
100
100
|
delete formData.password;
|
|
101
101
|
delete formData.confirmPassword;
|
|
102
102
|
const redirectPath = props.redirectPath;
|
|
103
|
+
const _googleOAuthIdToken = registrationFormState._googleOAuthIdToken;
|
|
103
104
|
const variables = {
|
|
104
105
|
key: props.formKey,
|
|
105
106
|
formData: {
|
|
107
|
+
...(_googleOAuthIdToken ? { _googleOAuthIdToken } : {}),
|
|
106
108
|
locale,
|
|
107
109
|
email,
|
|
108
110
|
password,
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { useHost } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useDomContextState } from "@saasquatch/dom-context-hooks";
|
|
3
|
+
import { useDomContext } from "@saasquatch/stencil-hooks";
|
|
3
4
|
export const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
5
|
+
const REGISTRATION_FORM_STATE_CONTEXT_INTERNAL = "sq:registration-form-state-internal";
|
|
6
|
+
export function useRegistrationForm() {
|
|
7
|
+
const parent = useDomContext(REGISTRATION_FORM_STATE_CONTEXT_INTERNAL);
|
|
8
|
+
const parentValue = useDomContext(REGISTRATION_FORM_STATE_CONTEXT);
|
|
9
|
+
if (!parent)
|
|
10
|
+
return [undefined, undefined];
|
|
11
|
+
return [parentValue, parent[1]];
|
|
12
|
+
}
|
|
4
13
|
export function useRegistrationFormState(formState) {
|
|
5
14
|
const host = useHost();
|
|
6
15
|
const [registrationFormState, setRegistrationFormState] = useDomContextState(host, REGISTRATION_FORM_STATE_CONTEXT, formState);
|
|
16
|
+
useDomContextState(host, REGISTRATION_FORM_STATE_CONTEXT_INTERNAL, [
|
|
17
|
+
registrationFormState,
|
|
18
|
+
setRegistrationFormState,
|
|
19
|
+
]);
|
|
7
20
|
return { registrationFormState, setRegistrationFormState };
|
|
8
21
|
}
|
|
@@ -289,7 +289,6 @@ export const PayoutFailed = () => {
|
|
|
289
289
|
},
|
|
290
290
|
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
291
291
|
};
|
|
292
|
-
// AL: TODO payout cancelled
|
|
293
292
|
export const PayoutCancelled = () => {
|
|
294
293
|
return (h("sqm-referral-table-rewards-cell", { rewards: [
|
|
295
294
|
{
|
|
@@ -224,9 +224,7 @@ export const SourceCellDeletedUser = () => {
|
|
|
224
224
|
return (h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...referral(null) }, referralText: "Referral to", deletedUserText: "Deleted User" }));
|
|
225
225
|
};
|
|
226
226
|
export const SourceCellDeletedReferral = () => {
|
|
227
|
-
return (
|
|
228
|
-
// AL: TODO
|
|
229
|
-
h("sqm-rewards-table-source-cell", {
|
|
227
|
+
return (h("sqm-rewards-table-source-cell", {
|
|
230
228
|
//@ts-ignore
|
|
231
229
|
reward: { ...rewardsData, ...deletedReferral(null) }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
232
230
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { h, c as Host, d as getAssetPath, g as getElement } from './index-
|
|
2
|
-
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { h, c as Host, d as getAssetPath, g as getElement } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-bedc4329.js';
|
|
4
|
+
import { d as dist, H, J, F as Fn, w as wn, $ as $e, B, g as getEnvironmentSDK, L } from './index.module-a2989d3c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-
|
|
8
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-b060162f.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
-
import { l as luxon } from './luxon-
|
|
12
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
10
|
+
import { u as useChildElements } from './useChildElements-38c11321.js';
|
|
11
|
+
import { l as luxon } from './luxon-8d51c92b.js';
|
|
12
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
13
13
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
14
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
15
|
-
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-
|
|
14
|
+
import { a as isValidColor, b as isMobile } from './utilities-863d06d1.js';
|
|
15
|
+
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-1683ae32.js';
|
|
16
16
|
|
|
17
17
|
const medium = {
|
|
18
18
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -373,13 +373,13 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
373
373
|
`;
|
|
374
374
|
function useShareLink(props) {
|
|
375
375
|
var _a, _b;
|
|
376
|
-
const { programId =
|
|
377
|
-
const user =
|
|
378
|
-
const engagementMedium =
|
|
379
|
-
const contextData =
|
|
380
|
-
const { data } =
|
|
381
|
-
const [sendLoadEvent] =
|
|
382
|
-
const [setCopied, copiedRes] =
|
|
376
|
+
const { programId = H() } = props;
|
|
377
|
+
const user = J();
|
|
378
|
+
const engagementMedium = B();
|
|
379
|
+
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
380
|
+
const { data } = wn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
381
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
382
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
383
383
|
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
384
384
|
// Shown during loading
|
|
385
385
|
"...";
|
|
@@ -464,19 +464,19 @@ function GenericShare(messageLink, errorText) {
|
|
|
464
464
|
function useShareButton(props) {
|
|
465
465
|
var _a, _b;
|
|
466
466
|
const { sharetitle, sharetext, medium } = props;
|
|
467
|
-
const programId = props.programId ? props.programId :
|
|
468
|
-
const user =
|
|
469
|
-
const engagementMedium =
|
|
467
|
+
const programId = props.programId ? props.programId : H();
|
|
468
|
+
const user = J();
|
|
469
|
+
const engagementMedium = B();
|
|
470
470
|
const variables = {
|
|
471
471
|
engagementMedium,
|
|
472
472
|
programId: programId,
|
|
473
473
|
shareMedium: medium.toUpperCase(),
|
|
474
474
|
};
|
|
475
|
-
const contextData =
|
|
475
|
+
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
476
476
|
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
477
477
|
// only queries if a programId is available
|
|
478
|
-
const res =
|
|
479
|
-
const [setCopied, copiedRes] =
|
|
478
|
+
const res = wn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
479
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
480
480
|
const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
|
|
481
481
|
const environment = getEnvironmentSDK();
|
|
482
482
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -510,7 +510,7 @@ function useShareButton(props) {
|
|
|
510
510
|
const debug = browser("sq:useBigStat");
|
|
511
511
|
const LOADING = "...";
|
|
512
512
|
const debugQuery = (query, variables, getStat) => {
|
|
513
|
-
const res =
|
|
513
|
+
const res = wn(query, variables);
|
|
514
514
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
515
515
|
console.error("issue getting stat:", res);
|
|
516
516
|
}
|
|
@@ -921,7 +921,7 @@ const rewardsRedeemedWeekQuery = (programId, locale, type, unit, global = "") =>
|
|
|
921
921
|
locale: $locale
|
|
922
922
|
formatType: UNIT_FORMATTED
|
|
923
923
|
)}`;
|
|
924
|
-
const result =
|
|
924
|
+
const result = wn(query, {
|
|
925
925
|
value: redeemedTotal,
|
|
926
926
|
unit,
|
|
927
927
|
locale,
|
|
@@ -980,7 +980,7 @@ const rewardsRedeemedMonthQuery = (programId, locale, type, unit, global = "") =
|
|
|
980
980
|
locale: $locale
|
|
981
981
|
formatType: UNIT_FORMATTED
|
|
982
982
|
)}`;
|
|
983
|
-
const result =
|
|
983
|
+
const result = wn(query, {
|
|
984
984
|
value: redeemedTotal,
|
|
985
985
|
unit,
|
|
986
986
|
locale,
|
|
@@ -1376,11 +1376,11 @@ const StatPaths = [
|
|
|
1376
1376
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1377
1377
|
function useBigStat(props) {
|
|
1378
1378
|
var _a;
|
|
1379
|
-
const { statType, flexReverse, alignment, programId =
|
|
1379
|
+
const { statType, flexReverse, alignment, programId = H(), } = props;
|
|
1380
1380
|
// triggers a re-render if the label is manually changed
|
|
1381
1381
|
useChildElements();
|
|
1382
|
-
const locale =
|
|
1383
|
-
const userIdent =
|
|
1382
|
+
const locale = L();
|
|
1383
|
+
const userIdent = J();
|
|
1384
1384
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1385
1385
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1386
1386
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { f as useEffect } from './stencil-hooks.module-
|
|
3
|
-
import { d as dist,
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { d as dist, J, H, Q as Qe, R as Rn, I as In, B } from './index.module-a2989d3c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { H as HostBlock } from './mixins-83f90fa1.js';
|
|
6
6
|
|
|
@@ -60,11 +60,11 @@ const SET_CODE_COPIED = dist.gql `
|
|
|
60
60
|
}
|
|
61
61
|
`;
|
|
62
62
|
function useReferralCodes(props) {
|
|
63
|
-
const user =
|
|
64
|
-
const engagementMedium =
|
|
65
|
-
const programId = props.programId ||
|
|
66
|
-
const { refresh } =
|
|
67
|
-
const { envelope: referralData, states, callbacks, } =
|
|
63
|
+
const user = J();
|
|
64
|
+
const engagementMedium = B();
|
|
65
|
+
const programId = props.programId || H();
|
|
66
|
+
const { refresh } = Qe();
|
|
67
|
+
const { envelope: referralData, states, callbacks, } = Rn(GET_REFERRAL_CODES, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referralCodeList; }, {
|
|
68
68
|
limit: 1,
|
|
69
69
|
offset: 0,
|
|
70
70
|
}, {
|
|
@@ -76,11 +76,11 @@ function useReferralCodes(props) {
|
|
|
76
76
|
dateUsed_exists: false,
|
|
77
77
|
},
|
|
78
78
|
}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
79
|
-
const [paginationContext, setPaginationContext] =
|
|
79
|
+
const [paginationContext, setPaginationContext] = In({
|
|
80
80
|
namespace: REFERRAL_CODES_PAGINATION_CONTEXT,
|
|
81
81
|
initialValue: { states, callbacks },
|
|
82
82
|
});
|
|
83
|
-
const [referralCodesContext, setReferralCodesContext] =
|
|
83
|
+
const [referralCodesContext, setReferralCodesContext] = In({
|
|
84
84
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
85
85
|
initialValue: {
|
|
86
86
|
refresh,
|
package/dist/esm/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
3
|
import { A as AuthWrapper, g as gap, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-
|
|
2
|
-
import { s as src, m as memoize,
|
|
1
|
+
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
2
|
+
import { s as src, m as memoize, U } from './index.module-a2989d3c.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -26635,7 +26635,7 @@ sl-input::part(label){
|
|
|
26635
26635
|
|
|
26636
26636
|
`;
|
|
26637
26637
|
|
|
26638
|
-
|
|
26638
|
+
U(l$1);
|
|
26639
26639
|
const debug = browser("sq:global");
|
|
26640
26640
|
const cache = createIntlCache();
|
|
26641
26641
|
const intl = createIntl({
|
|
@@ -1323,6 +1323,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1323
1323
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1324
1324
|
}
|
|
1325
1325
|
endNewInstance();
|
|
1326
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1326
1327
|
}
|
|
1327
1328
|
if ( Cstr.style) {
|
|
1328
1329
|
// this component has styles but we haven't registered them yet
|
|
@@ -1351,6 +1352,11 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1351
1352
|
schedule();
|
|
1352
1353
|
}
|
|
1353
1354
|
};
|
|
1355
|
+
const fireConnectedCallback = (instance) => {
|
|
1356
|
+
{
|
|
1357
|
+
safeCall(instance, 'connectedCallback');
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1354
1360
|
const connectedCallback = (elm) => {
|
|
1355
1361
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1356
1362
|
const hostRef = getHostRef(elm);
|
|
@@ -1399,6 +1405,10 @@ const connectedCallback = (elm) => {
|
|
|
1399
1405
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1400
1406
|
}
|
|
1401
1407
|
}
|
|
1408
|
+
else {
|
|
1409
|
+
// fire off connectedCallback() on component instance
|
|
1410
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1411
|
+
}
|
|
1402
1412
|
endConnected();
|
|
1403
1413
|
}
|
|
1404
1414
|
};
|