@saasquatch/mint-components 1.6.2-2 → 1.6.2-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/useValidationState-adb2b066.js → cjs/AsYouType-6788393a.js} +2 -10
- package/dist/cjs/{GenericTableView-4921be4b.js → GenericTableView-9271483b.js} +3 -3
- package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-aa14c0c4.js → ShadowViewAddon-312e517f.js} +33 -30
- package/dist/cjs/{global-5e3deef1.js → global-b645d18a.js} +5 -15
- package/dist/cjs/{index.module-ffe1aa35.js → index.module-93c78ac7.js} +6884 -6841
- 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/raisins-plop-target.cjs.entry.js +2 -5
- package/dist/cjs/{re-render-8fee17a9.js → re-render-afeabe91.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +7 -8
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +190 -193
- package/dist/cjs/sqm-empty_5.cjs.entry.js +4 -5
- 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-header-logo.cjs.entry.js +30 -0
- package/dist/cjs/{sqm-hero-view-46223e34.js → sqm-hero-view-ba78dcaf.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-9820193d.js → sqm-navigation-sidebar-item-view-2eda59bf.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-2ffde416.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +23 -18
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-2ddcaa12.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-57fbd19b.js → sqm-portal-email-verification-view-b280d0b0.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +27 -29
- package/dist/cjs/{sqm-portal-footer-view-eb757378.js → sqm-portal-footer-view-6b0660cf.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +17 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-ccaf2bd4.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-7cb535a8.js → sqm-portal-profile-view-e615e2b2.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +26 -37
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +13 -11
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +116 -69
- package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-4d23de69.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +46 -53
- package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-96adafc0.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +37 -56
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +15 -16
- 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 +26 -21
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +117 -115
- 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-2c7d94b5.js → sqm-text-span-view-b318af73.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-c0cc8f5d.js +32 -0
- package/dist/cjs/{useReferralTable-7e18f12e.js → useReferralTable-db1b33db.js} +10 -10
- package/dist/cjs/useRegistrationFormState-d0e43ca9.js +23 -0
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.js → raisins-plop-target/raisins-plop-target.js} +1 -6
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +2 -2
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +11 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +1 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +8 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +1 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +1 -0
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +1 -0
- package/dist/collection/components/sqm-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.js +2 -2
- package/dist/collection/components/sqm-image/sqm-image.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +7 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +9 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +7 -4
- package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -3
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +7 -1
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +3 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +7 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +15 -11
- package/dist/collection/components/sqm-password-field/usePasswordField.js +6 -3
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +3 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +19 -13
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +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 +43 -7
- 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 +0 -4
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -1
- 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 +10 -9
- 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 +46 -42
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +22 -20
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +17 -10
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +67 -41
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +74 -31
- 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 +32 -26
- 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 +21 -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 +2 -2
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +8 -8
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +15 -9
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +2 -1
- package/dist/collection/components/sqm-router/sqm-router.js +2 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -1
- package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +14 -2
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +11 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -3
- package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -3
- package/dist/collection/components/sqm-text/sqm-text.js +0 -7
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +8 -8
- package/dist/collection/global/styles.js +2 -12
- package/dist/collection/global/styles.ts +2 -12
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/collection/tables/useChildElements.js +13 -4
- package/dist/{cjs/useValidationState-63f00763.js → esm/AsYouType-46f67d0d.js} +1 -15
- package/dist/esm/{GenericTableView-59c5d47c.js → GenericTableView-ce26115f.js} +3 -3
- package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
- package/dist/esm/{ShadowViewAddon-3626a92b.js → ShadowViewAddon-b7ca4ee5.js} +33 -30
- package/dist/esm/{global-0842e0e4.js → global-c2d5e2fa.js} +5 -15
- package/dist/esm/{index.module-96470dcf.js → index.module-25496635.js} +6865 -6822
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm/mint-components.js +5 -6
- package/dist/esm/raisins-plop-target.entry.js +6 -9
- package/dist/esm/{re-render-f444e556.js → re-render-8ece93cd.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +7 -8
- package/dist/esm/sqm-big-stat_35.entry.js +184 -187
- package/dist/esm/sqm-empty_5.entry.js +4 -5
- 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-header-logo.entry.js +26 -0
- package/dist/esm/{sqm-hero-view-93fac447.js → sqm-hero-view-b8ce1900.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-fb10e0c2.js → sqm-navigation-sidebar-item-view-24d5f092.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -8
- package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -4
- package/dist/esm/sqm-password-field.entry.js +23 -18
- package/dist/esm/sqm-popup-container.entry.js +6 -7
- package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-f6daf315.js → sqm-portal-email-verification-view-4fa01d0a.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +27 -29
- package/dist/esm/{sqm-portal-footer-view-42db3277.js → sqm-portal-footer-view-b68f250d.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +17 -9
- package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.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-dd2774b2.js → sqm-portal-profile-view-ec58906b.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +26 -37
- package/dist/esm/sqm-portal-protected-route.entry.js +13 -11
- package/dist/esm/sqm-portal-registration-form.entry.js +114 -67
- package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +46 -53
- package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +37 -56
- package/dist/esm/sqm-referral-table_11.entry.js +15 -16
- 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 +26 -21
- package/dist/esm/sqm-stencilbook.entry.js +117 -115
- 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-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -4
- package/dist/esm/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm/{use-callback-69ec5c5c.js → use-callback-684c8bb7.js} +1 -1
- package/dist/esm/useChildElements-d86f03c6.js +30 -0
- package/dist/esm/{useReferralTable-0a8ee3b7.js → useReferralTable-7aeb954d.js} +10 -10
- package/dist/esm/useRegistrationFormState-e94eec81.js +18 -0
- package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
- package/dist/esm-es5/{GenericTableView-59c5d47c.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-b7ca4ee5.js +1 -0
- package/dist/esm-es5/{global-0842e0e4.js → global-c2d5e2fa.js} +2 -2
- package/dist/esm-es5/index.module-25496635.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-f444e556.js → re-render-8ece93cd.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.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-header-logo.entry.js +1 -0
- package/dist/esm-es5/{sqm-hero-view-93fac447.js → sqm-hero-view-b8ce1900.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-fb10e0c2.js → sqm-navigation-sidebar-item-view-24d5f092.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.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-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-f6daf315.js → sqm-portal-email-verification-view-4fa01d0a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-42db3277.js → sqm-portal-footer-view-b68f250d.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.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-dd2774b2.js → sqm-portal-profile-view-ec58906b.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.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-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
- package/dist/esm-es5/useChildElements-d86f03c6.js +1 -0
- package/dist/esm-es5/useReferralTable-7aeb954d.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-e94eec81.js +1 -0
- package/dist/mint-components/global/styles.ts +2 -12
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01016d01.entry.js +1 -0
- package/dist/mint-components/p-02cc2ae0.entry.js +1 -0
- package/dist/mint-components/{p-ea1b0e1c.js → p-0425104d.js} +2 -2
- package/dist/mint-components/{p-ec689579.js → p-043501b1.js} +1 -1
- package/dist/mint-components/p-0c98df9a.system.entry.js +1 -0
- package/dist/mint-components/{p-3abbc5b3.system.js → p-0e6f1340.system.js} +1 -1
- package/dist/mint-components/{p-b7e6ce3c.system.js → p-0f20108e.system.js} +1 -1
- package/dist/mint-components/p-0f3c6e11.entry.js +1 -0
- package/dist/mint-components/p-11a4a003.system.js +1 -0
- package/dist/mint-components/p-121cdc60.js +1 -0
- package/dist/mint-components/{p-50cb9888.js → p-13cfd4bd.js} +1 -1
- package/dist/mint-components/p-175ef60c.js +1 -0
- package/dist/mint-components/{p-e907c45c.system.js → p-177f1699.system.js} +1 -1
- package/dist/mint-components/{p-958d913e.js → p-19deed13.js} +1 -1
- package/dist/mint-components/p-19f572c9.entry.js +1 -0
- package/dist/mint-components/p-1a673057.system.js +8 -0
- package/dist/mint-components/p-1cb7125b.entry.js +1 -0
- package/dist/mint-components/{p-42133e0b.entry.js → p-1f6d8c42.entry.js} +12 -12
- package/dist/mint-components/{p-f9056e14.system.js → p-20268b64.system.js} +1 -1
- package/dist/mint-components/p-233e784a.js +1 -0
- package/dist/mint-components/p-23ce9541.system.entry.js +1 -0
- package/dist/mint-components/{p-210cd41b.js → p-24d6c3fd.js} +1 -1
- package/dist/mint-components/{p-b0668789.system.js → p-27da3d2f.system.js} +1 -1
- package/dist/mint-components/{p-4778fb68.js → p-2895613d.js} +1 -1
- package/dist/mint-components/p-28b0cd34.entry.js +1 -0
- package/dist/mint-components/p-29c42c90.system.entry.js +1 -0
- package/dist/mint-components/p-3245da29.entry.js +9 -0
- package/dist/mint-components/{p-19266514.js → p-33fe169e.js} +1 -1
- package/dist/mint-components/p-3435cd60.system.entry.js +1 -0
- package/dist/mint-components/p-369d00f3.system.entry.js +1 -0
- package/dist/mint-components/{p-5d80f75a.entry.js → p-3aa067f0.entry.js} +2 -2
- package/dist/mint-components/{p-433f243c.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
- package/dist/mint-components/p-3cd4d8bb.system.entry.js +1 -0
- package/dist/mint-components/p-3f15986b.entry.js +1 -0
- package/dist/mint-components/p-40a8ea40.entry.js +1 -0
- package/dist/mint-components/p-41962e08.js +1 -0
- package/dist/mint-components/p-4352909d.js +1 -0
- package/dist/mint-components/p-4560faa8.entry.js +1 -0
- package/dist/mint-components/{p-2cac212f.system.js → p-486f5810.system.js} +1 -1
- package/dist/mint-components/p-49c7d8f5.system.entry.js +1 -0
- package/dist/mint-components/p-4a5d61fe.entry.js +99 -0
- package/dist/mint-components/p-4b83d7ea.js +1 -0
- package/dist/mint-components/p-4cc59fed.system.entry.js +1 -0
- package/dist/mint-components/{p-b1441d8e.system.entry.js → p-4d4e5ac4.system.entry.js} +1 -1
- package/dist/mint-components/p-528ce342.system.entry.js +1 -0
- package/dist/mint-components/{p-78c7b4b7.js → p-538904bd.js} +1 -1
- package/dist/mint-components/p-54db9721.js +1 -0
- package/dist/mint-components/p-58c173ff.entry.js +1 -0
- package/dist/mint-components/p-5b51f97d.system.entry.js +1 -0
- package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
- package/dist/mint-components/p-5d815633.system.entry.js +1 -0
- package/dist/mint-components/p-5d86baae.entry.js +13 -0
- package/dist/mint-components/p-5effdc5e.system.entry.js +1 -0
- package/dist/mint-components/p-61b954e7.entry.js +1 -0
- package/dist/mint-components/p-674c9b4b.system.entry.js +1 -0
- package/dist/mint-components/{p-9bac73dc.system.js → p-684aadb5.system.js} +1 -1
- package/dist/mint-components/p-6a529e0e.entry.js +1 -0
- package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
- package/dist/mint-components/{p-b22b94ac.js → p-6dd27a5e.js} +1 -1
- package/dist/mint-components/p-76f151b2.entry.js +1 -0
- package/dist/mint-components/p-783b8440.entry.js +1 -0
- package/dist/mint-components/p-7850a5e5.system.js +1 -0
- package/dist/mint-components/{p-1c24a18c.js → p-78dcf8ff.js} +1 -1
- package/dist/mint-components/p-7aa067b0.system.entry.js +1 -0
- package/dist/mint-components/p-7ab63827.entry.js +1 -0
- package/dist/mint-components/{p-092d030a.system.js → p-7e6c6d95.system.js} +1 -1
- package/dist/mint-components/{p-d7d007fb.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
- package/dist/mint-components/p-89c64db7.entry.js +1 -0
- package/dist/mint-components/{p-dd627dd0.entry.js → p-8a2c78e0.entry.js} +1 -1
- package/dist/mint-components/{p-bd32d6f4.js → p-914511f3.js} +2 -2
- package/dist/mint-components/p-92110eef.entry.js +1 -0
- package/dist/mint-components/{p-1b962e50.system.js → p-94578d79.system.js} +1 -1
- package/dist/mint-components/p-94e85aa5.system.entry.js +1 -0
- package/dist/mint-components/p-95b461dd.system.entry.js +1 -0
- package/dist/mint-components/p-976604c2.entry.js +33 -0
- package/dist/mint-components/p-99397ef5.system.js +1 -0
- package/dist/mint-components/p-9a87d5ae.system.entry.js +1 -0
- package/dist/mint-components/p-9d362d44.system.js +1 -0
- package/dist/mint-components/p-9db0c9fc.system.entry.js +1 -0
- package/dist/mint-components/p-9fa6c616.entry.js +1 -0
- package/dist/mint-components/{p-95f70cb1.js → p-a1434ef0.js} +1 -1
- package/dist/mint-components/{p-275cf42f.js → p-a4505a80.js} +1 -1
- package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
- package/dist/mint-components/p-aa893634.entry.js +1 -0
- package/dist/mint-components/p-aefc2633.system.entry.js +1 -0
- package/dist/mint-components/p-b01e28dd.system.js +1 -0
- package/dist/mint-components/p-b17ec97c.system.js +1 -0
- package/dist/mint-components/{p-6b5fbbdb.js → p-b21814ac.js} +1 -1
- package/dist/mint-components/p-b33e0421.system.js +1 -0
- package/dist/mint-components/p-bd3c2e67.system.js +1 -0
- package/dist/mint-components/{p-e2bf9132.system.js → p-bef0a1f4.system.js} +1 -1
- package/dist/mint-components/p-bf17dc65.system.js +1 -0
- package/dist/mint-components/p-c869970e.system.entry.js +1 -0
- package/dist/mint-components/p-cdec6312.system.entry.js +1 -0
- package/dist/mint-components/p-cef45012.js +1 -0
- package/dist/mint-components/p-d1341773.entry.js +1 -0
- package/dist/mint-components/{p-5a7f7362.system.js → p-d20361b8.system.js} +1 -1
- package/dist/mint-components/{p-8a0cf4be.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-dbfb865e.js +1 -0
- package/dist/mint-components/p-de745531.system.entry.js +1 -0
- package/dist/mint-components/p-e0de4ac3.entry.js +1 -0
- package/dist/mint-components/p-e4d76dfb.system.entry.js +1 -0
- package/dist/mint-components/p-e5380001.system.entry.js +1 -0
- package/dist/mint-components/{p-192617e7.system.js → p-e58c257b.system.js} +1 -1
- package/dist/mint-components/p-e58df0ff.system.entry.js +1 -0
- package/dist/mint-components/p-e67fc6a5.entry.js +1 -0
- package/dist/mint-components/{p-1644c8e4.js → p-e733843b.js} +1 -1
- package/dist/mint-components/p-eaa9a926.entry.js +1 -0
- package/dist/mint-components/p-eb5835b3.js +268 -0
- package/dist/mint-components/{p-19b0e2b5.system.js → p-ef18a3bd.system.js} +1 -1
- package/dist/mint-components/p-f75f56f6.system.entry.js +1 -0
- package/dist/mint-components/{p-b02064c4.system.js → p-fdcd2b8f.system.js} +2 -2
- package/dist/mint-components/p-fe74b75b.system.entry.js +1 -0
- package/dist/types/components/raisins-plop-target/raisins-plop-target.d.ts +9 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +6 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +6 -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-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.d.ts +2 -2
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +5 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +2 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -3
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +5 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +2 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +9 -4
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +3 -1
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +3 -2
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +2 -2
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +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 +12 -3
- 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.d.ts +2 -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 +7 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +18 -18
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +25 -18
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +3 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +17 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +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 +2 -2
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -3
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +3 -3
- package/dist/types/components/sqm-route/sqm-route.d.ts +2 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +6 -0
- package/dist/types/components/sqm-table-row/sqm-table-row.d.ts +7 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -3
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -2
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -7
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +4 -4
- package/dist/types/components.d.ts +341 -761
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -4
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +0 -89
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +0 -100
- package/dist/cjs/sqm-qa.cjs.entry.js +0 -112
- package/dist/cjs/useChildElements-a7a7b921.js +0 -23
- package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
- package/dist/collection/assets/saasquatch-logo-wide.jpeg +0 -0
- package/dist/collection/assets/saasquatch-logo.png +0 -0
- package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1038
- package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +0 -79
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +0 -56
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +0 -70
- package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +0 -491
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +0 -31
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +0 -59
- package/dist/collection/components/sqm-qa-tabs/useTabs.js +0 -46
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm/sqm-qa-referral-card.entry.js +0 -85
- package/dist/esm/sqm-qa-tabs.entry.js +0 -96
- package/dist/esm/sqm-qa.entry.js +0 -108
- package/dist/esm/useChildElements-756c6a81.js +0 -21
- package/dist/esm-es5/ShadowViewAddon-3626a92b.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-96470dcf.js +0 -1
- package/dist/esm-es5/sqm-qa-referral-card.entry.js +0 -1
- package/dist/esm-es5/sqm-qa-tabs.entry.js +0 -1
- package/dist/esm-es5/sqm-qa.entry.js +0 -1
- package/dist/esm-es5/use-callback-69ec5c5c.js +0 -1
- package/dist/esm-es5/useChildElements-756c6a81.js +0 -1
- package/dist/esm-es5/useReferralTable-0a8ee3b7.js +0 -1
- package/dist/esm-es5/useValidationState-adb2b066.js +0 -1
- package/dist/mint-components/p-0777ac5b.entry.js +0 -9
- package/dist/mint-components/p-09551f97.entry.js +0 -1
- package/dist/mint-components/p-0b7ec490.entry.js +0 -1
- package/dist/mint-components/p-0b838d31.entry.js +0 -1
- package/dist/mint-components/p-14e28fcc.entry.js +0 -1
- package/dist/mint-components/p-16beb451.system.entry.js +0 -1
- package/dist/mint-components/p-19dfb893.system.entry.js +0 -1
- package/dist/mint-components/p-1bd5cd35.system.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1ff7ee8a.entry.js +0 -1
- package/dist/mint-components/p-22b45a04.system.entry.js +0 -1
- package/dist/mint-components/p-23485cfe.system.js +0 -1
- package/dist/mint-components/p-27a8ee57.system.entry.js +0 -1
- package/dist/mint-components/p-27aac88b.system.entry.js +0 -1
- package/dist/mint-components/p-27ed7b95.js +0 -1
- package/dist/mint-components/p-2809a9c7.system.entry.js +0 -1
- package/dist/mint-components/p-29f82c6d.system.entry.js +0 -1
- package/dist/mint-components/p-2b2ed97b.entry.js +0 -1
- package/dist/mint-components/p-2c4da197.entry.js +0 -1
- package/dist/mint-components/p-2ec62a9b.system.entry.js +0 -1
- package/dist/mint-components/p-3364ee29.system.entry.js +0 -1
- package/dist/mint-components/p-33a8d572.entry.js +0 -33
- package/dist/mint-components/p-380c3d58.system.entry.js +0 -1
- package/dist/mint-components/p-3c7b3831.entry.js +0 -1
- package/dist/mint-components/p-42994d5d.entry.js +0 -99
- package/dist/mint-components/p-42d3eb3e.system.js +0 -1
- package/dist/mint-components/p-46ed891a.entry.js +0 -1
- package/dist/mint-components/p-49e61dc4.entry.js +0 -1
- package/dist/mint-components/p-4a0ef2d3.entry.js +0 -1
- package/dist/mint-components/p-4c2cec5c.system.entry.js +0 -1
- package/dist/mint-components/p-4c93df52.entry.js +0 -1
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-51dd860c.system.entry.js +0 -1
- package/dist/mint-components/p-5660e578.system.js +0 -1
- package/dist/mint-components/p-577299fe.system.entry.js +0 -1
- package/dist/mint-components/p-57b7a680.entry.js +0 -1
- package/dist/mint-components/p-5928afc0.js +0 -1
- package/dist/mint-components/p-5da081c3.entry.js +0 -1
- package/dist/mint-components/p-5e6890eb.system.entry.js +0 -1
- package/dist/mint-components/p-61eeea9e.entry.js +0 -1
- package/dist/mint-components/p-7dff3e29.entry.js +0 -1
- package/dist/mint-components/p-80981da1.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-8390e33e.system.entry.js +0 -1
- package/dist/mint-components/p-89d8133d.entry.js +0 -1
- package/dist/mint-components/p-8c1348dc.system.js +0 -1
- package/dist/mint-components/p-8dfe5873.system.entry.js +0 -1
- package/dist/mint-components/p-90bd03bb.entry.js +0 -1
- package/dist/mint-components/p-99830904.system.entry.js +0 -1
- package/dist/mint-components/p-9bb39058.system.entry.js +0 -1
- package/dist/mint-components/p-9ef39196.system.entry.js +0 -1
- package/dist/mint-components/p-a3f87461.entry.js +0 -1
- package/dist/mint-components/p-a4fa8ba2.system.js +0 -1
- package/dist/mint-components/p-a6291305.system.entry.js +0 -1
- package/dist/mint-components/p-a9d7eb10.js +0 -1
- package/dist/mint-components/p-b17b4a61.system.entry.js +0 -1
- package/dist/mint-components/p-b5bfb818.system.js +0 -1
- package/dist/mint-components/p-bf298e68.js +0 -1
- package/dist/mint-components/p-c2aecbd1.js +0 -268
- package/dist/mint-components/p-c2b5997d.entry.js +0 -1
- package/dist/mint-components/p-c88cb982.entry.js +0 -1
- package/dist/mint-components/p-c8e8aab7.js +0 -1
- package/dist/mint-components/p-c9977e50.system.entry.js +0 -1
- package/dist/mint-components/p-ca2819e8.system.js +0 -1
- package/dist/mint-components/p-cc6f7cb5.entry.js +0 -1
- package/dist/mint-components/p-cdabe7a8.js +0 -1
- package/dist/mint-components/p-d1aef95c.entry.js +0 -1
- package/dist/mint-components/p-d1e6d105.system.entry.js +0 -1
- package/dist/mint-components/p-d5d32d0d.system.js +0 -8
- package/dist/mint-components/p-d5e12393.system.entry.js +0 -1
- package/dist/mint-components/p-d8876d3f.js +0 -1
- package/dist/mint-components/p-daf8de5c.entry.js +0 -1
- package/dist/mint-components/p-dec7a657.entry.js +0 -1
- package/dist/mint-components/p-e0140005.system.entry.js +0 -1
- package/dist/mint-components/p-e6eedd9e.js +0 -1
- package/dist/mint-components/p-e8acccb5.system.js +0 -1
- package/dist/mint-components/p-f2bd9120.system.entry.js +0 -1
- package/dist/mint-components/p-ffe8c6ce.system.entry.js +0 -1
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -250
- package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +0 -14
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +0 -20
- package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +0 -15
- package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +0 -23
- package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +0 -9
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts +0 -11
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/docs/grapesjs.js +0 -54
|
@@ -5,7 +5,10 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { NameFieldsView } from "./sqm-name-fields-view";
|
|
6
6
|
import { useNameFields } from "./useNameFields";
|
|
7
7
|
/**
|
|
8
|
-
* @uiName Name Fields
|
|
8
|
+
* @uiName Form Name Fields
|
|
9
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
10
|
+
* @exampleGroup Microsite Components
|
|
11
|
+
* @example Form Name Fields - <sqm-name-fields first-name-label="First Name" last-name-label="Last Name"></sqm-name-fields>
|
|
9
12
|
*/
|
|
10
13
|
export class NameFields {
|
|
11
14
|
constructor() {
|
|
@@ -74,7 +77,7 @@ export class NameFields {
|
|
|
74
77
|
"mutable": false,
|
|
75
78
|
"complexType": {
|
|
76
79
|
"original": "DemoData<NameFieldsViewProps>",
|
|
77
|
-
"resolved": "{ states?: { validationErrors?: ValidationErrors; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
|
|
80
|
+
"resolved": "{ states?: { validationErrors?: ValidationErrors; registrationFormState?: RegistrationFormState; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
|
|
78
81
|
"references": {
|
|
79
82
|
"DemoData": {
|
|
80
83
|
"location": "import",
|
|
@@ -109,8 +112,8 @@ function useNameFieldsDemo(props) {
|
|
|
109
112
|
states: {
|
|
110
113
|
validationErrors: [],
|
|
111
114
|
content: {
|
|
112
|
-
firstNameLabel:
|
|
113
|
-
lastNameLabel:
|
|
115
|
+
firstNameLabel: props.firstNameLabel,
|
|
116
|
+
lastNameLabel: props.lastNameLabel,
|
|
114
117
|
},
|
|
115
118
|
},
|
|
116
119
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { useDomContext } from "@saasquatch/stencil-hooks";
|
|
2
2
|
import { FORM_VALIDATION_CONTEXT, } from "../sqm-portal-register/useValidationState";
|
|
3
|
+
import { REGISTRATION_FORM_STATE_CONTEXT, } from "../sqm-portal-registration-form/useRegistrationFormState";
|
|
3
4
|
export function useNameFields(props) {
|
|
5
|
+
const registrationFormState = useDomContext(REGISTRATION_FORM_STATE_CONTEXT);
|
|
4
6
|
const validationState = useDomContext(FORM_VALIDATION_CONTEXT);
|
|
5
7
|
return {
|
|
6
8
|
states: {
|
|
7
9
|
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
10
|
+
registrationFormState,
|
|
8
11
|
content: {
|
|
9
12
|
lastNameLabel: props.lastNameLabel,
|
|
10
13
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -2,9 +2,8 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, State } from "@stencil/core";
|
|
3
3
|
import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @uiName Navigation Sidebar
|
|
5
|
+
* @uiName Microsite Sidebar
|
|
6
|
+
* @slots [{"name":"", "title":"Sidebar Content", "validChildren":["sqm-navigation-sidebar-item"]}]
|
|
8
7
|
*/
|
|
9
8
|
export class NavigationSidebar {
|
|
10
9
|
constructor() {
|
package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js
CHANGED
|
@@ -6,7 +6,10 @@ import { getProps } from "../../utils/utils";
|
|
|
6
6
|
import { NavigationSidebarItemView, } from "./sqm-navigation-sidebar-item-view";
|
|
7
7
|
import { useNavigationSidebarItem } from "./useNavigationSidebarItem";
|
|
8
8
|
/**
|
|
9
|
-
* @uiName
|
|
9
|
+
* @uiName Microsite Sidebar Item
|
|
10
|
+
* @validParents ["sqm-navigation-sidebar"]
|
|
11
|
+
* @exampleGroup Microsite Components
|
|
12
|
+
* @example Sidebar Item - <sqm-navigation-sidebar-item label="Sidebar Item" icon="house"></sqm-navigation-sidebar-item>
|
|
10
13
|
*/
|
|
11
14
|
export class NavigationSidebarItem {
|
|
12
15
|
constructor() {
|
|
@@ -36,6 +39,9 @@ export class NavigationSidebarItem {
|
|
|
36
39
|
"tags": [{
|
|
37
40
|
"text": "Navigation Path",
|
|
38
41
|
"name": "uiName"
|
|
42
|
+
}, {
|
|
43
|
+
"text": "pageSelect",
|
|
44
|
+
"name": "uiWidget"
|
|
39
45
|
}],
|
|
40
46
|
"text": ""
|
|
41
47
|
},
|
|
@@ -7,6 +7,7 @@ export const Start = () => {
|
|
|
7
7
|
initValue: "",
|
|
8
8
|
states: {
|
|
9
9
|
enableValidation: true,
|
|
10
|
+
registrationFormState: {},
|
|
10
11
|
validationErrors: {},
|
|
11
12
|
content: {
|
|
12
13
|
fieldLabel: "Password",
|
|
@@ -20,6 +21,7 @@ export const EmptyError = () => {
|
|
|
20
21
|
states: {
|
|
21
22
|
enableValidation: true,
|
|
22
23
|
validationErrors: { password: "Cannot be empty" },
|
|
24
|
+
registrationFormState: {},
|
|
23
25
|
content: {
|
|
24
26
|
fieldLabel: "Password",
|
|
25
27
|
},
|
|
@@ -31,6 +33,7 @@ export const ValidationError = () => {
|
|
|
31
33
|
initValue: "asdf",
|
|
32
34
|
states: {
|
|
33
35
|
enableValidation: true,
|
|
36
|
+
registrationFormState: {},
|
|
34
37
|
validationErrors: { password: "Incomplete" },
|
|
35
38
|
content: {
|
|
36
39
|
fieldLabel: "Password",
|
|
@@ -22,19 +22,22 @@ const vanillaStyle = `
|
|
|
22
22
|
const sheet = createStyleSheet(style);
|
|
23
23
|
const styleString = sheet.toString();
|
|
24
24
|
export function PortalResetPasswordView(props) {
|
|
25
|
-
var _a, _b;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26
26
|
const { states, callbacks } = props;
|
|
27
27
|
return (h("div", { class: sheet.classes.InputContainer },
|
|
28
28
|
h("style", { type: "text/css" },
|
|
29
29
|
vanillaStyle,
|
|
30
30
|
styleString),
|
|
31
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, validationError: ({ value }) => {
|
|
31
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, disabled: ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.loading) || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), validationError: ({ value }) => {
|
|
32
32
|
if (!value) {
|
|
33
33
|
return "Cannot be empty";
|
|
34
34
|
}
|
|
35
|
-
} }, (((
|
|
35
|
+
} }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.password) ? {
|
|
36
|
+
value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.password,
|
|
37
|
+
}
|
|
38
|
+
: {}), (((_g = states.validationErrors) === null || _g === void 0 ? void 0 : _g.password) ? {
|
|
36
39
|
class: sheet.classes.ErrorStyle,
|
|
37
|
-
helpText: ((
|
|
40
|
+
helpText: ((_h = states.validationErrors) === null || _h === void 0 ? void 0 : _h.password) || "Cannot be empty",
|
|
38
41
|
}
|
|
39
42
|
: []), { onInput: (input) => states.enableValidation && callbacks.onInput(input) })),
|
|
40
43
|
states.dynamicValidation));
|
|
@@ -7,7 +7,10 @@ import { validateNewPassword } from "./passwordValidation";
|
|
|
7
7
|
import { PortalResetPasswordView, } from "./sqm-password-field-view";
|
|
8
8
|
import { usePasswordField } from "./usePasswordField";
|
|
9
9
|
/**
|
|
10
|
-
* @uiName
|
|
10
|
+
* @uiName Form Password Field
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
12
|
+
* @exampleGroup Microsite Components
|
|
13
|
+
* @example Form Password Field - <sqm-password-field field-label="Password"></sqm-password-field>
|
|
11
14
|
*/
|
|
12
15
|
export class PortalPasswordField {
|
|
13
16
|
constructor() {
|
|
@@ -19,10 +22,10 @@ export class PortalPasswordField {
|
|
|
19
22
|
*/
|
|
20
23
|
this.fieldLabel = "Password";
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @uiName
|
|
25
|
+
* Disable live password validation
|
|
26
|
+
* @uiName Disable Validation
|
|
24
27
|
*/
|
|
25
|
-
this.
|
|
28
|
+
this.disableValidation = false;
|
|
26
29
|
withHooks(this);
|
|
27
30
|
}
|
|
28
31
|
disconnectedCallback() { }
|
|
@@ -55,7 +58,7 @@ export class PortalPasswordField {
|
|
|
55
58
|
"reflect": false,
|
|
56
59
|
"defaultValue": "\"Password\""
|
|
57
60
|
},
|
|
58
|
-
"
|
|
61
|
+
"disableValidation": {
|
|
59
62
|
"type": "boolean",
|
|
60
63
|
"mutable": false,
|
|
61
64
|
"complexType": {
|
|
@@ -67,14 +70,14 @@ export class PortalPasswordField {
|
|
|
67
70
|
"optional": false,
|
|
68
71
|
"docs": {
|
|
69
72
|
"tags": [{
|
|
70
|
-
"text": "
|
|
73
|
+
"text": "Disable Validation",
|
|
71
74
|
"name": "uiName"
|
|
72
75
|
}],
|
|
73
|
-
"text": "
|
|
76
|
+
"text": "Disable live password validation"
|
|
74
77
|
},
|
|
75
|
-
"attribute": "
|
|
78
|
+
"attribute": "disable-validation",
|
|
76
79
|
"reflect": false,
|
|
77
|
-
"defaultValue": "
|
|
80
|
+
"defaultValue": "false"
|
|
78
81
|
},
|
|
79
82
|
"demoData": {
|
|
80
83
|
"type": "unknown",
|
|
@@ -121,11 +124,12 @@ function usePasswordFieldDemo(props) {
|
|
|
121
124
|
}
|
|
122
125
|
return deepmerge({
|
|
123
126
|
states: {
|
|
124
|
-
enableValidation:
|
|
127
|
+
enableValidation: !props.disableValidation,
|
|
125
128
|
dynamicValidation,
|
|
126
129
|
validationErrors: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.validationErrors) || {},
|
|
130
|
+
registrationFormState: {},
|
|
127
131
|
content: {
|
|
128
|
-
fieldLabel:
|
|
132
|
+
fieldLabel: props.fieldLabel,
|
|
129
133
|
},
|
|
130
134
|
},
|
|
131
135
|
callbacks: {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { useState } from "@saasquatch/universal-hooks";
|
|
2
|
+
import { FORM_VALIDATION_CONTEXT, } from "../sqm-portal-register/useValidationState";
|
|
2
3
|
import { validateNewPassword } from "./passwordValidation";
|
|
3
4
|
import { useDomContext } from "@saasquatch/stencil-hooks";
|
|
4
|
-
|
|
5
|
+
import { REGISTRATION_FORM_STATE_CONTEXT, } from "../sqm-portal-registration-form/useRegistrationFormState";
|
|
5
6
|
export function usePasswordField(props) {
|
|
6
|
-
const validationState = useDomContext(
|
|
7
|
+
const validationState = useDomContext(FORM_VALIDATION_CONTEXT);
|
|
8
|
+
const registrationFormState = useDomContext(REGISTRATION_FORM_STATE_CONTEXT);
|
|
7
9
|
const [dynamicValidation, setDynamicValidation] = useState("");
|
|
8
10
|
function onInput(input) {
|
|
9
11
|
const validation = validateNewPassword(input.target.value);
|
|
@@ -11,8 +13,9 @@ export function usePasswordField(props) {
|
|
|
11
13
|
}
|
|
12
14
|
return {
|
|
13
15
|
states: {
|
|
14
|
-
enableValidation: props.
|
|
16
|
+
enableValidation: !props.disableValidation,
|
|
15
17
|
dynamicValidation,
|
|
18
|
+
registrationFormState,
|
|
16
19
|
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
17
20
|
content: {
|
|
18
21
|
fieldLabel: props.fieldLabel,
|
|
@@ -4,7 +4,9 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
4
4
|
import { usePopupContainer } from "./usePopupContainer";
|
|
5
5
|
import { getProps } from "../../utils/utils";
|
|
6
6
|
/**
|
|
7
|
-
* @uiName Popup Container
|
|
7
|
+
* @uiName Popup Container
|
|
8
|
+
* @slots [{"name":"","title":"Content"}]
|
|
9
|
+
* @canvasRenderer always-replace
|
|
8
10
|
*/
|
|
9
11
|
export class PopupContainer {
|
|
10
12
|
constructor() {
|
|
@@ -4,8 +4,9 @@ import { PortalChangePasswordView, } from "./sqm-portal-change-password-view";
|
|
|
4
4
|
import { usePortalChangePassword } from "./usePortalChangePassword";
|
|
5
5
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
6
6
|
import deepmerge from "deepmerge";
|
|
7
|
+
import { useState } from "@saasquatch/universal-hooks";
|
|
7
8
|
/**
|
|
8
|
-
* @uiName
|
|
9
|
+
* @uiName Microsite Password Change
|
|
9
10
|
*/
|
|
10
11
|
export class PortalChangePassword {
|
|
11
12
|
constructor() {
|
|
@@ -41,7 +42,8 @@ export class PortalChangePassword {
|
|
|
41
42
|
/**
|
|
42
43
|
* Successful password change message
|
|
43
44
|
*
|
|
44
|
-
* @uiName Successful Message
|
|
45
|
+
* @uiName Successful Password Change Message
|
|
46
|
+
* @uiWidget textArea
|
|
45
47
|
*/
|
|
46
48
|
this.successMessage = "Your password has been updated.";
|
|
47
49
|
/**
|
|
@@ -183,8 +185,11 @@ export class PortalChangePassword {
|
|
|
183
185
|
"optional": false,
|
|
184
186
|
"docs": {
|
|
185
187
|
"tags": [{
|
|
186
|
-
"text": "Successful Message",
|
|
188
|
+
"text": "Successful Password Change Message",
|
|
187
189
|
"name": "uiName"
|
|
190
|
+
}, {
|
|
191
|
+
"text": "textArea",
|
|
192
|
+
"name": "uiWidget"
|
|
188
193
|
}],
|
|
189
194
|
"text": "Successful password change message"
|
|
190
195
|
},
|
|
@@ -270,23 +275,24 @@ export class PortalChangePassword {
|
|
|
270
275
|
}; }
|
|
271
276
|
}
|
|
272
277
|
function usePortalChangePasswordDemo(props) {
|
|
278
|
+
const [open, setOpen] = useState(false);
|
|
273
279
|
return deepmerge({
|
|
274
280
|
states: {
|
|
275
|
-
open
|
|
281
|
+
open,
|
|
276
282
|
error: "",
|
|
277
283
|
content: {
|
|
278
|
-
modalChangePasswordHeader:
|
|
279
|
-
cancelText:
|
|
280
|
-
changePasswordButtonText:
|
|
281
|
-
passwordFieldLabel:
|
|
282
|
-
confirmPasswordFieldLabel:
|
|
283
|
-
successMessage:
|
|
284
|
-
portalChangePasswordHeader:
|
|
285
|
-
portalChangePasswordButtonText:
|
|
284
|
+
modalChangePasswordHeader: props.modalChangePasswordHeader,
|
|
285
|
+
cancelText: props.cancelText,
|
|
286
|
+
changePasswordButtonText: props.changePasswordButtonText,
|
|
287
|
+
passwordFieldLabel: props.passwordFieldLabel,
|
|
288
|
+
confirmPasswordFieldLabel: props.confirmPasswordFieldLabel,
|
|
289
|
+
successMessage: props.successMessage,
|
|
290
|
+
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
291
|
+
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
286
292
|
},
|
|
287
293
|
},
|
|
288
294
|
callbacks: {
|
|
289
|
-
setOpen: (
|
|
295
|
+
setOpen: (update) => setOpen(update),
|
|
290
296
|
submit: (e) => console.log("Submit", e),
|
|
291
297
|
},
|
|
292
298
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from "@saasquatch/universal-hooks";
|
|
2
2
|
import jsonpointer from "jsonpointer";
|
|
3
3
|
import { useChangePasswordMutation, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
4
4
|
export function usePortalChangePassword(props) {
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6
6
|
const [request, { loading, errors, data }] = useChangePasswordMutation();
|
|
7
7
|
const [open, setOpen] = useState(false);
|
|
8
8
|
const [error, setError] = useState("");
|
|
9
9
|
const [success, setSuccess] = useState(false);
|
|
10
10
|
const user = useUserIdentity();
|
|
11
11
|
const submit = async (event) => {
|
|
12
|
-
var _a;
|
|
12
|
+
var _a, _b;
|
|
13
13
|
setSuccess(false);
|
|
14
14
|
const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
|
|
15
15
|
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
@@ -27,20 +27,17 @@ export function usePortalChangePassword(props) {
|
|
|
27
27
|
const variables = {
|
|
28
28
|
password: formData.password,
|
|
29
29
|
};
|
|
30
|
-
await request(variables);
|
|
31
|
-
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
var _a;
|
|
34
|
-
if ((_a = data === null || data === void 0 ? void 0 : data.changeManagedIdentityPassword) === null || _a === void 0 ? void 0 : _a.success) {
|
|
30
|
+
const result = await request(variables);
|
|
31
|
+
if (!(result instanceof Error) && ((_b = result.changeManagedIdentityPassword) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
35
32
|
setSuccess(true);
|
|
36
33
|
}
|
|
37
|
-
}
|
|
34
|
+
};
|
|
38
35
|
return {
|
|
39
36
|
states: {
|
|
40
37
|
open,
|
|
41
38
|
loading,
|
|
42
39
|
success,
|
|
43
|
-
error: error || ((
|
|
40
|
+
error: error || ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message),
|
|
44
41
|
content: {
|
|
45
42
|
modalChangePasswordHeader: props.modalChangePasswordHeader,
|
|
46
43
|
cancelText: props.cancelText,
|
|
@@ -6,8 +6,8 @@ import { getProps } from "../../utils/utils";
|
|
|
6
6
|
* @uiName Container
|
|
7
7
|
* @slots [{"name":"", "title":"Widget Content"}]
|
|
8
8
|
* @exampleGroup Layout
|
|
9
|
-
* @example Row Layout Container - <sqm-portal-container direction="row" padding="none" gap="xxx-large" display="flex" max-width="100%"><p>Add your
|
|
10
|
-
* @example Column Layout Container - <sqm-portal-container direction="column" padding="none" gap="xxx-large" display="grid" max-width="100%"><p>Add your column content
|
|
9
|
+
* @example Row Layout Container - <sqm-portal-container direction="row" padding="none" gap="xxx-large" display="flex" max-width="100%"><p>Add your row content!</p></sqm-portal-container>
|
|
10
|
+
* @example Column Layout Container - <sqm-portal-container direction="column" padding="none" gap="xxx-large" display="grid" max-width="100%"><p>Add your column content!</p></sqm-portal-container>
|
|
11
11
|
*/
|
|
12
12
|
export class PortalContainer {
|
|
13
13
|
constructor() {
|
package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js
CHANGED
|
@@ -5,15 +5,16 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { PortalEmailVerificationView, } from "./sqm-portal-email-verification-view";
|
|
6
6
|
import { usePortalEmailVerification } from "./usePortalEmailVerification";
|
|
7
7
|
/**
|
|
8
|
-
* @uiName
|
|
8
|
+
* @uiName Microsite Email Verification
|
|
9
9
|
*/
|
|
10
10
|
export class PortalEmailVerification {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* The page that
|
|
14
|
+
* The microsite page that participants are redirected to from the verification email.
|
|
15
15
|
*
|
|
16
|
-
* @uiName Email Redirection
|
|
16
|
+
* @uiName Email Redirection Path
|
|
17
|
+
* @uiWidget pageSelect
|
|
17
18
|
*/
|
|
18
19
|
this.redirectPath = "/verifyEmail";
|
|
19
20
|
/**
|
|
@@ -26,8 +27,9 @@ export class PortalEmailVerification {
|
|
|
26
27
|
this.resendEmailButtonText = "Re-send Email";
|
|
27
28
|
/**
|
|
28
29
|
* @uiName Email Verification Body Text
|
|
30
|
+
* @uiWidget textArea
|
|
29
31
|
*/
|
|
30
|
-
this.verifyMessage = "A verification email was sent to {email}. Please verify your email to continue to the portal.";
|
|
32
|
+
this.verifyMessage = "A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email with invalidate the previous email.";
|
|
31
33
|
withHooks(this);
|
|
32
34
|
}
|
|
33
35
|
disconnectedCallback() { }
|
|
@@ -52,10 +54,13 @@ export class PortalEmailVerification {
|
|
|
52
54
|
"optional": false,
|
|
53
55
|
"docs": {
|
|
54
56
|
"tags": [{
|
|
55
|
-
"text": "Email Redirection
|
|
57
|
+
"text": "Email Redirection Path",
|
|
56
58
|
"name": "uiName"
|
|
59
|
+
}, {
|
|
60
|
+
"text": "pageSelect",
|
|
61
|
+
"name": "uiWidget"
|
|
57
62
|
}],
|
|
58
|
-
"text": "The page that
|
|
63
|
+
"text": "The microsite page that participants are redirected to from the verification email."
|
|
59
64
|
},
|
|
60
65
|
"attribute": "redirect-path",
|
|
61
66
|
"reflect": false,
|
|
@@ -117,12 +122,15 @@ export class PortalEmailVerification {
|
|
|
117
122
|
"tags": [{
|
|
118
123
|
"text": "Email Verification Body Text",
|
|
119
124
|
"name": "uiName"
|
|
125
|
+
}, {
|
|
126
|
+
"text": "textArea",
|
|
127
|
+
"name": "uiWidget"
|
|
120
128
|
}],
|
|
121
129
|
"text": ""
|
|
122
130
|
},
|
|
123
131
|
"attribute": "verify-message",
|
|
124
132
|
"reflect": false,
|
|
125
|
-
"defaultValue": "\"A verification email was sent to {email}. Please verify your email to continue to the portal.\""
|
|
133
|
+
"defaultValue": "\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email with invalidate the previous email.\""
|
|
126
134
|
},
|
|
127
135
|
"demoData": {
|
|
128
136
|
"type": "unknown",
|
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useUserIdentity, useRequestVerificationEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { useState } from "@saasquatch/universal-hooks";
|
|
2
|
+
import { useUserIdentity, useRequestVerificationEmailMutation, navigation, } from "@saasquatch/component-boilerplate";
|
|
3
3
|
export function usePortalEmailVerification(props) {
|
|
4
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
4
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5
5
|
const [request, { loading, data, errors }] = useRequestVerificationEmailMutation();
|
|
6
6
|
const userIdent = useUserIdentity();
|
|
7
7
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
8
8
|
const [success, setSuccess] = useState(false);
|
|
9
9
|
const [error, setError] = useState("");
|
|
10
|
-
const urlParams = new URLSearchParams(
|
|
10
|
+
const urlParams = new URLSearchParams(navigation.location.search);
|
|
11
11
|
const nextPage = urlParams.get("nextPage");
|
|
12
12
|
const submit = async () => {
|
|
13
|
+
var _a;
|
|
13
14
|
if (!email)
|
|
14
15
|
return;
|
|
15
16
|
setError("");
|
|
@@ -17,23 +18,19 @@ export function usePortalEmailVerification(props) {
|
|
|
17
18
|
const urlParams = nextPage ? { nextPage } : null;
|
|
18
19
|
const redirectPath = props.redirectPath;
|
|
19
20
|
const variables = { email, urlParams, redirectPath };
|
|
20
|
-
await request(variables);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
setSuccess(true);
|
|
26
|
-
}
|
|
27
|
-
}, [(_b = data === null || data === void 0 ? void 0 : data.requestManagedIdentityVerificationEmail) === null || _b === void 0 ? void 0 : _b.success]);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
if (errors === null || errors === void 0 ? void 0 : errors.message) {
|
|
30
|
-
setError("Network request failed.");
|
|
21
|
+
const result = await request(variables);
|
|
22
|
+
if (result instanceof Error) {
|
|
23
|
+
if (result.message)
|
|
24
|
+
setError("Network request failed.");
|
|
25
|
+
return;
|
|
31
26
|
}
|
|
32
|
-
|
|
27
|
+
if ((_a = result.requestManagedIdentityVerificationEmail) === null || _a === void 0 ? void 0 : _a.success)
|
|
28
|
+
setSuccess(true);
|
|
29
|
+
};
|
|
33
30
|
return {
|
|
34
31
|
states: {
|
|
35
32
|
loading,
|
|
36
|
-
error: ((
|
|
33
|
+
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) ||
|
|
37
34
|
error,
|
|
38
35
|
success,
|
|
39
36
|
},
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
const defaultProps = {
|
|
11
11
|
supportEmail: "support@example.com",
|
|
12
12
|
supportText: "For program support, contact {email}",
|
|
13
|
-
|
|
13
|
+
hidePoweredBy: false,
|
|
14
14
|
poweredByLink: "https://saasquatch.com",
|
|
15
15
|
paddingTop: "large",
|
|
16
16
|
paddingRight: "large",
|
|
@@ -21,4 +21,4 @@ export const DefaultFooter = () => h(PortalFooterView, Object.assign({}, default
|
|
|
21
21
|
export const FooterWithTerms = () => (h(PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
22
22
|
export const FooterWithFAQ = () => (h(PortalFooterView, Object.assign({}, defaultProps, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
23
23
|
export const FooterWithTermsAndFAQ = () => (h(PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
24
|
-
export const FooterNoPoweredBy = () => (h(PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ",
|
|
24
|
+
export const FooterNoPoweredBy = () => (h(PortalFooterView, Object.assign({}, defaultProps, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
@@ -61,6 +61,6 @@ export function PortalFooterView(props) {
|
|
|
61
61
|
}, {
|
|
62
62
|
email: (h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
|
|
63
63
|
})),
|
|
64
|
-
props.
|
|
64
|
+
!props.hidePoweredBy && (h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
|
|
65
65
|
h(PoweredByImg, null)))));
|
|
66
66
|
}
|