@saasquatch/mint-components 1.4.0 → 1.5.0-3
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-brand_31.cjs.entry.js} +7347 -859
- 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-program-explainer-step-view-98958ab1.js +64 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +22 -0
- package/dist/cjs/sqm-program-explainer-view-ba7ed24a.js +44 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +23 -0
- 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 +22 -3
- package/dist/cjs/{useDemoBigStat-d7a60992.js → useDemoBigStat-2786227e.js} +121 -24
- package/dist/collection/collection-manifest.json +10 -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/components/sqm-brand/SqmBrand.stories.js +75 -0
- package/dist/collection/components/sqm-brand/sqm-brand.js +59 -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/components/sqm-program-explainer/ProgramExplainer.stories.js +46 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +40 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +131 -0
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +21 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +60 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +100 -0
- 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 +22 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +247 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +27 -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 +507 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +490 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +198 -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 +189 -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/components/sqm-share-code/useShareCode.js +20 -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-share-link/useShareLink.js +20 -1
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +54 -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 +52 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +93 -38
- package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +424 -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 +370 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +240 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +443 -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-brand_31.entry.js} +7900 -1417
- 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-program-explainer-step-view-64fc0c37.js +62 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +18 -0
- package/dist/esm/sqm-program-explainer-view-68f0d242.js +42 -0
- package/dist/esm/sqm-program-explainer.entry.js +19 -0
- 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 +22 -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-brand_31.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-program-explainer-step-view-64fc0c37.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-view-68f0d242.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -0
- 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-1435350e.system.js +1 -0
- 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-259d31fc.entry.js +1 -0
- 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-49cbd0a2.entry.js +13 -0
- 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-eddcf481.js → p-563253e8.js} +1 -1
- package/dist/mint-components/p-5cda79ed.system.entry.js +1 -0
- 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-6d6be8bd.system.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-864f49d2.system.entry.js +1 -0
- package/dist/mint-components/p-883a32e7.entry.js +1 -0
- package/dist/mint-components/p-8c4931a5.js +1 -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-adcde089.system.entry.js +58 -0
- 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-bf7fcf0c.js +1 -0
- 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-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-dd865aa8.entry.js +397 -0
- package/dist/mint-components/p-e6d77d20.system.entry.js +1 -0
- 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-f52bc20c.entry.js +1 -0
- 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/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/components/sqm-brand/SqmBrand.stories.d.ts +6 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +17 -0
- 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/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +7 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +31 -0
- package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +5 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +7 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +24 -0
- 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 +15 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +319 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +5 -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 +28 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +77 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +60 -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 +16 -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 +17 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +20 -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 +528 -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 +3 -1
- 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
|
@@ -35,7 +35,13 @@ _, status) => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, { queryFilter }, (res) => {
|
|
38
|
+
`, { queryFilter }, (res) => {
|
|
39
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
40
|
+
return ({
|
|
41
|
+
value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
|
|
42
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
43
|
+
});
|
|
44
|
+
});
|
|
39
45
|
};
|
|
40
46
|
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
41
47
|
// Confirm this behaviour
|
|
@@ -55,9 +61,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
58
|
-
var _a, _b, _c, _d, _e;
|
|
64
|
+
var _a, _b, _c, _d, _e, _f;
|
|
59
65
|
const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
|
|
60
|
-
return
|
|
66
|
+
return {
|
|
67
|
+
value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
|
|
68
|
+
statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
const customFieldsQuery = (programId, locale, fieldName, goalId) => {
|
|
73
|
+
// Confirm this behaviour
|
|
74
|
+
if (programId === "classic")
|
|
75
|
+
return null;
|
|
76
|
+
return debugQuery(gql `
|
|
77
|
+
query {
|
|
78
|
+
viewer {
|
|
79
|
+
... on User {
|
|
80
|
+
customFields
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`, { programId, fieldName, goalId, locale }, (res) => {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
|
|
87
|
+
return {
|
|
88
|
+
value: customField || 0,
|
|
89
|
+
statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
|
|
90
|
+
};
|
|
61
91
|
});
|
|
62
92
|
};
|
|
63
93
|
const referralsMonthQuery = (programId) => {
|
|
@@ -78,7 +108,13 @@ const referralsMonthQuery = (programId) => {
|
|
|
78
108
|
}
|
|
79
109
|
}
|
|
80
110
|
}
|
|
81
|
-
`, { filter }, (res) => {
|
|
111
|
+
`, { filter }, (res) => {
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
113
|
+
return ({
|
|
114
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
115
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
116
|
+
});
|
|
117
|
+
});
|
|
82
118
|
};
|
|
83
119
|
const referralsWeekQuery = (programId) => {
|
|
84
120
|
const programFilter = programId === "classic"
|
|
@@ -98,7 +134,13 @@ const referralsWeekQuery = (programId) => {
|
|
|
98
134
|
}
|
|
99
135
|
}
|
|
100
136
|
}
|
|
101
|
-
`, { filter }, (res) => {
|
|
137
|
+
`, { filter }, (res) => {
|
|
138
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
139
|
+
return ({
|
|
140
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
141
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
142
|
+
});
|
|
143
|
+
});
|
|
102
144
|
};
|
|
103
145
|
const rewardsCountQuery = (programId,
|
|
104
146
|
// locale
|
|
@@ -115,7 +157,13 @@ _, global = "") => {
|
|
|
115
157
|
}
|
|
116
158
|
`, {
|
|
117
159
|
programId: !global && programId !== "classic" ? programId : null,
|
|
118
|
-
}, (res) => {
|
|
160
|
+
}, (res) => {
|
|
161
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
162
|
+
return ({
|
|
163
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
164
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
165
|
+
});
|
|
166
|
+
});
|
|
119
167
|
};
|
|
120
168
|
const rewardsCountFilteredQuery = (programId,
|
|
121
169
|
// locale
|
|
@@ -148,7 +196,13 @@ _, type, unit, status, global = "") => {
|
|
|
148
196
|
unit,
|
|
149
197
|
type,
|
|
150
198
|
statusFilter,
|
|
151
|
-
}, (res) => {
|
|
199
|
+
}, (res) => {
|
|
200
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
201
|
+
return ({
|
|
202
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
203
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
204
|
+
});
|
|
205
|
+
});
|
|
152
206
|
};
|
|
153
207
|
const integrationRewardsCountFilteredQuery = (programId,
|
|
154
208
|
// locale
|
|
@@ -173,7 +227,13 @@ _, status, global = "") => {
|
|
|
173
227
|
`, {
|
|
174
228
|
programId: !global && programId !== "classic" ? programId : null,
|
|
175
229
|
statusFilter,
|
|
176
|
-
}, (res) => {
|
|
230
|
+
}, (res) => {
|
|
231
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
232
|
+
return ({
|
|
233
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
234
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
235
|
+
});
|
|
236
|
+
});
|
|
177
237
|
};
|
|
178
238
|
const rewardsMonthQuery = (programId,
|
|
179
239
|
// locale
|
|
@@ -195,7 +255,13 @@ _, global = "") => {
|
|
|
195
255
|
}
|
|
196
256
|
`, {
|
|
197
257
|
programId: !global && programId !== "classic" ? programId : null,
|
|
198
|
-
}, (res) => {
|
|
258
|
+
}, (res) => {
|
|
259
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
260
|
+
return ({
|
|
261
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
262
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
263
|
+
});
|
|
264
|
+
});
|
|
199
265
|
};
|
|
200
266
|
const rewardsWeekQuery = (programId,
|
|
201
267
|
// locale
|
|
@@ -217,7 +283,13 @@ _, global = "") => {
|
|
|
217
283
|
}
|
|
218
284
|
`, {
|
|
219
285
|
programId: !global && programId !== "classic" ? programId : null,
|
|
220
|
-
}, (res) => {
|
|
286
|
+
}, (res) => {
|
|
287
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
288
|
+
return ({
|
|
289
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
290
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
291
|
+
});
|
|
292
|
+
});
|
|
221
293
|
};
|
|
222
294
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
223
295
|
return debugQuery(gql `
|
|
@@ -252,10 +324,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
252
324
|
unit,
|
|
253
325
|
locale,
|
|
254
326
|
}, (res) => {
|
|
255
|
-
var _a, _b, _c, _d;
|
|
327
|
+
var _a, _b, _c, _d, _e;
|
|
256
328
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
257
329
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
258
|
-
return
|
|
330
|
+
return {
|
|
331
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
|
|
332
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
|
|
333
|
+
};
|
|
259
334
|
});
|
|
260
335
|
};
|
|
261
336
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -291,10 +366,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
291
366
|
unit,
|
|
292
367
|
locale,
|
|
293
368
|
}, (res) => {
|
|
294
|
-
var _a, _b, _c, _d;
|
|
369
|
+
var _a, _b, _c, _d, _e;
|
|
295
370
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
296
371
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
297
|
-
return
|
|
372
|
+
return {
|
|
373
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
|
|
374
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
|
|
375
|
+
};
|
|
298
376
|
});
|
|
299
377
|
};
|
|
300
378
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -330,10 +408,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
|
330
408
|
unit,
|
|
331
409
|
locale,
|
|
332
410
|
}, (res) => {
|
|
333
|
-
var _a, _b, _c, _d;
|
|
411
|
+
var _a, _b, _c, _d, _e;
|
|
334
412
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
335
413
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
336
|
-
return
|
|
414
|
+
return {
|
|
415
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
|
|
416
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
|
|
417
|
+
};
|
|
337
418
|
});
|
|
338
419
|
};
|
|
339
420
|
const parseRewardValueFormat = {
|
|
@@ -376,10 +457,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
|
|
|
376
457
|
format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
|
|
377
458
|
locale,
|
|
378
459
|
}, (res) => {
|
|
379
|
-
var _a, _b, _c, _d;
|
|
460
|
+
var _a, _b, _c, _d, _e;
|
|
380
461
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
381
462
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
382
|
-
return
|
|
463
|
+
return {
|
|
464
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
|
|
465
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
|
|
466
|
+
};
|
|
383
467
|
});
|
|
384
468
|
};
|
|
385
469
|
// functions are of the form (programId: string, ...args: string) => string
|
|
@@ -436,10 +520,15 @@ export const queries = {
|
|
|
436
520
|
label: "Program Goals",
|
|
437
521
|
query: programGoalsQuery,
|
|
438
522
|
},
|
|
523
|
+
customFields: {
|
|
524
|
+
label: "Custom Fields",
|
|
525
|
+
query: customFieldsQuery,
|
|
526
|
+
},
|
|
439
527
|
};
|
|
440
528
|
// this should be exposed in documentation somehow
|
|
441
529
|
export const StatPaths = [
|
|
442
530
|
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
531
|
+
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
443
532
|
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
444
533
|
{ name: "referralsMonth", route: "/(referralsMonth)" },
|
|
445
534
|
{ name: "referralsWeek", route: "/(referralsWeek)" },
|
|
@@ -473,13 +562,15 @@ export const StatPaths = [
|
|
|
473
562
|
];
|
|
474
563
|
export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
475
564
|
export function useBigStat(props) {
|
|
476
|
-
|
|
565
|
+
var _a;
|
|
566
|
+
const { statType, flexReverse, alignment } = props;
|
|
567
|
+
const programId = useProgramId();
|
|
477
568
|
const locale = useLocale();
|
|
478
569
|
const userIdent = useUserIdentity();
|
|
479
570
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
480
571
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
481
572
|
return {
|
|
482
|
-
props: { statvalue: "!!!", flexReverse, alignment },
|
|
573
|
+
props: { value: 0, statvalue: "!!!", flexReverse, alignment },
|
|
483
574
|
label: "BAD PROP TYPE",
|
|
484
575
|
};
|
|
485
576
|
}
|
|
@@ -502,7 +593,12 @@ export function useBigStat(props) {
|
|
|
502
593
|
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
503
594
|
debug("stat:", stat);
|
|
504
595
|
return {
|
|
505
|
-
props: {
|
|
596
|
+
props: {
|
|
597
|
+
value: stat === null || stat === void 0 ? void 0 : stat.value,
|
|
598
|
+
statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
|
|
599
|
+
flexReverse,
|
|
600
|
+
alignment,
|
|
601
|
+
},
|
|
506
602
|
label,
|
|
507
603
|
};
|
|
508
604
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export default {
|
|
3
|
+
title: "Components/Brand",
|
|
4
|
+
};
|
|
5
|
+
const SampleComponents = () => (h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
|
|
6
|
+
h("sl-button", { type: "default" }, "Default"),
|
|
7
|
+
h("sl-button", { type: "primary" }, "Primary"),
|
|
8
|
+
h("sl-button", { type: "success" }, "Success"),
|
|
9
|
+
h("sl-button", { type: "neutral" }, "Neutral"),
|
|
10
|
+
h("sl-button", { type: "warning" }, "Warning"),
|
|
11
|
+
h("sl-button", { type: "danger" }, "Danger"),
|
|
12
|
+
h("br", null),
|
|
13
|
+
h("sl-badge", { type: "primary" }, "Primary"),
|
|
14
|
+
h("sl-badge", { type: "success" }, "Success"),
|
|
15
|
+
h("sl-badge", { type: "neutral" }, "Neutral"),
|
|
16
|
+
h("sl-badge", { type: "warning" }, "Warning"),
|
|
17
|
+
h("sl-badge", { type: "danger" }, "Danger"),
|
|
18
|
+
h("div", { class: "color-palette" },
|
|
19
|
+
h("div", { class: "color-palette__name" },
|
|
20
|
+
"Primary",
|
|
21
|
+
h("br", null),
|
|
22
|
+
h("code", null,
|
|
23
|
+
"--sl-color-primary-",
|
|
24
|
+
h("em", null, `{n}`))),
|
|
25
|
+
h("div", { style: { display: "flex", gap: "5px" } },
|
|
26
|
+
h(ColorSwatch, { depth: 50 }),
|
|
27
|
+
h(ColorSwatch, { depth: 100 }),
|
|
28
|
+
h(ColorSwatch, { depth: 200 }),
|
|
29
|
+
h(ColorSwatch, { depth: 300 }),
|
|
30
|
+
h(ColorSwatch, { depth: 400 }),
|
|
31
|
+
h(ColorSwatch, { depth: 500 }),
|
|
32
|
+
h(ColorSwatch, { depth: 600 }),
|
|
33
|
+
h(ColorSwatch, { depth: 700 }),
|
|
34
|
+
h(ColorSwatch, { depth: 800 }),
|
|
35
|
+
h(ColorSwatch, { depth: 900 }),
|
|
36
|
+
h(ColorSwatch, { depth: 950 })))));
|
|
37
|
+
export const Examples = () => {
|
|
38
|
+
return (h("div", null,
|
|
39
|
+
h(SampleComponents, null),
|
|
40
|
+
h("sqm-brand", { "brand-color": "#FF0000" },
|
|
41
|
+
h(SampleComponents, null)),
|
|
42
|
+
h("sqm-brand", { "brand-color": "#00FF00" },
|
|
43
|
+
h(SampleComponents, null)),
|
|
44
|
+
h("sqm-brand", { "brand-color": "#0000FF" },
|
|
45
|
+
h(SampleComponents, null)),
|
|
46
|
+
h("sqm-brand", { "brand-color": "#000000" },
|
|
47
|
+
h(SampleComponents, null))));
|
|
48
|
+
};
|
|
49
|
+
export const Nested = () => {
|
|
50
|
+
return (h("div", null,
|
|
51
|
+
"Default ",
|
|
52
|
+
h(SampleComponents, null),
|
|
53
|
+
h("sqm-brand", { "brand-color": "#FF0000" },
|
|
54
|
+
"Red:",
|
|
55
|
+
h(SampleComponents, null),
|
|
56
|
+
h("sqm-brand", { "brand-color": "#00FF00" },
|
|
57
|
+
"Green:",
|
|
58
|
+
h(SampleComponents, null),
|
|
59
|
+
h("sqm-brand", { "brand-color": "#0000FF" },
|
|
60
|
+
"Blue:",
|
|
61
|
+
h(SampleComponents, null),
|
|
62
|
+
h("sqm-brand", { "brand-color": "#000000" },
|
|
63
|
+
"Black:",
|
|
64
|
+
h(SampleComponents, null)))))));
|
|
65
|
+
};
|
|
66
|
+
function ColorSwatch({ depth }) {
|
|
67
|
+
return (h("div", { style: {
|
|
68
|
+
backgroundColor: `var(--sl-color-primary-${depth})`,
|
|
69
|
+
width: "50px",
|
|
70
|
+
height: "50px",
|
|
71
|
+
display: "flex",
|
|
72
|
+
justifyContent: "center",
|
|
73
|
+
alignItems: "center"
|
|
74
|
+
} }, depth));
|
|
75
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { autoColorScaleCss, } from "../sqm-stencilbook/AutoColor";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @uiName Big Stat
|
|
7
|
+
* @slot the description of the component
|
|
8
|
+
*/
|
|
9
|
+
export class BrandComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
/**
|
|
12
|
+
* Controls the primary brand color used in the Mint Components library. Note that this
|
|
13
|
+
* does not affect vanilla components or other component libraries.
|
|
14
|
+
*
|
|
15
|
+
* @uiName Brand Color
|
|
16
|
+
*/
|
|
17
|
+
this.brandColor = "#0000FF";
|
|
18
|
+
withHooks(this);
|
|
19
|
+
}
|
|
20
|
+
disconnectedCallback() { }
|
|
21
|
+
render() {
|
|
22
|
+
const css = autoColorScaleCss(this.brandColor);
|
|
23
|
+
return (h(Host, null,
|
|
24
|
+
h("style", null, `
|
|
25
|
+
:host{
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
/* Selects any element placed inside a slot */
|
|
29
|
+
::slotted(*) {
|
|
30
|
+
${css}
|
|
31
|
+
}`),
|
|
32
|
+
h("slot", null)));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "sqm-brand"; }
|
|
35
|
+
static get encapsulation() { return "shadow"; }
|
|
36
|
+
static get properties() { return {
|
|
37
|
+
"brandColor": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "string",
|
|
42
|
+
"resolved": "string",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [{
|
|
49
|
+
"text": "Brand Color",
|
|
50
|
+
"name": "uiName"
|
|
51
|
+
}],
|
|
52
|
+
"text": "Controls the primary brand color used in the Mint Components library. Note that this\r\ndoes not affect vanilla components or other component libraries."
|
|
53
|
+
},
|
|
54
|
+
"attribute": "brand-color",
|
|
55
|
+
"reflect": false,
|
|
56
|
+
"defaultValue": "\"#0000FF\""
|
|
57
|
+
}
|
|
58
|
+
}; }
|
|
59
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarItemView } from "../
|
|
3
|
-
import { NavigationSidebarView } from "../
|
|
4
|
-
import { PortalSectionView } from "../
|
|
2
|
+
import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
|
|
3
|
+
import { NavigationSidebarView } from "../sqm-navigation-sidebar/sqm-navigation-sidebar-view";
|
|
4
|
+
import { PortalSectionView } from "../sqm-titled-section/sqm-portal-section-view";
|
|
5
5
|
export default {
|
|
6
|
-
title: "Divided Layout",
|
|
6
|
+
title: "Components/Divided Layout",
|
|
7
7
|
};
|
|
8
8
|
const barProps = {
|
|
9
9
|
data: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import EditProfileView from "
|
|
2
|
+
import EditProfileView from "./sqm-edit-profile-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Edit Profile Form",
|
|
4
|
+
title: "Components/Edit Profile Form",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
|
-
import { createHookStory } from "../
|
|
4
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
5
5
|
function setupGraphQL() {
|
|
6
6
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
7
7
|
const accountId = id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { HeroView } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { HeroView } from "./sqm-hero-view";
|
|
3
|
+
import scenario from "../sqm-hero/sqm-hero.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Hero Layout",
|
|
6
6
|
parameters: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { LeaderboardView } from "
|
|
2
|
+
import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Leaderboard",
|
|
4
|
+
title: "Components/Leaderboard",
|
|
5
5
|
parameters: {
|
|
6
6
|
tagname: "sqm-leaderboard",
|
|
7
7
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createHookStory } from "../
|
|
3
|
-
import { useLeaderboard, } from "
|
|
4
|
-
import { LeaderboardView } from "
|
|
2
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
3
|
+
import { useLeaderboard, } from "./useLeaderboard";
|
|
4
|
+
import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
5
5
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
6
6
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
7
7
|
export default {
|
package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { LeaderboardRankView } from "
|
|
2
|
+
import { LeaderboardRankView } from "./sqm-leaderboard-rank-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Leaderboard Rank",
|
|
4
|
+
title: "Components/Leaderboard Rank",
|
|
5
5
|
};
|
|
6
6
|
export const First = () => {
|
|
7
7
|
const props = { data: { rank: "1st" } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NameFieldsView, } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { NameFieldsView, } from "./sqm-name-fields-view";
|
|
3
|
+
import scenario from "../sqm-name-fields/sqm-name-fields.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Name Fields",
|
|
6
6
|
parameters: {
|
package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarView } from "
|
|
3
|
-
import { NavigationSidebarItemView } from "../
|
|
2
|
+
import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
|
|
3
|
+
import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Navigation Sidebar",
|
|
5
|
+
title: "Components/Navigation Sidebar",
|
|
6
6
|
};
|
|
7
7
|
export const DefaultNavigationSidebar = () => {
|
|
8
8
|
const barProps = {
|
package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarItemView } from "
|
|
2
|
+
import { NavigationSidebarItemView } from "./sqm-navigation-sidebar-item-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Sidebar Item",
|
|
4
|
+
title: "Components/Sidebar Item",
|
|
5
5
|
};
|
|
6
6
|
export const InactiveItem = () => {
|
|
7
7
|
const props = {
|
package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalChangePasswordView } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalChangePasswordView } from "./sqm-portal-change-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-change-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Change Password",
|
|
5
|
+
title: "Components/Change Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalEmailVerificationView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalEmailVerificationView, } from "./sqm-portal-email-verification-view";
|
|
3
|
+
import scenario from "./sqm-portal-email-verification.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Email Verification",
|
|
5
|
+
title: "Components/Portal Email Verification",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js
CHANGED
|
@@ -10,12 +10,6 @@ import { usePortalEmailVerification } from "./usePortalEmailVerification";
|
|
|
10
10
|
export class PortalEmailVerification {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
|
-
/**
|
|
14
|
-
* The page that users are redirected to from the verification email.
|
|
15
|
-
*
|
|
16
|
-
* @uiName Email redirection base path
|
|
17
|
-
*/
|
|
18
|
-
this.redirectPath = "/verifyEmail";
|
|
19
13
|
/**
|
|
20
14
|
* @uiName Email verification header text
|
|
21
15
|
*/
|
|
@@ -40,27 +34,6 @@ export class PortalEmailVerification {
|
|
|
40
34
|
static get is() { return "sqm-portal-email-verification"; }
|
|
41
35
|
static get encapsulation() { return "shadow"; }
|
|
42
36
|
static get properties() { return {
|
|
43
|
-
"redirectPath": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "string",
|
|
48
|
-
"resolved": "string",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [{
|
|
55
|
-
"text": "Email redirection base path",
|
|
56
|
-
"name": "uiName"
|
|
57
|
-
}],
|
|
58
|
-
"text": "The page that users are redirected to from the verification email."
|
|
59
|
-
},
|
|
60
|
-
"attribute": "redirect-path",
|
|
61
|
-
"reflect": false,
|
|
62
|
-
"defaultValue": "\"/verifyEmail\""
|
|
63
|
-
},
|
|
64
37
|
"emailVerificationHeader": {
|
|
65
38
|
"type": "string",
|
|
66
39
|
"mutable": false,
|
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -14,8 +14,7 @@ export function usePortalEmailVerification(props) {
|
|
|
14
14
|
return;
|
|
15
15
|
setError("");
|
|
16
16
|
const urlParams = nextPage ? { nextPage } : null;
|
|
17
|
-
const
|
|
18
|
-
const variables = { email, urlParams, redirectPath };
|
|
17
|
+
const variables = { email, urlParams };
|
|
19
18
|
await request(variables);
|
|
20
19
|
};
|
|
21
20
|
useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalFooterView } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { PortalFooterView } from "./sqm-portal-footer-view";
|
|
3
|
+
import scenario from "../sqm-portal-footer/sqm-portal-footer.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Portal Footer",
|
|
6
6
|
parameters: {
|