@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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h, u as useEffect, i as useState, o as d, j as useRef, b as browser, f as useReducer } from './stencil-hooks.module-b48b45ec.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-f82b3eaa.js';
|
|
4
4
|
import { u as useCallback } from './use-callback-051c06c6.js';
|
|
5
|
-
import { i as isDemo, V, d as dist,
|
|
5
|
+
import { i as isDemo, V, d as dist, L, b as mn, I as Ie, O, W, a as dn, p as pn, j as xe, S as Se, k as ke, l as _e, v as vn, T } from './index.module-3b85bfd6.js';
|
|
6
6
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
10
|
-
import { a as useRequestRerender } from './re-render-
|
|
11
|
-
import { u as useChildElements } from './useChildElements-
|
|
10
|
+
import { a as useRequestRerender } from './re-render-3f69b74a.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-ed0cabc6.js';
|
|
12
12
|
import './luxon-1e38d7f1.js';
|
|
13
13
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
14
14
|
import './sqm-text-span-view-2f7d6d14.js';
|
|
15
15
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
16
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
17
|
-
import { b as useDemoBigStat, O as useBigStat, B as BigStatView, K as autoColorScaleCss, J as CardFeedView, j as CheckboxFieldView, C as CopyTextView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, Q as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, U as demoRewardExchange, k as RewardExchangeView, V as pathToRegexp, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
16
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-e59e841f.js';
|
|
17
|
+
import { b as useDemoBigStat, O as useBigStat, B as BigStatView, K as autoColorScaleCss, J as CardFeedView, j as CheckboxFieldView, C as CopyTextView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, Q as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, U as demoRewardExchange, k as RewardExchangeView, V as pathToRegexp, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-dbb7e12b.js';
|
|
18
18
|
import './sqm-portal-container-view-83b417f0.js';
|
|
19
19
|
|
|
20
20
|
const BigStat = class {
|
|
@@ -265,30 +265,48 @@ function useCheckboxFieldDemo(props) {
|
|
|
265
265
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
const
|
|
269
|
-
query
|
|
268
|
+
const FuelTankRewardsQuery = dist.gql `
|
|
269
|
+
query fuelTankRewardsQuery {
|
|
270
270
|
user: viewer {
|
|
271
271
|
... on User {
|
|
272
|
-
|
|
272
|
+
instantAccessRewards(filter: { type_eq: FUELTANK }) {
|
|
273
|
+
data {
|
|
274
|
+
fuelTankCode
|
|
275
|
+
fuelTankType
|
|
276
|
+
statuses
|
|
277
|
+
dateGiven
|
|
278
|
+
dateExpires
|
|
279
|
+
dateRedeemed
|
|
280
|
+
dateCancelled
|
|
281
|
+
dateScheduledFor
|
|
282
|
+
datePendingForUnhandledError
|
|
283
|
+
}
|
|
284
|
+
count
|
|
285
|
+
totalCount
|
|
286
|
+
}
|
|
273
287
|
}
|
|
274
288
|
}
|
|
275
289
|
}
|
|
276
290
|
`;
|
|
277
|
-
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
278
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
279
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
280
|
-
}
|
|
281
|
-
`;
|
|
282
291
|
function useCouponCode(props) {
|
|
283
|
-
var _a, _b;
|
|
284
|
-
const
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
+
var _a, _b, _c, _d;
|
|
293
|
+
const user = L();
|
|
294
|
+
const { data, loading, refetch, errors } = mn(FuelTankRewardsQuery, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
295
|
+
const getStatus = (reward) => {
|
|
296
|
+
const possibleStates = [
|
|
297
|
+
"REDEEMED",
|
|
298
|
+
"CANCELLED",
|
|
299
|
+
"EXPIRED",
|
|
300
|
+
"PENDING",
|
|
301
|
+
"AVAILABLE",
|
|
302
|
+
];
|
|
303
|
+
if (reward.statuses.length === 1)
|
|
304
|
+
return reward.statuses[0];
|
|
305
|
+
return possibleStates.find((state) => reward.statuses.includes(state) && state);
|
|
306
|
+
};
|
|
307
|
+
const reward = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.fuelTankRewardsQuery) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.instantAccessRewards) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[0];
|
|
308
|
+
const rewardStatus = getStatus(reward);
|
|
309
|
+
const copyString = (reward === null || reward === void 0 ? void 0 : reward.fuelTankCode) || "...";
|
|
292
310
|
const [open, setOpen] = useState(false);
|
|
293
311
|
function onClick() {
|
|
294
312
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
@@ -296,20 +314,8 @@ function useCouponCode(props) {
|
|
|
296
314
|
navigator.clipboard.writeText(copyString);
|
|
297
315
|
setOpen(true);
|
|
298
316
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
299
|
-
sendLoadEvent({
|
|
300
|
-
eventMeta: {
|
|
301
|
-
programId,
|
|
302
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
303
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
304
|
-
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
305
|
-
meta: {
|
|
306
|
-
engagementMedium,
|
|
307
|
-
couponMedium: "DIRECT",
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
});
|
|
311
317
|
}
|
|
312
|
-
return { ...props, onClick, open, copyString };
|
|
318
|
+
return { ...props, onClick, open, copyString, rewardStatus };
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
const CouponCode = class {
|
|
@@ -356,7 +362,25 @@ const CouponCode = class {
|
|
|
356
362
|
*
|
|
357
363
|
* @uiName Error message
|
|
358
364
|
*/
|
|
359
|
-
this.
|
|
365
|
+
this.pendingErrorText = "Oops! Looks like we weren’t able to retrieve a code for you. Please try again later or contact support.";
|
|
366
|
+
/**
|
|
367
|
+
* Set error message
|
|
368
|
+
*
|
|
369
|
+
* @uiName Error message
|
|
370
|
+
*/
|
|
371
|
+
this.cancelledErrorText = "Oops! Your coupon code is cancelled. Please try again later or contact support.";
|
|
372
|
+
/**
|
|
373
|
+
* Set error message
|
|
374
|
+
*
|
|
375
|
+
* @uiName Error message
|
|
376
|
+
*/
|
|
377
|
+
this.expiredErrorText = "Oops! Your coupon code is expired. Please try again later or contact support.";
|
|
378
|
+
/**
|
|
379
|
+
* Set error message
|
|
380
|
+
*
|
|
381
|
+
* @uiName Error message
|
|
382
|
+
*/
|
|
383
|
+
this.redeemedErrorText = "Oops! Your coupon code has already been redeemed. Please try again later or contact support.";
|
|
360
384
|
/**
|
|
361
385
|
* Set coupon code placeholder for when there there is no coupon code to display
|
|
362
386
|
*
|
|
@@ -371,7 +395,21 @@ const CouponCode = class {
|
|
|
371
395
|
const props = isDemo()
|
|
372
396
|
? useDemoCouponCode(thisProps)
|
|
373
397
|
: useCouponCode(thisProps);
|
|
374
|
-
|
|
398
|
+
let errorText = "An error occurred";
|
|
399
|
+
switch (props.rewardStatus) {
|
|
400
|
+
case "CANCELLED":
|
|
401
|
+
errorText = this.cancelledErrorText;
|
|
402
|
+
case "PENDING":
|
|
403
|
+
errorText = this.pendingErrorText;
|
|
404
|
+
case "EXPIRED":
|
|
405
|
+
errorText = this.expiredErrorText;
|
|
406
|
+
case "REDEEMED":
|
|
407
|
+
errorText = this.redeemedErrorText;
|
|
408
|
+
case "AVAILABLE":
|
|
409
|
+
errorText = "";
|
|
410
|
+
}
|
|
411
|
+
console.log("ASDASDASD");
|
|
412
|
+
return h$1(CopyTextView, Object.assign({}, props, { errorText: errorText }));
|
|
375
413
|
}
|
|
376
414
|
};
|
|
377
415
|
function useDemoCouponCode(props) {
|
|
@@ -383,8 +421,11 @@ function useDemoCouponCode(props) {
|
|
|
383
421
|
textAlign: props.textAlign,
|
|
384
422
|
buttonStyle: props.buttonStyle,
|
|
385
423
|
copyButtonLabel: props.copyButtonLabel,
|
|
386
|
-
|
|
387
|
-
|
|
424
|
+
pendingErrorText: props.pendingErrorText,
|
|
425
|
+
cancelledErrorText: props.cancelledErrorText,
|
|
426
|
+
expiredErrorText: props.expiredErrorText,
|
|
427
|
+
redeemedErrorText: props.redeemedErrorText,
|
|
428
|
+
rewardStatus: "AVAILABLE",
|
|
388
429
|
couponCodePlaceholder: props.couponCodePlaceholder,
|
|
389
430
|
open,
|
|
390
431
|
onClick: () => {
|
|
@@ -562,7 +603,7 @@ const defaultFormState = {
|
|
|
562
603
|
error: "",
|
|
563
604
|
};
|
|
564
605
|
function useEditProfile(props) {
|
|
565
|
-
const userIdent =
|
|
606
|
+
const userIdent = L();
|
|
566
607
|
const [showEdit, setShowEdit] = useState(false);
|
|
567
608
|
const [error, setError] = useState("");
|
|
568
609
|
const [userData, setUserData] = useState(undefined);
|
|
@@ -1054,11 +1095,11 @@ const GET_RANK = dist.gql `
|
|
|
1054
1095
|
`;
|
|
1055
1096
|
function useLeaderboard(props) {
|
|
1056
1097
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1057
|
-
const programIdContext =
|
|
1098
|
+
const programIdContext = O();
|
|
1058
1099
|
// Default to context, overriden by props
|
|
1059
1100
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1060
|
-
const user =
|
|
1061
|
-
const locale =
|
|
1101
|
+
const user = L();
|
|
1102
|
+
const locale = W();
|
|
1062
1103
|
const variables = programId
|
|
1063
1104
|
? {
|
|
1064
1105
|
type: props.leaderboardType,
|
|
@@ -1310,7 +1351,7 @@ function handleMenu(e) {
|
|
|
1310
1351
|
function useNavigationMenu(props) {
|
|
1311
1352
|
const ref = useRef();
|
|
1312
1353
|
const [, rerender] = dn();
|
|
1313
|
-
const user =
|
|
1354
|
+
const user = L();
|
|
1314
1355
|
useEffect(() => {
|
|
1315
1356
|
var _a;
|
|
1316
1357
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1368,7 +1409,7 @@ function usePortalChangePassword(props) {
|
|
|
1368
1409
|
const [open, setOpen] = useState(false);
|
|
1369
1410
|
const [error, setError] = useState("");
|
|
1370
1411
|
const [success, setSuccess] = useState(false);
|
|
1371
|
-
const user =
|
|
1412
|
+
const user = L();
|
|
1372
1413
|
const submit = async (event) => {
|
|
1373
1414
|
var _a, _b;
|
|
1374
1415
|
setSuccess(false);
|
|
@@ -2123,7 +2164,7 @@ const ProgramExplainerStep = class {
|
|
|
2123
2164
|
const debug = browser('sq:useProgramMenu');
|
|
2124
2165
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
2125
2166
|
function useProgramMenu(props) {
|
|
2126
|
-
const programId =
|
|
2167
|
+
const programId = O();
|
|
2127
2168
|
const host = V();
|
|
2128
2169
|
debug({ programId, props });
|
|
2129
2170
|
const ref = useRef();
|
|
@@ -2263,8 +2304,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2263
2304
|
`;
|
|
2264
2305
|
function useReferralIframe(props) {
|
|
2265
2306
|
var _a;
|
|
2266
|
-
const programId =
|
|
2267
|
-
const user =
|
|
2307
|
+
const programId = O();
|
|
2308
|
+
const user = L();
|
|
2268
2309
|
const { data } = mn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2269
2310
|
return {
|
|
2270
2311
|
states: {
|
|
@@ -2977,7 +3018,7 @@ const EXCHANGE = dist.gql `
|
|
|
2977
3018
|
}
|
|
2978
3019
|
`;
|
|
2979
3020
|
function useRewardExchangeList(props) {
|
|
2980
|
-
var _a, _b, _c, _d, _e;
|
|
3021
|
+
var _a, _b, _c, _d, _e$1;
|
|
2981
3022
|
const [exchangeState, setExchangeState] = useReducer((state, next) => ({
|
|
2982
3023
|
...state,
|
|
2983
3024
|
...next,
|
|
@@ -2990,7 +3031,7 @@ function useRewardExchangeList(props) {
|
|
|
2990
3031
|
});
|
|
2991
3032
|
const [open, setOpen] = useState(false);
|
|
2992
3033
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
2993
|
-
const user =
|
|
3034
|
+
const user = L();
|
|
2994
3035
|
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = Ie(EXCHANGE);
|
|
2995
3036
|
const { data, loading, refetch, errors: queryError, } = mn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2996
3037
|
useEffect(() => {
|
|
@@ -3011,7 +3052,7 @@ function useRewardExchangeList(props) {
|
|
|
3011
3052
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3012
3053
|
canvas.confetti();
|
|
3013
3054
|
}, [canvasRef.current]);
|
|
3014
|
-
const { refresh } =
|
|
3055
|
+
const { refresh } = _e();
|
|
3015
3056
|
async function exchangeReward() {
|
|
3016
3057
|
if (!selectedItem)
|
|
3017
3058
|
return;
|
|
@@ -3110,7 +3151,7 @@ function useRewardExchangeList(props) {
|
|
|
3110
3151
|
},
|
|
3111
3152
|
data: {
|
|
3112
3153
|
exchangeList: (_c = (_b = data === null || data === void 0 ? void 0 : data.viewer) === null || _b === void 0 ? void 0 : _b.visibleRewardExchangeItems) === null || _c === void 0 ? void 0 : _c.data,
|
|
3113
|
-
fuelTankCode: (_e = (_d = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _d === void 0 ? void 0 : _d.reward) === null || _e === void 0 ? void 0 : _e.fuelTankCode,
|
|
3154
|
+
fuelTankCode: (_e$1 = (_d = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _d === void 0 ? void 0 : _d.reward) === null || _e$1 === void 0 ? void 0 : _e$1.fuelTankCode,
|
|
3114
3155
|
},
|
|
3115
3156
|
callbacks: {
|
|
3116
3157
|
exchangeReward,
|
|
@@ -3555,7 +3596,7 @@ function useDemoShareButton(props) {
|
|
|
3555
3596
|
}
|
|
3556
3597
|
ShareButton.style = sqmShareButtonCss;
|
|
3557
3598
|
|
|
3558
|
-
const MessageLinkQuery
|
|
3599
|
+
const MessageLinkQuery = dist.gql `
|
|
3559
3600
|
query ($programId: ID) {
|
|
3560
3601
|
user: viewer {
|
|
3561
3602
|
... on User {
|
|
@@ -3564,18 +3605,18 @@ const MessageLinkQuery$1 = dist.gql `
|
|
|
3564
3605
|
}
|
|
3565
3606
|
}
|
|
3566
3607
|
`;
|
|
3567
|
-
const WIDGET_ENGAGEMENT_EVENT
|
|
3608
|
+
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
3568
3609
|
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3569
3610
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3570
3611
|
}
|
|
3571
3612
|
`;
|
|
3572
3613
|
function useShareCode(props) {
|
|
3573
3614
|
var _a, _b;
|
|
3574
|
-
const { programId =
|
|
3575
|
-
const user =
|
|
3615
|
+
const { programId = O() } = props;
|
|
3616
|
+
const user = L();
|
|
3576
3617
|
const engagementMedium = T();
|
|
3577
|
-
const { data } = mn(MessageLinkQuery
|
|
3578
|
-
const [sendLoadEvent] = Ie(WIDGET_ENGAGEMENT_EVENT
|
|
3618
|
+
const { data } = mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3619
|
+
const [sendLoadEvent] = Ie(WIDGET_ENGAGEMENT_EVENT);
|
|
3579
3620
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3580
3621
|
// Shown during loading
|
|
3581
3622
|
"...";
|
|
@@ -3802,10 +3843,10 @@ const SEND_EVENT = dist.gql `
|
|
|
3802
3843
|
}
|
|
3803
3844
|
`;
|
|
3804
3845
|
function useTaskCard(props) {
|
|
3805
|
-
const user =
|
|
3806
|
-
const locale =
|
|
3846
|
+
const user = L();
|
|
3847
|
+
const locale = W();
|
|
3807
3848
|
const [sendUserEvent, { data, loading: loadingEvent }] = Ie(SEND_EVENT);
|
|
3808
|
-
const { refresh } =
|
|
3849
|
+
const { refresh } = _e();
|
|
3809
3850
|
useEffect(() => {
|
|
3810
3851
|
if (data) {
|
|
3811
3852
|
refresh();
|
|
@@ -4121,7 +4162,7 @@ const GET_USER_NAME = dist.gql `
|
|
|
4121
4162
|
`;
|
|
4122
4163
|
function useUserName(props) {
|
|
4123
4164
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4124
|
-
const user =
|
|
4165
|
+
const user = L();
|
|
4125
4166
|
const res = mn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4126
4167
|
const loading = res.loading;
|
|
4127
4168
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as m, u as useEffect, m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import {
|
|
4
|
+
import { H, C as Ce, _, c as ye } from './index.module-3b85bfd6.js';
|
|
5
5
|
|
|
6
6
|
async function useGraphQLClientProvider({ domain }) {
|
|
7
|
-
const token =
|
|
7
|
+
const token = H();
|
|
8
8
|
const appDomain = domain;
|
|
9
|
-
const tenantAlias =
|
|
9
|
+
const tenantAlias = _();
|
|
10
10
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
11
11
|
const managedIdentityClient = Ce(appDomain, tenantAlias, token);
|
|
12
12
|
const [, setGraphQLClient] = m(ye, managedIdentityClient);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { i as isDemo, e as setUserIdentity } from './index.module-
|
|
4
|
+
import { i as isDemo, e as setUserIdentity } from './index.module-3b85bfd6.js';
|
|
5
5
|
import './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import './JSS-67b5cff8.js';
|
|
9
9
|
import { E as EmailRegistrationView } from './email-registration-view-8987d3c0.js';
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-2b0653e6.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-f82b3eaa.js';
|
|
4
4
|
import './use-callback-051c06c6.js';
|
|
5
|
-
import { d as dist,
|
|
5
|
+
import { d as dist, O, L, b as mn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
8
8
|
|
|
@@ -21,10 +21,10 @@ const GET_RANK = dist.gql `
|
|
|
21
21
|
`;
|
|
22
22
|
function useLeaderboardRank(props) {
|
|
23
23
|
var _a, _b, _c, _d;
|
|
24
|
-
const programIdContext =
|
|
24
|
+
const programIdContext = O();
|
|
25
25
|
// Default to context, overriden by props
|
|
26
26
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
27
|
-
const user =
|
|
27
|
+
const user = L();
|
|
28
28
|
const rankVariables = programId
|
|
29
29
|
? {
|
|
30
30
|
type: props.leaderboardType,
|
package/dist/esm/{sqm-user-identifier-view-ca48b8e4.js → sqm-logout-current-user-view-5dd42341.js}
RENAMED
|
@@ -18,7 +18,7 @@ const vanillaStyle = `
|
|
|
18
18
|
`;
|
|
19
19
|
const sheet = createStyleSheet(style);
|
|
20
20
|
const styleString = sheet.toString();
|
|
21
|
-
function
|
|
21
|
+
function LogoutCurrentUserView(props) {
|
|
22
22
|
const { userIdentificationText, onSwitchClick, switchUserText } = props;
|
|
23
23
|
return (h("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
24
24
|
h("style", { type: "text/css" },
|
|
@@ -30,4 +30,4 @@ function UserIdentifierView(props) {
|
|
|
30
30
|
")"));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export {
|
|
33
|
+
export { LogoutCurrentUserView as L };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-17b4da69.js';
|
|
2
2
|
import './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { e as setUserIdentity, i as isDemo } from './index.module-
|
|
4
|
+
import { e as setUserIdentity, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
|
-
import {
|
|
7
|
+
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-5dd42341.js';
|
|
8
8
|
|
|
9
|
-
function
|
|
9
|
+
function useLogoutCurrentUser(
|
|
10
10
|
// @ts-ignore;
|
|
11
11
|
props) {
|
|
12
12
|
const onSwitchClick = () => {
|
|
@@ -19,7 +19,7 @@ props) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const LogoutCurrentUser = class {
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
registerInstance(this, hostRef);
|
|
25
25
|
/**
|
|
@@ -35,12 +35,12 @@ const UserIdentifier = class {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const props = isDemo()
|
|
38
|
-
?
|
|
39
|
-
:
|
|
40
|
-
return h(
|
|
38
|
+
? useDemoLogoutCurrentUser(this)
|
|
39
|
+
: useLogoutCurrentUser();
|
|
40
|
+
return h(LogoutCurrentUserView, Object.assign({}, props));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
function
|
|
43
|
+
function useDemoLogoutCurrentUser(props) {
|
|
44
44
|
return cjs({
|
|
45
45
|
onSwitchClick: () => setUserIdentity(undefined),
|
|
46
46
|
userIdentificationText: props.userIdentificationText,
|
|
@@ -48,4 +48,4 @@ function useDemoUserIdentifier(props) {
|
|
|
48
48
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { LogoutCurrentUser as sqm_logout_current_user };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { v as vn, i as isDemo } from './index.module-
|
|
4
|
+
import { v as vn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { g as getProps } from './utils-334c1e34.js';
|
|
9
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
9
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-2154f6b7.js';
|
|
10
10
|
|
|
11
11
|
function useNavigationSidebarItem(props) {
|
|
12
12
|
const currentPage = vn();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h, i as useState, u as useEffect } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { v as vn,
|
|
4
|
+
import { v as vn, O } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-feb719ce.js';
|
|
6
6
|
|
|
7
7
|
const NavigationSidebar = class {
|
|
@@ -18,7 +18,7 @@ const NavigationSidebar = class {
|
|
|
18
18
|
};
|
|
19
19
|
function useNavigationSidebar() {
|
|
20
20
|
const location = vn();
|
|
21
|
-
const programId =
|
|
21
|
+
const programId = O();
|
|
22
22
|
const [checked, setChecked] = useState(false);
|
|
23
23
|
// Close hamburger menu after navigation
|
|
24
24
|
useEffect(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { o as d, i as useState, m as h$1 } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { i as isDemo } from './index.module-
|
|
4
|
+
import { i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-e59e841f.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h$1 } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { T } from './index.module-
|
|
4
|
+
import { T } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
|
|
7
7
|
const PopupContainerView = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-f82b3eaa.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-2f7d6d14.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { i as useState, j as useRef, u as useEffect, m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-f82b3eaa.js';
|
|
4
4
|
import { u as useCallback } from './use-callback-051c06c6.js';
|
|
5
|
-
import { o as on, K as Ke,
|
|
5
|
+
import { o as on, K as Ke, L, p as pn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import './JSS-67b5cff8.js';
|
|
9
9
|
import './sqm-text-span-view-2f7d6d14.js';
|
|
10
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
10
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-f237a7f0.js';
|
|
11
11
|
|
|
12
12
|
function usePortalEmailVerification(props) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
14
14
|
const [request, { loading, data, errors }] = on();
|
|
15
15
|
const [getVerificationStatus, { data: user, loading: loadingVerification }] = Ke();
|
|
16
|
-
const userIdent =
|
|
16
|
+
const userIdent = L();
|
|
17
17
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
18
18
|
const urlParams = new URLSearchParams(pn.location.search);
|
|
19
19
|
const nextPage = urlParams.get("nextPage");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { i as useState, m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import {
|
|
4
|
+
import { t as tn, p as pn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
@@ -13,7 +13,7 @@ function usePortalForgotPassword(props) {
|
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
14
14
|
const [success, setSuccess] = useState(false);
|
|
15
15
|
const [error, setError] = useState("");
|
|
16
|
-
const [request, { loading, data, errors }] =
|
|
16
|
+
const [request, { loading, data, errors }] = tn();
|
|
17
17
|
const urlParams = new URLSearchParams(pn.location.search);
|
|
18
18
|
const nextPage = urlParams.get("nextPage");
|
|
19
19
|
const submit = async (event) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import { e as setUserIdentity, p as pn, i as isDemo } from './index.module-
|
|
4
|
+
import { e as setUserIdentity, p as pn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
|
|
6
6
|
function usePortalLogout({ nextPage }) {
|
|
7
7
|
setUserIdentity(undefined);
|
package/dist/esm/{sqm-portal-profile-view-53979418.js → sqm-portal-profile-view-bd86d8c4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-f82b3eaa.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-2f7d6d14.js';
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { i as useState, u as useEffect, m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-f82b3eaa.js';
|
|
4
4
|
import './use-callback-051c06c6.js';
|
|
5
|
-
import { d as dist,
|
|
5
|
+
import { d as dist, L, b as mn, I as Ie, i as isDemo } from './index.module-3b85bfd6.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { g as getProps } from './utils-334c1e34.js';
|
|
9
9
|
import './sqm-text-span-view-2f7d6d14.js';
|
|
10
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
10
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-bd86d8c4.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
13
13
|
query {
|
|
@@ -53,7 +53,7 @@ const defaultFormState = {
|
|
|
53
53
|
error: "",
|
|
54
54
|
};
|
|
55
55
|
function usePortalProfile(props) {
|
|
56
|
-
const userIdent =
|
|
56
|
+
const userIdent = L();
|
|
57
57
|
const [success, setSuccess] = useState(false);
|
|
58
58
|
const [userData, setUserData] = useState(undefined);
|
|
59
59
|
const [formState, setFormState] = useState(defaultFormState);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { u as useEffect, m as h } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import './use-callback-051c06c6.js';
|
|
4
|
-
import {
|
|
4
|
+
import { L, v as vn, p as pn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
|
|
6
6
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
7
7
|
var _a;
|
|
8
|
-
const userIdent =
|
|
8
|
+
const userIdent = L();
|
|
9
9
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
10
10
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
11
11
|
const { pathname, search } = vn();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { j as useRef, u as useEffect, m as h$1 } from './stencil-hooks.module-b48b45ec.js';
|
|
3
3
|
import { u as useCallback } from './use-callback-051c06c6.js';
|
|
4
|
-
import { d as dist, q as qe, b as mn, p as pn, i as isDemo } from './index.module-
|
|
4
|
+
import { d as dist, q as qe, b as mn, p as pn, i as isDemo } from './index.module-3b85bfd6.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import { T as TextSpanView } from './sqm-text-span-view-2f7d6d14.js';
|
|
10
10
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
11
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
11
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-e59e841f.js';
|
|
12
12
|
|
|
13
13
|
const style = {
|
|
14
14
|
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|