@saasquatch/mint-components 1.3.1-4 → 1.3.2-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 +23 -31
- package/dist/cjs/{ShadowViewAddon-616d23ff.js → ShadowViewAddon-75c18b96.js} +1 -1
- package/dist/cjs/{global-4a64e4d5.js → global-041b5338.js} +334 -176
- package/dist/cjs/{sqm-leaderboard-rank-view-e6aaad22.js → index-19309631.js} +3 -10
- package/dist/cjs/{index.module-3a261802.js → index.module-6a7bda18.js} +3 -2
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/mint-components.cjs.js +4 -3
- package/dist/cjs/{re-render-c2492742.js → re-render-7cdb2d81.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_26.cjs.entry.js → sqm-divided-layout_27.cjs.entry.js} +1094 -63
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -7
- 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-5455964e.js → sqm-navigation-sidebar-item-view-e99b4a10.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-790a4411.js → sqm-portal-email-verification-view-5e955797.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -4
- package/dist/cjs/{sqm-portal-footer-view-8b82e9df.js → sqm-portal-footer-view-9089feb7.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -3
- 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-11a0b201.js → sqm-portal-profile-view-a23ea292.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table.cjs.entry.js +332 -0
- package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-task-card-view-cb11e56f.js +472 -0
- package/dist/cjs/sqm-task-card.cjs.entry.js +32 -0
- package/dist/cjs/tslib.es6-0e81fab1.js +56 -0
- package/dist/cjs/useChildElements-428ca5b8.js +21 -0
- package/dist/cjs/{useDemoBigStat-7f38c988.js → useDemoBigStat-17e61803.js} +3 -2
- package/dist/collection/collection-manifest.json +6 -3
- package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +4 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +0 -20
- package/dist/collection/components/sqm-big-stat/useBigStat.js +2 -1
- package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
- package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/Leftward Arrow.svg +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +70 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +226 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +120 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +194 -0
- package/dist/collection/{stories → components/sqm-rewards-table}/Router.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +195 -0
- package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/useShareLink.js +1 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +40 -36
- package/dist/collection/components/sqm-task-card/Matrix.js +63 -0
- package/dist/collection/components/sqm-task-card/SVGs.js +15 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +291 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +453 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +192 -0
- package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
- package/dist/collection/global/styles.js +278 -69
- package/dist/collection/global/styles.ts +278 -69
- package/dist/collection/tables/GenericTableView.js +51 -0
- package/dist/collection/tables/TableSlots.js +22 -0
- package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
- package/dist/esm/{ShadowViewAddon-90bddd7a.js → ShadowViewAddon-fff5d35d.js} +1 -1
- package/dist/esm/{global-2af7c34c.js → global-5ecbf81a.js} +281 -123
- package/dist/esm/{sqm-leaderboard-rank-view-8aacf3aa.js → index-2f5dd0a1.js} +3 -9
- package/dist/esm/{index.module-96d22fa3.js → index.module-f80561db.js} +2 -2
- package/dist/esm/loader.js +4 -3
- package/dist/esm/mint-components.js +4 -3
- package/dist/esm/{re-render-712044e1.js → re-render-9ab5fe0f.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_26.entry.js → sqm-divided-layout_27.entry.js} +1090 -60
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -3
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-84d77c9b.js → sqm-navigation-sidebar-item-view-8a3f374b.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-34bef778.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +5 -4
- package/dist/esm/{sqm-portal-footer-view-82345c97.js → sqm-portal-footer-view-c317518e.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +4 -3
- 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-4b9828d9.js → sqm-portal-profile-view-824c8242.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table.entry.js +328 -0
- package/dist/esm/sqm-share-code.entry.js +1 -1
- package/dist/esm/sqm-task-card-view-6a082a21.js +469 -0
- package/dist/esm/sqm-task-card.entry.js +28 -0
- package/dist/esm/tslib.es6-7ac9d7e4.js +53 -0
- package/dist/esm/useChildElements-506f00d0.js +19 -0
- package/dist/esm/{useDemoBigStat-c03e4116.js → useDemoBigStat-b71fe122.js} +3 -2
- package/dist/esm-es5/{ShadowViewAddon-90bddd7a.js → ShadowViewAddon-fff5d35d.js} +1 -1
- package/dist/esm-es5/{global-2af7c34c.js → global-5ecbf81a.js} +2 -16
- package/dist/esm-es5/index-2f5dd0a1.js +1 -0
- package/dist/esm-es5/{index.module-96d22fa3.js → index.module-f80561db.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-712044e1.js → re-render-9ab5fe0f.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_27.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.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-84d77c9b.js → sqm-navigation-sidebar-item-view-8a3f374b.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-34bef778.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-82345c97.js → sqm-portal-footer-view-c317518e.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-4b9828d9.js → sqm-portal-profile-view-824c8242.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-rewards-table.entry.js +1 -0
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/sqm-task-card-view-6a082a21.js +1 -0
- package/dist/esm-es5/sqm-task-card.entry.js +1 -0
- package/dist/esm-es5/tslib.es6-7ac9d7e4.js +15 -0
- package/dist/esm-es5/useChildElements-506f00d0.js +1 -0
- package/dist/esm-es5/{useDemoBigStat-c03e4116.js → useDemoBigStat-b71fe122.js} +1 -1
- package/dist/mint-components/assets/Leftward Arrow.svg +3 -0
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/global/styles.ts +278 -69
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-22a96415.js → p-00190438.js} +1 -1
- package/dist/mint-components/{p-dbb59971.system.entry.js → p-04516274.system.entry.js} +1 -1
- package/dist/mint-components/{p-28e86ebc.js → p-05cca77b.js} +1 -1
- package/dist/mint-components/{p-972267f0.system.entry.js → p-0688c9c2.system.entry.js} +1 -1
- package/dist/mint-components/p-11c75956.entry.js +1 -0
- package/dist/mint-components/p-12fb9197.entry.js +1 -0
- package/dist/mint-components/{p-b967445b.system.entry.js → p-16535642.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc7ea657.entry.js → p-16da5146.entry.js} +1 -1
- package/dist/mint-components/{p-953259a7.system.js → p-1813b9b9.system.js} +1 -1
- package/dist/mint-components/p-189219ee.system.js +1 -0
- package/dist/mint-components/{p-c8981921.system.entry.js → p-1ac9c24b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d842d3c2.system.entry.js → p-1b414d8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4bd59d4.system.js → p-1fb688a9.system.js} +1 -1
- package/dist/mint-components/p-21dfdeb8.entry.js +1 -0
- package/dist/mint-components/p-23a0bdae.entry.js +1 -0
- package/dist/mint-components/{p-1604e504.system.entry.js → p-2a025d2a.system.entry.js} +1 -1
- package/dist/mint-components/p-2ae9c535.js +1 -0
- package/dist/mint-components/{p-ba489b88.js → p-2bce988c.js} +1 -1
- package/dist/mint-components/{p-b5afca53.entry.js → p-2f171597.entry.js} +1 -1
- package/dist/mint-components/{p-12d2582e.system.js → p-3052c913.system.js} +1 -1
- package/dist/mint-components/{p-4a627ee3.entry.js → p-337b49ee.entry.js} +1 -1
- package/dist/mint-components/{p-af506742.system.js → p-3b0acfcd.system.js} +1 -1
- package/dist/mint-components/{p-559cc6a6.system.entry.js → p-3fd33dee.system.entry.js} +1 -1
- package/dist/mint-components/{p-bb817d4a.js → p-405a9253.js} +2 -2
- package/dist/mint-components/{p-0ce359a5.js → p-434ee9c1.js} +1 -1
- package/dist/mint-components/p-4ba2faf2.system.entry.js +1 -0
- package/dist/mint-components/{p-955981cd.system.entry.js → p-505f5c59.system.entry.js} +1 -1
- package/dist/mint-components/p-550b4579.system.entry.js +1 -0
- package/dist/mint-components/p-55e02769.entry.js +13 -0
- package/dist/mint-components/{p-9048f7eb.system.entry.js → p-57a53dbd.system.entry.js} +1 -1
- package/dist/mint-components/p-58d9b2f0.js +15 -0
- package/dist/mint-components/{p-14880676.system.entry.js → p-5dfc6804.system.entry.js} +1 -1
- package/dist/mint-components/{p-597a8eaa.entry.js → p-5f28af29.entry.js} +1 -1
- package/dist/mint-components/{p-5ca0f272.entry.js → p-6cdc70f4.entry.js} +1 -1
- package/dist/mint-components/p-6d545e13.entry.js +1 -0
- package/dist/mint-components/p-70837c1c.entry.js +49 -0
- package/dist/mint-components/p-71d942af.entry.js +9 -0
- package/dist/mint-components/p-795a7259.system.entry.js +1 -0
- package/dist/mint-components/p-7c138c84.entry.js +1 -0
- package/dist/mint-components/{p-af702398.system.entry.js → p-7c13e32e.system.entry.js} +1 -1
- package/dist/mint-components/p-7c261ea0.system.entry.js +1 -0
- package/dist/mint-components/p-8034f81c.system.entry.js +1 -0
- package/dist/mint-components/{p-48efaf7e.system.js → p-82ab88fe.system.js} +1 -1
- package/dist/mint-components/{p-a8680516.entry.js → p-82d7a2ba.entry.js} +1 -1
- package/dist/mint-components/{p-c12b5dee.entry.js → p-844f9bad.entry.js} +1 -1
- package/dist/mint-components/{p-c5d4bbbd.js → p-844fd903.js} +1 -1
- package/dist/mint-components/p-86cd9f79.entry.js +286 -0
- package/dist/mint-components/p-8c16f04e.js +1 -0
- package/dist/mint-components/{p-aeb65d2b.js → p-8e37c08d.js} +1 -1
- package/dist/mint-components/p-91d39961.system.js +1 -0
- package/dist/mint-components/{p-bc84734e.system.entry.js → p-a0045707.system.entry.js} +1 -1
- package/dist/mint-components/{p-29c57faa.system.js → p-a0cfd3d9.system.js} +1 -1
- package/dist/mint-components/{p-2f23e292.entry.js → p-a4a00461.entry.js} +1 -1
- package/dist/mint-components/{p-bc3ec47d.entry.js → p-a7f0b2f6.entry.js} +1 -1
- package/dist/mint-components/{p-e3b307a9.entry.js → p-aba21f90.entry.js} +1 -1
- package/dist/mint-components/{p-263da1a3.system.entry.js → p-af06ea5b.system.entry.js} +1 -1
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-bf04a8e1.system.entry.js +1 -0
- package/dist/mint-components/p-bf055b6c.system.js +1 -0
- package/dist/mint-components/p-c3866bfa.system.entry.js +1 -0
- package/dist/mint-components/p-c9c4f31b.system.entry.js +1 -0
- package/dist/mint-components/{p-4d97e5d3.js → p-cc3510c8.js} +1 -1
- package/dist/mint-components/{p-d3522156.system.js → p-ceeaf074.system.js} +21 -35
- package/dist/mint-components/p-d0913f8d.system.js +1 -0
- package/dist/mint-components/{p-497beffc.entry.js → p-d3787c3a.entry.js} +1 -1
- package/dist/mint-components/{p-2a3e5c1f.entry.js → p-d9cc041f.entry.js} +1 -1
- package/dist/mint-components/p-db723323.system.entry.js +1 -0
- package/dist/mint-components/p-dd6a666e.system.js +15 -0
- package/dist/mint-components/p-dfc3cf82.js +1 -0
- package/dist/mint-components/p-e19a57a4.system.entry.js +1 -0
- package/dist/mint-components/p-e22eed7b.entry.js +1 -0
- package/dist/mint-components/p-e2ebe90c.entry.js +1 -0
- package/dist/mint-components/{p-f40db771.system.entry.js → p-e475a5ff.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3937919.entry.js → p-e9ab90a1.entry.js} +1 -1
- package/dist/mint-components/p-ecbabf6e.system.js +1 -0
- package/dist/mint-components/{p-6b508611.js → p-f1e1086e.js} +2 -17
- package/dist/mint-components/p-f41ab9e1.system.js +1 -0
- package/dist/mint-components/{p-3aedd556.system.js → p-f87d8f53.system.js} +1 -1
- package/dist/mint-components/p-fcaa5886.system.entry.js +1 -0
- package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +0 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
- package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +23 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +21 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +46 -0
- package/dist/types/{stories → components/sqm-rewards-table}/Router.stories.d.ts +0 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +5 -0
- package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/components/sqm-task-card/Matrix.d.ts +11 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +9 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +23 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +41 -0
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
- package/dist/types/components.d.ts +185 -10
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/tables/GenericTableView.d.ts +29 -0
- package/dist/types/tables/TableSlots.d.ts +8 -0
- package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-8aacf3aa.js +0 -1
- package/dist/mint-components/p-094e2a37.entry.js +0 -13
- package/dist/mint-components/p-0955e6cb.system.entry.js +0 -1
- package/dist/mint-components/p-0ad19e35.system.entry.js +0 -1
- package/dist/mint-components/p-18b2407c.system.entry.js +0 -1
- package/dist/mint-components/p-5555ba99.system.js +0 -1
- package/dist/mint-components/p-5753e72a.entry.js +0 -1
- package/dist/mint-components/p-600a7424.entry.js +0 -1
- package/dist/mint-components/p-728cdabb.entry.js +0 -1
- package/dist/mint-components/p-7ea1d7d6.entry.js +0 -9
- package/dist/mint-components/p-893a12d1.system.entry.js +0 -1
- package/dist/mint-components/p-9c7dfd92.system.entry.js +0 -1
- package/dist/mint-components/p-aeaebccb.entry.js +0 -230
- package/dist/mint-components/p-b32a1703.entry.js +0 -1
- package/dist/mint-components/p-b431ce31.entry.js +0 -1
- package/dist/mint-components/p-b86921f5.entry.js +0 -1
- package/dist/mint-components/p-b966c6fc.system.entry.js +0 -1
- package/dist/mint-components/p-d2f2c1b9.system.entry.js +0 -1
- package/dist/mint-components/p-d9d9954c.js +0 -1
- package/dist/mint-components/p-da26f022.system.js +0 -1
- package/dist/mint-components/p-e13bff75.system.entry.js +0 -1
- package/dist/mint-components/p-e171513a.entry.js +0 -1
- package/dist/mint-components/p-e87a5773.system.js +0 -1
- package/dist/mint-components/p-e9d4fbb9.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/UserName.stories.d.ts +0 -6
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { BigStatView } from "
|
|
3
|
-
import { useDemoBigStat } from "
|
|
4
|
-
import { useBigStat } from "
|
|
2
|
+
import { BigStatView } from "./sqm-big-stat-view";
|
|
3
|
+
import { useDemoBigStat } from "./useDemoBigStat";
|
|
4
|
+
import { useBigStat } from "./useBigStat";
|
|
5
5
|
import { useState } from "@saasquatch/stencil-hooks";
|
|
6
|
-
import { createHookStory } from "../
|
|
6
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
7
7
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
8
8
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
9
9
|
export default {
|
|
@@ -100,26 +100,6 @@ export class BigStat {
|
|
|
100
100
|
"attribute": "alignment",
|
|
101
101
|
"reflect": false
|
|
102
102
|
},
|
|
103
|
-
"programId": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"mutable": false,
|
|
106
|
-
"complexType": {
|
|
107
|
-
"original": "string",
|
|
108
|
-
"resolved": "string",
|
|
109
|
-
"references": {}
|
|
110
|
-
},
|
|
111
|
-
"required": false,
|
|
112
|
-
"optional": true,
|
|
113
|
-
"docs": {
|
|
114
|
-
"tags": [{
|
|
115
|
-
"text": "Program ID",
|
|
116
|
-
"name": "uiName"
|
|
117
|
-
}],
|
|
118
|
-
"text": "The ID of the program that is used to scope stats. Defaults to the program ID in context where this widget is loaded."
|
|
119
|
-
},
|
|
120
|
-
"attribute": "program-id",
|
|
121
|
-
"reflect": false
|
|
122
|
-
},
|
|
123
103
|
"demoData": {
|
|
124
104
|
"type": "unknown",
|
|
125
105
|
"mutable": false,
|
|
@@ -473,7 +473,8 @@ export const StatPaths = [
|
|
|
473
473
|
];
|
|
474
474
|
export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
475
475
|
export function useBigStat(props) {
|
|
476
|
-
const { statType, flexReverse, alignment
|
|
476
|
+
const { statType, flexReverse, alignment } = props;
|
|
477
|
+
const programId = useProgramId();
|
|
477
478
|
const locale = useLocale();
|
|
478
479
|
const userIdent = useUserIdentity();
|
|
479
480
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarItemView } from "../
|
|
3
|
-
import { NavigationSidebarView } from "../
|
|
4
|
-
import { PortalSectionView } from "../
|
|
2
|
+
import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
|
|
3
|
+
import { NavigationSidebarView } from "../sqm-navigation-sidebar/sqm-navigation-sidebar-view";
|
|
4
|
+
import { PortalSectionView } from "../sqm-titled-section/sqm-portal-section-view";
|
|
5
5
|
export default {
|
|
6
|
-
title: "Divided Layout",
|
|
6
|
+
title: "Components/Divided Layout",
|
|
7
7
|
};
|
|
8
8
|
const barProps = {
|
|
9
9
|
data: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import EditProfileView from "
|
|
2
|
+
import EditProfileView from "./sqm-edit-profile-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Edit Profile Form",
|
|
4
|
+
title: "Components/Edit Profile Form",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
|
-
import { createHookStory } from "../
|
|
4
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
5
5
|
function setupGraphQL() {
|
|
6
6
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
7
7
|
const accountId = id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { HeroView } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { HeroView } from "./sqm-hero-view";
|
|
3
|
+
import scenario from "../sqm-hero/sqm-hero.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Hero Layout",
|
|
6
6
|
parameters: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { LeaderboardView } from "
|
|
2
|
+
import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Leaderboard",
|
|
4
|
+
title: "Components/Leaderboard",
|
|
5
5
|
parameters: {
|
|
6
6
|
tagname: "sqm-leaderboard",
|
|
7
7
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createHookStory } from "../
|
|
3
|
-
import { useLeaderboard, } from "
|
|
4
|
-
import { LeaderboardView } from "
|
|
2
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
3
|
+
import { useLeaderboard, } from "./useLeaderboard";
|
|
4
|
+
import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
5
5
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
6
6
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
7
7
|
export default {
|
package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { LeaderboardRankView } from "
|
|
2
|
+
import { LeaderboardRankView } from "./sqm-leaderboard-rank-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Leaderboard Rank",
|
|
4
|
+
title: "Components/Leaderboard Rank",
|
|
5
5
|
};
|
|
6
6
|
export const First = () => {
|
|
7
7
|
const props = { data: { rank: "1st" } };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NameFieldsView, } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { NameFieldsView, } from "./sqm-name-fields-view";
|
|
3
|
+
import scenario from "../sqm-name-fields/sqm-name-fields.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Name Fields",
|
|
6
6
|
parameters: {
|
package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarView } from "
|
|
3
|
-
import { NavigationSidebarItemView } from "../
|
|
2
|
+
import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
|
|
3
|
+
import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Navigation Sidebar",
|
|
5
|
+
title: "Components/Navigation Sidebar",
|
|
6
6
|
};
|
|
7
7
|
export const DefaultNavigationSidebar = () => {
|
|
8
8
|
const barProps = {
|
package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavigationSidebarItemView } from "
|
|
2
|
+
import { NavigationSidebarItemView } from "./sqm-navigation-sidebar-item-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Sidebar Item",
|
|
4
|
+
title: "Components/Sidebar Item",
|
|
5
5
|
};
|
|
6
6
|
export const InactiveItem = () => {
|
|
7
7
|
const props = {
|
package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalChangePasswordView } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalChangePasswordView } from "./sqm-portal-change-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-change-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Change Password",
|
|
5
|
+
title: "Components/Change Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalEmailVerificationView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalEmailVerificationView, } from "./sqm-portal-email-verification-view";
|
|
3
|
+
import scenario from "./sqm-portal-email-verification.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Email Verification",
|
|
5
|
+
title: "Components/Portal Email Verification",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalFooterView } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { PortalFooterView } from "./sqm-portal-footer-view";
|
|
3
|
+
import scenario from "../sqm-portal-footer/sqm-portal-footer.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Portal Footer",
|
|
6
6
|
parameters: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalForgotPasswordView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalForgotPasswordView, } from "./sqm-portal-forgot-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-forgot-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Forgot Password",
|
|
5
|
+
title: "Components/Portal Forgot Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { navigation, useCurrentPage } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
|
-
import { PortalFrameView } from "
|
|
3
|
+
import { PortalFrameView } from "./sqm-portal-frame-view";
|
|
4
4
|
function setupGraphQL() {
|
|
5
5
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
6
6
|
const accountId = id;
|
|
@@ -32,7 +32,7 @@ function setupLoggedOut() {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export default {
|
|
35
|
-
title: "Portal Frame",
|
|
35
|
+
title: "Components/Portal Frame",
|
|
36
36
|
};
|
|
37
37
|
const defaultProps = {
|
|
38
38
|
data: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalLoginView, } from "
|
|
2
|
+
import { PortalLoginView, } from "./sqm-portal-login-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Portal Login",
|
|
4
|
+
title: "Components/Portal Login",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
|
-
import { PortalProfileView, } from "
|
|
4
|
+
import { PortalProfileView, } from "./sqm-portal-profile-view";
|
|
5
5
|
export default {
|
|
6
|
-
title: "Portal Profile",
|
|
6
|
+
title: "Components/Portal Profile",
|
|
7
7
|
};
|
|
8
8
|
// const style = {};
|
|
9
9
|
jss.setup(preset());
|
package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalRegisterView, } from "
|
|
2
|
+
import { PortalRegisterView, } from "./sqm-portal-register-view";
|
|
3
3
|
export default {
|
|
4
|
-
title: "Portal Register",
|
|
4
|
+
title: "Components/Portal Register",
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
@@ -287,7 +287,7 @@ export class PortalRegister {
|
|
|
287
287
|
"mutable": false,
|
|
288
288
|
"complexType": {
|
|
289
289
|
"original": "DemoData<PortalRegisterViewProps>",
|
|
290
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; };
|
|
290
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }",
|
|
291
291
|
"references": {
|
|
292
292
|
"DemoData": {
|
|
293
293
|
"location": "import",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalResetPasswordView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalResetPasswordView, } from "./sqm-portal-reset-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-reset-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Reset Password",
|
|
5
|
+
title: "Components/Portal Reset Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalVerifyEmailView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalVerifyEmailView, } from "./sqm-portal-verify-email-view";
|
|
3
|
+
import scenario from "./sqm-portal-verify-email.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Verify Email",
|
|
5
|
+
title: "Components/Portal Verify Email",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createHookStory } from "../
|
|
3
|
-
import dashboardTemplate from "
|
|
2
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
3
|
+
import dashboardTemplate from "../../templates/Dashboard.html";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Program Menu",
|
|
6
6
|
};
|
package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ReferralIframeView, } from "
|
|
3
|
-
import scenario from "../
|
|
2
|
+
import { ReferralIframeView, } from "./sqm-referral-iframe-view";
|
|
3
|
+
import scenario from "../sqm-referral-iframe/sqm-referral-iframe.feature";
|
|
4
4
|
export default {
|
|
5
5
|
title: "Referral Iframe",
|
|
6
6
|
parameters: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ReferralTableView } from "
|
|
2
|
+
import { ReferralTableView } from "./sqm-referral-table-view";
|
|
3
3
|
import { AvailableNoExpiry, Cancelled, PendingNoUnpend, } from "./ReferralTableRewardsCell.stories";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Referral Table",
|
|
5
|
+
title: "Components/Referral Table",
|
|
6
6
|
};
|
|
7
7
|
const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
|
|
8
8
|
h("sqm-table-row", null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, getElement, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Generic Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Date Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Rewards Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table Status Column
|
|
6
6
|
*/
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { Component, h, Host, Method, Prop } from "@stencil/core";
|
|
3
|
-
import { useRequestRerender } from "
|
|
3
|
+
import { useRequestRerender } from "../../../tables/re-render";
|
|
4
4
|
/**
|
|
5
5
|
* @uiName Referral Table User Column
|
|
6
6
|
*/
|
|
@@ -2,8 +2,8 @@ import { usePaginatedQuery, useProgramId, useQuery, useUserIdentity, } from "@sa
|
|
|
2
2
|
import { useEffect, useReducer } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
4
|
import gql from "graphql-tag";
|
|
5
|
-
import { useRerenderListener } from "
|
|
6
|
-
import { useChildElements } from "
|
|
5
|
+
import { useRerenderListener } from "../../tables/re-render";
|
|
6
|
+
import { useChildElements } from "../../tables/useChildElements";
|
|
7
7
|
const GET_REFERRER_DATA = gql `
|
|
8
8
|
query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
|
|
9
9
|
viewer {
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { setUserIdentity, useLazyQuery, } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
|
+
import { gql } from "graphql-request";
|
|
5
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
6
|
+
const EXCHANGE = gql `
|
|
7
|
+
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
8
|
+
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
9
|
+
reward {
|
|
10
|
+
id
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
export default {
|
|
16
|
+
title: "Hooks / useRewardExchange",
|
|
17
|
+
};
|
|
18
|
+
function setupGraphQL() {
|
|
19
|
+
const id = "testestest";
|
|
20
|
+
const accountId = id;
|
|
21
|
+
const programId = "sam-partner-test-2";
|
|
22
|
+
//@ts-ignore
|
|
23
|
+
window.widgetIdent = {
|
|
24
|
+
tenantAlias: "test_a8b41jotf8a1v",
|
|
25
|
+
appDomain: "https://staging.referralsaasquatch.com",
|
|
26
|
+
programId,
|
|
27
|
+
};
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setUserIdentity({
|
|
30
|
+
accountId,
|
|
31
|
+
id,
|
|
32
|
+
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
33
|
+
});
|
|
34
|
+
return () => {
|
|
35
|
+
window.widgetIdent = undefined;
|
|
36
|
+
setUserIdentity(undefined);
|
|
37
|
+
};
|
|
38
|
+
}, []);
|
|
39
|
+
return { id, accountId };
|
|
40
|
+
}
|
|
41
|
+
function useExchangeButton() {
|
|
42
|
+
const { id, accountId } = setupGraphQL();
|
|
43
|
+
const [points, setPoints] = useState(10);
|
|
44
|
+
const [rate, setRate] = useState(100);
|
|
45
|
+
const [exchange, { data, errors }] = useLazyQuery(EXCHANGE);
|
|
46
|
+
return {
|
|
47
|
+
states: {
|
|
48
|
+
points,
|
|
49
|
+
rate,
|
|
50
|
+
},
|
|
51
|
+
data: {
|
|
52
|
+
id,
|
|
53
|
+
accountId,
|
|
54
|
+
data,
|
|
55
|
+
errors,
|
|
56
|
+
},
|
|
57
|
+
callbacks: {
|
|
58
|
+
exchange,
|
|
59
|
+
setPoints,
|
|
60
|
+
setRate,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const DefaultView = (props) => {
|
|
65
|
+
const { states, data, callbacks } = props;
|
|
66
|
+
return (h("div", null,
|
|
67
|
+
h("div", null,
|
|
68
|
+
h("label", null, "Rate:"),
|
|
69
|
+
h("input", { value: states.rate, onInput: (e) =>
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
callbacks.setRate(e.target.value) })),
|
|
72
|
+
h("input", { value: states.points, onInput: (e) =>
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
callbacks.setPoints(e.target.value) }),
|
|
75
|
+
h("button", { onClick: () => callbacks.exchange(props.input) }, "Exchange"),
|
|
76
|
+
h("details", null,
|
|
77
|
+
h("summary", null, "response"),
|
|
78
|
+
h("h4", null, "data"),
|
|
79
|
+
h("div", { style: { maxWidth: "500px" } },
|
|
80
|
+
h("pre", { style: { width: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.data))),
|
|
81
|
+
h("h4", null, "errors"),
|
|
82
|
+
h("div", { style: { maxWidth: "500px" } },
|
|
83
|
+
h("pre", { style: { maxWidth: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.errors))))));
|
|
84
|
+
};
|
|
85
|
+
export const RewardList = createHookStory(() => {
|
|
86
|
+
setupGraphQL();
|
|
87
|
+
const props = {
|
|
88
|
+
listType: "",
|
|
89
|
+
render: () => { },
|
|
90
|
+
disconnectedCallback: () => { },
|
|
91
|
+
ignored: true,
|
|
92
|
+
};
|
|
93
|
+
return (h("sqm-reward-exchange-list", { "list-type": "something" }));
|
|
94
|
+
});
|
|
95
|
+
export const FixedGlobalReward = createHookStory(() => {
|
|
96
|
+
const { states, data, callbacks } = useExchangeButton();
|
|
97
|
+
return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
|
|
98
|
+
exchangeRewardInput: {
|
|
99
|
+
userId: data.id,
|
|
100
|
+
accountId: data.accountId,
|
|
101
|
+
redeemCreditInput: {
|
|
102
|
+
amount: states.points,
|
|
103
|
+
unit: "POINT",
|
|
104
|
+
},
|
|
105
|
+
globalRewardKey: "gc1",
|
|
106
|
+
},
|
|
107
|
+
} }));
|
|
108
|
+
});
|
|
109
|
+
export const VariableGlobalReward = createHookStory(() => {
|
|
110
|
+
const { states, data, callbacks } = useExchangeButton();
|
|
111
|
+
return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
|
|
112
|
+
exchangeRewardInput: {
|
|
113
|
+
userId: data.id,
|
|
114
|
+
accountId: data.accountId,
|
|
115
|
+
redeemCreditInput: {
|
|
116
|
+
amount: states.points,
|
|
117
|
+
unit: "POINT",
|
|
118
|
+
},
|
|
119
|
+
globalRewardKey: "gc1",
|
|
120
|
+
rewardInput: {
|
|
121
|
+
valueInCents: Math.ceil(states.points * states.rate),
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
} }));
|
|
125
|
+
});
|
|
126
|
+
export const VariableCreditReward = createHookStory(() => {
|
|
127
|
+
const { states, data, callbacks } = useExchangeButton();
|
|
128
|
+
return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
|
|
129
|
+
exchangeRewardInput: {
|
|
130
|
+
userId: data.id,
|
|
131
|
+
accountId: data.accountId,
|
|
132
|
+
redeemCreditInput: {
|
|
133
|
+
amount: states.points,
|
|
134
|
+
unit: "POINT",
|
|
135
|
+
},
|
|
136
|
+
rewardInput: {
|
|
137
|
+
type: "CREDIT",
|
|
138
|
+
unit: "foo",
|
|
139
|
+
assignedCredit: Math.ceil(states.points * states.rate),
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
} }));
|
|
143
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.34655 1.90573C7.75405 2.31323 7.75405 2.97392 7.34655 3.38143L3.56266 7.16531H14.9565C15.5328 7.16531 16 7.6325 16 8.20879C16 8.78509 15.5328 9.25227 14.9565 9.25227H3.56266L7.69437 13.384C8.10188 13.7915 8.10188 14.4522 7.69437 14.8597C7.28687 15.2672 6.62617 15.2672 6.21867 14.8597L0.305628 8.94664C-0.101876 8.53914 -0.101876 7.87845 0.305628 7.47094L5.87084 1.90573C6.27835 1.49822 6.93904 1.49822 7.34655 1.90573Z" fill="#858585"/>
|
|
3
|
+
</svg>
|