@saasquatch/mint-components 1.7.4 → 1.7.6-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-25025125.js → ShadowViewAddon-ee6f0340.js} +80 -61
- package/dist/cjs/{global-be9af765.js → global-a8fd1f10.js} +3 -3
- package/dist/cjs/{index.module-8562f350.js → index.module-7c0deb52.js} +24 -26
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-53e983a6.js → luxon-a4661470.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{re-render-9a91bde6.js → re-render-e77c897d.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +174 -70
- package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
- 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-header-logo.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-navigation-sidebar-item-view-28578dce.js → sqm-navigation-sidebar-item-view-84128b9f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +44 -19
- package/dist/cjs/sqm-popup-container.cjs.entry.js +13 -6
- package/dist/cjs/{sqm-portal-email-verification-view-077c12f7.js → sqm-portal-email-verification-view-b7cafe0c.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +20 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-0142350f.js → sqm-portal-forgot-password-view-ca5f6db9.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +19 -9
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-b3d1e0f7.js → sqm-portal-profile-view-f092a4ef.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +32 -12
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +40 -8
- package/dist/cjs/{sqm-portal-reset-password-view-d5bc7afc.js → sqm-portal-reset-password-view-07a13210.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +71 -11
- package/dist/cjs/{sqm-portal-verify-email-view-f6c7287e.js → sqm-portal-verify-email-view-ce552bbc.js} +7 -7
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +49 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +7 -7
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +4 -4
- 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 +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +11 -11
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +63 -56
- package/dist/cjs/sqm-tab.cjs.entry.js +3 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{stencil-hooks.module-e4bf7f2d.js → stencil-hooks.module-faabb426.js} +1 -1
- package/dist/cjs/{useChildElements-be4e0841.js → useChildElements-410453fc.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-27a20410.js → useInstantAccessRegistration-42b320b3.js} +4 -4
- package/dist/cjs/{useReferralTable-ca564dcb.js → useReferralTable-28fff5b8.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b557a04.js → useRegistrationFormState-58ce55f2.js} +3 -3
- package/dist/cjs/utilities-d2d257c7.js +25 -0
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +2 -2
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +77 -1
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +7 -5
- package/dist/collection/components/sqm-password-field/passwordValidation.js +11 -11
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +155 -4
- package/dist/collection/components/sqm-password-field/usePasswordField.js +1 -1
- package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +18 -0
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -1
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +28 -1
- package/dist/collection/components/sqm-popup-container/usePopupContainer.js +1 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +207 -1
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +8 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +57 -1
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +31 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -3
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +61 -6
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +26 -0
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +3 -3
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +104 -1
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +6 -5
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +157 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +157 -1
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +3 -1
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +4 -4
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +262 -1
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +12 -3
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +6 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +150 -5
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +7 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +52 -0
- package/dist/collection/components/sqm-share-button/useShareButton.js +11 -11
- package/dist/collection/utilities.js +3 -0
- package/dist/esm/{ShadowViewAddon-53810b62.js → ShadowViewAddon-cbbf28b2.js} +77 -58
- package/dist/esm/{global-179b13db.js → global-0268f7bb.js} +3 -3
- package/dist/esm/{index.module-9469b28f.js → index.module-cbe33f2d.js} +6 -8
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{re-render-1048d024.js → re-render-4e10b5ac.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-big-stat_39.entry.js +174 -70
- package/dist/esm/sqm-close-button.entry.js +2 -2
- 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-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/sqm-logout-current-user.entry.js +4 -4
- package/dist/esm/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +44 -19
- package/dist/esm/sqm-popup-container.entry.js +13 -6
- package/dist/esm/{sqm-portal-email-verification-view-79ef6c2f.js → sqm-portal-email-verification-view-12fc1bd4.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +20 -9
- package/dist/esm/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +19 -9
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-6068a0f8.js → sqm-portal-profile-view-87730d84.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +32 -12
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +40 -8
- package/dist/esm/{sqm-portal-reset-password-view-0df781f6.js → sqm-portal-reset-password-view-d3e726a9.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +73 -13
- package/dist/esm/{sqm-portal-verify-email-view-1db4fae6.js → sqm-portal-verify-email-view-283bf637.js} +7 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +50 -15
- package/dist/esm/sqm-referral-table_11.entry.js +7 -7
- package/dist/esm/sqm-referred-registration.entry.js +4 -4
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +11 -11
- package/dist/esm/sqm-stencilbook.entry.js +63 -56
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
- package/dist/esm/{useChildElements-1338b131.js → useChildElements-f6672214.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +4 -4
- package/dist/esm/{useReferralTable-ada01642.js → useReferralTable-16e5c27f.js} +10 -10
- package/dist/esm/{useRegistrationFormState-49dfc8e0.js → useRegistrationFormState-424e2af2.js} +3 -3
- package/dist/esm/utilities-a6f1de33.js +21 -0
- package/dist/esm-es5/ShadowViewAddon-cbbf28b2.js +1 -0
- package/dist/esm-es5/{global-179b13db.js → global-0268f7bb.js} +2 -2
- package/dist/esm-es5/index.module-cbe33f2d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-1048d024.js → re-render-4e10b5ac.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-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-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-d2e0fdb1.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-79ef6c2f.js → sqm-portal-email-verification-view-12fc1bd4.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.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-87730d84.js +1 -0
- 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-view-d3e726a9.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-283bf637.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-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-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
- package/dist/esm-es5/{useChildElements-1338b131.js → useChildElements-f6672214.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +1 -1
- package/dist/esm-es5/{useReferralTable-ada01642.js → useReferralTable-16e5c27f.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-424e2af2.js +1 -0
- package/dist/esm-es5/utilities-a6f1de33.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-583b1a0e.entry.js → p-048cb5a0.entry.js} +1 -1
- package/dist/mint-components/p-059b2db4.system.js +1 -0
- package/dist/mint-components/p-05d9a1c3.system.entry.js +1 -0
- package/dist/mint-components/p-0c3c573c.entry.js +1 -0
- package/dist/mint-components/{p-2b6c19e0.system.js → p-0e0bcf17.system.js} +1 -1
- package/dist/mint-components/p-0ede1728.entry.js +187 -0
- package/dist/mint-components/p-0f48f5c4.entry.js +1 -0
- package/dist/mint-components/{p-330314f9.entry.js → p-11c2ddd5.entry.js} +1 -1
- package/dist/mint-components/p-126ef540.entry.js +1 -0
- package/dist/mint-components/p-158302b4.system.entry.js +1 -0
- package/dist/mint-components/p-16c4c0e6.system.entry.js +1 -0
- package/dist/mint-components/p-19078b96.system.entry.js +1 -0
- package/dist/mint-components/{p-ee457000.system.js → p-21a152c9.system.js} +1 -1
- package/dist/mint-components/{p-fe721800.system.entry.js → p-25014681.system.entry.js} +1 -1
- package/dist/mint-components/p-2639d623.entry.js +33 -0
- package/dist/mint-components/p-29f83317.system.entry.js +1 -0
- package/dist/mint-components/p-2b03b921.entry.js +1 -0
- package/dist/mint-components/{p-c24079c2.js → p-2b3e1737.js} +1 -1
- package/dist/mint-components/{p-9ecfc085.system.js → p-2bd322a2.system.js} +1 -1
- package/dist/mint-components/p-2be08bc1.system.entry.js +1 -0
- package/dist/mint-components/{p-8ff83f3b.system.entry.js → p-2eacd22e.system.entry.js} +1 -1
- package/dist/mint-components/p-2f51b953.entry.js +9 -0
- package/dist/mint-components/{p-8d767d9d.js → p-3056e5df.js} +1 -1
- package/dist/mint-components/p-349b9603.system.js +1 -0
- package/dist/mint-components/{p-6dac42fc.system.js → p-34b61e2c.system.js} +1 -1
- package/dist/mint-components/{p-d3f6b6b4.entry.js → p-3884e029.entry.js} +1 -1
- package/dist/mint-components/p-3a306a99.system.entry.js +1 -0
- package/dist/mint-components/{p-d576140e.js → p-4086ea93.js} +1 -1
- package/dist/mint-components/p-40dde690.js +1 -0
- package/dist/mint-components/p-4251a664.entry.js +13 -0
- package/dist/mint-components/{p-901f5b80.js → p-42c43cc2.js} +1 -1
- package/dist/mint-components/p-46ef82ed.js +1 -0
- package/dist/mint-components/p-4d9744bf.js +1 -0
- package/dist/mint-components/{p-3cc28285.system.js → p-4eb96878.system.js} +1 -1
- package/dist/mint-components/p-5097066c.entry.js +1 -0
- package/dist/mint-components/p-5cba80eb.entry.js +1 -0
- package/dist/mint-components/{p-55eb6616.system.js → p-5f084d62.system.js} +1 -1
- package/dist/mint-components/p-6dc5988e.entry.js +1 -0
- package/dist/mint-components/p-702db9d3.entry.js +1 -0
- package/dist/mint-components/{p-b668aa0b.system.entry.js → p-71f1256c.system.entry.js} +1 -1
- package/dist/mint-components/p-7487f23c.system.js +1 -0
- package/dist/mint-components/{p-5ae4911c.entry.js → p-78348fd6.entry.js} +2 -2
- package/dist/mint-components/p-7cdc3d59.system.entry.js +1 -0
- package/dist/mint-components/{p-ef3bcec4.system.entry.js → p-7dcd091c.system.entry.js} +1 -1
- package/dist/mint-components/p-7f950006.entry.js +13 -0
- package/dist/mint-components/{p-747912c5.system.entry.js → p-7f9953fc.system.entry.js} +1 -1
- package/dist/mint-components/p-8756e3ae.system.entry.js +1 -0
- package/dist/mint-components/p-8930ca8e.system.entry.js +1 -0
- package/dist/mint-components/p-8be37b05.system.entry.js +1 -0
- package/dist/mint-components/p-8f4bf5e3.system.js +1 -0
- package/dist/mint-components/{p-7e1af11d.entry.js → p-9522cf59.entry.js} +1 -1
- package/dist/mint-components/{p-9fc8505c.entry.js → p-995117b1.entry.js} +1 -1
- package/dist/mint-components/{p-5ddfa30d.entry.js → p-9a67f0b2.entry.js} +1 -1
- package/dist/mint-components/{p-68e5a4a6.system.entry.js → p-9bb762f8.system.entry.js} +1 -1
- package/dist/mint-components/p-9f0aca0e.system.js +1 -0
- package/dist/mint-components/p-a90fbda4.system.entry.js +1 -0
- package/dist/mint-components/p-aac1d82a.system.js +1 -0
- package/dist/mint-components/p-adb1f996.js +1 -0
- package/dist/mint-components/p-ae97b693.js +379 -0
- package/dist/mint-components/p-b2d41729.js +1 -0
- package/dist/mint-components/{p-540a24e6.system.entry.js → p-b4779d76.system.entry.js} +1 -1
- package/dist/mint-components/{p-71a4e272.entry.js → p-b6713eac.entry.js} +1 -1
- package/dist/mint-components/p-bbc77b15.system.entry.js +1 -0
- package/dist/mint-components/{p-f6456854.js → p-bc64b988.js} +1 -1
- package/dist/mint-components/p-bcd04c27.js +1 -0
- package/dist/mint-components/{p-97e758fd.system.entry.js → p-c51de4f4.system.entry.js} +1 -1
- package/dist/mint-components/p-c58a09e4.js +1 -0
- package/dist/mint-components/{p-21a1d705.js → p-c9818f06.js} +1 -1
- package/dist/mint-components/{p-ee469a91.entry.js → p-cfcb517b.entry.js} +1 -1
- package/dist/mint-components/p-d0f2d5e3.system.entry.js +1 -0
- package/dist/mint-components/p-d2bd3b4b.system.entry.js +1 -0
- package/dist/mint-components/{p-9e9dcd9c.entry.js → p-d3c26e65.entry.js} +1 -1
- package/dist/mint-components/p-d4b174e1.system.js +1 -0
- package/dist/mint-components/p-d4f8aa26.entry.js +1 -0
- package/dist/mint-components/{p-a8f6d72c.system.entry.js → p-d86c3c45.system.entry.js} +1 -1
- package/dist/mint-components/p-d88ed63d.entry.js +1 -0
- package/dist/mint-components/{p-c8d74710.entry.js → p-da31e785.entry.js} +1 -1
- package/dist/mint-components/{p-16394ed3.system.entry.js → p-da8bdb5e.system.entry.js} +1 -1
- package/dist/mint-components/p-dc59a463.entry.js +1 -0
- package/dist/mint-components/{p-0bf5a9b8.system.entry.js → p-dce5e97a.system.entry.js} +1 -1
- package/dist/mint-components/{p-2d592364.system.entry.js → p-debd47d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2260971.system.js → p-df15da1e.system.js} +1 -1
- package/dist/mint-components/{p-76cfebb1.system.js → p-df1af170.system.js} +1 -1
- package/dist/mint-components/p-e231860a.entry.js +1 -0
- package/dist/mint-components/p-e4b12586.system.entry.js +1 -0
- package/dist/mint-components/p-ea6a7135.js +1 -0
- package/dist/mint-components/p-ebccb162.js +1 -0
- package/dist/mint-components/{p-7fc020f4.entry.js → p-eccd2792.entry.js} +1 -1
- package/dist/mint-components/p-eea49084.entry.js +1 -0
- package/dist/mint-components/p-f0e46845.system.js +1 -0
- package/dist/mint-components/p-f11c9bb1.system.js +1 -0
- package/dist/mint-components/{p-6034522a.js → p-f6743fbe.js} +1 -1
- package/dist/mint-components/{p-a38baa99.system.entry.js → p-fa376627.system.entry.js} +1 -1
- package/dist/mint-components/{p-a223a8dc.entry.js → p-fabf03c8.entry.js} +1 -1
- package/dist/mint-components/{p-a87d66ac.system.entry.js → p-fc468ef7.system.entry.js} +1 -1
- package/dist/mint-components/p-fca0dc98.system.js +1 -0
- package/dist/mint-components/{p-e341e670.system.entry.js → p-fe276517.system.entry.js} +1 -1
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile-view.d.ts +1 -0
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +12 -0
- package/dist/types/components/sqm-edit-profile/useEditProfile.d.ts +2 -11
- package/dist/types/components/sqm-password-field/passwordValidation.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +24 -0
- package/dist/types/components/sqm-popup-container/PopupContainer.stories.d.ts +5 -0
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +7 -1
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +32 -0
- package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +6 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +10 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +5 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +4 -3
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +17 -0
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +2 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +24 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +24 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +9 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +42 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +24 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +11 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +10 -0
- package/dist/types/components/sqm-share-button/useShareButton.d.ts +2 -0
- package/dist/types/components.d.ts +468 -6
- package/dist/types/utilities.d.ts +3 -0
- package/docs/docs.docx +0 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/ShadowViewAddon-53810b62.js +0 -1
- package/dist/esm-es5/index.module-9469b28f.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-6068a0f8.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-0df781f6.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-1db4fae6.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-49dfc8e0.js +0 -1
- package/dist/mint-components/p-0714bae2.entry.js +0 -33
- package/dist/mint-components/p-1437b793.system.js +0 -1
- package/dist/mint-components/p-1912f988.entry.js +0 -1
- package/dist/mint-components/p-19e46b11.entry.js +0 -1
- package/dist/mint-components/p-1c9d83b4.entry.js +0 -1
- package/dist/mint-components/p-228163a1.system.js +0 -1
- package/dist/mint-components/p-29e67994.entry.js +0 -9
- package/dist/mint-components/p-2aca0eae.js +0 -1
- package/dist/mint-components/p-2d39cf50.system.entry.js +0 -1
- package/dist/mint-components/p-3409e9a0.system.entry.js +0 -1
- package/dist/mint-components/p-39341b0c.entry.js +0 -187
- package/dist/mint-components/p-3b7c1be8.entry.js +0 -1
- package/dist/mint-components/p-42f1a044.system.entry.js +0 -1
- package/dist/mint-components/p-46be1518.system.js +0 -1
- package/dist/mint-components/p-509af914.system.entry.js +0 -1
- package/dist/mint-components/p-519bb212.js +0 -1
- package/dist/mint-components/p-56525896.system.js +0 -1
- package/dist/mint-components/p-571f6923.entry.js +0 -1
- package/dist/mint-components/p-58196113.system.entry.js +0 -1
- package/dist/mint-components/p-5b9195d7.system.entry.js +0 -1
- package/dist/mint-components/p-657659e8.entry.js +0 -13
- package/dist/mint-components/p-68db543e.system.entry.js +0 -1
- package/dist/mint-components/p-718cf151.js +0 -1
- package/dist/mint-components/p-75ddf3ca.js +0 -1
- package/dist/mint-components/p-76d4eb55.system.js +0 -1
- package/dist/mint-components/p-78066f92.entry.js +0 -13
- package/dist/mint-components/p-7862ab7d.entry.js +0 -1
- package/dist/mint-components/p-7ced669d.entry.js +0 -1
- package/dist/mint-components/p-82180848.js +0 -379
- package/dist/mint-components/p-8827fabe.system.entry.js +0 -1
- package/dist/mint-components/p-8d593b5e.system.entry.js +0 -1
- package/dist/mint-components/p-9551f888.system.entry.js +0 -1
- package/dist/mint-components/p-961998b6.system.entry.js +0 -1
- package/dist/mint-components/p-97b03f80.entry.js +0 -1
- package/dist/mint-components/p-9aa1bd46.system.js +0 -1
- package/dist/mint-components/p-a217deee.js +0 -1
- package/dist/mint-components/p-ae191f8c.js +0 -1
- package/dist/mint-components/p-af24b899.entry.js +0 -1
- package/dist/mint-components/p-ba42b92c.system.entry.js +0 -1
- package/dist/mint-components/p-bf0719b7.system.js +0 -1
- package/dist/mint-components/p-c3be93c7.system.entry.js +0 -1
- package/dist/mint-components/p-c5b61ade.system.js +0 -1
- package/dist/mint-components/p-cc391fac.js +0 -1
- package/dist/mint-components/p-d3de337c.system.entry.js +0 -1
- package/dist/mint-components/p-d9787e31.system.entry.js +0 -1
- package/dist/mint-components/p-e8f720b9.entry.js +0 -1
- package/dist/mint-components/p-efd129de.js +0 -1
- package/dist/mint-components/p-f7b7d395.system.js +0 -1
- package/dist/mint-components/p-f82bb604.entry.js +0 -1
- package/dist/mint-components/p-f9bfbfa2.entry.js +0 -1
- package/dist/mint-components/p-fe13762b.entry.js +0 -1
- package/dist/mint-components/p-ff3b0ece.system.entry.js +0 -1
package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js
CHANGED
|
@@ -105,6 +105,30 @@ export class PortalRegistrationForm {
|
|
|
105
105
|
* @uiWidget textArea
|
|
106
106
|
*/
|
|
107
107
|
this.formDisabledErrorMessage = "The registration form is currently disabled.";
|
|
108
|
+
/**
|
|
109
|
+
* @uiName Password requirement met
|
|
110
|
+
*/
|
|
111
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
112
|
+
/**
|
|
113
|
+
* @uiName Password requirement failed
|
|
114
|
+
*/
|
|
115
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
116
|
+
/**
|
|
117
|
+
* @uiName Minimum length text
|
|
118
|
+
*/
|
|
119
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
120
|
+
/**
|
|
121
|
+
* @uiName Missing uppercase text
|
|
122
|
+
*/
|
|
123
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
124
|
+
/**
|
|
125
|
+
* @uiName Missing lowercase text
|
|
126
|
+
*/
|
|
127
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
128
|
+
/**
|
|
129
|
+
* @uiName Missing number or symbol text
|
|
130
|
+
*/
|
|
131
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
108
132
|
withHooks(this);
|
|
109
133
|
}
|
|
110
134
|
disconnectedCallback() { }
|
|
@@ -127,6 +151,12 @@ export class PortalRegistrationForm {
|
|
|
127
151
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
128
152
|
formDisabledErrorMessage: this.formDisabledErrorMessage,
|
|
129
153
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
154
|
+
meetsRequirementsText: this.meetsRequirementsText,
|
|
155
|
+
doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
|
|
156
|
+
minErrorText: this.minErrorText,
|
|
157
|
+
uppercaseErrorText: this.uppercaseErrorText,
|
|
158
|
+
lowercaseErrorText: this.lowercaseErrorText,
|
|
159
|
+
hasErrorText: this.hasErrorText,
|
|
130
160
|
};
|
|
131
161
|
return (h(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
132
162
|
}
|
|
@@ -514,6 +544,132 @@ export class PortalRegistrationForm {
|
|
|
514
544
|
"reflect": false,
|
|
515
545
|
"defaultValue": "\"The registration form is currently disabled.\""
|
|
516
546
|
},
|
|
547
|
+
"meetsRequirementsText": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"mutable": false,
|
|
550
|
+
"complexType": {
|
|
551
|
+
"original": "string",
|
|
552
|
+
"resolved": "string",
|
|
553
|
+
"references": {}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": false,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [{
|
|
559
|
+
"text": "Password requirement met",
|
|
560
|
+
"name": "uiName"
|
|
561
|
+
}],
|
|
562
|
+
"text": ""
|
|
563
|
+
},
|
|
564
|
+
"attribute": "meets-requirements-text",
|
|
565
|
+
"reflect": false,
|
|
566
|
+
"defaultValue": "\"Password has met all requirements\""
|
|
567
|
+
},
|
|
568
|
+
"doesNotMeetRequirementsText": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"mutable": false,
|
|
571
|
+
"complexType": {
|
|
572
|
+
"original": "string",
|
|
573
|
+
"resolved": "string",
|
|
574
|
+
"references": {}
|
|
575
|
+
},
|
|
576
|
+
"required": false,
|
|
577
|
+
"optional": false,
|
|
578
|
+
"docs": {
|
|
579
|
+
"tags": [{
|
|
580
|
+
"text": "Password requirement failed",
|
|
581
|
+
"name": "uiName"
|
|
582
|
+
}],
|
|
583
|
+
"text": ""
|
|
584
|
+
},
|
|
585
|
+
"attribute": "does-not-meet-requirements-text",
|
|
586
|
+
"reflect": false,
|
|
587
|
+
"defaultValue": "\"Password must meet the following requirements:\""
|
|
588
|
+
},
|
|
589
|
+
"minErrorText": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"mutable": false,
|
|
592
|
+
"complexType": {
|
|
593
|
+
"original": "string",
|
|
594
|
+
"resolved": "string",
|
|
595
|
+
"references": {}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": false,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [{
|
|
601
|
+
"text": "Minimum length text",
|
|
602
|
+
"name": "uiName"
|
|
603
|
+
}],
|
|
604
|
+
"text": ""
|
|
605
|
+
},
|
|
606
|
+
"attribute": "min-error-text",
|
|
607
|
+
"reflect": false,
|
|
608
|
+
"defaultValue": "\"be a minimum of 8 characters\""
|
|
609
|
+
},
|
|
610
|
+
"uppercaseErrorText": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"mutable": false,
|
|
613
|
+
"complexType": {
|
|
614
|
+
"original": "string",
|
|
615
|
+
"resolved": "string",
|
|
616
|
+
"references": {}
|
|
617
|
+
},
|
|
618
|
+
"required": false,
|
|
619
|
+
"optional": false,
|
|
620
|
+
"docs": {
|
|
621
|
+
"tags": [{
|
|
622
|
+
"text": "Missing uppercase text",
|
|
623
|
+
"name": "uiName"
|
|
624
|
+
}],
|
|
625
|
+
"text": ""
|
|
626
|
+
},
|
|
627
|
+
"attribute": "uppercase-error-text",
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"defaultValue": "\"contain at least 1 uppercase character\""
|
|
630
|
+
},
|
|
631
|
+
"lowercaseErrorText": {
|
|
632
|
+
"type": "string",
|
|
633
|
+
"mutable": false,
|
|
634
|
+
"complexType": {
|
|
635
|
+
"original": "string",
|
|
636
|
+
"resolved": "string",
|
|
637
|
+
"references": {}
|
|
638
|
+
},
|
|
639
|
+
"required": false,
|
|
640
|
+
"optional": false,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [{
|
|
643
|
+
"text": "Missing lowercase text",
|
|
644
|
+
"name": "uiName"
|
|
645
|
+
}],
|
|
646
|
+
"text": ""
|
|
647
|
+
},
|
|
648
|
+
"attribute": "lowercase-error-text",
|
|
649
|
+
"reflect": false,
|
|
650
|
+
"defaultValue": "\"contain at least 1 lowercase character\""
|
|
651
|
+
},
|
|
652
|
+
"hasErrorText": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"mutable": false,
|
|
655
|
+
"complexType": {
|
|
656
|
+
"original": "string",
|
|
657
|
+
"resolved": "string",
|
|
658
|
+
"references": {}
|
|
659
|
+
},
|
|
660
|
+
"required": false,
|
|
661
|
+
"optional": false,
|
|
662
|
+
"docs": {
|
|
663
|
+
"tags": [{
|
|
664
|
+
"text": "Missing number or symbol text",
|
|
665
|
+
"name": "uiName"
|
|
666
|
+
}],
|
|
667
|
+
"text": ""
|
|
668
|
+
},
|
|
669
|
+
"attribute": "has-error-text",
|
|
670
|
+
"reflect": false,
|
|
671
|
+
"defaultValue": "\"contain at least 1 number or symbol\""
|
|
672
|
+
},
|
|
517
673
|
"formKey": {
|
|
518
674
|
"type": "string",
|
|
519
675
|
"mutable": false,
|
|
@@ -542,7 +698,7 @@ export class PortalRegistrationForm {
|
|
|
542
698
|
"mutable": false,
|
|
543
699
|
"complexType": {
|
|
544
700
|
"original": "DemoData<PortalRegistrationFormViewProps>",
|
|
545
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; }; }",
|
|
701
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState?: RegistrationFormState; enablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel?: string; networkErrorMessage?: string; passwordMismatchErrorMessage?: string; invalidEmailErrorMessage?: string; formDisabledErrorMessage?: string; requiredFieldErrorMessage?: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; }; }",
|
|
546
702
|
"references": {
|
|
547
703
|
"DemoData": {
|
|
548
704
|
"location": "import",
|
package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import jsonpointer from "jsonpointer";
|
|
2
2
|
import { useCallback, useEffect, useRef } from "@saasquatch/universal-hooks";
|
|
3
|
-
import { navigation, useQuery, useRegisterViaRegistrationFormMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
+
import { navigation, useLocale, useQuery, useRegisterViaRegistrationFormMutation, } from "@saasquatch/component-boilerplate";
|
|
4
4
|
import { AsYouType } from "libphonenumber-js";
|
|
5
5
|
import { gql } from "graphql-request";
|
|
6
6
|
import { useRegistrationFormState, } from "./useRegistrationFormState";
|
|
@@ -20,6 +20,7 @@ const RegistrationFormQuery = gql `
|
|
|
20
20
|
export function usePortalRegistrationForm(props) {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
22
22
|
const formRef = useRef(null);
|
|
23
|
+
const locale = useLocale();
|
|
23
24
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
24
25
|
const [request, { loading, errors, data, formError }] = useRegisterViaRegistrationFormMutation();
|
|
25
26
|
const queryResponse = useQuery(RegistrationFormQuery, { key: props.formKey });
|
|
@@ -102,6 +103,7 @@ export function usePortalRegistrationForm(props) {
|
|
|
102
103
|
const variables = {
|
|
103
104
|
key: props.formKey,
|
|
104
105
|
formData: {
|
|
106
|
+
locale,
|
|
105
107
|
email,
|
|
106
108
|
password,
|
|
107
109
|
redirectPath,
|
package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { AuthButtonsContainer, AuthColumn, AuthWrapper } from "../../global/mixins";
|
|
2
|
+
import { AuthButtonsContainer, AuthColumn, AuthWrapper, } from "../../global/mixins";
|
|
3
3
|
import { createStyleSheet } from "../../styling/JSS";
|
|
4
4
|
import { TextSpanView } from "../sqm-text-span/sqm-text-span-view";
|
|
5
5
|
const style = {
|
|
@@ -42,7 +42,7 @@ export function PortalResetPasswordView(props) {
|
|
|
42
42
|
h("style", { type: "text/css" }, styleString),
|
|
43
43
|
h(TextSpanView, { type: "h3" }, states.content.resetPasswordHeader),
|
|
44
44
|
h("sqm-form-message", { class: sheet.classes.CodeSuccess, exportparts: "success-icon" },
|
|
45
|
-
h("div", { part: "successalert-text" },
|
|
45
|
+
h("div", { part: "successalert-text" }, states.content.resetSuccessText)),
|
|
46
46
|
h("div", null,
|
|
47
47
|
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.gotoNextPage, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, states.content.continueButtonText))));
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ export function PortalResetPasswordView(props) {
|
|
|
53
53
|
return (h("div", { class: `${sheet.classes.Wrapper} ${sheet.classes.Column}` },
|
|
54
54
|
h("style", { type: "text/css" }, styleString),
|
|
55
55
|
h("sqm-form-message", { class: sheet.classes.CodeError, type: "error", exportparts: "erroralert-icon" },
|
|
56
|
-
h("div", { part: "erroralert-text" },
|
|
56
|
+
h("div", { part: "erroralert-text" }, states.content.codeInvalidText)),
|
|
57
57
|
h("div", null,
|
|
58
58
|
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed, exportparts: "base: primarybutton-base", type: "primary" }, states.content.continueButtonText))));
|
|
59
59
|
}
|
|
@@ -67,7 +67,7 @@ export function PortalResetPasswordView(props) {
|
|
|
67
67
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
68
68
|
props.states.error && (h("sqm-form-message", { type: "error", class: sheet.classes.Banner, exportparts: "erroralert-icon" },
|
|
69
69
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
70
|
-
!states.reset && (h("sqm-password-field", { fieldLabel: states.content.passwordFieldLabel, demoData: states.passwordDemoData })),
|
|
70
|
+
!states.reset && (h("sqm-password-field", { fieldLabel: states.content.passwordFieldLabel, demoData: states.passwordDemoData, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText })),
|
|
71
71
|
!states.reset && states.confirmPassword && (h("sl-input", { exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, disabled: states.loading, required: true })),
|
|
72
72
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
73
73
|
h("sl-button", { class: sheet.classes.ContinueButton, submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, states.reset
|
|
@@ -57,6 +57,48 @@ export class PortalResetPassword {
|
|
|
57
57
|
* @uiName Password field label
|
|
58
58
|
*/
|
|
59
59
|
this.passwordFieldLabel = "New Password";
|
|
60
|
+
/**
|
|
61
|
+
* @uiName Password requirement met
|
|
62
|
+
*/
|
|
63
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
64
|
+
/**
|
|
65
|
+
* @uiName Password requirement failed
|
|
66
|
+
*/
|
|
67
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
68
|
+
/**
|
|
69
|
+
* @uiName Minimum length text
|
|
70
|
+
*/
|
|
71
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
72
|
+
/**
|
|
73
|
+
* @uiName Missing uppercase text
|
|
74
|
+
*/
|
|
75
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
76
|
+
/**
|
|
77
|
+
* @uiName Missing lowercase text
|
|
78
|
+
*/
|
|
79
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
80
|
+
/**
|
|
81
|
+
* @uiName Missing number or symbol text
|
|
82
|
+
*/
|
|
83
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
84
|
+
/**
|
|
85
|
+
* @uiName Passwords don’t match error message
|
|
86
|
+
* Please make sure your passwords match
|
|
87
|
+
*/
|
|
88
|
+
this.passwordMismatchText = "Passwords do not match.";
|
|
89
|
+
/**
|
|
90
|
+
* @uiName Reset code invalid error message
|
|
91
|
+
*/
|
|
92
|
+
this.codeInvalidText = "The password reset code is invalid or has expired, please try again.";
|
|
93
|
+
/**
|
|
94
|
+
* @uiName Reset success text
|
|
95
|
+
*/
|
|
96
|
+
this.resetSuccessText = "Your password has been reset and you are being redirected. If you are not redirected, please click Continue.";
|
|
97
|
+
/**
|
|
98
|
+
* @uiName Network error message
|
|
99
|
+
* Displayed when the password reset fails due to a network error. The participant can try refreshing the page.
|
|
100
|
+
*/
|
|
101
|
+
this.networkErrorMessage = "An error occurred while resetting your password. Please refresh the page and try again.";
|
|
60
102
|
withHooks(this);
|
|
61
103
|
}
|
|
62
104
|
disconnectedCallback() { }
|
|
@@ -267,12 +309,222 @@ export class PortalResetPassword {
|
|
|
267
309
|
"reflect": false,
|
|
268
310
|
"defaultValue": "\"New Password\""
|
|
269
311
|
},
|
|
312
|
+
"meetsRequirementsText": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "string",
|
|
317
|
+
"resolved": "string",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": false,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [{
|
|
324
|
+
"text": "Password requirement met",
|
|
325
|
+
"name": "uiName"
|
|
326
|
+
}],
|
|
327
|
+
"text": ""
|
|
328
|
+
},
|
|
329
|
+
"attribute": "meets-requirements-text",
|
|
330
|
+
"reflect": false,
|
|
331
|
+
"defaultValue": "\"Password has met all requirements\""
|
|
332
|
+
},
|
|
333
|
+
"doesNotMeetRequirementsText": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "string",
|
|
338
|
+
"resolved": "string",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": false,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [{
|
|
345
|
+
"text": "Password requirement failed",
|
|
346
|
+
"name": "uiName"
|
|
347
|
+
}],
|
|
348
|
+
"text": ""
|
|
349
|
+
},
|
|
350
|
+
"attribute": "does-not-meet-requirements-text",
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"defaultValue": "\"Password must meet the following requirements:\""
|
|
353
|
+
},
|
|
354
|
+
"minErrorText": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "string",
|
|
359
|
+
"resolved": "string",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [{
|
|
366
|
+
"text": "Minimum length text",
|
|
367
|
+
"name": "uiName"
|
|
368
|
+
}],
|
|
369
|
+
"text": ""
|
|
370
|
+
},
|
|
371
|
+
"attribute": "min-error-text",
|
|
372
|
+
"reflect": false,
|
|
373
|
+
"defaultValue": "\"be a minimum of 8 characters\""
|
|
374
|
+
},
|
|
375
|
+
"uppercaseErrorText": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"mutable": false,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "string",
|
|
380
|
+
"resolved": "string",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": false,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [{
|
|
387
|
+
"text": "Missing uppercase text",
|
|
388
|
+
"name": "uiName"
|
|
389
|
+
}],
|
|
390
|
+
"text": ""
|
|
391
|
+
},
|
|
392
|
+
"attribute": "uppercase-error-text",
|
|
393
|
+
"reflect": false,
|
|
394
|
+
"defaultValue": "\"contain at least 1 uppercase character\""
|
|
395
|
+
},
|
|
396
|
+
"lowercaseErrorText": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "string",
|
|
401
|
+
"resolved": "string",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [{
|
|
408
|
+
"text": "Missing lowercase text",
|
|
409
|
+
"name": "uiName"
|
|
410
|
+
}],
|
|
411
|
+
"text": ""
|
|
412
|
+
},
|
|
413
|
+
"attribute": "lowercase-error-text",
|
|
414
|
+
"reflect": false,
|
|
415
|
+
"defaultValue": "\"contain at least 1 lowercase character\""
|
|
416
|
+
},
|
|
417
|
+
"hasErrorText": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "string",
|
|
422
|
+
"resolved": "string",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": false,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [{
|
|
429
|
+
"text": "Missing number or symbol text",
|
|
430
|
+
"name": "uiName"
|
|
431
|
+
}],
|
|
432
|
+
"text": ""
|
|
433
|
+
},
|
|
434
|
+
"attribute": "has-error-text",
|
|
435
|
+
"reflect": false,
|
|
436
|
+
"defaultValue": "\"contain at least 1 number or symbol\""
|
|
437
|
+
},
|
|
438
|
+
"passwordMismatchText": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"mutable": false,
|
|
441
|
+
"complexType": {
|
|
442
|
+
"original": "string",
|
|
443
|
+
"resolved": "string",
|
|
444
|
+
"references": {}
|
|
445
|
+
},
|
|
446
|
+
"required": false,
|
|
447
|
+
"optional": false,
|
|
448
|
+
"docs": {
|
|
449
|
+
"tags": [{
|
|
450
|
+
"text": "Passwords don\u2019t match error message\nPlease make sure your passwords match",
|
|
451
|
+
"name": "uiName"
|
|
452
|
+
}],
|
|
453
|
+
"text": ""
|
|
454
|
+
},
|
|
455
|
+
"attribute": "password-mismatch-text",
|
|
456
|
+
"reflect": false,
|
|
457
|
+
"defaultValue": "\"Passwords do not match.\""
|
|
458
|
+
},
|
|
459
|
+
"codeInvalidText": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"mutable": false,
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "string",
|
|
464
|
+
"resolved": "string",
|
|
465
|
+
"references": {}
|
|
466
|
+
},
|
|
467
|
+
"required": false,
|
|
468
|
+
"optional": false,
|
|
469
|
+
"docs": {
|
|
470
|
+
"tags": [{
|
|
471
|
+
"text": "Reset code invalid error message",
|
|
472
|
+
"name": "uiName"
|
|
473
|
+
}],
|
|
474
|
+
"text": ""
|
|
475
|
+
},
|
|
476
|
+
"attribute": "code-invalid-text",
|
|
477
|
+
"reflect": false,
|
|
478
|
+
"defaultValue": "\"The password reset code is invalid or has expired, please try again.\""
|
|
479
|
+
},
|
|
480
|
+
"resetSuccessText": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"mutable": false,
|
|
483
|
+
"complexType": {
|
|
484
|
+
"original": "string",
|
|
485
|
+
"resolved": "string",
|
|
486
|
+
"references": {}
|
|
487
|
+
},
|
|
488
|
+
"required": false,
|
|
489
|
+
"optional": false,
|
|
490
|
+
"docs": {
|
|
491
|
+
"tags": [{
|
|
492
|
+
"text": "Reset success text",
|
|
493
|
+
"name": "uiName"
|
|
494
|
+
}],
|
|
495
|
+
"text": ""
|
|
496
|
+
},
|
|
497
|
+
"attribute": "reset-success-text",
|
|
498
|
+
"reflect": false,
|
|
499
|
+
"defaultValue": "\"Your password has been reset and you are being redirected. If you are not redirected, please click Continue.\""
|
|
500
|
+
},
|
|
501
|
+
"networkErrorMessage": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"mutable": false,
|
|
504
|
+
"complexType": {
|
|
505
|
+
"original": "string",
|
|
506
|
+
"resolved": "string",
|
|
507
|
+
"references": {}
|
|
508
|
+
},
|
|
509
|
+
"required": false,
|
|
510
|
+
"optional": false,
|
|
511
|
+
"docs": {
|
|
512
|
+
"tags": [{
|
|
513
|
+
"text": "Network error message\nDisplayed when the password reset fails due to a network error. The participant can try refreshing the page.",
|
|
514
|
+
"name": "uiName"
|
|
515
|
+
}],
|
|
516
|
+
"text": ""
|
|
517
|
+
},
|
|
518
|
+
"attribute": "network-error-message",
|
|
519
|
+
"reflect": false,
|
|
520
|
+
"defaultValue": "\"An error occurred while resetting your password. Please refresh the page and try again.\""
|
|
521
|
+
},
|
|
270
522
|
"demoData": {
|
|
271
523
|
"type": "unknown",
|
|
272
524
|
"mutable": false,
|
|
273
525
|
"complexType": {
|
|
274
526
|
"original": "DemoData<PortalResetPasswordViewProps>",
|
|
275
|
-
"resolved": "{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }",
|
|
527
|
+
"resolved": "{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; meetsRequirementsText?: string; doesNotMeetRequirementsText?: string; minErrorText?: string; uppercaseErrorText?: string; lowercaseErrorText?: string; hasErrorText?: string; resetSuccessText?: string; passwordMismatchText?: string; codeInvalidText?: string; }; }; }",
|
|
276
528
|
"references": {
|
|
277
529
|
"DemoData": {
|
|
278
530
|
"location": "import",
|
|
@@ -318,6 +570,15 @@ function usePortalResetPasswordDemo(props) {
|
|
|
318
570
|
resetPasswordButtonText: props.resetPasswordButtonText,
|
|
319
571
|
confirmPasswordFieldLabel: props.confirmPasswordFieldLabel,
|
|
320
572
|
passwordFieldLabel: props.passwordFieldLabel,
|
|
573
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
574
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
575
|
+
minErrorText: props.minErrorText,
|
|
576
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
577
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
578
|
+
hasErrorText: props.hasErrorText,
|
|
579
|
+
passwordMismatchText: props.passwordMismatchText,
|
|
580
|
+
codeInvalidText: props.codeInvalidText,
|
|
581
|
+
resetSuccessText: props.resetSuccessText,
|
|
321
582
|
},
|
|
322
583
|
},
|
|
323
584
|
callbacks: {
|
|
@@ -15,7 +15,7 @@ export function usePortalResetPassword(props) {
|
|
|
15
15
|
const verifyPasswordResetCodeAndHandleResponse = async () => {
|
|
16
16
|
const result = await verifyPasswordResetCode({ oobCode });
|
|
17
17
|
if (result instanceof Error) {
|
|
18
|
-
setError(
|
|
18
|
+
setError(props.networkErrorMessage);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
useEffect(() => {
|
|
@@ -29,12 +29,12 @@ export function usePortalResetPassword(props) {
|
|
|
29
29
|
});
|
|
30
30
|
const variables = { oobCode, password: formData.password };
|
|
31
31
|
if (formData.password !== formData.confirmPassword) {
|
|
32
|
-
setError(
|
|
32
|
+
setError(props.passwordMismatchText);
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
const result = await resetPassword(variables);
|
|
36
36
|
if (result instanceof Error) {
|
|
37
|
-
return setError(
|
|
37
|
+
return setError(props.networkErrorMessage);
|
|
38
38
|
}
|
|
39
39
|
if (result.resetManagedIdentityPassword) {
|
|
40
40
|
setReset(true);
|
|
@@ -70,6 +70,15 @@ export function usePortalResetPassword(props) {
|
|
|
70
70
|
resetPasswordButtonText: props.resetPasswordButtonText,
|
|
71
71
|
confirmPasswordFieldLabel: props.confirmPasswordFieldLabel,
|
|
72
72
|
passwordFieldLabel: props.passwordFieldLabel,
|
|
73
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
74
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
75
|
+
minErrorText: props.minErrorText,
|
|
76
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
77
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
78
|
+
hasErrorText: props.hasErrorText,
|
|
79
|
+
passwordMismatchText: props.passwordMismatchText,
|
|
80
|
+
codeInvalidText: props.codeInvalidText,
|
|
81
|
+
resetSuccessText: props.resetSuccessText,
|
|
73
82
|
},
|
|
74
83
|
},
|
|
75
84
|
callbacks: { submit, failed, gotoNextPage },
|
|
@@ -20,6 +20,11 @@ const errorProps = {
|
|
|
20
20
|
gotoNextPage: () => console.log("next page"),
|
|
21
21
|
failed: () => console.log("failed"),
|
|
22
22
|
},
|
|
23
|
+
content: {
|
|
24
|
+
verifyEmailText: "Verify your email",
|
|
25
|
+
verifySuccessText: "Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",
|
|
26
|
+
verifyInvalidText: "The email verification code is invalid or has expired, please try again.",
|
|
27
|
+
},
|
|
23
28
|
};
|
|
24
29
|
const verifiedProps = {
|
|
25
30
|
states: {
|
|
@@ -34,6 +39,7 @@ const verifiedProps = {
|
|
|
34
39
|
gotoNextPage: () => console.log("next page"),
|
|
35
40
|
failed: () => console.log("failed"),
|
|
36
41
|
},
|
|
42
|
+
content: {},
|
|
37
43
|
};
|
|
38
44
|
export const EmailVerificationWithError = () => (h(PortalVerifyEmailView, Object.assign({}, errorProps)));
|
|
39
45
|
export const EmailVerificationSuccess = () => (h(PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
@@ -20,23 +20,23 @@ const vanillaStyle = `
|
|
|
20
20
|
const sheet = createStyleSheet(style);
|
|
21
21
|
const styleString = sheet.toString();
|
|
22
22
|
export function PortalVerifyEmailView(props) {
|
|
23
|
-
const { states, data, callbacks } = props;
|
|
23
|
+
const { states, data, callbacks, content } = props;
|
|
24
24
|
if (states.verified) {
|
|
25
25
|
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
26
26
|
h("style", { type: "text/css" },
|
|
27
27
|
vanillaStyle,
|
|
28
28
|
styleString),
|
|
29
|
-
h(TextSpanView, { type: "h3" },
|
|
29
|
+
h(TextSpanView, { type: "h3" }, content.verifyEmailText),
|
|
30
30
|
h("sqm-form-message", { exportparts: "success-icon" },
|
|
31
|
-
h("div", { part: "successalert-text" },
|
|
32
|
-
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.gotoNextPage, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" },
|
|
31
|
+
h("div", { part: "successalert-text" }, content.verifySuccessText)),
|
|
32
|
+
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.gotoNextPage, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.continueText)));
|
|
33
33
|
}
|
|
34
34
|
if (states.error || !data.oobCode) {
|
|
35
35
|
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
36
36
|
h("style", { type: "text/css" }, styleString),
|
|
37
|
-
h(TextSpanView, { type: "h3" },
|
|
37
|
+
h(TextSpanView, { type: "h3" }, content.verifyEmailText),
|
|
38
38
|
h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
39
|
-
h("div", { part: "erroralert-text" },
|
|
40
|
-
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" },
|
|
39
|
+
h("div", { part: "erroralert-text" }, content.verifyInvalidText)),
|
|
40
|
+
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.failed, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.continueText)));
|
|
41
41
|
}
|
|
42
42
|
}
|