@saasquatch/mint-components 1.7.0-7 → 1.7.0-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/AsYouType-6788393a.js +3874 -0
- package/dist/cjs/{GenericTableView-6b0d1f93.js → GenericTableView-fa0cb936.js} +1 -1
- package/dist/cjs/{JSS-a75f3a9a.js → JSS-c73206b7.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-260da162.js → ShadowViewAddon-970dff24.js} +172 -194
- package/dist/cjs/{global-a7614907.js → global-97364373.js} +4 -4
- package/dist/cjs/{index.module-1c799b1f.js → index.module-d3a28293.js} +6887 -6843
- package/dist/cjs/loader.cjs.js +5 -6
- package/dist/cjs/{luxon-59ca7d19.js → luxon-479fc825.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -6
- package/dist/cjs/{re-render-c02c16c0.js → re-render-7b0c34bb.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-07420209.js → sqm-asset-card-view-7e16757a.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +6 -7
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +383 -4308
- package/dist/cjs/sqm-empty_5.cjs.entry.js +4 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -8
- package/dist/cjs/sqm-hamburger-menu.cjs.entry.js +160 -0
- package/dist/cjs/sqm-header-logo.cjs.entry.js +30 -0
- package/dist/cjs/{sqm-hero-view-d5d46a36.js → sqm-hero-view-f4264d5e.js} +3 -3
- package/dist/cjs/sqm-hero.cjs.entry.js +6 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-85e51ba6.js → sqm-navigation-sidebar-item-view-46a53c67.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -8
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +197 -6
- package/dist/cjs/sqm-password-field.cjs.entry.js +23 -20
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-a3e86fc2.js → sqm-portal-container-view-4a8432e9.js} +1 -3
- package/dist/cjs/{sqm-portal-email-verification-view-c60833cc.js → sqm-portal-email-verification-view-56d07e94.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +27 -29
- package/dist/cjs/{sqm-portal-footer-view-d5478077.js → sqm-portal-footer-view-cbd4cd48.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +16 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-97932f7a.js → sqm-portal-forgot-password-view-aaa8dd17.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +38 -28
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +10 -8
- package/dist/cjs/{sqm-portal-profile-view-a8ee44c2.js → sqm-portal-profile-view-9792a786.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +26 -37
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +14 -12
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +441 -0
- package/dist/cjs/{sqm-portal-reset-password-view-042073ca.js → sqm-portal-reset-password-view-035245e6.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +53 -60
- package/dist/cjs/{sqm-portal-section-view-765aae4d.js → sqm-portal-section-view-71a57cd9.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cb3c9c2f.js → sqm-portal-verify-email-view-7014ca89.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +36 -56
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +12 -13
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +32 -30
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +205 -250
- package/dist/cjs/sqm-tab.cjs.entry.js +7 -0
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-text-span-view-ab4ad6ef.js → sqm-text-span-view-b0c90c27.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -4
- 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-dc4c3132.js → useChildElements-24fbca82.js} +7 -5
- package/dist/cjs/{useReferralTable-f52c7f8e.js → useReferralTable-8f7a049c.js} +9 -9
- package/dist/cjs/useRegistrationFormState-3f88db90.js +14 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -144
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -3
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +2 -10
- package/dist/collection/components/sqm-brand/sqm-brand.js +13 -32
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -16
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +12 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +3 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +15 -9
- package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +12 -5
- package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +6 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +2 -4
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +40 -2
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +13 -6
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +6 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +11 -4
- package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +3 -3
- 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-hamburger-menu/HamburgerMenu.stories.js +7 -0
- package/dist/collection/components/sqm-hamburger-menu/sqm-hamburger-menu-view.js +139 -0
- package/dist/collection/components/sqm-hamburger-menu/sqm-hamburger-menu.js +45 -0
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +102 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +9 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +0 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -22
- package/dist/collection/components/sqm-image/sqm-image-view.js +0 -1
- package/dist/collection/components/sqm-image/sqm-image.js +1 -21
- package/dist/collection/components/sqm-input-field/InputField.stories.js +12 -5
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +10 -4
- package/dist/collection/components/sqm-input-field/useInputField.js +3 -3
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +8 -4
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +10 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +7 -4
- package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +6 -5
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +146 -7
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +36 -5
- package/dist/collection/components/sqm-navigation-sidebar/useNavigationSidebar.js +17 -0
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +7 -1
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +9 -3
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +8 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +15 -12
- package/dist/collection/components/sqm-password-field/usePasswordField.js +4 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +29 -23
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +0 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +3 -46
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +15 -7
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +38 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +68 -9
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +16 -16
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -7
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +29 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +58 -54
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +10 -4
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +26 -36
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +1 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +12 -11
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +5 -6
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +49 -45
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +41 -25
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +105 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +80 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +595 -0
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +207 -0
- 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 +39 -33
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +17 -9
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +20 -41
- 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 +1 -1
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +4 -20
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +0 -130
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +4 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +18 -15
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +2 -2
- package/dist/collection/components/sqm-share-code/useShareCode.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +9 -22
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +2 -125
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +2 -6
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -49
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +2 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -3
- package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +0 -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-timeline/sqm-timeline-entry-view.js +2 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -23
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +8 -8
- package/dist/collection/global/styles.js +1 -1
- package/dist/collection/global/styles.ts +1 -1
- package/dist/collection/stories/NewPortal.stories.js +6 -5
- package/dist/collection/tables/useChildElements.js +5 -3
- package/dist/esm/AsYouType-46f67d0d.js +3872 -0
- package/dist/esm/{GenericTableView-80119630.js → GenericTableView-5dd51546.js} +1 -1
- package/dist/esm/{JSS-418cab16.js → JSS-506b9295.js} +17 -1
- package/dist/esm/{ShadowViewAddon-b2386d47.js → ShadowViewAddon-f0daae38.js} +172 -194
- package/dist/esm/{global-2d97b8c1.js → global-5f5e66ae.js} +4 -4
- package/dist/esm/{index.module-2b4f1755.js → index.module-877f3231.js} +6865 -6822
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{luxon-578505e2.js → luxon-5a398612.js} +1 -1
- package/dist/esm/mint-components.js +5 -6
- package/dist/esm/{re-render-2c1d8030.js → re-render-9d31cb93.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +6 -7
- package/dist/esm/sqm-big-stat_35.entry.js +383 -4308
- package/dist/esm/sqm-empty_5.entry.js +4 -6
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -8
- package/dist/esm/sqm-hamburger-menu.entry.js +156 -0
- package/dist/esm/sqm-header-logo.entry.js +26 -0
- package/dist/esm/{sqm-hero-view-1f148798.js → sqm-hero-view-ed7fa8f3.js} +3 -3
- package/dist/esm/sqm-hero.entry.js +6 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-b22b07a2.js → sqm-navigation-sidebar-item-view-393c5475.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -8
- package/dist/esm/sqm-navigation-sidebar.entry.js +199 -8
- package/dist/esm/sqm-password-field.entry.js +23 -20
- package/dist/esm/sqm-popup-container.entry.js +6 -7
- package/dist/esm/{sqm-portal-container-view-5d6f1411.js → sqm-portal-container-view-8f1bcc77.js} +1 -3
- package/dist/esm/{sqm-portal-email-verification-view-3dad1010.js → sqm-portal-email-verification-view-96f98975.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +27 -29
- package/dist/esm/{sqm-portal-footer-view-c35314a2.js → sqm-portal-footer-view-744654ef.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +16 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +38 -28
- package/dist/esm/sqm-portal-logout.entry.js +10 -8
- package/dist/esm/{sqm-portal-profile-view-3d621db8.js → sqm-portal-profile-view-f5904a10.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +26 -37
- package/dist/esm/sqm-portal-protected-route.entry.js +14 -12
- package/dist/esm/sqm-portal-registration-form.entry.js +437 -0
- package/dist/esm/{sqm-portal-reset-password-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +53 -60
- package/dist/esm/{sqm-portal-section-view-c8d1c727.js → sqm-portal-section-view-d64cd5de.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +36 -56
- package/dist/esm/sqm-referral-table_11.entry.js +12 -13
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +32 -30
- package/dist/esm/sqm-stencilbook.entry.js +205 -250
- package/dist/esm/sqm-tab.entry.js +7 -0
- package/dist/esm/sqm-tabs.entry.js +8 -7
- package/dist/esm/{sqm-text-span-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -4
- package/dist/esm/{stencil-hooks.module-e39af977.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm/{use-callback-697e2ff0.js → use-callback-684c8bb7.js} +1 -1
- package/dist/esm/{useChildElements-0eab9c95.js → useChildElements-591435be.js} +7 -5
- package/dist/esm/{useReferralTable-3513622d.js → useReferralTable-f991c78a.js} +9 -9
- package/dist/esm/useRegistrationFormState-04a77cee.js +11 -0
- package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
- package/dist/esm-es5/{GenericTableView-80119630.js → GenericTableView-5dd51546.js} +1 -1
- package/dist/esm-es5/{JSS-418cab16.js → JSS-506b9295.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-f0daae38.js +1 -0
- package/dist/esm-es5/{global-2d97b8c1.js → global-5f5e66ae.js} +2 -2
- package/dist/esm-es5/index.module-877f3231.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-578505e2.js → luxon-5a398612.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-2c1d8030.js → re-render-9d31cb93.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-68f80b85.js → sqm-asset-card-view-de0f3463.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-hamburger-menu.entry.js +1 -0
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -0
- package/dist/esm-es5/{sqm-hero-view-1f148798.js → sqm-hero-view-ed7fa8f3.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-b22b07a2.js → sqm-navigation-sidebar-item-view-393c5475.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-container-view-8f1bcc77.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-3dad1010.js → sqm-portal-email-verification-view-96f98975.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-c35314a2.js → sqm-portal-footer-view-744654ef.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7239087.js → sqm-portal-forgot-password-view-38910bc9.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-3d621db8.js → sqm-portal-profile-view-f5904a10.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 -0
- package/dist/esm-es5/{sqm-portal-reset-password-view-e0436989.js → sqm-portal-reset-password-view-55411ca5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-section-view-d64cd5de.js +1 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-c489166b.js → sqm-portal-verify-email-view-7ba350f9.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-view-020db63f.js → sqm-text-span-view-20c0f018.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-e39af977.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
- package/dist/esm-es5/useChildElements-591435be.js +1 -0
- package/dist/esm-es5/useReferralTable-f991c78a.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-04a77cee.js +1 -0
- package/dist/mint-components/global/styles.ts +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00732eb1.entry.js +1 -0
- package/dist/mint-components/p-0222e8b1.system.js +1 -0
- package/dist/mint-components/p-03b1dda6.js +1 -0
- package/dist/mint-components/p-0571ac6b.system.entry.js +1 -0
- package/dist/mint-components/p-0878d563.system.entry.js +1 -0
- package/dist/mint-components/p-095d7d5e.entry.js +1 -0
- package/dist/mint-components/p-09a4bd9b.system.entry.js +1 -0
- package/dist/mint-components/{p-ec634002.system.entry.js → p-0a27f867.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8452e47.entry.js → p-0b85f581.entry.js} +1 -1
- package/dist/mint-components/{p-be4cfea0.system.js → p-0bf5d514.system.js} +1 -1
- package/dist/mint-components/p-0f1fc54b.entry.js +1 -0
- package/dist/mint-components/p-121cdc60.js +1 -0
- package/dist/mint-components/{p-fb5163d7.js → p-14aacddf.js} +1 -1
- package/dist/mint-components/{p-0935fef5.system.js → p-1c87be0c.system.js} +1 -1
- package/dist/mint-components/{p-a1b9ca51.system.js → p-1cc7a8e6.system.js} +1 -1
- package/dist/mint-components/p-1e541014.system.entry.js +1 -0
- package/dist/mint-components/{p-ab2cbd56.js → p-1fbf8d0b.js} +1 -1
- package/dist/mint-components/{p-aa0ccc8d.js → p-2506531b.js} +1 -1
- package/dist/mint-components/p-2a33de60.entry.js +13 -0
- package/dist/mint-components/p-2c4c978e.system.entry.js +1 -0
- package/dist/mint-components/{p-903a6d4d.js → p-2dc6e74c.js} +1 -1
- package/dist/mint-components/{p-5fca1bb9.system.js → p-330680dd.system.js} +1 -1
- package/dist/mint-components/p-3ac7063d.entry.js +1 -0
- package/dist/mint-components/p-3af0caba.entry.js +159 -0
- package/dist/mint-components/p-3b7d870e.entry.js +1 -0
- package/dist/mint-components/p-3bb4fd18.system.js +8 -0
- package/dist/mint-components/p-3bb76558.system.js +1 -0
- package/dist/mint-components/{p-c8c83a9e.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
- package/dist/mint-components/{p-967445d6.system.js → p-3f13dae9.system.js} +1 -1
- package/dist/mint-components/p-41860440.system.entry.js +1 -0
- package/dist/mint-components/{p-541460a6.js → p-4494b612.js} +2 -2
- package/dist/mint-components/p-456571a6.entry.js +9 -0
- package/dist/mint-components/p-46a2d411.system.js +1 -0
- package/dist/mint-components/p-4708ece8.system.js +1 -0
- package/dist/mint-components/{p-38889f3c.system.js → p-48631971.system.js} +1 -1
- package/dist/mint-components/p-4a165275.entry.js +99 -0
- package/dist/mint-components/p-4f0a49e2.system.entry.js +1 -0
- package/dist/mint-components/{p-894cf728.system.js → p-51fc3d02.system.js} +1 -1
- package/dist/mint-components/{p-30b3592f.js → p-538904bd.js} +1 -1
- package/dist/mint-components/p-5711de63.system.js +1 -0
- package/dist/mint-components/p-5934c4ab.entry.js +1 -0
- package/dist/mint-components/{p-e8f5f4e0.js → p-5a1ed9bb.js} +1 -1
- package/dist/mint-components/{p-937bf427.system.js → p-621a2912.system.js} +1 -1
- package/dist/mint-components/p-628437e6.entry.js +1 -0
- package/dist/mint-components/{p-97483814.system.entry.js → p-647256a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-4519c6d9.system.js → p-684aadb5.system.js} +1 -1
- package/dist/mint-components/p-6afbdcf9.entry.js +1 -0
- package/dist/mint-components/p-6b468f72.system.entry.js +1 -0
- package/dist/mint-components/p-6cf00931.system.entry.js +1 -0
- package/dist/mint-components/p-6cf891f8.system.entry.js +1 -0
- package/dist/mint-components/p-7341c340.entry.js +1 -0
- package/dist/mint-components/p-740afefb.entry.js +1 -0
- package/dist/mint-components/p-76767c7d.system.entry.js +1 -0
- package/dist/mint-components/p-767aedc8.entry.js +1 -0
- package/dist/mint-components/{p-72b3562a.system.js → p-774c9bb9.system.js} +1 -1
- package/dist/mint-components/p-7fa5ce30.system.js +1 -0
- package/dist/mint-components/{p-25846611.js → p-80934ab7.js} +2 -2
- package/dist/mint-components/{p-6081728e.system.js → p-8128c64d.system.js} +1 -1
- package/dist/mint-components/p-848cd7ea.system.entry.js +1 -0
- package/dist/mint-components/{p-6e0c7f7c.system.js → p-85528bea.system.js} +1 -1
- package/dist/mint-components/p-85a21d7b.entry.js +1 -0
- package/dist/mint-components/p-85e934c8.js +1 -0
- package/dist/mint-components/{p-46416f3e.js → p-864be7c2.js} +1 -1
- package/dist/mint-components/p-88cc585a.system.entry.js +1 -0
- package/dist/mint-components/{p-48a1e759.entry.js → p-8a2c78e0.entry.js} +1 -1
- package/dist/mint-components/p-9124a1e9.system.entry.js +1 -0
- package/dist/mint-components/p-919b93f1.js +1 -0
- package/dist/mint-components/p-92e8439a.system.entry.js +1 -0
- package/dist/mint-components/p-99397ef5.system.js +1 -0
- package/dist/mint-components/p-9c1841c6.entry.js +1 -0
- package/dist/mint-components/p-9d362d44.system.js +1 -0
- package/dist/mint-components/{p-066a4b23.system.js → p-9db19ba0.system.js} +2 -2
- package/dist/mint-components/p-9fd08e41.js +1 -0
- package/dist/mint-components/p-a91c1995.entry.js +1 -0
- package/dist/mint-components/p-af10beae.entry.js +33 -0
- package/dist/mint-components/p-b3436fd3.system.entry.js +1 -0
- package/dist/mint-components/p-b3610b44.entry.js +1 -0
- package/dist/mint-components/p-b9b4142b.js +268 -0
- package/dist/mint-components/p-be126e55.system.entry.js +1 -0
- package/dist/mint-components/{p-8763472e.js → p-bf4cd488.js} +1 -1
- package/dist/mint-components/p-c2c92ece.entry.js +1 -0
- package/dist/mint-components/p-c4b5c3b0.entry.js +1 -0
- package/dist/mint-components/p-c52e21cf.entry.js +1 -0
- package/dist/mint-components/p-c53322f8.system.entry.js +1 -0
- package/dist/mint-components/p-c586b1bb.entry.js +1 -0
- package/dist/mint-components/p-c5b1e781.system.entry.js +1 -0
- package/dist/mint-components/{p-edb569b8.js → p-cecf6365.js} +1 -1
- package/dist/mint-components/{p-190d0446.system.js → p-d1242e79.system.js} +1 -1
- package/dist/mint-components/p-d1341773.entry.js +1 -0
- package/dist/mint-components/{p-dc7b06ef.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-d5645202.entry.js +1 -0
- package/dist/mint-components/p-d873d405.system.entry.js +1 -0
- package/dist/mint-components/p-dbfb865e.js +1 -0
- package/dist/mint-components/{p-6fd0198e.js → p-ddadc8e3.js} +1 -1
- package/dist/mint-components/p-df0899d3.entry.js +1 -0
- package/dist/mint-components/p-e3290be6.js +1 -0
- package/dist/mint-components/{p-54694cd4.system.js → p-e6b17831.system.js} +1 -1
- package/dist/mint-components/p-e71c3590.system.entry.js +1 -0
- package/dist/mint-components/{p-916a8f50.js → p-e733843b.js} +1 -1
- package/dist/mint-components/p-ea7ba030.system.entry.js +1 -0
- package/dist/mint-components/p-ec7e6d40.entry.js +1 -0
- package/dist/mint-components/p-eccd7d60.system.entry.js +1 -0
- package/dist/mint-components/p-ef147f86.system.entry.js +1 -0
- package/dist/mint-components/p-ef39ca69.system.entry.js +1 -0
- package/dist/mint-components/{p-9f08dc58.js → p-f30000d4.js} +1 -1
- package/dist/mint-components/p-f3a65df7.js +1 -0
- package/dist/mint-components/p-f6aa512e.system.js +1 -0
- package/dist/mint-components/p-fd14c63e.js +1 -0
- package/dist/mint-components/p-fdb3c23e.system.entry.js +1 -0
- package/dist/mint-components/p-fe74b75b.system.entry.js +1 -0
- package/dist/mint-components/{p-380b25a3.js → p-ff39746d.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -25
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +1 -6
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +7 -2
- package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +4 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +9 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +7 -1
- package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +2 -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-hamburger-menu/HamburgerMenu.stories.d.ts +5 -0
- package/dist/types/components/sqm-hamburger-menu/sqm-hamburger-menu-view.d.ts +6 -0
- package/dist/types/components/sqm-hamburger-menu/sqm-hamburger-menu.d.ts +11 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +25 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +3 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -7
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -6
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +6 -2
- package/dist/types/components/sqm-input-field/useInputField.d.ts +2 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -2
- 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 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +2 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +3 -3
- package/dist/types/components/sqm-navigation-sidebar/useNavigationSidebar.d.ts +4 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +5 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +2 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +9 -5
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -7
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +3 -13
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +5 -3
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +10 -2
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +16 -5
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +6 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +18 -26
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +5 -2
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +6 -16
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +1 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +8 -4
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +19 -19
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +2 -1
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +37 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +118 -0
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +27 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +19 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +13 -13
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +7 -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 +1 -1
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +0 -6
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +0 -28
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +2 -2
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -5
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -28
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -10
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -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-timeline/sqm-timeline-entry-view.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -5
- 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 +4 -4
- package/dist/types/components.d.ts +556 -1002
- 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 +3 -3
- package/CHANGELOG.md +0 -473
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/cjs/sqm-navigation-sidebar-view-0ee28f65.js +0 -36
- 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 -117
- package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
- package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1064
- 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/extends-c31f1eff.js +0 -19
- package/dist/esm/sqm-navigation-sidebar-view-9cb9a5f4.js +0 -34
- 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 -113
- package/dist/esm-es5/ShadowViewAddon-b2386d47.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-2b4f1755.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9cb9a5f4.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-5d6f1411.js +0 -1
- package/dist/esm-es5/sqm-portal-section-view-c8d1c727.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-697e2ff0.js +0 -1
- package/dist/esm-es5/useChildElements-0eab9c95.js +0 -1
- package/dist/esm-es5/useReferralTable-3513622d.js +0 -1
- package/dist/mint-components/p-03d5b192.entry.js +0 -159
- package/dist/mint-components/p-0ec3b3e5.system.js +0 -1
- package/dist/mint-components/p-127e25e6.system.entry.js +0 -1
- package/dist/mint-components/p-13f034ac.system.js +0 -1
- package/dist/mint-components/p-15b1a2b2.system.entry.js +0 -1
- package/dist/mint-components/p-16b6aea4.js +0 -1
- package/dist/mint-components/p-174767c7.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1e13c65a.system.entry.js +0 -1
- package/dist/mint-components/p-242d76ee.system.entry.js +0 -1
- package/dist/mint-components/p-24f8c2f6.entry.js +0 -1
- package/dist/mint-components/p-2800ad44.system.js +0 -8
- package/dist/mint-components/p-3149462a.system.entry.js +0 -1
- package/dist/mint-components/p-353a6419.system.js +0 -1
- package/dist/mint-components/p-36578b9f.system.entry.js +0 -1
- package/dist/mint-components/p-3894495a.js +0 -1
- package/dist/mint-components/p-39c637da.system.entry.js +0 -1
- package/dist/mint-components/p-408f983a.system.js +0 -1
- package/dist/mint-components/p-4647ef97.entry.js +0 -1
- package/dist/mint-components/p-46ab109e.system.entry.js +0 -1
- package/dist/mint-components/p-4d4fbaec.entry.js +0 -1
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-50ef8db6.system.entry.js +0 -1
- package/dist/mint-components/p-54bad89f.system.entry.js +0 -1
- package/dist/mint-components/p-555c9e1d.system.entry.js +0 -1
- package/dist/mint-components/p-59d481ea.entry.js +0 -1
- package/dist/mint-components/p-5c454d18.entry.js +0 -1
- package/dist/mint-components/p-5dd4dcc7.system.entry.js +0 -1
- package/dist/mint-components/p-6073e2f7.entry.js +0 -1
- package/dist/mint-components/p-60e2423f.entry.js +0 -1
- package/dist/mint-components/p-63617b4b.system.entry.js +0 -1
- package/dist/mint-components/p-6505fca3.system.entry.js +0 -1
- package/dist/mint-components/p-673a731f.entry.js +0 -1
- package/dist/mint-components/p-684967e6.entry.js +0 -1
- package/dist/mint-components/p-6882941e.system.entry.js +0 -1
- package/dist/mint-components/p-6e2ca2a0.js +0 -1
- package/dist/mint-components/p-6fc2fea4.entry.js +0 -1
- package/dist/mint-components/p-7473b40b.system.entry.js +0 -1
- package/dist/mint-components/p-77e5a1d4.entry.js +0 -1
- package/dist/mint-components/p-7d2d6a2b.system.js +0 -1
- package/dist/mint-components/p-7fd6f6ef.system.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-86fcb500.system.entry.js +0 -1
- package/dist/mint-components/p-889dbba5.entry.js +0 -1
- package/dist/mint-components/p-8d445a96.entry.js +0 -1
- package/dist/mint-components/p-96b0537b.system.js +0 -1
- package/dist/mint-components/p-9744ae44.system.js +0 -1
- package/dist/mint-components/p-991d3c0c.system.entry.js +0 -1
- package/dist/mint-components/p-9f54769f.system.entry.js +0 -1
- package/dist/mint-components/p-9f5e7313.entry.js +0 -33
- package/dist/mint-components/p-a73784bb.entry.js +0 -1
- package/dist/mint-components/p-ab8f86d3.js +0 -1
- package/dist/mint-components/p-ac80106e.entry.js +0 -1
- package/dist/mint-components/p-b3fa7c87.entry.js +0 -1
- package/dist/mint-components/p-bbb584e6.system.entry.js +0 -1
- package/dist/mint-components/p-be45347d.entry.js +0 -1
- package/dist/mint-components/p-bed4977e.entry.js +0 -1
- package/dist/mint-components/p-bf29e206.system.entry.js +0 -1
- package/dist/mint-components/p-c469be65.entry.js +0 -9
- package/dist/mint-components/p-c5573b7c.js +0 -1
- package/dist/mint-components/p-c81305b3.js +0 -268
- package/dist/mint-components/p-ccbacc32.entry.js +0 -1
- package/dist/mint-components/p-cee807de.system.entry.js +0 -1
- package/dist/mint-components/p-cf7d0aee.js +0 -1
- package/dist/mint-components/p-d298e4c5.system.entry.js +0 -1
- package/dist/mint-components/p-d30d1664.system.entry.js +0 -1
- package/dist/mint-components/p-d9488d28.entry.js +0 -1
- package/dist/mint-components/p-dc564561.js +0 -1
- package/dist/mint-components/p-dec7a657.entry.js +0 -1
- package/dist/mint-components/p-e4f4bfbb.entry.js +0 -1
- package/dist/mint-components/p-eb2f96a0.system.js +0 -1
- package/dist/mint-components/p-ec5b69bd.system.entry.js +0 -1
- package/dist/mint-components/p-ee461c80.js +0 -1
- package/dist/mint-components/p-f33e65c8.entry.js +0 -1
- package/dist/mint-components/p-f55d96ad.entry.js +0 -99
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -18
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -255
- 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
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import jsonpointer from "jsonpointer";
|
|
2
|
+
import { useCallback, useEffect, useRef } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { navigation, useQuery, useRegisterViaRegistrationFormMutation, } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { AsYouType } from "libphonenumber-js";
|
|
5
|
+
import { gql } from "graphql-request";
|
|
6
|
+
import { useRegistrationFormState, } from "./useRegistrationFormState";
|
|
7
|
+
const RegistrationFormQuery = gql `
|
|
8
|
+
query RegistrationFormQuery($key: String!) {
|
|
9
|
+
form(key: $key) {
|
|
10
|
+
key
|
|
11
|
+
type
|
|
12
|
+
initialData {
|
|
13
|
+
initialData
|
|
14
|
+
isEnabled
|
|
15
|
+
isEnabledErrorMessage
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
export function usePortalRegistrationForm(props) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
22
|
+
const formRef = useRef(null);
|
|
23
|
+
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
24
|
+
const [request, { loading, errors, data, formError }] = useRegisterViaRegistrationFormMutation();
|
|
25
|
+
const queryResponse = useQuery(RegistrationFormQuery, { key: props.formKey });
|
|
26
|
+
const formLoading = loading || queryResponse.loading;
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
var _a, _b, _c;
|
|
29
|
+
const initialData = (_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData.initialData;
|
|
30
|
+
const disabled = ((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false;
|
|
31
|
+
const disabledMessage = ((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
32
|
+
props.formDisabledErrorMessage;
|
|
33
|
+
const formState = {
|
|
34
|
+
loading: formLoading,
|
|
35
|
+
disabled,
|
|
36
|
+
disabledMessage,
|
|
37
|
+
initialData,
|
|
38
|
+
};
|
|
39
|
+
setRegistrationFormState(formState);
|
|
40
|
+
}, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!formRef.current)
|
|
43
|
+
return;
|
|
44
|
+
const form = formRef.current;
|
|
45
|
+
form.addEventListener("sl-input", inputFunction);
|
|
46
|
+
return () => {
|
|
47
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
48
|
+
};
|
|
49
|
+
}, [formRef.current]);
|
|
50
|
+
const submit = async (event) => {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
52
|
+
let formControls = event.target.getFormControls();
|
|
53
|
+
let formData = {};
|
|
54
|
+
let validationErrors = {};
|
|
55
|
+
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
56
|
+
if (!control.name)
|
|
57
|
+
return;
|
|
58
|
+
const key = control.name;
|
|
59
|
+
const value = control.value;
|
|
60
|
+
// control.value = initialData[key] || control.value;
|
|
61
|
+
jsonpointer.set(formData, key, value);
|
|
62
|
+
// required validation
|
|
63
|
+
if (control.required && !value) {
|
|
64
|
+
jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
65
|
+
}
|
|
66
|
+
// custom validation
|
|
67
|
+
if (typeof control.validationError === "function") {
|
|
68
|
+
const validate = control.validationError;
|
|
69
|
+
const validationError = validate({ control, key, value });
|
|
70
|
+
if (validationError)
|
|
71
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
if ((props.confirmPassword || formData.confirmPassword) &&
|
|
75
|
+
formData.password !== formData.confirmPassword) {
|
|
76
|
+
validationErrors = {
|
|
77
|
+
...validationErrors,
|
|
78
|
+
confirmPassword: props.passwordMismatchErrorMessage,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
if (Object.keys(validationErrors).length) {
|
|
82
|
+
// early return for validation errors
|
|
83
|
+
setRegistrationFormState({
|
|
84
|
+
...registrationFormState,
|
|
85
|
+
loading: false,
|
|
86
|
+
error: "",
|
|
87
|
+
validationErrors,
|
|
88
|
+
});
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
setRegistrationFormState({
|
|
92
|
+
...registrationFormState,
|
|
93
|
+
loading: true,
|
|
94
|
+
error: "",
|
|
95
|
+
validationErrors: {},
|
|
96
|
+
});
|
|
97
|
+
const { email, password } = formData;
|
|
98
|
+
delete formData.email;
|
|
99
|
+
delete formData.password;
|
|
100
|
+
delete formData.confirmPassword;
|
|
101
|
+
const redirectPath = props.redirectPath;
|
|
102
|
+
const variables = {
|
|
103
|
+
key: props.formKey,
|
|
104
|
+
formData: {
|
|
105
|
+
email,
|
|
106
|
+
password,
|
|
107
|
+
redirectPath,
|
|
108
|
+
...formData,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
try {
|
|
112
|
+
const result = await request(variables);
|
|
113
|
+
if (result instanceof Error) {
|
|
114
|
+
throw result;
|
|
115
|
+
}
|
|
116
|
+
setRegistrationFormState({
|
|
117
|
+
...registrationFormState,
|
|
118
|
+
loading: false,
|
|
119
|
+
error: "",
|
|
120
|
+
validationErrors: {},
|
|
121
|
+
});
|
|
122
|
+
const managedIdentityResponse = (_a = result.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => { var _a; return ((_a = result === null || result === void 0 ? void 0 : result.formHandler) === null || _a === void 0 ? void 0 : _a.namespace) === "identity"; });
|
|
123
|
+
if (managedIdentityResponse &&
|
|
124
|
+
managedIdentityResponse.result.results.length &&
|
|
125
|
+
managedIdentityResponse.result.results[0].success &&
|
|
126
|
+
managedIdentityResponse.result.results[0].data.token) {
|
|
127
|
+
navigation.push(props.nextPage);
|
|
128
|
+
}
|
|
129
|
+
else if (
|
|
130
|
+
// check for blocked email error response
|
|
131
|
+
((_b = result.submitForm) === null || _b === void 0 ? void 0 : _b.results.length) === 1 &&
|
|
132
|
+
((_f = (_e = (_d = (_c = result.submitForm) === null || _c === void 0 ? void 0 : _c.results[0]) === null || _d === void 0 ? void 0 : _d.result) === null || _e === void 0 ? void 0 : _e.results) === null || _f === void 0 ? void 0 : _f.length) === 1 &&
|
|
133
|
+
((_l = (_k = (_j = (_h = (_g = result.submitForm) === null || _g === void 0 ? void 0 : _g.results[0]) === null || _h === void 0 ? void 0 : _h.result) === null || _j === void 0 ? void 0 : _j.results) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.success) ===
|
|
134
|
+
false && ((_s = (_r = (_q = (_p = (_o = (_m = result.submitForm) === null || _m === void 0 ? void 0 : _m.results[0]) === null || _o === void 0 ? void 0 : _o.result) === null || _p === void 0 ? void 0 : _p.results) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) === null || _s === void 0 ? void 0 : _s.startsWith("Blocked email"))) {
|
|
135
|
+
setRegistrationFormState({
|
|
136
|
+
...registrationFormState,
|
|
137
|
+
loading: false,
|
|
138
|
+
error: "",
|
|
139
|
+
validationErrors: {
|
|
140
|
+
email: props.invalidEmailErrorMessage,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
// check for invalid email
|
|
147
|
+
if ((_t = error === null || error === void 0 ? void 0 : error.message) === null || _t === void 0 ? void 0 : _t.includes("is not a valid email address")) {
|
|
148
|
+
setRegistrationFormState({
|
|
149
|
+
...registrationFormState,
|
|
150
|
+
loading: false,
|
|
151
|
+
error: "",
|
|
152
|
+
validationErrors: { email: props.invalidEmailErrorMessage },
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
setRegistrationFormState({
|
|
157
|
+
...registrationFormState,
|
|
158
|
+
loading: false,
|
|
159
|
+
error: props.networkErrorMessage,
|
|
160
|
+
validationErrors: {},
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const inputFunction = useCallback((e) => {
|
|
166
|
+
var _a, _b;
|
|
167
|
+
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
168
|
+
if (name !== "tel")
|
|
169
|
+
return;
|
|
170
|
+
const asYouType = new AsYouType("US");
|
|
171
|
+
e.target.value = asYouType.input(e.target.value);
|
|
172
|
+
}, []);
|
|
173
|
+
let errorMessage = "";
|
|
174
|
+
if (((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false) {
|
|
175
|
+
errorMessage =
|
|
176
|
+
((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
|
|
177
|
+
props.formDisabledErrorMessage;
|
|
178
|
+
}
|
|
179
|
+
else if ((_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d["error"]) {
|
|
180
|
+
errorMessage = props.networkErrorMessage;
|
|
181
|
+
}
|
|
182
|
+
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors.length)) {
|
|
183
|
+
errorMessage = props.networkErrorMessage;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
errorMessage =
|
|
187
|
+
formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
states: {
|
|
191
|
+
loading: loading || queryResponse.loading,
|
|
192
|
+
error: errorMessage,
|
|
193
|
+
registrationFormState,
|
|
194
|
+
confirmPassword: props.confirmPassword,
|
|
195
|
+
hideInputs: props.hideInputs,
|
|
196
|
+
loginPath: props.loginPath,
|
|
197
|
+
enablePasswordValidation: !props.disablePasswordValidation,
|
|
198
|
+
},
|
|
199
|
+
callbacks: {
|
|
200
|
+
submit,
|
|
201
|
+
inputFunction,
|
|
202
|
+
},
|
|
203
|
+
refs: {
|
|
204
|
+
formRef,
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useHost } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useDomContextState } from "@saasquatch/dom-context-hooks";
|
|
3
|
+
export const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
4
|
+
export function useRegistrationFormState(formState) {
|
|
5
|
+
const host = useHost();
|
|
6
|
+
const [registrationFormState, setRegistrationFormState] = useDomContextState(host, REGISTRATION_FORM_STATE_CONTEXT, formState);
|
|
7
|
+
return { registrationFormState, setRegistrationFormState };
|
|
8
|
+
}
|
|
@@ -5,28 +5,27 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { PortalResetPasswordView, } from "./sqm-portal-reset-password-view";
|
|
6
6
|
import { usePortalResetPassword } from "./usePortalResetPassword";
|
|
7
7
|
/**
|
|
8
|
-
* @uiName
|
|
8
|
+
* @uiName Microsite Reset Password
|
|
9
9
|
*/
|
|
10
10
|
export class PortalResetPassword {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Redirect participants to this page when they successfully reset their password.
|
|
15
15
|
*
|
|
16
|
-
* @uiName
|
|
16
|
+
* @uiName Successful Reset Redirect
|
|
17
|
+
* @uiWidget pageSelect
|
|
17
18
|
*/
|
|
18
19
|
this.nextPage = "/";
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Redirect participants to this page if password reset fails due to an outdated reset attempt.
|
|
21
22
|
*
|
|
22
|
-
* @uiName Failed
|
|
23
|
+
* @uiName Failed Reset Redirect
|
|
24
|
+
* @uiWidget pageSelect
|
|
23
25
|
*/
|
|
24
26
|
this.failedPage = "/";
|
|
25
27
|
/**
|
|
26
|
-
* Show
|
|
27
|
-
*
|
|
28
|
-
* @uiName Show Confirm Password
|
|
29
|
-
* @default
|
|
28
|
+
* @uiName Show Confirm Password Field
|
|
30
29
|
*/
|
|
31
30
|
this.confirmPassword = false;
|
|
32
31
|
/**
|
|
@@ -34,9 +33,10 @@ export class PortalResetPassword {
|
|
|
34
33
|
*/
|
|
35
34
|
this.resetPasswordHeader = "Reset your password";
|
|
36
35
|
/**
|
|
37
|
-
* Displayed after a successful password reset
|
|
36
|
+
* Displayed after a successful password reset.
|
|
38
37
|
*
|
|
39
38
|
* @uiName Successful Password Reset Text
|
|
39
|
+
* @uiWidget textArea
|
|
40
40
|
*/
|
|
41
41
|
this.passwordResetHeader = "Password reset";
|
|
42
42
|
/**
|
|
@@ -44,17 +44,17 @@ export class PortalResetPassword {
|
|
|
44
44
|
*/
|
|
45
45
|
this.resetPasswordButtonText = "Reset Password";
|
|
46
46
|
/**
|
|
47
|
-
* Button text displayed after a successful password reset
|
|
47
|
+
* Button text displayed after a successful password reset.
|
|
48
48
|
*
|
|
49
49
|
* @uiName Continue Button Text
|
|
50
50
|
*/
|
|
51
51
|
this.continueButtonText = "Continue";
|
|
52
52
|
/**
|
|
53
|
-
* @uiName
|
|
53
|
+
* @uiName Password Confirmation Field Label
|
|
54
54
|
*/
|
|
55
55
|
this.confirmPasswordFieldLabel = "Confirm Password";
|
|
56
56
|
/**
|
|
57
|
-
* @uiName Password Label
|
|
57
|
+
* @uiName Password Field Label
|
|
58
58
|
*/
|
|
59
59
|
this.passwordFieldLabel = "New Password";
|
|
60
60
|
withHooks(this);
|
|
@@ -81,10 +81,13 @@ export class PortalResetPassword {
|
|
|
81
81
|
"optional": false,
|
|
82
82
|
"docs": {
|
|
83
83
|
"tags": [{
|
|
84
|
-
"text": "
|
|
84
|
+
"text": "Successful Reset Redirect",
|
|
85
85
|
"name": "uiName"
|
|
86
|
+
}, {
|
|
87
|
+
"text": "pageSelect",
|
|
88
|
+
"name": "uiWidget"
|
|
86
89
|
}],
|
|
87
|
-
"text": "
|
|
90
|
+
"text": "Redirect participants to this page when they successfully reset their password."
|
|
88
91
|
},
|
|
89
92
|
"attribute": "next-page",
|
|
90
93
|
"reflect": false,
|
|
@@ -102,10 +105,13 @@ export class PortalResetPassword {
|
|
|
102
105
|
"optional": false,
|
|
103
106
|
"docs": {
|
|
104
107
|
"tags": [{
|
|
105
|
-
"text": "Failed
|
|
108
|
+
"text": "Failed Reset Redirect",
|
|
106
109
|
"name": "uiName"
|
|
110
|
+
}, {
|
|
111
|
+
"text": "pageSelect",
|
|
112
|
+
"name": "uiWidget"
|
|
107
113
|
}],
|
|
108
|
-
"text": "
|
|
114
|
+
"text": "Redirect participants to this page if password reset fails due to an outdated reset attempt."
|
|
109
115
|
},
|
|
110
116
|
"attribute": "failed-page",
|
|
111
117
|
"reflect": false,
|
|
@@ -123,13 +129,10 @@ export class PortalResetPassword {
|
|
|
123
129
|
"optional": false,
|
|
124
130
|
"docs": {
|
|
125
131
|
"tags": [{
|
|
126
|
-
"text": "Show Confirm Password",
|
|
132
|
+
"text": "Show Confirm Password Field",
|
|
127
133
|
"name": "uiName"
|
|
128
|
-
}, {
|
|
129
|
-
"text": undefined,
|
|
130
|
-
"name": "default"
|
|
131
134
|
}],
|
|
132
|
-
"text": "
|
|
135
|
+
"text": ""
|
|
133
136
|
},
|
|
134
137
|
"attribute": "confirm-password",
|
|
135
138
|
"reflect": false,
|
|
@@ -170,8 +173,11 @@ export class PortalResetPassword {
|
|
|
170
173
|
"tags": [{
|
|
171
174
|
"text": "Successful Password Reset Text",
|
|
172
175
|
"name": "uiName"
|
|
176
|
+
}, {
|
|
177
|
+
"text": "textArea",
|
|
178
|
+
"name": "uiWidget"
|
|
173
179
|
}],
|
|
174
|
-
"text": "Displayed after a successful password reset"
|
|
180
|
+
"text": "Displayed after a successful password reset."
|
|
175
181
|
},
|
|
176
182
|
"attribute": "password-reset-header",
|
|
177
183
|
"reflect": false,
|
|
@@ -213,7 +219,7 @@ export class PortalResetPassword {
|
|
|
213
219
|
"text": "Continue Button Text",
|
|
214
220
|
"name": "uiName"
|
|
215
221
|
}],
|
|
216
|
-
"text": "Button text displayed after a successful password reset"
|
|
222
|
+
"text": "Button text displayed after a successful password reset."
|
|
217
223
|
},
|
|
218
224
|
"attribute": "continue-button-text",
|
|
219
225
|
"reflect": false,
|
|
@@ -231,7 +237,7 @@ export class PortalResetPassword {
|
|
|
231
237
|
"optional": false,
|
|
232
238
|
"docs": {
|
|
233
239
|
"tags": [{
|
|
234
|
-
"text": "
|
|
240
|
+
"text": "Password Confirmation Field Label",
|
|
235
241
|
"name": "uiName"
|
|
236
242
|
}],
|
|
237
243
|
"text": ""
|
|
@@ -252,7 +258,7 @@ export class PortalResetPassword {
|
|
|
252
258
|
"optional": false,
|
|
253
259
|
"docs": {
|
|
254
260
|
"tags": [{
|
|
255
|
-
"text": "Password Label",
|
|
261
|
+
"text": "Password Field Label",
|
|
256
262
|
"name": "uiName"
|
|
257
263
|
}],
|
|
258
264
|
"text": ""
|
|
@@ -302,16 +308,16 @@ function usePortalResetPasswordDemo(props) {
|
|
|
302
308
|
error: "",
|
|
303
309
|
loading: false,
|
|
304
310
|
reset: false,
|
|
305
|
-
confirmPassword:
|
|
311
|
+
confirmPassword: props.confirmPassword,
|
|
306
312
|
oobCodeValidating: false,
|
|
307
313
|
oobCodeValid: true,
|
|
308
314
|
content: {
|
|
309
|
-
passwordResetHeader:
|
|
310
|
-
resetPasswordHeader:
|
|
311
|
-
continueButtonText:
|
|
312
|
-
resetPasswordButtonText:
|
|
313
|
-
confirmPasswordFieldLabel:
|
|
314
|
-
passwordFieldLabel:
|
|
315
|
+
passwordResetHeader: props.passwordResetHeader,
|
|
316
|
+
resetPasswordHeader: props.resetPasswordHeader,
|
|
317
|
+
continueButtonText: props.continueButtonText,
|
|
318
|
+
resetPasswordButtonText: props.resetPasswordButtonText,
|
|
319
|
+
confirmPasswordFieldLabel: props.confirmPasswordFieldLabel,
|
|
320
|
+
passwordFieldLabel: props.passwordFieldLabel,
|
|
315
321
|
},
|
|
316
322
|
},
|
|
317
323
|
callbacks: {
|
|
@@ -3,15 +3,24 @@ import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
|
3
3
|
import { navigation, useVerifyPasswordResetCodeMutation, useResetPasswordMutation, } from "@saasquatch/component-boilerplate";
|
|
4
4
|
import { sanitizeUrlPath } from "../../utils/utils";
|
|
5
5
|
export function usePortalResetPassword(props) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7
7
|
const [reset, setReset] = useState(false);
|
|
8
8
|
const [error, setError] = useState("");
|
|
9
9
|
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = useVerifyPasswordResetCodeMutation();
|
|
10
10
|
const [resetPassword, resetPasswordState] = useResetPasswordMutation();
|
|
11
|
-
const urlParams = new URLSearchParams(
|
|
11
|
+
const urlParams = new URLSearchParams(navigation.location.search);
|
|
12
12
|
const oobCode = urlParams.get("oobCode");
|
|
13
13
|
urlParams.delete("oobCode");
|
|
14
14
|
const nextPageOverride = urlParams.get("nextPage");
|
|
15
|
+
const verifyPasswordResetCodeAndHandleResponse = async () => {
|
|
16
|
+
const result = await verifyPasswordResetCode({ oobCode });
|
|
17
|
+
if (result instanceof Error) {
|
|
18
|
+
setError("Network request failed.");
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
verifyPasswordResetCodeAndHandleResponse();
|
|
23
|
+
}, []);
|
|
15
24
|
const submit = async (event) => {
|
|
16
25
|
setError("");
|
|
17
26
|
let formData = event.detail.formData;
|
|
@@ -23,7 +32,16 @@ export function usePortalResetPassword(props) {
|
|
|
23
32
|
setError("Passwords do not match.");
|
|
24
33
|
return;
|
|
25
34
|
}
|
|
26
|
-
await resetPassword(variables);
|
|
35
|
+
const result = await resetPassword(variables);
|
|
36
|
+
if (result instanceof Error) {
|
|
37
|
+
return setError("Network request failed.");
|
|
38
|
+
}
|
|
39
|
+
if (result.resetManagedIdentityPassword) {
|
|
40
|
+
setReset(true);
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
gotoNextPage();
|
|
43
|
+
}, 5000);
|
|
44
|
+
}
|
|
27
45
|
};
|
|
28
46
|
const gotoNextPage = () => {
|
|
29
47
|
urlParams.delete("nextPage");
|
|
@@ -36,39 +54,15 @@ export function usePortalResetPassword(props) {
|
|
|
36
54
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
37
55
|
});
|
|
38
56
|
};
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
var _a;
|
|
41
|
-
if ((_a = resetPasswordState.data) === null || _a === void 0 ? void 0 : _a.resetManagedIdentityPassword) {
|
|
42
|
-
setReset(true);
|
|
43
|
-
setTimeout(() => {
|
|
44
|
-
gotoNextPage();
|
|
45
|
-
}, 5000);
|
|
46
|
-
}
|
|
47
|
-
}, [(_a = resetPasswordState.data) === null || _a === void 0 ? void 0 : _a.resetManagedIdentityPassword]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
verifyPasswordResetCode({ oobCode });
|
|
50
|
-
}, [oobCode]);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
var _a;
|
|
53
|
-
if ((_a = verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
54
|
-
setError("Network request failed.");
|
|
55
|
-
}
|
|
56
|
-
}, [verifyPasswordResetCodeState === null || verifyPasswordResetCodeState === void 0 ? void 0 : verifyPasswordResetCodeState.errors]);
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
var _a;
|
|
59
|
-
if ((_a = resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
60
|
-
setError("Network request failed.");
|
|
61
|
-
}
|
|
62
|
-
}, [resetPasswordState === null || resetPasswordState === void 0 ? void 0 : resetPasswordState.errors]);
|
|
63
57
|
return {
|
|
64
58
|
states: {
|
|
65
59
|
loading: resetPasswordState.loading,
|
|
66
60
|
reset,
|
|
67
61
|
confirmPassword: props.confirmPassword,
|
|
68
|
-
error: ((
|
|
62
|
+
error: ((_e = (_d = (_c = (_b = (_a = resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_j = (_h = (_g = (_f = resetPasswordState.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
|
|
69
63
|
error,
|
|
70
64
|
oobCodeValidating: verifyPasswordResetCodeState.loading,
|
|
71
|
-
oobCodeValid: (
|
|
65
|
+
oobCodeValid: (_k = verifyPasswordResetCodeState.data) === null || _k === void 0 ? void 0 : _k.verifyManagedIdentityPasswordResetCode.success,
|
|
72
66
|
content: {
|
|
73
67
|
passwordResetHeader: props.passwordResetHeader,
|
|
74
68
|
resetPasswordHeader: props.resetPasswordHeader,
|
|
@@ -5,21 +5,23 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { PortalVerifyEmailView, } from "./sqm-portal-verify-email-view";
|
|
6
6
|
import { usePortalVerifyEmail } from "./usePortalVerifyEmail";
|
|
7
7
|
/**
|
|
8
|
-
* @uiName
|
|
8
|
+
* @uiName Microsite Verify Email
|
|
9
9
|
*/
|
|
10
10
|
export class PortalVerifyEmail {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Redirect participants to this page when they successfully verify their email.
|
|
15
15
|
*
|
|
16
|
-
* @uiName
|
|
16
|
+
* @uiName Successful Verification Redirect
|
|
17
|
+
* @uiWidget pageSelect
|
|
17
18
|
*/
|
|
18
19
|
this.nextPage = "/";
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Redirect participants to this page if verification fails due to an outdated verification attempt.
|
|
21
22
|
*
|
|
22
|
-
* @uiName Failed
|
|
23
|
+
* @uiName Failed Verification Redirect
|
|
24
|
+
* @uiWidget pageSelect
|
|
23
25
|
*/
|
|
24
26
|
this.failedPage = "/";
|
|
25
27
|
withHooks(this);
|
|
@@ -46,10 +48,13 @@ export class PortalVerifyEmail {
|
|
|
46
48
|
"optional": false,
|
|
47
49
|
"docs": {
|
|
48
50
|
"tags": [{
|
|
49
|
-
"text": "
|
|
51
|
+
"text": "Successful Verification Redirect",
|
|
50
52
|
"name": "uiName"
|
|
53
|
+
}, {
|
|
54
|
+
"text": "pageSelect",
|
|
55
|
+
"name": "uiWidget"
|
|
51
56
|
}],
|
|
52
|
-
"text": "
|
|
57
|
+
"text": "Redirect participants to this page when they successfully verify their email."
|
|
53
58
|
},
|
|
54
59
|
"attribute": "next-page",
|
|
55
60
|
"reflect": false,
|
|
@@ -67,10 +72,13 @@ export class PortalVerifyEmail {
|
|
|
67
72
|
"optional": false,
|
|
68
73
|
"docs": {
|
|
69
74
|
"tags": [{
|
|
70
|
-
"text": "Failed
|
|
75
|
+
"text": "Failed Verification Redirect",
|
|
71
76
|
"name": "uiName"
|
|
77
|
+
}, {
|
|
78
|
+
"text": "pageSelect",
|
|
79
|
+
"name": "uiWidget"
|
|
72
80
|
}],
|
|
73
|
-
"text": "
|
|
81
|
+
"text": "Redirect participants to this page if verification fails due to an outdated verification attempt."
|
|
74
82
|
},
|
|
75
83
|
"attribute": "failed-page",
|
|
76
84
|
"reflect": false,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useEffect
|
|
1
|
+
import { useEffect } from "@saasquatch/universal-hooks";
|
|
2
2
|
import { navigation, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
3
3
|
import { sanitizeUrlPath } from "../../utils/utils";
|
|
4
4
|
export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
6
|
-
const [verified, setVerified] = useState(false);
|
|
7
|
-
const [disableContinue, setDisableContinue] = useState(true);
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
6
|
const userIdent = useUserIdentity();
|
|
9
7
|
const [request, { loading, data, errors }] = useVerifyEmailMutation();
|
|
10
|
-
const
|
|
11
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
8
|
+
const urlParams = new URLSearchParams(navigation.location.search);
|
|
12
9
|
const oobCode = urlParams.get("oobCode");
|
|
13
10
|
const nextPageOverride = urlParams.get("nextPage");
|
|
14
|
-
|
|
11
|
+
// derived from useMutation in component boilerplate initialState
|
|
12
|
+
const disableContinue = data === undefined && errors === undefined && !!oobCode;
|
|
13
|
+
// if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
|
|
14
|
+
const verified = !!(((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) || (data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail.success));
|
|
15
15
|
const failed = () => {
|
|
16
16
|
return navigation.push({
|
|
17
17
|
pathname: failedPage,
|
|
@@ -24,49 +24,28 @@ export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
24
24
|
navigation.push(url.href);
|
|
25
25
|
};
|
|
26
26
|
const submit = async () => {
|
|
27
|
-
if (oobCode) {
|
|
28
|
-
setError("");
|
|
29
|
-
await request({ oobCode });
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
useEffect(() => {
|
|
33
27
|
var _a;
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var _a, _b;
|
|
43
|
-
if ((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
44
|
-
setDisableContinue(false);
|
|
45
|
-
setTimeout(() => {
|
|
46
|
-
gotoNextPage();
|
|
47
|
-
}, 3000);
|
|
48
|
-
}
|
|
49
|
-
else if (!oobCode ||
|
|
50
|
-
((_b = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _b === void 0 ? void 0 : _b.success) === false) {
|
|
51
|
-
setDisableContinue(false);
|
|
52
|
-
}
|
|
53
|
-
else if (!userIdent) {
|
|
54
|
-
setDisableContinue(false);
|
|
28
|
+
if (oobCode) {
|
|
29
|
+
const result = await request({ oobCode });
|
|
30
|
+
if ((result instanceof Error ||
|
|
31
|
+
!result.verifyManagedIdentityEmail.success) &&
|
|
32
|
+
!((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)) {
|
|
33
|
+
// pause on error if logged out/unverified
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
55
36
|
setTimeout(() => {
|
|
56
37
|
gotoNextPage();
|
|
57
38
|
}, 3000);
|
|
58
39
|
}
|
|
59
|
-
}
|
|
40
|
+
};
|
|
60
41
|
useEffect(() => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
}, [errors]);
|
|
42
|
+
submit();
|
|
43
|
+
}, []);
|
|
65
44
|
return {
|
|
66
45
|
states: {
|
|
67
46
|
loading: loading || disableContinue,
|
|
68
|
-
error: ((
|
|
69
|
-
|
|
47
|
+
error: ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message) ||
|
|
48
|
+
((errors === null || errors === void 0 ? void 0 : errors.message) && "Network request failed."),
|
|
70
49
|
verified,
|
|
71
50
|
},
|
|
72
51
|
data: {
|
|
@@ -6,7 +6,7 @@ import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
|
6
6
|
* @uiName Program Explainer
|
|
7
7
|
* @exampleGroup Common Components
|
|
8
8
|
* @slots [{"name":"", "title":"Explainer", "validChildren":["sqm-program-explainer-step"]}]
|
|
9
|
-
* @example Program Explainer - <sqm-program-explainer header="How it works"><sqm-program-explainer-step description="
|
|
9
|
+
* @example Program Explainer - <sqm-program-explainer header="How it works"><sqm-program-explainer-step description="Explore and use our product while earning points in the process!" header="Earn points" icon="cash-stack" text-color="#000000"></sqm-program-explainer-step><sqm-program-explainer-step description="Use your points and redeem rewards like one free month of Enterprise or a visa giftcard" header="Redeem rewards" icon="people" text-color="#000000"></sqm-program-explainer-step></sqm-program-explainer>
|
|
10
10
|
*/
|
|
11
11
|
export class ProgramExplainer {
|
|
12
12
|
constructor() {
|
|
@@ -5,7 +5,7 @@ import { ProgramExplainerStepView } from "./sqm-program-explainer-step-view";
|
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Program Explainer Step
|
|
7
7
|
* @exampleGroup Common Components
|
|
8
|
-
* @example Program Explainer Step - <sqm-program-explainer-step description="
|
|
8
|
+
* @example Program Explainer Step - <sqm-program-explainer-step description="Explore and use our product while earning points in the process!" header="Earn points" icon="cash-stack" text-color="#000000"></sqm-program-explainer-step>
|
|
9
9
|
* @validParents ["sqm-program-explainer"]
|
|
10
10
|
*/
|
|
11
11
|
export class ProgramExplainerStep {
|