@saasquatch/mint-components 1.4.0 → 1.5.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -48
- package/dist/cjs/{ShadowViewAddon-e9bacad0.js → ShadowViewAddon-a85b8c8d.js} +3 -3
- package/dist/cjs/{global-0c01d88f.js → global-6223fe8f.js} +283 -71
- package/dist/cjs/{index.module-2925fe3b.js → index.module-7dd4b981.js} +18 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-b1ad512d.js → re-render-6111d4bd.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_26.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +9444 -3383
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-48245b30.js → sqm-leaderboard-rank-view-7dd44d62.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-1bad646a.js → sqm-navigation-sidebar-item-view-6c7f78e6.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-68b16f27.js → sqm-portal-email-verification-view-08d1848c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -13
- package/dist/cjs/{sqm-portal-footer-view-edeeebab.js → sqm-portal-footer-view-69c73802.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -18
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-2b48529e.js → sqm-portal-profile-view-14b41436.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 +6 -14
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -15
- 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-d7a60992.js → useDemoBigStat-2786227e.js} +121 -24
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +10 -3
- package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -21
- package/dist/collection/components/sqm-big-stat/useBigStat.js +117 -21
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
- package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
- package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +0 -27
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +1 -2
- package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -7
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -55
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -4
- package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +4 -59
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +2 -4
- package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -7
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +2 -55
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +0 -3
- package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +1 -30
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +1 -30
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
- 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/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +20 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +24 -0
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +64 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +467 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +144 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +174 -0
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +190 -0
- package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +26 -0
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
- package/dist/collection/components/sqm-stencilbook/Matrix.js +66 -0
- package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +38 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +87 -38
- package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +416 -0
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +333 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +238 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +444 -0
- package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
- package/dist/collection/global/styles.js +281 -69
- package/dist/collection/global/styles.ts +281 -69
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/tables/GenericTableView.js +51 -0
- package/dist/collection/tables/TableSlots.js +22 -0
- package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
- package/dist/esm/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-a3f510db.js} +3 -3
- package/dist/esm/{global-0fcfbedf.js → global-90da933f.js} +283 -71
- package/dist/esm/{index.module-1e92a7a3.js → index.module-90d2c3ad.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-b8468637.js → re-render-e06f2f7f.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_26.entry.js → sqm-divided-layout_30.entry.js} +9442 -3385
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-47844836.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-a48bca9b.js → sqm-navigation-sidebar-item-view-f2304ad9.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-6cc56c87.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -13
- package/dist/esm/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -18
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-b67467b4.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 +8 -16
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -15
- 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-5557504e.js → useDemoBigStat-c3b955b7.js} +121 -24
- package/dist/esm-es5/ShadowViewAddon-a3f510db.js +1 -0
- package/dist/esm-es5/{global-0fcfbedf.js → global-90da933f.js} +2 -2
- package/dist/esm-es5/{index.module-1e92a7a3.js → index.module-90d2c3ad.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-b8468637.js → re-render-e06f2f7f.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_30.entry.js +58 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-47844836.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-f2304ad9.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-6cc56c87.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-d9fe0bf8.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-4acf74a5.js → sqm-portal-profile-view-b67467b4.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-c3b955b7.js +1 -0
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/assets/placeholder.png +0 -0
- package/dist/mint-components/global/styles.ts +281 -69
- package/dist/mint-components/mint-components.css +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-602180a2.system.js → p-07c924fa.system.js} +1 -1
- package/dist/mint-components/{p-51cfdd14.js → p-0eb3e89c.js} +1 -1
- package/dist/mint-components/p-160bd62f.entry.js +1 -0
- package/dist/mint-components/p-16f5a7cb.system.js +1 -0
- package/dist/mint-components/{p-6156a7ac.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
- package/dist/mint-components/p-1c8b0290.entry.js +1 -0
- package/dist/mint-components/p-1dcdca58.system.entry.js +1 -0
- package/dist/mint-components/p-20d41ab1.entry.js +1 -0
- package/dist/mint-components/{p-965e34ab.entry.js → p-221a4097.entry.js} +1 -1
- package/dist/mint-components/{p-9a3a0db5.system.entry.js → p-223b42bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-af1f8bd3.js → p-224504ad.js} +1 -1
- package/dist/mint-components/{p-3772bae2.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3880833.system.entry.js → p-24c9a599.system.entry.js} +1 -1
- package/dist/mint-components/{p-6cb81b77.entry.js → p-29fab29b.entry.js} +1 -1
- package/dist/mint-components/{p-8bfebd45.system.entry.js → p-304e6c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-05a2640d.entry.js → p-3397167c.entry.js} +1 -1
- package/dist/mint-components/p-33c5ffb7.entry.js +1 -0
- package/dist/mint-components/{p-f16bae7a.system.entry.js → p-396bf448.system.entry.js} +1 -1
- package/dist/mint-components/p-3b97aed8.system.js +1 -0
- package/dist/mint-components/{p-3e3dad7a.system.js → p-3ce2fb83.system.js} +1 -1
- package/dist/mint-components/{p-10a98629.entry.js → p-3d856985.entry.js} +1 -1
- package/dist/mint-components/{p-2f333f89.system.entry.js → p-4052b948.system.entry.js} +1 -1
- package/dist/mint-components/{p-70ca623f.system.entry.js → p-412a9226.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ff0425e.system.entry.js → p-44d0fc80.system.entry.js} +1 -1
- package/dist/mint-components/{p-528aecd1.entry.js → p-45c752a0.entry.js} +1 -1
- package/dist/mint-components/{p-d0cad85c.js → p-46a4269a.js} +2 -2
- package/dist/mint-components/{p-d55abc13.entry.js → p-52802c88.entry.js} +2 -2
- package/dist/mint-components/{p-86b66e5c.entry.js → p-5480e4ee.entry.js} +1 -1
- package/dist/mint-components/p-55508395.system.entry.js +1 -0
- package/dist/mint-components/{p-eddcf481.js → p-563253e8.js} +1 -1
- package/dist/mint-components/p-60855d33.system.js +1 -0
- package/dist/mint-components/{p-036c5a7e.system.entry.js → p-67ae18d1.system.entry.js} +1 -1
- package/dist/mint-components/{p-7d996b49.js → p-6882070c.js} +1 -1
- package/dist/mint-components/{p-09afaaac.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
- package/dist/mint-components/p-6bf0a4d9.system.entry.js +1 -0
- package/dist/mint-components/{p-624c5352.system.entry.js → p-6e245fa3.system.entry.js} +1 -1
- package/dist/mint-components/{p-05a86906.entry.js → p-723ebe45.entry.js} +2 -2
- package/dist/mint-components/{p-9ff118a2.system.entry.js → p-73148868.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3cddcca.entry.js → p-8435a22d.entry.js} +1 -1
- package/dist/mint-components/p-883a32e7.entry.js +1 -0
- package/dist/mint-components/p-925ccb31.system.entry.js +58 -0
- package/dist/mint-components/p-9c554ca0.system.js +1 -0
- package/dist/mint-components/{p-743882c6.entry.js → p-9d6dbb2d.entry.js} +1 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
- package/dist/mint-components/p-a2c3cff3.js +1 -0
- package/dist/mint-components/p-a4c2c7ed.entry.js +1 -0
- package/dist/mint-components/{p-3452bdae.system.js → p-a6094ff9.system.js} +1 -1
- package/dist/mint-components/p-ade44a4e.entry.js +1 -0
- package/dist/mint-components/{p-e50839df.entry.js → p-b1bb07db.entry.js} +1 -1
- package/dist/mint-components/{p-18aa175f.system.js → p-b608f7a4.system.js} +2 -2
- package/dist/mint-components/p-b8bd2607.entry.js +1 -0
- package/dist/mint-components/{p-337a3d6b.system.entry.js → p-be2738b0.system.entry.js} +1 -1
- package/dist/mint-components/{p-27e23808.system.js → p-c6114bfe.system.js} +1 -1
- package/dist/mint-components/{p-4068e47c.system.entry.js → p-c79c608d.system.entry.js} +1 -1
- package/dist/mint-components/p-cca9026f.system.entry.js +1 -0
- package/dist/mint-components/p-cd410a05.entry.js +9 -0
- package/dist/mint-components/{p-55210498.system.js → p-cdeae699.system.js} +1 -1
- package/dist/mint-components/p-d174d0bc.system.entry.js +1 -0
- package/dist/mint-components/{p-c84a5b33.js → p-d21e0dbd.js} +1 -1
- package/dist/mint-components/{p-af2d886e.js → p-d35b0366.js} +1 -1
- package/dist/mint-components/{p-d513229d.js → p-db2e4c42.js} +1 -1
- package/dist/mint-components/{p-991bd182.system.entry.js → p-dc603d08.system.entry.js} +1 -1
- package/dist/mint-components/{p-64759dda.system.js → p-e7f633b9.system.js} +1 -1
- package/dist/mint-components/{p-13605359.entry.js → p-f17050de.entry.js} +1 -1
- package/dist/mint-components/p-f90486ca.js +235 -0
- package/dist/mint-components/{p-cffc23c0.entry.js → p-fce1dbf6.entry.js} +1 -1
- package/dist/mint-components/p-fdb484a0.entry.js +392 -0
- package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
- package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +0 -6
- package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -10
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +1 -3
- package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -8
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +0 -10
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +0 -1
- package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +0 -8
- package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +0 -8
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -2
- package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +4 -0
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +25 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +24 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +43 -0
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +38 -0
- package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +1 -0
- package/dist/types/components/sqm-stencilbook/Matrix.d.ts +11 -0
- package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +16 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +19 -0
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +18 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +80 -0
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +297 -96
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/tables/GenericTableView.d.ts +29 -0
- package/dist/types/tables/TableSlots.d.ts +8 -0
- package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -2
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a48bca9b.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5557504e.js +0 -1
- package/dist/mint-components/p-112d42ab.system.entry.js +0 -1
- package/dist/mint-components/p-192539d2.entry.js +0 -1
- package/dist/mint-components/p-4b6c316d.entry.js +0 -1
- package/dist/mint-components/p-54707082.system.js +0 -1
- package/dist/mint-components/p-5c89c2ec.entry.js +0 -230
- package/dist/mint-components/p-5fcd8687.entry.js +0 -1
- package/dist/mint-components/p-606506d6.system.entry.js +0 -1
- package/dist/mint-components/p-6305419f.entry.js +0 -1
- package/dist/mint-components/p-6815e7ba.entry.js +0 -1
- package/dist/mint-components/p-6ad110d3.js +0 -1
- package/dist/mint-components/p-756a5e6f.system.js +0 -1
- package/dist/mint-components/p-768b9014.system.entry.js +0 -1
- package/dist/mint-components/p-7cf335a0.entry.js +0 -1
- package/dist/mint-components/p-942723ad.entry.js +0 -1
- package/dist/mint-components/p-a646db48.system.entry.js +0 -1
- package/dist/mint-components/p-b63744fe.js +0 -227
- package/dist/mint-components/p-c47b83c3.entry.js +0 -1
- package/dist/mint-components/p-c5c029b8.system.js +0 -1
- package/dist/mint-components/p-c90978f4.system.entry.js +0 -1
- package/dist/mint-components/p-ced568fc.system.entry.js +0 -1
- package/dist/mint-components/p-d1cea1b1.system.js +0 -1
- package/dist/mint-components/p-d3171b36.system.entry.js +0 -1
- package/dist/mint-components/p-de3311bf.entry.js +0 -9
- package/dist/types/stories/UserName.stories.d.ts +0 -6
|
@@ -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() {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
6
|
const [success, setSuccess] = useState(false);
|
|
7
7
|
const [error, setError] = useState("");
|
|
@@ -15,8 +15,7 @@ export function usePortalForgotPassword(props) {
|
|
|
15
15
|
jsonpointer.set(formData, key, value);
|
|
16
16
|
});
|
|
17
17
|
const urlParams = nextPage ? { nextPage } : null;
|
|
18
|
-
const
|
|
19
|
-
const variables = { email: formData.email, urlParams, redirectPath };
|
|
18
|
+
const variables = { email: formData.email, urlParams };
|
|
20
19
|
await request(variables);
|
|
21
20
|
};
|
|
22
21
|
useEffect(() => {
|
|
@@ -35,7 +34,6 @@ export function usePortalForgotPassword(props) {
|
|
|
35
34
|
loading,
|
|
36
35
|
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,
|
|
37
36
|
success,
|
|
38
|
-
loginPath: props.loginPath,
|
|
39
37
|
},
|
|
40
38
|
callbacks: {
|
|
41
39
|
submit,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { navigation, useCurrentPage } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
|
-
import { PortalFrameView } from "
|
|
3
|
+
import { PortalFrameView } from "./sqm-portal-frame-view";
|
|
4
4
|
function setupGraphQL() {
|
|
5
5
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
6
6
|
const accountId = id;
|
|
@@ -32,7 +32,7 @@ function setupLoggedOut() {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export default {
|
|
35
|
-
title: "Portal Frame",
|
|
35
|
+
title: "Components/Portal Frame",
|
|
36
36
|
};
|
|
37
37
|
const defaultProps = {
|
|
38
38
|
data: {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalLoginView, } from "
|
|
2
|
+
import { PortalLoginView, } from "./sqm-portal-login-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Portal Login",
|
|
4
|
+
title: "Components/Portal Login",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
8
8
|
error: "",
|
|
9
9
|
loading: false,
|
|
10
|
-
forgotPasswordPath: "/forgotPassword",
|
|
11
|
-
registerPath: "/register",
|
|
12
10
|
},
|
|
13
11
|
callbacks: {
|
|
14
12
|
submit: async (e) => await e,
|
|
@@ -19,8 +17,6 @@ const errorProps = {
|
|
|
19
17
|
states: {
|
|
20
18
|
error: "Something went wrong. Please try again.",
|
|
21
19
|
loading: false,
|
|
22
|
-
forgotPasswordPath: "/forgotPassword",
|
|
23
|
-
registerPath: "/register",
|
|
24
20
|
},
|
|
25
21
|
callbacks: {
|
|
26
22
|
submit: async (e) => await e,
|
|
@@ -31,8 +27,6 @@ const loadingProps = {
|
|
|
31
27
|
states: {
|
|
32
28
|
error: "",
|
|
33
29
|
loading: true,
|
|
34
|
-
forgotPasswordPath: "/forgotPassword",
|
|
35
|
-
registerPath: "/register",
|
|
36
30
|
},
|
|
37
31
|
callbacks: {
|
|
38
32
|
submit: async (e) => await e,
|
|
@@ -38,14 +38,6 @@ export class PortalLogin {
|
|
|
38
38
|
* @uiName Heading label
|
|
39
39
|
*/
|
|
40
40
|
this.pageLabel = "Sign in to your account";
|
|
41
|
-
/**
|
|
42
|
-
* @uiName Register button redirection path
|
|
43
|
-
*/
|
|
44
|
-
this.registerPath = "/register";
|
|
45
|
-
/**
|
|
46
|
-
* @uiName Forgot password button redirect path
|
|
47
|
-
*/
|
|
48
|
-
this.forgotPasswordPath = "/forgotPassword";
|
|
49
41
|
withHooks(this);
|
|
50
42
|
}
|
|
51
43
|
disconnectedCallback() { }
|
|
@@ -55,9 +47,9 @@ export class PortalLogin {
|
|
|
55
47
|
: usePortalLogin(this);
|
|
56
48
|
const content = {
|
|
57
49
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
58
|
-
h("a", { onClick: () => navigation.push(
|
|
50
|
+
h("a", { onClick: () => navigation.push("/forgotPassword") }, this.forgotPasswordLabel))),
|
|
59
51
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
60
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
52
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push("/register") }, this.registerLabel))),
|
|
61
53
|
emailLabel: this.emailLabel,
|
|
62
54
|
passwordLabel: this.passwordLabel,
|
|
63
55
|
submitLabel: this.submitLabel,
|
|
@@ -215,54 +207,12 @@ export class PortalLogin {
|
|
|
215
207
|
"reflect": false,
|
|
216
208
|
"defaultValue": "\"Sign in to your account\""
|
|
217
209
|
},
|
|
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": "Register button redirection path",
|
|
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": "Forgot password button redirect path",
|
|
252
|
-
"name": "uiName"
|
|
253
|
-
}],
|
|
254
|
-
"text": ""
|
|
255
|
-
},
|
|
256
|
-
"attribute": "forgot-password-path",
|
|
257
|
-
"reflect": false,
|
|
258
|
-
"defaultValue": "\"/forgotPassword\""
|
|
259
|
-
},
|
|
260
210
|
"demoData": {
|
|
261
211
|
"type": "unknown",
|
|
262
212
|
"mutable": false,
|
|
263
213
|
"complexType": {
|
|
264
214
|
"original": "DemoData<PortalLoginViewProps>",
|
|
265
|
-
"resolved": "{ states?: { error: string; loading: boolean;
|
|
215
|
+
"resolved": "{ states?: { error: string; loading: boolean; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }",
|
|
266
216
|
"references": {
|
|
267
217
|
"DemoData": {
|
|
268
218
|
"location": "import",
|
|
@@ -294,12 +244,7 @@ export class PortalLogin {
|
|
|
294
244
|
}
|
|
295
245
|
function useLoginDemo(props) {
|
|
296
246
|
return deepmerge({
|
|
297
|
-
states: {
|
|
298
|
-
error: "",
|
|
299
|
-
loading: false,
|
|
300
|
-
forgotPasswordPath: "/forgotPassword",
|
|
301
|
-
registerPath: "/register",
|
|
302
|
-
},
|
|
247
|
+
states: { error: "", loading: false },
|
|
303
248
|
callbacks: {
|
|
304
249
|
submit: async (_event) => {
|
|
305
250
|
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({ nextPage }) {
|
|
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(props) {
|
|
|
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 ||
|
|
24
|
+
pathname: nextPageOverride || nextPage,
|
|
25
25
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -37,8 +37,6 @@ export function usePortalLogin(props) {
|
|
|
37
37
|
states: {
|
|
38
38
|
loading,
|
|
39
39
|
error: errorMessage,
|
|
40
|
-
registerPath: props.registerPath,
|
|
41
|
-
forgotPasswordPath: props.forgotPasswordPath
|
|
42
40
|
},
|
|
43
41
|
callbacks: {
|
|
44
42
|
submit,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
|
-
import { PortalProfileView, } from "
|
|
4
|
+
import { PortalProfileView, } from "./sqm-portal-profile-view";
|
|
5
5
|
export default {
|
|
6
|
-
title: "Portal Profile",
|
|
6
|
+
title: "Components/Portal Profile",
|
|
7
7
|
};
|
|
8
8
|
// const style = {};
|
|
9
9
|
jss.setup(preset());
|
package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalRegisterView, } from "
|
|
2
|
+
import { PortalRegisterView, } from "./sqm-portal-register-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Portal Register",
|
|
4
|
+
title: "Components/Portal Register",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
@@ -9,7 +9,6 @@ const defaultProps = {
|
|
|
9
9
|
loading: false,
|
|
10
10
|
confirmPassword: true,
|
|
11
11
|
hideInputs: false,
|
|
12
|
-
loginPath: "/login"
|
|
13
12
|
},
|
|
14
13
|
callbacks: {
|
|
15
14
|
submit: () => console.log("Submit!"),
|
|
@@ -26,7 +25,6 @@ const errorProps = {
|
|
|
26
25
|
loading: false,
|
|
27
26
|
confirmPassword: true,
|
|
28
27
|
hideInputs: false,
|
|
29
|
-
loginPath: "/login"
|
|
30
28
|
},
|
|
31
29
|
callbacks: {
|
|
32
30
|
submit: () => console.log("Submit!"),
|
|
@@ -46,7 +44,6 @@ const loadingProps = {
|
|
|
46
44
|
loading: true,
|
|
47
45
|
confirmPassword: true,
|
|
48
46
|
hideInputs: false,
|
|
49
|
-
loginPath: "/login"
|
|
50
47
|
},
|
|
51
48
|
callbacks: {
|
|
52
49
|
submit: () => console.log("Submit!"),
|
|
@@ -63,7 +60,6 @@ const slottedProps = {
|
|
|
63
60
|
loading: false,
|
|
64
61
|
confirmPassword: true,
|
|
65
62
|
hideInputs: false,
|
|
66
|
-
loginPath: "/login"
|
|
67
63
|
},
|
|
68
64
|
callbacks: {
|
|
69
65
|
submit: () => console.log("Submit!"),
|
|
@@ -90,7 +86,6 @@ export const FieldsHidden = () => {
|
|
|
90
86
|
loading: true,
|
|
91
87
|
confirmPassword: true,
|
|
92
88
|
hideInputs: true,
|
|
93
|
-
loginPath: "/login"
|
|
94
89
|
},
|
|
95
90
|
} }));
|
|
96
91
|
};
|
|
@@ -14,12 +14,6 @@ export class PortalRegister {
|
|
|
14
14
|
* @uiName Page navigated to after registration
|
|
15
15
|
*/
|
|
16
16
|
this.nextPage = "/";
|
|
17
|
-
/**
|
|
18
|
-
* The page that users are redirected to from the verification email.
|
|
19
|
-
*
|
|
20
|
-
* @uiName Email redirection base path
|
|
21
|
-
*/
|
|
22
|
-
this.redirectPath = "/verifyEmail";
|
|
23
17
|
/**
|
|
24
18
|
* @uiName Label for email field
|
|
25
19
|
*/
|
|
@@ -56,10 +50,6 @@ export class PortalRegister {
|
|
|
56
50
|
* @uiName Heading label
|
|
57
51
|
*/
|
|
58
52
|
this.pageLabel = "Register";
|
|
59
|
-
/**
|
|
60
|
-
* @uiName Sign in button redirection path
|
|
61
|
-
*/
|
|
62
|
-
this.loginPath = "/login";
|
|
63
53
|
withHooks(this);
|
|
64
54
|
}
|
|
65
55
|
disconnectedCallback() { }
|
|
@@ -70,7 +60,7 @@ export class PortalRegister {
|
|
|
70
60
|
const content = {
|
|
71
61
|
formData: h("slot", { name: "formData" }),
|
|
72
62
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
73
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
63
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push("/login") }, this.loginLabel))),
|
|
74
64
|
emailLabel: this.emailLabel,
|
|
75
65
|
passwordLabel: this.passwordLabel,
|
|
76
66
|
submitLabel: this.submitLabel,
|
|
@@ -103,27 +93,6 @@ export class PortalRegister {
|
|
|
103
93
|
"reflect": false,
|
|
104
94
|
"defaultValue": "\"/\""
|
|
105
95
|
},
|
|
106
|
-
"redirectPath": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "string",
|
|
111
|
-
"resolved": "string",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": false,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [{
|
|
118
|
-
"text": "Email redirection base path",
|
|
119
|
-
"name": "uiName"
|
|
120
|
-
}],
|
|
121
|
-
"text": "The page that users are redirected to from the verification email."
|
|
122
|
-
},
|
|
123
|
-
"attribute": "redirect-path",
|
|
124
|
-
"reflect": false,
|
|
125
|
-
"defaultValue": "\"/verifyEmail\""
|
|
126
|
-
},
|
|
127
96
|
"emailLabel": {
|
|
128
97
|
"type": "string",
|
|
129
98
|
"mutable": false,
|
|
@@ -313,33 +282,12 @@ export class PortalRegister {
|
|
|
313
282
|
"reflect": false,
|
|
314
283
|
"defaultValue": "\"Register\""
|
|
315
284
|
},
|
|
316
|
-
"loginPath": {
|
|
317
|
-
"type": "string",
|
|
318
|
-
"mutable": false,
|
|
319
|
-
"complexType": {
|
|
320
|
-
"original": "string",
|
|
321
|
-
"resolved": "string",
|
|
322
|
-
"references": {}
|
|
323
|
-
},
|
|
324
|
-
"required": false,
|
|
325
|
-
"optional": false,
|
|
326
|
-
"docs": {
|
|
327
|
-
"tags": [{
|
|
328
|
-
"text": "Sign in button redirection path",
|
|
329
|
-
"name": "uiName"
|
|
330
|
-
}],
|
|
331
|
-
"text": ""
|
|
332
|
-
},
|
|
333
|
-
"attribute": "login-path",
|
|
334
|
-
"reflect": false,
|
|
335
|
-
"defaultValue": "\"/login\""
|
|
336
|
-
},
|
|
337
285
|
"demoData": {
|
|
338
286
|
"type": "unknown",
|
|
339
287
|
"mutable": false,
|
|
340
288
|
"complexType": {
|
|
341
289
|
"original": "DemoData<PortalRegisterViewProps>",
|
|
342
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean;
|
|
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; }; }",
|
|
343
291
|
"references": {
|
|
344
292
|
"DemoData": {
|
|
345
293
|
"location": "import",
|
|
@@ -377,7 +325,6 @@ function useRegisterDemo(props) {
|
|
|
377
325
|
confirmPassword: true,
|
|
378
326
|
hideInputs: props.hideInputs || false,
|
|
379
327
|
customPasswordField: false,
|
|
380
|
-
loginPath: "/login",
|
|
381
328
|
},
|
|
382
329
|
callbacks: {
|
|
383
330
|
submit: async (_event) => {
|
|
@@ -47,12 +47,10 @@ export function usePortalRegister(props) {
|
|
|
47
47
|
delete formData.password;
|
|
48
48
|
delete formData.confirmPassword;
|
|
49
49
|
formData = { ...formData };
|
|
50
|
-
const redirectPath = props.redirectPath;
|
|
51
50
|
const variables = {
|
|
52
51
|
email,
|
|
53
52
|
password,
|
|
54
53
|
formData,
|
|
55
|
-
redirectPath,
|
|
56
54
|
};
|
|
57
55
|
try {
|
|
58
56
|
await request(variables);
|
|
@@ -102,7 +100,6 @@ export function usePortalRegister(props) {
|
|
|
102
100
|
validationState,
|
|
103
101
|
confirmPassword: props.confirmPassword,
|
|
104
102
|
hideInputs: props.hideInputs,
|
|
105
|
-
loginPath: props.loginPath,
|
|
106
103
|
},
|
|
107
104
|
callbacks: {
|
|
108
105
|
submit,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalResetPasswordView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalResetPasswordView, } from "./sqm-portal-reset-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-reset-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Reset Password",
|
|
5
|
+
title: "Components/Portal Reset Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -11,17 +11,9 @@ export class PortalResetPassword {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* The page that users are redirected to when the password reset succeeds.
|
|
15
|
-
*
|
|
16
14
|
* @uiName Next page path
|
|
17
15
|
*/
|
|
18
16
|
this.nextPage = "/";
|
|
19
|
-
/**
|
|
20
|
-
* The page that users are redirected to if the reset fails due to outdated password reset attempt.
|
|
21
|
-
*
|
|
22
|
-
* @uiName Failed page redirection path
|
|
23
|
-
*/
|
|
24
|
-
this.failedPage = "/";
|
|
25
17
|
/**
|
|
26
18
|
* @uiName Show confirm password
|
|
27
19
|
*/
|
|
@@ -81,33 +73,12 @@ export class PortalResetPassword {
|
|
|
81
73
|
"text": "Next page path",
|
|
82
74
|
"name": "uiName"
|
|
83
75
|
}],
|
|
84
|
-
"text": "
|
|
76
|
+
"text": ""
|
|
85
77
|
},
|
|
86
78
|
"attribute": "next-page",
|
|
87
79
|
"reflect": false,
|
|
88
80
|
"defaultValue": "\"/\""
|
|
89
81
|
},
|
|
90
|
-
"failedPage": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "string",
|
|
95
|
-
"resolved": "string",
|
|
96
|
-
"references": {}
|
|
97
|
-
},
|
|
98
|
-
"required": false,
|
|
99
|
-
"optional": false,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [{
|
|
102
|
-
"text": "Failed page redirection path",
|
|
103
|
-
"name": "uiName"
|
|
104
|
-
}],
|
|
105
|
-
"text": "The page that users are redirected to if the reset fails due to outdated password reset attempt."
|
|
106
|
-
},
|
|
107
|
-
"attribute": "failed-page",
|
|
108
|
-
"reflect": false,
|
|
109
|
-
"defaultValue": "\"/\""
|
|
110
|
-
},
|
|
111
82
|
"confirmPassword": {
|
|
112
83
|
"type": "boolean",
|
|
113
84
|
"mutable": false,
|
package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalVerifyEmailView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalVerifyEmailView, } from "./sqm-portal-verify-email-view";
|
|
3
|
+
import scenario from "./sqm-portal-verify-email.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Verify Email",
|
|
5
|
+
title: "Components/Portal Verify Email",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -11,17 +11,9 @@ export class PortalVerifyEmail {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* The page that users are redirected to when the verification succeeds.
|
|
15
|
-
*
|
|
16
14
|
* @uiName Next page path
|
|
17
15
|
*/
|
|
18
16
|
this.nextPage = "/";
|
|
19
|
-
/**
|
|
20
|
-
* The page that users are redirected to if verification fails due to outdated verification attempt.
|
|
21
|
-
*
|
|
22
|
-
* @uiName Failed page redirection path
|
|
23
|
-
*/
|
|
24
|
-
this.failedPage = "/";
|
|
25
17
|
withHooks(this);
|
|
26
18
|
}
|
|
27
19
|
disconnectedCallback() { }
|
|
@@ -49,33 +41,12 @@ export class PortalVerifyEmail {
|
|
|
49
41
|
"text": "Next page path",
|
|
50
42
|
"name": "uiName"
|
|
51
43
|
}],
|
|
52
|
-
"text": "
|
|
44
|
+
"text": ""
|
|
53
45
|
},
|
|
54
46
|
"attribute": "next-page",
|
|
55
47
|
"reflect": false,
|
|
56
48
|
"defaultValue": "\"/\""
|
|
57
49
|
},
|
|
58
|
-
"failedPage": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"mutable": false,
|
|
61
|
-
"complexType": {
|
|
62
|
-
"original": "string",
|
|
63
|
-
"resolved": "string",
|
|
64
|
-
"references": {}
|
|
65
|
-
},
|
|
66
|
-
"required": false,
|
|
67
|
-
"optional": false,
|
|
68
|
-
"docs": {
|
|
69
|
-
"tags": [{
|
|
70
|
-
"text": "Failed page redirection path",
|
|
71
|
-
"name": "uiName"
|
|
72
|
-
}],
|
|
73
|
-
"text": "The page that users are redirected to if verification fails due to outdated verification attempt."
|
|
74
|
-
},
|
|
75
|
-
"attribute": "failed-page",
|
|
76
|
-
"reflect": false,
|
|
77
|
-
"defaultValue": "\"/\""
|
|
78
|
-
},
|
|
79
50
|
"demoData": {
|
|
80
51
|
"type": "unknown",
|
|
81
52
|
"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 }) {
|
|
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, failedPage }) {
|
|
|
13
13
|
urlParams.delete("oobCode");
|
|
14
14
|
const failed = () => {
|
|
15
15
|
return navigation.push({
|
|
16
|
-
pathname:
|
|
16
|
+
pathname: "/",
|
|
17
17
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
18
18
|
});
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createHookStory } from "../
|
|
3
|
-
import dashboardTemplate from "
|
|
2
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
3
|
+
import dashboardTemplate from "../../templates/Dashboard.html";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Program Menu",
|
|
6
6
|
};
|
package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ReferralIframeView, } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { ReferralIframeView, } from "./sqm-referral-iframe-view";
|
|
3
|
+
import scenario from "../sqm-referral-iframe/sqm-referral-iframe.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Referral Iframe",
|
|
6
6
|
parameters: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ReferralTableView } from "
|
|
2
|
+
import { ReferralTableView } from "./sqm-referral-table-view";
|
|
3
3
|
import { AvailableNoExpiry, Cancelled, PendingNoUnpend, } from "./ReferralTableRewardsCell.stories";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Referral Table",
|
|
5
|
+
title: "Components/Referral Table",
|
|
6
6
|
};
|
|
7
7
|
const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
|
|
8
8
|
h("sqm-table-row", null,
|
|
@@ -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 "../../../tables/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 "../../../tables/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 "../../../tables/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 "../../../tables/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 "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table User Column
|
|
6
6
|
*/
|
|
@@ -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 "../../tables/re-render";
|
|
6
|
+
import { useChildElements } from "../../tables/useChildElements";
|
|
7
7
|
const GET_REFERRER_DATA = gql `
|
|
8
8
|
query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
|
|
9
9
|
viewer {
|