@saasquatch/mint-components 1.3.3-6 → 1.3.3-7
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-d6a442a9.js → ShadowViewAddon-e9bacad0.js} +3 -3
- package/dist/cjs/{global-b957dd98.js → global-0c01d88f.js} +71 -283
- package/dist/cjs/{index.module-85eb6b4d.js → index.module-2925fe3b.js} +16 -18
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-59955561.js → re-render-b1ad512d.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-divided-layout_30.cjs.entry.js → sqm-divided-layout_26.cjs.entry.js} +386 -2812
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-9114d9ad.js → sqm-leaderboard-rank-view-48245b30.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-b565a10a.js → sqm-navigation-sidebar-item-view-1bad646a.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-bd40f7eb.js → sqm-portal-email-verification-view-68b16f27.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -6
- package/dist/cjs/{sqm-portal-footer-view-b60e17c8.js → sqm-portal-footer-view-edeeebab.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +16 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-c3b889d4.js → sqm-portal-profile-view-2b48529e.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +11 -7
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +3 -3
- package/dist/cjs/{useDemoBigStat-9193e8c5.js → useDemoBigStat-ee71b587.js} +23 -119
- package/dist/collection/collection-manifest.json +3 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +20 -115
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +25 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +53 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +53 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +25 -0
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +25 -0
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/{tables → components/sqm-referral-table}/re-render.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-cell.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-row.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/useChildElements.js +0 -0
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +36 -46
- package/dist/collection/global/styles.js +69 -281
- package/dist/collection/global/styles.ts +69 -281
- package/dist/collection/{components/sqm-asset-card → stories}/AssetCard.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/BigStat.stories.js +3 -10
- package/dist/collection/{components/sqm-portal-change-password → stories}/ChangePassword.stories.js +3 -3
- package/dist/collection/{components/sqm-divided-layout → stories}/DividedLayout.stories.js +4 -4
- package/dist/collection/{components/sqm-edit-profile → stories}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{components/sqm-form-message → stories}/FormMessage.stories.js +1 -1
- package/dist/collection/{components/sqm-hero → stories}/Hero.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard → stories}/Leaderboard.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{components/sqm-name-fields → stories}/NameFields.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/{components/sqm-password-field → stories}/PasswordField.stories.js +1 -1
- package/dist/collection/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-footer → stories}/PortalFooter.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.js +7 -3
- package/dist/collection/{components/sqm-portal-frame → stories}/PortalFrame.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-login → stories}/PortalLogin.stories.js +8 -2
- package/dist/collection/{components/sqm-portal-profile → stories}/PortalProfile.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-register → stories}/PortalRegister.stories.js +7 -2
- package/dist/collection/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/{components/sqm-program-menu → stories}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTable.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.js +1 -1
- package/dist/collection/{components/sqm-router → stories}/Router.stories.js +1 -1
- package/dist/collection/{components/sqm-share-button → stories}/ShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/ShareLink.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/UseBigStat.stories.js +4 -7
- package/dist/collection/{components/sqm-edit-profile → stories}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{components/sqm-share-button → stories}/UseShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/UseShareLink.stories.js +3 -3
- package/dist/collection/{components/sqm-user-name → stories}/UserName.stories.js +3 -3
- package/dist/esm/{ShadowViewAddon-2338f393.js → ShadowViewAddon-5f66de48.js} +3 -3
- package/dist/esm/{global-0e81c5e6.js → global-0fcfbedf.js} +71 -283
- package/dist/esm/{index.module-9b5bb6a2.js → index.module-1e92a7a3.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-57ac6584.js → re-render-b8468637.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_30.entry.js → sqm-divided-layout_26.entry.js} +388 -2810
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-3f0dc20e.js → sqm-leaderboard-rank-view-fd7d7f42.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-79b0748c.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8f253fb7.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -6
- package/dist/esm/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +16 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-831dea85.js → sqm-portal-profile-view-4acf74a5.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +11 -7
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +3 -3
- package/dist/esm/{useDemoBigStat-660c8672.js → useDemoBigStat-8865b9fa.js} +23 -119
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +1 -0
- package/dist/esm-es5/{global-0e81c5e6.js → global-0fcfbedf.js} +2 -2
- package/dist/esm-es5/{index.module-9b5bb6a2.js → index.module-1e92a7a3.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-57ac6584.js → re-render-b8468637.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-3f0dc20e.js → sqm-leaderboard-rank-view-fd7d7f42.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a48bca9b.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-8f253fb7.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.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-831dea85.js → sqm-portal-profile-view-4acf74a5.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-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-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-8865b9fa.js +1 -0
- package/dist/mint-components/global/styles.ts +69 -281
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-0e49a93f.system.entry.js → p-036c5a7e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f5b80f2.entry.js → p-05a2640d.entry.js} +1 -1
- package/dist/mint-components/{p-77f9b4af.entry.js → p-05a86906.entry.js} +2 -2
- package/dist/mint-components/{p-51277d8e.system.entry.js → p-06d79243.system.entry.js} +1 -1
- package/dist/mint-components/{p-cafc22bf.system.entry.js → p-09afaaac.system.entry.js} +1 -1
- package/dist/mint-components/p-10a98629.entry.js +1 -0
- package/dist/mint-components/p-112d42ab.system.entry.js +1 -0
- package/dist/mint-components/p-13605359.entry.js +1 -0
- package/dist/mint-components/{p-d4fe6a69.system.js → p-18aa175f.system.js} +2 -2
- package/dist/mint-components/p-192539d2.entry.js +1 -0
- package/dist/mint-components/p-1e47e0a6.entry.js +1 -0
- package/dist/mint-components/{p-b2cb66f5.system.js → p-27e23808.system.js} +1 -1
- package/dist/mint-components/p-2f333f89.system.entry.js +1 -0
- package/dist/mint-components/p-32573409.js +227 -0
- package/dist/mint-components/{p-17e6fc02.system.entry.js → p-337a3d6b.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3ea7918.system.js → p-3452bdae.system.js} +1 -1
- package/dist/mint-components/{p-7062ab8e.system.entry.js → p-3772bae2.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ec1dcb3.system.js → p-3e3dad7a.system.js} +1 -1
- package/dist/mint-components/{p-d5a00e40.system.entry.js → p-4068e47c.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7b80ac0.entry.js → p-4b6c316d.entry.js} +1 -1
- package/dist/mint-components/{p-295b306a.js → p-51cfdd14.js} +1 -1
- package/dist/mint-components/p-528aecd1.entry.js +1 -0
- package/dist/mint-components/p-54707082.system.js +1 -0
- package/dist/mint-components/p-55210498.system.js +1 -0
- package/dist/mint-components/{p-be615f03.system.js → p-602180a2.system.js} +1 -1
- package/dist/mint-components/p-606506d6.system.entry.js +1 -0
- package/dist/mint-components/{p-55f029cd.system.entry.js → p-6156a7ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9edc48d.system.entry.js → p-624c5352.system.entry.js} +1 -1
- package/dist/mint-components/p-6305419f.entry.js +1 -0
- package/dist/mint-components/{p-8a9966fc.system.js → p-64759dda.system.js} +1 -1
- package/dist/mint-components/p-6815e7ba.entry.js +1 -0
- package/dist/mint-components/p-6ad110d3.js +1 -0
- package/dist/mint-components/{p-aee2a2b9.entry.js → p-6cb81b77.entry.js} +1 -1
- package/dist/mint-components/{p-46cb29e2.system.entry.js → p-70ca623f.system.entry.js} +1 -1
- package/dist/mint-components/{p-75ae6fc0.entry.js → p-743882c6.entry.js} +1 -1
- package/dist/mint-components/p-756a5e6f.system.js +1 -0
- package/dist/mint-components/p-768b9014.system.entry.js +1 -0
- package/dist/mint-components/p-7cf335a0.entry.js +1 -0
- package/dist/mint-components/{p-8bfe1f7d.js → p-7d996b49.js} +1 -1
- package/dist/mint-components/p-86b66e5c.entry.js +1 -0
- package/dist/mint-components/{p-ad1c6eb8.system.entry.js → p-8bfebd45.system.entry.js} +1 -1
- package/dist/mint-components/p-942723ad.entry.js +1 -0
- package/dist/mint-components/{p-a93149f4.entry.js → p-965e34ab.entry.js} +1 -1
- package/dist/mint-components/{p-35103a1b.system.entry.js → p-991bd182.system.entry.js} +1 -1
- package/dist/mint-components/{p-0a882bab.system.entry.js → p-9a3a0db5.system.entry.js} +1 -1
- package/dist/mint-components/p-9f2a08a9.entry.js +230 -0
- package/dist/mint-components/{p-75b143ac.system.entry.js → p-9ff0425e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e53399e5.system.entry.js → p-9ff118a2.system.entry.js} +1 -1
- package/dist/mint-components/p-a359f652.system.js +1 -0
- package/dist/mint-components/p-a646db48.system.entry.js +1 -0
- package/dist/mint-components/{p-27bb0aa9.js → p-af1f8bd3.js} +1 -1
- package/dist/mint-components/{p-d5b84d6b.js → p-af2d886e.js} +1 -1
- package/dist/mint-components/{p-3404b8d2.system.entry.js → p-b3880833.system.entry.js} +1 -1
- package/dist/mint-components/p-b3cddcca.entry.js +1 -0
- package/dist/mint-components/p-ba09d673.system.entry.js +1 -0
- package/dist/mint-components/{p-8ec40f9a.entry.js → p-c47b83c3.entry.js} +1 -1
- package/dist/mint-components/{p-bafc60df.js → p-c84a5b33.js} +1 -1
- package/dist/mint-components/p-cffc23c0.entry.js +1 -0
- package/dist/mint-components/{p-b6107771.js → p-d0cad85c.js} +2 -2
- package/dist/mint-components/p-d1cea1b1.system.js +1 -0
- package/dist/mint-components/{p-024cc1be.system.entry.js → p-d3171b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-24d13567.js → p-d513229d.js} +1 -1
- package/dist/mint-components/{p-16b0b00b.entry.js → p-d55abc13.entry.js} +2 -2
- package/dist/mint-components/p-de3311bf.entry.js +9 -0
- package/dist/mint-components/{p-be62004c.entry.js → p-e50839df.entry.js} +1 -1
- package/dist/mint-components/{p-a59e65f2.js → p-eddcf481.js} +1 -1
- package/dist/mint-components/{p-98e29140.system.entry.js → p-f16bae7a.system.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -1
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -4
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +8 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +4 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +4 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
- package/dist/types/{tables → components/sqm-referral-table}/re-render.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-row.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/useChildElements.d.ts +0 -0
- package/dist/types/components.d.ts +72 -289
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/{components/sqm-asset-card → stories}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/BigStat.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-change-password → stories}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-divided-layout → stories}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{components/sqm-edit-profile → stories}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{components/sqm-form-message → stories}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{components/sqm-hero → stories}/Hero.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{components/sqm-name-fields → stories}/NameFields.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{components/sqm-password-field → stories}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-footer → stories}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-frame → stories}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-login → stories}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-profile → stories}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-register → stories}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{components/sqm-program-menu → stories}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-router → stories}/Router.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/UseBigStat.stories.d.ts +0 -6
- package/dist/types/{components/sqm-edit-profile → stories}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/stories/UserName.stories.d.ts +6 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +0 -25
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +0 -241
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +0 -8
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -143
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +0 -61
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +0 -357
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -144
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +0 -174
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -53
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +0 -120
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -222
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -190
- package/dist/collection/components/sqm-task-card/Matrix.js +0 -66
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -9
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +0 -278
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +0 -41
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +0 -7
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +0 -314
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -211
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -419
- package/dist/collection/tables/GenericTableView.js +0 -51
- package/dist/collection/tables/TableSlots.js +0 -22
- package/dist/esm-es5/ShadowViewAddon-2338f393.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-79b0748c.js +0 -1
- package/dist/esm-es5/useDemoBigStat-660c8672.js +0 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/mint-components.css +0 -1
- package/dist/mint-components/p-101fafa3.js +0 -1
- package/dist/mint-components/p-1dc2793a.system.entry.js +0 -1
- package/dist/mint-components/p-1dc2e37a.system.entry.js +0 -1
- package/dist/mint-components/p-1dd1105d.system.entry.js +0 -1
- package/dist/mint-components/p-22d56623.entry.js +0 -9
- package/dist/mint-components/p-232dddcc.system.entry.js +0 -1
- package/dist/mint-components/p-25021e09.entry.js +0 -1
- package/dist/mint-components/p-3098bb1b.system.entry.js +0 -1
- package/dist/mint-components/p-35ba4a8b.entry.js +0 -1
- package/dist/mint-components/p-441119ee.js +0 -235
- package/dist/mint-components/p-503192e9.entry.js +0 -1
- package/dist/mint-components/p-58bf2a30.system.js +0 -1
- package/dist/mint-components/p-58fb3d02.system.js +0 -1
- package/dist/mint-components/p-62102076.entry.js +0 -1
- package/dist/mint-components/p-623e7f8c.entry.js +0 -335
- package/dist/mint-components/p-6410316b.entry.js +0 -1
- package/dist/mint-components/p-69902f7c.system.js +0 -1
- package/dist/mint-components/p-6acfe4a0.entry.js +0 -1
- package/dist/mint-components/p-6cbb3a00.entry.js +0 -1
- package/dist/mint-components/p-7ee8a7ed.system.js +0 -1
- package/dist/mint-components/p-853bd4bd.entry.js +0 -1
- package/dist/mint-components/p-85728f98.entry.js +0 -1
- package/dist/mint-components/p-aa39d9c0.entry.js +0 -1
- package/dist/mint-components/p-b893904c.system.entry.js +0 -1
- package/dist/mint-components/p-dea06c92.entry.js +0 -1
- package/dist/mint-components/p-eb5aae94.entry.js +0 -1
- package/dist/mint-components/p-f7d7e44d.system.js +0 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +0 -7
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +0 -112
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +0 -3
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +0 -28
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +0 -4
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +0 -25
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -24
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -44
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +0 -16
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +0 -20
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -38
- package/dist/types/components/sqm-task-card/Matrix.d.ts +0 -11
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -2
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +0 -16
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +0 -10
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +0 -11
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -17
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -76
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +0 -6
- package/dist/types/tables/GenericTableView.d.ts +0 -29
- package/dist/types/tables/TableSlots.d.ts +0 -8
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -14,7 +14,8 @@ export function usePortalEmailVerification(props) {
|
|
|
14
14
|
return;
|
|
15
15
|
setError("");
|
|
16
16
|
const urlParams = nextPage ? { nextPage } : null;
|
|
17
|
-
const
|
|
17
|
+
const redirectPath = props.redirectPath;
|
|
18
|
+
const variables = { email, urlParams, redirectPath };
|
|
18
19
|
await request(variables);
|
|
19
20
|
};
|
|
20
21
|
useEffect(() => {
|
|
@@ -10,6 +10,10 @@ import { usePortalForgotPassword } from "./usePortalForgotPassword";
|
|
|
10
10
|
export class PortalForgotPassword {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
|
+
/**
|
|
14
|
+
* @uiName Base path of reset password email link
|
|
15
|
+
*/
|
|
16
|
+
this.redirectPath = "/resetPassword";
|
|
13
17
|
/**
|
|
14
18
|
* @uiName Email label
|
|
15
19
|
*/
|
|
@@ -18,16 +22,20 @@ export class PortalForgotPassword {
|
|
|
18
22
|
* @uiName Password reset button text
|
|
19
23
|
*/
|
|
20
24
|
this.submitLabel = "Request Password Reset";
|
|
25
|
+
/**
|
|
26
|
+
* @uiName Routing path to login page
|
|
27
|
+
*/
|
|
28
|
+
this.loginPath = "/login";
|
|
21
29
|
withHooks(this);
|
|
22
30
|
}
|
|
23
31
|
disconnectedCallback() { }
|
|
24
32
|
render() {
|
|
25
33
|
const { states, callbacks } = isDemo()
|
|
26
34
|
? usePortalForgotPasswordDemo(this)
|
|
27
|
-
: usePortalForgotPassword();
|
|
35
|
+
: usePortalForgotPassword(this);
|
|
28
36
|
const content = {
|
|
29
37
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
30
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
38
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, "Sign In"))),
|
|
31
39
|
messageSlot: (h("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
32
40
|
emailLabel: this.emailLabel,
|
|
33
41
|
submitLabel: this.submitLabel,
|
|
@@ -37,6 +45,27 @@ export class PortalForgotPassword {
|
|
|
37
45
|
static get is() { return "sqm-portal-forgot-password"; }
|
|
38
46
|
static get encapsulation() { return "shadow"; }
|
|
39
47
|
static get properties() { return {
|
|
48
|
+
"redirectPath": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [{
|
|
60
|
+
"text": "Base path of reset password email link",
|
|
61
|
+
"name": "uiName"
|
|
62
|
+
}],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"attribute": "redirect-path",
|
|
66
|
+
"reflect": false,
|
|
67
|
+
"defaultValue": "\"/resetPassword\""
|
|
68
|
+
},
|
|
40
69
|
"emailLabel": {
|
|
41
70
|
"type": "string",
|
|
42
71
|
"mutable": false,
|
|
@@ -79,12 +108,33 @@ export class PortalForgotPassword {
|
|
|
79
108
|
"reflect": false,
|
|
80
109
|
"defaultValue": "\"Request Password Reset\""
|
|
81
110
|
},
|
|
111
|
+
"loginPath": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "string",
|
|
116
|
+
"resolved": "string",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [{
|
|
123
|
+
"text": "Routing path to login page",
|
|
124
|
+
"name": "uiName"
|
|
125
|
+
}],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "login-path",
|
|
129
|
+
"reflect": false,
|
|
130
|
+
"defaultValue": "\"/login\""
|
|
131
|
+
},
|
|
82
132
|
"demoData": {
|
|
83
133
|
"type": "unknown",
|
|
84
134
|
"mutable": false,
|
|
85
135
|
"complexType": {
|
|
86
136
|
"original": "DemoData<PortalForgotPasswordViewProps>",
|
|
87
|
-
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
|
|
137
|
+
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
|
|
88
138
|
"references": {
|
|
89
139
|
"DemoData": {
|
|
90
140
|
"location": "import",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { useRequestPasswordResetEmailMutation } from "@saasquatch/component-boilerplate";
|
|
4
|
-
export function usePortalForgotPassword() {
|
|
4
|
+
export function usePortalForgotPassword(props) {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
6
|
const [success, setSuccess] = useState(false);
|
|
7
7
|
const [error, setError] = useState("");
|
|
@@ -15,7 +15,8 @@ export function usePortalForgotPassword() {
|
|
|
15
15
|
jsonpointer.set(formData, key, value);
|
|
16
16
|
});
|
|
17
17
|
const urlParams = nextPage ? { nextPage } : null;
|
|
18
|
-
const
|
|
18
|
+
const redirectPath = props.redirectPath;
|
|
19
|
+
const variables = { email: formData.email, urlParams, redirectPath };
|
|
19
20
|
await request(variables);
|
|
20
21
|
};
|
|
21
22
|
useEffect(() => {
|
|
@@ -34,6 +35,7 @@ export function usePortalForgotPassword() {
|
|
|
34
35
|
loading,
|
|
35
36
|
error: ((_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.message) || error,
|
|
36
37
|
success,
|
|
38
|
+
loginPath: props.loginPath,
|
|
37
39
|
},
|
|
38
40
|
callbacks: {
|
|
39
41
|
submit,
|
|
@@ -38,6 +38,14 @@ export class PortalLogin {
|
|
|
38
38
|
* @uiName Heading label
|
|
39
39
|
*/
|
|
40
40
|
this.pageLabel = "Sign in to your account";
|
|
41
|
+
/**
|
|
42
|
+
* @uiName Routing path to register page
|
|
43
|
+
*/
|
|
44
|
+
this.registerPath = "/register";
|
|
45
|
+
/**
|
|
46
|
+
* @uiName Routing path to forgot password page
|
|
47
|
+
*/
|
|
48
|
+
this.forgotPasswordPath = "/forgotPassword";
|
|
41
49
|
withHooks(this);
|
|
42
50
|
}
|
|
43
51
|
disconnectedCallback() { }
|
|
@@ -47,9 +55,9 @@ export class PortalLogin {
|
|
|
47
55
|
: usePortalLogin(this);
|
|
48
56
|
const content = {
|
|
49
57
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
50
|
-
h("a", { onClick: () => navigation.push(
|
|
58
|
+
h("a", { onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
51
59
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
52
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
60
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath) }, this.registerLabel))),
|
|
53
61
|
emailLabel: this.emailLabel,
|
|
54
62
|
passwordLabel: this.passwordLabel,
|
|
55
63
|
submitLabel: this.submitLabel,
|
|
@@ -207,12 +215,54 @@ export class PortalLogin {
|
|
|
207
215
|
"reflect": false,
|
|
208
216
|
"defaultValue": "\"Sign in to your account\""
|
|
209
217
|
},
|
|
218
|
+
"registerPath": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "string",
|
|
223
|
+
"resolved": "string",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [{
|
|
230
|
+
"text": "Routing path to register page",
|
|
231
|
+
"name": "uiName"
|
|
232
|
+
}],
|
|
233
|
+
"text": ""
|
|
234
|
+
},
|
|
235
|
+
"attribute": "register-path",
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"defaultValue": "\"/register\""
|
|
238
|
+
},
|
|
239
|
+
"forgotPasswordPath": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "string",
|
|
244
|
+
"resolved": "string",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [{
|
|
251
|
+
"text": "Routing path to forgot password page",
|
|
252
|
+
"name": "uiName"
|
|
253
|
+
}],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"attribute": "forgot-password-path",
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"defaultValue": "\"/forgotPassword\""
|
|
259
|
+
},
|
|
210
260
|
"demoData": {
|
|
211
261
|
"type": "unknown",
|
|
212
262
|
"mutable": false,
|
|
213
263
|
"complexType": {
|
|
214
264
|
"original": "DemoData<PortalLoginViewProps>",
|
|
215
|
-
"resolved": "{ states?: { error: string; loading: boolean; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }",
|
|
265
|
+
"resolved": "{ states?: { error: string; loading: boolean; forgotPasswordPath: string; registerPath: string; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }",
|
|
216
266
|
"references": {
|
|
217
267
|
"DemoData": {
|
|
218
268
|
"location": "import",
|
|
@@ -244,7 +294,12 @@ export class PortalLogin {
|
|
|
244
294
|
}
|
|
245
295
|
function useLoginDemo(props) {
|
|
246
296
|
return deepmerge({
|
|
247
|
-
states: {
|
|
297
|
+
states: {
|
|
298
|
+
error: "",
|
|
299
|
+
loading: false,
|
|
300
|
+
forgotPasswordPath: "/forgotPassword",
|
|
301
|
+
registerPath: "/register",
|
|
302
|
+
},
|
|
248
303
|
callbacks: {
|
|
249
304
|
submit: async (_event) => {
|
|
250
305
|
console.log("submit");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { navigation, useAuthenticateWithEmailAndPasswordMutation, } from "@saasquatch/component-boilerplate";
|
|
4
|
-
export function usePortalLogin(
|
|
4
|
+
export function usePortalLogin(props) {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
6
|
const [request, { loading, errors, data }] = useAuthenticateWithEmailAndPasswordMutation();
|
|
7
7
|
const [error, setError] = useState("");
|
|
@@ -21,7 +21,7 @@ export function usePortalLogin({ nextPage }) {
|
|
|
21
21
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
22
22
|
urlParams.delete("nextPage");
|
|
23
23
|
navigation.push({
|
|
24
|
-
pathname: nextPageOverride || nextPage,
|
|
24
|
+
pathname: nextPageOverride || props.nextPage,
|
|
25
25
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -37,6 +37,8 @@ export function usePortalLogin({ nextPage }) {
|
|
|
37
37
|
states: {
|
|
38
38
|
loading,
|
|
39
39
|
error: errorMessage,
|
|
40
|
+
registerPath: props.registerPath,
|
|
41
|
+
forgotPasswordPath: props.forgotPasswordPath
|
|
40
42
|
},
|
|
41
43
|
callbacks: {
|
|
42
44
|
submit,
|
|
@@ -14,6 +14,10 @@ export class PortalRegister {
|
|
|
14
14
|
* @uiName Page navigated to after registration
|
|
15
15
|
*/
|
|
16
16
|
this.nextPage = "/";
|
|
17
|
+
/**
|
|
18
|
+
* @uiName Base path of verify email link
|
|
19
|
+
*/
|
|
20
|
+
this.redirectPath = "/verifyEmail";
|
|
17
21
|
/**
|
|
18
22
|
* @uiName Label for email field
|
|
19
23
|
*/
|
|
@@ -50,6 +54,10 @@ export class PortalRegister {
|
|
|
50
54
|
* @uiName Heading label
|
|
51
55
|
*/
|
|
52
56
|
this.pageLabel = "Register";
|
|
57
|
+
/**
|
|
58
|
+
* @uiName Routing path to login page
|
|
59
|
+
*/
|
|
60
|
+
this.loginPath = "/login";
|
|
53
61
|
withHooks(this);
|
|
54
62
|
}
|
|
55
63
|
disconnectedCallback() { }
|
|
@@ -60,7 +68,7 @@ export class PortalRegister {
|
|
|
60
68
|
const content = {
|
|
61
69
|
formData: h("slot", { name: "formData" }),
|
|
62
70
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
63
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
71
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, this.loginLabel))),
|
|
64
72
|
emailLabel: this.emailLabel,
|
|
65
73
|
passwordLabel: this.passwordLabel,
|
|
66
74
|
submitLabel: this.submitLabel,
|
|
@@ -93,6 +101,27 @@ export class PortalRegister {
|
|
|
93
101
|
"reflect": false,
|
|
94
102
|
"defaultValue": "\"/\""
|
|
95
103
|
},
|
|
104
|
+
"redirectPath": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "string",
|
|
109
|
+
"resolved": "string",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [{
|
|
116
|
+
"text": "Base path of verify email link",
|
|
117
|
+
"name": "uiName"
|
|
118
|
+
}],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"attribute": "redirect-path",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "\"/verifyEmail\""
|
|
124
|
+
},
|
|
96
125
|
"emailLabel": {
|
|
97
126
|
"type": "string",
|
|
98
127
|
"mutable": false,
|
|
@@ -282,12 +311,33 @@ export class PortalRegister {
|
|
|
282
311
|
"reflect": false,
|
|
283
312
|
"defaultValue": "\"Register\""
|
|
284
313
|
},
|
|
314
|
+
"loginPath": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "string",
|
|
319
|
+
"resolved": "string",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": false,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [{
|
|
326
|
+
"text": "Routing path to login page",
|
|
327
|
+
"name": "uiName"
|
|
328
|
+
}],
|
|
329
|
+
"text": ""
|
|
330
|
+
},
|
|
331
|
+
"attribute": "login-path",
|
|
332
|
+
"reflect": false,
|
|
333
|
+
"defaultValue": "\"/login\""
|
|
334
|
+
},
|
|
285
335
|
"demoData": {
|
|
286
336
|
"type": "unknown",
|
|
287
337
|
"mutable": false,
|
|
288
338
|
"complexType": {
|
|
289
339
|
"original": "DemoData<PortalRegisterViewProps>",
|
|
290
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }",
|
|
340
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; loginPath: string; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }",
|
|
291
341
|
"references": {
|
|
292
342
|
"DemoData": {
|
|
293
343
|
"location": "import",
|
|
@@ -325,6 +375,7 @@ function useRegisterDemo(props) {
|
|
|
325
375
|
confirmPassword: true,
|
|
326
376
|
hideInputs: props.hideInputs || false,
|
|
327
377
|
customPasswordField: false,
|
|
378
|
+
loginPath: "/login",
|
|
328
379
|
},
|
|
329
380
|
callbacks: {
|
|
330
381
|
submit: async (_event) => {
|
|
@@ -47,10 +47,12 @@ export function usePortalRegister(props) {
|
|
|
47
47
|
delete formData.password;
|
|
48
48
|
delete formData.confirmPassword;
|
|
49
49
|
formData = { ...formData };
|
|
50
|
+
const redirectPath = props.redirectPath;
|
|
50
51
|
const variables = {
|
|
51
52
|
email,
|
|
52
53
|
password,
|
|
53
54
|
formData,
|
|
55
|
+
redirectPath,
|
|
54
56
|
};
|
|
55
57
|
try {
|
|
56
58
|
await request(variables);
|
|
@@ -100,6 +102,7 @@ export function usePortalRegister(props) {
|
|
|
100
102
|
validationState,
|
|
101
103
|
confirmPassword: props.confirmPassword,
|
|
102
104
|
hideInputs: props.hideInputs,
|
|
105
|
+
loginPath: props.loginPath,
|
|
103
106
|
},
|
|
104
107
|
callbacks: {
|
|
105
108
|
submit,
|
|
@@ -14,6 +14,10 @@ export class PortalResetPassword {
|
|
|
14
14
|
* @uiName Next page path
|
|
15
15
|
*/
|
|
16
16
|
this.nextPage = "/";
|
|
17
|
+
/**
|
|
18
|
+
* @uiName Failed page path
|
|
19
|
+
*/
|
|
20
|
+
this.failedPage = "/";
|
|
17
21
|
/**
|
|
18
22
|
* @uiName Show confirm password
|
|
19
23
|
*/
|
|
@@ -79,6 +83,27 @@ export class PortalResetPassword {
|
|
|
79
83
|
"reflect": false,
|
|
80
84
|
"defaultValue": "\"/\""
|
|
81
85
|
},
|
|
86
|
+
"failedPage": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string",
|
|
91
|
+
"resolved": "string",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [{
|
|
98
|
+
"text": "Failed page path",
|
|
99
|
+
"name": "uiName"
|
|
100
|
+
}],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"attribute": "failed-page",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "\"/\""
|
|
106
|
+
},
|
|
82
107
|
"confirmPassword": {
|
|
83
108
|
"type": "boolean",
|
|
84
109
|
"mutable": false,
|
|
@@ -14,6 +14,10 @@ export class PortalVerifyEmail {
|
|
|
14
14
|
* @uiName Next page path
|
|
15
15
|
*/
|
|
16
16
|
this.nextPage = "/";
|
|
17
|
+
/**
|
|
18
|
+
* @uiName Failed page path
|
|
19
|
+
*/
|
|
20
|
+
this.failedPage = "/";
|
|
17
21
|
withHooks(this);
|
|
18
22
|
}
|
|
19
23
|
disconnectedCallback() { }
|
|
@@ -47,6 +51,27 @@ export class PortalVerifyEmail {
|
|
|
47
51
|
"reflect": false,
|
|
48
52
|
"defaultValue": "\"/\""
|
|
49
53
|
},
|
|
54
|
+
"failedPage": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [{
|
|
66
|
+
"text": "Failed page path",
|
|
67
|
+
"name": "uiName"
|
|
68
|
+
}],
|
|
69
|
+
"text": ""
|
|
70
|
+
},
|
|
71
|
+
"attribute": "failed-page",
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"defaultValue": "\"/\""
|
|
74
|
+
},
|
|
50
75
|
"demoData": {
|
|
51
76
|
"type": "unknown",
|
|
52
77
|
"mutable": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
2
2
|
import { navigation, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
-
export function usePortalVerifyEmail({ nextPage }) {
|
|
3
|
+
export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
4
4
|
var _a, _b, _c, _d, _e;
|
|
5
5
|
const [verified, setVerified] = useState(false);
|
|
6
6
|
const [disableContinue, setDisableContinue] = useState(true);
|
|
@@ -13,7 +13,7 @@ export function usePortalVerifyEmail({ nextPage }) {
|
|
|
13
13
|
urlParams.delete("oobCode");
|
|
14
14
|
const failed = () => {
|
|
15
15
|
return navigation.push({
|
|
16
|
-
pathname:
|
|
16
|
+
pathname: failedPage,
|
|
17
17
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
18
18
|
});
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, getElement, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Generic Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Date Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Rewards Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Status Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table User Column
|
|
6
6
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,8 +2,8 @@ import { usePaginatedQuery, useProgramId, useQuery, useUserIdentity, } from "@sa
|
|
|
2
2
|
import { useEffect, useReducer } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
4
|
import gql from "graphql-tag";
|
|
5
|
-
import { useRerenderListener } from "
|
|
6
|
-
import { useChildElements } from "
|
|
5
|
+
import { useRerenderListener } from "./re-render";
|
|
6
|
+
import { useChildElements } from "./useChildElements";
|
|
7
7
|
const GET_REFERRER_DATA = gql `
|
|
8
8
|
query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
|
|
9
9
|
viewer {
|
|
@@ -334,7 +334,7 @@ export class ShareButton {
|
|
|
334
334
|
"mutable": false,
|
|
335
335
|
"complexType": {
|
|
336
336
|
"original": "DemoData<ShareButtonViewProps>",
|
|
337
|
-
"resolved": "{
|
|
337
|
+
"resolved": "{ medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; loading?: boolean; disabled?: boolean; pill?: boolean; type?: \"text\" | \"primary\" | \"success\" | \"info\" | \"warning\" | \"danger\" | \"default\"; size?: \"small\" | \"medium\" | \"large\"; icon?: string; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; onClick?: () => void; hide?: boolean; }",
|
|
338
338
|
"references": {
|
|
339
339
|
"DemoData": {
|
|
340
340
|
"location": "import",
|
|
@@ -13,8 +13,6 @@ export const CucumberAddon = ({ story }, children) => {
|
|
|
13
13
|
// No scenario or invalid. Ignoring.
|
|
14
14
|
}
|
|
15
15
|
return (h("div", null,
|
|
16
|
-
h("
|
|
17
|
-
h("summary", null, "Specs"),
|
|
18
|
-
result && h("pre", { innerHTML: result.value })),
|
|
16
|
+
result && h("pre", { innerHTML: result.value }),
|
|
19
17
|
children));
|
|
20
18
|
};
|