@saasquatch/mint-components 1.7.4-0 → 1.7.4-2
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-25025125.js → ShadowViewAddon-43f35e24.js} +18 -18
- package/dist/cjs/{global-be9af765.js → global-6785de71.js} +2 -2
- package/dist/cjs/{index.module-8562f350.js → index.module-02576958.js} +23 -23
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-9a91bde6.js → re-render-c484d9ab.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +58 -58
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-logout-current-user-view-555c7729.js → sqm-logout-current-user-view-c9f18d96.js} +12 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +27 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-28578dce.js → sqm-navigation-sidebar-item-view-21dcca39.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-077c12f7.js → sqm-portal-email-verification-view-d6e14e8d.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-b3d1e0f7.js → sqm-portal-profile-view-13a1229f.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -9
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -44
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-be4e0841.js → useChildElements-74eb05b6.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-27a20410.js → useInstantAccessRegistration-11ff69f8.js} +3 -3
- package/dist/cjs/{useReferralTable-ca564dcb.js → useReferralTable-6ca43436.js} +8 -8
- package/dist/cjs/{useRegistrationFormState-7b557a04.js → useRegistrationFormState-01d63bda.js} +2 -2
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +2 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +12 -5
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +32 -0
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +18 -3
- package/dist/esm/{ShadowViewAddon-53810b62.js → ShadowViewAddon-a5b397ce.js} +18 -18
- package/dist/esm/{global-179b13db.js → global-91edfca0.js} +2 -2
- package/dist/esm/{index.module-9469b28f.js → index.module-99d8522e.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-1048d024.js → re-render-096db0eb.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +58 -58
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-logout-current-user-view-2d740794.js → sqm-logout-current-user-view-2c6122cd.js} +12 -5
- package/dist/esm/sqm-logout-current-user.entry.js +27 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-eb765b9c.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-79ef6c2f.js → sqm-portal-email-verification-view-408af676.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-6068a0f8.js → sqm-portal-profile-view-efa44888.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +6 -6
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -9
- package/dist/esm/sqm-stencilbook.entry.js +46 -44
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{useChildElements-1338b131.js → useChildElements-b945a965.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-7f9f4360.js} +3 -3
- package/dist/esm/{useReferralTable-ada01642.js → useReferralTable-e425f29d.js} +8 -8
- package/dist/esm/{useRegistrationFormState-49dfc8e0.js → useRegistrationFormState-c9d54ef3.js} +2 -2
- package/dist/esm-es5/{ShadowViewAddon-53810b62.js → ShadowViewAddon-a5b397ce.js} +1 -1
- package/dist/esm-es5/{global-179b13db.js → global-91edfca0.js} +2 -2
- package/dist/esm-es5/{index.module-9469b28f.js → index.module-99d8522e.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-1048d024.js → re-render-096db0eb.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.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-logout-current-user-view-2c6122cd.js +1 -0
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-eb765b9c.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-79ef6c2f.js → sqm-portal-email-verification-view-408af676.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-6068a0f8.js → sqm-portal-profile-view-efa44888.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-1338b131.js → useChildElements-b945a965.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-7f9f4360.js} +1 -1
- package/dist/esm-es5/{useReferralTable-ada01642.js → useReferralTable-e425f29d.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-c9d54ef3.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-05f069ce.entry.js +13 -0
- package/dist/mint-components/p-0943b547.system.js +1 -0
- package/dist/mint-components/{p-8ff83f3b.system.entry.js → p-0a892e0f.system.entry.js} +1 -1
- package/dist/mint-components/p-0ad6459e.entry.js +1 -0
- package/dist/mint-components/p-0b8f38a8.entry.js +1 -0
- package/dist/mint-components/p-0de80de6.js +1 -0
- package/dist/mint-components/{p-934aa6ca.entry.js → p-10bf0b3a.entry.js} +2 -2
- package/dist/mint-components/{p-ba42b92c.system.entry.js → p-13570402.system.entry.js} +1 -1
- package/dist/mint-components/{p-82180848.js → p-1ce682cf.js} +1 -1
- package/dist/mint-components/{p-509af914.system.entry.js → p-1e884e97.system.entry.js} +1 -1
- package/dist/mint-components/p-1fa097d3.entry.js +1 -0
- package/dist/mint-components/{p-e43cc4ad.system.entry.js → p-20b4e20b.system.entry.js} +1 -1
- package/dist/mint-components/p-22d1e92e.system.js +1 -0
- package/dist/mint-components/{p-2d39cf50.system.entry.js → p-25ad41bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-8827fabe.system.entry.js → p-2bba85ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-21a1d705.js → p-2e9a5714.js} +1 -1
- package/dist/mint-components/{p-f9bfbfa2.entry.js → p-3e0bb7f9.entry.js} +1 -1
- package/dist/mint-components/{p-bf0719b7.system.js → p-41c62fef.system.js} +1 -1
- package/dist/mint-components/{p-f6456854.js → p-42844992.js} +3 -3
- package/dist/mint-components/p-57a89487.entry.js +1 -0
- package/dist/mint-components/p-59318941.system.js +1 -0
- package/dist/mint-components/{p-a38baa99.system.entry.js → p-66e3cb0c.system.entry.js} +1 -1
- package/dist/mint-components/p-6d1a2821.system.entry.js +1 -0
- package/dist/mint-components/{p-9551f888.system.entry.js → p-6e793d76.system.entry.js} +1 -1
- package/dist/mint-components/p-6fed24de.entry.js +1 -0
- package/dist/mint-components/{p-39341b0c.entry.js → p-74e8a90c.entry.js} +5 -5
- package/dist/mint-components/{p-f7b7d395.system.js → p-7b490a03.system.js} +1 -1
- package/dist/mint-components/{p-58196113.system.entry.js → p-7d5ee633.system.entry.js} +1 -1
- package/dist/mint-components/{p-d9787e31.system.entry.js → p-821004e9.system.entry.js} +1 -1
- package/dist/mint-components/{p-6034522a.js → p-831d1332.js} +1 -1
- package/dist/mint-components/{p-8d593b5e.system.entry.js → p-84ee5462.system.entry.js} +1 -1
- package/dist/mint-components/p-878daf52.js +1 -0
- package/dist/mint-components/p-89e86134.entry.js +1 -0
- package/dist/mint-components/p-8b28c511.js +1 -0
- package/dist/mint-components/{p-6dac42fc.system.js → p-8b2b5d37.system.js} +1 -1
- package/dist/mint-components/{p-a8f6d72c.system.entry.js → p-8f1974f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-657659e8.entry.js → p-9a74f167.entry.js} +2 -2
- package/dist/mint-components/{p-68e5a4a6.system.entry.js → p-9b2e0735.system.entry.js} +1 -1
- package/dist/mint-components/p-9dcfa187.system.js +1 -0
- package/dist/mint-components/{p-9ecfc085.system.js → p-9f3a0252.system.js} +1 -1
- package/dist/mint-components/{p-7fc020f4.entry.js → p-a23a2a86.entry.js} +1 -1
- package/dist/mint-components/{p-9aa1bd46.system.js → p-a372d9cf.system.js} +1 -1
- package/dist/mint-components/{p-540a24e6.system.entry.js → p-a65e2e14.system.entry.js} +1 -1
- package/dist/mint-components/{p-ee457000.system.js → p-a79208b8.system.js} +1 -1
- package/dist/mint-components/{p-d3de337c.system.entry.js → p-abfb3897.system.entry.js} +1 -1
- package/dist/mint-components/{p-5ddfa30d.entry.js → p-b0ef4f17.entry.js} +1 -1
- package/dist/mint-components/{p-0714bae2.entry.js → p-b0f3c6c5.entry.js} +2 -2
- package/dist/mint-components/{p-71a4e272.entry.js → p-b4fddf49.entry.js} +1 -1
- package/dist/mint-components/{p-fe721800.system.entry.js → p-b5b9aaba.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2260971.system.js → p-b6dafb9b.system.js} +1 -1
- package/dist/mint-components/{p-571f6923.entry.js → p-b9c7b7ef.entry.js} +1 -1
- package/dist/mint-components/{p-a87d66ac.system.entry.js → p-ba295930.system.entry.js} +1 -1
- package/dist/mint-components/{p-97e758fd.system.entry.js → p-be8f19ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-583b1a0e.entry.js → p-c24d34d8.entry.js} +1 -1
- package/dist/mint-components/{p-9e9dcd9c.entry.js → p-c2bd46e2.entry.js} +1 -1
- package/dist/mint-components/p-ce748fab.js +1 -0
- package/dist/mint-components/{p-e8f720b9.entry.js → p-d5e83056.entry.js} +1 -1
- package/dist/mint-components/{p-c24079c2.js → p-d65bf9dc.js} +1 -1
- package/dist/mint-components/p-d65de81a.entry.js +9 -0
- package/dist/mint-components/p-db9652e7.system.entry.js +1 -0
- package/dist/mint-components/p-dd0b4da7.system.entry.js +1 -0
- package/dist/mint-components/{p-19e46b11.entry.js → p-e058ba88.entry.js} +1 -1
- package/dist/mint-components/{p-d3f6b6b4.entry.js → p-e3de804b.entry.js} +1 -1
- package/dist/mint-components/p-e3e16c36.js +1 -0
- package/dist/mint-components/{p-747912c5.system.entry.js → p-e49392c3.system.entry.js} +1 -1
- package/dist/mint-components/p-e9197aac.entry.js +1 -0
- package/dist/mint-components/{p-ae191f8c.js → p-eab33344.js} +1 -1
- package/dist/mint-components/{p-2d592364.system.entry.js → p-ed9374ef.system.entry.js} +1 -1
- package/dist/mint-components/{p-76cfebb1.system.js → p-ee7bc1c7.system.js} +1 -1
- package/dist/mint-components/{p-5ae4911c.entry.js → p-ef6a3ff3.entry.js} +2 -2
- package/dist/mint-components/{p-961998b6.system.entry.js → p-f04ce58d.system.entry.js} +1 -1
- package/dist/mint-components/{p-a223a8dc.entry.js → p-f064bf28.entry.js} +1 -1
- package/dist/mint-components/p-f21aa0bd.entry.js +1 -0
- package/dist/mint-components/{p-c3be93c7.system.entry.js → p-f60d9f3e.system.entry.js} +1 -1
- package/dist/mint-components/{p-76d4eb55.system.js → p-f63961b4.system.js} +1 -1
- package/dist/mint-components/{p-2aca0eae.js → p-f71cfd64.js} +1 -1
- package/dist/mint-components/{p-3409e9a0.system.entry.js → p-f7b5c0ac.system.entry.js} +1 -1
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user-view.d.ts +2 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/sqm-logout-current-user-view-2d740794.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-49dfc8e0.js +0 -1
- package/dist/mint-components/p-1912f988.entry.js +0 -1
- package/dist/mint-components/p-228163a1.system.js +0 -1
- package/dist/mint-components/p-29edd49c.system.js +0 -1
- package/dist/mint-components/p-330314f9.entry.js +0 -1
- package/dist/mint-components/p-3b7c1be8.entry.js +0 -1
- package/dist/mint-components/p-3e8aac5b.entry.js +0 -1
- package/dist/mint-components/p-519bb212.js +0 -1
- package/dist/mint-components/p-55eb6616.system.js +0 -1
- package/dist/mint-components/p-5b9195d7.system.entry.js +0 -1
- package/dist/mint-components/p-68db543e.system.entry.js +0 -1
- package/dist/mint-components/p-718cf151.js +0 -1
- package/dist/mint-components/p-78066f92.entry.js +0 -13
- package/dist/mint-components/p-7862ab7d.entry.js +0 -1
- package/dist/mint-components/p-7ced669d.entry.js +0 -1
- package/dist/mint-components/p-8d767d9d.js +0 -1
- package/dist/mint-components/p-97b03f80.entry.js +0 -1
- package/dist/mint-components/p-9907bc8a.js +0 -1
- package/dist/mint-components/p-af24b899.entry.js +0 -1
- package/dist/mint-components/p-c5b61ade.system.js +0 -1
- package/dist/mint-components/p-cc391fac.js +0 -1
- package/dist/mint-components/p-dbac5d13.system.entry.js +0 -1
- package/dist/mint-components/p-fe13762b.entry.js +0 -1
|
@@ -4,13 +4,13 @@ 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-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
require('./global-6785de71.js');
|
|
8
|
+
const index_module = require('./index.module-02576958.js');
|
|
9
9
|
require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const GenericTableView = require('./GenericTableView-380b83e2.js');
|
|
13
|
-
require('./useChildElements-
|
|
13
|
+
require('./useChildElements-74eb05b6.js');
|
|
14
14
|
const luxon = require('./luxon-53e983a6.js');
|
|
15
15
|
require('./utils-6847bc06.js');
|
|
16
16
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
@@ -18,15 +18,15 @@ const sqmAssetCardView = require('./sqm-asset-card-view-a0e33f21.js');
|
|
|
18
18
|
const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
|
|
19
19
|
const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
20
20
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
21
|
-
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-
|
|
21
|
+
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
|
|
22
22
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-dd53f947.js');
|
|
23
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
24
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
23
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-21dcca39.js');
|
|
24
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-d6e14e8d.js');
|
|
25
25
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-0142350f.js');
|
|
26
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
26
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-13a1229f.js');
|
|
27
27
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-d5bc7afc.js');
|
|
28
28
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-f6c7287e.js');
|
|
29
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
29
|
+
const ShadowViewAddon = require('./ShadowViewAddon-43f35e24.js');
|
|
30
30
|
const sqmPortalContainerView = require('./sqm-portal-container-view-5fb2ad49.js');
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -2393,36 +2393,36 @@ const routes = `
|
|
|
2393
2393
|
`;
|
|
2394
2394
|
const TemplateNavigation = createHookStory(() => {
|
|
2395
2395
|
return (index.h("div", null,
|
|
2396
|
-
index.h("button", { onClick: () => index_module.
|
|
2397
|
-
index.h("button", { onClick: () => index_module.
|
|
2398
|
-
index.h("button", { onClick: () => index_module.
|
|
2399
|
-
index.h("button", { onClick: () => index_module.
|
|
2400
|
-
index.h("button", { onClick: () => index_module.
|
|
2401
|
-
index.h("button", { onClick: () => index_module.
|
|
2402
|
-
index.h("button", { onClick: () => index_module.
|
|
2403
|
-
index.h("button", { onClick: () => index_module.
|
|
2404
|
-
index.h("button", { onClick: () => index_module.
|
|
2396
|
+
index.h("button", { onClick: () => index_module.hn.push("/") }, "/"),
|
|
2397
|
+
index.h("button", { onClick: () => index_module.hn.push("/foo") }, "/foo"),
|
|
2398
|
+
index.h("button", { onClick: () => index_module.hn.push("/bar") }, "/bar"),
|
|
2399
|
+
index.h("button", { onClick: () => index_module.hn.push("/baz/bang") }, "/baz/bang"),
|
|
2400
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer") }, "/refer"),
|
|
2401
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer/1") }, "/refer/1"),
|
|
2402
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer/2") }, "/refer/2"),
|
|
2403
|
+
index.h("button", { onClick: () => index_module.hn.back() }, "Back"),
|
|
2404
|
+
index.h("button", { onClick: () => index_module.hn.forward() }, "Forward"),
|
|
2405
2405
|
index.h("hr", null),
|
|
2406
2406
|
index.h("sqm-router", { innerHTML: templates })));
|
|
2407
2407
|
});
|
|
2408
2408
|
const RouteNavigation = createHookStory(() => {
|
|
2409
2409
|
return (index.h("div", null,
|
|
2410
|
-
index.h("button", { onClick: () => index_module.
|
|
2411
|
-
index.h("button", { onClick: () => index_module.
|
|
2412
|
-
index.h("button", { onClick: () => index_module.
|
|
2413
|
-
index.h("button", { onClick: () => index_module.
|
|
2414
|
-
index.h("button", { onClick: () => index_module.
|
|
2415
|
-
index.h("button", { onClick: () => index_module.
|
|
2416
|
-
index.h("button", { onClick: () => index_module.
|
|
2417
|
-
index.h("button", { onClick: () => index_module.
|
|
2418
|
-
index.h("button", { onClick: () => index_module.
|
|
2410
|
+
index.h("button", { onClick: () => index_module.hn.push("/") }, "/"),
|
|
2411
|
+
index.h("button", { onClick: () => index_module.hn.push("/foo") }, "/foo"),
|
|
2412
|
+
index.h("button", { onClick: () => index_module.hn.push("/bar") }, "/bar"),
|
|
2413
|
+
index.h("button", { onClick: () => index_module.hn.push("/baz/bang") }, "/baz/bang"),
|
|
2414
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer") }, "/refer"),
|
|
2415
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer/1") }, "/refer/1"),
|
|
2416
|
+
index.h("button", { onClick: () => index_module.hn.push("/refer/2") }, "/refer/2"),
|
|
2417
|
+
index.h("button", { onClick: () => index_module.hn.back() }, "Back"),
|
|
2418
|
+
index.h("button", { onClick: () => index_module.hn.forward() }, "Forward"),
|
|
2419
2419
|
index.h("hr", null),
|
|
2420
2420
|
index.h("sqm-router", { innerHTML: routes })));
|
|
2421
2421
|
});
|
|
2422
2422
|
const Styling = createHookStory(() => {
|
|
2423
2423
|
return (index.h("div", null,
|
|
2424
|
-
index.h("button", { onClick: () => index_module.
|
|
2425
|
-
index.h("button", { onClick: () => index_module.
|
|
2424
|
+
index.h("button", { onClick: () => index_module.hn.push("/") }, "/"),
|
|
2425
|
+
index.h("button", { onClick: () => index_module.hn.push("/foo") }, "/foo"),
|
|
2426
2426
|
index.h("hr", null),
|
|
2427
2427
|
index.h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
2428
2428
|
index.h("sqm-router", { innerHTML: `<template path="/">
|
|
@@ -2436,7 +2436,7 @@ function useTemplate(templateString) {
|
|
|
2436
2436
|
const [previewTemplate, setPreviewTemplate] = stencilHooks_module.useState(templateString);
|
|
2437
2437
|
function setPath(e) {
|
|
2438
2438
|
//@ts-ignore
|
|
2439
|
-
index_module.
|
|
2439
|
+
index_module.hn.push(e.target.value);
|
|
2440
2440
|
}
|
|
2441
2441
|
return {
|
|
2442
2442
|
states: { previewTemplate, editedTemplate },
|
|
@@ -2600,8 +2600,8 @@ const FullStackFrame = () => {
|
|
|
2600
2600
|
"Current path:",
|
|
2601
2601
|
" ",
|
|
2602
2602
|
index.h("code", null,
|
|
2603
|
-
index.h("strong", null, (_a = index_module.
|
|
2604
|
-
index.h("button", { onClick: index_module.
|
|
2603
|
+
index.h("strong", null, (_a = index_module.vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2604
|
+
index.h("button", { onClick: index_module.hn.back }, "Go Back")));
|
|
2605
2605
|
};
|
|
2606
2606
|
const FullStackFrameLoggedOut = () => {
|
|
2607
2607
|
var _a;
|
|
@@ -2625,8 +2625,8 @@ const FullStackFrameLoggedOut = () => {
|
|
|
2625
2625
|
"Current path:",
|
|
2626
2626
|
" ",
|
|
2627
2627
|
index.h("code", null,
|
|
2628
|
-
index.h("strong", null, (_a = index_module.
|
|
2629
|
-
index.h("button", { onClick: index_module.
|
|
2628
|
+
index.h("strong", null, (_a = index_module.vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2629
|
+
index.h("button", { onClick: index_module.hn.back }, "Go Back")));
|
|
2630
2630
|
};
|
|
2631
2631
|
|
|
2632
2632
|
const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
@@ -3351,7 +3351,7 @@ function useExchangeButton() {
|
|
|
3351
3351
|
const { id, accountId } = setupGraphQL$6();
|
|
3352
3352
|
const [points, setPoints] = stencilHooks_module.useState(10);
|
|
3353
3353
|
const [rate, setRate] = stencilHooks_module.useState(100);
|
|
3354
|
-
const [exchange, { data, errors }] = index_module.
|
|
3354
|
+
const [exchange, { data, errors }] = index_module.ze(EXCHANGE);
|
|
3355
3355
|
return {
|
|
3356
3356
|
states: {
|
|
3357
3357
|
points,
|
|
@@ -3952,16 +3952,16 @@ function DefaultTemplateView(props) {
|
|
|
3952
3952
|
gridTemplateColumns: "repeat(9, 80px)",
|
|
3953
3953
|
gridGap: "10px",
|
|
3954
3954
|
} },
|
|
3955
|
-
index.h("button", { onClick: () => index_module.
|
|
3956
|
-
props.leadSubmit && (index.h("button", { onClick: () => index_module.
|
|
3957
|
-
index.h("button", { onClick: () => index_module.
|
|
3958
|
-
index.h("button", { onClick: () => index_module.
|
|
3959
|
-
index.h("button", { onClick: () => index_module.
|
|
3960
|
-
index.h("button", { onClick: () => index_module.
|
|
3961
|
-
index.h("button", { onClick: () => index_module.
|
|
3962
|
-
index.h("button", { onClick: () => index_module.
|
|
3963
|
-
index.h("button", { onClick: () => index_module.
|
|
3964
|
-
index.h("button", { onClick: () => index_module.
|
|
3955
|
+
index.h("button", { onClick: () => index_module.hn.push("/") }, "Dashboard"),
|
|
3956
|
+
props.leadSubmit && (index.h("button", { onClick: () => index_module.hn.push("/refer") }, "Submit a Referral")),
|
|
3957
|
+
index.h("button", { onClick: () => index_module.hn.push("/activity") }, "Activity"),
|
|
3958
|
+
index.h("button", { onClick: () => index_module.hn.push("/editProfile") }, "Edit Profile"),
|
|
3959
|
+
index.h("button", { onClick: () => index_module.hn.push("/login") }, "Login"),
|
|
3960
|
+
index.h("button", { onClick: () => index_module.hn.push("/register") }, "Register"),
|
|
3961
|
+
index.h("button", { onClick: () => index_module.hn.push("/emailVerification") }, "Email Verification"),
|
|
3962
|
+
index.h("button", { onClick: () => index_module.hn.push("/verifyEmail") }, "Verify Email"),
|
|
3963
|
+
index.h("button", { onClick: () => index_module.hn.push("/forgotPassword") }, "Forgot Password"),
|
|
3964
|
+
index.h("button", { onClick: () => index_module.hn.push("/resetPassword") }, "Reset Password")),
|
|
3965
3965
|
index.h("br", null),
|
|
3966
3966
|
index.h("div", { innerHTML: states.previewTemplate })));
|
|
3967
3967
|
}
|
|
@@ -13564,6 +13564,8 @@ const defaultProps$f = {
|
|
|
13564
13564
|
filledInEmailText: "Currently showing referral data for noah.clarke@saasquatch.com",
|
|
13565
13565
|
onSwitchClick: () => console.log("clicked"),
|
|
13566
13566
|
switchUserText: "not you?",
|
|
13567
|
+
loading: false,
|
|
13568
|
+
emailErrorText: "Error fetching email",
|
|
13567
13569
|
};
|
|
13568
13570
|
const Default$f = () => {
|
|
13569
13571
|
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$f));
|
|
@@ -4,8 +4,8 @@ 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('./index.module-
|
|
8
|
-
const reRender = require('./re-render-
|
|
7
|
+
require('./index.module-02576958.js');
|
|
8
|
+
const reRender = require('./re-render-c484d9ab.js');
|
|
9
9
|
|
|
10
10
|
const TabView = ({}, children) => {
|
|
11
11
|
return index.h(index.Host, null, children);
|
|
@@ -4,9 +4,9 @@ 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
|
-
const index_module = require('./index.module-
|
|
8
|
-
const reRender = require('./re-render-
|
|
9
|
-
const useChildElements = require('./useChildElements-
|
|
7
|
+
const index_module = require('./index.module-02576958.js');
|
|
8
|
+
const reRender = require('./re-render-c484d9ab.js');
|
|
9
|
+
const useChildElements = require('./useChildElements-74eb05b6.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
|
|
12
12
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -42,7 +42,7 @@ const TabsView = ({ content, placement, }) => {
|
|
|
42
42
|
const REVEAL_EVENT = "sq:reveal";
|
|
43
43
|
function useTabs() {
|
|
44
44
|
const rawTabs = useChildElements.useChildElements();
|
|
45
|
-
const host = index_module.
|
|
45
|
+
const host = index_module.V();
|
|
46
46
|
const tick = reRender.useRerenderListener();
|
|
47
47
|
const tabs = stencilHooks_module.useMemo(() => rawTabs
|
|
48
48
|
.filter((tab) => tab.tagName === "SQM-TAB" || tab.tagName === "RAISINS-PLOP-TARGET")
|
|
@@ -1,10 +1,10 @@
|
|
|
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-02576958.js');
|
|
5
5
|
|
|
6
6
|
function useChildElements() {
|
|
7
|
-
const host = index_module.
|
|
7
|
+
const host = index_module.V();
|
|
8
8
|
const initialState = host.children.length
|
|
9
9
|
? Array.from(host.children)
|
|
10
10
|
: [];
|
|
@@ -1,15 +1,15 @@
|
|
|
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-02576958.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
6
|
+
const useRegistrationFormState = require('./useRegistrationFormState-01d63bda.js');
|
|
7
7
|
|
|
8
8
|
function useInstantAccessRegistration(props) {
|
|
9
9
|
const cookie = new URLSearchParams(window.location.search);
|
|
10
10
|
const cookies = cookie === null || cookie === void 0 ? void 0 : cookie.get("_saasquatch");
|
|
11
11
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState();
|
|
12
|
-
const [request, { loading, errors, data }] = index_module.
|
|
12
|
+
const [request, { loading, errors, data }] = index_module.un();
|
|
13
13
|
const [error, setError] = stencilHooks_module.useState("");
|
|
14
14
|
const submit = async (event) => {
|
|
15
15
|
var _a;
|
|
@@ -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-02576958.js');
|
|
6
|
+
const reRender = require('./re-render-c484d9ab.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-74eb05b6.js');
|
|
8
8
|
const luxon = require('./luxon-53e983a6.js');
|
|
9
9
|
|
|
10
10
|
const mockRewardData = (count = 4) => {
|
|
@@ -356,8 +356,8 @@ const GET_REFERRAL_DATA = index_module.dist.gql `
|
|
|
356
356
|
`;
|
|
357
357
|
function useReferralTable(props, emptyElement, loadingElement) {
|
|
358
358
|
var _a, _b, _c;
|
|
359
|
-
const user = index_module.
|
|
360
|
-
const programIdContext = index_module.
|
|
359
|
+
const user = index_module.H();
|
|
360
|
+
const programIdContext = index_module.W();
|
|
361
361
|
// Default to context, overriden by props
|
|
362
362
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
363
363
|
// If no program ID, shows all programs
|
|
@@ -379,15 +379,15 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
379
379
|
loading: false,
|
|
380
380
|
page: 0,
|
|
381
381
|
});
|
|
382
|
-
const locale = index_module.
|
|
383
|
-
const { data: referrerResponse, loading: referrerLoading, refetch, } = index_module.
|
|
382
|
+
const locale = index_module.O();
|
|
383
|
+
const { data: referrerResponse, loading: referrerLoading, refetch, } = index_module.mn(GET_REFERRER_DATA, {
|
|
384
384
|
programId: programId === "classic" ? null : programId,
|
|
385
385
|
rewardFilter,
|
|
386
386
|
locale,
|
|
387
387
|
}, !props.showReferrer || !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
388
388
|
const referrerData = (_b = referrerResponse === null || referrerResponse === void 0 ? void 0 : referrerResponse.viewer) === null || _b === void 0 ? void 0 : _b.referredByReferral;
|
|
389
389
|
const showReferrerRow = props.showReferrer && !!(referrerData === null || referrerData === void 0 ? void 0 : referrerData.dateReferralStarted);
|
|
390
|
-
const { envelope: referralData, states, callbacks, } = index_module.
|
|
390
|
+
const { envelope: referralData, states, callbacks, } = index_module.yn(GET_REFERRAL_DATA, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referrals; }, {
|
|
391
391
|
limit: props.perPage,
|
|
392
392
|
offset: 0,
|
|
393
393
|
}, {
|
package/dist/cjs/{useRegistrationFormState-7b557a04.js → useRegistrationFormState-01d63bda.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
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-02576958.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
function useRegistrationFormState(formState) {
|
|
8
|
-
const host = index_module.
|
|
8
|
+
const host = index_module.V();
|
|
9
9
|
const [registrationFormState, setRegistrationFormState] = stencilHooks_module.y(host, REGISTRATION_FORM_STATE_CONTEXT, formState);
|
|
10
10
|
return { registrationFormState, setRegistrationFormState };
|
|
11
11
|
}
|
|
@@ -11,6 +11,8 @@ const defaultProps = {
|
|
|
11
11
|
filledInEmailText: "Currently showing referral data for noah.clarke@saasquatch.com",
|
|
12
12
|
onSwitchClick: () => console.log("clicked"),
|
|
13
13
|
switchUserText: "not you?",
|
|
14
|
+
loading: false,
|
|
15
|
+
emailErrorText: "Error fetching email",
|
|
14
16
|
};
|
|
15
17
|
export const Default = () => {
|
|
16
18
|
return h(LogoutCurrentUserView, Object.assign({}, defaultProps));
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { createStyleSheet } from "../../styling/JSS";
|
|
3
3
|
const style = {
|
|
4
|
-
Container: { color: "var(--sl-color-neutral-600)" },
|
|
4
|
+
Container: { display: "flex", color: "var(--sl-color-neutral-600)" },
|
|
5
|
+
Text: {
|
|
6
|
+
maxWidth: "400px",
|
|
7
|
+
display: "inline-block",
|
|
8
|
+
overflow: "hidden",
|
|
9
|
+
textOverflow: "ellipsis",
|
|
10
|
+
},
|
|
5
11
|
Link: {
|
|
6
12
|
textDecoration: "none",
|
|
7
13
|
color: "var(--sl-color-primary-700)",
|
|
@@ -20,13 +26,14 @@ const vanillaStyle = `
|
|
|
20
26
|
const sheet = createStyleSheet(style);
|
|
21
27
|
const styleString = sheet.toString();
|
|
22
28
|
export function LogoutCurrentUserView(props) {
|
|
23
|
-
const { filledInEmailText, onSwitchClick, switchUserText } = props;
|
|
29
|
+
const { loading, filledInEmailText, onSwitchClick, switchUserText, emailErrorText, } = props;
|
|
24
30
|
return (h("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
25
31
|
h("style", { type: "text/css" },
|
|
26
32
|
styleString,
|
|
27
33
|
vanillaStyle),
|
|
28
|
-
filledInEmailText,
|
|
29
|
-
"
|
|
30
|
-
|
|
34
|
+
h("span", { class: sheet.classes.Text }, loading ? "..." : filledInEmailText || emailErrorText),
|
|
35
|
+
" ",
|
|
36
|
+
"(",
|
|
37
|
+
h("span", { class: sheet.classes.Link, onClick: onSwitchClick, part: "sqm-link" }, switchUserText),
|
|
31
38
|
")"));
|
|
32
39
|
}
|
|
@@ -23,6 +23,11 @@ export class LogoutCurrentUser {
|
|
|
23
23
|
* @uiName Switch user button label
|
|
24
24
|
*/
|
|
25
25
|
this.switchUserText = "not you?";
|
|
26
|
+
/**
|
|
27
|
+
* @required
|
|
28
|
+
* @uiName Error text
|
|
29
|
+
*/
|
|
30
|
+
this.emailErrorText = "Error fetching email";
|
|
26
31
|
withHooks(this);
|
|
27
32
|
}
|
|
28
33
|
disconnectedCallback() { }
|
|
@@ -33,6 +38,7 @@ export class LogoutCurrentUser {
|
|
|
33
38
|
const content = {
|
|
34
39
|
userIdentificationText: this.userIdentificationText,
|
|
35
40
|
switchUserText: this.switchUserText,
|
|
41
|
+
emailErrorText: this.emailErrorText,
|
|
36
42
|
};
|
|
37
43
|
return h(LogoutCurrentUserView, Object.assign({}, props, content));
|
|
38
44
|
}
|
|
@@ -87,6 +93,30 @@ export class LogoutCurrentUser {
|
|
|
87
93
|
"reflect": false,
|
|
88
94
|
"defaultValue": "\"not you?\""
|
|
89
95
|
},
|
|
96
|
+
"emailErrorText": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [{
|
|
108
|
+
"text": undefined,
|
|
109
|
+
"name": "required"
|
|
110
|
+
}, {
|
|
111
|
+
"text": "Error text",
|
|
112
|
+
"name": "uiName"
|
|
113
|
+
}],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"attribute": "email-error-text",
|
|
117
|
+
"reflect": false,
|
|
118
|
+
"defaultValue": "\"Error fetching email\""
|
|
119
|
+
},
|
|
90
120
|
"demoData": {
|
|
91
121
|
"type": "unknown",
|
|
92
122
|
"mutable": false,
|
|
@@ -124,5 +154,7 @@ function useDemoLogoutCurrentUser(props) {
|
|
|
124
154
|
onSwitchClick: () => setUserIdentity(undefined),
|
|
125
155
|
filledInEmailText: "john@example.com",
|
|
126
156
|
switchUserText: props.switchUserText,
|
|
157
|
+
emailErrorText: props.emailErrorText,
|
|
158
|
+
loading: false,
|
|
127
159
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
128
160
|
}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import { setUserIdentity, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { setUserIdentity, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { gql } from "graphql-request";
|
|
3
|
+
const GET_USER_DETAILS = gql `
|
|
4
|
+
query getUserDetails($id: String!, $accountId: String!) {
|
|
5
|
+
user(id: $id, accountId: $accountId) {
|
|
6
|
+
id
|
|
7
|
+
accountId
|
|
8
|
+
email
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
2
12
|
export function useLogoutCurrentUser(props) {
|
|
3
|
-
var _a;
|
|
13
|
+
var _a, _b;
|
|
4
14
|
const user = useUserIdentity();
|
|
15
|
+
const { loading, data } = useQuery(GET_USER_DETAILS, {
|
|
16
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
17
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
18
|
+
}, !user);
|
|
5
19
|
const onSwitchClick = () => {
|
|
6
20
|
setUserIdentity(undefined);
|
|
7
21
|
};
|
|
8
|
-
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (
|
|
22
|
+
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.email);
|
|
9
23
|
return {
|
|
24
|
+
loading,
|
|
10
25
|
onSwitchClick,
|
|
11
26
|
filledInEmailText,
|
|
12
27
|
...props,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, b as browser, u as useMemo, f as useEffect } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-91edfca0.js';
|
|
4
|
+
import { d as dist, W, H, b as mn, F as Fe, T, g as getEnvironmentSDK, O, f as useCallback } from './index.module-99d8522e.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { u as useChildElements } from './useChildElements-
|
|
8
|
+
import { u as useChildElements } from './useChildElements-b945a965.js';
|
|
9
9
|
import { l as luxon } from './luxon-f01e85fe.js';
|
|
10
10
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
11
11
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
@@ -416,11 +416,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
416
416
|
`;
|
|
417
417
|
function useShareLink(props) {
|
|
418
418
|
var _a, _b;
|
|
419
|
-
const { programId =
|
|
420
|
-
const user =
|
|
421
|
-
const engagementMedium =
|
|
422
|
-
const { data } =
|
|
423
|
-
const [sendLoadEvent] =
|
|
419
|
+
const { programId = W() } = props;
|
|
420
|
+
const user = H();
|
|
421
|
+
const engagementMedium = T();
|
|
422
|
+
const { data } = mn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
423
|
+
const [sendLoadEvent] = Fe(WIDGET_ENGAGEMENT_EVENT);
|
|
424
424
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
425
425
|
// Shown during loading
|
|
426
426
|
"...";
|
|
@@ -505,15 +505,15 @@ function GenericShare(res) {
|
|
|
505
505
|
function useShareButton(props) {
|
|
506
506
|
var _a, _b;
|
|
507
507
|
const { sharetitle, sharetext, medium } = props;
|
|
508
|
-
const programId = props.programId ? props.programId :
|
|
509
|
-
const user =
|
|
508
|
+
const programId = props.programId ? props.programId : W();
|
|
509
|
+
const user = H();
|
|
510
510
|
const variables = {
|
|
511
|
-
engagementMedium:
|
|
511
|
+
engagementMedium: T(),
|
|
512
512
|
programId: programId,
|
|
513
513
|
shareMedium: medium.toUpperCase(),
|
|
514
514
|
};
|
|
515
515
|
// only queries if a programId is available
|
|
516
|
-
const res =
|
|
516
|
+
const res = mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
517
517
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
518
518
|
const environment = getEnvironmentSDK();
|
|
519
519
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -831,7 +831,7 @@ function pathToRegexp(path, keys, options) {
|
|
|
831
831
|
const debug = browser("sq:useBigStat");
|
|
832
832
|
const LOADING = "...";
|
|
833
833
|
const debugQuery = (query, variables, getStat) => {
|
|
834
|
-
const res =
|
|
834
|
+
const res = mn(query, variables);
|
|
835
835
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
836
836
|
console.error("issue getting stat:", res);
|
|
837
837
|
}
|
|
@@ -1242,7 +1242,7 @@ const rewardsRedeemedWeekQuery = (programId, locale, type, unit, global = "") =>
|
|
|
1242
1242
|
locale: $locale
|
|
1243
1243
|
formatType: UNIT_FORMATTED
|
|
1244
1244
|
)}`;
|
|
1245
|
-
const result =
|
|
1245
|
+
const result = mn(query, {
|
|
1246
1246
|
value: redeemedTotal,
|
|
1247
1247
|
unit,
|
|
1248
1248
|
locale,
|
|
@@ -1301,7 +1301,7 @@ const rewardsRedeemedMonthQuery = (programId, locale, type, unit, global = "") =
|
|
|
1301
1301
|
locale: $locale
|
|
1302
1302
|
formatType: UNIT_FORMATTED
|
|
1303
1303
|
)}`;
|
|
1304
|
-
const result =
|
|
1304
|
+
const result = mn(query, {
|
|
1305
1305
|
value: redeemedTotal,
|
|
1306
1306
|
unit,
|
|
1307
1307
|
locale,
|
|
@@ -1665,11 +1665,11 @@ const StatPaths = [
|
|
|
1665
1665
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1666
1666
|
function useBigStat(props) {
|
|
1667
1667
|
var _a;
|
|
1668
|
-
const { statType, flexReverse, alignment, programId =
|
|
1668
|
+
const { statType, flexReverse, alignment, programId = W(), } = props;
|
|
1669
1669
|
// triggers a re-render if the label is manually changed
|
|
1670
1670
|
useChildElements();
|
|
1671
|
-
const locale =
|
|
1672
|
-
const userIdent =
|
|
1671
|
+
const locale = O();
|
|
1672
|
+
const userIdent = H();
|
|
1673
1673
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1674
1674
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1675
1675
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-14b87f98.js';
|
|
2
|
-
import { s as src, m as memoize,
|
|
2
|
+
import { s as src, m as memoize, x } from './index.module-99d8522e.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -26635,7 +26635,7 @@ sl-input::part(label){
|
|
|
26635
26635
|
|
|
26636
26636
|
`;
|
|
26637
26637
|
|
|
26638
|
-
|
|
26638
|
+
x(l$1);
|
|
26639
26639
|
const debug = browser("sq:global");
|
|
26640
26640
|
const cache = createIntlCache();
|
|
26641
26641
|
const intl = createIntl({
|