@saasquatch/mint-components 1.3.2-1 → 1.3.2-13
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-75c18b96.js → ShadowViewAddon-a85b8c8d.js} +1 -1
- package/dist/cjs/{global-041b5338.js → global-6223fe8f.js} +110 -56
- package/dist/cjs/{index.module-6a7bda18.js → index.module-7dd4b981.js} +2 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-7cdb2d81.js → re-render-6111d4bd.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_27.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +1959 -766
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-7dd44d62.js} +10 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
- 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-e99b4a10.js → sqm-navigation-sidebar-item-view-6c7f78e6.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-5e955797.js → sqm-portal-email-verification-view-08d1848c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-69c73802.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-14b41436.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
- 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-17e61803.js → useDemoBigStat-2786227e.js} +117 -21
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +31 -43
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +175 -100
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +6 -8
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +10 -32
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
- package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +7 -1
- package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +165 -389
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +318 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +93 -346
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +127 -53
- package/dist/collection/global/styles.js +3 -0
- package/dist/collection/global/styles.ts +3 -0
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm/{global-5ecbf81a.js → global-90da933f.js} +57 -3
- package/dist/esm/{index.module-f80561db.js → index.module-90d2c3ad.js} +2 -2
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mint-components.js +3 -4
- package/dist/esm/{re-render-9ab5fe0f.js → re-render-e06f2f7f.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_27.entry.js → sqm-divided-layout_30.entry.js} +1939 -749
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-47844836.js} +9 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -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-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.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-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
- package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -4
- 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-b71fe122.js → useDemoBigStat-c3b955b7.js} +117 -21
- package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm-es5/{global-5ecbf81a.js → global-90da933f.js} +16 -2
- package/dist/esm-es5/{index.module-f80561db.js → index.module-90d2c3ad.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-47844836.js +1 -0
- 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-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.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-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +1 -0
- package/dist/mint-components/global/styles.ts +3 -0
- package/dist/mint-components/mint-components.css +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-3052c913.system.js → p-07c924fa.system.js} +1 -1
- package/dist/mint-components/{p-05cca77b.js → p-0eb3e89c.js} +1 -1
- package/dist/mint-components/{p-337b49ee.entry.js → p-160bd62f.entry.js} +1 -1
- package/dist/mint-components/p-16f5a7cb.system.js +1 -0
- package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
- package/dist/mint-components/p-1c8b0290.entry.js +1 -0
- package/dist/mint-components/{p-7c13e32e.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
- package/dist/mint-components/p-20d41ab1.entry.js +1 -0
- package/dist/mint-components/{p-e9ab90a1.entry.js → p-221a4097.entry.js} +1 -1
- package/dist/mint-components/{p-a0045707.system.entry.js → p-223b42bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc3510c8.js → p-224504ad.js} +1 -1
- package/dist/mint-components/{p-2a025d2a.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b414d8f.system.entry.js → p-24c9a599.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7f0b2f6.entry.js → p-29fab29b.entry.js} +1 -1
- package/dist/mint-components/{p-e475a5ff.system.entry.js → p-304e6c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f28af29.entry.js → p-3397167c.entry.js} +1 -1
- package/dist/mint-components/p-33c5ffb7.entry.js +1 -0
- package/dist/mint-components/{p-04516274.system.entry.js → p-396bf448.system.entry.js} +1 -1
- package/dist/mint-components/p-3b97aed8.system.js +1 -0
- package/dist/mint-components/{p-3b0acfcd.system.js → p-3ce2fb83.system.js} +1 -1
- package/dist/mint-components/{p-82d7a2ba.entry.js → p-3d856985.entry.js} +1 -1
- package/dist/mint-components/p-3f7218fb.entry.js +335 -0
- package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
- package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
- package/dist/mint-components/p-44d0fc80.system.entry.js +1 -0
- package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
- package/dist/mint-components/{p-f1e1086e.js → p-46a4269a.js} +17 -2
- package/dist/mint-components/p-52802c88.entry.js +13 -0
- package/dist/mint-components/p-5480e4ee.entry.js +1 -0
- package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
- package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
- package/dist/mint-components/p-60855d33.system.js +1 -0
- package/dist/mint-components/p-67ae18d1.system.entry.js +1 -0
- package/dist/mint-components/{p-434ee9c1.js → p-6882070c.js} +1 -1
- package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
- package/dist/mint-components/p-6bf0a4d9.system.entry.js +1 -0
- package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
- package/dist/mint-components/{p-a4a00461.entry.js → p-723ebe45.entry.js} +1 -1
- package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
- package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
- package/dist/mint-components/p-883a32e7.entry.js +1 -0
- package/dist/mint-components/p-9c554ca0.system.js +1 -0
- package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
- package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
- package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
- package/dist/mint-components/{p-1813b9b9.system.js → p-a6094ff9.system.js} +1 -1
- package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
- package/dist/mint-components/p-b1bb07db.entry.js +1 -0
- package/dist/mint-components/{p-ceeaf074.system.js → p-b608f7a4.system.js} +35 -21
- package/dist/mint-components/p-b6b4022a.system.entry.js +1 -0
- package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
- package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
- package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
- package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
- package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
- package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
- package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
- package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
- package/dist/mint-components/p-d21e0dbd.js +1 -0
- package/dist/mint-components/{p-00190438.js → p-d35b0366.js} +1 -1
- package/dist/mint-components/{p-8e37c08d.js → p-db2e4c42.js} +1 -1
- package/dist/mint-components/p-dc603d08.system.entry.js +1 -0
- package/dist/mint-components/{p-1fb688a9.system.js → p-e7f633b9.system.js} +1 -1
- package/dist/mint-components/{p-16da5146.entry.js → p-f17050de.entry.js} +1 -1
- package/dist/mint-components/p-f90486ca.js +235 -0
- package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
- package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -4
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
- package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +12 -5
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +11 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +29 -14
- package/dist/types/components.d.ts +86 -36
- package/dist/types/global/styles.d.ts +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
- package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
- package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
- package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
- package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
- package/dist/cjs/useChildElements-428ca5b8.js +0 -21
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
- package/dist/esm/sqm-rewards-table.entry.js +0 -328
- package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
- package/dist/esm/sqm-task-card.entry.js +0 -52
- package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
- package/dist/esm/useChildElements-506f00d0.js +0 -19
- package/dist/esm-es5/index-2f5dd0a1.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
- package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
- package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
- package/dist/esm-es5/sqm-task-card.entry.js +0 -1
- package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
- package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
- package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
- package/dist/mint-components/p-11c75956.entry.js +0 -1
- package/dist/mint-components/p-189219ee.system.js +0 -1
- package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
- package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
- package/dist/mint-components/p-23a0bdae.entry.js +0 -1
- package/dist/mint-components/p-353b4413.system.js +0 -1
- package/dist/mint-components/p-405a9253.js +0 -227
- package/dist/mint-components/p-55e02769.entry.js +0 -13
- package/dist/mint-components/p-58d9b2f0.js +0 -15
- package/dist/mint-components/p-684850a7.entry.js +0 -287
- package/dist/mint-components/p-6d545e13.entry.js +0 -1
- package/dist/mint-components/p-70837c1c.entry.js +0 -49
- package/dist/mint-components/p-7c138c84.entry.js +0 -1
- package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
- package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
- package/dist/mint-components/p-81dbda90.system.entry.js +0 -1
- package/dist/mint-components/p-8c16f04e.js +0 -1
- package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
- package/dist/mint-components/p-91d39961.system.js +0 -1
- package/dist/mint-components/p-b3af1c6f.js +0 -1
- package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
- package/dist/mint-components/p-bf055b6c.system.js +0 -1
- package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
- package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
- package/dist/mint-components/p-dd6a666e.system.js +0 -15
- package/dist/mint-components/p-dfc3cf82.js +0 -1
- package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
- package/dist/mint-components/p-e22eed7b.entry.js +0 -1
- package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
- package/dist/mint-components/p-e78a5a91.js +0 -1
- package/dist/mint-components/p-ecbabf6e.system.js +0 -1
- package/dist/mint-components/p-f41ab9e1.system.js +0 -1
- package/dist/mint-components/p-f87d8f53.system.js +0 -1
- package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { o as m, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { Q, k, g as pe, h as ge } from './index.module-
|
|
4
|
+
import { Q, k, g as pe, h as ge } from './index.module-90d2c3ad.js';
|
|
5
5
|
|
|
6
6
|
async function useGraphQLClientProvider({ domain }) {
|
|
7
7
|
const token = Q();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as __assign } from './
|
|
1
|
+
import { h } from './index-17b4da69.js';
|
|
2
|
+
import { _ as __assign } from './global-90da933f.js';
|
|
3
|
+
import { p as parse } from './index.module-90d2c3ad.js';
|
|
3
4
|
|
|
4
5
|
var docCache = new Map();
|
|
5
6
|
var fragmentSourceMap = new Map();
|
|
@@ -119,4 +120,9 @@ var extras = {
|
|
|
119
120
|
gql["default"] = gql;
|
|
120
121
|
const gql$1 = gql;
|
|
121
122
|
|
|
122
|
-
|
|
123
|
+
function LeaderboardRankView(props) {
|
|
124
|
+
const { data } = props;
|
|
125
|
+
return h("span", { class: "P" }, data.rank);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { LeaderboardRankView as L, gql$1 as g };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import { i as intl, c as createIntl } from './global-
|
|
3
|
+
import { i as intl, c as createIntl } from './global-90da933f.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import { M, T, e as en, j } from './index.module-
|
|
6
|
-
import './tslib.es6-7ac9d7e4.js';
|
|
5
|
+
import { M, T, e as en, j } from './index.module-90d2c3ad.js';
|
|
7
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
|
-
import { g as gql } from './
|
|
9
|
-
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-da91f5f3.js';
|
|
7
|
+
import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-47844836.js';
|
|
10
8
|
|
|
11
9
|
const GET_RANK = gql `
|
|
12
10
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { j } from './index.module-
|
|
4
|
+
import { j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { w as withShadowView, u as useLeaderboard, L as LeaderboardView } from './ShadowViewAddon-
|
|
6
|
+
import { w as withShadowView, u as useLeaderboard, L as LeaderboardView } from './ShadowViewAddon-a3f510db.js';
|
|
7
7
|
|
|
8
8
|
const sqmLeaderboardCss = ":host{display:block}:host([hidden]){display:none}table{width:100%}th{font-size:var(--sl-font-size-small);font-weight:var(--sl-font-weight-semibold);text-align:left}td{font-size:var(--sl-font-size-medium);font-weight:var(--sl-font-weight-normal)}td,th{color:var(--sl-color-gray-800);padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.User{width:100%}.Score{width:auto;white-space:nowrap}";
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as d, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { j } from './index.module-
|
|
4
|
+
import { j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-10353a39.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { r as rn } from './index.module-
|
|
2
|
+
import { r as rn } from './index.module-90d2c3ad.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { g as gap } from './mixins-10353a39.js';
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { c as an, j } from './index.module-
|
|
4
|
+
import { c as an, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { g as getProps } from './utils-454405f5.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-10353a39.js';
|
|
9
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
9
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-f2304ad9.js';
|
|
10
10
|
|
|
11
11
|
function useNavigationSidebarItem(props) {
|
|
12
12
|
const currentPage = an();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h$1 } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { x } from './index.module-
|
|
4
|
+
import { x } from './index.module-90d2c3ad.js';
|
|
5
5
|
import { g as getProps } from './utils-454405f5.js';
|
|
6
6
|
|
|
7
7
|
const PopupContainerView = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-90da933f.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-10353a39.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-90da933f.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import { B as Be, T, j } from './index.module-
|
|
6
|
-
import './tslib.es6-7ac9d7e4.js';
|
|
5
|
+
import { B as Be, T, j } from './index.module-90d2c3ad.js';
|
|
7
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
8
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
8
|
import './mixins-10353a39.js';
|
|
10
9
|
import './sqm-text-span-view-1781df94.js';
|
|
11
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
10
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-8cefe480.js';
|
|
12
11
|
|
|
13
12
|
function usePortalEmailVerification(props) {
|
|
14
13
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-90da933f.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
|
|
5
5
|
function PoweredByImg({ color = "#A6A6A6", width = 190, height = 29, }) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-90da933f.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import './index.module-
|
|
6
|
-
import './tslib.es6-7ac9d7e4.js';
|
|
5
|
+
import './index.module-90d2c3ad.js';
|
|
7
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
8
7
|
import { g as getProps } from './utils-454405f5.js';
|
|
9
|
-
import { a as PortalFooterView } from './sqm-portal-footer-view-
|
|
8
|
+
import { a as PortalFooterView } from './sqm-portal-footer-view-d9fe0bf8.js';
|
|
10
9
|
|
|
11
10
|
const PortalFooter = class {
|
|
12
11
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { z as ze, j, r as rn } from './index.module-
|
|
4
|
+
import { z as ze, j, r as rn } from './index.module-90d2c3ad.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { L, r as rn, j } from './index.module-
|
|
4
|
+
import { L, r as rn, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
|
|
6
6
|
function usePortalLogout({ nextPage }) {
|
|
7
7
|
L(undefined);
|
package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-90da933f.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-90da933f.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import { d as dist, T, e as en, b as be, j } from './index.module-
|
|
6
|
-
import './tslib.es6-7ac9d7e4.js';
|
|
5
|
+
import { d as dist, T, e as en, b as be, j } from './index.module-90d2c3ad.js';
|
|
7
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
8
7
|
import { g as getProps } from './utils-454405f5.js';
|
|
9
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
10
9
|
import './sqm-portal-container-view-73757ca5.js';
|
|
11
10
|
import './sqm-text-span-view-1781df94.js';
|
|
12
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
11
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-b67467b4.js';
|
|
13
12
|
|
|
14
13
|
const GET_USER = dist.gql `
|
|
15
14
|
query {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { T, c as an, r as rn, j } from './index.module-
|
|
4
|
+
import { T, c as an, r as rn, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
|
|
6
6
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
7
7
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { i as Re, $ as $e, r as rn, j } from './index.module-
|
|
4
|
+
import { i as Re, $ as $e, r as rn, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { T, l as Le, r as rn, j } from './index.module-
|
|
4
|
+
import { T, l as Le, r as rn, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-10353a39.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-90d2c3ad.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-e06f2f7f.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableGenericColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-90d2c3ad.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-e06f2f7f.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableDateColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-90d2c3ad.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-e06f2f7f.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableRewardsColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-90d2c3ad.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-e06f2f7f.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableStatusColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-90d2c3ad.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-e06f2f7f.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableUserColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { d as dist, M, T, e as en, j } from './index.module-
|
|
4
|
+
import { d as dist, M, T, e as en, j } from './index.module-90d2c3ad.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { g as getProps } from './utils-454405f5.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -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, T, d as dist, e as en } from './index.module-
|
|
3
|
+
import { M, R, T, d as dist, e as en } from './index.module-90d2c3ad.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
|
|
|
@@ -365,7 +365,13 @@ _, status) => {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
`, { queryFilter }, (res) => {
|
|
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
|
+
});
|
|
369
375
|
};
|
|
370
376
|
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
371
377
|
// Confirm this behaviour
|
|
@@ -385,9 +391,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
385
391
|
}
|
|
386
392
|
}
|
|
387
393
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
388
|
-
var _a, _b, _c, _d, _e;
|
|
394
|
+
var _a, _b, _c, _d, _e, _f;
|
|
389
395
|
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);
|
|
390
|
-
return
|
|
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
|
+
};
|
|
391
421
|
});
|
|
392
422
|
};
|
|
393
423
|
const referralsMonthQuery = (programId) => {
|
|
@@ -408,7 +438,13 @@ const referralsMonthQuery = (programId) => {
|
|
|
408
438
|
}
|
|
409
439
|
}
|
|
410
440
|
}
|
|
411
|
-
`, { filter }, (res) => {
|
|
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
|
+
});
|
|
412
448
|
};
|
|
413
449
|
const referralsWeekQuery = (programId) => {
|
|
414
450
|
const programFilter = programId === "classic"
|
|
@@ -428,7 +464,13 @@ const referralsWeekQuery = (programId) => {
|
|
|
428
464
|
}
|
|
429
465
|
}
|
|
430
466
|
}
|
|
431
|
-
`, { filter }, (res) => {
|
|
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
|
+
});
|
|
432
474
|
};
|
|
433
475
|
const rewardsCountQuery = (programId,
|
|
434
476
|
// locale
|
|
@@ -445,7 +487,13 @@ _, global = "") => {
|
|
|
445
487
|
}
|
|
446
488
|
`, {
|
|
447
489
|
programId: !global && programId !== "classic" ? programId : null,
|
|
448
|
-
}, (res) => {
|
|
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
|
+
});
|
|
449
497
|
};
|
|
450
498
|
const rewardsCountFilteredQuery = (programId,
|
|
451
499
|
// locale
|
|
@@ -478,7 +526,13 @@ _, type, unit, status, global = "") => {
|
|
|
478
526
|
unit,
|
|
479
527
|
type,
|
|
480
528
|
statusFilter,
|
|
481
|
-
}, (res) => {
|
|
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
|
+
});
|
|
482
536
|
};
|
|
483
537
|
const integrationRewardsCountFilteredQuery = (programId,
|
|
484
538
|
// locale
|
|
@@ -503,7 +557,13 @@ _, status, global = "") => {
|
|
|
503
557
|
`, {
|
|
504
558
|
programId: !global && programId !== "classic" ? programId : null,
|
|
505
559
|
statusFilter,
|
|
506
|
-
}, (res) => {
|
|
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
|
+
});
|
|
507
567
|
};
|
|
508
568
|
const rewardsMonthQuery = (programId,
|
|
509
569
|
// locale
|
|
@@ -525,7 +585,13 @@ _, global = "") => {
|
|
|
525
585
|
}
|
|
526
586
|
`, {
|
|
527
587
|
programId: !global && programId !== "classic" ? programId : null,
|
|
528
|
-
}, (res) => {
|
|
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
|
+
});
|
|
529
595
|
};
|
|
530
596
|
const rewardsWeekQuery = (programId,
|
|
531
597
|
// locale
|
|
@@ -547,7 +613,13 @@ _, global = "") => {
|
|
|
547
613
|
}
|
|
548
614
|
`, {
|
|
549
615
|
programId: !global && programId !== "classic" ? programId : null,
|
|
550
|
-
}, (res) => {
|
|
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
|
+
});
|
|
551
623
|
};
|
|
552
624
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
553
625
|
return debugQuery(dist.gql `
|
|
@@ -582,10 +654,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
582
654
|
unit,
|
|
583
655
|
locale,
|
|
584
656
|
}, (res) => {
|
|
585
|
-
var _a, _b, _c, _d;
|
|
657
|
+
var _a, _b, _c, _d, _e;
|
|
586
658
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
587
659
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
588
|
-
return
|
|
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
|
+
};
|
|
589
664
|
});
|
|
590
665
|
};
|
|
591
666
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -621,10 +696,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
621
696
|
unit,
|
|
622
697
|
locale,
|
|
623
698
|
}, (res) => {
|
|
624
|
-
var _a, _b, _c, _d;
|
|
699
|
+
var _a, _b, _c, _d, _e;
|
|
625
700
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
626
701
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
627
|
-
return
|
|
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
|
+
};
|
|
628
706
|
});
|
|
629
707
|
};
|
|
630
708
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
@@ -660,10 +738,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
|
660
738
|
unit,
|
|
661
739
|
locale,
|
|
662
740
|
}, (res) => {
|
|
663
|
-
var _a, _b, _c, _d;
|
|
741
|
+
var _a, _b, _c, _d, _e;
|
|
664
742
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
665
743
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
666
|
-
return
|
|
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
|
+
};
|
|
667
748
|
});
|
|
668
749
|
};
|
|
669
750
|
const parseRewardValueFormat = {
|
|
@@ -706,10 +787,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
|
|
|
706
787
|
format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
|
|
707
788
|
locale,
|
|
708
789
|
}, (res) => {
|
|
709
|
-
var _a, _b, _c, _d;
|
|
790
|
+
var _a, _b, _c, _d, _e;
|
|
710
791
|
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
711
792
|
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
712
|
-
return
|
|
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
|
+
};
|
|
713
797
|
});
|
|
714
798
|
};
|
|
715
799
|
// functions are of the form (programId: string, ...args: string) => string
|
|
@@ -766,10 +850,15 @@ const queries = {
|
|
|
766
850
|
label: "Program Goals",
|
|
767
851
|
query: programGoalsQuery,
|
|
768
852
|
},
|
|
853
|
+
customFields: {
|
|
854
|
+
label: "Custom Fields",
|
|
855
|
+
query: customFieldsQuery,
|
|
856
|
+
},
|
|
769
857
|
};
|
|
770
858
|
// this should be exposed in documentation somehow
|
|
771
859
|
const StatPaths = [
|
|
772
860
|
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
861
|
+
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
773
862
|
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
774
863
|
{ name: "referralsMonth", route: "/(referralsMonth)" },
|
|
775
864
|
{ name: "referralsWeek", route: "/(referralsWeek)" },
|
|
@@ -803,6 +892,7 @@ const StatPaths = [
|
|
|
803
892
|
];
|
|
804
893
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
805
894
|
function useBigStat(props) {
|
|
895
|
+
var _a;
|
|
806
896
|
const { statType, flexReverse, alignment } = props;
|
|
807
897
|
const programId = M();
|
|
808
898
|
const locale = R();
|
|
@@ -810,7 +900,7 @@ function useBigStat(props) {
|
|
|
810
900
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
811
901
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
812
902
|
return {
|
|
813
|
-
props: { statvalue: "!!!", flexReverse, alignment },
|
|
903
|
+
props: { value: 0, statvalue: "!!!", flexReverse, alignment },
|
|
814
904
|
label: "BAD PROP TYPE",
|
|
815
905
|
};
|
|
816
906
|
}
|
|
@@ -833,7 +923,12 @@ function useBigStat(props) {
|
|
|
833
923
|
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
834
924
|
debug("stat:", stat);
|
|
835
925
|
return {
|
|
836
|
-
props: {
|
|
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
|
+
},
|
|
837
932
|
label,
|
|
838
933
|
};
|
|
839
934
|
}
|
|
@@ -844,6 +939,7 @@ function useDemoBigStat(props) {
|
|
|
844
939
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
845
940
|
return {
|
|
846
941
|
props: {
|
|
942
|
+
value: 0,
|
|
847
943
|
statvalue: "!!!",
|
|
848
944
|
flexReverse: false,
|
|
849
945
|
alignment: "center",
|
|
@@ -1 +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,T,e as en}from"./index.module-
|
|
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,T,e as en}from"./index.module-90d2c3ad.js";function LeaderboardView(e){var a;var r=e.states,t=e.data,n=e.elements;var i=r.styles;if(r.loading){return n.loadingstate}return h("div",null,!r.hasLeaders&&n.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=t.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 t=T();var n={type:e.leaderboardType,filter:{programId_eq:r}};if(e.interval){n.filter["interval"]=e.interval}var i=en(GET_LEADERBOARD,n,!(t===null||t===void 0?void 0:t.jwt)),d=i.data,l=i.loading;var o=(a=d===null||d===void 0?void 0:d.userLeaderboard)===null||a===void 0?void 0:a.rows;var s=v(o);var u=s===null||s===void 0?void 0:s.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 t=function(){var e=a.getAttribute("stencilbook-shadow-view");if(e){var t=map.get(e);if(t){return t}}return r()};e["render"]=t}var ShadowViewAddon=function(e,a){var r=e.story;var t;var n=(t=r.parent.parameters)===null||t===void 0?void 0:t.tagname;if(!n)return a;var i=Math.round(Math.random()*1e5);map.set(i+"",a);var d="stencilbook-shawdow-view-"+i;return h(d,null,h(n,{"stencilbook-shadow-view":i}))};export{LeaderboardView as L,ShadowViewAddon as S,useLeaderboard as u,withShadowView as w};var templateObject_1;
|