@saasquatch/mint-components 1.3.3-6 → 1.4.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -24
- package/dist/cjs/{ShadowViewAddon-d6a442a9.js → ShadowViewAddon-e9bacad0.js} +3 -3
- package/dist/cjs/{global-b957dd98.js → global-413d075c.js} +72 -284
- package/dist/cjs/{index.module-85eb6b4d.js → index.module-2925fe3b.js} +16 -18
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-59955561.js → re-render-b1ad512d.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-divided-layout_30.cjs.entry.js → sqm-divided-layout_26.cjs.entry.js} +389 -2813
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-9114d9ad.js → sqm-leaderboard-rank-view-b1b55673.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-b565a10a.js → sqm-navigation-sidebar-item-view-1bad646a.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-bd40f7eb.js → sqm-portal-email-verification-view-eeb4ca62.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -6
- package/dist/cjs/{sqm-portal-footer-view-b60e17c8.js → sqm-portal-footer-view-08a2efd5.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +18 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-c3b889d4.js → sqm-portal-profile-view-ce86369e.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 +14 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +15 -7
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +3 -3
- package/dist/cjs/{useDemoBigStat-9193e8c5.js → useDemoBigStat-d7a60992.js} +24 -121
- package/dist/collection/collection-manifest.json +3 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +21 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +21 -117
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +27 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +55 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +55 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -1
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +30 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/{tables → components/sqm-referral-table}/re-render.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-cell.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/sqm-table-row.js +0 -0
- package/dist/collection/{tables → components/sqm-referral-table}/useChildElements.js +0 -0
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +36 -46
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/global/styles.js +69 -281
- package/dist/collection/global/styles.ts +69 -281
- package/dist/collection/{components/sqm-asset-card → stories}/AssetCard.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/BigStat.stories.js +3 -10
- package/dist/collection/{components/sqm-portal-change-password → stories}/ChangePassword.stories.js +3 -3
- package/dist/collection/{components/sqm-divided-layout → stories}/DividedLayout.stories.js +4 -4
- package/dist/collection/{components/sqm-edit-profile → stories}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{components/sqm-form-message → stories}/FormMessage.stories.js +1 -1
- package/dist/collection/{components/sqm-hero → stories}/Hero.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard → stories}/Leaderboard.stories.js +2 -2
- package/dist/collection/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{components/sqm-name-fields → stories}/NameFields.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/{components/sqm-password-field → stories}/PasswordField.stories.js +1 -1
- package/dist/collection/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-footer → stories}/PortalFooter.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.js +7 -3
- package/dist/collection/{components/sqm-portal-frame → stories}/PortalFrame.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-login → stories}/PortalLogin.stories.js +8 -2
- package/dist/collection/{components/sqm-portal-profile → stories}/PortalProfile.stories.js +2 -2
- package/dist/collection/{components/sqm-portal-register → stories}/PortalRegister.stories.js +7 -2
- package/dist/collection/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/{components/sqm-program-menu → stories}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTable.stories.js +2 -2
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.js +1 -1
- package/dist/collection/{components/sqm-router → stories}/Router.stories.js +1 -1
- package/dist/collection/{components/sqm-share-button → stories}/ShareButton.stories.js +3 -3
- package/dist/collection/{components/sqm-share-link → stories}/ShareLink.stories.js +2 -2
- package/dist/collection/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.js +2 -2
- package/dist/collection/{components/sqm-big-stat → stories}/UseBigStat.stories.js +4 -7
- package/dist/collection/{components/sqm-edit-profile → stories}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{components/sqm-share-button → stories}/UseShareButton.stories.js +2 -2
- package/dist/collection/{components/sqm-share-link → stories}/UseShareLink.stories.js +3 -3
- package/dist/collection/{components/sqm-user-name → stories}/UserName.stories.js +3 -3
- package/dist/esm/{ShadowViewAddon-2338f393.js → ShadowViewAddon-5f66de48.js} +3 -3
- package/dist/esm/{global-0e81c5e6.js → global-2e50d2dc.js} +72 -284
- package/dist/esm/{index.module-9b5bb6a2.js → index.module-1e92a7a3.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-57ac6584.js → re-render-b8468637.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_30.entry.js → sqm-divided-layout_26.entry.js} +391 -2811
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-3f0dc20e.js → sqm-leaderboard-rank-view-387f0870.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-79b0748c.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8f253fb7.js → sqm-portal-email-verification-view-e366e94a.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -6
- package/dist/esm/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-f12d5e5a.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +18 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-831dea85.js → sqm-portal-profile-view-9f3c79c3.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 +16 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +15 -7
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +3 -3
- package/dist/esm/{useDemoBigStat-660c8672.js → useDemoBigStat-5557504e.js} +24 -121
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +1 -0
- package/dist/esm-es5/{global-0e81c5e6.js → global-2e50d2dc.js} +2 -2
- package/dist/esm-es5/{index.module-9b5bb6a2.js → index.module-1e92a7a3.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-57ac6584.js → re-render-b8468637.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-3f0dc20e.js → sqm-leaderboard-rank-view-387f0870.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a48bca9b.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-8f253fb7.js → sqm-portal-email-verification-view-e366e94a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b8a2f15e.js → sqm-portal-footer-view-f12d5e5a.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-831dea85.js → sqm-portal-profile-view-9f3c79c3.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-5557504e.js +1 -0
- package/dist/mint-components/global/styles.ts +69 -281
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-8f5b80f2.entry.js → p-05a2640d.entry.js} +1 -1
- package/dist/mint-components/{p-cafc22bf.system.entry.js → p-09afaaac.system.entry.js} +1 -1
- package/dist/mint-components/p-10a98629.entry.js +1 -0
- package/dist/mint-components/p-112d42ab.system.entry.js +1 -0
- package/dist/mint-components/p-13605359.entry.js +1 -0
- package/dist/mint-components/p-192539d2.entry.js +1 -0
- package/dist/mint-components/{p-b2cb66f5.system.js → p-27e23808.system.js} +1 -1
- package/dist/mint-components/{p-24d13567.js → p-2babeba4.js} +1 -1
- package/dist/mint-components/{p-77f9b4af.entry.js → p-2dc28ab0.entry.js} +2 -2
- package/dist/mint-components/p-2f333f89.system.entry.js +1 -0
- package/dist/mint-components/{p-17e6fc02.system.entry.js → p-337a3d6b.system.entry.js} +1 -1
- package/dist/mint-components/{p-7062ab8e.system.entry.js → p-3772bae2.system.entry.js} +1 -1
- package/dist/mint-components/{p-295b306a.js → p-3adf6ff3.js} +1 -1
- package/dist/mint-components/{p-1ec1dcb3.system.js → p-3e3dad7a.system.js} +1 -1
- package/dist/mint-components/{p-d5a00e40.system.entry.js → p-4068e47c.system.entry.js} +1 -1
- package/dist/mint-components/{p-d4fe6a69.system.js → p-48fff767.system.js} +2 -2
- package/dist/mint-components/{p-f7b80ac0.entry.js → p-4b6c316d.entry.js} +1 -1
- package/dist/mint-components/{p-58fb3d02.system.js → p-50557966.system.js} +1 -1
- package/dist/mint-components/p-528aecd1.entry.js +1 -0
- package/dist/mint-components/p-52b0b65d.entry.js +1 -0
- package/dist/mint-components/p-55210498.system.js +1 -0
- package/dist/mint-components/p-554a6339.entry.js +230 -0
- package/dist/mint-components/p-5fcd8687.entry.js +1 -0
- package/dist/mint-components/p-606506d6.system.entry.js +1 -0
- package/dist/mint-components/{p-55f029cd.system.entry.js → p-6156a7ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9edc48d.system.entry.js → p-624c5352.system.entry.js} +1 -1
- package/dist/mint-components/p-6305419f.entry.js +1 -0
- package/dist/mint-components/{p-be615f03.system.js → p-679a7054.system.js} +1 -1
- package/dist/mint-components/p-6ad110d3.js +1 -0
- package/dist/mint-components/{p-aee2a2b9.entry.js → p-6cb81b77.entry.js} +1 -1
- package/dist/mint-components/{p-46cb29e2.system.entry.js → p-70ca623f.system.entry.js} +1 -1
- package/dist/mint-components/{p-8bfe1f7d.js → p-726c9080.js} +1 -1
- package/dist/mint-components/{p-75ae6fc0.entry.js → p-743882c6.entry.js} +1 -1
- package/dist/mint-components/p-768b9014.system.entry.js +1 -0
- package/dist/mint-components/p-77d17f35.js +1 -0
- package/dist/mint-components/p-7cf335a0.entry.js +1 -0
- package/dist/mint-components/p-86b66e5c.entry.js +1 -0
- package/dist/mint-components/{p-ad1c6eb8.system.entry.js → p-8bfebd45.system.entry.js} +1 -1
- package/dist/mint-components/p-942723ad.entry.js +1 -0
- package/dist/mint-components/{p-a93149f4.entry.js → p-965e34ab.entry.js} +1 -1
- package/dist/mint-components/{p-75b143ac.system.entry.js → p-9741333b.system.entry.js} +1 -1
- package/dist/mint-components/{p-0a882bab.system.entry.js → p-9a3a0db5.system.entry.js} +1 -1
- package/dist/mint-components/{p-8a9966fc.system.js → p-9f9191a4.system.js} +1 -1
- package/dist/mint-components/{p-e53399e5.system.entry.js → p-9ff118a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-27bb0aa9.js → p-af1f8bd3.js} +1 -1
- package/dist/mint-components/{p-d5b84d6b.js → p-af2d886e.js} +1 -1
- package/dist/mint-components/{p-3404b8d2.system.entry.js → p-b3880833.system.entry.js} +1 -1
- package/dist/mint-components/p-b3cddcca.entry.js +1 -0
- package/dist/mint-components/p-b63744fe.js +227 -0
- package/dist/mint-components/p-bf26396f.system.js +1 -0
- package/dist/mint-components/{p-8ec40f9a.entry.js → p-c47b83c3.entry.js} +1 -1
- package/dist/mint-components/{p-16b0b00b.entry.js → p-c579f318.entry.js} +2 -2
- package/dist/mint-components/p-c5c029b8.system.js +1 -0
- package/dist/mint-components/p-ced568fc.system.entry.js +1 -0
- package/dist/mint-components/p-cffc23c0.entry.js +1 -0
- package/dist/mint-components/p-d1cea1b1.system.js +1 -0
- package/dist/mint-components/{p-be62004c.entry.js → p-d1d45d97.entry.js} +1 -1
- package/dist/mint-components/{p-024cc1be.system.entry.js → p-d3171b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-35103a1b.system.entry.js → p-d5573e0e.system.entry.js} +1 -1
- package/dist/mint-components/p-d96e22c6.system.entry.js +1 -0
- package/dist/mint-components/p-de3311bf.entry.js +9 -0
- package/dist/mint-components/{p-0e49a93f.system.entry.js → p-e1df7914.system.entry.js} +1 -1
- package/dist/mint-components/{p-a59e65f2.js → p-eddcf481.js} +1 -1
- package/dist/mint-components/{p-98e29140.system.entry.js → p-f16bae7a.system.entry.js} +1 -1
- package/dist/mint-components/p-f3fbcdb0.system.entry.js +1 -0
- package/dist/mint-components/{p-f3ea7918.system.js → p-fd33dd62.system.js} +1 -1
- package/dist/mint-components/{p-b6107771.js → p-fe4ecc11.js} +2 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -4
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
- package/dist/types/{tables → components/sqm-referral-table}/re-render.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/sqm-table-row.d.ts +0 -0
- package/dist/types/{tables → components/sqm-referral-table}/useChildElements.d.ts +0 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +96 -289
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/{components/sqm-asset-card → stories}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/BigStat.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-change-password → stories}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-divided-layout → stories}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{components/sqm-edit-profile → stories}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{components/sqm-form-message → stories}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{components/sqm-hero → stories}/Hero.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard-rank → stories}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{components/sqm-name-fields → stories}/NameFields.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar → stories}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{components/sqm-password-field → stories}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-email-verification → stories}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-footer → stories}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-forgot-password → stories}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-frame → stories}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-login → stories}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-profile → stories}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-register → stories}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-reset-password → stories}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{components/sqm-portal-verify-email → stories}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{components/sqm-program-menu → stories}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-iframe → stories}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → stories}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/{components/sqm-router → stories}/Router.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{components/sqm-navigation-sidebar-item → stories}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{components/sqm-big-stat → stories}/UseBigStat.stories.d.ts +0 -6
- package/dist/types/{components/sqm-edit-profile → stories}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{components/sqm-leaderboard → stories}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-button → stories}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{components/sqm-share-link → stories}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/stories/UserName.stories.d.ts +6 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +0 -25
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +0 -241
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +0 -8
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -143
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +0 -61
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +0 -357
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +0 -144
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +0 -174
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -53
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +0 -120
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -222
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -190
- package/dist/collection/components/sqm-task-card/Matrix.js +0 -66
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -9
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +0 -278
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +0 -41
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +0 -7
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +0 -314
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -211
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -419
- package/dist/collection/tables/GenericTableView.js +0 -51
- package/dist/collection/tables/TableSlots.js +0 -22
- package/dist/esm-es5/ShadowViewAddon-2338f393.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-79b0748c.js +0 -1
- package/dist/esm-es5/useDemoBigStat-660c8672.js +0 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/mint-components.css +0 -1
- package/dist/mint-components/p-101fafa3.js +0 -1
- package/dist/mint-components/p-1dc2793a.system.entry.js +0 -1
- package/dist/mint-components/p-1dc2e37a.system.entry.js +0 -1
- package/dist/mint-components/p-1dd1105d.system.entry.js +0 -1
- package/dist/mint-components/p-22d56623.entry.js +0 -9
- package/dist/mint-components/p-232dddcc.system.entry.js +0 -1
- package/dist/mint-components/p-25021e09.entry.js +0 -1
- package/dist/mint-components/p-3098bb1b.system.entry.js +0 -1
- package/dist/mint-components/p-35ba4a8b.entry.js +0 -1
- package/dist/mint-components/p-441119ee.js +0 -235
- package/dist/mint-components/p-503192e9.entry.js +0 -1
- package/dist/mint-components/p-51277d8e.system.entry.js +0 -1
- package/dist/mint-components/p-58bf2a30.system.js +0 -1
- package/dist/mint-components/p-62102076.entry.js +0 -1
- package/dist/mint-components/p-623e7f8c.entry.js +0 -335
- package/dist/mint-components/p-6410316b.entry.js +0 -1
- package/dist/mint-components/p-69902f7c.system.js +0 -1
- package/dist/mint-components/p-6acfe4a0.entry.js +0 -1
- package/dist/mint-components/p-6cbb3a00.entry.js +0 -1
- package/dist/mint-components/p-7ee8a7ed.system.js +0 -1
- package/dist/mint-components/p-853bd4bd.entry.js +0 -1
- package/dist/mint-components/p-85728f98.entry.js +0 -1
- package/dist/mint-components/p-aa39d9c0.entry.js +0 -1
- package/dist/mint-components/p-b893904c.system.entry.js +0 -1
- package/dist/mint-components/p-bafc60df.js +0 -1
- package/dist/mint-components/p-dea06c92.entry.js +0 -1
- package/dist/mint-components/p-eb5aae94.entry.js +0 -1
- package/dist/mint-components/p-f7d7e44d.system.js +0 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +0 -7
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +0 -112
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +0 -3
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +0 -28
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +0 -4
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +0 -25
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +0 -24
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -44
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +0 -16
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +0 -20
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -32
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -38
- package/dist/types/components/sqm-task-card/Matrix.d.ts +0 -11
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -2
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +0 -16
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +0 -10
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +0 -11
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -17
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -76
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +0 -6
- package/dist/types/tables/GenericTableView.d.ts +0 -29
- package/dist/types/tables/TableSlots.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, k as useMemo } from './extends-3a3f9fe2.js';
|
|
3
|
-
import { M, R,
|
|
3
|
+
import { M, R, n as ne, d as dist, c as cn } from './index.module-1e92a7a3.js';
|
|
4
4
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
|
|
@@ -336,7 +336,7 @@ function BigStatView(props, children) {
|
|
|
336
336
|
const debug = browser("sq:useBigStat");
|
|
337
337
|
const LOADING = "...";
|
|
338
338
|
const debugQuery = (query, variables, getStat) => {
|
|
339
|
-
const res =
|
|
339
|
+
const res = cn(query, variables);
|
|
340
340
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
341
341
|
console.error("issue getting stat:", res);
|
|
342
342
|
}
|
|
@@ -365,13 +365,7 @@ _, status) => {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
`, { queryFilter }, (res) => {
|
|
369
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
370
|
-
return ({
|
|
371
|
-
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,
|
|
372
|
-
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(),
|
|
373
|
-
});
|
|
374
|
-
});
|
|
368
|
+
`, { 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(); });
|
|
375
369
|
};
|
|
376
370
|
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
377
371
|
// Confirm this behaviour
|
|
@@ -391,33 +385,9 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
391
385
|
}
|
|
392
386
|
}
|
|
393
387
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
394
|
-
var _a, _b, _c, _d, _e
|
|
388
|
+
var _a, _b, _c, _d, _e;
|
|
395
389
|
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);
|
|
396
|
-
return
|
|
397
|
-
value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
|
|
398
|
-
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,
|
|
399
|
-
};
|
|
400
|
-
});
|
|
401
|
-
};
|
|
402
|
-
const customFieldsQuery = (programId, locale, fieldName, goalId) => {
|
|
403
|
-
// Confirm this behaviour
|
|
404
|
-
if (programId === "classic")
|
|
405
|
-
return null;
|
|
406
|
-
return debugQuery(dist.gql `
|
|
407
|
-
query {
|
|
408
|
-
viewer {
|
|
409
|
-
... on User {
|
|
410
|
-
customFields
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
`, { programId, fieldName, goalId, locale }, (res) => {
|
|
415
|
-
var _a, _b, _c;
|
|
416
|
-
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];
|
|
417
|
-
return {
|
|
418
|
-
value: customField || 0,
|
|
419
|
-
statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
|
|
420
|
-
};
|
|
390
|
+
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;
|
|
421
391
|
});
|
|
422
392
|
};
|
|
423
393
|
const referralsMonthQuery = (programId) => {
|
|
@@ -438,13 +408,7 @@ const referralsMonthQuery = (programId) => {
|
|
|
438
408
|
}
|
|
439
409
|
}
|
|
440
410
|
}
|
|
441
|
-
`, { filter }, (res) => {
|
|
442
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
443
|
-
return ({
|
|
444
|
-
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,
|
|
445
|
-
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(),
|
|
446
|
-
});
|
|
447
|
-
});
|
|
411
|
+
`, { 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(); });
|
|
448
412
|
};
|
|
449
413
|
const referralsWeekQuery = (programId) => {
|
|
450
414
|
const programFilter = programId === "classic"
|
|
@@ -464,13 +428,7 @@ const referralsWeekQuery = (programId) => {
|
|
|
464
428
|
}
|
|
465
429
|
}
|
|
466
430
|
}
|
|
467
|
-
`, { filter }, (res) => {
|
|
468
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
469
|
-
return ({
|
|
470
|
-
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,
|
|
471
|
-
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(),
|
|
472
|
-
});
|
|
473
|
-
});
|
|
431
|
+
`, { 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(); });
|
|
474
432
|
};
|
|
475
433
|
const rewardsCountQuery = (programId,
|
|
476
434
|
// locale
|
|
@@ -487,13 +445,7 @@ _, global = "") => {
|
|
|
487
445
|
}
|
|
488
446
|
`, {
|
|
489
447
|
programId: !global && programId !== "classic" ? programId : null,
|
|
490
|
-
}, (res) => {
|
|
491
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
492
|
-
return ({
|
|
493
|
-
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,
|
|
494
|
-
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(),
|
|
495
|
-
});
|
|
496
|
-
});
|
|
448
|
+
}, (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(); });
|
|
497
449
|
};
|
|
498
450
|
const rewardsCountFilteredQuery = (programId,
|
|
499
451
|
// locale
|
|
@@ -526,13 +478,7 @@ _, type, unit, status, global = "") => {
|
|
|
526
478
|
unit,
|
|
527
479
|
type,
|
|
528
480
|
statusFilter,
|
|
529
|
-
}, (res) => {
|
|
530
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
531
|
-
return ({
|
|
532
|
-
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,
|
|
533
|
-
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(),
|
|
534
|
-
});
|
|
535
|
-
});
|
|
481
|
+
}, (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(); });
|
|
536
482
|
};
|
|
537
483
|
const integrationRewardsCountFilteredQuery = (programId,
|
|
538
484
|
// locale
|
|
@@ -557,13 +503,7 @@ _, status, global = "") => {
|
|
|
557
503
|
`, {
|
|
558
504
|
programId: !global && programId !== "classic" ? programId : null,
|
|
559
505
|
statusFilter,
|
|
560
|
-
}, (res) => {
|
|
561
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
562
|
-
return ({
|
|
563
|
-
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,
|
|
564
|
-
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(),
|
|
565
|
-
});
|
|
566
|
-
});
|
|
506
|
+
}, (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(); });
|
|
567
507
|
};
|
|
568
508
|
const rewardsMonthQuery = (programId,
|
|
569
509
|
// locale
|
|
@@ -585,13 +525,7 @@ _, global = "") => {
|
|
|
585
525
|
}
|
|
586
526
|
`, {
|
|
587
527
|
programId: !global && programId !== "classic" ? programId : null,
|
|
588
|
-
}, (res) => {
|
|
589
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
590
|
-
return ({
|
|
591
|
-
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,
|
|
592
|
-
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(),
|
|
593
|
-
});
|
|
594
|
-
});
|
|
528
|
+
}, (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(); });
|
|
595
529
|
};
|
|
596
530
|
const rewardsWeekQuery = (programId,
|
|
597
531
|
// locale
|
|
@@ -613,13 +547,7 @@ _, global = "") => {
|
|
|
613
547
|
}
|
|
614
548
|
`, {
|
|
615
549
|
programId: !global && programId !== "classic" ? programId : null,
|
|
616
|
-
}, (res) => {
|
|
617
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
618
|
-
return ({
|
|
619
|
-
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,
|
|
620
|
-
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(),
|
|
621
|
-
});
|
|
622
|
-
});
|
|
550
|
+
}, (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(); });
|
|
623
551
|
};
|
|
624
552
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
625
553
|
return debugQuery(dist.gql `
|
|
@@ -654,13 +582,10 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
654
582
|
unit,
|
|
655
583
|
locale,
|
|
656
584
|
}, (res) => {
|
|
657
|
-
var _a, _b, _c, _d
|
|
585
|
+
var _a, _b, _c, _d;
|
|
658
586
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
659
587
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
660
|
-
return
|
|
661
|
-
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
|
|
662
|
-
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
|
|
663
|
-
};
|
|
588
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
|
|
664
589
|
});
|
|
665
590
|
};
|
|
666
591
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -696,13 +621,10 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
696
621
|
unit,
|
|
697
622
|
locale,
|
|
698
623
|
}, (res) => {
|
|
699
|
-
var _a, _b, _c, _d
|
|
624
|
+
var _a, _b, _c, _d;
|
|
700
625
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
701
626
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
702
|
-
return
|
|
703
|
-
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
|
|
704
|
-
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
|
|
705
|
-
};
|
|
627
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
|
|
706
628
|
});
|
|
707
629
|
};
|
|
708
630
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -738,13 +660,10 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
|
738
660
|
unit,
|
|
739
661
|
locale,
|
|
740
662
|
}, (res) => {
|
|
741
|
-
var _a, _b, _c, _d
|
|
663
|
+
var _a, _b, _c, _d;
|
|
742
664
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
743
665
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
744
|
-
return
|
|
745
|
-
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
|
|
746
|
-
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
|
|
747
|
-
};
|
|
666
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
|
|
748
667
|
});
|
|
749
668
|
};
|
|
750
669
|
const parseRewardValueFormat = {
|
|
@@ -787,13 +706,10 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
|
|
|
787
706
|
format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
|
|
788
707
|
locale,
|
|
789
708
|
}, (res) => {
|
|
790
|
-
var _a, _b, _c, _d
|
|
709
|
+
var _a, _b, _c, _d;
|
|
791
710
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
792
711
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
793
|
-
return
|
|
794
|
-
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
|
|
795
|
-
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
|
|
796
|
-
};
|
|
712
|
+
return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
|
|
797
713
|
});
|
|
798
714
|
};
|
|
799
715
|
// functions are of the form (programId: string, ...args: string) => string
|
|
@@ -850,15 +766,10 @@ const queries = {
|
|
|
850
766
|
label: "Program Goals",
|
|
851
767
|
query: programGoalsQuery,
|
|
852
768
|
},
|
|
853
|
-
customFields: {
|
|
854
|
-
label: "Custom Fields",
|
|
855
|
-
query: customFieldsQuery,
|
|
856
|
-
},
|
|
857
769
|
};
|
|
858
770
|
// this should be exposed in documentation somehow
|
|
859
771
|
const StatPaths = [
|
|
860
772
|
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
861
|
-
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
862
773
|
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
863
774
|
{ name: "referralsMonth", route: "/(referralsMonth)" },
|
|
864
775
|
{ name: "referralsWeek", route: "/(referralsWeek)" },
|
|
@@ -892,15 +803,13 @@ const StatPaths = [
|
|
|
892
803
|
];
|
|
893
804
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
894
805
|
function useBigStat(props) {
|
|
895
|
-
|
|
896
|
-
const { statType, flexReverse, alignment } = props;
|
|
897
|
-
const programId = M();
|
|
806
|
+
const { statType, flexReverse, alignment, programId = M(), } = props;
|
|
898
807
|
const locale = R();
|
|
899
|
-
const userIdent =
|
|
808
|
+
const userIdent = ne();
|
|
900
809
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
901
810
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
902
811
|
return {
|
|
903
|
-
props: {
|
|
812
|
+
props: { statvalue: "!!!", flexReverse, alignment },
|
|
904
813
|
label: "BAD PROP TYPE",
|
|
905
814
|
};
|
|
906
815
|
}
|
|
@@ -923,12 +832,7 @@ function useBigStat(props) {
|
|
|
923
832
|
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
924
833
|
debug("stat:", stat);
|
|
925
834
|
return {
|
|
926
|
-
props: {
|
|
927
|
-
value: stat === null || stat === void 0 ? void 0 : stat.value,
|
|
928
|
-
statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
|
|
929
|
-
flexReverse,
|
|
930
|
-
alignment,
|
|
931
|
-
},
|
|
835
|
+
props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
|
|
932
836
|
label,
|
|
933
837
|
};
|
|
934
838
|
}
|
|
@@ -939,7 +843,6 @@ function useDemoBigStat(props) {
|
|
|
939
843
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
940
844
|
return {
|
|
941
845
|
props: {
|
|
942
|
-
value: 0,
|
|
943
846
|
statvalue: "!!!",
|
|
944
847
|
flexReverse: false,
|
|
945
848
|
alignment: "center",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,a){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:a})}else{e.raw=a}return e};import{h,g as getElement}from"./index-17b4da69.js";import{d as dist,M,n as ne,c as cn}from"./index.module-1e92a7a3.js";function LeaderboardView(e){var a;var r=e.states,n=e.data,t=e.elements;var i=r.styles;if(r.loading){return t.loadingstate}return h("div",null,!r.hasLeaders&&t.empty,r.hasLeaders&&h("table",null,h("tr",null,i.showRank&&h("th",{class:"Rank"},i.rankheading),h("th",{class:"User"},i.usersheading),h("th",{class:"Score"},i.statsheading)),(a=n.leaderboard)===null||a===void 0?void 0:a.map((function(e){return h("tr",{class:"SeparateContent"},i.showRank&&h("td",{class:"Rank"},e.rank),h("td",{class:"User"},e.firstName+" "+e.lastInitial+" "),h("td",{class:"Score"},e.value))}))))}var GET_LEADERBOARD=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));function useLeaderboard(e){var a;var r=M();var n=ne();var t={type:e.leaderboardType,filter:{programId_eq:r}};if(e.interval){t.filter["interval"]=e.interval}var i=cn(GET_LEADERBOARD,t,!(n===null||n===void 0?void 0:n.jwt)),d=i.data,l=i.loading;var s=(a=d===null||d===void 0?void 0:d.userLeaderboard)===null||a===void 0?void 0:a.rows;var o=v(s);var u=o===null||o===void 0?void 0:o.sort((function(e,a){return e.rank-a.rank}));function v(a){return a===null||a===void 0?void 0:a.flatMap((function(a){var r;return{value:a.value,firstName:a.firstName||"Anonymous",lastInitial:a.lastInitial,rank:(r=a.rank)===null||r===void 0?void 0:r[e.rankType]}}))}return{states:{loading:l,hasLeaders:(u===null||u===void 0?void 0:u.length)>0,styles:e},data:{leaderboard:u,rankType:e.rankType},elements:{empty:e.empty,loadingstate:e.loadingstate}}}var map=new Map;function withShadowView(e){var a=getElement(e);var r=e["render"].bind(e);var n=function(){var e=a.getAttribute("stencilbook-shadow-view");if(e){var n=map.get(e);if(n){return n}}return r()};e["render"]=n}var ShadowViewAddon=function(e,a){var r=e.story;var n;var t=(n=r.parent.parameters)===null||n===void 0?void 0:n.tagname;if(!t)return a;var i=Math.round(Math.random()*1e5);map.set(i+"",a);var d="stencilbook-shawdow-view-"+i;return h(d,null,h(t,{"stencilbook-shadow-view":i}))};export{LeaderboardView as L,ShadowViewAddon as S,useLeaderboard as u,withShadowView as w};var templateObject_1;
|