@saasquatch/mint-components 1.5.0-49 → 1.5.0-52
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/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
- package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
- package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
- package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
- package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
- package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +9 -9
- package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
- package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
- package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
- package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
- package/dist/cjs/sqm-route.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
- package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
- package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
- package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
- package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
- package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
- package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
- package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
- package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
- package/dist/collection/components/sqm-image/Image.stories.js +25 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
- package/dist/collection/components/sqm-image/sqm-image.js +137 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
- package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
- package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
- package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
- package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
- package/dist/collection/tables/GenericTableView.js +3 -4
- package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
- package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
- package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
- package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
- package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
- package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
- package/dist/esm/mint-components.js +9 -9
- package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +9 -9
- package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
- package/dist/esm/sqm-big-stat.entry.js +9 -9
- package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
- package/dist/esm/sqm-form-message.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
- package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
- package/dist/esm/sqm-hero.entry.js +7 -7
- package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
- package/dist/esm/sqm-leaderboard.entry.js +9 -9
- package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
- package/dist/esm/sqm-name-fields.entry.js +9 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
- package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
- package/dist/esm/sqm-password-field.entry.js +26 -27
- package/dist/esm/sqm-popup-container.entry.js +9 -9
- package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
- package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +9 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
- package/dist/esm/sqm-portal-logout.entry.js +8 -8
- package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
- package/dist/esm/sqm-portal-profile.entry.js +16 -16
- package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
- package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
- package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
- package/dist/esm/sqm-referral-table_11.entry.js +31 -31
- package/dist/esm/sqm-refresh-button.entry.js +7 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
- package/dist/esm/sqm-route.entry.js +2 -2
- package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
- package/dist/esm/sqm-stat-container.entry.js +6 -6
- package/dist/esm/sqm-stencilbook.entry.js +642 -599
- package/dist/esm/sqm-table-cell_3.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +5 -5
- package/dist/esm/sqm-titled-section.entry.js +6 -6
- package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
- package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
- package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
- package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
- package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
- package/dist/esm-es5/AutoColor-5d891803.js +1 -0
- package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
- package/dist/esm-es5/JSS-96eeab98.js +8 -0
- package/dist/esm-es5/global-6bd9287e.js +285 -0
- package/dist/esm-es5/index-17b4da69.js +1 -0
- package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
- package/dist/esm-es5/sqm-hero.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-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.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-3da23184.js → sqm-portal-profile-view-36488558.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-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-table-cell_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
- package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
- package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
- package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
- package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
- package/dist/loader/index.d.ts +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-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
- package/dist/mint-components/p-023dcaee.js +1 -0
- package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
- package/dist/mint-components/p-0c19f830.entry.js +1 -0
- package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
- package/dist/mint-components/p-1288be55.entry.js +1 -0
- package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
- package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
- package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
- package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
- package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
- package/dist/mint-components/p-204fd08c.js +1 -0
- package/dist/mint-components/p-220181cd.system.entry.js +1 -0
- package/dist/mint-components/p-232db563.system.entry.js +1 -0
- package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
- package/dist/mint-components/p-24724b6b.entry.js +13 -0
- package/dist/mint-components/p-27e04aaf.entry.js +1 -0
- package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
- package/dist/mint-components/p-348461ec.system.entry.js +1 -0
- package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
- package/dist/mint-components/p-3b184c32.js +1 -0
- package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
- package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
- package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
- package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
- package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
- package/dist/mint-components/p-48abcb89.entry.js +86 -0
- package/dist/mint-components/p-49c9ff69.entry.js +1 -0
- package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
- package/dist/mint-components/p-4c21835b.entry.js +1 -0
- package/dist/mint-components/p-4e0b9201.system.js +1 -0
- package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
- package/dist/mint-components/p-5289072a.js +1 -0
- package/dist/mint-components/p-54986541.entry.js +1 -0
- package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
- package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
- package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
- package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
- package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
- package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
- package/dist/mint-components/p-62625e22.entry.js +1 -0
- package/dist/mint-components/p-62e49806.system.entry.js +1 -0
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
- package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
- package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
- package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
- package/dist/mint-components/p-6f88ea09.system.js +1 -0
- package/dist/mint-components/p-72a978c8.entry.js +1 -0
- package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
- package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
- package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
- package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
- package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
- package/dist/mint-components/p-871536c7.entry.js +1 -0
- package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
- package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
- package/dist/mint-components/p-9580888c.system.js +53 -0
- package/dist/mint-components/p-96c971fa.entry.js +1 -0
- package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
- package/dist/mint-components/p-98393bf0.entry.js +1 -0
- package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
- package/dist/mint-components/p-9f215c7f.entry.js +161 -0
- package/dist/mint-components/p-9f65904f.entry.js +1 -0
- package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
- package/dist/mint-components/p-a674c833.system.entry.js +1 -0
- package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
- package/dist/mint-components/p-ac65007d.js +1 -0
- package/dist/mint-components/p-af5673c4.entry.js +1 -0
- package/dist/mint-components/p-b0c32d15.system.js +1 -0
- package/dist/mint-components/p-b0d6a380.system.js +1 -0
- package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
- package/dist/mint-components/p-b3201e4c.entry.js +1 -0
- package/dist/mint-components/p-b3735eaf.entry.js +9 -0
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-b69365f5.entry.js +1 -0
- package/dist/mint-components/p-b77bb179.system.js +285 -0
- package/dist/mint-components/p-b7da9a8a.js +42 -0
- package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
- package/dist/mint-components/p-b9974b87.entry.js +1 -0
- package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
- package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
- package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
- package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
- package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
- package/dist/mint-components/p-cd4037d1.entry.js +1 -0
- package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
- package/dist/mint-components/p-d10efde1.system.js +1 -0
- package/dist/mint-components/p-d1520098.js +1 -0
- package/dist/mint-components/p-d312db42.entry.js +1 -0
- package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
- package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
- package/dist/mint-components/p-dc17de12.entry.js +119 -0
- package/dist/mint-components/p-dcff1a85.entry.js +1 -0
- package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
- package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
- package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
- package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
- package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
- package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
- package/dist/mint-components/p-ea197664.js +1 -0
- package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
- package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
- package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
- package/dist/mint-components/p-f143117c.entry.js +1 -0
- package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
- package/dist/mint-components/p-f372c8d8.entry.js +1 -0
- package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
- package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
- package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
- package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
- package/dist/mint-components/p-fe4d9531.system.js +1 -0
- package/dist/mint-components/p-ff17b3a4.system.js +1 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
- package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
- package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
- package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
- package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
- package/dist/types/components.d.ts +215 -138
- package/dist/types/stencil-public-runtime.d.ts +182 -190
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-media/Media.stories.js +0 -28
- package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
- package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
- package/dist/esm-es5/global-cc738e38.js +0 -285
- package/dist/esm-es5/index-2c5a6587.js +0 -1
- package/dist/esm-es5/index.module-983975d9.js +0 -1
- package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
- package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
- package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
- package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
- package/dist/mint-components/p-00894968.system.js +0 -1
- package/dist/mint-components/p-0449904d.system.entry.js +0 -1
- package/dist/mint-components/p-050bd4c1.entry.js +0 -1
- package/dist/mint-components/p-073c0485.system.js +0 -1
- package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
- package/dist/mint-components/p-12557b30.js +0 -1
- package/dist/mint-components/p-15932a6d.entry.js +0 -1
- package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
- package/dist/mint-components/p-1c0fac18.system.js +0 -1
- package/dist/mint-components/p-2012b3eb.entry.js +0 -1
- package/dist/mint-components/p-21bf87e9.system.js +0 -1
- package/dist/mint-components/p-2673d322.entry.js +0 -1
- package/dist/mint-components/p-32ec3994.entry.js +0 -161
- package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
- package/dist/mint-components/p-3beda015.js +0 -1
- package/dist/mint-components/p-40849586.entry.js +0 -1
- package/dist/mint-components/p-40b91bd2.entry.js +0 -1
- package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
- package/dist/mint-components/p-425ea70b.entry.js +0 -1
- package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
- package/dist/mint-components/p-4ac07db9.system.js +0 -1
- package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
- package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
- package/dist/mint-components/p-71775f38.entry.js +0 -1
- package/dist/mint-components/p-746fa1fa.entry.js +0 -1
- package/dist/mint-components/p-77bf2413.entry.js +0 -1
- package/dist/mint-components/p-79339d1d.entry.js +0 -33
- package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
- package/dist/mint-components/p-860513de.system.js +0 -53
- package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
- package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
- package/dist/mint-components/p-8f900354.system.entry.js +0 -1
- package/dist/mint-components/p-95b5aa14.system.js +0 -1
- package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
- package/dist/mint-components/p-a716fa21.entry.js +0 -1
- package/dist/mint-components/p-aa926a92.entry.js +0 -86
- package/dist/mint-components/p-adabc223.js +0 -1
- package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
- package/dist/mint-components/p-aeaf1171.js +0 -1
- package/dist/mint-components/p-af8a82a5.entry.js +0 -1
- package/dist/mint-components/p-b094b800.js +0 -1
- package/dist/mint-components/p-c1509151.system.entry.js +0 -1
- package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
- package/dist/mint-components/p-c164d3fe.js +0 -1
- package/dist/mint-components/p-c358211f.js +0 -1
- package/dist/mint-components/p-c824c2e5.system.js +0 -285
- package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
- package/dist/mint-components/p-cfe598c1.js +0 -1
- package/dist/mint-components/p-cfe65695.entry.js +0 -1
- package/dist/mint-components/p-d2a2c424.js +0 -56
- package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
- package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
- package/dist/mint-components/p-e341556f.entry.js +0 -13
- package/dist/mint-components/p-e551074e.system.js +0 -1
- package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
- package/dist/mint-components/p-eb3ce654.entry.js +0 -1
- package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
- package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
- package/dist/mint-components/p-f17cd500.entry.js +0 -1
- package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
- package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const index_module = require('./index.module-0f10a4c4.js');
|
|
11
|
-
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5e2bcad9.js');
|
|
12
|
-
const useDemoBigStat = require('./useDemoBigStat-1fa1ca6a.js');
|
|
13
|
-
const JSS = require('./JSS-24a85193.js');
|
|
14
|
-
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-b53fad32.js');
|
|
15
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-7f69e118.js');
|
|
16
|
-
const sqmPortalSectionView = require('./sqm-portal-section-view-073d9dda.js');
|
|
17
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-a78ab7ca.js');
|
|
18
|
-
const sqmStatContainerView = require('./sqm-stat-container-view-fd6e8f8d.js');
|
|
19
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-0c31ff46.js');
|
|
20
|
-
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-036e5d76.js');
|
|
21
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-2a783b13.js');
|
|
22
|
-
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-c2ca03ef.js');
|
|
23
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1fa62a17.js');
|
|
24
|
-
const sqmAssetCardView = require('./sqm-asset-card-view-0764beab.js');
|
|
25
|
-
const GenericTableView = require('./GenericTableView-f9bd3b19.js');
|
|
26
|
-
const luxon = require('./luxon-751f2e1c.js');
|
|
27
|
-
const sqmPortalFooterView = require('./sqm-portal-footer-view-ff16e344.js');
|
|
28
|
-
const sqmHeroView = require('./sqm-hero-view-6706134d.js');
|
|
29
|
-
const sqmNameFieldsView = require('./sqm-name-fields-view-c684114f.js');
|
|
30
|
-
require('./mixins-7b7c59fe.js');
|
|
31
|
-
require('./sqm-text-span-view-dd99633a.js');
|
|
32
|
-
require('./global-32bf222f.js');
|
|
33
|
-
require('./insertcss-04580cfa.js');
|
|
34
|
-
require('./utils-01dbfd4a.js');
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
+
require('./global-08276663.js');
|
|
8
|
+
require('./use-callback-e754042f.js');
|
|
9
|
+
const index_module = require('./index.module-54724339.js');
|
|
35
10
|
require('./extends-08099afd.js');
|
|
36
|
-
require('./
|
|
11
|
+
require('./insertcss-04580cfa.js');
|
|
37
12
|
require('./cjs-1066ec21.js');
|
|
13
|
+
require('./mixins-7b7c59fe.js');
|
|
14
|
+
const JSS = require('./JSS-c65a40f1.js');
|
|
15
|
+
const GenericTableView = require('./GenericTableView-34662639.js');
|
|
16
|
+
const luxon = require('./luxon-59ca7d19.js');
|
|
17
|
+
require('./utils-01dbfd4a.js');
|
|
18
|
+
require('./sqm-text-span-view-f101dedf.js');
|
|
19
|
+
const sqmAssetCardView = require('./sqm-asset-card-view-d9ac6a95.js');
|
|
20
|
+
const sqmBigStatView = require('./sqm-big-stat-view-e5dc0877.js');
|
|
21
|
+
const useDemoBigStat = require('./useDemoBigStat-42fa7a69.js');
|
|
22
|
+
const sqmHeroView = require('./sqm-hero-view-a13795c0.js');
|
|
23
|
+
const useLeaderboard = require('./useLeaderboard-6110cd94.js');
|
|
24
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-35015d30.js');
|
|
25
|
+
const sqmNameFieldsView = require('./sqm-name-fields-view-c95e4768.js');
|
|
26
|
+
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-36632c96.js');
|
|
27
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-da648fbc.js');
|
|
28
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-991a6739.js');
|
|
29
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-266e5a7d.js');
|
|
30
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-10c0b54f.js');
|
|
31
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-185b4bd0.js');
|
|
32
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-fda5946f.js');
|
|
33
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-1fdc957e.js');
|
|
34
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-4c78e231.js');
|
|
35
|
+
const sqmStatContainerView = require('./sqm-stat-container-view-5b2db929.js');
|
|
36
|
+
const AutoColor = require('./AutoColor-db901e98.js');
|
|
37
|
+
const sqmPortalSectionView = require('./sqm-portal-section-view-3b6c990e.js');
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -743,7 +743,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
743
743
|
return StyleSheet;
|
|
744
744
|
}();
|
|
745
745
|
|
|
746
|
-
var e="-ms-";var r="-moz-";var a
|
|
746
|
+
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function g(e){return e.trim()}function x(e,r){return (e=r.exec(e))?e[0]:e}function y(e,r,a){return e.replace(r,a)}function j(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function C(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function O(e,r){return r.push(e),e}function S(e,r){return e.map(r).join("")}var q=1;var B=1;var D=0;var E=0;var F=0;var G="";function H(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:q,column:B,length:s,return:""}}function I(e,r,a){return H(e,r.root,r.parent,a,r.props,r.children,0)}function J(){return F}function K(){F=E>0?z(G,--E):0;if(B--,F===10)B=1,q--;return F}function L(){F=E<D?z(G,E++):0;if(B++,F===10)B=1,q++;return F}function N(){return z(G,E)}function P(){return E}function Q(e,r){return C(G,e,r)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return q=B=1,D=A(G=e),E=0,[]}function U(e){return G="",e}function V(e){return g(Q(E-1,_(e===91?e+2:e===40?e+1:e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Z(e,r){while(--r&&L())if(F<48||F>102||F>57&&F<65||F>70&&F<97)break;return Q(e,P()+(r<6&&N()==32&&L()==32))}function _(e){while(L())switch(F){case e:return E;case 34:case 39:return _(e===34||e===39?e:F);case 40:if(e===41)_(e);break;case 92:L();break}return E}function ee(e,r){while(L())if(e+F===47+10)break;else if(e+F===42+42&&N()===47)break;return "/*"+Q(r,E-1)+"*"+d(e===47?e:L())}function re(e){while(!R(N()))L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var m="";var g=n;var x=t;var j=c;var z=m;while(w)switch(p=k,k=L()){case 34:case 39:case 91:case 40:z+=V(k);break;case 9:case 10:case 13:case 32:z+=X(p);break;case 92:z+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&A(z)-l)O(h>32?se(z+";",c,a,l-1):se(y(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:O(j=ne(z,r,a,f,o,n,u,m,g=[],x=[],l),t);if(k===123)if(o===0)ce(z,r,j,j,g,t,l,u,x);else switch(v){case 100:case 109:case 115:ce(e,j,j,c&&O(ne(e,j,j,0,0,n,u,m,n,g=[],l),x),n,x,l,u,c?g:x);break;default:ce(z,j,j,j,[""],x,l,u,x);}}f=o=h=0,b=$=1,m=z="",l=s;break;case 58:l=1+A(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&K()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(A(z)-1)*$,$=1;break;case 64:if(N()===45)z+=V(L());v=N(),o=A(m=z+=re(P())),k++;break;case 45:if(p===45&&A(z)==2)b=0;}}return t}function ne(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,m=C(e,v+1,v=k(w=u[b])),x=e;d<p;++d)if(x=g(w>0?h[d]+" "+m:y(m,/&\f/g,h[d])))f[$++]=x;return H(e,r,a,t===0?n:i,f,o,l)}function te(e,r,a){return H(e,r,a,c,d(J()),C(e,2,-2),0)}function se(e,r,a,c){return H(e,r,a,t,C(e,0,c),C(e,c+1,-1),c)}function ue(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+y(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+y(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+y(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+y(c,"shrink","negative")+c;case 5292:return a+c+e+y(c,"basis","preferred-size")+c;case 6060:return a+"box-"+y(c,"-grow","")+a+c+e+y(c,"grow","positive")+c;case 4554:return a+y(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return y(y(y(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return y(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return y(y(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return y(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return y(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~j(c,"stretch")?ue(y(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,A(c)-3-(~j(c,"!important")&&10))){case 107:return y(c,":",":"+a)+c;case 101:return y(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function ie(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function fe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case n:e.value=e.props.join(",");}return A(a=ie(e.children,s))?e.return=e.value+"{"+a+"}":""}function oe(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function le(e){return function(r){if(!r.root)if(r=r.return)e(r);}}function ve(c,s,u,i){if(!c.return)switch(c.type){case t:c.return=ue(c.value,c.length);break;case p:return ie([I(y(c.value,"@","@"+a),c,"")],i);case n:if(c.length)return S(c.props,(function(n){switch(x(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([I(y(n,/:(read-\w+)/,":"+r+"$1"),c,"")],i);case"::placeholder":return ie([I(y(n,/:(plac\w+)/,":"+a+"input-$1"),c,""),I(y(n,/:(plac\w+)/,":"+r+"$1"),c,""),I(y(n,/:(plac\w+)/,e+"input-$1"),c,"")],i)}return ""}))}}
|
|
747
747
|
|
|
748
748
|
function memoize(fn) {
|
|
749
749
|
var cache = Object.create(null);
|
|
@@ -789,7 +789,7 @@ var toRules = function toRules(parsed, points) {
|
|
|
789
789
|
// fallthrough
|
|
790
790
|
|
|
791
791
|
default:
|
|
792
|
-
parsed[index] += d
|
|
792
|
+
parsed[index] += d(character);
|
|
793
793
|
}
|
|
794
794
|
} while (character = L());
|
|
795
795
|
|
|
@@ -911,7 +911,7 @@ var createCache = function createCache(options) {
|
|
|
911
911
|
|
|
912
912
|
{
|
|
913
913
|
var currentSheet;
|
|
914
|
-
var finalizingPlugins = [fe,
|
|
914
|
+
var finalizingPlugins = [fe, le(function (rule) {
|
|
915
915
|
currentSheet.insert(rule);
|
|
916
916
|
})];
|
|
917
917
|
var serializer = oe(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -1302,7 +1302,7 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
1302
1302
|
var current = serialized;
|
|
1303
1303
|
|
|
1304
1304
|
do {
|
|
1305
|
-
cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
1305
|
+
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
1306
1306
|
|
|
1307
1307
|
current = current.next;
|
|
1308
1308
|
} while (current !== undefined);
|
|
@@ -1450,7 +1450,7 @@ var _createEmotion = createEmotion({
|
|
|
1450
1450
|
}),
|
|
1451
1451
|
css = _createEmotion.css;
|
|
1452
1452
|
|
|
1453
|
-
function i(){return (i=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function s(n,t){return t||(t=n.slice(0)),n.raw=t,n}var a,l,u,c=css(a||(a=s(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function p(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i({},n,((o={})[e]=[].concat(n[e]||[],[{story:i({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function d(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f(a,f){var b=f.h,y=void 0===b?index.h:b,g=f.title,m=void 0===g?"Stencilbook":g,x=f.homepage,h=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,k=void 0===v?[]:v,w=stencilHooks_module.useMemo(function(){return a.map(d).reduce(p,{_:[]})},a),S=stencilHooks_module.useState(void 0),C=S[0],z=S[1],O=null==C?void 0:C.key,j=stencilHooks_module.useState("desktop"),T=j[0],_=j[1],B=stencilHooks_module.useState(!0),D=B[0],L=B[1],N=stencilHooks_module.useState(!1),q=N[0],A=N[1],M=function(){return y("div",{class:"dynamic-display-wrapper"},y("div",{class:"button-wrapper"},y("button",{class:"desktop"===T?"active":"",onClick:function(){return _("desktop")}},"Desktop"),y("button",{class:"tablet"===T?"active":"",onClick:function(){return _("tablet")}},"Tablet"),y("button",{class:"mobile"===T?"active":"",onClick:function(){return _("mobile")}},"Mobile")),y("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),y("hr",null),y("button",{class:q?"active":"",onClick:function(){return A(function(n){return !n})}},"Toggle Dark Background"),y("hr",null),y("button",{class:D?"active":"",onClick:function(){return L(function(n){return !n})}},"Toggle Sidebar"))},P="mobile"===T?"375px":"tablet"===T?"768px":"1124px",V=css(l||(l=s(["\n max-width: ",";\n margin-left: ",";\n "])),P,D?"250px":"0px"),X=css(u||(u=s(["\n display: none;\n "])));document.body.style.backgroundColor=q?"#232323":"#fafafa";var E=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return y(o,{story:i({},t)},y(n,null))}},null==t?void 0:t.story);return y(o,null)},F=function(){return y("div",{class:"story-book-outer-div"},y("div",{class:"story-div "+(D?"":X)},y("div",{class:"header",onClick:function(){z(void 0);}},y("h2",null,m)),y("ul",{class:"parentStoryList"},Object.keys(w).sort().map(function(n){return y("div",{class:"group-wrapper"},"_"!==n&&y("h4",{class:"group-header"},n),w[n].map(function(t){return y("li",{class:"parentStory"},y("details",{style:{marginBottom:"10px"}},y("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"/"+o,i=t.subs[o],s=i.storyName||lodash_startcase(o);return y("div",{class:"subStory "+(O===e?"selected":"")},y("a",{onClick:function(){return function(n,t,o,r){z({key:t,story:n,parent:o,label:r});}(i,e,t.story,s)}},s))})))}))}))),y(M,null),y("div",{class:"component "+V},!O&&h,O&&y("div",null,y("h3",null,C.label),y(E,{selected:C}))))};return {class:c,children:y(F,null),View:F,selected:C}}
|
|
1453
|
+
function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function s(n,t){return t||(t=n.slice(0)),n.raw=t,n}var a$1,l,u,c$1=css(a$1||(a$1=s(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function p$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function d$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f(a,f){var b=f.h,y=void 0===b?index.h:b,g=f.title,m=void 0===g?"Stencilbook":g,x=f.homepage,h=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,k=void 0===v?[]:v,w=stencilHooks_module.useMemo(function(){return a.map(d$1).reduce(p$1,{_:[]})},a),S=stencilHooks_module.useState(void 0),C=S[0],z=S[1],O=null==C?void 0:C.key,j=stencilHooks_module.useState("desktop"),T=j[0],_=j[1],B=stencilHooks_module.useState(!0),D=B[0],L=B[1],N=stencilHooks_module.useState(!1),q=N[0],A=N[1],M=function(){return y("div",{class:"dynamic-display-wrapper"},y("div",{class:"button-wrapper"},y("button",{class:"desktop"===T?"active":"",onClick:function(){return _("desktop")}},"Desktop"),y("button",{class:"tablet"===T?"active":"",onClick:function(){return _("tablet")}},"Tablet"),y("button",{class:"mobile"===T?"active":"",onClick:function(){return _("mobile")}},"Mobile")),y("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),y("hr",null),y("button",{class:q?"active":"",onClick:function(){return A(function(n){return !n})}},"Toggle Dark Background"),y("hr",null),y("button",{class:D?"active":"",onClick:function(){return L(function(n){return !n})}},"Toggle Sidebar"))},P="mobile"===T?"375px":"tablet"===T?"768px":"1124px",V=css(l||(l=s(["\n max-width: ",";\n margin-left: ",";\n "])),P,D?"250px":"0px"),X=css(u||(u=s(["\n display: none;\n "])));document.body.style.backgroundColor=q?"#232323":"#fafafa";var E=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return y(o,{story:i$1({},t)},y(n,null))}},null==t?void 0:t.story);return y(o,null)},F=function(){return y("div",{class:"story-book-outer-div"},y("div",{class:"story-div "+(D?"":X)},y("div",{class:"header",onClick:function(){z(void 0);}},y("h2",null,m)),y("ul",{class:"parentStoryList"},Object.keys(w).sort().map(function(n){return y("div",{class:"group-wrapper"},"_"!==n&&y("h4",{class:"group-header"},n),w[n].map(function(t){return y("li",{class:"parentStory"},y("details",{style:{marginBottom:"10px"}},y("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"/"+o,i=t.subs[o],s=i.storyName||lodash_startcase(o);return y("div",{class:"subStory "+(O===e?"selected":"")},y("a",{onClick:function(){return function(n,t,o,r){z({key:t,story:n,parent:o,label:r});}(i,e,t.story,s)}},s))})))}))}))),y(M,null),y("div",{class:"component "+V},!O&&h,O&&y("div",null,y("h3",null,C.label),y(E,{selected:C}))))};return {class:c$1,children:y(F,null),View:F,selected:C}}
|
|
1454
1454
|
|
|
1455
1455
|
const ShareButton_stories = {
|
|
1456
1456
|
title: "Components/Share Button",
|
|
@@ -1564,7 +1564,7 @@ const ShareButton = /*#__PURE__*/Object.freeze({
|
|
|
1564
1564
|
const ShareLink_stories = {
|
|
1565
1565
|
title: "Components/Share Link",
|
|
1566
1566
|
};
|
|
1567
|
-
const Default
|
|
1567
|
+
const Default = () => {
|
|
1568
1568
|
const props = {
|
|
1569
1569
|
shareString: "https://noah.example.com",
|
|
1570
1570
|
open: false,
|
|
@@ -1580,7 +1580,7 @@ const Tooltip = () => {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
return index.h(AutoColor.ShareLinkView, Object.assign({}, props));
|
|
1582
1582
|
};
|
|
1583
|
-
const Disabled
|
|
1583
|
+
const Disabled = () => {
|
|
1584
1584
|
const props = {
|
|
1585
1585
|
shareString: "https://noah.example.com",
|
|
1586
1586
|
disabled: true,
|
|
@@ -1596,16 +1596,16 @@ const FullStack = () => {
|
|
|
1596
1596
|
const ShareLink = /*#__PURE__*/Object.freeze({
|
|
1597
1597
|
__proto__: null,
|
|
1598
1598
|
'default': ShareLink_stories,
|
|
1599
|
-
Default: Default
|
|
1599
|
+
Default: Default,
|
|
1600
1600
|
Tooltip: Tooltip,
|
|
1601
|
-
Disabled: Disabled
|
|
1601
|
+
Disabled: Disabled,
|
|
1602
1602
|
FullStack: FullStack
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
1605
|
const BigStat_stories = {
|
|
1606
1606
|
title: "Components/Big Stat",
|
|
1607
1607
|
};
|
|
1608
|
-
const Default$
|
|
1608
|
+
const Default$1 = () => {
|
|
1609
1609
|
const props = { value: 990000, statvalue: "9.900,00", loading: false };
|
|
1610
1610
|
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1611
1611
|
};
|
|
@@ -1676,7 +1676,7 @@ const InvalidStatValue = () => {
|
|
|
1676
1676
|
const BigStat = /*#__PURE__*/Object.freeze({
|
|
1677
1677
|
__proto__: null,
|
|
1678
1678
|
'default': BigStat_stories,
|
|
1679
|
-
Default: Default$
|
|
1679
|
+
Default: Default$1,
|
|
1680
1680
|
LeftAlign: LeftAlign,
|
|
1681
1681
|
RightAlign: RightAlign,
|
|
1682
1682
|
FlexReverse: FlexReverse,
|
|
@@ -1719,7 +1719,7 @@ const Empty = () => {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
return index.h(useLeaderboard.LeaderboardView, Object.assign({}, props));
|
|
1721
1721
|
};
|
|
1722
|
-
const Loading
|
|
1722
|
+
const Loading = () => {
|
|
1723
1723
|
const props = {
|
|
1724
1724
|
states: {
|
|
1725
1725
|
loading: true,
|
|
@@ -1991,7 +1991,7 @@ const Leaderboard = /*#__PURE__*/Object.freeze({
|
|
|
1991
1991
|
__proto__: null,
|
|
1992
1992
|
'default': Leaderboard_stories,
|
|
1993
1993
|
Empty: Empty,
|
|
1994
|
-
Loading: Loading
|
|
1994
|
+
Loading: Loading,
|
|
1995
1995
|
One: One,
|
|
1996
1996
|
Five: Five,
|
|
1997
1997
|
FiveWithRank: FiveWithRank,
|
|
@@ -2086,36 +2086,36 @@ const routes = `
|
|
|
2086
2086
|
`;
|
|
2087
2087
|
const TemplateNavigation = createHookStory(() => {
|
|
2088
2088
|
return (index.h("div", null,
|
|
2089
|
-
index.h("button", { onClick: () => index_module.
|
|
2090
|
-
index.h("button", { onClick: () => index_module.
|
|
2091
|
-
index.h("button", { onClick: () => index_module.
|
|
2092
|
-
index.h("button", { onClick: () => index_module.
|
|
2093
|
-
index.h("button", { onClick: () => index_module.
|
|
2094
|
-
index.h("button", { onClick: () => index_module.
|
|
2095
|
-
index.h("button", { onClick: () => index_module.
|
|
2096
|
-
index.h("button", { onClick: () => index_module.
|
|
2097
|
-
index.h("button", { onClick: () => index_module.
|
|
2089
|
+
index.h("button", { onClick: () => index_module.pn.push("/") }, "/"),
|
|
2090
|
+
index.h("button", { onClick: () => index_module.pn.push("/foo") }, "/foo"),
|
|
2091
|
+
index.h("button", { onClick: () => index_module.pn.push("/bar") }, "/bar"),
|
|
2092
|
+
index.h("button", { onClick: () => index_module.pn.push("/baz/bang") }, "/baz/bang"),
|
|
2093
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer") }, "/refer"),
|
|
2094
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer/1") }, "/refer/1"),
|
|
2095
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer/2") }, "/refer/2"),
|
|
2096
|
+
index.h("button", { onClick: () => index_module.pn.back() }, "Back"),
|
|
2097
|
+
index.h("button", { onClick: () => index_module.pn.forward() }, "Forward"),
|
|
2098
2098
|
index.h("hr", null),
|
|
2099
2099
|
index.h("sqm-router", { innerHTML: templates })));
|
|
2100
2100
|
});
|
|
2101
2101
|
const RouteNavigation = createHookStory(() => {
|
|
2102
2102
|
return (index.h("div", null,
|
|
2103
|
-
index.h("button", { onClick: () => index_module.
|
|
2104
|
-
index.h("button", { onClick: () => index_module.
|
|
2105
|
-
index.h("button", { onClick: () => index_module.
|
|
2106
|
-
index.h("button", { onClick: () => index_module.
|
|
2107
|
-
index.h("button", { onClick: () => index_module.
|
|
2108
|
-
index.h("button", { onClick: () => index_module.
|
|
2109
|
-
index.h("button", { onClick: () => index_module.
|
|
2110
|
-
index.h("button", { onClick: () => index_module.
|
|
2111
|
-
index.h("button", { onClick: () => index_module.
|
|
2103
|
+
index.h("button", { onClick: () => index_module.pn.push("/") }, "/"),
|
|
2104
|
+
index.h("button", { onClick: () => index_module.pn.push("/foo") }, "/foo"),
|
|
2105
|
+
index.h("button", { onClick: () => index_module.pn.push("/bar") }, "/bar"),
|
|
2106
|
+
index.h("button", { onClick: () => index_module.pn.push("/baz/bang") }, "/baz/bang"),
|
|
2107
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer") }, "/refer"),
|
|
2108
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer/1") }, "/refer/1"),
|
|
2109
|
+
index.h("button", { onClick: () => index_module.pn.push("/refer/2") }, "/refer/2"),
|
|
2110
|
+
index.h("button", { onClick: () => index_module.pn.back() }, "Back"),
|
|
2111
|
+
index.h("button", { onClick: () => index_module.pn.forward() }, "Forward"),
|
|
2112
2112
|
index.h("hr", null),
|
|
2113
2113
|
index.h("sqm-router", { innerHTML: routes })));
|
|
2114
2114
|
});
|
|
2115
2115
|
const Styling = createHookStory(() => {
|
|
2116
2116
|
return (index.h("div", null,
|
|
2117
|
-
index.h("button", { onClick: () => index_module.
|
|
2118
|
-
index.h("button", { onClick: () => index_module.
|
|
2117
|
+
index.h("button", { onClick: () => index_module.pn.push("/") }, "/"),
|
|
2118
|
+
index.h("button", { onClick: () => index_module.pn.push("/foo") }, "/foo"),
|
|
2119
2119
|
index.h("hr", null),
|
|
2120
2120
|
index.h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
2121
2121
|
index.h("sqm-router", { innerHTML: `<template path="/">
|
|
@@ -2124,12 +2124,12 @@ const Styling = createHookStory(() => {
|
|
|
2124
2124
|
<div>Column 2 </div>
|
|
2125
2125
|
</template>` }))));
|
|
2126
2126
|
});
|
|
2127
|
-
function useTemplate
|
|
2127
|
+
function useTemplate(templateString) {
|
|
2128
2128
|
const [editedTemplate, setEditedTemplate] = stencilHooks_module.useState(templateString);
|
|
2129
2129
|
const [previewTemplate, setPreviewTemplate] = stencilHooks_module.useState(templateString);
|
|
2130
2130
|
function setPath(e) {
|
|
2131
2131
|
//@ts-ignore
|
|
2132
|
-
index_module.
|
|
2132
|
+
index_module.pn.push(e.target.value);
|
|
2133
2133
|
}
|
|
2134
2134
|
return {
|
|
2135
2135
|
states: { previewTemplate, editedTemplate },
|
|
@@ -2143,7 +2143,7 @@ const defaultRouter = `
|
|
|
2143
2143
|
</template>
|
|
2144
2144
|
</sqm-router>
|
|
2145
2145
|
`;
|
|
2146
|
-
function TemplateView
|
|
2146
|
+
function TemplateView(props) {
|
|
2147
2147
|
const { states, callbacks } = props;
|
|
2148
2148
|
return [
|
|
2149
2149
|
index.h("textarea", { style: { width: "100%", height: "300px" }, onChange: (e) => callbacks.setEditedTemplate(e.target.value) }, states.editedTemplate),
|
|
@@ -2155,8 +2155,8 @@ function TemplateView$1(props) {
|
|
|
2155
2155
|
];
|
|
2156
2156
|
}
|
|
2157
2157
|
const RouterPlayground = createHookStory(() => {
|
|
2158
|
-
const { states, callbacks } = useTemplate
|
|
2159
|
-
return index.h(TemplateView
|
|
2158
|
+
const { states, callbacks } = useTemplate(defaultRouter);
|
|
2159
|
+
return index.h(TemplateView, { states: states, callbacks: callbacks });
|
|
2160
2160
|
});
|
|
2161
2161
|
|
|
2162
2162
|
const Router = /*#__PURE__*/Object.freeze({
|
|
@@ -2185,7 +2185,7 @@ const LeaderboardRank = /*#__PURE__*/Object.freeze({
|
|
|
2185
2185
|
First: First
|
|
2186
2186
|
});
|
|
2187
2187
|
|
|
2188
|
-
function setupGraphQL
|
|
2188
|
+
function setupGraphQL() {
|
|
2189
2189
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
2190
2190
|
const accountId = id;
|
|
2191
2191
|
const programId = "a-referral-program";
|
|
@@ -2218,7 +2218,7 @@ function setupLoggedOut() {
|
|
|
2218
2218
|
const PortalFrame_stories = {
|
|
2219
2219
|
title: "Components/Portal Frame",
|
|
2220
2220
|
};
|
|
2221
|
-
const defaultProps
|
|
2221
|
+
const defaultProps = {
|
|
2222
2222
|
data: {
|
|
2223
2223
|
footer: index.h("span", null, "example@example.com"),
|
|
2224
2224
|
header: (index.h("div", { slot: "header", style: { display: "flex", flexDirection: "column" } },
|
|
@@ -2235,7 +2235,7 @@ const defaultProps$9 = {
|
|
|
2235
2235
|
};
|
|
2236
2236
|
const FrameWithMenu = () => {
|
|
2237
2237
|
const props = {
|
|
2238
|
-
...defaultProps
|
|
2238
|
+
...defaultProps,
|
|
2239
2239
|
};
|
|
2240
2240
|
return (index.h(AutoColor.PortalFrameView, Object.assign({}, props),
|
|
2241
2241
|
index.h("sqm-navigation-menu", { "menu-label": "Menu" },
|
|
@@ -2246,13 +2246,13 @@ const FrameWithMenu = () => {
|
|
|
2246
2246
|
};
|
|
2247
2247
|
const FrameWithoutMenu = () => {
|
|
2248
2248
|
const props = {
|
|
2249
|
-
...defaultProps
|
|
2249
|
+
...defaultProps,
|
|
2250
2250
|
};
|
|
2251
2251
|
return index.h(AutoColor.PortalFrameView, Object.assign({}, props));
|
|
2252
2252
|
};
|
|
2253
2253
|
const FullStackFrame = () => {
|
|
2254
2254
|
var _a;
|
|
2255
|
-
setupGraphQL
|
|
2255
|
+
setupGraphQL();
|
|
2256
2256
|
return (index.h("div", null,
|
|
2257
2257
|
index.h("sqm-portal-frame", null,
|
|
2258
2258
|
index.h("div", { slot: "header", style: { display: "flex", flexDirection: "column" } },
|
|
@@ -2272,8 +2272,8 @@ const FullStackFrame = () => {
|
|
|
2272
2272
|
"Current path:",
|
|
2273
2273
|
" ",
|
|
2274
2274
|
index.h("code", null,
|
|
2275
|
-
index.h("strong", null, (_a = index_module.
|
|
2276
|
-
index.h("button", { onClick: index_module.
|
|
2275
|
+
index.h("strong", null, (_a = index_module.hn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2276
|
+
index.h("button", { onClick: index_module.pn.back }, "Go Back")));
|
|
2277
2277
|
};
|
|
2278
2278
|
const FullStackFrameLoggedOut = () => {
|
|
2279
2279
|
var _a;
|
|
@@ -2297,8 +2297,8 @@ const FullStackFrameLoggedOut = () => {
|
|
|
2297
2297
|
"Current path:",
|
|
2298
2298
|
" ",
|
|
2299
2299
|
index.h("code", null,
|
|
2300
|
-
index.h("strong", null, (_a = index_module.
|
|
2301
|
-
index.h("button", { onClick: index_module.
|
|
2300
|
+
index.h("strong", null, (_a = index_module.hn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2301
|
+
index.h("button", { onClick: index_module.pn.back }, "Go Back")));
|
|
2302
2302
|
};
|
|
2303
2303
|
|
|
2304
2304
|
const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
@@ -2313,7 +2313,7 @@ const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
|
2313
2313
|
const EditProfileForm_stories = {
|
|
2314
2314
|
title: "Components/Edit Profile Form",
|
|
2315
2315
|
};
|
|
2316
|
-
const defaultProps$
|
|
2316
|
+
const defaultProps$1 = {
|
|
2317
2317
|
states: {
|
|
2318
2318
|
loading: false,
|
|
2319
2319
|
submitDisabled: false,
|
|
@@ -2356,13 +2356,13 @@ const defaultProps$8 = {
|
|
|
2356
2356
|
},
|
|
2357
2357
|
};
|
|
2358
2358
|
const EditProfileFormDisabled = () => {
|
|
2359
|
-
const props = defaultProps$
|
|
2359
|
+
const props = defaultProps$1;
|
|
2360
2360
|
return index.h(AutoColor.EditProfileView, Object.assign({}, props));
|
|
2361
2361
|
};
|
|
2362
2362
|
const EditProfileFormEnabled = () => {
|
|
2363
2363
|
const props = {
|
|
2364
|
-
...defaultProps$
|
|
2365
|
-
states: { ...defaultProps$
|
|
2364
|
+
...defaultProps$1,
|
|
2365
|
+
states: { ...defaultProps$1.states, showEdit: true },
|
|
2366
2366
|
};
|
|
2367
2367
|
return index.h(AutoColor.EditProfileView, Object.assign({}, props));
|
|
2368
2368
|
};
|
|
@@ -2370,7 +2370,7 @@ const FullStackFrameWithMenu = () => {
|
|
|
2370
2370
|
return (index.h("sqm-edit-profile", { editprofileheader: "Edit Profile", editprofiletext: "Update your profile.", firstnametext: "Bill", lastnametext: "Bob", canceltext: "Cancel", updatetext: "Update", currentregiontext: "Current Region", showregion: true }));
|
|
2371
2371
|
};
|
|
2372
2372
|
|
|
2373
|
-
const EditProfile
|
|
2373
|
+
const EditProfile = /*#__PURE__*/Object.freeze({
|
|
2374
2374
|
__proto__: null,
|
|
2375
2375
|
'default': EditProfileForm_stories,
|
|
2376
2376
|
EditProfileFormDisabled: EditProfileFormDisabled,
|
|
@@ -2381,7 +2381,7 @@ const EditProfile$2 = /*#__PURE__*/Object.freeze({
|
|
|
2381
2381
|
const UseShareLink_stories = {
|
|
2382
2382
|
title: "Hooks / useShareLink",
|
|
2383
2383
|
};
|
|
2384
|
-
function setupGraphQL$
|
|
2384
|
+
function setupGraphQL$1() {
|
|
2385
2385
|
const id = "testestest";
|
|
2386
2386
|
const accountId = id;
|
|
2387
2387
|
const programId = "sam-partner-test-2";
|
|
@@ -2392,19 +2392,19 @@ function setupGraphQL$8() {
|
|
|
2392
2392
|
programId,
|
|
2393
2393
|
};
|
|
2394
2394
|
stencilHooks_module.useEffect(() => {
|
|
2395
|
-
index_module.
|
|
2395
|
+
index_module.Y({
|
|
2396
2396
|
accountId,
|
|
2397
2397
|
id,
|
|
2398
2398
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
2399
2399
|
});
|
|
2400
2400
|
return () => {
|
|
2401
2401
|
window.widgetIdent = undefined;
|
|
2402
|
-
index_module.
|
|
2402
|
+
index_module.Y(undefined);
|
|
2403
2403
|
};
|
|
2404
2404
|
}, []);
|
|
2405
2405
|
}
|
|
2406
|
-
const BareBonesView
|
|
2407
|
-
setupGraphQL$
|
|
2406
|
+
const BareBonesView = createHookStory(() => {
|
|
2407
|
+
setupGraphQL$1();
|
|
2408
2408
|
const res = AutoColor.useShareLink({
|
|
2409
2409
|
programId: "sam-partner-test-2",
|
|
2410
2410
|
tooltiplifespan: 0,
|
|
@@ -2415,8 +2415,8 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
2415
2415
|
" ",
|
|
2416
2416
|
index.h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.shareString)));
|
|
2417
2417
|
});
|
|
2418
|
-
const RegularView
|
|
2419
|
-
setupGraphQL$
|
|
2418
|
+
const RegularView = createHookStory(() => {
|
|
2419
|
+
setupGraphQL$1();
|
|
2420
2420
|
return (index.h(AutoColor.ShareLinkView, Object.assign({}, AutoColor.useShareLink({
|
|
2421
2421
|
programId: "sam-partner-test-2",
|
|
2422
2422
|
tooltiptext: "Copied to clipboard",
|
|
@@ -2424,7 +2424,7 @@ const RegularView$2 = createHookStory(() => {
|
|
|
2424
2424
|
}))));
|
|
2425
2425
|
});
|
|
2426
2426
|
const FastTooltip = createHookStory(() => {
|
|
2427
|
-
setupGraphQL$
|
|
2427
|
+
setupGraphQL$1();
|
|
2428
2428
|
return (index.h(AutoColor.ShareLinkView, Object.assign({}, AutoColor.useShareLink({
|
|
2429
2429
|
programId: "sam-partner-test-2",
|
|
2430
2430
|
tooltiptext: "⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",
|
|
@@ -2435,15 +2435,15 @@ const FastTooltip = createHookStory(() => {
|
|
|
2435
2435
|
const UseShareLink = /*#__PURE__*/Object.freeze({
|
|
2436
2436
|
__proto__: null,
|
|
2437
2437
|
'default': UseShareLink_stories,
|
|
2438
|
-
BareBonesView: BareBonesView
|
|
2439
|
-
RegularView: RegularView
|
|
2438
|
+
BareBonesView: BareBonesView,
|
|
2439
|
+
RegularView: RegularView,
|
|
2440
2440
|
FastTooltip: FastTooltip
|
|
2441
2441
|
});
|
|
2442
2442
|
|
|
2443
2443
|
const UseShareButton_stories = {
|
|
2444
2444
|
title: "Hooks / useShareButton",
|
|
2445
2445
|
};
|
|
2446
|
-
function setupGraphQL$
|
|
2446
|
+
function setupGraphQL$2() {
|
|
2447
2447
|
const id = "testestest";
|
|
2448
2448
|
const accountId = id;
|
|
2449
2449
|
const programId = "sam-partner-test-2";
|
|
@@ -2454,19 +2454,19 @@ function setupGraphQL$7() {
|
|
|
2454
2454
|
programId,
|
|
2455
2455
|
};
|
|
2456
2456
|
stencilHooks_module.useEffect(() => {
|
|
2457
|
-
index_module.
|
|
2457
|
+
index_module.Y({
|
|
2458
2458
|
accountId,
|
|
2459
2459
|
id,
|
|
2460
2460
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
2461
2461
|
});
|
|
2462
2462
|
return () => {
|
|
2463
2463
|
window.widgetIdent = undefined;
|
|
2464
|
-
index_module.
|
|
2464
|
+
index_module.Y(undefined);
|
|
2465
2465
|
};
|
|
2466
2466
|
}, []);
|
|
2467
2467
|
}
|
|
2468
|
-
const BareBonesView = createHookStory(() => {
|
|
2469
|
-
setupGraphQL$
|
|
2468
|
+
const BareBonesView$1 = createHookStory(() => {
|
|
2469
|
+
setupGraphQL$2();
|
|
2470
2470
|
const programId = "sam-partner-test-2";
|
|
2471
2471
|
const res = [
|
|
2472
2472
|
AutoColor.useShareButton({ programId, medium: "facebook" }),
|
|
@@ -2482,7 +2482,7 @@ const BareBonesView = createHookStory(() => {
|
|
|
2482
2482
|
")"))))));
|
|
2483
2483
|
});
|
|
2484
2484
|
const RegularView$1 = createHookStory(() => {
|
|
2485
|
-
setupGraphQL$
|
|
2485
|
+
setupGraphQL$2();
|
|
2486
2486
|
const programId = "sam-partner-test-2";
|
|
2487
2487
|
const mediums = [
|
|
2488
2488
|
"facebook",
|
|
@@ -2498,14 +2498,14 @@ const RegularView$1 = createHookStory(() => {
|
|
|
2498
2498
|
const UseShareButton = /*#__PURE__*/Object.freeze({
|
|
2499
2499
|
__proto__: null,
|
|
2500
2500
|
'default': UseShareButton_stories,
|
|
2501
|
-
BareBonesView: BareBonesView,
|
|
2501
|
+
BareBonesView: BareBonesView$1,
|
|
2502
2502
|
RegularView: RegularView$1
|
|
2503
2503
|
});
|
|
2504
2504
|
|
|
2505
2505
|
const UseBigStat_stories = {
|
|
2506
2506
|
title: "Hooks / useBigStat",
|
|
2507
2507
|
};
|
|
2508
|
-
function setupGraphQL$
|
|
2508
|
+
function setupGraphQL$3() {
|
|
2509
2509
|
const id = "nynellie";
|
|
2510
2510
|
const accountId = id;
|
|
2511
2511
|
const programId = "ny-post-referrals";
|
|
@@ -2516,20 +2516,20 @@ function setupGraphQL$6() {
|
|
|
2516
2516
|
programId,
|
|
2517
2517
|
};
|
|
2518
2518
|
stencilHooks_module.useEffect(() => {
|
|
2519
|
-
index_module.
|
|
2519
|
+
index_module.Y({
|
|
2520
2520
|
accountId,
|
|
2521
2521
|
id,
|
|
2522
2522
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI",
|
|
2523
2523
|
});
|
|
2524
2524
|
return () => {
|
|
2525
2525
|
window.widgetIdent = undefined;
|
|
2526
|
-
index_module.
|
|
2526
|
+
index_module.Y(undefined);
|
|
2527
2527
|
};
|
|
2528
2528
|
}, []);
|
|
2529
2529
|
}
|
|
2530
|
-
const View
|
|
2530
|
+
const View = (statType, format) => {
|
|
2531
2531
|
console.log(`View("${statType}") - CALLED`);
|
|
2532
|
-
setupGraphQL$
|
|
2532
|
+
setupGraphQL$3();
|
|
2533
2533
|
const { props, label } = useDemoBigStat.useBigStat({
|
|
2534
2534
|
statType,
|
|
2535
2535
|
render: () => { },
|
|
@@ -2563,44 +2563,44 @@ const DemoView = () => {
|
|
|
2563
2563
|
index.h(sqmBigStatView.BigStatView, Object.assign({}, props), label))));
|
|
2564
2564
|
};
|
|
2565
2565
|
const Demo = createHookStory(DemoView);
|
|
2566
|
-
const ReferralsCount = createHookStory(() => View
|
|
2566
|
+
const ReferralsCount = createHookStory(() => View("/referralsCount", "/(referralsCount)/:status?"));
|
|
2567
2567
|
const referralsConvertedCount = createHookStory(() => {
|
|
2568
|
-
return View
|
|
2568
|
+
return View("/referralsCount/converted", "/(referralsCount)/:status?");
|
|
2569
2569
|
});
|
|
2570
2570
|
const referralsStartedCount = createHookStory(() => {
|
|
2571
|
-
return View
|
|
2571
|
+
return View("/referralsCount/started", "/(referralsCount)/:status?");
|
|
2572
2572
|
});
|
|
2573
|
-
const ReferralsMonth = createHookStory(() => View
|
|
2574
|
-
const ReferralsWeek = createHookStory(() => View
|
|
2575
|
-
const RewardsCount = createHookStory(() => View
|
|
2576
|
-
const GlobalRewardsCount = createHookStory(() => View
|
|
2577
|
-
const GlobalRewardsCountFiltered = createHookStory(() => View
|
|
2578
|
-
const GlobalRewardsCountPctDiscount = createHookStory(() => View
|
|
2579
|
-
const GlobalRewardsCountPctDiscountPending = createHookStory(() => View
|
|
2580
|
-
const RewardsCountByUnit = createHookStory(() => View
|
|
2581
|
-
const GlobalRewardsCountByUnit = createHookStory(() => View
|
|
2582
|
-
const GlobalPendingRewardsCount = createHookStory(() => View
|
|
2583
|
-
const RewardsAvailableCount = createHookStory(() => View
|
|
2584
|
-
const GlobalRewardsCountByIntegration = createHookStory(() => View
|
|
2585
|
-
const GlobalRewardsCountByPendingIntegration = createHookStory(() => View
|
|
2586
|
-
const RewardsMonth = createHookStory(() => View
|
|
2587
|
-
const RewardsWeek = createHookStory(() => View
|
|
2588
|
-
const RewardsAssigned = createHookStory(() => View
|
|
2589
|
-
const RewardsAssignedCashUSD = createHookStory(() => View
|
|
2590
|
-
const RewardsRedeemed = createHookStory(() => View
|
|
2591
|
-
const RewardsAvailable = createHookStory(() => View
|
|
2592
|
-
const RewardsAvailableWithSlash = createHookStory(() => View
|
|
2593
|
-
const RewardBalance = createHookStory(() => View
|
|
2573
|
+
const ReferralsMonth = createHookStory(() => View("/referralsMonth", "/(referralsMonth)"));
|
|
2574
|
+
const ReferralsWeek = createHookStory(() => View("/referralsWeek", "/(referralsWeek)"));
|
|
2575
|
+
const RewardsCount = createHookStory(() => View("/rewardsCount", "/(rewardsCount)/:global?"));
|
|
2576
|
+
const GlobalRewardsCount = createHookStory(() => View("/rewardsCount/global", "/(rewardsCount)/:global"));
|
|
2577
|
+
const GlobalRewardsCountFiltered = createHookStory(() => View("/rewardsCountFiltered/global", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2578
|
+
const GlobalRewardsCountPctDiscount = createHookStory(() => View("/rewardsCountFiltered/PCT_DISCOUNT/global", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2579
|
+
const GlobalRewardsCountPctDiscountPending = createHookStory(() => View("/rewardsCountFiltered/PCT_DISCOUNT/PENDING/global", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2580
|
+
const RewardsCountByUnit = createHookStory(() => View("/rewardsCountFiltered/CREDIT/COFFEE", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2581
|
+
const GlobalRewardsCountByUnit = createHookStory(() => View("/rewardsCountFiltered/CREDIT/COFFEE/global", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2582
|
+
const GlobalPendingRewardsCount = createHookStory(() => View("/rewardsCountFiltered/CREDIT/COFFEE/PENDING/global", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2583
|
+
const RewardsAvailableCount = createHookStory(() => View("/rewardsCountFiltered/AVAILABLE", "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2584
|
+
const GlobalRewardsCountByIntegration = createHookStory(() => View("/integrationRewardsCountFiltered/AVAILABLE/global", "/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2585
|
+
const GlobalRewardsCountByPendingIntegration = createHookStory(() => View("/integrationRewardsCountFiltered/PENDING/global", "/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"));
|
|
2586
|
+
const RewardsMonth = createHookStory(() => View("/rewardsMonth", "/(rewardsMonth)/:global?"));
|
|
2587
|
+
const RewardsWeek = createHookStory(() => View("/rewardsWeek", "/(rewardsWeek)/:global?"));
|
|
2588
|
+
const RewardsAssigned = createHookStory(() => View("/rewardsAssigned/CREDIT/COFFEE", "/(rewardsAssigned)/:statType/:unit/:global?"));
|
|
2589
|
+
const RewardsAssignedCashUSD = createHookStory(() => View("/rewardsAssigned/CREDIT/CASH%2FUSD", "/(rewardsAssigned)/:statType/:unit/:global?"));
|
|
2590
|
+
const RewardsRedeemed = createHookStory(() => View("/rewardsRedeemed/CREDIT/COFFEE", "/(rewardsRedeemed)/:statType/:unit/:global?"));
|
|
2591
|
+
const RewardsAvailable = createHookStory(() => View("/rewardsAvailable/CREDIT/COFFEE", "/(rewardsAvailable)/:statType/:unit/:global?"));
|
|
2592
|
+
const RewardsAvailableWithSlash = createHookStory(() => View("/rewardsAvailable/CREDIT/CASH%2FUSD", "/(rewardsAvailable)/:statType/:unit/:global?"));
|
|
2593
|
+
const RewardBalance = createHookStory(() => View("/rewardBalance/CREDIT/COFFEE/prettyValue", "/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"));
|
|
2594
2594
|
const RewardBalanceCashUSD = createHookStory(() => {
|
|
2595
2595
|
const unit = encodeURIComponent("CASH/USD");
|
|
2596
|
-
return View
|
|
2596
|
+
return View(`/rewardBalance/CREDIT/${unit}/prettyValue`, "/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?");
|
|
2597
2597
|
});
|
|
2598
2598
|
const ProgramGoals = createHookStory(() => {
|
|
2599
2599
|
const dummy = encodeURIComponent("Paid-Member-Goal/referrals");
|
|
2600
|
-
return View
|
|
2600
|
+
return View(`/programGoals/count/${dummy}`, "/(programGoals)/:metricType/:goalId");
|
|
2601
2601
|
});
|
|
2602
2602
|
const CustomField = createHookStory(() => {
|
|
2603
|
-
return View
|
|
2603
|
+
return View(`/customFields/thingCount`, "/(customFields)/:customField");
|
|
2604
2604
|
});
|
|
2605
2605
|
|
|
2606
2606
|
const UseBigStat = /*#__PURE__*/Object.freeze({
|
|
@@ -2636,7 +2636,7 @@ const UseBigStat = /*#__PURE__*/Object.freeze({
|
|
|
2636
2636
|
CustomField: CustomField
|
|
2637
2637
|
});
|
|
2638
2638
|
|
|
2639
|
-
function setupGraphQL$
|
|
2639
|
+
function setupGraphQL$4() {
|
|
2640
2640
|
const id = "worried-camera@uexwltgh.mailosaur.net";
|
|
2641
2641
|
const accountId = id;
|
|
2642
2642
|
const programId = "a-referral-program";
|
|
@@ -2647,22 +2647,22 @@ function setupGraphQL$5() {
|
|
|
2647
2647
|
programId,
|
|
2648
2648
|
};
|
|
2649
2649
|
stencilHooks_module.useEffect(() => {
|
|
2650
|
-
index_module.
|
|
2650
|
+
index_module.Y({
|
|
2651
2651
|
accountId,
|
|
2652
2652
|
id,
|
|
2653
2653
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0",
|
|
2654
2654
|
});
|
|
2655
2655
|
return () => {
|
|
2656
2656
|
window.widgetIdent = undefined;
|
|
2657
|
-
index_module.
|
|
2657
|
+
index_module.Y(undefined);
|
|
2658
2658
|
};
|
|
2659
2659
|
}, []);
|
|
2660
2660
|
}
|
|
2661
2661
|
const UseEditProfile_stories = {
|
|
2662
2662
|
title: "Hooks / useEditProfile",
|
|
2663
2663
|
};
|
|
2664
|
-
const RegularView = createHookStory(() => {
|
|
2665
|
-
setupGraphQL$
|
|
2664
|
+
const RegularView$2 = createHookStory(() => {
|
|
2665
|
+
setupGraphQL$4();
|
|
2666
2666
|
return (index.h("sqm-edit-profile", Object.assign({}, {
|
|
2667
2667
|
editprofileheader: "HEADER",
|
|
2668
2668
|
editprofiletext: "TEXT",
|
|
@@ -2677,13 +2677,13 @@ const RegularView = createHookStory(() => {
|
|
|
2677
2677
|
const UseEditProfile = /*#__PURE__*/Object.freeze({
|
|
2678
2678
|
__proto__: null,
|
|
2679
2679
|
'default': UseEditProfile_stories,
|
|
2680
|
-
RegularView: RegularView
|
|
2680
|
+
RegularView: RegularView$2
|
|
2681
2681
|
});
|
|
2682
2682
|
|
|
2683
2683
|
const UseLeaderboard_stories = {
|
|
2684
2684
|
title: "Hooks / useLeaderboard",
|
|
2685
2685
|
};
|
|
2686
|
-
function setupGraphQL$
|
|
2686
|
+
function setupGraphQL$5() {
|
|
2687
2687
|
const id = "testestest";
|
|
2688
2688
|
const accountId = id;
|
|
2689
2689
|
const programId = "sam-partner-test-2";
|
|
@@ -2694,18 +2694,18 @@ function setupGraphQL$4() {
|
|
|
2694
2694
|
programId,
|
|
2695
2695
|
};
|
|
2696
2696
|
stencilHooks_module.useEffect(() => {
|
|
2697
|
-
index_module.
|
|
2697
|
+
index_module.Y({
|
|
2698
2698
|
accountId,
|
|
2699
2699
|
id,
|
|
2700
2700
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
2701
2701
|
});
|
|
2702
2702
|
return () => {
|
|
2703
2703
|
window.widgetIdent = undefined;
|
|
2704
|
-
index_module.
|
|
2704
|
+
index_module.Y(undefined);
|
|
2705
2705
|
};
|
|
2706
2706
|
}, []);
|
|
2707
2707
|
}
|
|
2708
|
-
const View = (overrideProps) => {
|
|
2708
|
+
const View$1 = (overrideProps) => {
|
|
2709
2709
|
const props = {
|
|
2710
2710
|
leaderboardType: "topConvertedReferrers",
|
|
2711
2711
|
showRank: true,
|
|
@@ -2719,7 +2719,7 @@ const View = (overrideProps) => {
|
|
|
2719
2719
|
};
|
|
2720
2720
|
const { leaderboardType, rankType } = props;
|
|
2721
2721
|
console.log(`View("${leaderboardType}") - CALLED`);
|
|
2722
|
-
setupGraphQL$
|
|
2722
|
+
setupGraphQL$5();
|
|
2723
2723
|
const { states, data, elements } = useLeaderboard.useLeaderboard(props);
|
|
2724
2724
|
return (index.h("div", { style: { marginBottom: "20px" } },
|
|
2725
2725
|
index.h("sqm-divided-layout", { direction: "row" },
|
|
@@ -2733,20 +2733,20 @@ const View = (overrideProps) => {
|
|
|
2733
2733
|
index.h("hr", null)));
|
|
2734
2734
|
};
|
|
2735
2735
|
const TopConvertedReferrers = createHookStory(() => {
|
|
2736
|
-
return [View(), View({ rankType: "rank" }), View({ rankType: "denseRank" })];
|
|
2736
|
+
return [View$1(), View$1({ rankType: "rank" }), View$1({ rankType: "denseRank" })];
|
|
2737
2737
|
});
|
|
2738
2738
|
const TopStartedReferrers = createHookStory(() => {
|
|
2739
2739
|
return [
|
|
2740
|
-
View({
|
|
2740
|
+
View$1({
|
|
2741
2741
|
leaderboardType: "topStartedReferrers",
|
|
2742
2742
|
statsheading: "New Referrals",
|
|
2743
2743
|
}),
|
|
2744
|
-
View({
|
|
2744
|
+
View$1({
|
|
2745
2745
|
leaderboardType: "topStartedReferrers",
|
|
2746
2746
|
rankType: "rank",
|
|
2747
2747
|
statsheading: "New Referrals",
|
|
2748
2748
|
}),
|
|
2749
|
-
View({
|
|
2749
|
+
View$1({
|
|
2750
2750
|
leaderboardType: "topStartedReferrers",
|
|
2751
2751
|
rankType: "denseRank",
|
|
2752
2752
|
statsheading: "New Referrals",
|
|
@@ -2810,7 +2810,7 @@ const EXCHANGE = index_module.dist.gql `
|
|
|
2810
2810
|
const UseRewardExchangeList_stories = {
|
|
2811
2811
|
title: "Hooks / useRewardExchange",
|
|
2812
2812
|
};
|
|
2813
|
-
function setupGraphQL$
|
|
2813
|
+
function setupGraphQL$6() {
|
|
2814
2814
|
const id = "testestest";
|
|
2815
2815
|
const accountId = id;
|
|
2816
2816
|
const programId = "sam-partner-test-2";
|
|
@@ -2821,23 +2821,23 @@ function setupGraphQL$3() {
|
|
|
2821
2821
|
programId,
|
|
2822
2822
|
};
|
|
2823
2823
|
stencilHooks_module.useEffect(() => {
|
|
2824
|
-
index_module.
|
|
2824
|
+
index_module.Y({
|
|
2825
2825
|
accountId,
|
|
2826
2826
|
id,
|
|
2827
2827
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
2828
2828
|
});
|
|
2829
2829
|
return () => {
|
|
2830
2830
|
window.widgetIdent = undefined;
|
|
2831
|
-
index_module.
|
|
2831
|
+
index_module.Y(undefined);
|
|
2832
2832
|
};
|
|
2833
2833
|
}, []);
|
|
2834
2834
|
return { id, accountId };
|
|
2835
2835
|
}
|
|
2836
2836
|
function useExchangeButton() {
|
|
2837
|
-
const { id, accountId } = setupGraphQL$
|
|
2837
|
+
const { id, accountId } = setupGraphQL$6();
|
|
2838
2838
|
const [points, setPoints] = stencilHooks_module.useState(10);
|
|
2839
2839
|
const [rate, setRate] = stencilHooks_module.useState(100);
|
|
2840
|
-
const [exchange, { data, errors }] = index_module.
|
|
2840
|
+
const [exchange, { data, errors }] = index_module.Ke(EXCHANGE);
|
|
2841
2841
|
return {
|
|
2842
2842
|
states: {
|
|
2843
2843
|
points,
|
|
@@ -2878,7 +2878,7 @@ const DefaultView = (props) => {
|
|
|
2878
2878
|
index.h("pre", { style: { maxWidth: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.errors))))));
|
|
2879
2879
|
};
|
|
2880
2880
|
const RewardList = createHookStory(() => {
|
|
2881
|
-
setupGraphQL$
|
|
2881
|
+
setupGraphQL$6();
|
|
2882
2882
|
return (index.h("sqm-reward-exchange-list", { "list-type": "something" }));
|
|
2883
2883
|
});
|
|
2884
2884
|
const FixedGlobalReward = createHookStory(() => {
|
|
@@ -2892,9 +2892,6 @@ const FixedGlobalReward = createHookStory(() => {
|
|
|
2892
2892
|
unit: "POINT",
|
|
2893
2893
|
},
|
|
2894
2894
|
globalRewardKey: "gc1",
|
|
2895
|
-
// rewardInput: {
|
|
2896
|
-
// valueInCents: states.points * 100,
|
|
2897
|
-
// },
|
|
2898
2895
|
},
|
|
2899
2896
|
} }));
|
|
2900
2897
|
});
|
|
@@ -2946,52 +2943,50 @@ const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
|
2946
2943
|
const UseRewardsTable_stories = {
|
|
2947
2944
|
title: "Hooks / useRewardsTable",
|
|
2948
2945
|
};
|
|
2949
|
-
function setupGraphQL$
|
|
2946
|
+
function setupGraphQL$7() {
|
|
2950
2947
|
const id = "testestest";
|
|
2951
2948
|
const accountId = id;
|
|
2952
2949
|
//@ts-ignore
|
|
2953
2950
|
window.widgetIdent = {
|
|
2954
2951
|
tenantAlias: "test_a8b41jotf8a1v",
|
|
2955
2952
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
2956
|
-
// programId,
|
|
2957
2953
|
};
|
|
2958
2954
|
stencilHooks_module.useEffect(() => {
|
|
2959
|
-
index_module.
|
|
2955
|
+
index_module.Y({
|
|
2960
2956
|
accountId,
|
|
2961
2957
|
id,
|
|
2962
2958
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
2963
2959
|
});
|
|
2964
2960
|
return () => {
|
|
2965
2961
|
window.widgetIdent = undefined;
|
|
2966
|
-
index_module.
|
|
2962
|
+
index_module.Y(undefined);
|
|
2967
2963
|
};
|
|
2968
2964
|
}, []);
|
|
2969
2965
|
return { id, accountId };
|
|
2970
2966
|
}
|
|
2971
|
-
function setupGraphQLKlip
|
|
2967
|
+
function setupGraphQLKlip({ token, id }) {
|
|
2972
2968
|
const accountId = id;
|
|
2973
2969
|
// const programId = "klip-referral-program";
|
|
2974
2970
|
//@ts-ignore
|
|
2975
2971
|
window.widgetIdent = {
|
|
2976
2972
|
tenantAlias: "test_a74miwdpofztj",
|
|
2977
2973
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
2978
|
-
// programId,
|
|
2979
2974
|
};
|
|
2980
2975
|
stencilHooks_module.useEffect(() => {
|
|
2981
|
-
index_module.
|
|
2976
|
+
index_module.Y({
|
|
2982
2977
|
accountId,
|
|
2983
2978
|
id,
|
|
2984
2979
|
jwt: token,
|
|
2985
2980
|
});
|
|
2986
2981
|
return () => {
|
|
2987
2982
|
window.widgetIdent = undefined;
|
|
2988
|
-
index_module.
|
|
2983
|
+
index_module.Y(undefined);
|
|
2989
2984
|
};
|
|
2990
2985
|
}, []);
|
|
2991
2986
|
return { id, accountId };
|
|
2992
2987
|
}
|
|
2993
2988
|
const RewardsTableWithProgram = createHookStory(() => {
|
|
2994
|
-
setupGraphQL$
|
|
2989
|
+
setupGraphQL$7();
|
|
2995
2990
|
index_module.A("sam-partner-test-2");
|
|
2996
2991
|
return (index.h("sqm-rewards-table", null,
|
|
2997
2992
|
index.h("sqm-rewards-table-reward-column", null),
|
|
@@ -3000,7 +2995,7 @@ const RewardsTableWithProgram = createHookStory(() => {
|
|
|
3000
2995
|
index.h("sqm-rewards-table-date-column", null)));
|
|
3001
2996
|
});
|
|
3002
2997
|
const RewardsTableNoProgram = createHookStory(() => {
|
|
3003
|
-
setupGraphQL$
|
|
2998
|
+
setupGraphQL$7();
|
|
3004
2999
|
index_module.A(undefined);
|
|
3005
3000
|
return (index.h("sqm-rewards-table", null,
|
|
3006
3001
|
index.h("sqm-rewards-table-reward-column", null),
|
|
@@ -3009,7 +3004,7 @@ const RewardsTableNoProgram = createHookStory(() => {
|
|
|
3009
3004
|
index.h("sqm-rewards-table-date-column", null)));
|
|
3010
3005
|
});
|
|
3011
3006
|
const RewardsTableEn = createHookStory(() => {
|
|
3012
|
-
setupGraphQLKlip
|
|
3007
|
+
setupGraphQLKlip({
|
|
3013
3008
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbWVuZ2xpc2giLCJpZCI6InNhbWVuZ2xpc2gifX0._6OTVF3gcipu_ibgthUNr5UHwC-2E_lhCENI5HpYvcw",
|
|
3014
3009
|
id: "samenglish",
|
|
3015
3010
|
});
|
|
@@ -3021,7 +3016,7 @@ const RewardsTableEn = createHookStory(() => {
|
|
|
3021
3016
|
index.h("sqm-rewards-table-date-column", null)));
|
|
3022
3017
|
});
|
|
3023
3018
|
const RewardsTableTr = createHookStory(() => {
|
|
3024
|
-
setupGraphQLKlip
|
|
3019
|
+
setupGraphQLKlip({
|
|
3025
3020
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbXR1cmtleSIsImlkIjoic2FtdHVya2V5In19.usSMe0RWg8W5FtwcvJayvAlxTw6vMxjTyWXaP8jI8_U",
|
|
3026
3021
|
id: "samturkey",
|
|
3027
3022
|
});
|
|
@@ -3033,7 +3028,7 @@ const RewardsTableTr = createHookStory(() => {
|
|
|
3033
3028
|
index.h("sqm-rewards-table-date-column", { "column-title": "Tarih" })));
|
|
3034
3029
|
});
|
|
3035
3030
|
const RewardsTableFr = createHookStory(() => {
|
|
3036
|
-
setupGraphQLKlip
|
|
3031
|
+
setupGraphQLKlip({
|
|
3037
3032
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbWZyZW5jaCIsImlkIjoic2FtZnJlbmNoIn19.cwhasHpfU5MLV4vGbCQcazb6p19iSw5pD2zyrVHgePg",
|
|
3038
3033
|
id: "samfrench",
|
|
3039
3034
|
});
|
|
@@ -3059,7 +3054,7 @@ const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6In
|
|
|
3059
3054
|
const UseTaskCard_stories = {
|
|
3060
3055
|
title: "Hooks / useTaskCard",
|
|
3061
3056
|
};
|
|
3062
|
-
function setupGraphQL$
|
|
3057
|
+
function setupGraphQL$8() {
|
|
3063
3058
|
const id = "sam+klip@saasquat.ch";
|
|
3064
3059
|
const accountId = id;
|
|
3065
3060
|
const programId = "klip-referral-program";
|
|
@@ -3070,24 +3065,24 @@ function setupGraphQL$1() {
|
|
|
3070
3065
|
programId,
|
|
3071
3066
|
};
|
|
3072
3067
|
stencilHooks_module.useEffect(() => {
|
|
3073
|
-
index_module.
|
|
3068
|
+
index_module.Y({
|
|
3074
3069
|
accountId,
|
|
3075
3070
|
id,
|
|
3076
3071
|
jwt: JWT,
|
|
3077
3072
|
});
|
|
3078
3073
|
return () => {
|
|
3079
3074
|
window.widgetIdent = undefined;
|
|
3080
|
-
index_module.
|
|
3075
|
+
index_module.Y(undefined);
|
|
3081
3076
|
};
|
|
3082
3077
|
}, []);
|
|
3083
3078
|
return { id, accountId };
|
|
3084
3079
|
}
|
|
3085
|
-
const TaskCard
|
|
3086
|
-
setupGraphQL$
|
|
3080
|
+
const TaskCard = createHookStory(() => {
|
|
3081
|
+
setupGraphQL$8();
|
|
3087
3082
|
return (index.h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true, "event-key": "testEvent", "open-new-tab": true }));
|
|
3088
3083
|
});
|
|
3089
3084
|
const TaskCardFeed = createHookStory(() => {
|
|
3090
|
-
setupGraphQL$
|
|
3085
|
+
setupGraphQL$8();
|
|
3091
3086
|
return (index.h("sqm-card-feed", null,
|
|
3092
3087
|
index.h("sqm-task-card", { "reward-amount": "75", "card-title": "Refer a Friend", description: "Invite a friend to Klip and get 75 points when they signup for a free trial or contact our us about an enterprise license.", "button-text": "Start referring", "button-link": "https://klip-staging.vercel.app/app/klip-rewards", goal: 1, repeatable: true, "completed-text": "", demoData: "", "ended-message": "", "event-key": "", "expiry-message": "", "progress-bar-unit": "", "reward-duration": "2022-01-04T08:00:00.000Z/2022-01-20T08:00:00.000Z", "reward-unit": "", "starts-on-message": "", "stat-type": "", "display-duration": "2022-01-04T08:00:00.000Z/2022-01-05T08:00:00.000Z" }),
|
|
3093
3088
|
index.h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
@@ -3110,7 +3105,7 @@ const TaskCardFeed = createHookStory(() => {
|
|
|
3110
3105
|
const UseTaskCard = /*#__PURE__*/Object.freeze({
|
|
3111
3106
|
__proto__: null,
|
|
3112
3107
|
'default': UseTaskCard_stories,
|
|
3113
|
-
TaskCard: TaskCard
|
|
3108
|
+
TaskCard: TaskCard,
|
|
3114
3109
|
TaskCardFeed: TaskCardFeed
|
|
3115
3110
|
});
|
|
3116
3111
|
|
|
@@ -3125,7 +3120,7 @@ const style = {
|
|
|
3125
3120
|
};
|
|
3126
3121
|
const sheet = JSS.createStyleSheet(style);
|
|
3127
3122
|
const styleString = sheet.toString();
|
|
3128
|
-
const barProps
|
|
3123
|
+
const barProps = {
|
|
3129
3124
|
data: {
|
|
3130
3125
|
programs: [
|
|
3131
3126
|
{
|
|
@@ -3139,7 +3134,7 @@ const barProps$1 = {
|
|
|
3139
3134
|
],
|
|
3140
3135
|
},
|
|
3141
3136
|
};
|
|
3142
|
-
const item1Props
|
|
3137
|
+
const item1Props = {
|
|
3143
3138
|
states: {
|
|
3144
3139
|
active: false,
|
|
3145
3140
|
},
|
|
@@ -3149,7 +3144,7 @@ const item1Props$1 = {
|
|
|
3149
3144
|
path: "/",
|
|
3150
3145
|
},
|
|
3151
3146
|
};
|
|
3152
|
-
const item2Props
|
|
3147
|
+
const item2Props = {
|
|
3153
3148
|
states: {
|
|
3154
3149
|
active: true,
|
|
3155
3150
|
},
|
|
@@ -3159,12 +3154,12 @@ const item2Props$1 = {
|
|
|
3159
3154
|
path: "/",
|
|
3160
3155
|
},
|
|
3161
3156
|
};
|
|
3162
|
-
const Sidebar
|
|
3163
|
-
return (index.h(sqmNavigationSidebarView.NavigationSidebarView, Object.assign({}, barProps
|
|
3164
|
-
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item1Props
|
|
3165
|
-
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item2Props
|
|
3157
|
+
const Sidebar = () => {
|
|
3158
|
+
return (index.h(sqmNavigationSidebarView.NavigationSidebarView, Object.assign({}, barProps),
|
|
3159
|
+
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item1Props)),
|
|
3160
|
+
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item2Props))));
|
|
3166
3161
|
};
|
|
3167
|
-
const Dashboard
|
|
3162
|
+
const Dashboard = () => {
|
|
3168
3163
|
const sharelinkProps = {
|
|
3169
3164
|
shareString: "https://ssqt.co/johnsmithrox",
|
|
3170
3165
|
open: false,
|
|
@@ -3220,7 +3215,7 @@ const Dashboard$1 = () => {
|
|
|
3220
3215
|
};
|
|
3221
3216
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
3222
3217
|
index.h("style", { type: "text/css" }, styleString),
|
|
3223
|
-
index.h(Sidebar
|
|
3218
|
+
index.h(Sidebar, null),
|
|
3224
3219
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
3225
3220
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
3226
3221
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
@@ -3278,7 +3273,7 @@ const Dashboard$1 = () => {
|
|
|
3278
3273
|
const EditProfile$1 = () => {
|
|
3279
3274
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
3280
3275
|
index.h("style", { type: "text/css" }, styleString),
|
|
3281
|
-
index.h(Sidebar
|
|
3276
|
+
index.h(Sidebar, null),
|
|
3282
3277
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
3283
3278
|
index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, {
|
|
3284
3279
|
states: {
|
|
@@ -3342,7 +3337,7 @@ const EditProfile$1 = () => {
|
|
|
3342
3337
|
const Commissions = () => {
|
|
3343
3338
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
3344
3339
|
index.h("style", { type: "text/css" }, styleString),
|
|
3345
|
-
index.h(Sidebar
|
|
3340
|
+
index.h(Sidebar, null),
|
|
3346
3341
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
3347
3342
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
3348
3343
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
@@ -3364,10 +3359,10 @@ const Commissions = () => {
|
|
|
3364
3359
|
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 180", value: 18000, loading: false }), "Pending"),
|
|
3365
3360
|
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 20", value: 2000, loading: false }), "Redeemed"))))));
|
|
3366
3361
|
};
|
|
3367
|
-
const Activity
|
|
3362
|
+
const Activity = () => {
|
|
3368
3363
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
3369
3364
|
index.h("style", { type: "text/css" }, styleString),
|
|
3370
|
-
index.h(Sidebar
|
|
3365
|
+
index.h(Sidebar, null),
|
|
3371
3366
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
3372
3367
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
3373
3368
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
@@ -3409,10 +3404,10 @@ const Activity$1 = () => {
|
|
|
3409
3404
|
const NewPortal = /*#__PURE__*/Object.freeze({
|
|
3410
3405
|
__proto__: null,
|
|
3411
3406
|
'default': NewPortal_stories,
|
|
3412
|
-
Dashboard: Dashboard
|
|
3407
|
+
Dashboard: Dashboard,
|
|
3413
3408
|
EditProfile: EditProfile$1,
|
|
3414
3409
|
Commissions: Commissions,
|
|
3415
|
-
Activity: Activity
|
|
3410
|
+
Activity: Activity
|
|
3416
3411
|
});
|
|
3417
3412
|
|
|
3418
3413
|
const SidebarItem_stories = {
|
|
@@ -3504,7 +3499,7 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
|
3504
3499
|
const PortalLogin_stories = {
|
|
3505
3500
|
title: "Components/Portal Login",
|
|
3506
3501
|
};
|
|
3507
|
-
const defaultProps$
|
|
3502
|
+
const defaultProps$2 = {
|
|
3508
3503
|
states: {
|
|
3509
3504
|
error: "",
|
|
3510
3505
|
loading: false,
|
|
@@ -3516,7 +3511,7 @@ const defaultProps$7 = {
|
|
|
3516
3511
|
},
|
|
3517
3512
|
content: { pageLabel: "Sign in to your account" }
|
|
3518
3513
|
};
|
|
3519
|
-
const errorProps
|
|
3514
|
+
const errorProps = {
|
|
3520
3515
|
states: {
|
|
3521
3516
|
error: "Something went wrong. Please try again.",
|
|
3522
3517
|
loading: false,
|
|
@@ -3528,7 +3523,7 @@ const errorProps$8 = {
|
|
|
3528
3523
|
},
|
|
3529
3524
|
content: { pageLabel: "Sign in to your account" }
|
|
3530
3525
|
};
|
|
3531
|
-
const loadingProps
|
|
3526
|
+
const loadingProps = {
|
|
3532
3527
|
states: {
|
|
3533
3528
|
error: "",
|
|
3534
3529
|
loading: true,
|
|
@@ -3540,14 +3535,14 @@ const loadingProps$6 = {
|
|
|
3540
3535
|
},
|
|
3541
3536
|
content: { pageLabel: "Sign in to your account" }
|
|
3542
3537
|
};
|
|
3543
|
-
const Default$
|
|
3544
|
-
const LoginWithError = () => index.h(AutoColor.PortalLoginView, Object.assign({}, errorProps
|
|
3545
|
-
const LoginLoading = () => index.h(AutoColor.PortalLoginView, Object.assign({}, loadingProps
|
|
3538
|
+
const Default$2 = () => index.h(AutoColor.PortalLoginView, Object.assign({}, defaultProps$2));
|
|
3539
|
+
const LoginWithError = () => index.h(AutoColor.PortalLoginView, Object.assign({}, errorProps));
|
|
3540
|
+
const LoginLoading = () => index.h(AutoColor.PortalLoginView, Object.assign({}, loadingProps));
|
|
3546
3541
|
|
|
3547
3542
|
const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
3548
3543
|
__proto__: null,
|
|
3549
3544
|
'default': PortalLogin_stories,
|
|
3550
|
-
Default: Default$
|
|
3545
|
+
Default: Default$2,
|
|
3551
3546
|
LoginWithError: LoginWithError,
|
|
3552
3547
|
LoginLoading: LoginLoading
|
|
3553
3548
|
});
|
|
@@ -3555,7 +3550,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
3555
3550
|
const PortalRegister_stories = {
|
|
3556
3551
|
title: "Components/Portal Register",
|
|
3557
3552
|
};
|
|
3558
|
-
const defaultProps$
|
|
3553
|
+
const defaultProps$3 = {
|
|
3559
3554
|
states: {
|
|
3560
3555
|
error: "",
|
|
3561
3556
|
loading: false,
|
|
@@ -3572,7 +3567,7 @@ const defaultProps$6 = {
|
|
|
3572
3567
|
},
|
|
3573
3568
|
content: { pageLabel: "Register", confirmPasswordLabel: "Confirm Password" },
|
|
3574
3569
|
};
|
|
3575
|
-
const errorProps$
|
|
3570
|
+
const errorProps$1 = {
|
|
3576
3571
|
states: {
|
|
3577
3572
|
error: "Something went wrong. Please try again.",
|
|
3578
3573
|
loading: false,
|
|
@@ -3592,7 +3587,7 @@ const errorProps$7 = {
|
|
|
3592
3587
|
confirmPasswordLabel: "Confirm Password",
|
|
3593
3588
|
},
|
|
3594
3589
|
};
|
|
3595
|
-
const loadingProps$
|
|
3590
|
+
const loadingProps$1 = {
|
|
3596
3591
|
states: {
|
|
3597
3592
|
error: "",
|
|
3598
3593
|
loading: true,
|
|
@@ -3632,9 +3627,9 @@ const slottedProps = {
|
|
|
3632
3627
|
index.h("sl-input", { exportparts: "label: input-label", label: "Slotted Input 2", required: true }))),
|
|
3633
3628
|
},
|
|
3634
3629
|
};
|
|
3635
|
-
const Default$
|
|
3636
|
-
const RegisterWithError = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, errorProps$
|
|
3637
|
-
const RegisterLoading = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, loadingProps$
|
|
3630
|
+
const Default$3 = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, defaultProps$3));
|
|
3631
|
+
const RegisterWithError = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, errorProps$1));
|
|
3632
|
+
const RegisterLoading = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, loadingProps$1));
|
|
3638
3633
|
const FieldsHidden = () => {
|
|
3639
3634
|
return (index.h("sqm-portal-register", { demoData: {
|
|
3640
3635
|
states: {
|
|
@@ -3647,8 +3642,8 @@ const FieldsHidden = () => {
|
|
|
3647
3642
|
} }));
|
|
3648
3643
|
};
|
|
3649
3644
|
const SlottedInputs = () => index.h(AutoColor.PortalRegisterView, Object.assign({}, slottedProps));
|
|
3650
|
-
const TermsAndConditions = () => (index.h(AutoColor.PortalRegisterView, Object.assign({}, defaultProps$
|
|
3651
|
-
...defaultProps$
|
|
3645
|
+
const TermsAndConditions = () => (index.h(AutoColor.PortalRegisterView, Object.assign({}, defaultProps$3, { content: {
|
|
3646
|
+
...defaultProps$3.content,
|
|
3652
3647
|
terms: (index.h("p", null,
|
|
3653
3648
|
"By signing up you agree to the",
|
|
3654
3649
|
" ",
|
|
@@ -3658,7 +3653,7 @@ const TermsAndConditions = () => (index.h(AutoColor.PortalRegisterView, Object.a
|
|
|
3658
3653
|
const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
3659
3654
|
__proto__: null,
|
|
3660
3655
|
'default': PortalRegister_stories,
|
|
3661
|
-
Default: Default$
|
|
3656
|
+
Default: Default$3,
|
|
3662
3657
|
RegisterWithError: RegisterWithError,
|
|
3663
3658
|
RegisterLoading: RegisterLoading,
|
|
3664
3659
|
FieldsHidden: FieldsHidden,
|
|
@@ -3666,15 +3661,15 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
3666
3661
|
TermsAndConditions: TermsAndConditions
|
|
3667
3662
|
});
|
|
3668
3663
|
|
|
3669
|
-
const scenario
|
|
3664
|
+
const scenario = "@author:derek\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user does not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner is shown but an email is not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n But no email is sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click \"Reset Password\"\r\n Then the user receives a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/resetPassword\"\r\n Given a user viewing the password reset component\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they request a password reset email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /resetPassword |\r\n | has | /resetMyPassword | /resetMyPassword |\r\n\r\n @minutae\r\n Scenario Outline: Navigation back to the login page can be customized but defaults to \"/login\"\r\n Given a user viewing the password reset component\r\n And the component <mayHave> \"login-path\" with <value>\r\n Then they see a \"Sign In\" text button\r\n When they click \"Sign In\"\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /login |\r\n | has | /signin | /signin |";
|
|
3670
3665
|
|
|
3671
3666
|
const PortalForgotPassword_stories = {
|
|
3672
3667
|
title: "Components/Portal Forgot Password",
|
|
3673
3668
|
parameters: {
|
|
3674
|
-
scenario
|
|
3669
|
+
scenario,
|
|
3675
3670
|
},
|
|
3676
3671
|
};
|
|
3677
|
-
const defaultProps$
|
|
3672
|
+
const defaultProps$4 = {
|
|
3678
3673
|
states: {
|
|
3679
3674
|
error: "",
|
|
3680
3675
|
loading: false,
|
|
@@ -3689,7 +3684,7 @@ const defaultProps$5 = {
|
|
|
3689
3684
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
3690
3685
|
},
|
|
3691
3686
|
};
|
|
3692
|
-
const errorProps$
|
|
3687
|
+
const errorProps$2 = {
|
|
3693
3688
|
states: {
|
|
3694
3689
|
error: "Something went wrong. Please try again.",
|
|
3695
3690
|
loading: false,
|
|
@@ -3704,7 +3699,7 @@ const errorProps$6 = {
|
|
|
3704
3699
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
3705
3700
|
},
|
|
3706
3701
|
};
|
|
3707
|
-
const loadingProps$
|
|
3702
|
+
const loadingProps$2 = {
|
|
3708
3703
|
states: {
|
|
3709
3704
|
error: "",
|
|
3710
3705
|
loading: true,
|
|
@@ -3719,7 +3714,7 @@ const loadingProps$4 = {
|
|
|
3719
3714
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
3720
3715
|
},
|
|
3721
3716
|
};
|
|
3722
|
-
const successProps
|
|
3717
|
+
const successProps = {
|
|
3723
3718
|
states: {
|
|
3724
3719
|
error: "",
|
|
3725
3720
|
loading: false,
|
|
@@ -3734,29 +3729,29 @@ const successProps$4 = {
|
|
|
3734
3729
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
3735
3730
|
},
|
|
3736
3731
|
};
|
|
3737
|
-
const Default$
|
|
3738
|
-
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$
|
|
3739
|
-
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$
|
|
3740
|
-
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps
|
|
3732
|
+
const Default$4 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$4));
|
|
3733
|
+
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$2)));
|
|
3734
|
+
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$2)));
|
|
3735
|
+
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
3741
3736
|
|
|
3742
3737
|
const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
3743
3738
|
__proto__: null,
|
|
3744
3739
|
'default': PortalForgotPassword_stories,
|
|
3745
|
-
Default: Default$
|
|
3740
|
+
Default: Default$4,
|
|
3746
3741
|
ForgotPasswordWithError: ForgotPasswordWithError,
|
|
3747
3742
|
ForgotPasswordLoading: ForgotPasswordLoading,
|
|
3748
3743
|
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
3749
3744
|
});
|
|
3750
3745
|
|
|
3751
|
-
const scenario$
|
|
3746
|
+
const scenario$1 = "@author:derek\r\n@owner:ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message is displayed\r\n And it reflects that a email has been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then they receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user does not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user receives a verification email\r\n And a success banner is shown stating that their email was resent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they resend their verification email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /verifyEmail |\r\n | has | /verifyMyEmail | /verifyMyEmail |";
|
|
3752
3747
|
|
|
3753
3748
|
const PortalEmailVerification_stories = {
|
|
3754
3749
|
title: "Components/Portal Email Verification",
|
|
3755
3750
|
parameters: {
|
|
3756
|
-
scenario: scenario$
|
|
3751
|
+
scenario: scenario$1,
|
|
3757
3752
|
},
|
|
3758
3753
|
};
|
|
3759
|
-
const defaultProps$
|
|
3754
|
+
const defaultProps$5 = {
|
|
3760
3755
|
states: {
|
|
3761
3756
|
error: "",
|
|
3762
3757
|
loading: false,
|
|
@@ -3772,7 +3767,7 @@ const defaultProps$4 = {
|
|
|
3772
3767
|
resendEmailButtonText: "Re-send Email",
|
|
3773
3768
|
},
|
|
3774
3769
|
};
|
|
3775
|
-
const errorProps$
|
|
3770
|
+
const errorProps$3 = {
|
|
3776
3771
|
states: {
|
|
3777
3772
|
error: "Something went wrong. Please try again.",
|
|
3778
3773
|
loading: false,
|
|
@@ -3804,7 +3799,7 @@ const loadingProps$3 = {
|
|
|
3804
3799
|
resendEmailButtonText: "Re-send Email",
|
|
3805
3800
|
},
|
|
3806
3801
|
};
|
|
3807
|
-
const successProps$
|
|
3802
|
+
const successProps$1 = {
|
|
3808
3803
|
states: {
|
|
3809
3804
|
error: "",
|
|
3810
3805
|
loading: false,
|
|
@@ -3820,29 +3815,29 @@ const successProps$3 = {
|
|
|
3820
3815
|
resendEmailButtonText: "Re-send Email",
|
|
3821
3816
|
},
|
|
3822
3817
|
};
|
|
3823
|
-
const Default$
|
|
3824
|
-
const EmailVerificationWithError
|
|
3818
|
+
const Default$5 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$5));
|
|
3819
|
+
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$3)));
|
|
3825
3820
|
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$3)));
|
|
3826
|
-
const EmailVerificationSuccess
|
|
3821
|
+
const EmailVerificationSuccess = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, successProps$1)));
|
|
3827
3822
|
|
|
3828
3823
|
const PortalEmailVerification = /*#__PURE__*/Object.freeze({
|
|
3829
3824
|
__proto__: null,
|
|
3830
3825
|
'default': PortalEmailVerification_stories,
|
|
3831
|
-
Default: Default$
|
|
3832
|
-
EmailVerificationWithError: EmailVerificationWithError
|
|
3826
|
+
Default: Default$5,
|
|
3827
|
+
EmailVerificationWithError: EmailVerificationWithError,
|
|
3833
3828
|
EmailVerificationLoading: EmailVerificationLoading,
|
|
3834
|
-
EmailVerificationSuccess: EmailVerificationSuccess
|
|
3829
|
+
EmailVerificationSuccess: EmailVerificationSuccess
|
|
3835
3830
|
});
|
|
3836
3831
|
|
|
3837
|
-
const scenario$
|
|
3832
|
+
const scenario$2 = "@author:derek\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click \"Update\"\r\n Then their password is updated\r\n And a banner with a success message is displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n And the component <mayHave> \"failed-page\" with <value>\r\n Then they see an error message saying that their password reset code is invalid/expired\r\n When they click \"Continue\"\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | oobCode | mayHave | value | redirectPath |\r\n | invalid oob code | doesn't have | N/A | / |\r\n | non existant oob code | doesn't have | N/A | / |\r\n | invalid oob code | has | /login | /login |\r\n | non existant oob code | has | /login | /login |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click \"Update\"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password is not be reset\r\n When they enter the same password twice\r\n And they click \"Update\"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/activity\"";
|
|
3838
3833
|
|
|
3839
3834
|
const PortalResetPassword_stories = {
|
|
3840
3835
|
title: "Components/Portal Reset Password",
|
|
3841
3836
|
parameters: {
|
|
3842
|
-
scenario: scenario$
|
|
3837
|
+
scenario: scenario$2,
|
|
3843
3838
|
},
|
|
3844
3839
|
};
|
|
3845
|
-
const defaultProps$
|
|
3840
|
+
const defaultProps$6 = {
|
|
3846
3841
|
states: {
|
|
3847
3842
|
error: "",
|
|
3848
3843
|
loading: false,
|
|
@@ -3911,7 +3906,7 @@ const errorProps$4 = {
|
|
|
3911
3906
|
failed: () => console.log("failed"),
|
|
3912
3907
|
},
|
|
3913
3908
|
};
|
|
3914
|
-
const loadingProps$
|
|
3909
|
+
const loadingProps$4 = {
|
|
3915
3910
|
states: {
|
|
3916
3911
|
error: "",
|
|
3917
3912
|
loading: true,
|
|
@@ -3980,17 +3975,17 @@ const validatingCodeProps = {
|
|
|
3980
3975
|
failed: () => console.log("failed"),
|
|
3981
3976
|
},
|
|
3982
3977
|
};
|
|
3983
|
-
const Default$
|
|
3978
|
+
const Default$6 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$6));
|
|
3984
3979
|
const DefaultWithoutConfirmField = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultPropsNoConfirm)));
|
|
3985
3980
|
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$4)));
|
|
3986
|
-
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$
|
|
3981
|
+
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$4)));
|
|
3987
3982
|
const ResetPasswordSuccess = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, successProps$2)));
|
|
3988
3983
|
const CodeValidating = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, validatingCodeProps)));
|
|
3989
3984
|
|
|
3990
3985
|
const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
3991
3986
|
__proto__: null,
|
|
3992
3987
|
'default': PortalResetPassword_stories,
|
|
3993
|
-
Default: Default$
|
|
3988
|
+
Default: Default$6,
|
|
3994
3989
|
DefaultWithoutConfirmField: DefaultWithoutConfirmField,
|
|
3995
3990
|
ResetPasswordWithError: ResetPasswordWithError,
|
|
3996
3991
|
ResetPasswordLoading: ResetPasswordLoading,
|
|
@@ -3998,15 +3993,15 @@ const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
|
3998
3993
|
CodeValidating: CodeValidating
|
|
3999
3994
|
});
|
|
4000
3995
|
|
|
4001
|
-
const scenario$
|
|
3996
|
+
const scenario$3 = "@author:derek\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email takes you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button enters a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" appears\r\n When they click \"Continue\"\r\n Then they are redirected to login\r\n\r\n @motivating\r\n Scenario: Users are automatically redirected if they dont click \"Continue\"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button enters a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" appears\r\n When they wait 5 seconds\r\n Then they are redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button enters a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n And the component <mayHave> \"failed-page\" with <value>\r\n Then they see an error message saying that their verification code is invalid/expired\r\n When they click \"Continue\"\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | oobCode | mayHave | value | redirectPath |\r\n | invalid oob code | doesn't have | N/A | / |\r\n | non existant oob code | doesn't have | N/A | / |\r\n | invalid oob code | has | /login | /login |\r\n | non existant oob code | has | /login | /login |\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to \"/activity\"\r\n\r\n @motivating\r\n Scenario Outline: Users are redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\r\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |";
|
|
4002
3997
|
|
|
4003
3998
|
const PortalVerifyEmail_stories = {
|
|
4004
3999
|
title: "Components/Portal Verify Email",
|
|
4005
4000
|
parameters: {
|
|
4006
|
-
scenario: scenario$
|
|
4001
|
+
scenario: scenario$3,
|
|
4007
4002
|
},
|
|
4008
4003
|
};
|
|
4009
|
-
const errorProps$
|
|
4004
|
+
const errorProps$5 = {
|
|
4010
4005
|
states: {
|
|
4011
4006
|
error: "Something went wrong. Please try again.",
|
|
4012
4007
|
loading: false,
|
|
@@ -4034,20 +4029,20 @@ const verifiedProps = {
|
|
|
4034
4029
|
failed: () => console.log("failed"),
|
|
4035
4030
|
},
|
|
4036
4031
|
};
|
|
4037
|
-
const EmailVerificationWithError = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, errorProps$
|
|
4038
|
-
const EmailVerificationSuccess = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
4032
|
+
const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, errorProps$5)));
|
|
4033
|
+
const EmailVerificationSuccess$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
4039
4034
|
|
|
4040
4035
|
const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
|
|
4041
4036
|
__proto__: null,
|
|
4042
4037
|
'default': PortalVerifyEmail_stories,
|
|
4043
|
-
EmailVerificationWithError: EmailVerificationWithError,
|
|
4044
|
-
EmailVerificationSuccess: EmailVerificationSuccess
|
|
4038
|
+
EmailVerificationWithError: EmailVerificationWithError$1,
|
|
4039
|
+
EmailVerificationSuccess: EmailVerificationSuccess$1
|
|
4045
4040
|
});
|
|
4046
4041
|
|
|
4047
4042
|
const AssetCard_stories = {
|
|
4048
4043
|
title: "Components/Asset Card",
|
|
4049
4044
|
};
|
|
4050
|
-
const Default$
|
|
4045
|
+
const Default$7 = () => {
|
|
4051
4046
|
const props = {
|
|
4052
4047
|
text: { titleText: "Marketing Banner" },
|
|
4053
4048
|
imgUrl: "../../assets/saasquatch-logo.png",
|
|
@@ -4075,7 +4070,7 @@ const CardWithNoImg = () => {
|
|
|
4075
4070
|
const AssetCard = /*#__PURE__*/Object.freeze({
|
|
4076
4071
|
__proto__: null,
|
|
4077
4072
|
'default': AssetCard_stories,
|
|
4078
|
-
Default: Default$
|
|
4073
|
+
Default: Default$7,
|
|
4079
4074
|
CardWithLongText: CardWithLongText,
|
|
4080
4075
|
CardWithNoImg: CardWithNoImg
|
|
4081
4076
|
});
|
|
@@ -4083,7 +4078,7 @@ const AssetCard = /*#__PURE__*/Object.freeze({
|
|
|
4083
4078
|
const DividedLayout_stories = {
|
|
4084
4079
|
title: "Components/Divided Layout",
|
|
4085
4080
|
};
|
|
4086
|
-
const barProps = {
|
|
4081
|
+
const barProps$1 = {
|
|
4087
4082
|
data: {
|
|
4088
4083
|
programs: [
|
|
4089
4084
|
{
|
|
@@ -4097,7 +4092,7 @@ const barProps = {
|
|
|
4097
4092
|
],
|
|
4098
4093
|
},
|
|
4099
4094
|
};
|
|
4100
|
-
const item1Props = {
|
|
4095
|
+
const item1Props$1 = {
|
|
4101
4096
|
states: {
|
|
4102
4097
|
active: false,
|
|
4103
4098
|
},
|
|
@@ -4107,7 +4102,7 @@ const item1Props = {
|
|
|
4107
4102
|
path: "/",
|
|
4108
4103
|
},
|
|
4109
4104
|
};
|
|
4110
|
-
const item2Props = {
|
|
4105
|
+
const item2Props$1 = {
|
|
4111
4106
|
states: {
|
|
4112
4107
|
active: true,
|
|
4113
4108
|
},
|
|
@@ -4117,14 +4112,14 @@ const item2Props = {
|
|
|
4117
4112
|
path: "/",
|
|
4118
4113
|
},
|
|
4119
4114
|
};
|
|
4120
|
-
const Sidebar = () => {
|
|
4121
|
-
return (index.h(sqmNavigationSidebarView.NavigationSidebarView, Object.assign({}, barProps),
|
|
4122
|
-
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item1Props)),
|
|
4123
|
-
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item2Props))));
|
|
4115
|
+
const Sidebar$1 = () => {
|
|
4116
|
+
return (index.h(sqmNavigationSidebarView.NavigationSidebarView, Object.assign({}, barProps$1),
|
|
4117
|
+
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item1Props$1)),
|
|
4118
|
+
index.h(sqmNavigationSidebarItemView.NavigationSidebarItemView, Object.assign({}, item2Props$1))));
|
|
4124
4119
|
};
|
|
4125
4120
|
const Row = () => {
|
|
4126
4121
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
4127
|
-
index.h(Sidebar, null),
|
|
4122
|
+
index.h(Sidebar$1, null),
|
|
4128
4123
|
index.h("div", { style: { padding: "48px" } },
|
|
4129
4124
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4130
4125
|
labelMargin: "xx-small",
|
|
@@ -4137,7 +4132,7 @@ const Row = () => {
|
|
|
4137
4132
|
};
|
|
4138
4133
|
const Column = () => {
|
|
4139
4134
|
return (index.h("sqm-divided-layout", { direction: "column" },
|
|
4140
|
-
index.h(Sidebar, null),
|
|
4135
|
+
index.h(Sidebar$1, null),
|
|
4141
4136
|
index.h("div", { style: { padding: "48px" } },
|
|
4142
4137
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4143
4138
|
labelMargin: "xx-small",
|
|
@@ -4150,7 +4145,7 @@ const Column = () => {
|
|
|
4150
4145
|
};
|
|
4151
4146
|
const ColumnCustomDivider = () => {
|
|
4152
4147
|
return (index.h("sqm-divided-layout", { direction: "column", dividerStyle: "1px solid red" },
|
|
4153
|
-
index.h(Sidebar, null),
|
|
4148
|
+
index.h(Sidebar$1, null),
|
|
4154
4149
|
index.h("div", { style: { padding: "48px" } },
|
|
4155
4150
|
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4156
4151
|
labelMargin: "xx-small",
|
|
@@ -4170,15 +4165,15 @@ const DividedLayout = /*#__PURE__*/Object.freeze({
|
|
|
4170
4165
|
ColumnCustomDivider: ColumnCustomDivider
|
|
4171
4166
|
});
|
|
4172
4167
|
|
|
4173
|
-
const scenario$
|
|
4168
|
+
const scenario$4 = "Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click \"Change Password\"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they click \"Change password\"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click \"Change password\"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password";
|
|
4174
4169
|
|
|
4175
4170
|
const ChangePassword_stories = {
|
|
4176
4171
|
title: "Components/Change Password",
|
|
4177
4172
|
parameters: {
|
|
4178
|
-
scenario: scenario$
|
|
4173
|
+
scenario: scenario$4,
|
|
4179
4174
|
},
|
|
4180
4175
|
};
|
|
4181
|
-
const defaultProps$
|
|
4176
|
+
const defaultProps$7 = {
|
|
4182
4177
|
states: {
|
|
4183
4178
|
open: false,
|
|
4184
4179
|
loading: false,
|
|
@@ -4222,7 +4217,7 @@ const openProps = {
|
|
|
4222
4217
|
submit: (e) => console.log("Submit", e),
|
|
4223
4218
|
},
|
|
4224
4219
|
};
|
|
4225
|
-
const errorProps$
|
|
4220
|
+
const errorProps$6 = {
|
|
4226
4221
|
states: {
|
|
4227
4222
|
open: true,
|
|
4228
4223
|
loading: false,
|
|
@@ -4266,7 +4261,7 @@ const passwordErrorProps = {
|
|
|
4266
4261
|
submit: (e) => console.log("Submit", e),
|
|
4267
4262
|
},
|
|
4268
4263
|
};
|
|
4269
|
-
const loadingProps$
|
|
4264
|
+
const loadingProps$5 = {
|
|
4270
4265
|
states: {
|
|
4271
4266
|
open: true,
|
|
4272
4267
|
loading: true,
|
|
@@ -4288,7 +4283,7 @@ const loadingProps$1 = {
|
|
|
4288
4283
|
submit: (e) => console.log("Submit", e),
|
|
4289
4284
|
},
|
|
4290
4285
|
};
|
|
4291
|
-
const successProps$
|
|
4286
|
+
const successProps$3 = {
|
|
4292
4287
|
states: {
|
|
4293
4288
|
open: true,
|
|
4294
4289
|
loading: false,
|
|
@@ -4310,28 +4305,28 @@ const successProps$1 = {
|
|
|
4310
4305
|
submit: (e) => console.log("Submit", e),
|
|
4311
4306
|
},
|
|
4312
4307
|
};
|
|
4313
|
-
const Default$
|
|
4308
|
+
const Default$8 = () => index.h(AutoColor.PortalChangePasswordView, Object.assign({}, defaultProps$7));
|
|
4314
4309
|
const Open = () => index.h(AutoColor.PortalChangePasswordView, Object.assign({}, openProps));
|
|
4315
|
-
const Error$
|
|
4310
|
+
const Error$1 = () => index.h(AutoColor.PortalChangePasswordView, Object.assign({}, errorProps$6));
|
|
4316
4311
|
const PaswordError = () => (index.h(AutoColor.PortalChangePasswordView, Object.assign({}, passwordErrorProps)));
|
|
4317
|
-
const Loading$
|
|
4318
|
-
const Success
|
|
4312
|
+
const Loading$1 = () => index.h(AutoColor.PortalChangePasswordView, Object.assign({}, loadingProps$5));
|
|
4313
|
+
const Success = () => index.h(AutoColor.PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
4319
4314
|
|
|
4320
4315
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
4321
4316
|
__proto__: null,
|
|
4322
4317
|
'default': ChangePassword_stories,
|
|
4323
|
-
Default: Default$
|
|
4318
|
+
Default: Default$8,
|
|
4324
4319
|
Open: Open,
|
|
4325
|
-
Error: Error$
|
|
4320
|
+
Error: Error$1,
|
|
4326
4321
|
PaswordError: PaswordError,
|
|
4327
|
-
Loading: Loading$
|
|
4328
|
-
Success: Success
|
|
4322
|
+
Loading: Loading$1,
|
|
4323
|
+
Success: Success
|
|
4329
4324
|
});
|
|
4330
4325
|
|
|
4331
4326
|
const PortalProfile_stories = {
|
|
4332
4327
|
title: "Components/Portal Profile",
|
|
4333
4328
|
};
|
|
4334
|
-
const defaultProps$
|
|
4329
|
+
const defaultProps$8 = {
|
|
4335
4330
|
states: {
|
|
4336
4331
|
success: false,
|
|
4337
4332
|
loading: false,
|
|
@@ -4403,7 +4398,7 @@ const noCountry = {
|
|
|
4403
4398
|
onChange: (e) => console.log(e),
|
|
4404
4399
|
},
|
|
4405
4400
|
};
|
|
4406
|
-
const loadingProps = {
|
|
4401
|
+
const loadingProps$6 = {
|
|
4407
4402
|
states: {
|
|
4408
4403
|
success: false,
|
|
4409
4404
|
loading: true,
|
|
@@ -4475,7 +4470,7 @@ const disabledProps = {
|
|
|
4475
4470
|
onChange: (e) => console.log(e),
|
|
4476
4471
|
},
|
|
4477
4472
|
};
|
|
4478
|
-
const errorProps$
|
|
4473
|
+
const errorProps$7 = {
|
|
4479
4474
|
states: {
|
|
4480
4475
|
success: false,
|
|
4481
4476
|
loading: false,
|
|
@@ -4511,7 +4506,7 @@ const errorProps$1 = {
|
|
|
4511
4506
|
onChange: (e) => console.log(e),
|
|
4512
4507
|
},
|
|
4513
4508
|
};
|
|
4514
|
-
const successProps = {
|
|
4509
|
+
const successProps$4 = {
|
|
4515
4510
|
states: {
|
|
4516
4511
|
success: true,
|
|
4517
4512
|
loading: false,
|
|
@@ -4547,28 +4542,28 @@ const successProps = {
|
|
|
4547
4542
|
onChange: (e) => console.log(e),
|
|
4548
4543
|
},
|
|
4549
4544
|
};
|
|
4550
|
-
const Default$
|
|
4545
|
+
const Default$9 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$8));
|
|
4551
4546
|
const DefaultNoCountry = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, noCountry));
|
|
4552
|
-
const Loading$
|
|
4553
|
-
const Disabled = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
4554
|
-
const Error$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, errorProps$
|
|
4555
|
-
const Success = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps));
|
|
4547
|
+
const Loading$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$6));
|
|
4548
|
+
const Disabled$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
4549
|
+
const Error$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, errorProps$7));
|
|
4550
|
+
const Success$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps$4));
|
|
4556
4551
|
|
|
4557
4552
|
const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
4558
4553
|
__proto__: null,
|
|
4559
4554
|
'default': PortalProfile_stories,
|
|
4560
|
-
Default: Default$
|
|
4555
|
+
Default: Default$9,
|
|
4561
4556
|
DefaultNoCountry: DefaultNoCountry,
|
|
4562
|
-
Loading: Loading$
|
|
4563
|
-
Disabled: Disabled,
|
|
4557
|
+
Loading: Loading$2,
|
|
4558
|
+
Disabled: Disabled$1,
|
|
4564
4559
|
Error: Error$2,
|
|
4565
|
-
Success: Success
|
|
4560
|
+
Success: Success$1
|
|
4566
4561
|
});
|
|
4567
4562
|
|
|
4568
4563
|
const ReferralTableRewardsCell_stories = {
|
|
4569
4564
|
title: "Components/Referral Table Rewards Cell",
|
|
4570
4565
|
};
|
|
4571
|
-
const baseReward
|
|
4566
|
+
const baseReward = {
|
|
4572
4567
|
id: "123",
|
|
4573
4568
|
type: "CREDIT",
|
|
4574
4569
|
value: 19,
|
|
@@ -4602,7 +4597,7 @@ const baseReward$2 = {
|
|
|
4602
4597
|
],
|
|
4603
4598
|
},
|
|
4604
4599
|
};
|
|
4605
|
-
const nullExpiresIn
|
|
4600
|
+
const nullExpiresIn = {
|
|
4606
4601
|
dateExpires: null,
|
|
4607
4602
|
};
|
|
4608
4603
|
const nullScheduledFor = {
|
|
@@ -4625,62 +4620,62 @@ const integrationReward = {
|
|
|
4625
4620
|
type: "INTEGRATION",
|
|
4626
4621
|
};
|
|
4627
4622
|
// Reward Status Cases
|
|
4628
|
-
const pendingReward
|
|
4623
|
+
const pendingReward = {
|
|
4629
4624
|
statuses: ["AVAILABLE", "PENDING"],
|
|
4630
4625
|
};
|
|
4631
|
-
const cancelledReward
|
|
4626
|
+
const cancelledReward = {
|
|
4632
4627
|
statuses: ["PENDING", "CANCELLED"],
|
|
4633
4628
|
dateCancelled: 1626850800000,
|
|
4634
4629
|
};
|
|
4635
|
-
const expiredReward
|
|
4630
|
+
const expiredReward = {
|
|
4636
4631
|
statuses: ["EXPIRED", "AVAILABLE"],
|
|
4637
4632
|
dateExpires: 1626850800000,
|
|
4638
4633
|
};
|
|
4639
4634
|
const redeemedReward = {
|
|
4640
4635
|
statuses: ["AVAILABLE", "EXPIRED", "REDEEMED"],
|
|
4641
4636
|
};
|
|
4642
|
-
const availableReward
|
|
4637
|
+
const availableReward = {
|
|
4643
4638
|
statuses: ["AVAILABLE"],
|
|
4644
4639
|
};
|
|
4645
4640
|
const zeroRewards = [];
|
|
4646
|
-
const oneReward = [{ ...baseReward
|
|
4641
|
+
const oneReward = [{ ...baseReward, ...availableReward }];
|
|
4647
4642
|
const twoRewards = [
|
|
4648
|
-
{ ...baseReward
|
|
4649
|
-
{ ...baseReward
|
|
4643
|
+
{ ...baseReward, ...discountReward, ...pendingReward },
|
|
4644
|
+
{ ...baseReward, ...creditReward },
|
|
4650
4645
|
];
|
|
4651
4646
|
const threeRewards = [
|
|
4652
|
-
{ ...baseReward
|
|
4653
|
-
{ ...baseReward
|
|
4654
|
-
{ ...baseReward
|
|
4647
|
+
{ ...baseReward, ...fuelTankReward, ...nullExpiresIn },
|
|
4648
|
+
{ ...baseReward, ...fuelTankReward, ...expiredReward },
|
|
4649
|
+
{ ...baseReward, ...pendingReward, ...nullFuelTank },
|
|
4655
4650
|
];
|
|
4656
4651
|
const fiveRewards = [
|
|
4657
|
-
{ ...baseReward
|
|
4658
|
-
{ ...baseReward
|
|
4659
|
-
{ ...baseReward
|
|
4660
|
-
{ ...baseReward
|
|
4661
|
-
{ ...baseReward
|
|
4652
|
+
{ ...baseReward, ...fuelTankReward },
|
|
4653
|
+
{ ...baseReward, ...integrationReward },
|
|
4654
|
+
{ ...baseReward, ...pendingReward },
|
|
4655
|
+
{ ...baseReward, ...cancelledReward, ...nullExpiresIn, ...nullFuelTank },
|
|
4656
|
+
{ ...baseReward, ...expiredReward, ...nullFuelTank },
|
|
4662
4657
|
];
|
|
4663
4658
|
const eightRewards = [
|
|
4664
|
-
{ ...baseReward
|
|
4665
|
-
{ ...baseReward
|
|
4666
|
-
{ ...baseReward
|
|
4667
|
-
{ ...baseReward
|
|
4668
|
-
{ ...baseReward
|
|
4669
|
-
{ ...baseReward
|
|
4670
|
-
{ ...baseReward
|
|
4671
|
-
{ ...baseReward
|
|
4659
|
+
{ ...baseReward, ...redeemedReward, ...nullFuelTank },
|
|
4660
|
+
{ ...baseReward, ...availableReward, ...nullExpiresIn },
|
|
4661
|
+
{ ...baseReward, ...pendingReward },
|
|
4662
|
+
{ ...baseReward, ...cancelledReward },
|
|
4663
|
+
{ ...baseReward, ...expiredReward },
|
|
4664
|
+
{ ...baseReward, ...pendingReward, ...nullExpiresIn, ...nullScheduledFor },
|
|
4665
|
+
{ ...baseReward, ...cancelledReward },
|
|
4666
|
+
{ ...baseReward, ...expiredReward },
|
|
4672
4667
|
];
|
|
4673
4668
|
const tenRewards = [
|
|
4674
|
-
{ ...baseReward
|
|
4675
|
-
{ ...baseReward
|
|
4676
|
-
{ ...baseReward
|
|
4677
|
-
{ ...baseReward
|
|
4678
|
-
{ ...baseReward
|
|
4679
|
-
{ ...baseReward
|
|
4680
|
-
{ ...baseReward
|
|
4681
|
-
{ ...baseReward
|
|
4682
|
-
{ ...baseReward
|
|
4683
|
-
{ ...baseReward
|
|
4669
|
+
{ ...baseReward, ...integrationReward },
|
|
4670
|
+
{ ...baseReward, ...redeemedReward },
|
|
4671
|
+
{ ...baseReward, ...availableReward },
|
|
4672
|
+
{ ...baseReward, ...cancelledReward, ...nullExpiresIn },
|
|
4673
|
+
{ ...baseReward, ...expiredReward },
|
|
4674
|
+
{ ...baseReward, ...pendingReward },
|
|
4675
|
+
{ ...baseReward, ...discountReward },
|
|
4676
|
+
{ ...baseReward, ...fuelTankReward },
|
|
4677
|
+
{ ...baseReward, ...cancelledReward, ...nullExpiresIn },
|
|
4678
|
+
{ ...baseReward, ...creditReward },
|
|
4684
4679
|
];
|
|
4685
4680
|
function getSeconds() {
|
|
4686
4681
|
return luxon.luxon.DateTime.now().toMillis() + 10000;
|
|
@@ -4701,62 +4696,62 @@ function getYears() {
|
|
|
4701
4696
|
return luxon.luxon.DateTime.now().toMillis() + 200000000000;
|
|
4702
4697
|
}
|
|
4703
4698
|
const PendingNoUnpend = () => {
|
|
4704
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4699
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...pendingReward, ...nullScheduledFor }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4705
4700
|
};
|
|
4706
4701
|
const PendingNoUnpendNoDetails = () => {
|
|
4707
|
-
return (index.h("sqm-referral-table-rewards-cell", { hideDetails: true, rewards: [{ ...baseReward
|
|
4702
|
+
return (index.h("sqm-referral-table-rewards-cell", { hideDetails: true, rewards: [{ ...baseReward, ...pendingReward, ...nullScheduledFor }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4708
4703
|
};
|
|
4709
4704
|
const PendingWithUnpend = () => {
|
|
4710
4705
|
return [
|
|
4711
4706
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4712
|
-
{ ...baseReward
|
|
4707
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getSeconds() },
|
|
4713
4708
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4714
4709
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4715
|
-
{ ...baseReward
|
|
4710
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getMinutes() },
|
|
4716
4711
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4717
4712
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4718
|
-
{ ...baseReward
|
|
4713
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getHours() },
|
|
4719
4714
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4720
4715
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4721
|
-
{ ...baseReward
|
|
4716
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getDays() },
|
|
4722
4717
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4723
4718
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4724
|
-
{ ...baseReward
|
|
4719
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getMonths() },
|
|
4725
4720
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4726
4721
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4727
|
-
{ ...baseReward
|
|
4722
|
+
{ ...baseReward, ...pendingReward, dateScheduledFor: getYears() },
|
|
4728
4723
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4729
4724
|
];
|
|
4730
4725
|
};
|
|
4731
4726
|
const AvailableNoExpiry = () => {
|
|
4732
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4727
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...availableReward, ...nullExpiresIn }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4733
4728
|
};
|
|
4734
4729
|
const AvailableWithExpiry = () => {
|
|
4735
4730
|
return [
|
|
4736
4731
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4737
|
-
{ ...baseReward
|
|
4732
|
+
{ ...baseReward, ...availableReward, dateExpires: getSeconds() },
|
|
4738
4733
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4739
4734
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4740
|
-
{ ...baseReward
|
|
4735
|
+
{ ...baseReward, ...availableReward, dateExpires: getMinutes() },
|
|
4741
4736
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4742
|
-
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4743
|
-
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4737
|
+
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...availableReward, dateExpires: getHours() }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4738
|
+
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...availableReward, dateExpires: getDays() }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4744
4739
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
4745
|
-
{ ...baseReward
|
|
4740
|
+
{ ...baseReward, ...availableReward, dateExpires: getMonths() },
|
|
4746
4741
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4747
|
-
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4742
|
+
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...availableReward, dateExpires: getYears() }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
4748
4743
|
];
|
|
4749
4744
|
};
|
|
4750
4745
|
const Redeemed = () => {
|
|
4751
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4746
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...redeemedReward }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4752
4747
|
};
|
|
4753
4748
|
const Cancelled = () => {
|
|
4754
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4749
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...cancelledReward }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4755
4750
|
};
|
|
4756
4751
|
const Expired = () => {
|
|
4757
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward
|
|
4752
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...expiredReward }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4758
4753
|
};
|
|
4759
|
-
const EmptyCell
|
|
4754
|
+
const EmptyCell = () => {
|
|
4760
4755
|
return (index.h("sqm-referral-table-rewards-cell", { rewards: zeroRewards, statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
4761
4756
|
};
|
|
4762
4757
|
const oneRewardCell = () => {
|
|
@@ -4789,7 +4784,7 @@ const ReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
|
|
|
4789
4784
|
Redeemed: Redeemed,
|
|
4790
4785
|
Cancelled: Cancelled,
|
|
4791
4786
|
Expired: Expired,
|
|
4792
|
-
EmptyCell: EmptyCell
|
|
4787
|
+
EmptyCell: EmptyCell,
|
|
4793
4788
|
oneRewardCell: oneRewardCell,
|
|
4794
4789
|
twoRewardsCell: twoRewardsCell,
|
|
4795
4790
|
threeRewardsCell: threeRewardsCell,
|
|
@@ -4864,21 +4859,21 @@ const baseReward$1 = {
|
|
|
4864
4859
|
},
|
|
4865
4860
|
};
|
|
4866
4861
|
// Reward Status Cases
|
|
4867
|
-
const pendingReward = {
|
|
4862
|
+
const pendingReward$1 = {
|
|
4868
4863
|
statuses: ["AVAILABLE", "PENDING"],
|
|
4869
4864
|
};
|
|
4870
|
-
const cancelledReward = {
|
|
4865
|
+
const cancelledReward$1 = {
|
|
4871
4866
|
statuses: ["PENDING", "CANCELLED"],
|
|
4872
4867
|
dateCancelled: 1626850800000,
|
|
4873
4868
|
};
|
|
4874
|
-
const expiredReward = {
|
|
4869
|
+
const expiredReward$1 = {
|
|
4875
4870
|
statuses: ["EXPIRED", "AVAILABLE"],
|
|
4876
4871
|
dateExpires: 1626850800000,
|
|
4877
4872
|
};
|
|
4878
|
-
const availableReward = {
|
|
4873
|
+
const availableReward$1 = {
|
|
4879
4874
|
statuses: ["AVAILABLE"],
|
|
4880
4875
|
};
|
|
4881
|
-
const nullExpiresIn = {
|
|
4876
|
+
const nullExpiresIn$1 = {
|
|
4882
4877
|
dateExpires: null,
|
|
4883
4878
|
};
|
|
4884
4879
|
const simpleUserTableProps = {
|
|
@@ -5279,9 +5274,9 @@ const FullRewardsTable = () => {
|
|
|
5279
5274
|
[
|
|
5280
5275
|
index.h("sqm-referral-table-user-cell", { name: "Joe Smith" }),
|
|
5281
5276
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
5282
|
-
{ ...baseReward$1, ...availableReward },
|
|
5283
|
-
{ ...baseReward$1, ...pendingReward },
|
|
5284
|
-
{ ...baseReward$1, ...cancelledReward },
|
|
5277
|
+
{ ...baseReward$1, ...availableReward$1 },
|
|
5278
|
+
{ ...baseReward$1, ...pendingReward$1 },
|
|
5279
|
+
{ ...baseReward$1, ...cancelledReward$1 },
|
|
5285
5280
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
5286
5281
|
index.h("sqm-referral-table-status-cell", { statusText: "Complete", converted: true }),
|
|
5287
5282
|
index.h("sqm-referral-table-date-cell", { date: 1626764400000 }),
|
|
@@ -5289,7 +5284,7 @@ const FullRewardsTable = () => {
|
|
|
5289
5284
|
],
|
|
5290
5285
|
[
|
|
5291
5286
|
index.h("sqm-referral-table-user-cell", { name: "Sarah Williams" }),
|
|
5292
|
-
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward$1, ...expiredReward }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
5287
|
+
index.h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward$1, ...expiredReward$1 }], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
5293
5288
|
index.h("sqm-referral-table-status-cell", { statusText: "Incomplete", converted: false }),
|
|
5294
5289
|
index.h("sqm-referral-table-date-cell", { date: 1626764400000 }),
|
|
5295
5290
|
index.h("sqm-referral-table-date-cell", { date: null }),
|
|
@@ -5297,8 +5292,8 @@ const FullRewardsTable = () => {
|
|
|
5297
5292
|
[
|
|
5298
5293
|
index.h("sqm-referral-table-user-cell", { name: "Marvin Smith" }),
|
|
5299
5294
|
index.h("sqm-referral-table-rewards-cell", { rewards: [
|
|
5300
|
-
{ ...baseReward$1, ...nullExpiresIn },
|
|
5301
|
-
{ ...baseReward$1, ...pendingReward },
|
|
5295
|
+
{ ...baseReward$1, ...nullExpiresIn$1 },
|
|
5296
|
+
{ ...baseReward$1, ...pendingReward$1 },
|
|
5302
5297
|
], statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }),
|
|
5303
5298
|
index.h("sqm-referral-table-status-cell", { statusText: "Complete", converted: true }),
|
|
5304
5299
|
index.h("sqm-referral-table-date-cell", { date: 1626764400000 }),
|
|
@@ -5309,7 +5304,7 @@ const FullRewardsTable = () => {
|
|
|
5309
5304
|
} }));
|
|
5310
5305
|
};
|
|
5311
5306
|
|
|
5312
|
-
const ReferralTable
|
|
5307
|
+
const ReferralTable = /*#__PURE__*/Object.freeze({
|
|
5313
5308
|
__proto__: null,
|
|
5314
5309
|
'default': ReferralTable_stories,
|
|
5315
5310
|
SimpleUserTable: SimpleUserTable,
|
|
@@ -5332,13 +5327,13 @@ const TableCell = () => {
|
|
|
5332
5327
|
const TableUserCell = () => {
|
|
5333
5328
|
return (index.h("sqm-referral-table-user-cell", { name: "Table User Cell Text" }));
|
|
5334
5329
|
};
|
|
5335
|
-
const EmptyCell$
|
|
5330
|
+
const EmptyCell$1 = () => (index.h("sqm-sqm-referral-table-cell", null, "-"));
|
|
5336
5331
|
const StatusCell = () => {
|
|
5337
5332
|
return (index.h("div", null,
|
|
5338
5333
|
index.h("sqm-referral-table-status-cell", { statusText: "Complete", converted: true }),
|
|
5339
5334
|
index.h("sqm-referral-table-status-cell", { statusText: "In Progress", converted: false })));
|
|
5340
5335
|
};
|
|
5341
|
-
const DateCell
|
|
5336
|
+
const DateCell = () => {
|
|
5342
5337
|
return (index.h("sqm-referral-table-date-cell", { date: 800000000000 }));
|
|
5343
5338
|
};
|
|
5344
5339
|
/*
|
|
@@ -5347,7 +5342,7 @@ const DateCell$1 = () => {
|
|
|
5347
5342
|
- Empty and Loading states for tables
|
|
5348
5343
|
- Build rewards for every type of reward
|
|
5349
5344
|
*/
|
|
5350
|
-
const rewardsData
|
|
5345
|
+
const rewardsData = {
|
|
5351
5346
|
id: "123",
|
|
5352
5347
|
type: "CREDIT",
|
|
5353
5348
|
value: 19,
|
|
@@ -5381,7 +5376,7 @@ const rewardsData$1 = {
|
|
|
5381
5376
|
],
|
|
5382
5377
|
},
|
|
5383
5378
|
};
|
|
5384
|
-
const rewards = [rewardsData
|
|
5379
|
+
const rewards = [rewardsData];
|
|
5385
5380
|
const RewardsCell = () => {
|
|
5386
5381
|
return (index.h("sqm-referral-table-rewards-cell", { rewards: rewards, statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }", statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }", fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}" }));
|
|
5387
5382
|
};
|
|
@@ -5391,9 +5386,9 @@ const ReferralTableCell = /*#__PURE__*/Object.freeze({
|
|
|
5391
5386
|
'default': ReferralTableCell_stories,
|
|
5392
5387
|
TableCell: TableCell,
|
|
5393
5388
|
TableUserCell: TableUserCell,
|
|
5394
|
-
EmptyCell: EmptyCell$
|
|
5389
|
+
EmptyCell: EmptyCell$1,
|
|
5395
5390
|
StatusCell: StatusCell,
|
|
5396
|
-
DateCell: DateCell
|
|
5391
|
+
DateCell: DateCell,
|
|
5397
5392
|
RewardsCell: RewardsCell
|
|
5398
5393
|
});
|
|
5399
5394
|
|
|
@@ -5532,9 +5527,9 @@ function cartesian(...args) {
|
|
|
5532
5527
|
return r;
|
|
5533
5528
|
}
|
|
5534
5529
|
|
|
5535
|
-
const scenarioTaskCard = "@author:derek\r\n@owner
|
|
5530
|
+
const scenarioTaskCard = "@author:derek\r\n@owner:kutay\r\nFeature: Task Card\r\n\r\n\t@motivating\r\n\tScenario: A header, body title and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | \"40\" |\r\n\t\t\t| rewardUnit | \"Points\" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see \"40 Points\" as the heading\r\n\t\tAnd the \"40\" is bolded\r\n\t\tAnd they see \"Complete a survey\" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text \"Take Survey\" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to \"example.com\" in a new window\r\n\r\n\t@motivating\r\n\tScenario Outline: A Task Card description can be included but is not required\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <descriptionPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tThen they <maySee> a chevron icon in the top right\r\n\t\tWhen they attempt to click the chevron\r\n\t\tThen they <maySee> the card description\r\n\t\tExamples:\r\n\t\t\t| descriptionPropValue | maySee |\r\n\t\t\t| This is my task card description | see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\tScenario Outline: CTA links can open in a new tab or the same tab\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <openNewTabPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tAnd they click on the CTA\r\n\t\tThen they are redirected to the CTA link in <tab>\r\n\t\tExamples:\r\n\t\t\t| openNewTabPropValue | tab |\r\n\t\t\t| true | a new tab |\r\n\t\t\t| false | the same tab |\r\n\t\t\t| N/A | the same tab |\r\n\r\n\t@minutae\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\t@motivating\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <showProgressBarPropValue>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| showProgressBarPropValue | mayBe |\r\n\t\t\t| true | is |\r\n\t\t\t| false | isn't |\r\n\t\t\t| N/A | isn't |\r\n\r\n\t@motivating\r\n\tScenario: Clicking the CTA Button can trigger an event to be sent and refresh the widget\r\n\t\tGiven a Task card\r\n\t\tAnd it is configured to send an \"test\" event\r\n\t\tWhen a user views the Task card\r\n\t\tAnd clicks on the CTA\r\n\t\tThen a \"test\" event is sent to SSQT on the users behalf\r\n\t\tAnd the contents of the widget the card is dislayed within are refreshed\r\n\r\n\t@motivating\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <repeatablePropValue>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they view the Task Card\r\n\t\tThen they see a brand colour checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> brand colour\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| repeatablePropValue | mayBe |\r\n\t\t\t| true | isn't |\r\n\t\t\t| false | is |\r\n\t\t\t| N/A | is |\r\n\r\n\t@motivating\r\n\tScenario Outline: Display duration hides or shows a task\r\n\t\tGiven a Task Card\r\n\t\tAnd it has a \"display-duration\" interval\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen card <mayBeHidden>\r\n\t\tExamples:\r\n\t\t\t| day | mayBeHidden |\r\n\t\t\t| a day before the interval | is hidden |\r\n\t\t\t| a day during the interval | is not hidden |\r\n\t\t\t| a day after the interval | is hidden |\r\n\r\n\t@motivating\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card\r\n\t\tAnd it has an \"reward-duration\" interval\r\n\t\tAnd it is configured to show expiry\r\n\t\tWhen a user views the card on <day>\r\n\t\tThen the card <mayBeDisabled>\r\n\t\tAnd it <mayHaveAlert>\r\n\t\tAnd it <mayHaveExpiryText> on the bottom left hand side of the card\r\n\t\tExamples:\r\n\t\t\t| day | mayBeDisabled | mayHaveAlert | mayHaveExpiryText |\r\n\t\t\t| a day before the expiry interval | is disabled | has alert stating the month, date, year and time the task starts | doesn't have expiry text |\r\n\t\t\t| a day during the expiry interval | isn't disabled | doesn't have an alert | has the month, date, year and time the task expires |\r\n\t\t\t| a day after the expiry interval | is disabled | has alert stating the month, date, year and time the task expired | doesn't have expiry text |\r\n\r\n\t@minutae\r\n\tScenario Outline: Task expiry can be hidden or shown but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured with an expiry duration interval\r\n\t\tAnd it has <showExpiryPropValue>\r\n\t\tWhen a user views the Task card during the interval\r\n\t\tThen the expiry <mayBe> shown in the bottom left hand corner\r\n\t\tAnd it is in form \"Month-Date-Year-Time\"\r\n\t\tExamples:\r\n\t\t\t| showExpiryPropValue | mayBe |\r\n\t\t\t| true | is |\r\n\t\t\t| false | isn't |\r\n\t\t\t| N/A | isn't |\r\n\r\n\t@motivating\r\n\tScenario Outline: Task Card dates support localization\r\n\t\tGiven a Task Card\r\n\t\tAnd it's configured with a expiry duration interval\r\n\t\tWhen a user with <locale> views the task card <atTime>\r\n\t\tThen they <seeDate> translated for <locale>\r\n\t\tExamples:\r\n\t\t\t| atTime | locale | seeDate |\r\n\t\t\t| before the interval | en | Task Start Date |\r\n\t\t\t| during the interval | en | Task End Date |\r\n\t\t\t| after the interval | en | Task Ended Date |\r\n\t\t\t| before the interval | fr | Task Start Date |\r\n\t\t\t| during the interval | fr | Task End Date |\r\n\t\t\t| after the interval | fr | Task Ended Date |\r\n\r\n\t@motivating\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for a repeatable task\r\n\t\tAnd has it has <goalValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is brand colour\r\n\t\tExamples:\r\n\t\t\t| goalValue | userGoalProgress | text |\r\n\t\t\t| 2 | 0 | Completed 0 times |\r\n\t\t\t| 2 | 1 | Completed 0 times |\r\n\t\t\t| 2 | 2 | Completed 1 times |\r\n\t\t\t| 2 | 4 | Completed 2 times |\r\n\r\n\t@motivating\r\n\tScenario Outline: The source of a user's progress can be a custom field or a program goal\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured <progressSourcePath>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the \"Goal Completion Count\"\r\n\t\tExamples:\r\n\t\t\t| progressSourcePath |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\t@motivating\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\t@motivating\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured \"goal\" value\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn't |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |";
|
|
5536
5531
|
|
|
5537
|
-
const scenarioProgressBar = "@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t|
|
|
5532
|
+
const scenarioProgressBar = "@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t| 0 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 100 | 500 | ―――――――――●―――――――――🎁 | $ | no |\r\n\t\t\t| 500 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 650 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1200 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\tScenario Outline: Progress Bar Steps\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps up to <goal>\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | color |\r\n\t\t\t| 0 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | 5 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 7 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 12 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\r\n\r\n\tScenario Outline: Progress Bar Repeatable\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd first <icon1> is <color1> with <text1> displayed below\r\n\t\tAnd second <icon2> is <color2> with <text2> displayed below\r\n\t\tAnd third <icon3> is <color3> with <text3> displayed below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\r\n\t\t\t| 250 | 500 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 500 | 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 750 | 500 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 1000 | 500 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\t\t\t| 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\r\n\tScenario Outline: Progress Bar Steps Repeatable\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd steps is enabled\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps up to <goal>\r\n\t\tAnd first <icon1> is <color1>\r\n\t\tAnd second <icon2> is <color2>\r\n\t\tAnd third <icon3> is <color3>\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\r\n\t\t\t| 0 | 5 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 1 | 5 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 5 | 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 7 | 5 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 12 | 5 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
|
|
5538
5533
|
|
|
5539
5534
|
const ResizerStylesheet = `
|
|
5540
5535
|
|
|
@@ -5612,7 +5607,7 @@ const oneAction = {
|
|
|
5612
5607
|
loadingEvent: false,
|
|
5613
5608
|
},
|
|
5614
5609
|
};
|
|
5615
|
-
const coupleActions
|
|
5610
|
+
const coupleActions = {
|
|
5616
5611
|
callbacks: {
|
|
5617
5612
|
sendEvent: () => void 0,
|
|
5618
5613
|
onClick: () => void 0,
|
|
@@ -5644,7 +5639,7 @@ const coupleActions$1 = {
|
|
|
5644
5639
|
loadingEvent: false,
|
|
5645
5640
|
},
|
|
5646
5641
|
};
|
|
5647
|
-
const manyActions
|
|
5642
|
+
const manyActions = {
|
|
5648
5643
|
callbacks: {
|
|
5649
5644
|
sendEvent: () => void 0,
|
|
5650
5645
|
onClick: () => void 0,
|
|
@@ -5673,7 +5668,7 @@ const manyActions$1 = {
|
|
|
5673
5668
|
},
|
|
5674
5669
|
states: { progress: 100, loading: false, loadingEvent: false },
|
|
5675
5670
|
};
|
|
5676
|
-
const TaskCard = () => {
|
|
5671
|
+
const TaskCard$1 = () => {
|
|
5677
5672
|
const expire = {
|
|
5678
5673
|
showExpiry: true,
|
|
5679
5674
|
rewardDuration: "2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",
|
|
@@ -5684,30 +5679,30 @@ const TaskCard = () => {
|
|
|
5684
5679
|
index.h("h4", null, "Not Repeatable"),
|
|
5685
5680
|
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, description: "" }, states: { ...oneAction.states, progress: 0 } })),
|
|
5686
5681
|
index.h("h5", null),
|
|
5687
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5682
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, description: "" }, states: { ...coupleActions.states, progress: 0 } })),
|
|
5688
5683
|
index.h("h5", null),
|
|
5689
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5684
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, description: "" }, states: { ...manyActions.states, progress: 230 } }))),
|
|
5690
5685
|
index.h(Resizer, null,
|
|
5691
5686
|
index.h("h4", null, "Repeatable"),
|
|
5692
5687
|
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 2 } })),
|
|
5693
5688
|
index.h("h5", null),
|
|
5694
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5689
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
5695
5690
|
index.h("h5", null),
|
|
5696
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5691
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } }))),
|
|
5697
5692
|
index.h(Resizer, null,
|
|
5698
5693
|
index.h("h4", null, "Complete"),
|
|
5699
5694
|
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 } })),
|
|
5700
5695
|
index.h("h5", null),
|
|
5701
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5696
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
5702
5697
|
index.h("h5", null),
|
|
5703
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5698
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } }))),
|
|
5704
5699
|
index.h(Resizer, null,
|
|
5705
5700
|
index.h("h4", null, "Unavailable"),
|
|
5706
5701
|
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 } }, expireRepeat)),
|
|
5707
5702
|
index.h("h5", null),
|
|
5708
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5703
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 3 } }, expireRepeat)),
|
|
5709
5704
|
index.h("h5", null),
|
|
5710
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5705
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 250 } }, expireRepeat)))));
|
|
5711
5706
|
};
|
|
5712
5707
|
const TaskCardNotRepeatable = () => {
|
|
5713
5708
|
return (index.h("div", { style: storyFrame },
|
|
@@ -5719,15 +5714,15 @@ const TaskCardNotRepeatable = () => {
|
|
|
5719
5714
|
index.h("h5", null)),
|
|
5720
5715
|
index.h("div", { style: resizable },
|
|
5721
5716
|
index.h("h4", null, "A Couple Actions"),
|
|
5722
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5717
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 } })),
|
|
5723
5718
|
index.h("h5", null),
|
|
5724
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5719
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
5725
5720
|
index.h("h5", null)),
|
|
5726
5721
|
index.h("div", { style: resizable },
|
|
5727
5722
|
index.h("h4", null, "Many Actions"),
|
|
5728
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5723
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 230 } })),
|
|
5729
5724
|
index.h("h5", null),
|
|
5730
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5725
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } })),
|
|
5731
5726
|
index.h("h5", null))));
|
|
5732
5727
|
};
|
|
5733
5728
|
const TaskCardRepeatable = () => {
|
|
@@ -5740,23 +5735,23 @@ const TaskCardRepeatable = () => {
|
|
|
5740
5735
|
index.h("h5", null)),
|
|
5741
5736
|
index.h("div", { style: resizable },
|
|
5742
5737
|
index.h("h4", null, "A Couple Actions"),
|
|
5743
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5738
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 0 } })),
|
|
5744
5739
|
index.h("h5", null),
|
|
5745
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5740
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 5 } })),
|
|
5746
5741
|
index.h("h5", null),
|
|
5747
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5742
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
5748
5743
|
index.h("h5", null),
|
|
5749
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5744
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 10 } })),
|
|
5750
5745
|
index.h("h5", null)),
|
|
5751
5746
|
index.h("div", { style: resizable },
|
|
5752
5747
|
index.h("h4", null, "Many Actions"),
|
|
5753
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5748
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 0 } })),
|
|
5754
5749
|
index.h("h5", null),
|
|
5755
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5750
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 500 } })),
|
|
5756
5751
|
index.h("h5", null),
|
|
5757
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5752
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } })),
|
|
5758
5753
|
index.h("h5", null),
|
|
5759
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5754
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 1000 } })),
|
|
5760
5755
|
index.h("h5", null))));
|
|
5761
5756
|
};
|
|
5762
5757
|
const TaskCardRepeatableFinite = () => {
|
|
@@ -5771,27 +5766,27 @@ const TaskCardRepeatableFinite = () => {
|
|
|
5771
5766
|
index.h("h5", null)),
|
|
5772
5767
|
index.h("div", { style: resizable },
|
|
5773
5768
|
index.h("h4", null, "A Couple Actions"),
|
|
5774
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5769
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 2 } })),
|
|
5775
5770
|
index.h("h5", null),
|
|
5776
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5771
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 5 } })),
|
|
5777
5772
|
index.h("h5", null),
|
|
5778
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5773
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 10 } })),
|
|
5779
5774
|
index.h("h5", null),
|
|
5780
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5775
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 12 } })),
|
|
5781
5776
|
index.h("h5", null),
|
|
5782
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5777
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 15 } })),
|
|
5783
5778
|
index.h("h5", null)),
|
|
5784
5779
|
index.h("div", { style: resizable },
|
|
5785
5780
|
index.h("h4", null, "Many Actions"),
|
|
5786
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5781
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 200 } })),
|
|
5787
5782
|
index.h("h5", null),
|
|
5788
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5783
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 500 } })),
|
|
5789
5784
|
index.h("h5", null),
|
|
5790
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5785
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 1000 } })),
|
|
5791
5786
|
index.h("h5", null),
|
|
5792
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5787
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1200 } })),
|
|
5793
5788
|
index.h("h5", null),
|
|
5794
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5789
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1500 } })),
|
|
5795
5790
|
index.h("h5", null))));
|
|
5796
5791
|
};
|
|
5797
5792
|
const TaskCardEndDate = () => {
|
|
@@ -5813,19 +5808,19 @@ const TaskCardEndDate = () => {
|
|
|
5813
5808
|
index.h("h5", null)),
|
|
5814
5809
|
index.h("div", { style: resizable },
|
|
5815
5810
|
index.h("h4", null, "A Couple Actions"),
|
|
5816
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions
|
|
5811
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expire } })),
|
|
5817
5812
|
index.h("h5", null),
|
|
5818
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions
|
|
5813
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat } })),
|
|
5819
5814
|
index.h("h5", null),
|
|
5820
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions
|
|
5815
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat }, states: { ...coupleActions.states, progress: 5 } })),
|
|
5821
5816
|
index.h("h5", null)),
|
|
5822
5817
|
index.h("div", { style: resizable },
|
|
5823
5818
|
index.h("h4", null, "Many Actions"),
|
|
5824
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions
|
|
5819
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expire } })),
|
|
5825
5820
|
index.h("h5", null),
|
|
5826
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions
|
|
5821
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat } })),
|
|
5827
5822
|
index.h("h5", null),
|
|
5828
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions
|
|
5823
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat }, states: { ...manyActions.states, progress: 1000 } })),
|
|
5829
5824
|
index.h("h5", null))));
|
|
5830
5825
|
};
|
|
5831
5826
|
const TaskCardLoading = () => {
|
|
@@ -5843,18 +5838,18 @@ const TaskCardLoading = () => {
|
|
|
5843
5838
|
index.h("h5", null)),
|
|
5844
5839
|
index.h("div", { style: resizable },
|
|
5845
5840
|
index.h("h4", null, "A Couple Actions"),
|
|
5846
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5841
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
5847
5842
|
" ",
|
|
5848
5843
|
index.h("h5", null),
|
|
5849
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5844
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
5850
5845
|
" ",
|
|
5851
5846
|
index.h("h5", null)),
|
|
5852
5847
|
index.h("div", { style: resizable },
|
|
5853
5848
|
index.h("h4", null, "Many Actions"),
|
|
5854
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5849
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
5855
5850
|
" ",
|
|
5856
5851
|
index.h("h5", null),
|
|
5857
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5852
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
5858
5853
|
" ",
|
|
5859
5854
|
index.h("h5", null))));
|
|
5860
5855
|
};
|
|
@@ -5879,23 +5874,23 @@ const TaskCardNotStarted = () => {
|
|
|
5879
5874
|
index.h("h5", null)),
|
|
5880
5875
|
index.h("div", { style: resizable },
|
|
5881
5876
|
index.h("h4", null, "A Couple Actions"),
|
|
5882
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5877
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
5883
5878
|
index.h("h5", null),
|
|
5884
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5879
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
5885
5880
|
index.h("h5", null),
|
|
5886
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5881
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
5887
5882
|
index.h("h5", null),
|
|
5888
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5883
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
5889
5884
|
index.h("h5", null)),
|
|
5890
5885
|
index.h("div", { style: resizable },
|
|
5891
5886
|
index.h("h4", null, "Many Actions"),
|
|
5892
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5887
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
5893
5888
|
index.h("h5", null),
|
|
5894
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5889
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
5895
5890
|
index.h("h5", null),
|
|
5896
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5891
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
5897
5892
|
index.h("h5", null),
|
|
5898
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5893
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
5899
5894
|
index.h("h5", null))));
|
|
5900
5895
|
};
|
|
5901
5896
|
const TaskCardEnded = () => {
|
|
@@ -5919,23 +5914,23 @@ const TaskCardEnded = () => {
|
|
|
5919
5914
|
index.h("h5", null)),
|
|
5920
5915
|
index.h("div", { style: resizable },
|
|
5921
5916
|
index.h("h4", null, "A Couple Actions"),
|
|
5922
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5917
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
5923
5918
|
index.h("h5", null),
|
|
5924
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5919
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
5925
5920
|
index.h("h5", null),
|
|
5926
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5921
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
5927
5922
|
index.h("h5", null),
|
|
5928
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions
|
|
5923
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
5929
5924
|
index.h("h5", null)),
|
|
5930
5925
|
index.h("div", { style: resizable },
|
|
5931
5926
|
index.h("h4", null, "Many Actions"),
|
|
5932
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5927
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
5933
5928
|
index.h("h5", null),
|
|
5934
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5929
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
5935
5930
|
index.h("h5", null),
|
|
5936
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5931
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
5937
5932
|
index.h("h5", null),
|
|
5938
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions
|
|
5933
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
5939
5934
|
index.h("h5", null))));
|
|
5940
5935
|
};
|
|
5941
5936
|
const ProgressBar = () => {
|
|
@@ -5955,7 +5950,7 @@ const ProgressBarSteps = () => {
|
|
|
5955
5950
|
progressBarUnit: "$",
|
|
5956
5951
|
};
|
|
5957
5952
|
return (index.h("div", null,
|
|
5958
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7] }, props: props, Component: AutoColor.ProgressBarView })));
|
|
5953
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: AutoColor.ProgressBarView })));
|
|
5959
5954
|
};
|
|
5960
5955
|
const ProgressBarRepeatable = () => {
|
|
5961
5956
|
const props = {
|
|
@@ -5965,7 +5960,7 @@ const ProgressBarRepeatable = () => {
|
|
|
5965
5960
|
repeatable: true,
|
|
5966
5961
|
};
|
|
5967
5962
|
return (index.h("div", null,
|
|
5968
|
-
index.h(MatrixStory, { matrix: { progress: [0,
|
|
5963
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: AutoColor.ProgressBarView })));
|
|
5969
5964
|
};
|
|
5970
5965
|
const ProgressBarStepsRepeatable = () => {
|
|
5971
5966
|
const props = {
|
|
@@ -5991,10 +5986,10 @@ const ProgressBarStepsRepeatableFinite = () => {
|
|
|
5991
5986
|
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component: AutoColor.ProgressBarView })));
|
|
5992
5987
|
};
|
|
5993
5988
|
|
|
5994
|
-
const TaskCard$
|
|
5989
|
+
const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
5995
5990
|
__proto__: null,
|
|
5996
5991
|
'default': TaskCard_stories,
|
|
5997
|
-
TaskCard: TaskCard,
|
|
5992
|
+
TaskCard: TaskCard$1,
|
|
5998
5993
|
TaskCardNotRepeatable: TaskCardNotRepeatable,
|
|
5999
5994
|
TaskCardRepeatable: TaskCardRepeatable,
|
|
6000
5995
|
TaskCardRepeatableFinite: TaskCardRepeatableFinite,
|
|
@@ -6058,7 +6053,7 @@ var marked = stencilHooks_module.createCommonjsModule(function (module, exports)
|
|
|
6058
6053
|
*/
|
|
6059
6054
|
|
|
6060
6055
|
(function (global, factory) {
|
|
6061
|
-
|
|
6056
|
+
module.exports = factory() ;
|
|
6062
6057
|
}(stencilHooks_module.commonjsGlobal, (function () {
|
|
6063
6058
|
function _defineProperties(target, props) {
|
|
6064
6059
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -9021,7 +9016,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
|
|
|
9021
9016
|
|
|
9022
9017
|
const ForgotPasswordReadme = "# sqm-portal-forgot-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------- | --------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\r\n| `redirectPath` | `redirect-path` | The page that users are redirected to from the password reset email. | `string` | `\"/resetPassword\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --> sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9023
9018
|
|
|
9024
|
-
const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\
|
|
9019
|
+
const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------------------- | ---------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `redirectPath` | `redirect-path` | The page that users are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9025
9020
|
|
|
9026
9021
|
const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\r\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --> sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9027
9022
|
|
|
@@ -9041,7 +9036,7 @@ const PortalTemplates_stories = {
|
|
|
9041
9036
|
// padding="large"
|
|
9042
9037
|
// show-powered-by="false"
|
|
9043
9038
|
// powered-by-link="https://www.saasquatch.com/"
|
|
9044
|
-
function useTemplate(templateString) {
|
|
9039
|
+
function useTemplate$1(templateString) {
|
|
9045
9040
|
const [editedTemplate, setEditedTemplate] = stencilHooks_module.useState(templateString);
|
|
9046
9041
|
const [previewTemplate, setPreviewTemplate] = stencilHooks_module.useState(templateString);
|
|
9047
9042
|
return {
|
|
@@ -9049,7 +9044,7 @@ function useTemplate(templateString) {
|
|
|
9049
9044
|
callbacks: { setEditedTemplate, setPreviewTemplate },
|
|
9050
9045
|
};
|
|
9051
9046
|
}
|
|
9052
|
-
function TemplateView(props) {
|
|
9047
|
+
function TemplateView$1(props) {
|
|
9053
9048
|
const { states, callbacks, readme } = props;
|
|
9054
9049
|
return [
|
|
9055
9050
|
index.h("textarea", { style: { width: "100%", height: "300px" }, onChange: (e) => callbacks.setEditedTemplate(e.target.value) }, states.editedTemplate),
|
|
@@ -9076,70 +9071,70 @@ function DefaultTemplateView(props) {
|
|
|
9076
9071
|
gridTemplateColumns: "repeat(9, 80px)",
|
|
9077
9072
|
gridGap: "10px",
|
|
9078
9073
|
} },
|
|
9079
|
-
index.h("button", { onClick: () => index_module.
|
|
9080
|
-
props.leadSubmit && (index.h("button", { onClick: () => index_module.
|
|
9081
|
-
index.h("button", { onClick: () => index_module.
|
|
9082
|
-
index.h("button", { onClick: () => index_module.
|
|
9083
|
-
index.h("button", { onClick: () => index_module.
|
|
9084
|
-
index.h("button", { onClick: () => index_module.
|
|
9085
|
-
index.h("button", { onClick: () => index_module.
|
|
9086
|
-
index.h("button", { onClick: () => index_module.
|
|
9087
|
-
index.h("button", { onClick: () => index_module.
|
|
9088
|
-
index.h("button", { onClick: () => index_module.
|
|
9074
|
+
index.h("button", { onClick: () => index_module.pn.push("/") }, "Dashboard"),
|
|
9075
|
+
props.leadSubmit && (index.h("button", { onClick: () => index_module.pn.push("/refer") }, "Submit a Referral")),
|
|
9076
|
+
index.h("button", { onClick: () => index_module.pn.push("/activity") }, "Activity"),
|
|
9077
|
+
index.h("button", { onClick: () => index_module.pn.push("/editProfile") }, "Edit Profile"),
|
|
9078
|
+
index.h("button", { onClick: () => index_module.pn.push("/login") }, "Login"),
|
|
9079
|
+
index.h("button", { onClick: () => index_module.pn.push("/register") }, "Register"),
|
|
9080
|
+
index.h("button", { onClick: () => index_module.pn.push("/emailVerification") }, "Email Verification"),
|
|
9081
|
+
index.h("button", { onClick: () => index_module.pn.push("/verifyEmail") }, "Verify Email"),
|
|
9082
|
+
index.h("button", { onClick: () => index_module.pn.push("/forgotPassword") }, "Forgot Password"),
|
|
9083
|
+
index.h("button", { onClick: () => index_module.pn.push("/resetPassword") }, "Reset Password")),
|
|
9089
9084
|
index.h("br", null),
|
|
9090
9085
|
index.h("div", { innerHTML: states.previewTemplate })));
|
|
9091
9086
|
}
|
|
9092
9087
|
const DefaultPortal = createHookStory(() => {
|
|
9093
|
-
const { states, callbacks } = useTemplate(portalTemplate);
|
|
9088
|
+
const { states, callbacks } = useTemplate$1(portalTemplate);
|
|
9094
9089
|
return (index.h(DefaultTemplateView, { states: states, callbacks: callbacks, template: portalTemplateWithDashboard }));
|
|
9095
9090
|
});
|
|
9096
9091
|
const MultiProgramPortal = createHookStory(() => {
|
|
9097
|
-
const { states, callbacks } = useTemplate(multiProgramTemplate);
|
|
9092
|
+
const { states, callbacks } = useTemplate$1(multiProgramTemplate);
|
|
9098
9093
|
return (index.h(DefaultTemplateView, { states: states, callbacks: callbacks, template: multiProgramTemplateWithDashboard }));
|
|
9099
9094
|
});
|
|
9100
9095
|
const LeadSubmitPortal = createHookStory(() => {
|
|
9101
|
-
const { states, callbacks } = useTemplate(portalLeadSubmitTemplate);
|
|
9096
|
+
const { states, callbacks } = useTemplate$1(portalLeadSubmitTemplate);
|
|
9102
9097
|
return (index.h(DefaultTemplateView, { states: states, callbacks: callbacks, template: portalLeadSubmitTemplateWithDashboard, leadSubmit: true }));
|
|
9103
9098
|
});
|
|
9104
9099
|
const Login = createHookStory(() => {
|
|
9105
|
-
const { states, callbacks } = useTemplate(loginTemplate);
|
|
9106
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: LoginReadme }));
|
|
9100
|
+
const { states, callbacks } = useTemplate$1(loginTemplate);
|
|
9101
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: LoginReadme }));
|
|
9107
9102
|
});
|
|
9108
9103
|
const ForgotPassword = createHookStory(() => {
|
|
9109
|
-
const { states, callbacks } = useTemplate(forgotPasswordTemplate);
|
|
9110
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: ForgotPasswordReadme }));
|
|
9104
|
+
const { states, callbacks } = useTemplate$1(forgotPasswordTemplate);
|
|
9105
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: ForgotPasswordReadme }));
|
|
9111
9106
|
});
|
|
9112
9107
|
const Register = createHookStory(() => {
|
|
9113
|
-
const { states, callbacks } = useTemplate(registerTemplate);
|
|
9114
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: RegisterReadme }));
|
|
9108
|
+
const { states, callbacks } = useTemplate$1(registerTemplate);
|
|
9109
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: RegisterReadme }));
|
|
9115
9110
|
});
|
|
9116
|
-
const Dashboard = createHookStory(() => {
|
|
9117
|
-
const { states, callbacks } = useTemplate(dashboardTemplate);
|
|
9118
|
-
return index.h(TemplateView, { states: states, callbacks: callbacks });
|
|
9111
|
+
const Dashboard$1 = createHookStory(() => {
|
|
9112
|
+
const { states, callbacks } = useTemplate$1(dashboardTemplate);
|
|
9113
|
+
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
9119
9114
|
});
|
|
9120
9115
|
const LeadSubmitIframe = createHookStory(() => {
|
|
9121
|
-
const { states, callbacks } = useTemplate(leadSubmitTemplate);
|
|
9122
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: ReferralIframeReadme }));
|
|
9116
|
+
const { states, callbacks } = useTemplate$1(leadSubmitTemplate);
|
|
9117
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: ReferralIframeReadme }));
|
|
9123
9118
|
});
|
|
9124
|
-
const Activity = createHookStory(() => {
|
|
9125
|
-
const { states, callbacks } = useTemplate(activityTemplate);
|
|
9126
|
-
return index.h(TemplateView, { states: states, callbacks: callbacks });
|
|
9119
|
+
const Activity$1 = createHookStory(() => {
|
|
9120
|
+
const { states, callbacks } = useTemplate$1(activityTemplate);
|
|
9121
|
+
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
9127
9122
|
});
|
|
9128
|
-
const EditProfile = createHookStory(() => {
|
|
9129
|
-
const { states, callbacks } = useTemplate(editProfileTemplate);
|
|
9130
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: EditProfileReadme }));
|
|
9123
|
+
const EditProfile$2 = createHookStory(() => {
|
|
9124
|
+
const { states, callbacks } = useTemplate$1(editProfileTemplate);
|
|
9125
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: EditProfileReadme }));
|
|
9131
9126
|
});
|
|
9132
9127
|
const ResetPassword = createHookStory(() => {
|
|
9133
|
-
const { states, callbacks } = useTemplate(resetPasswordTemplate);
|
|
9134
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: ResetPasswordReadme }));
|
|
9128
|
+
const { states, callbacks } = useTemplate$1(resetPasswordTemplate);
|
|
9129
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: ResetPasswordReadme }));
|
|
9135
9130
|
});
|
|
9136
9131
|
const EmailVerification = createHookStory(() => {
|
|
9137
|
-
const { states, callbacks } = useTemplate(emailVerificationTemplate);
|
|
9138
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: EmailVerificationReadme }));
|
|
9132
|
+
const { states, callbacks } = useTemplate$1(emailVerificationTemplate);
|
|
9133
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: EmailVerificationReadme }));
|
|
9139
9134
|
});
|
|
9140
9135
|
const EmailVerified = createHookStory(() => {
|
|
9141
|
-
const { states, callbacks } = useTemplate(emailVerifiedTemplate);
|
|
9142
|
-
return (index.h(TemplateView, { states: states, callbacks: callbacks, readme: EmailVerifiedReadme }));
|
|
9136
|
+
const { states, callbacks } = useTemplate$1(emailVerifiedTemplate);
|
|
9137
|
+
return (index.h(TemplateView$1, { states: states, callbacks: callbacks, readme: EmailVerifiedReadme }));
|
|
9143
9138
|
});
|
|
9144
9139
|
const Widget = createHookStory(() => {
|
|
9145
9140
|
return (index.h("sqb-widget", { "widget-type": "p/Vacay-referral/w/referrerWidget", demoData: {
|
|
@@ -9149,12 +9144,12 @@ const Widget = createHookStory(() => {
|
|
|
9149
9144
|
} }));
|
|
9150
9145
|
});
|
|
9151
9146
|
const ResetPasswordEmail = createHookStory(() => {
|
|
9152
|
-
const { states, callbacks } = useTemplate(resetPasswordEmailTemplate);
|
|
9153
|
-
return index.h(TemplateView, { states: states, callbacks: callbacks });
|
|
9147
|
+
const { states, callbacks } = useTemplate$1(resetPasswordEmailTemplate);
|
|
9148
|
+
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
9154
9149
|
});
|
|
9155
9150
|
const VerifyEmail = createHookStory(() => {
|
|
9156
|
-
const { states, callbacks } = useTemplate(verifyEmailTemplate);
|
|
9157
|
-
return index.h(TemplateView, { states: states, callbacks: callbacks });
|
|
9151
|
+
const { states, callbacks } = useTemplate$1(verifyEmailTemplate);
|
|
9152
|
+
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
9158
9153
|
});
|
|
9159
9154
|
|
|
9160
9155
|
const PortalTemplates = /*#__PURE__*/Object.freeze({
|
|
@@ -9166,10 +9161,10 @@ const PortalTemplates = /*#__PURE__*/Object.freeze({
|
|
|
9166
9161
|
Login: Login,
|
|
9167
9162
|
ForgotPassword: ForgotPassword,
|
|
9168
9163
|
Register: Register,
|
|
9169
|
-
Dashboard: Dashboard,
|
|
9164
|
+
Dashboard: Dashboard$1,
|
|
9170
9165
|
LeadSubmitIframe: LeadSubmitIframe,
|
|
9171
|
-
Activity: Activity,
|
|
9172
|
-
EditProfile: EditProfile,
|
|
9166
|
+
Activity: Activity$1,
|
|
9167
|
+
EditProfile: EditProfile$2,
|
|
9173
9168
|
ResetPassword: ResetPassword,
|
|
9174
9169
|
EmailVerification: EmailVerification,
|
|
9175
9170
|
EmailVerified: EmailVerified,
|
|
@@ -9227,7 +9222,7 @@ const ProgramMenu = /*#__PURE__*/Object.freeze({
|
|
|
9227
9222
|
const PoweredByImg_stories = {
|
|
9228
9223
|
title: "Powered By",
|
|
9229
9224
|
};
|
|
9230
|
-
const Default$
|
|
9225
|
+
const Default$a = () => {
|
|
9231
9226
|
return index.h(sqmPortalFooterView.PoweredByImg, null);
|
|
9232
9227
|
};
|
|
9233
9228
|
const CustomColor = () => {
|
|
@@ -9240,20 +9235,20 @@ const CustomWidthAndHeight = () => {
|
|
|
9240
9235
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
9241
9236
|
__proto__: null,
|
|
9242
9237
|
'default': PoweredByImg_stories,
|
|
9243
|
-
Default: Default$
|
|
9238
|
+
Default: Default$a,
|
|
9244
9239
|
CustomColor: CustomColor,
|
|
9245
9240
|
CustomWidthAndHeight: CustomWidthAndHeight
|
|
9246
9241
|
});
|
|
9247
9242
|
|
|
9248
|
-
const scenario$
|
|
9243
|
+
const scenario$6 = "Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\r\n And prop \"terms-text\" with value \"Terms and Conditions\"\r\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\r\n And prop \"faq-text\" with value \"Visit FAQ\"\r\n When a user clicks on the \"Visit FAQ\" link\r\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\r\n When they go back to the portal\r\n And click on the \"Terms and Conditions\" link\r\n Then they will be redirected to \"https://example.com/terms\" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn't have | | | T&C Link |\r\n | faq-link | doesn't have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer's support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> \"show-powered-by\" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn't shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn't have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
9249
9244
|
|
|
9250
9245
|
const PortalFooter_stories = {
|
|
9251
9246
|
title: "Portal Footer",
|
|
9252
9247
|
parameters: {
|
|
9253
|
-
scenario: scenario$
|
|
9248
|
+
scenario: scenario$6,
|
|
9254
9249
|
},
|
|
9255
9250
|
};
|
|
9256
|
-
const defaultProps = {
|
|
9251
|
+
const defaultProps$9 = {
|
|
9257
9252
|
supportEmail: "support@example.com",
|
|
9258
9253
|
supportText: "For program support, contact {email}",
|
|
9259
9254
|
showPoweredBy: true,
|
|
@@ -9263,11 +9258,11 @@ const defaultProps = {
|
|
|
9263
9258
|
paddingBottom: "large",
|
|
9264
9259
|
paddingLeft: "large",
|
|
9265
9260
|
};
|
|
9266
|
-
const DefaultFooter = () => index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps));
|
|
9267
|
-
const FooterWithTerms = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
9268
|
-
const FooterWithFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9269
|
-
const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9270
|
-
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
|
|
9261
|
+
const DefaultFooter = () => index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9));
|
|
9262
|
+
const FooterWithTerms = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
9263
|
+
const FooterWithFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9264
|
+
const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9265
|
+
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
|
|
9271
9266
|
|
|
9272
9267
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
9273
9268
|
__proto__: null,
|
|
@@ -9279,12 +9274,12 @@ const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
|
9279
9274
|
FooterNoPoweredBy: FooterNoPoweredBy
|
|
9280
9275
|
});
|
|
9281
9276
|
|
|
9282
|
-
const scenario$
|
|
9277
|
+
const scenario$7 = "Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a \"columns\" prop\r\n But the following html is wrapped by the hero unit\r\n \"\"\"\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Get Referring!</h1>\r\n <p style=\"text-align:center\">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n \"\"\"\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop \"columns\" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\r\n Given a hero unit with \"columns\" \"2\"\r\n And the following html\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 1 will contain the \"Column 2!\" text\r\n When the div for column two is updated to have 'slot=\"secondary-column\"'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 2 will contain the \"Column 2!\" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n And prop \"wrap-direction\" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |";
|
|
9283
9278
|
|
|
9284
9279
|
const Hero_stories = {
|
|
9285
9280
|
title: "Hero Layout",
|
|
9286
9281
|
parameters: {
|
|
9287
|
-
scenario: scenario$
|
|
9282
|
+
scenario: scenario$7,
|
|
9288
9283
|
},
|
|
9289
9284
|
};
|
|
9290
9285
|
const LoginOneColumn = () => {
|
|
@@ -9461,15 +9456,15 @@ const Hero = /*#__PURE__*/Object.freeze({
|
|
|
9461
9456
|
TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
|
|
9462
9457
|
});
|
|
9463
9458
|
|
|
9464
|
-
const scenario$
|
|
9459
|
+
const scenario$8 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user's referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the user has navigated to \"/refer\"\r\n And the user's referral code is \"BOBBYREFER\"\r\n When the iframe content is loaded\r\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the iframe content is 1000x1000\r\n And the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\r\n Given \"iframe-src\" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | \"\" |\r\n | is an attribute | |";
|
|
9465
9460
|
|
|
9466
9461
|
const ReferralIframe_stories = {
|
|
9467
9462
|
title: "Referral Iframe",
|
|
9468
9463
|
parameters: {
|
|
9469
|
-
scenario: scenario$
|
|
9464
|
+
scenario: scenario$8,
|
|
9470
9465
|
},
|
|
9471
9466
|
};
|
|
9472
|
-
const props
|
|
9467
|
+
const props = {
|
|
9473
9468
|
data: {
|
|
9474
9469
|
shareCode: "BOBBYREFER",
|
|
9475
9470
|
},
|
|
@@ -9483,7 +9478,7 @@ const props$2 = {
|
|
|
9483
9478
|
};
|
|
9484
9479
|
const ReferralIframe = () => {
|
|
9485
9480
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
9486
|
-
index.h(AutoColor.ReferralIframeView, Object.assign({}, props
|
|
9481
|
+
index.h(AutoColor.ReferralIframeView, Object.assign({}, props))));
|
|
9487
9482
|
};
|
|
9488
9483
|
const ReferralIframeError = () => {
|
|
9489
9484
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
@@ -9497,12 +9492,12 @@ const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
|
|
|
9497
9492
|
ReferralIframeError: ReferralIframeError
|
|
9498
9493
|
});
|
|
9499
9494
|
|
|
9500
|
-
const scenario$
|
|
9495
|
+
const scenario$9 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is \"/register\"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say \"Cannot be empty\"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n";
|
|
9501
9496
|
|
|
9502
9497
|
const NameFields_stories = {
|
|
9503
9498
|
title: "Name Fields",
|
|
9504
9499
|
parameters: {
|
|
9505
|
-
scenario: scenario$
|
|
9500
|
+
scenario: scenario$9,
|
|
9506
9501
|
},
|
|
9507
9502
|
};
|
|
9508
9503
|
const props$1 = {
|
|
@@ -9514,7 +9509,7 @@ const props$1 = {
|
|
|
9514
9509
|
},
|
|
9515
9510
|
},
|
|
9516
9511
|
};
|
|
9517
|
-
const errorProps = {
|
|
9512
|
+
const errorProps$8 = {
|
|
9518
9513
|
states: {
|
|
9519
9514
|
validationErrors: {
|
|
9520
9515
|
firstName: "Cannot be empty",
|
|
@@ -9530,7 +9525,7 @@ const NameFields = () => {
|
|
|
9530
9525
|
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, props$1));
|
|
9531
9526
|
};
|
|
9532
9527
|
const NameFieldsWithErrors = () => {
|
|
9533
|
-
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, errorProps));
|
|
9528
|
+
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, errorProps$8));
|
|
9534
9529
|
};
|
|
9535
9530
|
|
|
9536
9531
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -9592,7 +9587,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
9592
9587
|
},
|
|
9593
9588
|
refs: null,
|
|
9594
9589
|
});
|
|
9595
|
-
const baseReward = {
|
|
9590
|
+
const baseReward$2 = {
|
|
9596
9591
|
key: "",
|
|
9597
9592
|
name: "",
|
|
9598
9593
|
description: "Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",
|
|
@@ -9644,52 +9639,52 @@ const variableValue = (min, max, unit) => ({
|
|
|
9644
9639
|
});
|
|
9645
9640
|
const data = [
|
|
9646
9641
|
{
|
|
9647
|
-
...baseReward,
|
|
9642
|
+
...baseReward$2,
|
|
9648
9643
|
...name("Free swag with a promo code"),
|
|
9649
9644
|
...imageUrl("https://i.imgur.com/n7vC4BR.png"),
|
|
9650
9645
|
...fixedValue("40 SaaSquatch Points"),
|
|
9651
9646
|
},
|
|
9652
9647
|
{
|
|
9653
|
-
...baseReward,
|
|
9648
|
+
...baseReward$2,
|
|
9654
9649
|
...selected,
|
|
9655
9650
|
...name("Visa® Prepaid Card USD"),
|
|
9656
9651
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
9657
9652
|
...variableValue(20, 80, "Points"),
|
|
9658
9653
|
},
|
|
9659
9654
|
{
|
|
9660
|
-
...baseReward,
|
|
9655
|
+
...baseReward$2,
|
|
9661
9656
|
...name("A very exclusive gift box"),
|
|
9662
9657
|
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
9663
9658
|
...fixedValue("30 SaaSquatch Points"),
|
|
9664
9659
|
},
|
|
9665
9660
|
{
|
|
9666
|
-
...baseReward,
|
|
9661
|
+
...baseReward$2,
|
|
9667
9662
|
...name("$50 Store credit"),
|
|
9668
9663
|
...imageUrl("https://i.imgur.com/WkCMVSE.png"),
|
|
9669
9664
|
...fixedValue("100 SaaSquatch Points"),
|
|
9670
9665
|
},
|
|
9671
9666
|
{
|
|
9672
|
-
...baseReward,
|
|
9667
|
+
...baseReward$2,
|
|
9673
9668
|
...name("Variable amount of store credit"),
|
|
9674
9669
|
...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
|
|
9675
9670
|
...variableValue(20, 100, "Points"),
|
|
9676
9671
|
},
|
|
9677
9672
|
{
|
|
9678
|
-
...baseReward,
|
|
9673
|
+
...baseReward$2,
|
|
9679
9674
|
...notEnoughPoints,
|
|
9680
9675
|
...name("A very rare cactus"),
|
|
9681
9676
|
...imageUrl("https://i.imgur.com/hhlF2Ey.png"),
|
|
9682
9677
|
...fixedValue("2000 SaaSquatch Points"),
|
|
9683
9678
|
},
|
|
9684
9679
|
{
|
|
9685
|
-
...baseReward,
|
|
9680
|
+
...baseReward$2,
|
|
9686
9681
|
...usTax,
|
|
9687
9682
|
...name("$1000 Store credit with a really super long name in the front page"),
|
|
9688
9683
|
...imageUrl("https://i.imgur.com/y9HSls1.png"),
|
|
9689
9684
|
...fixedValue("2000 SaaSquatch Long Points"),
|
|
9690
9685
|
},
|
|
9691
9686
|
{
|
|
9692
|
-
...baseReward,
|
|
9687
|
+
...baseReward$2,
|
|
9693
9688
|
...notEnoughPoints,
|
|
9694
9689
|
...name("A holiday gift box"),
|
|
9695
9690
|
...imageUrl("https://i.imgur.com/dWEdB3p.png"),
|
|
@@ -9701,7 +9696,7 @@ const rewardExchange = {
|
|
|
9701
9696
|
};
|
|
9702
9697
|
const rewardExchangeSelected = {
|
|
9703
9698
|
...baseResponse(data, "chooseReward", {
|
|
9704
|
-
...baseReward,
|
|
9699
|
+
...baseReward$2,
|
|
9705
9700
|
...selected,
|
|
9706
9701
|
...name("Visa® Prepaid Card USD"),
|
|
9707
9702
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
@@ -9718,7 +9713,7 @@ const baseStep = (dst, dstUnit, src, srcUnit, available = true) => ({
|
|
|
9718
9713
|
});
|
|
9719
9714
|
const chooseAmountVariable = {
|
|
9720
9715
|
...baseResponse(data, "chooseAmount", {
|
|
9721
|
-
...baseReward,
|
|
9716
|
+
...baseReward$2,
|
|
9722
9717
|
...name("Visa® Prepaid Card USD"),
|
|
9723
9718
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
9724
9719
|
...variableValue(20, 80, "Points"),
|
|
@@ -9733,7 +9728,7 @@ const chooseAmountVariable = {
|
|
|
9733
9728
|
};
|
|
9734
9729
|
const chooseAmountFixed = {
|
|
9735
9730
|
...baseResponse(data, "chooseAmount", {
|
|
9736
|
-
...baseReward,
|
|
9731
|
+
...baseReward$2,
|
|
9737
9732
|
...name("Free swag with a promo code"),
|
|
9738
9733
|
...imageUrl("https://i.imgur.com/n7vC4BR.png"),
|
|
9739
9734
|
...fixedValue("40 SaaSquatch Points"),
|
|
@@ -9741,7 +9736,7 @@ const chooseAmountFixed = {
|
|
|
9741
9736
|
};
|
|
9742
9737
|
const confirmFixed = {
|
|
9743
9738
|
...baseResponse(data, "confirmation", {
|
|
9744
|
-
...baseReward,
|
|
9739
|
+
...baseReward$2,
|
|
9745
9740
|
...name("Free swag with a promo code"),
|
|
9746
9741
|
...imageUrl("https://i.imgur.com/n7vC4BR.png"),
|
|
9747
9742
|
...fixedValue("40 SaaSquatch Points"),
|
|
@@ -9749,15 +9744,15 @@ const confirmFixed = {
|
|
|
9749
9744
|
};
|
|
9750
9745
|
const confirmVariable = {
|
|
9751
9746
|
...baseResponse(data, "confirmation", {
|
|
9752
|
-
...baseReward,
|
|
9747
|
+
...baseReward$2,
|
|
9753
9748
|
...name("Visa® Prepaid Card USD"),
|
|
9754
9749
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
9755
9750
|
...variableValue(20, 80, "Points"),
|
|
9756
9751
|
}, baseStep(20, "$", 40, "Points")),
|
|
9757
9752
|
};
|
|
9758
|
-
const error
|
|
9753
|
+
const error = {
|
|
9759
9754
|
...baseResponse(data, "confirmation", {
|
|
9760
|
-
...baseReward,
|
|
9755
|
+
...baseReward$2,
|
|
9761
9756
|
...name("Visa® Prepaid Card USD"),
|
|
9762
9757
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
9763
9758
|
...variableValue(20, 80, "Points"),
|
|
@@ -9765,7 +9760,7 @@ const error$1 = {
|
|
|
9765
9760
|
};
|
|
9766
9761
|
const success = {
|
|
9767
9762
|
...baseResponse(data, "success", {
|
|
9768
|
-
...baseReward,
|
|
9763
|
+
...baseReward$2,
|
|
9769
9764
|
...name("Free swag with a promo code"),
|
|
9770
9765
|
...imageUrl("https://i.imgur.com/n7vC4BR.png"),
|
|
9771
9766
|
...fixedValue("40 SaaSquatch Points"),
|
|
@@ -9773,7 +9768,7 @@ const success = {
|
|
|
9773
9768
|
};
|
|
9774
9769
|
const successVariable = {
|
|
9775
9770
|
...baseResponse(data, "success", {
|
|
9776
|
-
...baseReward,
|
|
9771
|
+
...baseReward$2,
|
|
9777
9772
|
...name("Visa® Prepaid Card USD"),
|
|
9778
9773
|
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
9779
9774
|
...variableValue(20, 80, "Points"),
|
|
@@ -9796,10 +9791,10 @@ const ChooseAmount = StoryBase(chooseAmountFixed);
|
|
|
9796
9791
|
const ChooseAmountVariable = StoryBase(chooseAmountVariable);
|
|
9797
9792
|
const Confirm = StoryBase(confirmFixed);
|
|
9798
9793
|
const ConfirmVariable = StoryBase(confirmVariable);
|
|
9799
|
-
const Error$
|
|
9794
|
+
const Error$3 = StoryBase(error);
|
|
9800
9795
|
const SuccessPromo = StoryBase(success);
|
|
9801
9796
|
const SuccessVariable = StoryBase(successVariable);
|
|
9802
|
-
const Loading = StoryBase(loading);
|
|
9797
|
+
const Loading$3 = StoryBase(loading);
|
|
9803
9798
|
|
|
9804
9799
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
9805
9800
|
__proto__: null,
|
|
@@ -9810,10 +9805,10 @@ const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
|
9810
9805
|
ChooseAmountVariable: ChooseAmountVariable,
|
|
9811
9806
|
Confirm: Confirm,
|
|
9812
9807
|
ConfirmVariable: ConfirmVariable,
|
|
9813
|
-
Error: Error$
|
|
9808
|
+
Error: Error$3,
|
|
9814
9809
|
SuccessPromo: SuccessPromo,
|
|
9815
9810
|
SuccessVariable: SuccessVariable,
|
|
9816
|
-
Loading: Loading
|
|
9811
|
+
Loading: Loading$3
|
|
9817
9812
|
});
|
|
9818
9813
|
|
|
9819
9814
|
const ProgramExplainer_stories = {
|
|
@@ -9977,7 +9972,7 @@ const BrandStories = /*#__PURE__*/Object.freeze({
|
|
|
9977
9972
|
const CardFeed_stories = {
|
|
9978
9973
|
title: "Components/Card Feed",
|
|
9979
9974
|
};
|
|
9980
|
-
const props = {
|
|
9975
|
+
const props$2 = {
|
|
9981
9976
|
width: 347,
|
|
9982
9977
|
gap: 24,
|
|
9983
9978
|
};
|
|
@@ -10005,7 +10000,7 @@ const taskCardProps = {
|
|
|
10005
10000
|
},
|
|
10006
10001
|
states: { progress: 0, loading: false, loadingEvent: false },
|
|
10007
10002
|
};
|
|
10008
|
-
const coupleActions = {
|
|
10003
|
+
const coupleActions$1 = {
|
|
10009
10004
|
content: {
|
|
10010
10005
|
rewardAmount: "40",
|
|
10011
10006
|
rewardUnit: "SaaSquatch Points",
|
|
@@ -10029,7 +10024,7 @@ const coupleActions = {
|
|
|
10029
10024
|
},
|
|
10030
10025
|
states: { progress: 1, loading: false, loadingEvent: false },
|
|
10031
10026
|
};
|
|
10032
|
-
const manyActions = {
|
|
10027
|
+
const manyActions$1 = {
|
|
10033
10028
|
content: {
|
|
10034
10029
|
rewardAmount: "150",
|
|
10035
10030
|
rewardUnit: "SaaSquatch Points",
|
|
@@ -10059,21 +10054,21 @@ const manyActions = {
|
|
|
10059
10054
|
},
|
|
10060
10055
|
};
|
|
10061
10056
|
const TaskCardGrid = () => {
|
|
10062
|
-
return (index.h(AutoColor.CardFeedView, Object.assign({}, props),
|
|
10057
|
+
return (index.h(AutoColor.CardFeedView, Object.assign({}, props$2),
|
|
10063
10058
|
index.h(AutoColor.TaskCardView, Object.assign({}, taskCardProps)),
|
|
10064
10059
|
index.h("div", null,
|
|
10065
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions))),
|
|
10060
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
10066
10061
|
index.h("div", null,
|
|
10067
10062
|
index.h("div", null,
|
|
10068
10063
|
index.h(AutoColor.TaskCardView, Object.assign({}, taskCardProps)))),
|
|
10069
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions)),
|
|
10070
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions)),
|
|
10064
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
10065
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
10071
10066
|
index.h("div", null,
|
|
10072
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions))),
|
|
10067
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
10073
10068
|
index.h("div", null,
|
|
10074
10069
|
index.h("div", null,
|
|
10075
10070
|
index.h(AutoColor.TaskCardView, Object.assign({}, taskCardProps)))),
|
|
10076
|
-
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions))));
|
|
10071
|
+
index.h(AutoColor.TaskCardView, Object.assign({}, manyActions$1))));
|
|
10077
10072
|
};
|
|
10078
10073
|
|
|
10079
10074
|
const CardFeed = /*#__PURE__*/Object.freeze({
|
|
@@ -10082,12 +10077,12 @@ const CardFeed = /*#__PURE__*/Object.freeze({
|
|
|
10082
10077
|
TaskCardGrid: TaskCardGrid
|
|
10083
10078
|
});
|
|
10084
10079
|
|
|
10085
|
-
const scenario = "Feature: Portal Container\r\n\r\n\r\n Scenario: Horizontal content overflows, but does not stretch\r\n\r\n Bad elements should not affect other elements in the page\r\n\r\n Given there are two element in the container\r\n And the first is small\r\n And the second would stretch the container wider than it's parent\r\n Then the second one is clipped\r\n And the first one doesn't stretch\r\n\r\n @landmine\r\n Scenario: `max-width` is required for displaying as a row\r\n Given I have `direction` to \"row\"\r\n And I have not set a `max-width`\r\n Then it will display as a column\r\n";
|
|
10080
|
+
const scenario$a = "Feature: Portal Container\r\n\r\n\r\n Scenario: Horizontal content overflows, but does not stretch\r\n\r\n Bad elements should not affect other elements in the page\r\n\r\n Given there are two element in the container\r\n And the first is small\r\n And the second would stretch the container wider than it's parent\r\n Then the second one is clipped\r\n And the first one doesn't stretch\r\n\r\n @landmine\r\n Scenario: `max-width` is required for displaying as a row\r\n Given I have `direction` to \"row\"\r\n And I have not set a `max-width`\r\n Then it will display as a column\r\n";
|
|
10086
10081
|
|
|
10087
10082
|
const PortalContainer_stories = {
|
|
10088
10083
|
title: "Components/Portal Container",
|
|
10089
10084
|
parameters: {
|
|
10090
|
-
scenario,
|
|
10085
|
+
scenario: scenario$a,
|
|
10091
10086
|
},
|
|
10092
10087
|
};
|
|
10093
10088
|
const TooWideColumn = () => (index.h("div", { style: { width: "200px", border: "1px dashed grey" } },
|
|
@@ -10122,7 +10117,7 @@ const PortalContainer = /*#__PURE__*/Object.freeze({
|
|
|
10122
10117
|
const RewardsTableCell_stories = {
|
|
10123
10118
|
title: "Components/Rewards Table Cell",
|
|
10124
10119
|
};
|
|
10125
|
-
const rewardsData = {
|
|
10120
|
+
const rewardsData$1 = {
|
|
10126
10121
|
id: "61c100117a82a376d8804166",
|
|
10127
10122
|
type: "CREDIT",
|
|
10128
10123
|
value: 19,
|
|
@@ -10153,7 +10148,7 @@ const rewardsData = {
|
|
|
10153
10148
|
},
|
|
10154
10149
|
};
|
|
10155
10150
|
const RewardsCellCreditFull = () => {
|
|
10156
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData }, availableText: "19 Points remaining" }));
|
|
10151
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1 }, availableText: "19 Points remaining" }));
|
|
10157
10152
|
};
|
|
10158
10153
|
const partial = {
|
|
10159
10154
|
prettyAvailableValue: "10 Points",
|
|
@@ -10162,7 +10157,7 @@ const partial = {
|
|
|
10162
10157
|
dateRedeemed: 1640038417468,
|
|
10163
10158
|
};
|
|
10164
10159
|
const RewardsCellCreditPartial = () => {
|
|
10165
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial }, availableText: "10 Points remaining" }));
|
|
10160
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial }, availableText: "10 Points remaining" }));
|
|
10166
10161
|
};
|
|
10167
10162
|
const empty = {
|
|
10168
10163
|
prettyAvailableValue: "0 Points",
|
|
@@ -10171,7 +10166,7 @@ const empty = {
|
|
|
10171
10166
|
dateRedeemed: 1640038417468,
|
|
10172
10167
|
};
|
|
10173
10168
|
const RewardsCellCreditEmpty = () => {
|
|
10174
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...empty }, availableText: "0 Points remaining" }));
|
|
10169
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...empty }, availableText: "0 Points remaining" }));
|
|
10175
10170
|
};
|
|
10176
10171
|
const singleRedeemed = {
|
|
10177
10172
|
prettyValue: "1 Points",
|
|
@@ -10183,13 +10178,13 @@ const singleRedeemed = {
|
|
|
10183
10178
|
dateRedeemed: 1640038417468,
|
|
10184
10179
|
};
|
|
10185
10180
|
const RewardsCellSingleRedeemed = () => {
|
|
10186
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...singleRedeemed } }));
|
|
10181
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
|
|
10187
10182
|
};
|
|
10188
10183
|
const RewardsCellNonCredit = () => {
|
|
10189
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, type: "FUELTANK", prettyValue: "SaaSquatch Giftcard" } }));
|
|
10184
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, type: "FUELTANK", prettyValue: "SaaSquatch Giftcard" } }));
|
|
10190
10185
|
};
|
|
10191
10186
|
const SourceCellText = () => {
|
|
10192
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: rewardsData, rewardSourceText: "Manual" }));
|
|
10187
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: rewardsData$1, rewardSourceText: "Manual" }));
|
|
10193
10188
|
};
|
|
10194
10189
|
const exchange = {
|
|
10195
10190
|
exchangedRewardRedemptionTransaction: {
|
|
@@ -10203,7 +10198,7 @@ const exchange = {
|
|
|
10203
10198
|
},
|
|
10204
10199
|
};
|
|
10205
10200
|
const SourceCellExchange = () => {
|
|
10206
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...exchange }, rewardExchangeText: "Reward Exchange" }));
|
|
10201
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData$1, ...exchange }, rewardExchangeText: "Reward Exchange" }));
|
|
10207
10202
|
};
|
|
10208
10203
|
const johnDoe = {
|
|
10209
10204
|
firstName: "John",
|
|
@@ -10248,57 +10243,57 @@ const referred = (user = null) => {
|
|
|
10248
10243
|
};
|
|
10249
10244
|
};
|
|
10250
10245
|
const SourceCellReferral = () => {
|
|
10251
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...referral(johnDoe) }, referralText: "Referral to" }));
|
|
10246
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData$1, ...referral(johnDoe) }, referralText: "Referral to" }));
|
|
10252
10247
|
};
|
|
10253
10248
|
const SourceCellReferred = () => {
|
|
10254
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...referred(johnDoe) }, referralText: "Referred by" }));
|
|
10249
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData$1, ...referred(johnDoe) }, referralText: "Referred by" }));
|
|
10255
10250
|
};
|
|
10256
10251
|
const SourceCellAnonymousUser = () => {
|
|
10257
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...referral(anon) }, referralText: "Referral to", anonymousUserText: "Anonymous User" }));
|
|
10252
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData$1, ...referral(anon) }, referralText: "Referral to", anonymousUserText: "Anonymous User" }));
|
|
10258
10253
|
};
|
|
10259
10254
|
const SourceCellDeletedUser = () => {
|
|
10260
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData, ...referral(null) }, referralText: "Referral to", deletedUserText: "Deleted User" }));
|
|
10255
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: { ...rewardsData$1, ...referral(null) }, referralText: "Referral to", deletedUserText: "Deleted User" }));
|
|
10261
10256
|
};
|
|
10262
10257
|
const StatusCellAvailable = () => {
|
|
10263
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: rewardsData }));
|
|
10258
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: rewardsData$1 }));
|
|
10264
10259
|
};
|
|
10265
10260
|
const expire = {
|
|
10266
10261
|
dateExpires: 1640038417468,
|
|
10267
10262
|
};
|
|
10268
10263
|
const StatusCellAvailableExpiry = () => {
|
|
10269
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: { ...rewardsData, ...expire }, expiryText: "Expires" }));
|
|
10264
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: { ...rewardsData$1, ...expire }, expiryText: "Expires" }));
|
|
10270
10265
|
};
|
|
10271
10266
|
const redeemed = {
|
|
10272
10267
|
statuses: ["REDEEMED"],
|
|
10273
10268
|
dateRedeemed: 1640038417468,
|
|
10274
10269
|
};
|
|
10275
10270
|
const StatusCellRedeemed = () => {
|
|
10276
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Redeemed", reward: { ...rewardsData, ...redeemed } }));
|
|
10271
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Redeemed", reward: { ...rewardsData$1, ...redeemed } }));
|
|
10277
10272
|
};
|
|
10278
10273
|
const cancelled = {
|
|
10279
10274
|
statuses: ["CANCELLED"],
|
|
10280
10275
|
dateCancelled: 1640038417468,
|
|
10281
10276
|
};
|
|
10282
10277
|
const StatusCellCancelled = () => {
|
|
10283
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Cancelled", reward: { ...rewardsData, ...cancelled } }));
|
|
10278
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Cancelled", reward: { ...rewardsData$1, ...cancelled } }));
|
|
10284
10279
|
};
|
|
10285
10280
|
const expired = {
|
|
10286
10281
|
statuses: ["EXPIRED"],
|
|
10287
10282
|
dateExpires: 1640038417468,
|
|
10288
10283
|
};
|
|
10289
10284
|
const StatusCellExpired = () => {
|
|
10290
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Expired", reward: { ...rewardsData, ...expired } }));
|
|
10285
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Expired", reward: { ...rewardsData$1, ...expired } }));
|
|
10291
10286
|
};
|
|
10292
10287
|
const pending = {
|
|
10293
10288
|
statuses: ["PENDING"],
|
|
10294
10289
|
};
|
|
10295
10290
|
const StatusCellPending = () => {
|
|
10296
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData, ...pending } }));
|
|
10291
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1, ...pending } }));
|
|
10297
10292
|
};
|
|
10298
|
-
const DateCell = () => {
|
|
10293
|
+
const DateCell$1 = () => {
|
|
10299
10294
|
return (index.h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
|
|
10300
10295
|
};
|
|
10301
|
-
const EmptyCell$
|
|
10296
|
+
const EmptyCell$2 = () => {
|
|
10302
10297
|
return index.h("sqm-rewards-table-date-cell", null);
|
|
10303
10298
|
};
|
|
10304
10299
|
|
|
@@ -10322,8 +10317,8 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
|
|
|
10322
10317
|
StatusCellCancelled: StatusCellCancelled,
|
|
10323
10318
|
StatusCellExpired: StatusCellExpired,
|
|
10324
10319
|
StatusCellPending: StatusCellPending,
|
|
10325
|
-
DateCell: DateCell,
|
|
10326
|
-
EmptyCell: EmptyCell$
|
|
10320
|
+
DateCell: DateCell$1,
|
|
10321
|
+
EmptyCell: EmptyCell$2
|
|
10327
10322
|
});
|
|
10328
10323
|
|
|
10329
10324
|
const RewardsTable_stories = {
|
|
@@ -10332,7 +10327,7 @@ const RewardsTable_stories = {
|
|
|
10332
10327
|
const Tab = () => {
|
|
10333
10328
|
return index.h("sqm-rewards-table-date-cell", null);
|
|
10334
10329
|
};
|
|
10335
|
-
const EmptyCell = () => {
|
|
10330
|
+
const EmptyCell$3 = () => {
|
|
10336
10331
|
return index.h("sqm-rewards-table-date-cell", null);
|
|
10337
10332
|
};
|
|
10338
10333
|
|
|
@@ -10340,58 +10335,56 @@ const RewardsTable = /*#__PURE__*/Object.freeze({
|
|
|
10340
10335
|
__proto__: null,
|
|
10341
10336
|
'default': RewardsTable_stories,
|
|
10342
10337
|
Tab: Tab,
|
|
10343
|
-
EmptyCell: EmptyCell
|
|
10338
|
+
EmptyCell: EmptyCell$3
|
|
10344
10339
|
});
|
|
10345
10340
|
|
|
10346
10341
|
const UseReferralTable_stories = {
|
|
10347
10342
|
title: "Hooks / useReferralTable",
|
|
10348
10343
|
};
|
|
10349
|
-
function setupGraphQL() {
|
|
10344
|
+
function setupGraphQL$9() {
|
|
10350
10345
|
const id = "testestest";
|
|
10351
10346
|
const accountId = id;
|
|
10352
10347
|
//@ts-ignore
|
|
10353
10348
|
window.widgetIdent = {
|
|
10354
10349
|
tenantAlias: "test_a8b41jotf8a1v",
|
|
10355
10350
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
10356
|
-
// programId,
|
|
10357
10351
|
};
|
|
10358
10352
|
stencilHooks_module.useEffect(() => {
|
|
10359
|
-
index_module.
|
|
10353
|
+
index_module.Y({
|
|
10360
10354
|
accountId,
|
|
10361
10355
|
id,
|
|
10362
10356
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
10363
10357
|
});
|
|
10364
10358
|
return () => {
|
|
10365
10359
|
window.widgetIdent = undefined;
|
|
10366
|
-
index_module.
|
|
10360
|
+
index_module.Y(undefined);
|
|
10367
10361
|
};
|
|
10368
10362
|
}, []);
|
|
10369
10363
|
return { id, accountId };
|
|
10370
10364
|
}
|
|
10371
|
-
function setupGraphQLKlip({ token, id }) {
|
|
10365
|
+
function setupGraphQLKlip$1({ token, id }) {
|
|
10372
10366
|
const accountId = id;
|
|
10373
10367
|
// const programId = "klip-referral-program";
|
|
10374
10368
|
//@ts-ignore
|
|
10375
10369
|
window.widgetIdent = {
|
|
10376
10370
|
tenantAlias: "test_a74miwdpofztj",
|
|
10377
10371
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
10378
|
-
// programId,
|
|
10379
10372
|
};
|
|
10380
10373
|
stencilHooks_module.useEffect(() => {
|
|
10381
|
-
index_module.
|
|
10374
|
+
index_module.Y({
|
|
10382
10375
|
accountId,
|
|
10383
10376
|
id,
|
|
10384
10377
|
jwt: token,
|
|
10385
10378
|
});
|
|
10386
10379
|
return () => {
|
|
10387
10380
|
window.widgetIdent = undefined;
|
|
10388
|
-
index_module.
|
|
10381
|
+
index_module.Y(undefined);
|
|
10389
10382
|
};
|
|
10390
10383
|
}, []);
|
|
10391
10384
|
return { id, accountId };
|
|
10392
10385
|
}
|
|
10393
|
-
const ReferralTable = createHookStory(() => {
|
|
10394
|
-
setupGraphQL();
|
|
10386
|
+
const ReferralTable$1 = createHookStory(() => {
|
|
10387
|
+
setupGraphQL$9();
|
|
10395
10388
|
index_module.A("sam-partner-test-2");
|
|
10396
10389
|
return (index.h("sqm-referral-table", null,
|
|
10397
10390
|
index.h("sqm-referral-table-user-column", null),
|
|
@@ -10400,7 +10393,7 @@ const ReferralTable = createHookStory(() => {
|
|
|
10400
10393
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
10401
10394
|
});
|
|
10402
10395
|
const ReferralTableEn = createHookStory(() => {
|
|
10403
|
-
setupGraphQLKlip({
|
|
10396
|
+
setupGraphQLKlip$1({
|
|
10404
10397
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbWVuZ2xpc2giLCJpZCI6InNhbWVuZ2xpc2gifX0._6OTVF3gcipu_ibgthUNr5UHwC-2E_lhCENI5HpYvcw",
|
|
10405
10398
|
id: "samenglish",
|
|
10406
10399
|
});
|
|
@@ -10412,7 +10405,7 @@ const ReferralTableEn = createHookStory(() => {
|
|
|
10412
10405
|
index.h("sqm-referral-table-date-column", { "column-title": "Date Referred", "date-shown": "dateReferralStarted" })));
|
|
10413
10406
|
});
|
|
10414
10407
|
const ReferralTableTr = createHookStory(() => {
|
|
10415
|
-
setupGraphQLKlip({
|
|
10408
|
+
setupGraphQLKlip$1({
|
|
10416
10409
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbXR1cmtleSIsImlkIjoic2FtdHVya2V5In19.usSMe0RWg8W5FtwcvJayvAlxTw6vMxjTyWXaP8jI8_U",
|
|
10417
10410
|
id: "samturkey",
|
|
10418
10411
|
});
|
|
@@ -10424,7 +10417,7 @@ const ReferralTableTr = createHookStory(() => {
|
|
|
10424
10417
|
index.h("sqm-referral-table-date-column", { "column-title": "Tarih", "date-shown": "dateReferralStarted" })));
|
|
10425
10418
|
});
|
|
10426
10419
|
const ReferralTableFr = createHookStory(() => {
|
|
10427
|
-
setupGraphQLKlip({
|
|
10420
|
+
setupGraphQLKlip$1({
|
|
10428
10421
|
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InNhbWZyZW5jaCIsImlkIjoic2FtZnJlbmNoIn19.cwhasHpfU5MLV4vGbCQcazb6p19iSw5pD2zyrVHgePg",
|
|
10429
10422
|
id: "samfrench",
|
|
10430
10423
|
});
|
|
@@ -10439,51 +10432,63 @@ const ReferralTableFr = createHookStory(() => {
|
|
|
10439
10432
|
const UseReferralTable = /*#__PURE__*/Object.freeze({
|
|
10440
10433
|
__proto__: null,
|
|
10441
10434
|
'default': UseReferralTable_stories,
|
|
10442
|
-
ReferralTable: ReferralTable,
|
|
10435
|
+
ReferralTable: ReferralTable$1,
|
|
10443
10436
|
ReferralTableEn: ReferralTableEn,
|
|
10444
10437
|
ReferralTableTr: ReferralTableTr,
|
|
10445
10438
|
ReferralTableFr: ReferralTableFr
|
|
10446
10439
|
});
|
|
10447
10440
|
|
|
10448
|
-
const
|
|
10449
|
-
title: "Components/
|
|
10441
|
+
const HeroImage_stories = {
|
|
10442
|
+
title: "Components/Hero Image",
|
|
10443
|
+
};
|
|
10444
|
+
const OverlayHeader = () => {
|
|
10445
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", layout: "overlay" }));
|
|
10446
|
+
};
|
|
10447
|
+
const OverlayDescription = () => {
|
|
10448
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", layout: "overlay" }));
|
|
10450
10449
|
};
|
|
10451
|
-
const
|
|
10452
|
-
return (index.h("sqm-
|
|
10450
|
+
const OverlayButton = () => {
|
|
10451
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "overlay" }));
|
|
10453
10452
|
};
|
|
10454
|
-
const
|
|
10455
|
-
return (index.h("sqm-
|
|
10453
|
+
const OverlayLong = () => {
|
|
10454
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum", "button-text": "Start earning", layout: "overlay" }));
|
|
10456
10455
|
};
|
|
10457
|
-
const
|
|
10458
|
-
return (index.h("sqm-
|
|
10456
|
+
const OverlayLeft = () => {
|
|
10457
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "overlay", "image-pos": "left" }));
|
|
10459
10458
|
};
|
|
10460
|
-
const
|
|
10461
|
-
return (index.h("sqm-
|
|
10459
|
+
const OverlayCenter = () => {
|
|
10460
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "overlay", "image-pos": "center" }));
|
|
10462
10461
|
};
|
|
10463
|
-
const
|
|
10464
|
-
return (index.h("sqm-
|
|
10462
|
+
const OverlayRight = () => {
|
|
10463
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "overlay", "image-pos": "right" }));
|
|
10465
10464
|
};
|
|
10466
|
-
const
|
|
10467
|
-
return (index.h("sqm-
|
|
10465
|
+
const OverlayCustom = () => {
|
|
10466
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/bTwu1Um.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", "text-color": "#fffc4b", "overlay-color": "#ff7f7f", "overlay-opacity": "0.9", layout: "overlay" }));
|
|
10468
10467
|
};
|
|
10469
|
-
const
|
|
10470
|
-
return (index.h("sqm-
|
|
10468
|
+
const Columns = () => {
|
|
10469
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/yr6ER3R.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "columns" }));
|
|
10471
10470
|
};
|
|
10472
|
-
const
|
|
10473
|
-
return (index.h("sqm-
|
|
10471
|
+
const ColumnsReverse = () => {
|
|
10472
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/yr6ER3R.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "columns", imagePos: "right", imageMobilePos: "bottom" }));
|
|
10473
|
+
};
|
|
10474
|
+
const ColumnsCustom = () => {
|
|
10475
|
+
return (index.h("sqm-hero-image", { "image-url": "https://i.imgur.com/yr6ER3R.png", header: "Klip Rewards", description: "Refer friends or complete tasks while using Klip to earn rewards", "button-text": "Start earning", layout: "columns", "text-color": "#fffc4b", "background-color": "#ff7f7f" }));
|
|
10474
10476
|
};
|
|
10475
10477
|
|
|
10476
|
-
const
|
|
10478
|
+
const HeroImage = /*#__PURE__*/Object.freeze({
|
|
10477
10479
|
__proto__: null,
|
|
10478
|
-
'default':
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10480
|
+
'default': HeroImage_stories,
|
|
10481
|
+
OverlayHeader: OverlayHeader,
|
|
10482
|
+
OverlayDescription: OverlayDescription,
|
|
10483
|
+
OverlayButton: OverlayButton,
|
|
10484
|
+
OverlayLong: OverlayLong,
|
|
10485
|
+
OverlayLeft: OverlayLeft,
|
|
10486
|
+
OverlayCenter: OverlayCenter,
|
|
10487
|
+
OverlayRight: OverlayRight,
|
|
10488
|
+
OverlayCustom: OverlayCustom,
|
|
10489
|
+
Columns: Columns,
|
|
10490
|
+
ColumnsReverse: ColumnsReverse,
|
|
10491
|
+
ColumnsCustom: ColumnsCustom
|
|
10487
10492
|
});
|
|
10488
10493
|
|
|
10489
10494
|
const ReferralCard_stories = {
|
|
@@ -10492,7 +10497,7 @@ const ReferralCard_stories = {
|
|
|
10492
10497
|
const media = (slot) => {
|
|
10493
10498
|
return (index.h("sqm-portal-container", { gap: "large", slot: slot },
|
|
10494
10499
|
"Get rewarded when your friend uses Klip",
|
|
10495
|
-
index.h("sqm-
|
|
10500
|
+
index.h("sqm-image", { "image-url": "https://i.imgur.com/IqB7GeS.png" })));
|
|
10496
10501
|
};
|
|
10497
10502
|
const sharebutton = (slot) => {
|
|
10498
10503
|
return (index.h("sqm-portal-container", { gap: "large", slot: slot },
|
|
@@ -10642,6 +10647,43 @@ const ReferralCard = /*#__PURE__*/Object.freeze({
|
|
|
10642
10647
|
TimelineWith4Rewards: TimelineWith4Rewards
|
|
10643
10648
|
});
|
|
10644
10649
|
|
|
10650
|
+
const Image_stories = {
|
|
10651
|
+
title: "Components/Image",
|
|
10652
|
+
};
|
|
10653
|
+
const Image = () => {
|
|
10654
|
+
return index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png" });
|
|
10655
|
+
};
|
|
10656
|
+
const ImageAlignLeft = () => {
|
|
10657
|
+
return index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", align: "left" });
|
|
10658
|
+
};
|
|
10659
|
+
const ImageAlignCenter = () => {
|
|
10660
|
+
return (index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", align: "center" }));
|
|
10661
|
+
};
|
|
10662
|
+
const ImageAlignRight = () => {
|
|
10663
|
+
return (index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", align: "right" }));
|
|
10664
|
+
};
|
|
10665
|
+
const ImageMarginLeft = () => {
|
|
10666
|
+
return index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", left: "100px" });
|
|
10667
|
+
};
|
|
10668
|
+
const ImageMarginRight = () => {
|
|
10669
|
+
return (index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", right: "100px" }));
|
|
10670
|
+
};
|
|
10671
|
+
const ImageBackground = () => {
|
|
10672
|
+
return (index.h("sqm-image", { "image-url": "https://i.imgur.com/Amf0HWx.png", "background-color": "firebrick" }));
|
|
10673
|
+
};
|
|
10674
|
+
|
|
10675
|
+
const Image$1 = /*#__PURE__*/Object.freeze({
|
|
10676
|
+
__proto__: null,
|
|
10677
|
+
'default': Image_stories,
|
|
10678
|
+
Image: Image,
|
|
10679
|
+
ImageAlignLeft: ImageAlignLeft,
|
|
10680
|
+
ImageAlignCenter: ImageAlignCenter,
|
|
10681
|
+
ImageAlignRight: ImageAlignRight,
|
|
10682
|
+
ImageMarginLeft: ImageMarginLeft,
|
|
10683
|
+
ImageMarginRight: ImageMarginRight,
|
|
10684
|
+
ImageBackground: ImageBackground
|
|
10685
|
+
});
|
|
10686
|
+
|
|
10645
10687
|
/**
|
|
10646
10688
|
*
|
|
10647
10689
|
* Themes
|
|
@@ -10654,7 +10696,7 @@ const ReferralCard = /*#__PURE__*/Object.freeze({
|
|
|
10654
10696
|
*
|
|
10655
10697
|
*/
|
|
10656
10698
|
//
|
|
10657
|
-
const Default = `
|
|
10699
|
+
const Default$b = `
|
|
10658
10700
|
// No CSS
|
|
10659
10701
|
`;
|
|
10660
10702
|
const Orangey = `
|
|
@@ -10688,7 +10730,7 @@ const Klip = `
|
|
|
10688
10730
|
|
|
10689
10731
|
const Themes = /*#__PURE__*/Object.freeze({
|
|
10690
10732
|
__proto__: null,
|
|
10691
|
-
Default: Default,
|
|
10733
|
+
Default: Default$b,
|
|
10692
10734
|
Orangey: Orangey,
|
|
10693
10735
|
Netflix: Netflix,
|
|
10694
10736
|
SaaSquatchCorporate: SaaSquatchCorporate,
|
|
@@ -12166,7 +12208,7 @@ const seenDeprecations = {};
|
|
|
12166
12208
|
/**
|
|
12167
12209
|
* @param {string} message
|
|
12168
12210
|
*/
|
|
12169
|
-
const error = (message) => {
|
|
12211
|
+
const error$1 = (message) => {
|
|
12170
12212
|
console.error(message);
|
|
12171
12213
|
};
|
|
12172
12214
|
|
|
@@ -12666,7 +12708,7 @@ const HLJS = function(hljs) {
|
|
|
12666
12708
|
|
|
12667
12709
|
const language = getLanguage(languageName);
|
|
12668
12710
|
if (!language) {
|
|
12669
|
-
error(LANGUAGE_NOT_FOUND.replace("{}", languageName));
|
|
12711
|
+
error$1(LANGUAGE_NOT_FOUND.replace("{}", languageName));
|
|
12670
12712
|
throw new Error('Unknown language: "' + languageName + '"');
|
|
12671
12713
|
}
|
|
12672
12714
|
|
|
@@ -13002,10 +13044,10 @@ const HLJS = function(hljs) {
|
|
|
13002
13044
|
let lang = null;
|
|
13003
13045
|
try {
|
|
13004
13046
|
lang = languageDefinition(hljs);
|
|
13005
|
-
} catch (error$1) {
|
|
13006
|
-
error("Language definition for '{}' could not be registered.".replace("{}", languageName));
|
|
13047
|
+
} catch (error$1$1) {
|
|
13048
|
+
error$1("Language definition for '{}' could not be registered.".replace("{}", languageName));
|
|
13007
13049
|
// hard or soft error
|
|
13008
|
-
if (!SAFE_MODE) { throw error$1; } else { error(error$1); }
|
|
13050
|
+
if (!SAFE_MODE) { throw error$1$1; } else { error$1(error$1$1); }
|
|
13009
13051
|
// languages that have serious errors are replaced with essentially a
|
|
13010
13052
|
// "plaintext" stand-in so that the code blocks will still get normal
|
|
13011
13053
|
// css classes applied to them - and one bad language won't break the
|
|
@@ -13295,7 +13337,7 @@ const stories = [
|
|
|
13295
13337
|
UseLeaderboard,
|
|
13296
13338
|
Router,
|
|
13297
13339
|
PortalFrame,
|
|
13298
|
-
EditProfile
|
|
13340
|
+
EditProfile,
|
|
13299
13341
|
FormMessage,
|
|
13300
13342
|
NewPortal,
|
|
13301
13343
|
SidebarItem,
|
|
@@ -13310,12 +13352,12 @@ const stories = [
|
|
|
13310
13352
|
DividedLayout,
|
|
13311
13353
|
ChangePassword,
|
|
13312
13354
|
PortalProfile,
|
|
13313
|
-
ReferralTable
|
|
13355
|
+
ReferralTable,
|
|
13314
13356
|
ReferralTableCell,
|
|
13315
13357
|
ReferralTableRewardsCell,
|
|
13316
13358
|
UserName,
|
|
13317
13359
|
PasswordField,
|
|
13318
|
-
TaskCard$
|
|
13360
|
+
TaskCard$2,
|
|
13319
13361
|
PortalTemplates,
|
|
13320
13362
|
ProgramMenu,
|
|
13321
13363
|
PoweredByImg,
|
|
@@ -13335,10 +13377,11 @@ const stories = [
|
|
|
13335
13377
|
RewardsTableCell,
|
|
13336
13378
|
RewardsTable,
|
|
13337
13379
|
UseReferralTable,
|
|
13338
|
-
|
|
13380
|
+
HeroImage,
|
|
13339
13381
|
ReferralCard,
|
|
13382
|
+
Image$1,
|
|
13340
13383
|
];
|
|
13341
|
-
|
|
13384
|
+
const StencilStorybook = class {
|
|
13342
13385
|
constructor(hostRef) {
|
|
13343
13386
|
index.registerInstance(this, hostRef);
|
|
13344
13387
|
this.ignored = true;
|