@saasquatch/mint-components 1.6.2-6 → 1.6.2-9
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/{GenericTableView-4921be4b.js → GenericTableView-47869553.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-33ae7c4f.js → ShadowViewAddon-0ce4871c.js} +19 -19
- package/dist/cjs/{global-b3587dc9.js → global-4e52f274.js} +5 -15
- package/dist/cjs/{index.module-ff45cbf1.js → index.module-7972acac.js} +6657 -6306
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-59ca7d19.js → luxon-479fc825.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/raisins-plop-target.cjs.entry.js +2 -5
- package/dist/cjs/{re-render-e5491a50.js → re-render-99b2655c.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +5 -5
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +110 -119
- package/dist/cjs/sqm-empty_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-hero-view-46223e34.js → sqm-hero-view-bc763ed2.js} +2 -2
- package/dist/cjs/sqm-hero.cjs.entry.js +5 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-navigation-sidebar-item-view-e8f500f9.js → sqm-navigation-sidebar-item-view-b3ca14b4.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -5
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-email-verification-view-dd27bba3.js → sqm-portal-email-verification-view-f2a35e7c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -10
- package/dist/cjs/{sqm-portal-footer-view-93f8ec0e.js → sqm-portal-footer-view-8eadb31d.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +14 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +21 -10
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +9 -7
- package/dist/cjs/{sqm-portal-profile-view-f9104d25.js → sqm-portal-profile-view-730252e8.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +13 -21
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +13 -10
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +20 -23
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +17 -17
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +31 -50
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +13 -13
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +25 -19
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +102 -102
- package/dist/cjs/sqm-tab.cjs.entry.js +8 -0
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{stencil-hooks.module-87a1f4f7.js → stencil-hooks.module-6fe43579.js} +1 -0
- package/dist/cjs/{use-callback-e754042f.js → use-callback-5d15897d.js} +1 -1
- package/dist/cjs/useChildElements-42a97f2a.js +32 -0
- package/dist/cjs/{useReferralTable-ae05b785.js → useReferralTable-a985ce58.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-793a7958.js → useRegistrationFormState-b7598d69.js} +4 -4
- package/dist/collection/collection-manifest.json +1 -4
- package/dist/collection/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.js → raisins-plop-target/raisins-plop-target.js} +1 -6
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +2 -2
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +8 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +1 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +1 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +1 -0
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +9 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-image/sqm-image.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +4 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -3
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +4 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +4 -1
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +3 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +7 -3
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +9 -5
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +37 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +60 -9
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -0
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +44 -54
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +6 -4
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +13 -21
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +10 -9
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +24 -31
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +24 -31
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +0 -1
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +21 -21
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +9 -9
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +21 -40
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -2
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +8 -8
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +15 -9
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +2 -1
- package/dist/collection/components/sqm-router/sqm-router.js +2 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.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-stat-container/sqm-stat-container.js +1 -1
- package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +14 -2
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +11 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -3
- package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -3
- package/dist/collection/components/sqm-text/sqm-text.js +0 -7
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
- package/dist/collection/global/styles.js +2 -12
- package/dist/collection/global/styles.ts +2 -12
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/collection/tables/useChildElements.js +13 -4
- package/dist/esm/{GenericTableView-59c5d47c.js → GenericTableView-10cac7d6.js} +2 -2
- package/dist/esm/{ShadowViewAddon-7d94f9d6.js → ShadowViewAddon-846aecda.js} +19 -19
- package/dist/esm/{global-1e714a4d.js → global-44835899.js} +5 -15
- package/dist/esm/{index.module-9cd4623b.js → index.module-132e274f.js} +6636 -6285
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/raisins-plop-target.entry.js +6 -9
- package/dist/esm/{re-render-d1b2a0de.js → re-render-81cd3caa.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +5 -5
- package/dist/esm/sqm-big-stat_35.entry.js +110 -119
- package/dist/esm/sqm-empty_5.entry.js +1 -1
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/{sqm-hero-view-93fac447.js → sqm-hero-view-9fb2be89.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +5 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-navigation-sidebar-item-view-7e6199c2.js → sqm-navigation-sidebar-item-view-364af025.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +6 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-password-field.entry.js +5 -5
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-email-verification-view-ba08318b.js → sqm-portal-email-verification-view-5ac21bb4.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -10
- package/dist/esm/{sqm-portal-footer-view-9bfd61b4.js → sqm-portal-footer-view-f3a6eaed.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +14 -5
- package/dist/esm/sqm-portal-forgot-password.entry.js +21 -10
- package/dist/esm/sqm-portal-logout.entry.js +9 -7
- package/dist/esm/{sqm-portal-profile-view-0f8dd14f.js → sqm-portal-profile-view-630f05c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +13 -21
- package/dist/esm/sqm-portal-protected-route.entry.js +13 -10
- package/dist/esm/sqm-portal-registration-form.entry.js +20 -23
- package/dist/esm/sqm-portal-reset-password.entry.js +19 -19
- package/dist/esm/sqm-portal-verify-email.entry.js +31 -50
- package/dist/esm/sqm-referral-table_11.entry.js +13 -13
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +25 -19
- package/dist/esm/sqm-stencilbook.entry.js +102 -102
- package/dist/esm/sqm-tab.entry.js +8 -0
- package/dist/esm/sqm-tabs.entry.js +8 -6
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm/{use-callback-69ec5c5c.js → use-callback-684c8bb7.js} +1 -1
- package/dist/esm/useChildElements-9431f3e2.js +30 -0
- package/dist/esm/{useReferralTable-68c0823f.js → useReferralTable-0516b6d5.js} +10 -10
- package/dist/esm/{useRegistrationFormState-699c3e59.js → useRegistrationFormState-ebb08075.js} +4 -4
- package/dist/esm-es5/{GenericTableView-59c5d47c.js → GenericTableView-10cac7d6.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-846aecda.js +1 -0
- package/dist/esm-es5/{global-1e714a4d.js → global-44835899.js} +2 -2
- package/dist/esm-es5/index.module-132e274f.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-d1b2a0de.js → re-render-81cd3caa.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-93fac447.js → sqm-hero-view-9fb2be89.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-364af025.js +1 -0
- 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-ba08318b.js → sqm-portal-email-verification-view-5ac21bb4.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-9bfd61b4.js → sqm-portal-footer-view-f3a6eaed.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-0f8dd14f.js → sqm-portal-profile-view-630f05c8.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-rewards-table-customer-note-cell.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/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
- package/dist/esm-es5/useChildElements-9431f3e2.js +1 -0
- package/dist/esm-es5/useReferralTable-0516b6d5.js +1 -0
- package/dist/esm-es5/{useRegistrationFormState-699c3e59.js → useRegistrationFormState-ebb08075.js} +1 -1
- package/dist/mint-components/global/styles.ts +2 -12
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-16beb451.system.entry.js → p-00d4636f.system.entry.js} +1 -1
- package/dist/mint-components/{p-b22b94ac.js → p-0148c516.js} +1 -1
- package/dist/mint-components/p-06f56536.js +1 -0
- package/dist/mint-components/{p-4fdd8b02.system.entry.js → p-07d424a2.system.entry.js} +1 -1
- package/dist/mint-components/p-088d3b4a.system.entry.js +1 -0
- package/dist/mint-components/p-0b1d703d.entry.js +1 -0
- package/dist/mint-components/{p-2ce5d3da.js → p-0d482ad4.js} +1 -1
- package/dist/mint-components/{p-abc426c4.js → p-0d49d56d.js} +1 -1
- package/dist/mint-components/{p-e907c45c.system.js → p-0e441a14.system.js} +1 -1
- package/dist/mint-components/{p-02e2eab4.entry.js → p-0f4c1e0e.entry.js} +3 -3
- package/dist/mint-components/p-1191cada.entry.js +1 -0
- package/dist/mint-components/{p-3fddd002.system.js → p-136325c0.system.js} +1 -1
- package/dist/mint-components/p-162fca19.js +1 -0
- package/dist/mint-components/p-1c21b5d1.js +1 -0
- package/dist/mint-components/{p-4f965abe.js → p-1c40d459.js} +3 -3
- package/dist/mint-components/{p-56bf2c06.system.js → p-1cc3dfe5.system.js} +1 -1
- package/dist/mint-components/{p-33910ee5.system.entry.js → p-1f6fdeda.system.entry.js} +1 -1
- package/dist/mint-components/{p-89d8133d.entry.js → p-222e5418.entry.js} +1 -1
- package/dist/mint-components/{p-273b5c53.system.entry.js → p-2383eadd.system.entry.js} +1 -1
- package/dist/mint-components/p-242bd74b.entry.js +9 -0
- package/dist/mint-components/{p-d1712ae1.system.js → p-292857fd.system.js} +1 -1
- package/dist/mint-components/p-2dce26fa.system.entry.js +1 -0
- package/dist/mint-components/{p-433f243c.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d7de7cd.system.entry.js → p-3d0dc005.system.entry.js} +1 -1
- package/dist/mint-components/p-436779be.js +1 -0
- package/dist/mint-components/{p-e2bf9132.system.js → p-446a0805.system.js} +1 -1
- package/dist/mint-components/{p-7536759d.system.js → p-4935076f.system.js} +1 -1
- package/dist/mint-components/{p-5ef24d6c.system.entry.js → p-4ce8e325.system.entry.js} +1 -1
- package/dist/mint-components/{p-27a8ee57.system.entry.js → p-50553269.system.entry.js} +1 -1
- package/dist/mint-components/{p-5c7c925e.entry.js → p-50afa774.entry.js} +1 -1
- package/dist/mint-components/p-51102b8f.entry.js +13 -0
- package/dist/mint-components/{p-40c4165b.system.js → p-519dc03b.system.js} +1 -1
- package/dist/mint-components/{p-50cb9888.js → p-52a2beaf.js} +1 -1
- package/dist/mint-components/{p-78c7b4b7.js → p-538904bd.js} +1 -1
- package/dist/mint-components/{p-9dd68a9c.system.js → p-53aef3ba.system.js} +2 -2
- package/dist/mint-components/{p-ec18b601.system.js → p-574ba520.system.js} +1 -1
- package/dist/mint-components/{p-78c568dc.system.js → p-5d292177.system.js} +1 -1
- package/dist/mint-components/{p-91cde020.entry.js → p-63101d0c.entry.js} +1 -1
- package/dist/mint-components/{p-9bac73dc.system.js → p-684aadb5.system.js} +1 -1
- package/dist/mint-components/{p-1ea13deb.entry.js → p-703f4552.entry.js} +2 -2
- package/dist/mint-components/p-7c3e3cb4.entry.js +1 -0
- package/dist/mint-components/{p-6c05b2d3.js → p-7dea8d9a.js} +1 -1
- package/dist/mint-components/{p-b7fc1ee1.system.entry.js → p-7f4b0ba0.system.entry.js} +1 -1
- package/dist/mint-components/p-83d4885d.entry.js +99 -0
- package/dist/mint-components/{p-d7d007fb.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
- package/dist/mint-components/p-89fc4544.system.js +1 -0
- package/dist/mint-components/{p-dd627dd0.entry.js → p-8a2c78e0.entry.js} +1 -1
- package/dist/mint-components/p-8b7a19d3.system.entry.js +1 -0
- package/dist/mint-components/p-8c4bcbc6.entry.js +1 -0
- package/dist/mint-components/{p-fdc7e95e.system.entry.js → p-8d6a2a61.system.entry.js} +1 -1
- package/dist/mint-components/{p-de4f0622.entry.js → p-90dfce36.entry.js} +1 -1
- package/dist/mint-components/p-92110eef.entry.js +1 -0
- package/dist/mint-components/p-99397ef5.system.js +1 -0
- package/dist/mint-components/p-9f596d8d.system.entry.js +1 -0
- package/dist/mint-components/{p-a3f87461.entry.js → p-a1acdbb4.entry.js} +1 -1
- package/dist/mint-components/p-a395bae0.entry.js +1 -0
- package/dist/mint-components/{p-a6291305.system.entry.js → p-a4335cb5.system.entry.js} +1 -1
- package/dist/mint-components/{p-5337c953.system.entry.js → p-af3b56d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-ee0c06b3.js → p-afcf252c.js} +2 -2
- package/dist/mint-components/p-b2e7ca31.system.entry.js +1 -0
- package/dist/mint-components/{p-36d50757.entry.js → p-b3d7d353.entry.js} +1 -1
- package/dist/mint-components/{p-17aae439.entry.js → p-b52109dd.entry.js} +1 -1
- package/dist/mint-components/p-b593a42e.system.entry.js +1 -0
- package/dist/mint-components/{p-08fc37fd.system.entry.js → p-bb9dadd3.system.entry.js} +1 -1
- package/dist/mint-components/p-bc2cf095.entry.js +1 -0
- package/dist/mint-components/{p-10fb0aae.system.entry.js → p-bed78bee.system.entry.js} +1 -1
- package/dist/mint-components/p-c01e754d.system.entry.js +1 -0
- package/dist/mint-components/p-c4e22786.system.js +1 -0
- package/dist/mint-components/{p-a6bfbb4e.js → p-c627c865.js} +2 -2
- package/dist/mint-components/{p-cc6f7cb5.entry.js → p-ca08cf71.entry.js} +1 -1
- package/dist/mint-components/p-cac0e237.entry.js +1 -0
- package/dist/mint-components/{p-c88cb982.entry.js → p-ce6f7e0e.entry.js} +1 -1
- package/dist/mint-components/{p-d1aef95c.entry.js → p-ceeeb344.entry.js} +1 -1
- package/dist/mint-components/{p-29f82c6d.system.entry.js → p-ceefa54a.system.entry.js} +1 -1
- package/dist/mint-components/p-d08b59df.entry.js +13 -0
- package/dist/mint-components/p-d21ccfa1.entry.js +1 -0
- package/dist/mint-components/p-d307abaa.entry.js +1 -0
- package/dist/mint-components/p-d4b1fcbc.system.entry.js +1 -0
- package/dist/mint-components/{p-8a0cf4be.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-d5c94703.entry.js +1 -0
- package/dist/mint-components/{p-2920efe6.js → p-d64a0bc1.js} +1 -1
- package/dist/mint-components/p-dbfb865e.js +1 -0
- package/dist/mint-components/p-dc37fe51.system.js +1 -0
- package/dist/mint-components/{p-7eb9955b.system.entry.js → p-df2b4e11.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce5a3693.system.js → p-e0fa9595.system.js} +1 -1
- package/dist/mint-components/{p-1644c8e4.js → p-e733843b.js} +1 -1
- package/dist/mint-components/{p-771b778b.system.entry.js → p-e8d07dfa.system.entry.js} +1 -1
- package/dist/mint-components/p-f3eaabf8.system.entry.js +1 -0
- package/dist/mint-components/{p-b96505f5.entry.js → p-f54b436e.entry.js} +1 -1
- package/dist/mint-components/{p-190e24e4.system.entry.js → p-f5e601b0.system.entry.js} +1 -1
- package/dist/mint-components/p-f8863064.system.entry.js +1 -0
- package/dist/types/components/raisins-plop-target/raisins-plop-target.d.ts +9 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +5 -1
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +1 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
- package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +3 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +4 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -3
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +4 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +4 -1
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +3 -1
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +3 -2
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +2 -2
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -3
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +10 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +14 -5
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +13 -26
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +4 -2
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +5 -13
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +7 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +13 -14
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +13 -14
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +0 -6
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +10 -10
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +5 -5
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -2
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -3
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +3 -3
- package/dist/types/components/sqm-route/sqm-route.d.ts +2 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +6 -0
- package/dist/types/components/sqm-table-row/sqm-table-row.d.ts +7 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -3
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -2
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -7
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +204 -719
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/grapesjs.js +54 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -4
- package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +0 -89
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +0 -100
- package/dist/cjs/sqm-qa.cjs.entry.js +0 -112
- package/dist/cjs/useChildElements-658fefa1.js +0 -23
- package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
- package/dist/collection/assets/saasquatch-logo-wide.jpeg +0 -0
- package/dist/collection/assets/saasquatch-logo.png +0 -0
- package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1038
- package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +0 -79
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +0 -56
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +0 -70
- package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +0 -491
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +0 -31
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +0 -59
- package/dist/collection/components/sqm-qa-tabs/useTabs.js +0 -46
- package/dist/esm/sqm-qa-referral-card.entry.js +0 -85
- package/dist/esm/sqm-qa-tabs.entry.js +0 -96
- package/dist/esm/sqm-qa.entry.js +0 -108
- package/dist/esm/useChildElements-e1a1d3d1.js +0 -21
- package/dist/esm-es5/ShadowViewAddon-7d94f9d6.js +0 -1
- package/dist/esm-es5/index.module-9cd4623b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-7e6199c2.js +0 -1
- package/dist/esm-es5/sqm-qa-referral-card.entry.js +0 -1
- package/dist/esm-es5/sqm-qa-tabs.entry.js +0 -1
- package/dist/esm-es5/sqm-qa.entry.js +0 -1
- package/dist/esm-es5/use-callback-69ec5c5c.js +0 -1
- package/dist/esm-es5/useChildElements-e1a1d3d1.js +0 -1
- package/dist/esm-es5/useReferralTable-68c0823f.js +0 -1
- package/dist/mint-components/p-07b33645.system.js +0 -1
- package/dist/mint-components/p-08401205.entry.js +0 -13
- package/dist/mint-components/p-1127f297.entry.js +0 -99
- package/dist/mint-components/p-1fed6a09.entry.js +0 -1
- package/dist/mint-components/p-2d2f7abb.system.entry.js +0 -1
- package/dist/mint-components/p-2de1fadb.system.entry.js +0 -1
- package/dist/mint-components/p-32f481cb.entry.js +0 -1
- package/dist/mint-components/p-46ed891a.entry.js +0 -1
- package/dist/mint-components/p-4c2cec5c.system.entry.js +0 -1
- package/dist/mint-components/p-4c93df52.entry.js +0 -1
- package/dist/mint-components/p-4f10205f.entry.js +0 -1
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-5c347c93.system.entry.js +0 -1
- package/dist/mint-components/p-69871506.js +0 -1
- package/dist/mint-components/p-75e425fa.system.entry.js +0 -1
- package/dist/mint-components/p-92e8b7b5.entry.js +0 -1
- package/dist/mint-components/p-a16556fd.entry.js +0 -1
- package/dist/mint-components/p-a63204e2.js +0 -1
- package/dist/mint-components/p-a750f034.js +0 -1
- package/dist/mint-components/p-a963e9d5.entry.js +0 -9
- package/dist/mint-components/p-ab7ae098.system.js +0 -1
- package/dist/mint-components/p-abffc249.entry.js +0 -13
- package/dist/mint-components/p-ad67b111.system.entry.js +0 -1
- package/dist/mint-components/p-b5faa04d.system.entry.js +0 -1
- package/dist/mint-components/p-ba09e62f.entry.js +0 -1
- package/dist/mint-components/p-c2b5997d.entry.js +0 -1
- package/dist/mint-components/p-c911a062.entry.js +0 -1
- package/dist/mint-components/p-c9977e50.system.entry.js +0 -1
- package/dist/mint-components/p-ca2819e8.system.js +0 -1
- package/dist/mint-components/p-cbb61c41.entry.js +0 -1
- package/dist/mint-components/p-cdabe7a8.js +0 -1
- package/dist/mint-components/p-cdf2914a.entry.js +0 -1
- package/dist/mint-components/p-cf279181.system.entry.js +0 -1
- package/dist/mint-components/p-dec7a657.entry.js +0 -1
- package/dist/mint-components/p-e0140005.system.entry.js +0 -1
- package/dist/mint-components/p-e28f4762.entry.js +0 -1
- package/dist/mint-components/p-e9fa325e.system.entry.js +0 -1
- package/dist/mint-components/p-ecf7bfc7.system.entry.js +0 -1
- package/dist/mint-components/p-efbc0ee0.system.js +0 -1
- package/dist/mint-components/p-fc8800c0.js +0 -1
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -250
- package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +0 -14
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +0 -20
- package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +0 -15
- package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +0 -23
- package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +0 -9
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts +0 -11
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { n as m,
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { n as m, f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { L, C as Ce, U, b as be } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
|
|
7
7
|
async function useGraphQLClientProvider({ domain }) {
|
|
8
|
-
const token =
|
|
8
|
+
const token = L();
|
|
9
9
|
const appDomain = domain;
|
|
10
10
|
const tenantAlias = U();
|
|
11
11
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
12
|
-
const managedIdentityClient =
|
|
13
|
-
const [, setGraphQLClient] = m(
|
|
12
|
+
const managedIdentityClient = Ce(appDomain, tenantAlias, token);
|
|
13
|
+
const [, setGraphQLClient] = m(be, managedIdentityClient);
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
setGraphQLClient(managedIdentityClient);
|
|
16
16
|
}, [managedIdentityClient]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as useState,
|
|
3
|
-
import { u as useCallback } from './use-callback-
|
|
2
|
+
import { i as useState, f as useEffect } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import { u as useCallback } from './use-callback-684c8bb7.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
5
5
|
|
|
6
6
|
// import { IntlMessageFormat } from 'intl-messageformat';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
4
|
import './extends-c31f1eff.js';
|
|
5
5
|
import './JSS-f00f9536.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
|
-
import { H as HeroView } from './sqm-hero-view-
|
|
7
|
+
import { H as HeroView } from './sqm-hero-view-9fb2be89.js';
|
|
8
8
|
|
|
9
9
|
const Hero = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -13,6 +13,8 @@ const Hero = class {
|
|
|
13
13
|
* Number of columns in the layout
|
|
14
14
|
*
|
|
15
15
|
* @uiName Columns
|
|
16
|
+
* @uiEnum [1, 2]
|
|
17
|
+
* @uiEnumNames ["One", "Two"]
|
|
16
18
|
*/
|
|
17
19
|
this.columns = 1;
|
|
18
20
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './use-callback-
|
|
5
|
-
import { d as dist,
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import { i as intl } from './global-44835899.js';
|
|
4
|
+
import './use-callback-684c8bb7.js';
|
|
5
|
+
import { d as dist, W, _, a as dn, i as isDemo } from './index.module-132e274f.js';
|
|
6
6
|
import './extends-c31f1eff.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
@@ -22,10 +22,10 @@ const GET_RANK = dist.gql `
|
|
|
22
22
|
`;
|
|
23
23
|
function useLeaderboardRank(props) {
|
|
24
24
|
var _a, _b, _c, _d;
|
|
25
|
-
const programIdContext =
|
|
25
|
+
const programIdContext = W();
|
|
26
26
|
// Default to context, overriden by props
|
|
27
27
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
28
|
-
const user =
|
|
28
|
+
const user = _();
|
|
29
29
|
const rankVariables = programId
|
|
30
30
|
? {
|
|
31
31
|
type: props.leaderboardType,
|
|
@@ -38,7 +38,7 @@ function useLeaderboardRank(props) {
|
|
|
38
38
|
if (props.interval) {
|
|
39
39
|
rankVariables.filter["interval"] = props.interval;
|
|
40
40
|
}
|
|
41
|
-
const { data: rankData } =
|
|
41
|
+
const { data: rankData } = dn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
42
42
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
43
43
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
44
44
|
})
|
|
@@ -64,7 +64,7 @@ const LeaderboardRank = class {
|
|
|
64
64
|
}
|
|
65
65
|
disconnectedCallback() { }
|
|
66
66
|
render() {
|
|
67
|
-
const props =
|
|
67
|
+
const props = isDemo()
|
|
68
68
|
? useLeaderboardRankDemo(this)
|
|
69
69
|
: useLeaderboardRank(this);
|
|
70
70
|
return h$1(LeaderboardRankView, Object.assign({}, props));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { v as vn } from './index.module-132e274f.js';
|
|
3
3
|
import { g as gap } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
|
|
|
33
33
|
const styleString = sheet.toString();
|
|
34
34
|
return (h("a", { href: data.path, onClick: (e) => {
|
|
35
35
|
e.preventDefault();
|
|
36
|
-
|
|
36
|
+
vn.push(data.path);
|
|
37
37
|
}, class: sheet.classes.ItemContainer },
|
|
38
38
|
h("style", { type: "text/css" }, styleString),
|
|
39
39
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { g as gn, i as isDemo } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import './JSS-f00f9536.js';
|
|
9
9
|
import { g as getProps } from './utils-334c1e34.js';
|
|
10
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
10
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-364af025.js';
|
|
11
11
|
|
|
12
12
|
function useNavigationSidebarItem(props) {
|
|
13
|
-
const currentPage =
|
|
13
|
+
const currentPage = gn();
|
|
14
14
|
return {
|
|
15
15
|
states: {
|
|
16
16
|
active: currentPage.pathname === props.path,
|
|
@@ -30,7 +30,7 @@ const NavigationSidebarItem = class {
|
|
|
30
30
|
}
|
|
31
31
|
disconnectedCallback() { }
|
|
32
32
|
render() {
|
|
33
|
-
const props =
|
|
33
|
+
const props = isDemo()
|
|
34
34
|
? useSidebarItemDemo(getProps(this))
|
|
35
35
|
: useNavigationSidebarItem(getProps(this));
|
|
36
36
|
return h$1(NavigationSidebarItemView, Object.assign({}, props));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
3
|
import './extends-c31f1eff.js';
|
|
4
4
|
import './mixins-f60a614c.js';
|
|
5
5
|
import './JSS-f00f9536.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
-
import { o as d, i as useState, m as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { o as d, i as useState, m as h$1 } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { i as isDemo } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
9
|
-
import { F as FORM_VALIDATION_CONTEXT, R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
9
|
+
import { F as FORM_VALIDATION_CONTEXT, R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-ebb08075.js';
|
|
10
10
|
|
|
11
11
|
var constants = {
|
|
12
12
|
error: {
|
|
@@ -548,7 +548,7 @@ const PortalPasswordField = class {
|
|
|
548
548
|
}
|
|
549
549
|
disconnectedCallback() { }
|
|
550
550
|
render() {
|
|
551
|
-
const { states, callbacks } =
|
|
551
|
+
const { states, callbacks } = isDemo()
|
|
552
552
|
? usePasswordFieldDemo(this)
|
|
553
553
|
: usePasswordField(this);
|
|
554
554
|
return h(PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
-
import { m as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { m as h$1 } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { Q } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
|
|
@@ -16,10 +16,10 @@ const PopupContainerView = (props) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
function usePopupContainer(props) {
|
|
19
|
-
const engagementMedium =
|
|
19
|
+
const engagementMedium = Q();
|
|
20
20
|
function closePopup() {
|
|
21
21
|
var _a;
|
|
22
|
-
if (
|
|
22
|
+
if (Q() === "POPUP") {
|
|
23
23
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -33,7 +33,7 @@ function usePopupContainer(props) {
|
|
|
33
33
|
? "0"
|
|
34
34
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
35
35
|
: "0";
|
|
36
|
-
const padding =
|
|
36
|
+
const padding = Q() === "POPUP" ? popupPadding : embedPadding;
|
|
37
37
|
return {
|
|
38
38
|
states: {
|
|
39
39
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -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-44835899.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-0ba1484d.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { i as useState,
|
|
3
|
-
import './global-
|
|
4
|
-
import './use-callback-
|
|
5
|
-
import {
|
|
2
|
+
import { i as useState, f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './global-44835899.js';
|
|
4
|
+
import './use-callback-684c8bb7.js';
|
|
5
|
+
import { o as on, _, i as isDemo } from './index.module-132e274f.js';
|
|
6
6
|
import './extends-c31f1eff.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
import './JSS-f00f9536.js';
|
|
10
10
|
import './sqm-text-span-view-0ba1484d.js';
|
|
11
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
11
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-5ac21bb4.js';
|
|
12
12
|
|
|
13
13
|
function usePortalEmailVerification(props) {
|
|
14
14
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
15
|
-
const [request, { loading, data, errors }] =
|
|
16
|
-
const userIdent =
|
|
15
|
+
const [request, { loading, data, errors }] = on();
|
|
16
|
+
const userIdent = _();
|
|
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 [success, setSuccess] = useState(false);
|
|
19
19
|
const [error, setError] = useState("");
|
|
@@ -64,9 +64,9 @@ const PortalEmailVerification = class {
|
|
|
64
64
|
registerInstance(this, hostRef);
|
|
65
65
|
this.ignored = true;
|
|
66
66
|
/**
|
|
67
|
-
* The page that
|
|
67
|
+
* The microsite page that participants are redirected to from the verification email.
|
|
68
68
|
*
|
|
69
|
-
* @uiName Email Redirection
|
|
69
|
+
* @uiName Email Redirection Path
|
|
70
70
|
*/
|
|
71
71
|
this.redirectPath = "/verifyEmail";
|
|
72
72
|
/**
|
|
@@ -79,13 +79,14 @@ const PortalEmailVerification = class {
|
|
|
79
79
|
this.resendEmailButtonText = "Re-send Email";
|
|
80
80
|
/**
|
|
81
81
|
* @uiName Email Verification Body Text
|
|
82
|
+
* @uiWidget textArea
|
|
82
83
|
*/
|
|
83
84
|
this.verifyMessage = "A verification email was sent to {email}. Please verify your email to continue to the portal.";
|
|
84
85
|
h(this);
|
|
85
86
|
}
|
|
86
87
|
disconnectedCallback() { }
|
|
87
88
|
render() {
|
|
88
|
-
const { states, callbacks, content } =
|
|
89
|
+
const { states, callbacks, content } = isDemo()
|
|
89
90
|
? usePortalEmailVerificationDemo(this)
|
|
90
91
|
: usePortalEmailVerification(this);
|
|
91
92
|
return (h$1(PortalEmailVerificationView, { states: states, callbacks: callbacks, content: content }));
|
|
@@ -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-44835899.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
4
4
|
|
|
5
5
|
function PoweredByImg({ color = "#A6A6A6", width = 190, height = 29, }) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import './global-
|
|
4
|
-
import './use-callback-
|
|
5
|
-
import './index.module-
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './global-44835899.js';
|
|
4
|
+
import './use-callback-684c8bb7.js';
|
|
5
|
+
import './index.module-132e274f.js';
|
|
6
6
|
import './extends-c31f1eff.js';
|
|
7
7
|
import './JSS-f00f9536.js';
|
|
8
8
|
import { g as getProps } from './utils-334c1e34.js';
|
|
9
|
-
import { P as PortalFooterView } from './sqm-portal-footer-view-
|
|
9
|
+
import { P as PortalFooterView } from './sqm-portal-footer-view-f3a6eaed.js';
|
|
10
10
|
|
|
11
11
|
const PortalFooter = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -18,6 +18,7 @@ const PortalFooter = class {
|
|
|
18
18
|
this.supportEmail = "support@example.com";
|
|
19
19
|
/**
|
|
20
20
|
* @uiName Support Text
|
|
21
|
+
* @uiWidget textArea
|
|
21
22
|
*/
|
|
22
23
|
this.supportText = "For program support, contact {email}";
|
|
23
24
|
/**
|
|
@@ -30,18 +31,26 @@ const PortalFooter = class {
|
|
|
30
31
|
this.poweredByLink = "https://saasquatch.com";
|
|
31
32
|
/**
|
|
32
33
|
* @uiName Padding Top
|
|
34
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
35
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
33
36
|
*/
|
|
34
37
|
this.paddingTop = "large";
|
|
35
38
|
/**
|
|
36
39
|
* @uiName Padding Right
|
|
40
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
41
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
37
42
|
*/
|
|
38
43
|
this.paddingRight = "large";
|
|
39
44
|
/**
|
|
40
45
|
* @uiName Padding Bottom
|
|
46
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
47
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
41
48
|
*/
|
|
42
49
|
this.paddingBottom = "large";
|
|
43
50
|
/**
|
|
44
51
|
* @uiName Padding Left
|
|
52
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
53
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
45
54
|
*/
|
|
46
55
|
this.paddingLeft = "large";
|
|
47
56
|
h(this);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { i as useState,
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { i as useState, f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { t as tn, i as isDemo, v as vn } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -14,7 +14,7 @@ function usePortalForgotPassword(props) {
|
|
|
14
14
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15
15
|
const [success, setSuccess] = useState(false);
|
|
16
16
|
const [error, setError] = useState("");
|
|
17
|
-
const [request, { loading, data, errors }] =
|
|
17
|
+
const [request, { loading, data, errors }] = tn();
|
|
18
18
|
const urlParams = new URLSearchParams(window.location.search);
|
|
19
19
|
const nextPage = urlParams.get("nextPage");
|
|
20
20
|
const submit = async (event) => {
|
|
@@ -47,6 +47,8 @@ function usePortalForgotPassword(props) {
|
|
|
47
47
|
error,
|
|
48
48
|
success,
|
|
49
49
|
loginPath: props.loginPath,
|
|
50
|
+
headerText: props.headerText,
|
|
51
|
+
loginText: props.loginText,
|
|
50
52
|
},
|
|
51
53
|
callbacks: {
|
|
52
54
|
submit,
|
|
@@ -59,13 +61,13 @@ const PortalForgotPassword = class {
|
|
|
59
61
|
registerInstance(this, hostRef);
|
|
60
62
|
this.ignored = true;
|
|
61
63
|
/**
|
|
62
|
-
* The page that
|
|
64
|
+
* The microsite page that participants are redirected to from the password reset email.
|
|
63
65
|
*
|
|
64
|
-
* @uiName Email Redirection
|
|
66
|
+
* @uiName Email Redirection Path
|
|
65
67
|
*/
|
|
66
68
|
this.redirectPath = "/resetPassword";
|
|
67
69
|
/**
|
|
68
|
-
* @uiName Email Label
|
|
70
|
+
* @uiName Email Field Label
|
|
69
71
|
*/
|
|
70
72
|
this.emailLabel = "Email";
|
|
71
73
|
/**
|
|
@@ -73,18 +75,27 @@ const PortalForgotPassword = class {
|
|
|
73
75
|
*/
|
|
74
76
|
this.submitLabel = "Request Password Reset";
|
|
75
77
|
/**
|
|
76
|
-
* @uiName Login
|
|
78
|
+
* @uiName Login Redirect Path
|
|
77
79
|
*/
|
|
78
80
|
this.loginPath = "/login";
|
|
81
|
+
/**
|
|
82
|
+
* @uiName Header Text
|
|
83
|
+
* @uiWidget textArea
|
|
84
|
+
*/
|
|
85
|
+
this.headerText = "Enter your email below to receive a password reset link.";
|
|
86
|
+
/**
|
|
87
|
+
* Sign In Link Text
|
|
88
|
+
*/
|
|
89
|
+
this.loginText = "Sign In";
|
|
79
90
|
h(this);
|
|
80
91
|
}
|
|
81
92
|
disconnectedCallback() { }
|
|
82
93
|
render() {
|
|
83
|
-
const { states, callbacks } =
|
|
94
|
+
const { states, callbacks } = isDemo()
|
|
84
95
|
? usePortalForgotPasswordDemo(this)
|
|
85
96
|
: usePortalForgotPassword(this);
|
|
86
97
|
const content = {
|
|
87
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
98
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => vn.push(states.loginPath) }, "Sign In"))),
|
|
88
99
|
messageSlot: (h$1("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
89
100
|
emailLabel: this.emailLabel,
|
|
90
101
|
submitLabel: this.submitLabel,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { c as setUserIdentity, v as vn, i as isDemo } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
|
|
7
7
|
function usePortalLogout({ nextPage }) {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
setUserIdentity(undefined);
|
|
9
|
+
vn.push({ pathname: nextPage, search: "" });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const PortalLogout = class {
|
|
@@ -14,14 +14,16 @@ const PortalLogout = class {
|
|
|
14
14
|
registerInstance(this, hostRef);
|
|
15
15
|
this.ignored = true;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Redirect participants to this path when they log out
|
|
18
|
+
*
|
|
19
|
+
* @uiName Logout Redirect Path
|
|
18
20
|
*/
|
|
19
21
|
this.nextPage = "/";
|
|
20
22
|
h(this);
|
|
21
23
|
}
|
|
22
24
|
disconnectedCallback() { }
|
|
23
25
|
render() {
|
|
24
|
-
|
|
26
|
+
isDemo() ? useLogoutDemo() : usePortalLogout(this);
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
function useLogoutDemo({}) { }
|
package/dist/esm/{sqm-portal-profile-view-0f8dd14f.js → sqm-portal-profile-view-630f05c8.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-44835899.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-f00f9536.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-0ba1484d.js';
|
|
5
5
|
import { P as PortalContainerView } from './sqm-portal-container-view-ca454627.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { i as useState,
|
|
3
|
-
import './global-
|
|
4
|
-
import './use-callback-
|
|
5
|
-
import { d as dist, a as
|
|
2
|
+
import { i as useState, f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './global-44835899.js';
|
|
4
|
+
import './use-callback-684c8bb7.js';
|
|
5
|
+
import { d as dist, _, a as dn, I as Ie, i as isDemo } from './index.module-132e274f.js';
|
|
6
6
|
import './extends-c31f1eff.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './JSS-f00f9536.js';
|
|
9
9
|
import { g as getProps } from './utils-334c1e34.js';
|
|
10
10
|
import './sqm-text-span-view-0ba1484d.js';
|
|
11
11
|
import './sqm-portal-container-view-ca454627.js';
|
|
12
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
12
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-630f05c8.js';
|
|
13
13
|
|
|
14
14
|
const GET_USER = dist.gql `
|
|
15
15
|
query {
|
|
@@ -55,12 +55,12 @@ const defaultFormState = {
|
|
|
55
55
|
error: "",
|
|
56
56
|
};
|
|
57
57
|
function usePortalProfile(props) {
|
|
58
|
-
const userIdent =
|
|
58
|
+
const userIdent = _();
|
|
59
59
|
const [success, setSuccess] = useState(false);
|
|
60
60
|
const [userData, setUserData] = useState(undefined);
|
|
61
61
|
const [formState, setFormState] = useState(defaultFormState);
|
|
62
|
-
const userDataResponse =
|
|
63
|
-
const [upsertUser, upsertUserResponse] =
|
|
62
|
+
const userDataResponse = dn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
63
|
+
const [upsertUser, upsertUserResponse] = Ie(UPSERT_USER);
|
|
64
64
|
useEffect(() => {
|
|
65
65
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
66
66
|
return;
|
|
@@ -163,27 +163,19 @@ const PortalProfile = class {
|
|
|
163
163
|
registerInstance(this, hostRef);
|
|
164
164
|
this.ignored = true;
|
|
165
165
|
/**
|
|
166
|
-
* First name input field label
|
|
167
|
-
*
|
|
168
166
|
* @uiName First Name Label
|
|
169
167
|
*/
|
|
170
168
|
this.firstnametext = "First Name";
|
|
171
169
|
/**
|
|
172
|
-
* Last
|
|
173
|
-
*
|
|
174
|
-
* @uiName Last Name Label
|
|
170
|
+
* @uiName Last Name Field Label
|
|
175
171
|
*/
|
|
176
172
|
this.lastnametext = "Last Name";
|
|
177
173
|
/**
|
|
178
|
-
* Email
|
|
179
|
-
*
|
|
180
|
-
* @uiName Email Label
|
|
174
|
+
* @uiName Email Field Label
|
|
181
175
|
*/
|
|
182
176
|
this.emailtext = "Email";
|
|
183
177
|
/**
|
|
184
|
-
* Country
|
|
185
|
-
*
|
|
186
|
-
* @uiName Country Label
|
|
178
|
+
* @uiName Country Field Label
|
|
187
179
|
*/
|
|
188
180
|
this.countrytext = "Country";
|
|
189
181
|
/**
|
|
@@ -199,7 +191,7 @@ const PortalProfile = class {
|
|
|
199
191
|
*/
|
|
200
192
|
this.submitChangeButtonText = "Submit Changes";
|
|
201
193
|
/**
|
|
202
|
-
* Show or hide the country field
|
|
194
|
+
* Show or hide the country field.
|
|
203
195
|
*
|
|
204
196
|
* @uiName Show Country Field
|
|
205
197
|
*/
|
|
@@ -208,7 +200,7 @@ const PortalProfile = class {
|
|
|
208
200
|
}
|
|
209
201
|
disconnectedCallback() { }
|
|
210
202
|
render() {
|
|
211
|
-
const props =
|
|
203
|
+
const props = isDemo()
|
|
212
204
|
? usePortalProfileDemo(getProps(this))
|
|
213
205
|
: usePortalProfile(getProps(this));
|
|
214
206
|
return h$1(PortalProfileView, Object.assign({}, props));
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import './use-callback-
|
|
4
|
-
import {
|
|
2
|
+
import { f as useEffect, m as h } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import './use-callback-684c8bb7.js';
|
|
4
|
+
import { _, g as gn, v as vn, i as isDemo } from './index.module-132e274f.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
6
|
|
|
7
7
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
8
8
|
var _a;
|
|
9
|
-
const userIdent =
|
|
9
|
+
const userIdent = _();
|
|
10
10
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
11
11
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
12
|
-
const { pathname, search } =
|
|
12
|
+
const { pathname, search } = gn();
|
|
13
13
|
const nextPageParam = new URLSearchParams();
|
|
14
14
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
15
15
|
useEffect(() => {
|
|
16
16
|
if (!authenticated) {
|
|
17
|
-
return
|
|
17
|
+
return vn.push({
|
|
18
18
|
pathname: redirectTo,
|
|
19
19
|
search: "?" + nextPageParam.toString(),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
if (requireEmailVerification && !emailVerified) {
|
|
23
|
-
return
|
|
23
|
+
return vn.push({
|
|
24
24
|
pathname: redirectToUnverified || redirectTo,
|
|
25
25
|
search: "?" + nextPageParam.toString(),
|
|
26
26
|
});
|
|
@@ -34,23 +34,26 @@ const PortalProtectedRoute = class {
|
|
|
34
34
|
registerInstance(this, hostRef);
|
|
35
35
|
this.ignored = true;
|
|
36
36
|
/**
|
|
37
|
+
* Redirect participants to this path they are not logged in.
|
|
38
|
+
*
|
|
37
39
|
* @uiName Redirect Path
|
|
38
40
|
*/
|
|
39
41
|
this.redirectTo = "/";
|
|
40
42
|
/**
|
|
41
43
|
* @uiName Require Email Verification
|
|
42
|
-
* @default
|
|
43
44
|
*/
|
|
44
45
|
this.requireEmailVerification = false;
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
+
* Redirect participants to this path when email verification is required but they have not verified their email.
|
|
48
|
+
*
|
|
49
|
+
* @uiName Unverified Participant Redirect Path
|
|
47
50
|
*/
|
|
48
51
|
this.redirectToUnverified = "/emailVerification";
|
|
49
52
|
h(this);
|
|
50
53
|
}
|
|
51
54
|
disconnectedCallback() { }
|
|
52
55
|
render() {
|
|
53
|
-
const hasUser =
|
|
56
|
+
const hasUser = isDemo()
|
|
54
57
|
? usePortalProtectedRouteDemo()
|
|
55
58
|
: usePortalProtectedRoute(this);
|
|
56
59
|
return (h$1(Host, { style: { display: hasUser ? "contents" : "none" } }, h$1("slot", null)));
|