@saasquatch/mint-components 1.3.2-9 → 1.3.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-a85b8c8d.js → ShadowViewAddon-b021dc8c.js} +1 -1
- package/dist/cjs/{global-ff7fbc86.js → global-5610b310.js} +70 -279
- package/dist/cjs/{index.module-7dd4b981.js → index.module-03ce03c2.js} +1 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-6111d4bd.js → re-render-b5efae5f.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-divided-layout_30.cjs.entry.js → sqm-divided-layout_26.cjs.entry.js} +501 -2901
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-leaderboard-rank-view-a99b4cd9.js → sqm-leaderboard-rank-view-c287ac06.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- 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-6c7f78e6.js → sqm-navigation-sidebar-item-view-153503f0.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-2cebd06b.js → sqm-portal-email-verification-view-1d8728f9.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-de1763c4.js → sqm-portal-footer-view-dc4b0667.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +9 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-680ee551.js → sqm-portal-profile-view-a7519f19.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-2025ee9b.js} +21 -117
- package/dist/collection/collection-manifest.json +3 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +20 -115
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +28 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +28 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/{tables → components/sqm-referral-table}/re-render.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-cell.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-row.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/useChildElements.js +0 -0
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +36 -48
- package/dist/collection/global/styles.js +69 -278
- package/dist/collection/global/styles.ts +69 -278
- package/dist/collection/{components/sqm-asset-card → stories}/AssetCard.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/BigStat.stories.js +3 -10
- package/dist/collection/{components/sqm-portal-change-password → stories}/ChangePassword.stories.js +3 -3
- package/dist/collection/{components/sqm-divided-layout → stories}/DividedLayout.stories.js +4 -4
- package/dist/collection/{components/sqm-edit-profile → stories}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{components/sqm-form-message → stories}/FormMessage.stories.js +1 -1
- package/dist/collection/{components/sqm-hero → stories}/Hero.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard → stories}/Leaderboard.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{components/sqm-name-fields → stories}/NameFields.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/{components/sqm-password-field → stories}/PasswordField.stories.js +1 -1
- package/dist/collection/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-footer → stories}/PortalFooter.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.js +7 -3
- package/dist/collection/{components/sqm-portal-frame → stories}/PortalFrame.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-login → stories}/PortalLogin.stories.js +8 -2
- package/dist/collection/{components/sqm-portal-profile → stories}/PortalProfile.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-register → stories}/PortalRegister.stories.js +7 -2
- package/dist/collection/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/{components/sqm-program-menu → stories}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTable.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.js +1 -1
- package/dist/collection/{components/sqm-router → stories}/Router.stories.js +1 -1
- package/dist/collection/{components/sqm-share-button → stories}/ShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/ShareLink.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/UseBigStat.stories.js +4 -7
- package/dist/collection/{components/sqm-edit-profile → stories}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{components/sqm-share-button → stories}/UseShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/UseShareLink.stories.js +3 -3
- package/dist/collection/{components/sqm-user-name → stories}/UserName.stories.js +3 -3
- package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-2e3ea31f.js} +1 -1
- package/dist/esm/{global-923aa737.js → global-cc82aa03.js} +70 -279
- package/dist/esm/{index.module-90d2c3ad.js → index.module-33c313d2.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-e06f2f7f.js → re-render-338d931e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_30.entry.js → sqm-divided-layout_26.entry.js} +503 -2899
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{sqm-leaderboard-rank-view-747ffda8.js → sqm-leaderboard-rank-view-4f48da0c.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- 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-f2304ad9.js → sqm-navigation-sidebar-item-view-5dfa535f.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-a3ebc4a2.js → sqm-portal-email-verification-view-87bf8191.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-7b8a02b1.js → sqm-portal-footer-view-da135cff.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +9 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-4ce8d89d.js → sqm-portal-profile-view-8781176c.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-2fe92931.js} +21 -117
- package/dist/esm-es5/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-2e3ea31f.js} +1 -1
- package/dist/esm-es5/{global-923aa737.js → global-cc82aa03.js} +2 -2
- package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-33c313d2.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-e06f2f7f.js → re-render-338d931e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-747ffda8.js → sqm-leaderboard-rank-view-4f48da0c.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 → sqm-navigation-sidebar-item-view-5dfa535f.js} +1 -1
- 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-a3ebc4a2.js → sqm-portal-email-verification-view-87bf8191.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-7b8a02b1.js → sqm-portal-footer-view-da135cff.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-4ce8d89d.js → sqm-portal-profile-view-8781176c.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-2fe92931.js +1 -0
- package/dist/mint-components/global/styles.ts +69 -278
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-3397167c.entry.js → p-01722953.entry.js} +1 -1
- package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-086aaa1e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8435a22d.entry.js → p-0f84ebfe.entry.js} +1 -1
- package/dist/mint-components/{p-304e6c82.system.entry.js → p-1369c11a.system.entry.js} +1 -1
- package/dist/mint-components/{p-29fab29b.entry.js → p-156464b2.entry.js} +1 -1
- package/dist/mint-components/p-1915df27.system.entry.js +1 -0
- package/dist/mint-components/{p-3ce2fb83.system.js → p-1996e9c8.system.js} +1 -1
- package/dist/mint-components/{p-08e75345.system.entry.js → p-21bb74aa.system.entry.js} +1 -1
- package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-2a6f038c.system.entry.js} +1 -1
- package/dist/mint-components/{p-0c67ccfd.system.entry.js → p-2ad23b02.system.entry.js} +1 -1
- package/dist/mint-components/p-33b57b39.system.entry.js +1 -0
- package/dist/mint-components/{p-24c9a599.system.entry.js → p-34dea514.system.entry.js} +1 -1
- package/dist/mint-components/{p-221a4097.entry.js → p-36de7c74.entry.js} +1 -1
- package/dist/mint-components/p-39c466fb.entry.js +1 -0
- package/dist/mint-components/{p-b7ea778a.js → p-4843c461.js} +1 -1
- package/dist/mint-components/{p-563253e8.js → p-48cdbd66.js} +1 -1
- package/dist/mint-components/{p-a2c3cff3.js → p-4a313a31.js} +1 -1
- package/dist/mint-components/p-4cabd25b.entry.js +1 -0
- package/dist/mint-components/{p-ffbe112d.system.js → p-4e61f958.system.js} +1 -1
- package/dist/mint-components/{p-5480e4ee.entry.js → p-5950e58a.entry.js} +1 -1
- package/dist/mint-components/{p-55508395.system.entry.js → p-683a4971.system.entry.js} +1 -1
- package/dist/mint-components/p-6a44136e.js +227 -0
- package/dist/mint-components/p-7129015b.system.js +1 -0
- package/dist/mint-components/{p-c79c608d.system.entry.js → p-713ea21e.system.entry.js} +1 -1
- package/dist/mint-components/{p-593d2266.system.js → p-754060c8.system.js} +2 -2
- package/dist/mint-components/{p-d174d0bc.system.entry.js → p-772341ce.system.entry.js} +1 -1
- package/dist/mint-components/{p-be2738b0.system.entry.js → p-775529b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-7b7613cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-cca9026f.system.entry.js → p-7c3a270c.system.entry.js} +1 -1
- package/dist/mint-components/{p-c9e3b7bc.js → p-83bdbf25.js} +1 -1
- package/dist/mint-components/{p-d35b0366.js → p-846cebe7.js} +1 -1
- package/dist/mint-components/{p-43fc3f99.system.js → p-871ed4c8.system.js} +1 -1
- package/dist/mint-components/p-8cbc24b8.entry.js +9 -0
- package/dist/mint-components/{p-b7fc2c67.entry.js → p-8d65fef3.entry.js} +1 -1
- package/dist/mint-components/{p-1bfed119.system.js → p-8e87084e.system.js} +1 -1
- package/dist/mint-components/{p-45c752a0.entry.js → p-a011c13c.entry.js} +1 -1
- package/dist/mint-components/{p-9d6dbb2d.entry.js → p-b1e03222.entry.js} +1 -1
- package/dist/mint-components/p-b3bda4e8.entry.js +1 -0
- package/dist/mint-components/{p-ade44a4e.entry.js → p-b3e976e0.entry.js} +1 -1
- package/dist/mint-components/p-b462e84e.system.js +1 -0
- package/dist/mint-components/{p-dc75a335.js → p-b4fc47a0.js} +2 -2
- package/dist/mint-components/{p-224504ad.js → p-bbb3ff09.js} +1 -1
- package/dist/mint-components/{p-0382a7b0.entry.js → p-c03c68c1.entry.js} +1 -1
- package/dist/mint-components/{p-a4c2c7ed.entry.js → p-c1cadf29.entry.js} +1 -1
- package/dist/mint-components/p-c324b1e8.system.js +1 -0
- package/dist/mint-components/{p-3d856985.entry.js → p-c32fb8e5.entry.js} +1 -1
- package/dist/mint-components/{p-0b4af41a.system.entry.js → p-c35bb682.system.entry.js} +1 -1
- package/dist/mint-components/{p-412a9226.system.entry.js → p-c434c33a.system.entry.js} +1 -1
- package/dist/mint-components/{p-8ee4c2d2.system.js → p-c43f3b6b.system.js} +1 -1
- package/dist/mint-components/p-cff66d2e.entry.js +1 -0
- package/dist/mint-components/p-d1604020.system.js +1 -0
- package/dist/mint-components/p-d482d10c.entry.js +1 -0
- package/dist/mint-components/p-d8a80855.entry.js +1 -0
- package/dist/mint-components/{p-4052b948.system.entry.js → p-dd0b0a4a.system.entry.js} +1 -1
- package/dist/mint-components/{p-73148868.system.entry.js → p-e2fc8abf.system.entry.js} +1 -1
- package/dist/mint-components/{p-2e43ba45.entry.js → p-e52c77cd.entry.js} +2 -2
- package/dist/mint-components/p-e835c56c.system.entry.js +1 -0
- package/dist/mint-components/{p-e817ca6b.js → p-e83632dd.js} +1 -1
- package/dist/mint-components/{p-396bf448.system.entry.js → p-ead730e0.system.entry.js} +1 -1
- package/dist/mint-components/p-ec3b7256.entry.js +230 -0
- package/dist/mint-components/p-ec8f1962.system.entry.js +1 -0
- package/dist/mint-components/p-ee6f5a1c.system.js +1 -0
- package/dist/mint-components/{p-ad0f47dc.js → p-f02360c9.js} +1 -1
- package/dist/mint-components/{p-772f52da.entry.js → p-f4a9712a.entry.js} +2 -2
- package/dist/mint-components/p-fa20e730.entry.js +1 -0
- package/dist/mint-components/{p-223b42bd.system.entry.js → p-ff3c9d53.system.entry.js} +1 -1
- package/dist/mint-components/{p-d60085ae.system.entry.js → p-ff3d1ed1.system.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -1
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -4
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +4 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/{tables → components/sqm-referral-table}/re-render.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-row.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/useChildElements.d.ts +0 -0
- package/dist/types/components.d.ts +32 -269
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/{components/sqm-asset-card → stories}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/BigStat.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-change-password → stories}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-divided-layout → stories}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{components/sqm-edit-profile → stories}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{components/sqm-form-message → stories}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{components/sqm-hero → stories}/Hero.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{components/sqm-name-fields → stories}/NameFields.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{components/sqm-password-field → stories}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-footer → stories}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-frame → stories}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-login → stories}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-profile → stories}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-register → stories}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{components/sqm-program-menu → stories}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-router → stories}/Router.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/UseBigStat.stories.d.ts +0 -6
- package/dist/types/{components/sqm-edit-profile → stories}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/stories/UserName.stories.d.ts +6 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +0 -21
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +0 -218
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +0 -8
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -143
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +0 -60
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +0 -270
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -121
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +0 -198
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -53
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +0 -120
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -222
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -194
- package/dist/collection/components/sqm-task-card/Matrix.js +0 -63
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -9
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +0 -330
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +0 -41
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +0 -7
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +0 -311
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +0 -53
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -164
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -384
- package/dist/collection/tables/GenericTableView.js +0 -51
- package/dist/collection/tables/TableSlots.js +0 -22
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-1dcdca58.system.entry.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-3b97aed8.system.js +0 -1
- package/dist/mint-components/p-6e245fa3.system.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-8a7ac67b.entry.js +0 -335
- package/dist/mint-components/p-9c554ca0.system.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-b8bd2607.entry.js +0 -1
- package/dist/mint-components/p-bbf5ba89.system.entry.js +0 -1
- package/dist/mint-components/p-c6114bfe.system.js +0 -1
- package/dist/mint-components/p-cd410a05.entry.js +0 -9
- package/dist/mint-components/p-cdeae699.system.js +0 -1
- package/dist/mint-components/p-f17050de.entry.js +0 -1
- package/dist/mint-components/p-f90486ca.js +0 -235
- package/dist/mint-components/p-fce1dbf6.entry.js +0 -1
- package/dist/mint-components/p-ff616282.system.js +0 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +0 -6
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +0 -81
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +0 -3
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +0 -28
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +0 -4
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +0 -25
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -20
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -43
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +0 -16
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +0 -20
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -38
- package/dist/types/components/sqm-task-card/Matrix.d.ts +0 -11
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -2
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +0 -11
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +0 -10
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +0 -9
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +0 -12
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -16
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -73
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +0 -6
- package/dist/types/tables/GenericTableView.d.ts +0 -29
- package/dist/types/tables/TableSlots.d.ts +0 -8
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"./components/sqm-password-field/sqm-password-field.js",
|
|
4
4
|
"./components/sqm-referral-table/sqm-referral-table.js",
|
|
5
|
-
"./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
|
|
6
|
-
"./components/sqm-rewards-table/sqm-rewards-table.js",
|
|
7
5
|
"./components/sqm-asset-card/sqm-asset-card.js",
|
|
8
6
|
"./components/sqm-big-stat/sqm-big-stat.js",
|
|
9
7
|
"./components/sqm-divided-layout/sqm-divided-layout.js",
|
|
@@ -34,6 +32,8 @@
|
|
|
34
32
|
"./components/sqm-portal-verify-email/sqm-portal-verify-email.js",
|
|
35
33
|
"./components/sqm-program-menu/sqm-program-menu.js",
|
|
36
34
|
"./components/sqm-referral-iframe/sqm-referral-iframe.js",
|
|
35
|
+
"./components/sqm-referral-table/sqm-table-cell.js",
|
|
36
|
+
"./components/sqm-referral-table/sqm-table-row.js",
|
|
37
37
|
"./components/sqm-referral-table/cells/sqm-referral-table-cell.js",
|
|
38
38
|
"./components/sqm-referral-table/cells/sqm-referral-table-date-cell.js",
|
|
39
39
|
"./components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"./components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js",
|
|
45
45
|
"./components/sqm-referral-table/columns/sqm-referral-table-status-column.js",
|
|
46
46
|
"./components/sqm-referral-table/columns/sqm-referral-table-user-column.js",
|
|
47
|
-
"./components/sqm-rewards-table/sqm-rewards-table-column.js",
|
|
48
47
|
"./components/sqm-route/sqm-route.js",
|
|
49
48
|
"./components/sqm-router/sqm-router.js",
|
|
50
49
|
"./components/sqm-share-button/sqm-share-button.js",
|
|
@@ -52,13 +51,10 @@
|
|
|
52
51
|
"./components/sqm-share-link/sqm-share-link.js",
|
|
53
52
|
"./components/sqm-stat-container/sqm-stat-container.js",
|
|
54
53
|
"./components/sqm-stencilbook/sqm-stencilbook.js",
|
|
55
|
-
"./components/sqm-task-card/sqm-task-card.js",
|
|
56
54
|
"./components/sqm-text/sqm-text.js",
|
|
57
55
|
"./components/sqm-text-span/sqm-text-span.js",
|
|
58
56
|
"./components/sqm-titled-section/sqm-titled-section.js",
|
|
59
|
-
"./components/sqm-user-name/sqm-user-name.js"
|
|
60
|
-
"./tables/sqm-table-cell.js",
|
|
61
|
-
"./tables/sqm-table-row.js"
|
|
57
|
+
"./components/sqm-user-name/sqm-user-name.js"
|
|
62
58
|
],
|
|
63
59
|
"compiler": {
|
|
64
60
|
"name": "@stencil/core",
|
|
@@ -105,7 +105,7 @@ export class BigStat {
|
|
|
105
105
|
"mutable": false,
|
|
106
106
|
"complexType": {
|
|
107
107
|
"original": "DemoData<BigStatViewProps>",
|
|
108
|
-
"resolved": "{
|
|
108
|
+
"resolved": "{ statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
|
|
109
109
|
"references": {
|
|
110
110
|
"DemoData": {
|
|
111
111
|
"location": "import",
|
|
@@ -35,13 +35,7 @@ _, status) => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
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
|
-
});
|
|
38
|
+
`, { queryFilter }, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
45
39
|
};
|
|
46
40
|
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
47
41
|
// Confirm this behaviour
|
|
@@ -61,33 +55,9 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
57
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
64
|
-
var _a, _b, _c, _d, _e
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
65
59
|
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);
|
|
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
|
-
};
|
|
60
|
+
return ((_e = (_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) === null || _e === void 0 ? void 0 : _e.toString()) || 0;
|
|
91
61
|
});
|
|
92
62
|
};
|
|
93
63
|
const referralsMonthQuery = (programId) => {
|
|
@@ -108,13 +78,7 @@ const referralsMonthQuery = (programId) => {
|
|
|
108
78
|
}
|
|
109
79
|
}
|
|
110
80
|
}
|
|
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
|
-
});
|
|
81
|
+
`, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
118
82
|
};
|
|
119
83
|
const referralsWeekQuery = (programId) => {
|
|
120
84
|
const programFilter = programId === "classic"
|
|
@@ -134,13 +98,7 @@ const referralsWeekQuery = (programId) => {
|
|
|
134
98
|
}
|
|
135
99
|
}
|
|
136
100
|
}
|
|
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
|
-
});
|
|
101
|
+
`, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
144
102
|
};
|
|
145
103
|
const rewardsCountQuery = (programId,
|
|
146
104
|
// locale
|
|
@@ -157,13 +115,7 @@ _, global = "") => {
|
|
|
157
115
|
}
|
|
158
116
|
`, {
|
|
159
117
|
programId: !global && programId !== "classic" ? programId : null,
|
|
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
|
-
});
|
|
118
|
+
}, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
167
119
|
};
|
|
168
120
|
const rewardsCountFilteredQuery = (programId,
|
|
169
121
|
// locale
|
|
@@ -196,13 +148,7 @@ _, type, unit, status, global = "") => {
|
|
|
196
148
|
unit,
|
|
197
149
|
type,
|
|
198
150
|
statusFilter,
|
|
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
|
-
});
|
|
151
|
+
}, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
206
152
|
};
|
|
207
153
|
const integrationRewardsCountFilteredQuery = (programId,
|
|
208
154
|
// locale
|
|
@@ -227,13 +173,7 @@ _, status, global = "") => {
|
|
|
227
173
|
`, {
|
|
228
174
|
programId: !global && programId !== "classic" ? programId : null,
|
|
229
175
|
statusFilter,
|
|
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
|
-
});
|
|
176
|
+
}, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
237
177
|
};
|
|
238
178
|
const rewardsMonthQuery = (programId,
|
|
239
179
|
// locale
|
|
@@ -255,13 +195,7 @@ _, global = "") => {
|
|
|
255
195
|
}
|
|
256
196
|
`, {
|
|
257
197
|
programId: !global && programId !== "classic" ? programId : null,
|
|
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
|
-
});
|
|
198
|
+
}, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
265
199
|
};
|
|
266
200
|
const rewardsWeekQuery = (programId,
|
|
267
201
|
// locale
|
|
@@ -283,13 +217,7 @@ _, global = "") => {
|
|
|
283
217
|
}
|
|
284
218
|
`, {
|
|
285
219
|
programId: !global && programId !== "classic" ? programId : null,
|
|
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
|
-
});
|
|
220
|
+
}, (res) => { var _a, _b, _c, _d; return (_d = (_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) === null || _d === void 0 ? void 0 : _d.toString(); });
|
|
293
221
|
};
|
|
294
222
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
295
223
|
return debugQuery(gql `
|
|
@@ -324,13 +252,10 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
324
252
|
unit,
|
|
325
253
|
locale,
|
|
326
254
|
}, (res) => {
|
|
327
|
-
var _a, _b, _c, _d
|
|
255
|
+
var _a, _b, _c, _d;
|
|
328
256
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
329
257
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
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
|
-
};
|
|
258
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
|
|
334
259
|
});
|
|
335
260
|
};
|
|
336
261
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -366,13 +291,10 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
366
291
|
unit,
|
|
367
292
|
locale,
|
|
368
293
|
}, (res) => {
|
|
369
|
-
var _a, _b, _c, _d
|
|
294
|
+
var _a, _b, _c, _d;
|
|
370
295
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
371
296
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
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
|
-
};
|
|
297
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
|
|
376
298
|
});
|
|
377
299
|
};
|
|
378
300
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -408,13 +330,10 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
|
408
330
|
unit,
|
|
409
331
|
locale,
|
|
410
332
|
}, (res) => {
|
|
411
|
-
var _a, _b, _c, _d
|
|
333
|
+
var _a, _b, _c, _d;
|
|
412
334
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
413
335
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
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
|
-
};
|
|
336
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
|
|
418
337
|
});
|
|
419
338
|
};
|
|
420
339
|
const parseRewardValueFormat = {
|
|
@@ -457,13 +376,10 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
|
|
|
457
376
|
format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
|
|
458
377
|
locale,
|
|
459
378
|
}, (res) => {
|
|
460
|
-
var _a, _b, _c, _d
|
|
379
|
+
var _a, _b, _c, _d;
|
|
461
380
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
462
381
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
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
|
-
};
|
|
382
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
|
|
467
383
|
});
|
|
468
384
|
};
|
|
469
385
|
// functions are of the form (programId: string, ...args: string) => string
|
|
@@ -520,15 +436,10 @@ export const queries = {
|
|
|
520
436
|
label: "Program Goals",
|
|
521
437
|
query: programGoalsQuery,
|
|
522
438
|
},
|
|
523
|
-
customFields: {
|
|
524
|
-
label: "Custom Fields",
|
|
525
|
-
query: customFieldsQuery,
|
|
526
|
-
},
|
|
527
439
|
};
|
|
528
440
|
// this should be exposed in documentation somehow
|
|
529
441
|
export const StatPaths = [
|
|
530
442
|
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
531
|
-
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
532
443
|
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
533
444
|
{ name: "referralsMonth", route: "/(referralsMonth)" },
|
|
534
445
|
{ name: "referralsWeek", route: "/(referralsWeek)" },
|
|
@@ -562,7 +473,6 @@ export const StatPaths = [
|
|
|
562
473
|
];
|
|
563
474
|
export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
564
475
|
export function useBigStat(props) {
|
|
565
|
-
var _a;
|
|
566
476
|
const { statType, flexReverse, alignment } = props;
|
|
567
477
|
const programId = useProgramId();
|
|
568
478
|
const locale = useLocale();
|
|
@@ -570,7 +480,7 @@ export function useBigStat(props) {
|
|
|
570
480
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
571
481
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
572
482
|
return {
|
|
573
|
-
props: {
|
|
483
|
+
props: { statvalue: "!!!", flexReverse, alignment },
|
|
574
484
|
label: "BAD PROP TYPE",
|
|
575
485
|
};
|
|
576
486
|
}
|
|
@@ -593,12 +503,7 @@ export function useBigStat(props) {
|
|
|
593
503
|
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
594
504
|
debug("stat:", stat);
|
|
595
505
|
return {
|
|
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
|
+
props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
|
|
602
507
|
label,
|
|
603
508
|
};
|
|
604
509
|
}
|
|
@@ -18,16 +18,20 @@ export class PortalForgotPassword {
|
|
|
18
18
|
* @uiName Password reset button text
|
|
19
19
|
*/
|
|
20
20
|
this.submitLabel = "Request Password Reset";
|
|
21
|
+
/**
|
|
22
|
+
* @uiName Routing path to login page
|
|
23
|
+
*/
|
|
24
|
+
this.loginPath = "/login";
|
|
21
25
|
withHooks(this);
|
|
22
26
|
}
|
|
23
27
|
disconnectedCallback() { }
|
|
24
28
|
render() {
|
|
25
29
|
const { states, callbacks } = isDemo()
|
|
26
30
|
? usePortalForgotPasswordDemo(this)
|
|
27
|
-
: usePortalForgotPassword();
|
|
31
|
+
: usePortalForgotPassword(this);
|
|
28
32
|
const content = {
|
|
29
33
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
30
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
34
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, "Sign In"))),
|
|
31
35
|
messageSlot: (h("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
32
36
|
emailLabel: this.emailLabel,
|
|
33
37
|
submitLabel: this.submitLabel,
|
|
@@ -79,12 +83,33 @@ export class PortalForgotPassword {
|
|
|
79
83
|
"reflect": false,
|
|
80
84
|
"defaultValue": "\"Request Password Reset\""
|
|
81
85
|
},
|
|
86
|
+
"loginPath": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string",
|
|
91
|
+
"resolved": "string",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [{
|
|
98
|
+
"text": "Routing path to login page",
|
|
99
|
+
"name": "uiName"
|
|
100
|
+
}],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"attribute": "login-path",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "\"/login\""
|
|
106
|
+
},
|
|
82
107
|
"demoData": {
|
|
83
108
|
"type": "unknown",
|
|
84
109
|
"mutable": false,
|
|
85
110
|
"complexType": {
|
|
86
111
|
"original": "DemoData<PortalForgotPasswordViewProps>",
|
|
87
|
-
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
|
|
112
|
+
"resolved": "{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
|
|
88
113
|
"references": {
|
|
89
114
|
"DemoData": {
|
|
90
115
|
"location": "import",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { useRequestPasswordResetEmailMutation } from "@saasquatch/component-boilerplate";
|
|
4
|
-
export function usePortalForgotPassword() {
|
|
4
|
+
export function usePortalForgotPassword(props) {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
6
|
const [success, setSuccess] = useState(false);
|
|
7
7
|
const [error, setError] = useState("");
|
|
@@ -34,6 +34,7 @@ export function usePortalForgotPassword() {
|
|
|
34
34
|
loading,
|
|
35
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,
|
|
36
36
|
success,
|
|
37
|
+
loginPath: props.loginPath
|
|
37
38
|
},
|
|
38
39
|
callbacks: {
|
|
39
40
|
submit,
|
|
@@ -38,6 +38,14 @@ export class PortalLogin {
|
|
|
38
38
|
* @uiName Heading label
|
|
39
39
|
*/
|
|
40
40
|
this.pageLabel = "Sign in to your account";
|
|
41
|
+
/**
|
|
42
|
+
* @uiName Routing path to register page
|
|
43
|
+
*/
|
|
44
|
+
this.registerPath = "/register";
|
|
45
|
+
/**
|
|
46
|
+
* @uiName Routing path to forgot password page
|
|
47
|
+
*/
|
|
48
|
+
this.forgotPasswordPath = "/forgotPassword";
|
|
41
49
|
withHooks(this);
|
|
42
50
|
}
|
|
43
51
|
disconnectedCallback() { }
|
|
@@ -47,9 +55,9 @@ export class PortalLogin {
|
|
|
47
55
|
: usePortalLogin(this);
|
|
48
56
|
const content = {
|
|
49
57
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
50
|
-
h("a", { onClick: () => navigation.push(
|
|
58
|
+
h("a", { onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
51
59
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
52
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
60
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.registerPath) }, this.registerLabel))),
|
|
53
61
|
emailLabel: this.emailLabel,
|
|
54
62
|
passwordLabel: this.passwordLabel,
|
|
55
63
|
submitLabel: this.submitLabel,
|
|
@@ -207,12 +215,54 @@ export class PortalLogin {
|
|
|
207
215
|
"reflect": false,
|
|
208
216
|
"defaultValue": "\"Sign in to your account\""
|
|
209
217
|
},
|
|
218
|
+
"registerPath": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "string",
|
|
223
|
+
"resolved": "string",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [{
|
|
230
|
+
"text": "Routing path to register page",
|
|
231
|
+
"name": "uiName"
|
|
232
|
+
}],
|
|
233
|
+
"text": ""
|
|
234
|
+
},
|
|
235
|
+
"attribute": "register-path",
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"defaultValue": "\"/register\""
|
|
238
|
+
},
|
|
239
|
+
"forgotPasswordPath": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "string",
|
|
244
|
+
"resolved": "string",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [{
|
|
251
|
+
"text": "Routing path to forgot password page",
|
|
252
|
+
"name": "uiName"
|
|
253
|
+
}],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"attribute": "forgot-password-path",
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"defaultValue": "\"/forgotPassword\""
|
|
259
|
+
},
|
|
210
260
|
"demoData": {
|
|
211
261
|
"type": "unknown",
|
|
212
262
|
"mutable": false,
|
|
213
263
|
"complexType": {
|
|
214
264
|
"original": "DemoData<PortalLoginViewProps>",
|
|
215
|
-
"resolved": "{ states?: { error: string; loading: boolean; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }",
|
|
265
|
+
"resolved": "{ states?: { error: string; loading: boolean; forgotPasswordPath: string; registerPath: string; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }",
|
|
216
266
|
"references": {
|
|
217
267
|
"DemoData": {
|
|
218
268
|
"location": "import",
|
|
@@ -244,7 +294,12 @@ export class PortalLogin {
|
|
|
244
294
|
}
|
|
245
295
|
function useLoginDemo(props) {
|
|
246
296
|
return deepmerge({
|
|
247
|
-
states: {
|
|
297
|
+
states: {
|
|
298
|
+
error: "",
|
|
299
|
+
loading: false,
|
|
300
|
+
forgotPasswordPath: "/forgotPassword",
|
|
301
|
+
registerPath: "/register",
|
|
302
|
+
},
|
|
248
303
|
callbacks: {
|
|
249
304
|
submit: async (_event) => {
|
|
250
305
|
console.log("submit");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { navigation, useAuthenticateWithEmailAndPasswordMutation, } from "@saasquatch/component-boilerplate";
|
|
4
|
-
export function usePortalLogin(
|
|
4
|
+
export function usePortalLogin(props) {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
6
|
const [request, { loading, errors, data }] = useAuthenticateWithEmailAndPasswordMutation();
|
|
7
7
|
const [error, setError] = useState("");
|
|
@@ -21,7 +21,7 @@ export function usePortalLogin({ nextPage }) {
|
|
|
21
21
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
22
22
|
urlParams.delete("nextPage");
|
|
23
23
|
navigation.push({
|
|
24
|
-
pathname: nextPageOverride || nextPage,
|
|
24
|
+
pathname: nextPageOverride || props.nextPage,
|
|
25
25
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -37,6 +37,8 @@ export function usePortalLogin({ nextPage }) {
|
|
|
37
37
|
states: {
|
|
38
38
|
loading,
|
|
39
39
|
error: errorMessage,
|
|
40
|
+
registerPath: props.registerPath,
|
|
41
|
+
forgotPasswordPath: props.registerPath
|
|
40
42
|
},
|
|
41
43
|
callbacks: {
|
|
42
44
|
submit,
|
|
@@ -50,6 +50,10 @@ export class PortalRegister {
|
|
|
50
50
|
* @uiName Heading label
|
|
51
51
|
*/
|
|
52
52
|
this.pageLabel = "Register";
|
|
53
|
+
/**
|
|
54
|
+
* @uiName Routing path to login page
|
|
55
|
+
*/
|
|
56
|
+
this.loginPath = "/login";
|
|
53
57
|
withHooks(this);
|
|
54
58
|
}
|
|
55
59
|
disconnectedCallback() { }
|
|
@@ -60,7 +64,7 @@ export class PortalRegister {
|
|
|
60
64
|
const content = {
|
|
61
65
|
formData: h("slot", { name: "formData" }),
|
|
62
66
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
63
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
67
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, this.loginLabel))),
|
|
64
68
|
emailLabel: this.emailLabel,
|
|
65
69
|
passwordLabel: this.passwordLabel,
|
|
66
70
|
submitLabel: this.submitLabel,
|
|
@@ -282,12 +286,33 @@ export class PortalRegister {
|
|
|
282
286
|
"reflect": false,
|
|
283
287
|
"defaultValue": "\"Register\""
|
|
284
288
|
},
|
|
289
|
+
"loginPath": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "string",
|
|
294
|
+
"resolved": "string",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [{
|
|
301
|
+
"text": "Routing path to login page",
|
|
302
|
+
"name": "uiName"
|
|
303
|
+
}],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"attribute": "login-path",
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"defaultValue": "\"/login\""
|
|
309
|
+
},
|
|
285
310
|
"demoData": {
|
|
286
311
|
"type": "unknown",
|
|
287
312
|
"mutable": false,
|
|
288
313
|
"complexType": {
|
|
289
314
|
"original": "DemoData<PortalRegisterViewProps>",
|
|
290
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean;
|
|
315
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; loginPath: string; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }",
|
|
291
316
|
"references": {
|
|
292
317
|
"DemoData": {
|
|
293
318
|
"location": "import",
|
|
@@ -325,6 +350,7 @@ function useRegisterDemo(props) {
|
|
|
325
350
|
confirmPassword: true,
|
|
326
351
|
hideInputs: props.hideInputs || false,
|
|
327
352
|
customPasswordField: false,
|
|
353
|
+
loginPath: "/login",
|
|
328
354
|
},
|
|
329
355
|
callbacks: {
|
|
330
356
|
submit: async (_event) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, getElement, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Generic Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Date Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Rewards Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Status Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table User Column
|
|
6
6
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|