@saasquatch/mint-components 1.6.2-1 → 1.6.2-10
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/{esm/useValidationState-f9d1a9bf.js → cjs/AsYouType-6788393a.js} +2 -10
- package/dist/cjs/{GenericTableView-4921be4b.js → GenericTableView-47869553.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-aa0e441d.js → ShadowViewAddon-0ce4871c.js} +28 -21
- package/dist/cjs/{global-021e3c7a.js → global-4e52f274.js} +5 -15
- package/dist/cjs/{index.module-6650575b.js → index.module-7972acac.js} +6658 -6307
- 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-421592aa.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 +119 -125
- 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-958c8908.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 +16 -10
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-email-verification-view-b685b780.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-9f7f3834.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-a6b0c4a7.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 +93 -42
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +17 -17
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +32 -51
- 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 +105 -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-7909aa6b.js → useReferralTable-a985ce58.js} +10 -10
- package/dist/cjs/useRegistrationFormState-b7598d69.js +23 -0
- 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-view.js +9 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +5 -2
- package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -0
- 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/PasswordField.stories.js +3 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +7 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +5 -1
- package/dist/collection/components/sqm-password-field/usePasswordField.js +5 -2
- 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-view.js +16 -9
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +52 -32
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +52 -11
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +8 -0
- 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/{cjs/useValidationState-6a7e4f59.js → esm/AsYouType-46f67d0d.js} +1 -15
- package/dist/esm/{GenericTableView-59c5d47c.js → GenericTableView-10cac7d6.js} +2 -2
- package/dist/esm/{ShadowViewAddon-dba590a6.js → ShadowViewAddon-846aecda.js} +28 -21
- package/dist/esm/{global-d07f1376.js → global-44835899.js} +5 -15
- package/dist/esm/{index.module-f64d9e4c.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-a805b533.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 +113 -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-2ed13955.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 +16 -10
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-email-verification-view-527c54bd.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-5af8c8de.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-878b75ff.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 +91 -40
- package/dist/esm/sqm-portal-reset-password.entry.js +19 -19
- package/dist/esm/sqm-portal-verify-email.entry.js +32 -51
- 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 +105 -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-ff2e6347.js → useReferralTable-0516b6d5.js} +10 -10
- package/dist/esm/useRegistrationFormState-ebb08075.js +18 -0
- package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
- 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-d07f1376.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-a805b533.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-2ed13955.js → sqm-navigation-sidebar-item-view-364af025.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-527c54bd.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-5af8c8de.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-878b75ff.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-ebb08075.js +1 -0
- 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-82e5167e.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-0d482ad4.js +1 -0
- package/dist/mint-components/p-0d49d56d.js +1 -0
- package/dist/mint-components/{p-e907c45c.system.js → p-0e441a14.system.js} +1 -1
- package/dist/mint-components/{p-7ce9b6f0.entry.js → p-0f4c1e0e.entry.js} +3 -3
- package/dist/mint-components/p-121cdc60.js +1 -0
- package/dist/mint-components/{p-fd05df17.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-f6aaa05d.js → p-1c40d459.js} +4 -4
- package/dist/mint-components/p-1cc3dfe5.system.js +1 -0
- package/dist/mint-components/{p-eded5687.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-2383eadd.system.entry.js +1 -0
- package/dist/mint-components/p-242bd74b.entry.js +9 -0
- package/dist/mint-components/{p-788e20c2.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-698756dd.system.entry.js → p-3d0dc005.system.entry.js} +1 -1
- package/dist/mint-components/p-3f43b39c.entry.js +1 -0
- 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-66d4a1de.system.js → p-4935076f.system.js} +1 -1
- package/dist/mint-components/p-4ce8e325.system.entry.js +1 -0
- package/dist/mint-components/{p-27a8ee57.system.entry.js → p-50553269.system.entry.js} +1 -1
- package/dist/mint-components/{p-52aeaa53.entry.js → p-50afa774.entry.js} +1 -1
- package/dist/mint-components/p-51102b8f.entry.js +13 -0
- package/dist/mint-components/{p-68f8fc59.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-26ae2b6b.system.js → p-53aef3ba.system.js} +2 -2
- package/dist/mint-components/p-574ba520.system.js +1 -0
- package/dist/mint-components/{p-e09f76b7.system.js → p-5d292177.system.js} +1 -1
- package/dist/mint-components/{p-b18c9d88.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-59167300.entry.js → p-703f4552.entry.js} +12 -12
- package/dist/mint-components/p-73681688.system.entry.js +1 -0
- package/dist/mint-components/p-7c3e3cb4.entry.js +1 -0
- package/dist/mint-components/{p-c8b5a819.js → p-7dea8d9a.js} +1 -1
- package/dist/mint-components/{p-b60e43ec.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-5a5c9039.system.entry.js → p-8d6a2a61.system.entry.js} +1 -1
- package/dist/mint-components/p-90dfce36.entry.js +1 -0
- 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-9d362d44.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-45c2d208.system.entry.js → p-af3b56d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-dce5643a.js → p-afcf252c.js} +2 -2
- package/dist/mint-components/p-b2e7ca31.system.entry.js +1 -0
- package/dist/mint-components/{p-82536ec7.entry.js → p-b3d7d353.entry.js} +1 -1
- package/dist/mint-components/{p-a8c7d22f.entry.js → p-b52109dd.entry.js} +1 -1
- package/dist/mint-components/p-b593a42e.system.entry.js +1 -0
- package/dist/mint-components/p-bb9dadd3.system.entry.js +1 -0
- package/dist/mint-components/p-bc2cf095.entry.js +1 -0
- package/dist/mint-components/{p-09582767.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-ae5b1a9a.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-0b94ee0c.entry.js → p-d08b59df.entry.js} +2 -2
- 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-8a0cf4be.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-d5c94703.entry.js +1 -0
- package/dist/mint-components/{p-e7bf8047.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-e81e451e.system.entry.js → p-df2b4e11.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7797ffe.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-f09e5077.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-04342637.entry.js → p-f54b436e.entry.js} +1 -1
- package/dist/mint-components/{p-95543e61.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-view.d.ts +2 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +2 -0
- 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-view.d.ts +2 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +6 -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-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +19 -14
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +2 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +17 -0
- 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 +214 -719
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -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-161f4899.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-c26c601d.js +0 -21
- package/dist/esm-es5/ShadowViewAddon-dba590a6.js +0 -1
- package/dist/esm-es5/index.module-f64d9e4c.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-c26c601d.js +0 -1
- package/dist/esm-es5/useReferralTable-ff2e6347.js +0 -1
- package/dist/esm-es5/useValidationState-f9d1a9bf.js +0 -1
- package/dist/mint-components/p-02388c5b.system.entry.js +0 -1
- package/dist/mint-components/p-05bc51fd.system.entry.js +0 -1
- package/dist/mint-components/p-0626cb73.js +0 -1
- package/dist/mint-components/p-14911a74.js +0 -1
- package/dist/mint-components/p-18bb324a.js +0 -1
- package/dist/mint-components/p-1e132e9b.entry.js +0 -1
- package/dist/mint-components/p-2a056bc0.entry.js +0 -1
- package/dist/mint-components/p-2b25d0d6.js +0 -1
- package/dist/mint-components/p-34bc2c5a.system.entry.js +0 -1
- package/dist/mint-components/p-35741c5c.system.js +0 -1
- package/dist/mint-components/p-3a621348.system.js +0 -1
- package/dist/mint-components/p-3a62e293.js +0 -1
- package/dist/mint-components/p-3a967b5d.system.entry.js +0 -1
- package/dist/mint-components/p-3da83662.system.entry.js +0 -1
- package/dist/mint-components/p-4198e94e.entry.js +0 -1
- package/dist/mint-components/p-43cdfe9b.system.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-4d31c11c.entry.js +0 -99
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-571835e1.system.entry.js +0 -1
- package/dist/mint-components/p-6611741a.entry.js +0 -1
- package/dist/mint-components/p-6c661f42.system.js +0 -1
- package/dist/mint-components/p-6ea95c5e.system.entry.js +0 -1
- package/dist/mint-components/p-7102315f.entry.js +0 -1
- package/dist/mint-components/p-8217d5a2.entry.js +0 -1
- package/dist/mint-components/p-85339263.entry.js +0 -1
- package/dist/mint-components/p-8be5d9f4.system.entry.js +0 -1
- package/dist/mint-components/p-8d17170f.system.js +0 -1
- package/dist/mint-components/p-963c56e6.system.entry.js +0 -1
- package/dist/mint-components/p-99389e40.entry.js +0 -9
- package/dist/mint-components/p-a0197667.entry.js +0 -1
- package/dist/mint-components/p-ba306ce6.system.entry.js +0 -1
- package/dist/mint-components/p-c2b5997d.entry.js +0 -1
- package/dist/mint-components/p-c38b22d6.entry.js +0 -1
- package/dist/mint-components/p-c3d728b0.system.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-cc330970.entry.js +0 -1
- package/dist/mint-components/p-cdabe7a8.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-e6c1a0a6.entry.js +0 -1
- package/dist/mint-components/p-e742d610.entry.js +0 -1
- package/dist/mint-components/p-f2e52e81.system.js +0 -1
- package/dist/mint-components/p-f7c85612.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,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
|
|
|
4
4
|
const sqmFormMessageCss = "sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";
|
|
5
5
|
|
|
@@ -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,11 +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-ebb08075.js';
|
|
9
10
|
|
|
10
11
|
var constants = {
|
|
11
12
|
error: {
|
|
@@ -483,27 +484,30 @@ const vanillaStyle = `
|
|
|
483
484
|
const sheet$1 = createStyleSheet(style$1);
|
|
484
485
|
const styleString$1 = sheet$1.toString();
|
|
485
486
|
function PortalResetPasswordView(props) {
|
|
486
|
-
var _a, _b;
|
|
487
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
487
488
|
const { states, callbacks } = props;
|
|
488
489
|
return (h("div", { class: sheet$1.classes.InputContainer },
|
|
489
490
|
h("style", { type: "text/css" },
|
|
490
491
|
vanillaStyle,
|
|
491
492
|
styleString$1),
|
|
492
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, validationError: ({ value }) => {
|
|
493
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, disabled: ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.loading) || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), validationError: ({ value }) => {
|
|
493
494
|
if (!value) {
|
|
494
495
|
return "Cannot be empty";
|
|
495
496
|
}
|
|
496
|
-
} }, (((
|
|
497
|
+
} }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.password) ? {
|
|
498
|
+
value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.password,
|
|
499
|
+
}
|
|
500
|
+
: {}), (((_g = states.validationErrors) === null || _g === void 0 ? void 0 : _g.password) ? {
|
|
497
501
|
class: sheet$1.classes.ErrorStyle,
|
|
498
|
-
helpText: ((
|
|
502
|
+
helpText: ((_h = states.validationErrors) === null || _h === void 0 ? void 0 : _h.password) || "Cannot be empty",
|
|
499
503
|
}
|
|
500
504
|
: []), { onInput: (input) => states.enableValidation && callbacks.onInput(input) })),
|
|
501
505
|
states.dynamicValidation));
|
|
502
506
|
}
|
|
503
507
|
|
|
504
|
-
const CONTEXT_NAME = "sq:validation-state";
|
|
505
508
|
function usePasswordField(props) {
|
|
506
|
-
const validationState = d(
|
|
509
|
+
const validationState = d(FORM_VALIDATION_CONTEXT);
|
|
510
|
+
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
507
511
|
const [dynamicValidation, setDynamicValidation] = useState("");
|
|
508
512
|
function onInput(input) {
|
|
509
513
|
const validation = validateNewPassword(input.target.value);
|
|
@@ -513,6 +517,7 @@ function usePasswordField(props) {
|
|
|
513
517
|
states: {
|
|
514
518
|
enableValidation: props.enableValidation,
|
|
515
519
|
dynamicValidation,
|
|
520
|
+
registrationFormState,
|
|
516
521
|
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
517
522
|
content: {
|
|
518
523
|
fieldLabel: props.fieldLabel,
|
|
@@ -543,7 +548,7 @@ const PortalPasswordField = class {
|
|
|
543
548
|
}
|
|
544
549
|
disconnectedCallback() { }
|
|
545
550
|
render() {
|
|
546
|
-
const { states, callbacks } =
|
|
551
|
+
const { states, callbacks } = isDemo()
|
|
547
552
|
? usePasswordFieldDemo(this)
|
|
548
553
|
: usePasswordField(this);
|
|
549
554
|
return h(PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
@@ -567,6 +572,7 @@ function usePasswordFieldDemo(props) {
|
|
|
567
572
|
enableValidation: true,
|
|
568
573
|
dynamicValidation,
|
|
569
574
|
validationErrors: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.validationErrors) || {},
|
|
575
|
+
registrationFormState: {},
|
|
570
576
|
content: {
|
|
571
577
|
fieldLabel: "Password",
|
|
572
578
|
},
|
|
@@ -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-878b75ff.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));
|