@saasquatch/mint-components 1.6.8-13 → 1.6.8-15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-e9b5b949.js → ShadowViewAddon-fe65e8c7.js} +20 -27
- package/dist/cjs/{global-f85048bf.js → global-5b8a6adf.js} +1 -1
- package/dist/cjs/{index.module-2ca13866.js → index.module-dba49050.js} +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-c00242fe.js → re-render-3b3d609d.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_37.cjs.entry.js +102 -61
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-user-identifier-view-53f37293.js → sqm-logout-current-user-view-9c3f9464.js} +2 -2
- package/dist/cjs/{sqm-user-identifier.cjs.entry.js → sqm-logout-current-user.cjs.entry.js} +9 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-828f3fe3.js → sqm-navigation-sidebar-item-view-2a340425.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-1ae8805f.js → sqm-portal-email-verification-view-9cabaffe.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-4baa40c2.js → sqm-portal-profile-view-9ec4a51c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +55 -41
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{useChildElements-65547fd2.js → useChildElements-9e028700.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-e6387667.js → useInstantAccessRegistration-2d149bea.js} +1 -1
- package/dist/cjs/{useReferralTable-1ad18c8b.js → useReferralTable-53104b33.js} +6 -6
- package/dist/cjs/{useRegistrationFormState-59c2c7d2.js → useRegistrationFormState-81f74f14.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +15 -5
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +105 -7
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +36 -30
- package/dist/collection/components/sqm-instant-access-registration/useInstantAccessRegistration.js +2 -2
- package/dist/collection/components/{sqm-user-identifier/UserIdentifier.stories.js → sqm-logout-current-user/LogoutCurrentUser.stories.js} +4 -4
- package/dist/collection/components/{sqm-user-identifier/sqm-user-identifier-view.js → sqm-logout-current-user/sqm-logout-current-user-view.js} +1 -1
- package/dist/collection/components/{sqm-user-identifier/sqm-user-identifier.js → sqm-logout-current-user/sqm-logout-current-user.js} +11 -11
- package/dist/collection/components/{sqm-user-identifier/useUserIdentifer.js → sqm-logout-current-user/useLogoutCurrentUser.js} +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -2
- package/dist/collection/components/views/copy-text-view.js +10 -17
- package/dist/collection/stories/Widget.stories.js +12 -12
- package/dist/esm/{ShadowViewAddon-2dad6900.js → ShadowViewAddon-dbb7e12b.js} +20 -27
- package/dist/esm/{global-bb4b3160.js → global-f82b3eaa.js} +1 -1
- package/dist/esm/{index.module-4b531657.js → index.module-3b85bfd6.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-8e289fe5.js → re-render-3f69b74a.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat_37.entry.js +104 -63
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -4
- package/dist/esm/{sqm-user-identifier-view-ca48b8e4.js → sqm-logout-current-user-view-5dd42341.js} +2 -2
- package/dist/esm/{sqm-user-identifier.entry.js → sqm-logout-current-user.entry.js} +9 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-344fad1c.js → sqm-navigation-sidebar-item-view-2154f6b7.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-71ace81d.js → sqm-portal-email-verification-view-f237a7f0.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-53979418.js → sqm-portal-profile-view-bd86d8c4.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
- package/dist/esm/sqm-stencilbook.entry.js +55 -41
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{useChildElements-397ce8b1.js → useChildElements-ed0cabc6.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-dbefa6e5.js → useInstantAccessRegistration-2b0653e6.js} +1 -1
- package/dist/esm/{useReferralTable-1f5c29ea.js → useReferralTable-e80b1d3f.js} +6 -6
- package/dist/esm/{useRegistrationFormState-8e6fe126.js → useRegistrationFormState-e59e841f.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-dbb7e12b.js +1 -0
- package/dist/esm-es5/{global-bb4b3160.js → global-f82b3eaa.js} +1 -1
- package/dist/esm-es5/{index.module-4b531657.js → index.module-3b85bfd6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-8e289fe5.js → re-render-3f69b74a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-identifier-view-ca48b8e4.js → sqm-logout-current-user-view-5dd42341.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -0
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-344fad1c.js → sqm-navigation-sidebar-item-view-2154f6b7.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.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-email-verification-view-71ace81d.js → sqm-portal-email-verification-view-f237a7f0.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-53979418.js → sqm-portal-profile-view-bd86d8c4.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-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-397ce8b1.js → useChildElements-ed0cabc6.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-dbefa6e5.js → useInstantAccessRegistration-2b0653e6.js} +1 -1
- package/dist/esm-es5/{useReferralTable-1f5c29ea.js → useReferralTable-e80b1d3f.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-8e6fe126.js → useRegistrationFormState-e59e841f.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-95cdb415.system.entry.js → p-0206f817.system.entry.js} +1 -1
- package/dist/mint-components/p-04c3ddf2.entry.js +1 -0
- package/dist/mint-components/{p-6f327e02.entry.js → p-0b607625.entry.js} +1 -1
- package/dist/mint-components/{p-29b2edab.entry.js → p-0d45bea6.entry.js} +1 -1
- package/dist/mint-components/{p-0359974b.entry.js → p-19e12136.entry.js} +2 -2
- package/dist/mint-components/{p-590841e6.entry.js → p-1b864638.entry.js} +1 -1
- package/dist/mint-components/{p-7bb806fd.js → p-1ccd2ae7.js} +1 -1
- package/dist/mint-components/p-1e359094.system.js +1 -0
- package/dist/mint-components/{p-f00886bd.system.entry.js → p-1efa148e.system.entry.js} +1 -1
- package/dist/mint-components/{p-486f4257.system.js → p-229f6dd8.system.js} +1 -1
- package/dist/mint-components/p-29b3807c.system.entry.js +1 -0
- package/dist/mint-components/{p-b509ae3c.js → p-2d004700.js} +1 -1
- package/dist/mint-components/{p-75485abc.entry.js → p-30ff6f08.entry.js} +1 -1
- package/dist/mint-components/{p-fd544705.system.entry.js → p-32b70446.system.entry.js} +1 -1
- package/dist/mint-components/{p-978a1f09.system.js → p-338402f3.system.js} +1 -1
- package/dist/mint-components/{p-34b044cf.system.js → p-35108622.system.js} +1 -1
- package/dist/mint-components/{p-adef1bdf.system.entry.js → p-36bbc0ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-537a5e24.entry.js → p-3aa2e966.entry.js} +1 -1
- package/dist/mint-components/p-3e46f226.system.entry.js +1 -0
- package/dist/mint-components/{p-3fafff3d.system.js → p-486f7db8.system.js} +1 -1
- package/dist/mint-components/{p-779c68e8.system.entry.js → p-491572f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-f794f564.system.js → p-4e9a310a.system.js} +1 -1
- package/dist/mint-components/{p-06bb02e9.entry.js → p-537f3093.entry.js} +1 -1
- package/dist/mint-components/{p-bf8109aa.system.js → p-58b72bb1.system.js} +1 -1
- package/dist/mint-components/{p-9f1b1830.js → p-5e6449bf.js} +1 -1
- package/dist/mint-components/{p-537c4ca7.entry.js → p-5ef07ab3.entry.js} +1 -1
- package/dist/mint-components/p-5f80a76c.system.entry.js +1 -0
- package/dist/mint-components/{p-16b2a1ca.entry.js → p-656667a6.entry.js} +1 -1
- package/dist/mint-components/{p-d3096c12.entry.js → p-68f0fac9.entry.js} +1 -1
- package/dist/mint-components/{p-4b88d6a5.js → p-69c8265a.js} +1 -1
- package/dist/mint-components/{p-8cd5c520.entry.js → p-6a6c3994.entry.js} +1 -1
- package/dist/mint-components/{p-8e958ade.entry.js → p-70b24b1e.entry.js} +1 -1
- package/dist/mint-components/{p-7ed96913.entry.js → p-72befd7d.entry.js} +1 -1
- package/dist/mint-components/{p-5698b30e.js → p-72f635dd.js} +1 -1
- package/dist/mint-components/{p-a3a639cc.system.entry.js → p-787f122a.system.entry.js} +1 -1
- package/dist/mint-components/{p-51291020.system.js → p-7bfd977a.system.js} +1 -1
- package/dist/mint-components/{p-dcf45468.system.entry.js → p-800ae5a0.system.entry.js} +1 -1
- package/dist/mint-components/{p-383e1a82.system.js → p-8ab4b347.system.js} +1 -1
- package/dist/mint-components/{p-57b16281.entry.js → p-8dc97762.entry.js} +1 -1
- package/dist/mint-components/{p-7af57f0d.js → p-952076b5.js} +1 -1
- package/dist/mint-components/{p-be51f920.system.entry.js → p-98f7be38.system.entry.js} +1 -1
- package/dist/mint-components/{p-93d23908.system.entry.js → p-9a05d733.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8f38714.entry.js → p-9a6def41.entry.js} +29 -19
- package/dist/mint-components/{p-e7f749b8.entry.js → p-9c2e5dac.entry.js} +1 -1
- package/dist/mint-components/{p-fa9c79fe.js → p-9ed546ca.js} +1 -1
- package/dist/mint-components/{p-c4340963.system.entry.js → p-b01ec794.system.entry.js} +1 -1
- package/dist/mint-components/{p-7be51ca9.js → p-b0c20ed2.js} +2 -2
- package/dist/mint-components/p-b6289d34.system.entry.js +1 -0
- package/dist/mint-components/{p-29abb4f9.system.entry.js → p-b73ca825.system.entry.js} +1 -1
- package/dist/mint-components/p-b940a11a.system.js +1 -0
- package/dist/mint-components/{p-24722129.system.entry.js → p-bd3bbced.system.entry.js} +1 -1
- package/dist/mint-components/{p-357c4022.js → p-be4457be.js} +1 -1
- package/dist/mint-components/{p-52acbebf.system.js → p-c1c89b68.system.js} +1 -1
- package/dist/mint-components/{p-ae5637e2.js → p-c294fbaf.js} +2 -2
- package/dist/mint-components/{p-e8bb9b24.system.js → p-c2adbe14.system.js} +1 -1
- package/dist/mint-components/{p-5a6373e8.system.js → p-c31b4722.system.js} +1 -1
- package/dist/mint-components/p-c8347f72.js +1 -0
- package/dist/mint-components/{p-d25d87d5.system.entry.js → p-c88ebfe9.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdb7d4fe.entry.js → p-c9951196.entry.js} +1 -1
- package/dist/mint-components/{p-07064412.system.entry.js → p-cd7a7bb0.system.entry.js} +1 -1
- package/dist/mint-components/p-d055b3a7.system.entry.js +1 -0
- package/dist/mint-components/{p-94bf6e15.entry.js → p-d0a7ccc3.entry.js} +1 -1
- package/dist/mint-components/{p-65f417f7.entry.js → p-d0b2a2cb.entry.js} +1 -1
- package/dist/mint-components/{p-0bfda9af.system.entry.js → p-d3626cea.system.entry.js} +1 -1
- package/dist/mint-components/{p-f247da77.js → p-d8c8759b.js} +1 -1
- package/dist/mint-components/p-e07f5715.entry.js +9 -0
- package/dist/mint-components/{p-bff98c0d.entry.js → p-e4899a00.entry.js} +1 -1
- package/dist/mint-components/{p-18db0d27.system.entry.js → p-e5c1a8d9.system.entry.js} +1 -1
- package/dist/mint-components/{p-a22eb665.entry.js → p-eb8a4911.entry.js} +2 -2
- package/dist/mint-components/{p-24f29c97.system.entry.js → p-ee1db375.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf335085.system.entry.js → p-efd25880.system.entry.js} +1 -1
- package/dist/mint-components/{p-d66fd18e.system.entry.js → p-f2ae5d6d.system.entry.js} +1 -1
- package/dist/mint-components/{p-8baedd92.entry.js → p-f33e4560.entry.js} +1 -1
- package/dist/mint-components/{p-09b40c24.entry.js → p-f8da123f.entry.js} +1 -1
- package/dist/mint-components/{p-967f6b50.system.entry.js → p-ff877a12.system.entry.js} +1 -1
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +7 -2
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +19 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user-view.d.ts +6 -0
- package/dist/types/components/{sqm-user-identifier/sqm-user-identifier.d.ts → sqm-logout-current-user/sqm-logout-current-user.d.ts} +3 -3
- package/dist/types/components/sqm-logout-current-user/useLogoutCurrentUser.d.ts +3 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +2 -1
- package/dist/types/components.d.ts +75 -45
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/stories/Widget.stories.d.ts +4 -4
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/ShadowViewAddon-2dad6900.js +0 -1
- package/dist/esm-es5/sqm-user-identifier.entry.js +0 -1
- package/dist/mint-components/p-04751f3a.system.js +0 -1
- package/dist/mint-components/p-215c517c.entry.js +0 -1
- package/dist/mint-components/p-25632b7a.system.entry.js +0 -1
- package/dist/mint-components/p-2d3ab333.entry.js +0 -9
- package/dist/mint-components/p-339e7ce2.system.entry.js +0 -1
- package/dist/mint-components/p-56a5a523.system.entry.js +0 -1
- package/dist/mint-components/p-ac297f95.js +0 -1
- package/dist/mint-components/p-af27369e.system.js +0 -1
- package/dist/mint-components/p-c14d5640.system.entry.js +0 -1
- package/dist/mint-components/p-ddcfcb65.system.entry.js +0 -1
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +0 -6
- package/dist/types/components/sqm-user-identifier/useUserIdentifer.d.ts +0 -3
- /package/dist/types/components/{sqm-user-identifier/UserIdentifier.stories.d.ts → sqm-logout-current-user/LogoutCurrentUser.stories.d.ts} +0 -0
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
require('./global-
|
|
7
|
+
require('./global-5b8a6adf.js');
|
|
8
8
|
require('./use-callback-86e9ac75.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-dba49050.js');
|
|
10
10
|
require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-380b83e2.js');
|
|
14
|
-
require('./useChildElements-
|
|
14
|
+
require('./useChildElements-9e028700.js');
|
|
15
15
|
const luxon = require('./luxon-53e983a6.js');
|
|
16
16
|
require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-3c734dbb.js');
|
|
@@ -20,16 +20,16 @@ const sqmHeroView = require('./sqm-hero-view-ddd1ef43.js');
|
|
|
20
20
|
const emailRegistrationView = require('./email-registration-view-972baf62.js');
|
|
21
21
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
22
22
|
const sqmLinkButtonView = require('./sqm-link-button-view-2ee270e0.js');
|
|
23
|
+
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-9c3f9464.js');
|
|
23
24
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-b830e8d8.js');
|
|
24
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
25
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
25
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-2a340425.js');
|
|
26
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-9cabaffe.js');
|
|
26
27
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-f73bb724.js');
|
|
27
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
28
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-9ec4a51c.js');
|
|
28
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-e182df83.js');
|
|
29
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-fd739843.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
31
|
+
const ShadowViewAddon = require('./ShadowViewAddon-fe65e8c7.js');
|
|
31
32
|
const sqmPortalContainerView = require('./sqm-portal-container-view-6accb54a.js');
|
|
32
|
-
const sqmUserIdentifierView = require('./sqm-user-identifier-view-53f37293.js');
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -1445,7 +1445,7 @@ var _createEmotion = createEmotion({
|
|
|
1445
1445
|
}),
|
|
1446
1446
|
css = _createEmotion.css;
|
|
1447
1447
|
|
|
1448
|
-
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
|
|
1448
|
+
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 a$1(n,t){return t||(t=n.slice(0)),n.raw=t,n}var s,l,c$1,u=css(s||(s=a$1(['\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(s,f){var m=f.h,y=void 0===m?index.h:m,b=f.title,g=void 0===b?"Stencilbook":b,x=f.homepage,h=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,w=void 0===v?[]:v,k=stencilHooks_module.useMemo(function(){return s.map(d$1).reduce(p$1,{_:[]})},s),S=decodeURIComponent(window.location.hash).replace("#",""),C=stencilHooks_module.useState(q(S)),z=C[0],O=C[1],j=null==z?void 0:z.key,I=stencilHooks_module.useState("desktop")[0],R=stencilHooks_module.useState(!0),U=R[0],_=R[1],B=stencilHooks_module.useState(!1),L=B[0],T=B[1];function q(n){var t;if(n){var o=decodeURIComponent(n).split("-"),r=o[1],e=o[2],i=null==(t=k[o[0]])?void 0:t.find(function(n){return n.story.title===r}),a=i.subs[e];return {key:n,story:a,parent:null==i?void 0:i.story,label:null==a?void 0:a.name}}}var A=function(){return y("div",{class:"dynamic-display-wrapper"},y("button",{class:L?"active":"",onClick:function(){return T(function(n){return !n})}},"Toggle Dark Background"),y("button",{class:U?"active":"",onClick:function(){return _(function(n){return !n})}},"Toggle Sidebar"))},D="mobile"===I?"375px":"tablet"===I?"768px":"1124px",N=css(l||(l=a$1(["\n max-width: ",";\n margin-left: ",";\n "])),D,U?"250px":"0px"),P=css(c$1||(c$1=a$1(["\n display: none;\n "])));document.body.style.backgroundColor=L?"#232323":"#fafafa";var V=function(n){var t=n.selected,o=w.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)},X=function(){return y("div",{class:"story-book-outer-div"},y("div",{class:"story-div "+(U?"":P)},y("div",{class:"header",onClick:function(){O(void 0);}},y("h2",null,g)),y("ul",{class:"parentStoryList"},Object.keys(k).sort().map(function(n){return y("div",{class:"group-wrapper"},"_"!==n&&y("h4",{class:"group-header"},n),k[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+"-"+t.story.title+"-"+o,i=t.subs[o].storyName||lodash_startcase(o);return y("div",{class:"subStory "+(j===e?"selected":"")},y("a",{onClick:function(){return function(n){window.location.hash=encodeURIComponent(n),O(q(n));}(e)}},i))})))}))}))),y(A,null),y("div",{class:"component "+N},!j&&h,j&&y("div",null,y("h3",null,z.label),y(V,{selected:z}))))};return {class:u,children:y(X,null),View:X,selected:z}}
|
|
1449
1449
|
|
|
1450
1450
|
const scenario = "@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button's medium prop is \"<medium>\"\n And the button's child is text saying \"BUTTON_TEXT\"\n When the share button is rendered\n Then the button has text \"BUTTON_TEXT\"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #1da1f2 | twitter logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button's medium prop is \"direct\"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button's medium is \"sms\"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone's Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device's browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the \"programId\" prop\n Then the program ID in the \"programId\" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the \"programId\" prop\n Then the program ID is retrieved from context";
|
|
1451
1451
|
|
|
@@ -3892,13 +3892,13 @@ const monoWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\
|
|
|
3892
3892
|
|
|
3893
3893
|
const loyaltyWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\n <sqm-portal-container\n direction=\"column\"\n padding=\"small\"\n gap=\"xxxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-hero-image\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\n header=\"MyCompany Rewards\"\n description=\"Complete tasks to earn rewards\"\n layout=\"overlay\"\n padding-image=\"xxxx-large\"\n padding-text=\"xxx-large\"\n image-pos=\"center\"\n overlay-color=\"#5e5669\"\n overlay-opacity=\"0.9\"\n >\n </sqm-hero-image>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-program-explainer header=\"How it works\">\n <sqm-program-explainer-step\n description=\"Complete tasks like uploading your first video or sharing videos with friends\"\n header=\"Earn points for using our product\"\n icon=\"cash-stack\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n <sqm-program-explainer-step\n description=\"Redeem rewards like one free month of Enterprise or two plane tickets to anywhere in North America\"\n header=\"Redeem rewards with your points\"\n icon=\"people\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n </sqm-program-explainer>\n <sqm-portal-container\n center\n direction=\"row\"\n display=\"flex\"\n justify-content=\"space-between\"\n gap=\"xxx-large\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsRedeemed/CREDIT/POINTS\"\n >\n <p>Points Redeemed</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/POINT/value/global\"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n </sqm-portal-container>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-titled-section\n label-margin=\"small\"\n padding=\"none\"\n text-align=\"center\"\n >\n <h3 slot=\"label\">Earn points</h3>\n </sqm-titled-section>\n <sqm-card-feed gap=\"24\" width=\"347\">\n <sqm-task-card\n reward-amount=\"20\"\n goal=\"1\"\n card-title=\"Complete a Survey\"\n description=\"Fill out our NPS survey and get 20 points for giving us honest feedback.\"\n button-text=\"Take survey\"\n reward-unit=\"Points\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"250\"\n goal=\"500\"\n show-progress-bar\n card-title=\"Spend $500\"\n description=\"Earn 250 points when you spend $500 or more.\"\n button-text=\"See plans\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n progress-bar-unit=\"$\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n goal=\"1\"\n reward-amount=\"50\"\n card-title=\"Follow Us on Twitter\"\n description=\"Earn 50 points when you follow us on Twitter!\"\n button-text=\"Follow\"\n button-link=\"https://twitter.com/\"\n open-new-tab=\"true\"\n event-key=\"socialFollow\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"1\"\n reward-unit=\"Free Month\"\n goal=\"1\"\n card-title=\"Upgrade Your Plan\"\n description=\"Receive one free month for being a committed customer when you upgrade your plan.\"\n button-text=\"Upgrade\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n open-new-tab=\"false\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n </sqm-card-feed>\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n padding=\"none\"\n text-align=\"center\"\n label-margin=\"xx-small\"\n >\n <h3 slot=\"label\">Reward History</h3>\n </sqm-titled-section>\n <sqm-rewards-table\n per-page=\"4\"\n hidden-columns=\"0\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-rewards-table-reward-column\n available-text=\"{availableAmount} remaining\"\n column-title=\"Reward\"\n copy-text=\"Copied!\"\n redeemed-text=\"{redeemedAmount} redeemed\"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user=\"Anonymous User\"\n column-title=\"Source\"\n deleted-user=\"Deleted User\"\n referral-text=\"{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}\"\n reward-exchange-text=\"Reward Exchange\"\n reward-source-text=\"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}\"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title=\"Status\"\n expiry-text=\"Expires on \"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title=\"Date received\"\n date-shown=\"dateGiven\"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png\"\n empty-state-header=\"View your rewards\"\n empty-state-text=\"Refer friends and complete tasks to view the details of your rewards\"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3894
3894
|
|
|
3895
|
-
const
|
|
3895
|
+
const instantAccessReferrerShareWidget = "<sqm-brand>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"header\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n <sqm-portal-container\n gap=\"large\"\n slot=\"left\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>How to get rewarded!</p>\n <sqm-timeline icon=\"circle\">\n <sqm-timeline-entry\n reward=\"$50\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases a Business plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$200\"\n unit=\"visa giftcard\"\n desc=\"Our sales team qualifies your friend as a good fit for our Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$1000\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases an Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap=\"large\"\n slot=\"right\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>Choose how you want to share:</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text=\"Copied to Clipboard\"\n tooltip-lifespan=\"1000\"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap=\"x-small\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-share-button\n medium=\"email\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium=\"linkedin\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium=\"twitter\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Tweet about us\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-container\n slot=\"footer\"\n direction=\"column\"\n gap=\"small\"\n justify-content=\"center\"\n display=\"flex\"\n padding=\"large\"\n >\n <sqm-logout-current-user\n switch-user-link=\"https://www.example.com\"\n ></sqm-logout-current-user\n ><sqm-portal-footer\n padding-top=\"none\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-referral-card>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3896
3896
|
|
|
3897
|
-
const
|
|
3897
|
+
const instantAccessFriendCouponWidget = "<sqm-brand>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"flex\"\n justify-content=\"center\"\n max-width=\"100%\"\n padding=\"none\"\n slot=\"header\"\n >\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n >\n <h3 slot=\"label\">You got $50 off thanks to a friend!</h3>\n\n <p slot=\"content\">\n Description about sharing the products wiht friends will make your\n life 100 times better!\n </p>\n </sqm-titled-section>\n\n <sqm-portal-container>\n <p>\n The coupon code has some conditions that are described concisely in\n this paragraph so that you don’t get upset if the code doesn’t work\n </p></sqm-portal-container\n >\n\n <sqm-coupon-code></sqm-coupon-code>\n </sqm-portal-container>\n\n <sqm-portal-footer\n slot=\"footer\"\n padding-top=\"none\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n ></sqm-portal-footer>\n </sqm-referral-card>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3898
3898
|
|
|
3899
|
-
const
|
|
3899
|
+
const instantAccessReferrerRegistrationWidget = "<sqm-brand>\n <sqm-instant-access-registration include-name=\"true\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"top-slot\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n\n <sqm-portal-footer\n hide-support-text=\"true\"\n terms-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n slot=\"bottom-slot\"\n ></sqm-portal-footer>\n </sqm-instant-access-registration>\n</sqm-brand>\n";
|
|
3900
3900
|
|
|
3901
|
-
const
|
|
3901
|
+
const instantAccessFriendRegistrationWidget = "<sqm-brand>\n <sqm-referred-registration register-label=\"Get $50 off\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"top-slot\"\n >\n <h3 slot=\"label\">You got $50 off thanks to a friend!</h3>\n <p slot=\"content\">\n Description about sharing the products with friends will make your life\n 100 times better!\n </p>\n </sqm-titled-section>\n\n <div slot=\"bottom-slot\">\n <p style=\"text-align: center; margin-top: 0; margin-bottom: 1.5rem\">\n *Valid on purchases of $75 or more\n </p>\n <sqm-portal-footer\n hide-support-text=\"true\"\n terms-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </div>\n </sqm-referred-registration>\n</sqm-brand>\n";
|
|
3902
3902
|
|
|
3903
3903
|
const portalTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
3904
3904
|
|
|
@@ -7106,20 +7106,20 @@ const Loyalty = createHookStory(() => {
|
|
|
7106
7106
|
const { states, callbacks } = useTemplate$2(loyaltyWidget);
|
|
7107
7107
|
return (index.h(DefaultTemplateView$1, { states: states, callbacks: callbacks, template: loyaltyWidget }));
|
|
7108
7108
|
});
|
|
7109
|
-
const
|
|
7110
|
-
const { states, callbacks } = useTemplate$2(
|
|
7109
|
+
const InstantAccessReferrerShareWidget = createHookStory(() => {
|
|
7110
|
+
const { states, callbacks } = useTemplate$2(instantAccessReferrerShareWidget);
|
|
7111
7111
|
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
7112
7112
|
});
|
|
7113
|
-
const
|
|
7114
|
-
const { states, callbacks } = useTemplate$2(
|
|
7113
|
+
const InstantAccessFriendCouponWidget = createHookStory(() => {
|
|
7114
|
+
const { states, callbacks } = useTemplate$2(instantAccessFriendCouponWidget);
|
|
7115
7115
|
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
7116
7116
|
});
|
|
7117
|
-
const
|
|
7118
|
-
const { states, callbacks } = useTemplate$2(
|
|
7117
|
+
const InstantAccessReferrerRegistrationWidget = createHookStory(() => {
|
|
7118
|
+
const { states, callbacks } = useTemplate$2(instantAccessReferrerRegistrationWidget);
|
|
7119
7119
|
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
7120
7120
|
});
|
|
7121
|
-
const
|
|
7122
|
-
const { states, callbacks } = useTemplate$2(
|
|
7121
|
+
const InstantAccessFriendRegistrationWidget = createHookStory(() => {
|
|
7122
|
+
const { states, callbacks } = useTemplate$2(instantAccessFriendRegistrationWidget);
|
|
7123
7123
|
return index.h(TemplateView$1, { states: states, callbacks: callbacks });
|
|
7124
7124
|
});
|
|
7125
7125
|
|
|
@@ -7129,10 +7129,10 @@ const Widget$1 = /*#__PURE__*/Object.freeze({
|
|
|
7129
7129
|
ReferralWidget: ReferralWidget,
|
|
7130
7130
|
MonoWidget: MonoWidget,
|
|
7131
7131
|
Loyalty: Loyalty,
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7132
|
+
InstantAccessReferrerShareWidget: InstantAccessReferrerShareWidget,
|
|
7133
|
+
InstantAccessFriendCouponWidget: InstantAccessFriendCouponWidget,
|
|
7134
|
+
InstantAccessReferrerRegistrationWidget: InstantAccessReferrerRegistrationWidget,
|
|
7135
|
+
InstantAccessFriendRegistrationWidget: InstantAccessFriendRegistrationWidget
|
|
7136
7136
|
});
|
|
7137
7137
|
|
|
7138
7138
|
const SidebarItem_stories = {
|
|
@@ -13171,10 +13171,12 @@ const EmailRegistration = /*#__PURE__*/Object.freeze({
|
|
|
13171
13171
|
EmptyEmailError: EmptyEmailError
|
|
13172
13172
|
});
|
|
13173
13173
|
|
|
13174
|
+
const scenario$A = "@author:truman\n@owner:truman\nFeature: Coupon Code\n\n The coupon code component is a box that allows users to see and copy their coupon code for a given program\n\n @motivating\n Scenario: A Users sharelink can be copied to their clipboard\n Given tooltipText is \"hello tooltip\"\n When the component renders\n Then there is a textbox with the user's coupon code\n When the clipboard icon is clicked\n Then the link is copied to clipboard\n And a tooltip appears for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip's lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip appears for ~2 seconds\n\n @minutia\n Scenario: Component shows an error state when there are no coupon codes\n Given a user is viewing the coupon code component\n When there are no coupon code to display\n Then the coupon code input box has a red border\n And there is red help text about the error\n And in place of the coupon code is \"CODE ERROR\"\n When the copy button's position is set to \"below\"\n Then the red help text is below the copy button\n\n @ui\n Scenario: user can edit the error message and code placeholder\n\n @ui\n Scenario: user can edit the alignment of the coupon code text\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the coupon code component\n When they change the option \"Button style\" to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button inside | inside the input, on the right |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |";
|
|
13175
|
+
|
|
13174
13176
|
const CouponCode_stories = {
|
|
13175
13177
|
title: "Components/Coupon Code",
|
|
13176
13178
|
parameters: {
|
|
13177
|
-
|
|
13179
|
+
scenario: scenario$A,
|
|
13178
13180
|
},
|
|
13179
13181
|
};
|
|
13180
13182
|
const defaultProps$e = {
|
|
@@ -13182,8 +13184,8 @@ const defaultProps$e = {
|
|
|
13182
13184
|
copyString: "THANKSJANE125uv125",
|
|
13183
13185
|
open: false,
|
|
13184
13186
|
copyButtonLabel: "Copy Coupon",
|
|
13185
|
-
errorText: "Oops! Looks like we weren’t able to retrieve a code for you. Please try again later.",
|
|
13186
13187
|
inputPlaceholderText: "CODE ERROR",
|
|
13188
|
+
rewardStatus: "AVAILABLE",
|
|
13187
13189
|
};
|
|
13188
13190
|
const CouponCode = () => {
|
|
13189
13191
|
return index.h("sqm-coupon-code", { tooltiptext: "Copied to Clipboard" });
|
|
@@ -13206,11 +13208,20 @@ const CopyButtonInside$2 = () => {
|
|
|
13206
13208
|
const CopyButtonBelow$2 = () => {
|
|
13207
13209
|
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { buttonStyle: "button below" })));
|
|
13208
13210
|
};
|
|
13209
|
-
const
|
|
13210
|
-
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, {
|
|
13211
|
+
const ErrorPending = () => {
|
|
13212
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { rewardStatus: "PENDING", errorText: "Oops! Looks like we weren\u2019t able to retrieve a code for you. Please try again later or contact support." })));
|
|
13213
|
+
};
|
|
13214
|
+
const ErrorCancelled = () => {
|
|
13215
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { rewardStatus: "CANCELLED", errorText: "Oops! Your coupon code is cancelled. Please try again later or contact support." })));
|
|
13216
|
+
};
|
|
13217
|
+
const ErrorRedeemed = () => {
|
|
13218
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { rewardStatus: "REDEEMED", errorText: "Oops! Your coupon code has already been redeemed. Please try again later or contact support." })));
|
|
13219
|
+
};
|
|
13220
|
+
const ErrorExpired = () => {
|
|
13221
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { rewardStatus: "EXPIRED", errorText: "Oops! Your coupon code is expired. Please try again later or contact support." })));
|
|
13211
13222
|
};
|
|
13212
13223
|
const ErrorButtonBelow = () => {
|
|
13213
|
-
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, {
|
|
13224
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { rewardStatus: "PENDING", buttonStyle: "button below" })));
|
|
13214
13225
|
};
|
|
13215
13226
|
|
|
13216
13227
|
const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -13223,16 +13234,19 @@ const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
|
13223
13234
|
CopyButton: CopyButton$2,
|
|
13224
13235
|
CopyButtonInside: CopyButtonInside$2,
|
|
13225
13236
|
CopyButtonBelow: CopyButtonBelow$2,
|
|
13226
|
-
|
|
13237
|
+
ErrorPending: ErrorPending,
|
|
13238
|
+
ErrorCancelled: ErrorCancelled,
|
|
13239
|
+
ErrorRedeemed: ErrorRedeemed,
|
|
13240
|
+
ErrorExpired: ErrorExpired,
|
|
13227
13241
|
ErrorButtonBelow: ErrorButtonBelow
|
|
13228
13242
|
});
|
|
13229
13243
|
|
|
13230
|
-
const scenario$
|
|
13244
|
+
const scenario$B = "@author:noah\n@owner:noah\n\nFeature: Logout Current User\n\n Scenario: A user on an instant access widget\n Given a user viewing an instant access widget\n And the user is identified\n And the user is not logged in\n Then the component identifies the user by email\n\n Scenario: Users can switch who they are identified as through a link\n Given a user viewing an instant access widget\n And the user is identified\n And the user is not logged in\n When the user clicks the link in the component\n Then they are sent back to the registration form to re-identify themselves";
|
|
13231
13245
|
|
|
13232
|
-
const
|
|
13233
|
-
title: "Components/User
|
|
13246
|
+
const LogoutCurrentUser_stories = {
|
|
13247
|
+
title: "Components/Logout Current User",
|
|
13234
13248
|
parameters: {
|
|
13235
|
-
scenario: scenario$
|
|
13249
|
+
scenario: scenario$B,
|
|
13236
13250
|
},
|
|
13237
13251
|
};
|
|
13238
13252
|
const defaultProps$f = {
|
|
@@ -13241,21 +13255,21 @@ const defaultProps$f = {
|
|
|
13241
13255
|
switchUserText: "not you?",
|
|
13242
13256
|
};
|
|
13243
13257
|
const Default$f = () => {
|
|
13244
|
-
return index.h(
|
|
13258
|
+
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$f));
|
|
13245
13259
|
};
|
|
13246
13260
|
|
|
13247
|
-
const
|
|
13261
|
+
const LogoutCurrentUser = /*#__PURE__*/Object.freeze({
|
|
13248
13262
|
__proto__: null,
|
|
13249
|
-
'default':
|
|
13263
|
+
'default': LogoutCurrentUser_stories,
|
|
13250
13264
|
Default: Default$f
|
|
13251
13265
|
});
|
|
13252
13266
|
|
|
13253
|
-
const scenario$
|
|
13267
|
+
const scenario$C = "@author:noah\n@owner:noah\n\nFeature: Link Button\n\n\tScenario: When a user clicks the button a link open\n\t\tWhen a user clicks the button\n\t\tThen a link opens\n\t\tAnd if `openInNewTab` is set to true then the link opens in a new tab";
|
|
13254
13268
|
|
|
13255
13269
|
const LinkButton_stories = {
|
|
13256
13270
|
title: "Components/Link Button",
|
|
13257
13271
|
parameters: {
|
|
13258
|
-
scenario: scenario$
|
|
13272
|
+
scenario: scenario$C,
|
|
13259
13273
|
},
|
|
13260
13274
|
};
|
|
13261
13275
|
const defaultProps$g = {
|
|
@@ -15987,7 +16001,7 @@ const stories = [
|
|
|
15987
16001
|
Tabs,
|
|
15988
16002
|
ShareCode$1,
|
|
15989
16003
|
CouponCode$1,
|
|
15990
|
-
|
|
16004
|
+
LogoutCurrentUser,
|
|
15991
16005
|
LinkButton,
|
|
15992
16006
|
EmailRegistration,
|
|
15993
16007
|
];
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
require('./index.module-
|
|
9
|
-
const reRender = require('./re-render-
|
|
8
|
+
require('./index.module-dba49050.js');
|
|
9
|
+
const reRender = require('./re-render-3b3d609d.js');
|
|
10
10
|
|
|
11
11
|
const TabView = ({}, children) => {
|
|
12
12
|
return index.h(index.Host, null, children);
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
const reRender = require('./re-render-
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
8
|
+
const index_module = require('./index.module-dba49050.js');
|
|
9
|
+
const reRender = require('./re-render-3b3d609d.js');
|
|
10
|
+
const useChildElements = require('./useChildElements-9e028700.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
|
|
13
13
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-dba49050.js');
|
|
5
5
|
|
|
6
6
|
function useChildElements() {
|
|
7
7
|
const host = index_module.V();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-dba49050.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
6
|
|
|
7
7
|
function useInstantAccessRegistration(options) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
5
|
-
const index_module = require('./index.module-
|
|
6
|
-
const reRender = require('./re-render-
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
5
|
+
const index_module = require('./index.module-dba49050.js');
|
|
6
|
+
const reRender = require('./re-render-3b3d609d.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-9e028700.js');
|
|
8
8
|
const luxon = require('./luxon-53e983a6.js');
|
|
9
9
|
|
|
10
10
|
const mockRewardData = (count = 4) => {
|
|
@@ -343,8 +343,8 @@ const GET_REFERRAL_DATA = index_module.dist.gql `
|
|
|
343
343
|
`;
|
|
344
344
|
function useReferralTable(props, emptyElement, loadingElement) {
|
|
345
345
|
var _a, _b, _c;
|
|
346
|
-
const user = index_module.
|
|
347
|
-
const programIdContext = index_module.
|
|
346
|
+
const user = index_module.L();
|
|
347
|
+
const programIdContext = index_module.O();
|
|
348
348
|
// Default to context, overriden by props
|
|
349
349
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
350
350
|
// If no program ID, shows all programs
|
|
@@ -366,7 +366,7 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
366
366
|
loading: false,
|
|
367
367
|
page: 0,
|
|
368
368
|
});
|
|
369
|
-
const locale = index_module.
|
|
369
|
+
const locale = index_module.W();
|
|
370
370
|
const { data: referrerResponse, loading: referrerLoading, refetch, } = index_module.mn(GET_REFERRER_DATA, {
|
|
371
371
|
programId: programId === "classic" ? null : programId,
|
|
372
372
|
rewardFilter,
|
package/dist/cjs/{useRegistrationFormState-59c2c7d2.js → useRegistrationFormState-81f74f14.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-dba49050.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
function useRegistrationFormState(formState) {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"./components/sqm-leaderboard/sqm-leaderboard.js",
|
|
27
27
|
"./components/sqm-leaderboard-rank/sqm-leaderboard-rank.js",
|
|
28
28
|
"./components/sqm-link-button/sqm-link-button.js",
|
|
29
|
+
"./components/sqm-logout-current-user/sqm-logout-current-user.js",
|
|
29
30
|
"./components/sqm-name-fields/sqm-name-fields.js",
|
|
30
31
|
"./components/sqm-navigation-menu/sqm-navigation-menu.js",
|
|
31
32
|
"./components/sqm-navigation-sidebar/sqm-navigation-sidebar.js",
|
|
@@ -90,7 +91,6 @@
|
|
|
90
91
|
"./components/sqm-timeline/sqm-timeline-entry.js",
|
|
91
92
|
"./components/sqm-timeline/sqm-timeline.js",
|
|
92
93
|
"./components/sqm-titled-section/sqm-titled-section.js",
|
|
93
|
-
"./components/sqm-user-identifier/sqm-user-identifier.js",
|
|
94
94
|
"./components/sqm-user-name/sqm-user-name.js"
|
|
95
95
|
],
|
|
96
96
|
"compiler": {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { CopyTextView } from "../views/copy-text-view";
|
|
3
|
+
import scenario from "./sqm-coupon-code.feature";
|
|
3
4
|
export default {
|
|
4
5
|
title: "Components/Coupon Code",
|
|
5
6
|
parameters: {
|
|
6
|
-
|
|
7
|
+
scenario,
|
|
7
8
|
},
|
|
8
9
|
};
|
|
9
10
|
const defaultProps = {
|
|
@@ -11,8 +12,8 @@ const defaultProps = {
|
|
|
11
12
|
copyString: "THANKSJANE125uv125",
|
|
12
13
|
open: false,
|
|
13
14
|
copyButtonLabel: "Copy Coupon",
|
|
14
|
-
errorText: "Oops! Looks like we weren’t able to retrieve a code for you. Please try again later.",
|
|
15
15
|
inputPlaceholderText: "CODE ERROR",
|
|
16
|
+
rewardStatus: "AVAILABLE",
|
|
16
17
|
};
|
|
17
18
|
export const CouponCode = () => {
|
|
18
19
|
return h("sqm-coupon-code", { tooltiptext: "Copied to Clipboard" });
|
|
@@ -35,9 +36,18 @@ export const CopyButtonInside = () => {
|
|
|
35
36
|
export const CopyButtonBelow = () => {
|
|
36
37
|
return (h(CopyTextView, Object.assign({}, defaultProps, { buttonStyle: "button below" })));
|
|
37
38
|
};
|
|
38
|
-
export const
|
|
39
|
-
return h(CopyTextView, Object.assign({}, defaultProps, {
|
|
39
|
+
export const ErrorPending = () => {
|
|
40
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { rewardStatus: "PENDING", errorText: "Oops! Looks like we weren\u2019t able to retrieve a code for you. Please try again later or contact support." })));
|
|
41
|
+
};
|
|
42
|
+
export const ErrorCancelled = () => {
|
|
43
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { rewardStatus: "CANCELLED", errorText: "Oops! Your coupon code is cancelled. Please try again later or contact support." })));
|
|
44
|
+
};
|
|
45
|
+
export const ErrorRedeemed = () => {
|
|
46
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { rewardStatus: "REDEEMED", errorText: "Oops! Your coupon code has already been redeemed. Please try again later or contact support." })));
|
|
47
|
+
};
|
|
48
|
+
export const ErrorExpired = () => {
|
|
49
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { rewardStatus: "EXPIRED", errorText: "Oops! Your coupon code is expired. Please try again later or contact support." })));
|
|
40
50
|
};
|
|
41
51
|
export const ErrorButtonBelow = () => {
|
|
42
|
-
return (h(CopyTextView, Object.assign({}, defaultProps, {
|
|
52
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { rewardStatus: "PENDING", buttonStyle: "button below" })));
|
|
43
53
|
};
|