@saasquatch/mint-components 1.3.3-5 → 1.4.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/CHANGELOG.md +189 -165
- package/LICENSE +21 -21
- package/dist/cjs/{ShadowViewAddon-640b3912.js → ShadowViewAddon-e9bacad0.js} +113 -113
- package/dist/cjs/{global-5694a95e.js → global-0c01d88f.js} +692 -692
- package/dist/cjs/{index.module-c9d4779a.js → index.module-2925fe3b.js} +14 -14
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{mixins-ebc0fed1.js → mixins-7b7c59fe.js} +85 -85
- package/dist/cjs/{re-render-ea55977b.js → re-render-b1ad512d.js} +37 -37
- package/dist/cjs/{sqm-asset-card-view-bcea538f.js → sqm-asset-card-view-07f86880.js} +44 -44
- package/dist/cjs/sqm-asset-card.cjs.entry.js +31 -31
- package/dist/cjs/sqm-big-stat.cjs.entry.js +17 -17
- package/dist/cjs/sqm-divided-layout_26.cjs.entry.js +6201 -6199
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +22 -22
- package/dist/cjs/{sqm-hero-view-dce6baf4.js → sqm-hero-view-bb3d00a1.js} +137 -137
- package/dist/cjs/sqm-hero.cjs.entry.js +24 -24
- package/dist/cjs/{sqm-leaderboard-rank-view-b75c5f58.js → sqm-leaderboard-rank-view-48245b30.js} +5 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +67 -67
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +55 -55
- package/dist/cjs/{sqm-name-fields-view-fbb96a06.js → sqm-name-fields-view-24614ac7.js} +46 -46
- package/dist/cjs/sqm-name-fields.cjs.entry.js +45 -45
- package/dist/cjs/{sqm-navigation-sidebar-item-view-bcf449fc.js → sqm-navigation-sidebar-item-view-1bad646a.js} +36 -36
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +39 -39
- package/dist/cjs/{sqm-navigation-sidebar-view-78640345.js → sqm-navigation-sidebar-view-d06e1885.js} +29 -29
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -12
- package/dist/cjs/sqm-popup-container.cjs.entry.js +52 -52
- package/dist/cjs/{sqm-portal-container-view-35c09ff2.js → sqm-portal-container-view-d144735a.js} +23 -23
- package/dist/cjs/sqm-portal-container.cjs.entry.js +24 -24
- package/dist/cjs/{sqm-portal-email-verification-view-c327bb36.js → sqm-portal-email-verification-view-68b16f27.js} +37 -37
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +95 -93
- package/dist/cjs/{sqm-portal-footer-view-438f480f.js → sqm-portal-footer-view-edeeebab.js} +72 -72
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +47 -47
- package/dist/cjs/{sqm-portal-forgot-password-view-c6534a2d.js → sqm-portal-forgot-password-view-1704d285.js} +38 -38
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +89 -87
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +19 -19
- package/dist/cjs/{sqm-portal-profile-view-e5e212e8.js → sqm-portal-profile-view-2b48529e.js} +65 -65
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +234 -234
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +52 -52
- package/dist/cjs/{sqm-portal-reset-password-view-db478b01.js → sqm-portal-reset-password-view-4d78fd6d.js} +74 -74
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +161 -157
- package/dist/cjs/{sqm-portal-section-view-a1587fab.js → sqm-portal-section-view-3b008930.js} +20 -20
- package/dist/cjs/{sqm-portal-verify-email-view-06b43fb1.js → sqm-portal-verify-email-view-b595e302.js} +40 -40
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +120 -116
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +19 -19
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +36 -36
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +27 -27
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +34 -34
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +46 -46
- package/dist/cjs/sqm-route.cjs.entry.js +9 -9
- package/dist/cjs/sqm-share-code.cjs.entry.js +72 -72
- package/dist/cjs/{sqm-share-link-view-9490be2a.js → sqm-share-link-view-a935d07e.js} +16 -16
- package/dist/cjs/{sqm-stat-container-view-fcde63ed.js → sqm-stat-container-view-ee7b00ff.js} +45 -45
- package/dist/cjs/sqm-stat-container.cjs.entry.js +18 -18
- package/dist/cjs/{sqm-text-span-view-b7e0f9b8.js → sqm-text-span-view-b5ae787b.js} +52 -52
- package/dist/cjs/sqm-text-span.cjs.entry.js +12 -12
- package/dist/cjs/sqm-titled-section.cjs.entry.js +25 -25
- package/dist/cjs/{useDemoBigStat-8670b2e2.js → useDemoBigStat-d7a60992.js} +560 -561
- package/dist/cjs/{utils-a58bfe0d.js → utils-95e5317c.js} +22 -22
- package/dist/collection/ShadowViewAddon.js +35 -35
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +48 -48
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -9
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +37 -37
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +157 -137
- package/dist/collection/components/sqm-big-stat/useBigStat.js +508 -509
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +28 -28
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +54 -54
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +76 -76
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +55 -55
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +279 -279
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +156 -156
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +82 -82
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +50 -50
- package/dist/collection/components/sqm-graphql-client-provider/useGraphQLProvider.js +14 -14
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +130 -130
- package/dist/collection/components/sqm-hero/sqm-hero.js +138 -138
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +39 -39
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +22 -22
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +263 -263
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +63 -63
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +5 -5
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +198 -198
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +38 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +50 -50
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +114 -114
- package/dist/collection/components/sqm-name-fields/useNameFields.js +14 -14
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +14 -14
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +122 -122
- package/dist/collection/components/sqm-navigation-menu/useNavigationMenu.js +27 -27
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +33 -33
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +24 -24
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +40 -40
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +127 -127
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +14 -14
- package/dist/collection/components/sqm-password-field/passwordValidation.js +78 -78
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +43 -43
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +132 -132
- package/dist/collection/components/sqm-password-field/usePasswordField.js +25 -25
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +11 -11
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +139 -139
- package/dist/collection/components/sqm-popup-container/usePopupContainer.js +33 -33
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +76 -76
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +281 -281
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +61 -61
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +27 -27
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +147 -147
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +41 -41
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +175 -173
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +48 -48
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +11 -11
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +68 -68
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +305 -305
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +42 -42
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +176 -174
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +44 -44
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +55 -55
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +78 -78
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +13 -13
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +47 -47
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +309 -309
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +47 -47
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +50 -50
- package/dist/collection/components/sqm-portal-logout/usePortalLogout.js +5 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +69 -69
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +298 -298
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +149 -149
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +106 -106
- package/dist/collection/components/sqm-portal-protected-route/usePortalProtectedRoute.js +26 -26
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +75 -75
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +392 -390
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +115 -115
- package/dist/collection/components/sqm-portal-register/useValidationState.js +8 -8
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +78 -78
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +319 -315
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +77 -77
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +44 -44
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +127 -123
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +80 -80
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +24 -24
- package/dist/collection/components/sqm-program-menu/useProgramMenu.js +33 -33
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +30 -30
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +156 -156
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +25 -25
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +36 -36
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +43 -43
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +169 -169
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +44 -44
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +28 -28
- package/dist/collection/components/sqm-referral-table/columns/ReferralTableColumn.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +88 -88
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +137 -137
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +117 -117
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +145 -145
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +157 -157
- package/dist/collection/components/sqm-referral-table/re-render.js +39 -39
- package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +54 -54
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +238 -238
- package/dist/collection/components/sqm-referral-table/sqm-table-cell.js +52 -52
- package/dist/collection/components/sqm-referral-table/sqm-table-row.js +33 -33
- package/dist/collection/components/sqm-referral-table/useChildElements.js +16 -16
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +321 -321
- package/dist/collection/components/sqm-route/sqm-route.js +40 -40
- package/dist/collection/components/sqm-router/sqm-router.css +7 -7
- package/dist/collection/components/sqm-router/sqm-router.js +30 -30
- package/dist/collection/components/sqm-router/useRouter.js +79 -79
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +20 -20
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +381 -381
- package/dist/collection/components/sqm-share-button/useShareButton.js +89 -89
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +148 -148
- package/dist/collection/components/sqm-share-code/useShareCode.js +30 -30
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +20 -20
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +148 -148
- package/dist/collection/components/sqm-share-link/useShareLink.js +30 -30
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +49 -49
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +63 -63
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +18 -18
- package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +19 -19
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +110 -110
- package/dist/collection/components/sqm-text/sqm-text.js +77 -77
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +56 -56
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +69 -69
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +24 -24
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +115 -115
- package/dist/collection/components/sqm-user-name/sqm-user-name-view.js +4 -4
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +114 -114
- package/dist/collection/components/sqm-user-name/useUserName.js +26 -26
- package/dist/collection/global/global.js +80 -80
- package/dist/collection/global/mixins.js +100 -100
- package/dist/collection/global/styles.js +582 -582
- package/dist/collection/global/styles.ts +584 -584
- package/dist/collection/index.js +1 -1
- package/dist/collection/insertcss.js +44 -44
- package/dist/collection/stories/AssetCard.stories.js +29 -29
- package/dist/collection/stories/BigStat.stories.js +58 -58
- package/dist/collection/stories/ChangePassword.stories.js +147 -147
- package/dist/collection/stories/DividedLayout.stories.js +85 -85
- package/dist/collection/stories/EditProfileForm.stories.js +61 -61
- package/dist/collection/stories/FormMessage.stories.js +28 -28
- package/dist/collection/stories/Hero.stories.js +168 -168
- package/dist/collection/stories/Leaderboard.stories.js +100 -100
- package/dist/collection/stories/LeaderboardRank.stories.js +12 -12
- package/dist/collection/stories/NameFields.stories.js +36 -36
- package/dist/collection/stories/NavigationSidebar.stories.js +45 -45
- package/dist/collection/stories/NewPortal.stories.js +305 -305
- package/dist/collection/stories/PasswordField.stories.js +40 -40
- package/dist/collection/stories/PortalEmailVerification.stories.js +77 -77
- package/dist/collection/stories/PortalFooter.stories.js +24 -24
- package/dist/collection/stories/PortalForgotPassword.stories.js +73 -73
- package/dist/collection/stories/PortalFrame.stories.js +118 -118
- package/dist/collection/stories/PortalLogin.stories.js +44 -44
- package/dist/collection/stories/PortalProfile.stories.js +233 -233
- package/dist/collection/stories/PortalRegister.stories.js +97 -97
- package/dist/collection/stories/PortalResetPassword.stories.js +153 -153
- package/dist/collection/stories/PortalTemplates.stories.js +156 -156
- package/dist/collection/stories/PortalVerifyEmail.stories.js +39 -39
- package/dist/collection/stories/PoweredByImg.stories.js +14 -14
- package/dist/collection/stories/ProgramMenu.stories.js +39 -39
- package/dist/collection/stories/ReferralIframe.stories.js +29 -29
- package/dist/collection/stories/ReferralTable.stories.js +475 -475
- package/dist/collection/stories/ReferralTableCell.stories.js +62 -62
- package/dist/collection/stories/ReferralTableRewardsCell.stories.js +213 -213
- package/dist/collection/stories/Router.stories.js +144 -144
- package/dist/collection/stories/ShareButton.stories.js +45 -45
- package/dist/collection/stories/ShareLink.stories.js +33 -33
- package/dist/collection/stories/SidebarItem.stories.js +31 -31
- package/dist/collection/stories/UseBigStat.stories.js +105 -105
- package/dist/collection/stories/UseEditProfile.stories.js +41 -41
- package/dist/collection/stories/UseLeaderboard.stories.js +79 -79
- package/dist/collection/stories/UseShareButton.stories.js +59 -59
- package/dist/collection/stories/UseShareLink.stories.js +59 -59
- package/dist/collection/stories/UserName.stories.js +14 -14
- package/dist/collection/utilities.js +21 -21
- package/dist/collection/utils/RequiredPropsError.js +50 -50
- package/dist/collection/utils/isDemo.js +10 -10
- package/dist/collection/utils/utils.js +33 -33
- package/dist/esm/{ShadowViewAddon-f84fe5c8.js → ShadowViewAddon-5f66de48.js} +113 -113
- package/dist/esm/{global-bc17ddd7.js → global-0fcfbedf.js} +692 -692
- package/dist/esm/{index.module-c4098674.js → index.module-1e92a7a3.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{mixins-eba86511.js → mixins-10353a39.js} +85 -85
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{re-render-bc542198.js → re-render-b8468637.js} +37 -37
- package/dist/esm/{sqm-asset-card-view-686789bb.js → sqm-asset-card-view-6f360937.js} +44 -44
- package/dist/esm/sqm-asset-card.entry.js +31 -31
- package/dist/esm/sqm-big-stat.entry.js +17 -17
- package/dist/esm/sqm-divided-layout_26.entry.js +6201 -6199
- package/dist/esm/sqm-graphql-client-provider.entry.js +22 -22
- package/dist/esm/{sqm-hero-view-8a6c5d99.js → sqm-hero-view-bfd8abd1.js} +137 -137
- package/dist/esm/sqm-hero.entry.js +24 -24
- package/dist/esm/{sqm-leaderboard-rank-view-eb1f817c.js → sqm-leaderboard-rank-view-fd7d7f42.js} +5 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +67 -67
- package/dist/esm/sqm-leaderboard.entry.js +55 -55
- package/dist/esm/{sqm-name-fields-view-443f3baa.js → sqm-name-fields-view-4162fb7b.js} +46 -46
- package/dist/esm/sqm-name-fields.entry.js +45 -45
- package/dist/esm/{sqm-navigation-sidebar-item-view-41c952fe.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +36 -36
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +39 -39
- package/dist/esm/{sqm-navigation-sidebar-view-9a7b5a9e.js → sqm-navigation-sidebar-view-2242502c.js} +29 -29
- package/dist/esm/sqm-navigation-sidebar.entry.js +12 -12
- package/dist/esm/sqm-popup-container.entry.js +52 -52
- package/dist/esm/{sqm-portal-container-view-015fbb1c.js → sqm-portal-container-view-73757ca5.js} +23 -23
- package/dist/esm/sqm-portal-container.entry.js +24 -24
- package/dist/esm/{sqm-portal-email-verification-view-070f04d1.js → sqm-portal-email-verification-view-6cc56c87.js} +37 -37
- package/dist/esm/sqm-portal-email-verification.entry.js +95 -93
- package/dist/esm/{sqm-portal-footer-view-096aeee9.js → sqm-portal-footer-view-8a1128d5.js} +72 -72
- package/dist/esm/sqm-portal-footer.entry.js +47 -47
- package/dist/esm/{sqm-portal-forgot-password-view-0a3acc0e.js → sqm-portal-forgot-password-view-e3a6a716.js} +38 -38
- package/dist/esm/sqm-portal-forgot-password.entry.js +89 -87
- package/dist/esm/sqm-portal-logout.entry.js +19 -19
- package/dist/esm/{sqm-portal-profile-view-e4c5d047.js → sqm-portal-profile-view-4acf74a5.js} +65 -65
- package/dist/esm/sqm-portal-profile.entry.js +234 -234
- package/dist/esm/sqm-portal-protected-route.entry.js +52 -52
- package/dist/esm/{sqm-portal-reset-password-view-e36b91dd.js → sqm-portal-reset-password-view-a4e50da2.js} +74 -74
- package/dist/esm/sqm-portal-reset-password.entry.js +161 -157
- package/dist/esm/{sqm-portal-section-view-17ebaaf1.js → sqm-portal-section-view-f0876545.js} +20 -20
- package/dist/esm/{sqm-portal-verify-email-view-b818602a.js → sqm-portal-verify-email-view-6f18bac2.js} +40 -40
- package/dist/esm/sqm-portal-verify-email.entry.js +120 -116
- package/dist/esm/sqm-referral-table-column.entry.js +19 -19
- package/dist/esm/sqm-referral-table-date-column.entry.js +36 -36
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +27 -27
- package/dist/esm/sqm-referral-table-status-column.entry.js +34 -34
- package/dist/esm/sqm-referral-table-user-column.entry.js +46 -46
- package/dist/esm/sqm-route.entry.js +9 -9
- package/dist/esm/sqm-share-code.entry.js +72 -72
- package/dist/esm/{sqm-share-link-view-f5b091fa.js → sqm-share-link-view-9282b8e8.js} +16 -16
- package/dist/esm/{sqm-stat-container-view-f3285eeb.js → sqm-stat-container-view-4133feb6.js} +45 -45
- package/dist/esm/sqm-stat-container.entry.js +18 -18
- package/dist/esm/{sqm-text-span-view-db65d1ea.js → sqm-text-span-view-1781df94.js} +52 -52
- package/dist/esm/sqm-text-span.entry.js +12 -12
- package/dist/esm/sqm-titled-section.entry.js +25 -25
- package/dist/esm/{useDemoBigStat-305d145f.js → useDemoBigStat-5557504e.js} +560 -561
- package/dist/esm/{utils-271197e1.js → utils-454405f5.js} +22 -22
- package/dist/esm-es5/ShadowViewAddon-5f66de48.js +1 -0
- package/dist/esm-es5/{global-bc17ddd7.js → global-0fcfbedf.js} +1 -1
- package/dist/esm-es5/{index.module-c4098674.js → index.module-1e92a7a3.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mixins-eba86511.js → mixins-10353a39.js} +0 -0
- package/dist/esm-es5/{re-render-bc542198.js → re-render-b8468637.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-686789bb.js → sqm-asset-card-view-6f360937.js} +0 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-8a6c5d99.js → sqm-hero-view-bfd8abd1.js} +0 -0
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-eb1f817c.js → sqm-leaderboard-rank-view-fd7d7f42.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/{sqm-name-fields-view-443f3baa.js → sqm-name-fields-view-4162fb7b.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-41c952fe.js → sqm-navigation-sidebar-item-view-a48bca9b.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-9a7b5a9e.js → sqm-navigation-sidebar-view-2242502c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-015fbb1c.js → sqm-portal-container-view-73757ca5.js} +0 -0
- package/dist/esm-es5/sqm-portal-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-070f04d1.js → sqm-portal-email-verification-view-6cc56c87.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-096aeee9.js → sqm-portal-footer-view-8a1128d5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-0a3acc0e.js → sqm-portal-forgot-password-view-e3a6a716.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-e4c5d047.js → sqm-portal-profile-view-4acf74a5.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-reset-password-view-e36b91dd.js → sqm-portal-reset-password-view-a4e50da2.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-17ebaaf1.js → sqm-portal-section-view-f0876545.js} +0 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-b818602a.js → sqm-portal-verify-email-view-6f18bac2.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/{sqm-share-link-view-f5b091fa.js → sqm-share-link-view-9282b8e8.js} +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-f3285eeb.js → sqm-stat-container-view-4133feb6.js} +0 -0
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-db65d1ea.js → sqm-text-span-view-1781df94.js} +0 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-5557504e.js +1 -0
- package/dist/esm-es5/{utils-271197e1.js → utils-454405f5.js} +0 -0
- package/dist/mint-components/global/styles.ts +584 -584
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-951b2711.system.entry.js → p-036c5a7e.system.entry.js} +1 -1
- package/dist/mint-components/{p-64c3ab61.entry.js → p-05a2640d.entry.js} +1 -1
- package/dist/mint-components/{p-92d332cb.entry.js → p-05a86906.entry.js} +2 -2
- package/dist/mint-components/{p-456ac17b.system.entry.js → p-09afaaac.system.entry.js} +1 -1
- package/dist/mint-components/{p-611744d8.system.entry.js → p-0a39b23c.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9686abe.entry.js → p-0bcefa93.entry.js} +1 -1
- package/dist/mint-components/{p-cbc89108.entry.js → p-10a98629.entry.js} +1 -1
- package/dist/mint-components/p-112d42ab.system.entry.js +1 -0
- package/dist/mint-components/{p-1f2cf99b.system.js → p-126bcba1.system.js} +0 -0
- package/dist/mint-components/{p-d8a80a72.entry.js → p-13605359.entry.js} +1 -1
- package/dist/mint-components/{p-d809ef4f.system.js → p-1575e8a3.system.js} +1 -1
- package/dist/mint-components/{p-88995874.system.js → p-18aa175f.system.js} +1 -1
- package/dist/mint-components/p-192539d2.entry.js +1 -0
- package/dist/mint-components/{p-e33e615e.js → p-26f627aa.js} +0 -0
- package/dist/mint-components/{p-e45fc80a.system.js → p-27e23808.system.js} +1 -1
- package/dist/mint-components/{p-52209290.js → p-282ed862.js} +1 -1
- package/dist/mint-components/p-2f333f89.system.entry.js +1 -0
- package/dist/mint-components/{p-7a5dc420.system.entry.js → p-337a3d6b.system.entry.js} +1 -1
- package/dist/mint-components/{p-64046957.system.js → p-3452bdae.system.js} +1 -1
- package/dist/mint-components/{p-5b3f7ae3.system.js → p-34696973.system.js} +0 -0
- package/dist/mint-components/{p-4eaf0ffb.system.js → p-35476f7e.system.js} +0 -0
- package/dist/mint-components/{p-500af00b.system.entry.js → p-3772bae2.system.entry.js} +1 -1
- package/dist/mint-components/{p-385ecd6a.system.js → p-3e3dad7a.system.js} +1 -1
- package/dist/mint-components/{p-ec398bef.system.entry.js → p-4068e47c.system.entry.js} +1 -1
- package/dist/mint-components/p-412d31b1.js +1 -0
- package/dist/mint-components/p-4b6c316d.entry.js +1 -0
- package/dist/mint-components/{p-d7a75527.js → p-509dda90.js} +0 -0
- package/dist/mint-components/p-51cfdd14.js +1 -0
- package/dist/mint-components/{p-3d691d68.entry.js → p-528aecd1.entry.js} +1 -1
- package/dist/mint-components/{p-2a495707.system.js → p-53b0c355.system.js} +1 -1
- package/dist/mint-components/p-53ec4863.entry.js +1 -0
- package/dist/mint-components/p-54707082.system.js +1 -0
- package/dist/mint-components/{p-dddf8d01.system.js → p-547a0354.system.js} +0 -0
- package/dist/mint-components/p-55210498.system.js +1 -0
- package/dist/mint-components/{p-c0d9c611.system.js → p-55f8387d.system.js} +1 -1
- package/dist/mint-components/{p-4293cf8b.system.js → p-562199e3.system.js} +1 -1
- package/dist/mint-components/p-5c89c2ec.entry.js +230 -0
- package/dist/mint-components/{p-97608be8.entry.js → p-5fcd8687.entry.js} +1 -1
- package/dist/mint-components/{p-210ee5d8.system.js → p-602180a2.system.js} +1 -1
- package/dist/mint-components/{p-78e6007a.system.entry.js → p-606506d6.system.entry.js} +1 -1
- package/dist/mint-components/{p-57e8da01.system.js → p-60ae1ec5.system.js} +0 -0
- package/dist/mint-components/{p-7ed9efe2.system.entry.js → p-6156a7ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-01ecef43.system.entry.js → p-624c5352.system.entry.js} +1 -1
- package/dist/mint-components/p-6305419f.entry.js +1 -0
- package/dist/mint-components/{p-a2e8c264.system.js → p-64759dda.system.js} +1 -1
- package/dist/mint-components/{p-5983c4b1.entry.js → p-6815e7ba.entry.js} +1 -1
- package/dist/mint-components/{p-f3c05b72.system.js → p-69f28472.system.js} +0 -0
- package/dist/mint-components/p-6ad110d3.js +1 -0
- package/dist/mint-components/{p-3e8661ac.entry.js → p-6cb81b77.entry.js} +1 -1
- package/dist/mint-components/{p-cd600176.system.entry.js → p-6d27cd05.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b02078c.system.entry.js → p-70ca623f.system.entry.js} +1 -1
- package/dist/mint-components/{p-d5c6b717.js → p-739b3032.js} +0 -0
- package/dist/mint-components/{p-4186211c.entry.js → p-743882c6.entry.js} +1 -1
- package/dist/mint-components/p-756a5e6f.system.js +1 -0
- package/dist/mint-components/p-768b9014.system.entry.js +1 -0
- package/dist/mint-components/{p-e10edeba.entry.js → p-7cf335a0.entry.js} +1 -1
- package/dist/mint-components/{p-5ee55ce9.js → p-7d996b49.js} +1 -1
- package/dist/mint-components/p-86b66e5c.entry.js +1 -0
- package/dist/mint-components/{p-5ca3a6d5.system.entry.js → p-8bfebd45.system.entry.js} +1 -1
- package/dist/mint-components/p-942723ad.entry.js +1 -0
- package/dist/mint-components/{p-588df429.js → p-952ed169.js} +0 -0
- package/dist/mint-components/{p-a75081bd.entry.js → p-965e34ab.entry.js} +1 -1
- package/dist/mint-components/{p-a6f4266b.system.entry.js → p-991bd182.system.entry.js} +1 -1
- package/dist/mint-components/{p-d0e177ef.js → p-99f1208f.js} +1 -1
- package/dist/mint-components/{p-51f49459.system.entry.js → p-9a3a0db5.system.entry.js} +1 -1
- package/dist/mint-components/{p-8cb92dee.js → p-9b4f2af6.js} +0 -0
- package/dist/mint-components/p-9c79643f.system.js +1 -0
- package/dist/mint-components/{p-60967480.system.entry.js → p-9ff0425e.system.entry.js} +1 -1
- package/dist/mint-components/{p-4f443ee8.system.entry.js → p-9ff118a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-67ef28d9.entry.js → p-a565e753.entry.js} +1 -1
- package/dist/mint-components/{p-299be7f5.system.entry.js → p-a646db48.system.entry.js} +1 -1
- package/dist/mint-components/{p-50cab082.js → p-a8b913a8.js} +1 -1
- package/dist/mint-components/{p-ded92f50.system.js → p-aaf68d9d.system.js} +1 -1
- package/dist/mint-components/{p-96b7953f.js → p-af1f8bd3.js} +1 -1
- package/dist/mint-components/{p-e5ec4c82.js → p-af2d886e.js} +1 -1
- package/dist/mint-components/{p-97bc7872.system.entry.js → p-b3880833.system.entry.js} +1 -1
- package/dist/mint-components/{p-b349de5a.entry.js → p-b3cddcca.entry.js} +1 -1
- package/dist/mint-components/{p-b8089b13.js → p-b63744fe.js} +2 -2
- package/dist/mint-components/{p-b285d182.system.js → p-bb76c6f3.system.js} +0 -0
- package/dist/mint-components/{p-571e91e7.js → p-bd903567.js} +1 -1
- package/dist/mint-components/p-c3bf9440.entry.js +1 -0
- package/dist/mint-components/p-c47b83c3.entry.js +1 -0
- package/dist/mint-components/{p-496b1fb5.system.js → p-c5c029b8.system.js} +1 -1
- package/dist/mint-components/p-c84a5b33.js +1 -0
- package/dist/mint-components/p-c90978f4.system.entry.js +1 -0
- package/dist/mint-components/p-ced568fc.system.entry.js +1 -0
- package/dist/mint-components/p-cffc23c0.entry.js +1 -0
- package/dist/mint-components/{p-4bc4d3cd.js → p-d0cad85c.js} +1 -1
- package/dist/mint-components/{p-640be111.system.js → p-d1cea1b1.system.js} +1 -1
- package/dist/mint-components/p-d3171b36.system.entry.js +1 -0
- package/dist/mint-components/{p-bf178ad1.js → p-d513229d.js} +1 -1
- package/dist/mint-components/{p-b5cb77e7.entry.js → p-d55abc13.entry.js} +2 -2
- package/dist/mint-components/{p-35c7cb98.system.js → p-d7d6bf44.system.js} +0 -0
- package/dist/mint-components/{p-7bb84d1e.entry.js → p-de3311bf.entry.js} +2 -2
- package/dist/mint-components/{p-620504da.entry.js → p-e069bc2d.entry.js} +1 -1
- package/dist/mint-components/{p-5f58de4d.system.entry.js → p-e14c15ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-39c5c05f.js → p-e426715b.js} +0 -0
- package/dist/mint-components/{p-a28686e7.system.entry.js → p-e43cc1f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-70dfea1f.entry.js → p-e50839df.entry.js} +1 -1
- package/dist/mint-components/{p-663f7a43.js → p-ebcd8a59.js} +0 -0
- package/dist/mint-components/{p-cb81c288.js → p-eddcf481.js} +1 -1
- package/dist/mint-components/p-f16bae7a.system.entry.js +1 -0
- package/dist/mint-components/{p-16dd1560.system.entry.js → p-f85f36c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-91e7e0c7.entry.js → p-f9cb55dc.entry.js} +1 -1
- package/dist/mint-components/{p-151fa42f.js → p-fb1b6fdf.js} +0 -0
- package/dist/mint-components/{p-63e14d28.system.entry.js → p-fee468b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-d2a78efd.js → p-fee6801c.js} +1 -1
- package/dist/types/ShadowViewAddon.d.ts +6 -6
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -7
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +7 -7
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +42 -36
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +18 -18
- package/dist/types/components/sqm-big-stat/useDemoBigStat.d.ts +3 -3
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +7 -7
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +22 -22
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile-view.d.ts +37 -37
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +48 -48
- package/dist/types/components/sqm-edit-profile/useEditProfile.d.ts +12 -12
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +13 -13
- package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +13 -13
- package/dist/types/components/sqm-graphql-client-provider/useGraphQLProvider.d.ts +3 -3
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +15 -15
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +20 -20
- package/dist/types/components/sqm-hook-story-container/sqm-hook-story-container.d.ts +8 -8
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +27 -27
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +50 -50
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +26 -26
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.d.ts +6 -6
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +41 -41
- package/dist/types/components/sqm-leaderboard-rank/useLeaderboardRank.d.ts +9 -9
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +10 -10
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +21 -21
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +14 -14
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu-view.d.ts +15 -15
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +24 -24
- package/dist/types/components/sqm-navigation-menu/useNavigationMenu.d.ts +3 -3
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +4 -4
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +11 -11
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +11 -11
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +27 -27
- package/dist/types/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.d.ts +3 -3
- package/dist/types/components/sqm-password-field/passwordValidation.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +15 -15
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +32 -32
- package/dist/types/components/sqm-password-field/usePasswordField.d.ts +3 -3
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +4 -4
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +26 -26
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +33 -33
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +23 -23
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +48 -48
- package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +24 -24
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +10 -10
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +30 -30
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +17 -17
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +34 -32
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +17 -17
- package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +7 -7
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +16 -16
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +57 -57
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +18 -18
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +34 -32
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +12 -12
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +11 -11
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +16 -16
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +3 -3
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +20 -20
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +52 -52
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +11 -11
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +13 -13
- package/dist/types/components/sqm-portal-logout/usePortalLogout.d.ts +3 -3
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +37 -37
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +48 -48
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +12 -12
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +21 -21
- package/dist/types/components/sqm-portal-protected-route/usePortalProtectedRoute.d.ts +7 -7
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +30 -30
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +66 -64
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +25 -25
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +17 -17
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +26 -26
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +60 -56
- package/dist/types/components/sqm-portal-reset-password/usePortalResetPassword.d.ts +3 -3
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +15 -15
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +28 -24
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +17 -17
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +9 -9
- package/dist/types/components/sqm-program-menu/useProgramMenu.d.ts +13 -13
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +13 -13
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +29 -29
- package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-cell.d.ts +7 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-date-cell.d.ts +7 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +5 -5
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +5 -5
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-user-cell.d.ts +4 -4
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +6 -6
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +15 -15
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +29 -29
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +19 -19
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +23 -23
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +23 -23
- package/dist/types/components/sqm-referral-table/re-render.d.ts +13 -13
- package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +29 -29
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +33 -33
- package/dist/types/components/sqm-referral-table/sqm-table-cell.d.ts +5 -5
- package/dist/types/components/sqm-referral-table/sqm-table-row.d.ts +4 -4
- package/dist/types/components/sqm-referral-table/useChildElements.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +5 -5
- package/dist/types/components/sqm-route/sqm-route.d.ts +15 -15
- package/dist/types/components/sqm-router/sqm-router.d.ts +9 -9
- package/dist/types/components/sqm-router/useRouter.d.ts +9 -9
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +16 -16
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +80 -80
- package/dist/types/components/sqm-share-button/useShareButton.d.ts +8 -8
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +33 -33
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +8 -8
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +8 -8
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +33 -33
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +8 -8
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +5 -5
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +16 -16
- package/dist/types/components/sqm-stencilbook/CucumberAddon.d.ts +2 -2
- package/dist/types/components/sqm-stencilbook/HookStoryAddon.d.ts +8 -8
- package/dist/types/components/sqm-stencilbook/sqm-stencilbook.d.ts +11 -11
- package/dist/types/components/sqm-text/sqm-text.d.ts +10 -10
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +5 -5
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +20 -20
- package/dist/types/components/sqm-titled-section/sqm-portal-section-view.d.ts +9 -9
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +22 -22
- package/dist/types/components/sqm-user-name/sqm-user-name-view.d.ts +6 -6
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +24 -24
- package/dist/types/components/sqm-user-name/useUserName.d.ts +3 -3
- package/dist/types/components.d.ts +74 -50
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/global/global.d.ts +6 -6
- package/dist/types/global/mixins.d.ts +166 -166
- package/dist/types/global/styles.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/insertcss.d.ts +6 -6
- package/dist/types/saasquatch.d.ts +92 -92
- package/dist/types/stories/AssetCard.stories.d.ts +7 -7
- package/dist/types/stories/BigStat.stories.d.ts +12 -12
- package/dist/types/stories/ChangePassword.stories.d.ts +13 -13
- package/dist/types/stories/DividedLayout.stories.d.ts +7 -7
- package/dist/types/stories/EditProfileForm.stories.d.ts +7 -7
- package/dist/types/stories/FormMessage.stories.d.ts +8 -8
- package/dist/types/stories/Hero.stories.d.ts +16 -16
- package/dist/types/stories/Leaderboard.stories.d.ts +11 -11
- package/dist/types/stories/LeaderboardRank.stories.d.ts +5 -5
- package/dist/types/stories/NameFields.stories.d.ts +9 -9
- package/dist/types/stories/NavigationSidebar.stories.d.ts +5 -5
- package/dist/types/stories/NewPortal.stories.d.ts +8 -8
- package/dist/types/stories/PasswordField.stories.d.ts +7 -7
- package/dist/types/stories/PortalEmailVerification.stories.d.ts +11 -11
- package/dist/types/stories/PortalFooter.stories.d.ts +12 -12
- package/dist/types/stories/PortalForgotPassword.stories.d.ts +11 -11
- package/dist/types/stories/PortalFrame.stories.d.ts +8 -8
- package/dist/types/stories/PortalLogin.stories.d.ts +7 -7
- package/dist/types/stories/PortalProfile.stories.d.ts +10 -10
- package/dist/types/stories/PortalRegister.stories.d.ts +9 -9
- package/dist/types/stories/PortalResetPassword.stories.d.ts +13 -13
- package/dist/types/stories/PortalTemplates.stories.d.ts +100 -100
- package/dist/types/stories/PortalVerifyEmail.stories.d.ts +9 -9
- package/dist/types/stories/PoweredByImg.stories.d.ts +7 -7
- package/dist/types/stories/ProgramMenu.stories.d.ts +28 -28
- package/dist/types/stories/ReferralIframe.stories.d.ts +9 -9
- package/dist/types/stories/ReferralTable.stories.d.ts +13 -13
- package/dist/types/stories/ReferralTableCell.stories.d.ts +10 -10
- package/dist/types/stories/ReferralTableRewardsCell.stories.d.ts +19 -19
- package/dist/types/stories/Router.stories.d.ts +28 -28
- package/dist/types/stories/ShareButton.stories.d.ts +11 -11
- package/dist/types/stories/ShareLink.stories.d.ts +8 -8
- package/dist/types/stories/SidebarItem.stories.d.ts +6 -6
- package/dist/types/stories/UseBigStat.stories.d.ts +166 -166
- package/dist/types/stories/UseEditProfile.stories.d.ts +10 -10
- package/dist/types/stories/UseLeaderboard.stories.d.ts +16 -16
- package/dist/types/stories/UseShareButton.stories.d.ts +16 -16
- package/dist/types/stories/UseShareLink.stories.d.ts +22 -22
- package/dist/types/stories/UserName.stories.d.ts +6 -6
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/dist/types/utilities.d.ts +3 -3
- package/dist/types/utils/RequiredPropsError.d.ts +7 -7
- package/dist/types/utils/isDemo.d.ts +4 -4
- package/dist/types/utils/utils.d.ts +12 -12
- package/grapesjs/grapesjs.js +54 -54
- package/package.json +94 -94
- package/readme.md +13 -13
- package/dist/esm-es5/ShadowViewAddon-f84fe5c8.js +0 -1
- package/dist/esm-es5/useDemoBigStat-305d145f.js +0 -1
- package/dist/mint-components/p-028e5b2d.entry.js +0 -1
- package/dist/mint-components/p-1eb492e9.system.entry.js +0 -1
- package/dist/mint-components/p-1fb3f364.entry.js +0 -1
- package/dist/mint-components/p-314db33c.entry.js +0 -1
- package/dist/mint-components/p-41d60628.entry.js +0 -1
- package/dist/mint-components/p-4a43d08d.system.entry.js +0 -1
- package/dist/mint-components/p-516ed603.js +0 -1
- package/dist/mint-components/p-6ec81e0b.entry.js +0 -1
- package/dist/mint-components/p-773c4233.entry.js +0 -1
- package/dist/mint-components/p-83a280d6.entry.js +0 -230
- package/dist/mint-components/p-86387caa.system.entry.js +0 -1
- package/dist/mint-components/p-958d85e3.js +0 -1
- package/dist/mint-components/p-9ee9f091.system.entry.js +0 -1
- package/dist/mint-components/p-a225c7bd.system.entry.js +0 -1
- package/dist/mint-components/p-a36e0311.entry.js +0 -1
- package/dist/mint-components/p-a89b55a9.entry.js +0 -1
- package/dist/mint-components/p-ad8a199b.system.js +0 -1
- package/dist/mint-components/p-bc19e178.js +0 -1
- package/dist/mint-components/p-c072c9a8.entry.js +0 -1
- package/dist/mint-components/p-cb390f74.js +0 -1
- package/dist/mint-components/p-d791a5c9.system.js +0 -1
- package/dist/mint-components/p-f4eb3d30.system.entry.js +0 -1
- package/dist/mint-components/p-f56b14fd.system.entry.js +0 -1
- package/dist/mint-components/p-fcf92302.system.js +0 -1
- package/dist/mint-components/p-fd621386.system.js +0 -1
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
2
|
-
import { navigation, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
-
export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
4
|
-
var _a, _b, _c, _d, _e;
|
|
5
|
-
const [verified, setVerified] = useState(false);
|
|
6
|
-
const [disableContinue, setDisableContinue] = useState(true);
|
|
7
|
-
const userIdent = useUserIdentity();
|
|
8
|
-
const [request, { loading, data, errors }] = useVerifyEmailMutation();
|
|
9
|
-
const [error, setError] = useState("");
|
|
10
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
11
|
-
const oobCode = urlParams.get("oobCode");
|
|
12
|
-
const nextPageOverride = urlParams.get("nextPage");
|
|
13
|
-
urlParams.delete("oobCode");
|
|
14
|
-
const failed = () => {
|
|
15
|
-
return navigation.push({
|
|
16
|
-
pathname: failedPage,
|
|
17
|
-
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
const gotoNextPage = () => {
|
|
21
|
-
urlParams.delete("nextPage");
|
|
22
|
-
return navigation.push({
|
|
23
|
-
pathname: nextPageOverride || nextPage,
|
|
24
|
-
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const submit = async () => {
|
|
28
|
-
if (oobCode) {
|
|
29
|
-
setError("");
|
|
30
|
-
await request({ oobCode });
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
var _a;
|
|
35
|
-
if ((_a = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success) {
|
|
36
|
-
setVerified(true);
|
|
37
|
-
}
|
|
38
|
-
}, [(_a = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success]);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
submit();
|
|
41
|
-
}, []);
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
if ((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
45
|
-
setDisableContinue(false);
|
|
46
|
-
setTimeout(() => {
|
|
47
|
-
gotoNextPage();
|
|
48
|
-
}, 3000);
|
|
49
|
-
}
|
|
50
|
-
else if (!oobCode ||
|
|
51
|
-
((_b = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _b === void 0 ? void 0 : _b.success) === false) {
|
|
52
|
-
setDisableContinue(false);
|
|
53
|
-
}
|
|
54
|
-
else if (!userIdent) {
|
|
55
|
-
setDisableContinue(false);
|
|
56
|
-
setTimeout(() => {
|
|
57
|
-
gotoNextPage();
|
|
58
|
-
}, 3000);
|
|
59
|
-
}
|
|
60
|
-
}, [(_b = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _b === void 0 ? void 0 : _b.emailVerified]);
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (errors === null || errors === void 0 ? void 0 : errors.message) {
|
|
63
|
-
setError("Network request failed.");
|
|
64
|
-
}
|
|
65
|
-
}, [errors]);
|
|
66
|
-
return {
|
|
67
|
-
states: {
|
|
68
|
-
loading: loading || disableContinue,
|
|
69
|
-
error: ((_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.message) || error,
|
|
70
|
-
verified,
|
|
71
|
-
},
|
|
72
|
-
data: {
|
|
73
|
-
oobCode,
|
|
74
|
-
},
|
|
75
|
-
callbacks: {
|
|
76
|
-
failed,
|
|
77
|
-
gotoNextPage,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
}
|
|
1
|
+
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
2
|
+
import { navigation, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
+
export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
const [verified, setVerified] = useState(false);
|
|
6
|
+
const [disableContinue, setDisableContinue] = useState(true);
|
|
7
|
+
const userIdent = useUserIdentity();
|
|
8
|
+
const [request, { loading, data, errors }] = useVerifyEmailMutation();
|
|
9
|
+
const [error, setError] = useState("");
|
|
10
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
11
|
+
const oobCode = urlParams.get("oobCode");
|
|
12
|
+
const nextPageOverride = urlParams.get("nextPage");
|
|
13
|
+
urlParams.delete("oobCode");
|
|
14
|
+
const failed = () => {
|
|
15
|
+
return navigation.push({
|
|
16
|
+
pathname: failedPage,
|
|
17
|
+
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const gotoNextPage = () => {
|
|
21
|
+
urlParams.delete("nextPage");
|
|
22
|
+
return navigation.push({
|
|
23
|
+
pathname: nextPageOverride || nextPage,
|
|
24
|
+
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const submit = async () => {
|
|
28
|
+
if (oobCode) {
|
|
29
|
+
setError("");
|
|
30
|
+
await request({ oobCode });
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
var _a;
|
|
35
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success) {
|
|
36
|
+
setVerified(true);
|
|
37
|
+
}
|
|
38
|
+
}, [(_a = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _a === void 0 ? void 0 : _a.success]);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
submit();
|
|
41
|
+
}, []);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
if ((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
45
|
+
setDisableContinue(false);
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
gotoNextPage();
|
|
48
|
+
}, 3000);
|
|
49
|
+
}
|
|
50
|
+
else if (!oobCode ||
|
|
51
|
+
((_b = data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail) === null || _b === void 0 ? void 0 : _b.success) === false) {
|
|
52
|
+
setDisableContinue(false);
|
|
53
|
+
}
|
|
54
|
+
else if (!userIdent) {
|
|
55
|
+
setDisableContinue(false);
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
gotoNextPage();
|
|
58
|
+
}, 3000);
|
|
59
|
+
}
|
|
60
|
+
}, [(_b = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _b === void 0 ? void 0 : _b.emailVerified]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (errors === null || errors === void 0 ? void 0 : errors.message) {
|
|
63
|
+
setError("Network request failed.");
|
|
64
|
+
}
|
|
65
|
+
}, [errors]);
|
|
66
|
+
return {
|
|
67
|
+
states: {
|
|
68
|
+
loading: loading || disableContinue,
|
|
69
|
+
error: ((_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.message) || error,
|
|
70
|
+
verified,
|
|
71
|
+
},
|
|
72
|
+
data: {
|
|
73
|
+
oobCode,
|
|
74
|
+
},
|
|
75
|
+
callbacks: {
|
|
76
|
+
failed,
|
|
77
|
+
gotoNextPage,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Component, h, Host, State } from "@stencil/core";
|
|
2
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { useProgramMenu } from "./useProgramMenu";
|
|
4
|
-
import { getProps } from "../../utils/utils";
|
|
5
|
-
/**
|
|
6
|
-
* @uiName Portal Menu
|
|
7
|
-
*/
|
|
8
|
-
export class ProgramMenu {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.ignored = true;
|
|
11
|
-
withHooks(this);
|
|
12
|
-
}
|
|
13
|
-
disconnectedCallback() { }
|
|
14
|
-
render() {
|
|
15
|
-
const { data, ref } = useProgramMenu(getProps(this));
|
|
16
|
-
return (h(Host, { style: { display: "contents" } },
|
|
17
|
-
h("sl-select", { style: { paddingBottom: "var(--sl-spacing-large)" }, value: data.programId, ref: (r) => (ref.current = r) },
|
|
18
|
-
h("slot", null))));
|
|
19
|
-
}
|
|
20
|
-
static get is() { return "sqm-program-menu"; }
|
|
21
|
-
static get states() { return {
|
|
22
|
-
"ignored": {}
|
|
23
|
-
}; }
|
|
24
|
-
}
|
|
1
|
+
import { Component, h, Host, State } from "@stencil/core";
|
|
2
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { useProgramMenu } from "./useProgramMenu";
|
|
4
|
+
import { getProps } from "../../utils/utils";
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Portal Menu
|
|
7
|
+
*/
|
|
8
|
+
export class ProgramMenu {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.ignored = true;
|
|
11
|
+
withHooks(this);
|
|
12
|
+
}
|
|
13
|
+
disconnectedCallback() { }
|
|
14
|
+
render() {
|
|
15
|
+
const { data, ref } = useProgramMenu(getProps(this));
|
|
16
|
+
return (h(Host, { style: { display: "contents" } },
|
|
17
|
+
h("sl-select", { style: { paddingBottom: "var(--sl-spacing-large)" }, value: data.programId, ref: (r) => (ref.current = r) },
|
|
18
|
+
h("slot", null))));
|
|
19
|
+
}
|
|
20
|
+
static get is() { return "sqm-program-menu"; }
|
|
21
|
+
static get states() { return {
|
|
22
|
+
"ignored": {}
|
|
23
|
+
}; }
|
|
24
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { useProgramId, useTick, useHost } from '@saasquatch/component-boilerplate';
|
|
2
|
-
import { useRef, useEffect } from '@saasquatch/universal-hooks';
|
|
3
|
-
import debugFn from 'debug';
|
|
4
|
-
const debug = debugFn('sq:useProgramMenu');
|
|
5
|
-
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
6
|
-
export function useProgramMenu(props) {
|
|
7
|
-
const programId = useProgramId();
|
|
8
|
-
const host = useHost();
|
|
9
|
-
debug({ programId, props });
|
|
10
|
-
const ref = useRef();
|
|
11
|
-
const [, rerender] = useTick();
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
var _a;
|
|
14
|
-
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
15
|
-
const programId = e.detail.item.value;
|
|
16
|
-
// setProgramId(programId);
|
|
17
|
-
host.dispatchEvent(new CustomEvent(UPDATE_PROGRAM_EVENT, {
|
|
18
|
-
detail: programId,
|
|
19
|
-
bubbles: true,
|
|
20
|
-
composed: true,
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
}, [ref.current]);
|
|
24
|
-
return {
|
|
25
|
-
data: {
|
|
26
|
-
programId,
|
|
27
|
-
},
|
|
28
|
-
callbacks: {
|
|
29
|
-
rerender,
|
|
30
|
-
},
|
|
31
|
-
ref,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
1
|
+
import { useProgramId, useTick, useHost } from '@saasquatch/component-boilerplate';
|
|
2
|
+
import { useRef, useEffect } from '@saasquatch/universal-hooks';
|
|
3
|
+
import debugFn from 'debug';
|
|
4
|
+
const debug = debugFn('sq:useProgramMenu');
|
|
5
|
+
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
6
|
+
export function useProgramMenu(props) {
|
|
7
|
+
const programId = useProgramId();
|
|
8
|
+
const host = useHost();
|
|
9
|
+
debug({ programId, props });
|
|
10
|
+
const ref = useRef();
|
|
11
|
+
const [, rerender] = useTick();
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
var _a;
|
|
14
|
+
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
15
|
+
const programId = e.detail.item.value;
|
|
16
|
+
// setProgramId(programId);
|
|
17
|
+
host.dispatchEvent(new CustomEvent(UPDATE_PROGRAM_EVENT, {
|
|
18
|
+
detail: programId,
|
|
19
|
+
bubbles: true,
|
|
20
|
+
composed: true,
|
|
21
|
+
}));
|
|
22
|
+
});
|
|
23
|
+
}, [ref.current]);
|
|
24
|
+
return {
|
|
25
|
+
data: {
|
|
26
|
+
programId,
|
|
27
|
+
},
|
|
28
|
+
callbacks: {
|
|
29
|
+
rerender,
|
|
30
|
+
},
|
|
31
|
+
ref,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import jss from "jss";
|
|
3
|
-
import preset from "jss-preset-default";
|
|
4
|
-
export function ReferralIframeView(props) {
|
|
5
|
-
const { states, data } = props;
|
|
6
|
-
const { content } = states;
|
|
7
|
-
const style = {
|
|
8
|
-
Container: {
|
|
9
|
-
position: "relative",
|
|
10
|
-
width: content.iframeWidth,
|
|
11
|
-
height: content.iframeHeight,
|
|
12
|
-
},
|
|
13
|
-
IFrame: {
|
|
14
|
-
position: "absolute",
|
|
15
|
-
width: "100%",
|
|
16
|
-
height: "100%",
|
|
17
|
-
border: "0",
|
|
18
|
-
top: "0",
|
|
19
|
-
left: "0",
|
|
20
|
-
right: "0",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
// JSS config
|
|
24
|
-
jss.setup(preset());
|
|
25
|
-
const sheet = jss.createStyleSheet(style);
|
|
26
|
-
const styleString = sheet.toString();
|
|
27
|
-
return (h("div", { class: sheet.classes.Container },
|
|
28
|
-
h("style", { type: "text/css" }, styleString),
|
|
29
|
-
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
30
|
-
}
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import jss from "jss";
|
|
3
|
+
import preset from "jss-preset-default";
|
|
4
|
+
export function ReferralIframeView(props) {
|
|
5
|
+
const { states, data } = props;
|
|
6
|
+
const { content } = states;
|
|
7
|
+
const style = {
|
|
8
|
+
Container: {
|
|
9
|
+
position: "relative",
|
|
10
|
+
width: content.iframeWidth,
|
|
11
|
+
height: content.iframeHeight,
|
|
12
|
+
},
|
|
13
|
+
IFrame: {
|
|
14
|
+
position: "absolute",
|
|
15
|
+
width: "100%",
|
|
16
|
+
height: "100%",
|
|
17
|
+
border: "0",
|
|
18
|
+
top: "0",
|
|
19
|
+
left: "0",
|
|
20
|
+
right: "0",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
// JSS config
|
|
24
|
+
jss.setup(preset());
|
|
25
|
+
const sheet = jss.createStyleSheet(style);
|
|
26
|
+
const styleString = sheet.toString();
|
|
27
|
+
return (h("div", { class: sheet.classes.Container },
|
|
28
|
+
h("style", { type: "text/css" }, styleString),
|
|
29
|
+
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
30
|
+
}
|
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
import { Component, h, Host, Prop, State } from "@stencil/core";
|
|
2
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { useReferralIframe } from "./useReferralIframe";
|
|
4
|
-
import { ReferralIframeView, } from "./sqm-referral-iframe-view";
|
|
5
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
6
|
-
import deepmerge from "deepmerge";
|
|
7
|
-
import { getMissingProps, getProps } from "../../utils/utils";
|
|
8
|
-
import { RequiredPropsError } from "../../utils/RequiredPropsError";
|
|
9
|
-
/**
|
|
10
|
-
* @uiName Referral IFrame
|
|
11
|
-
*/
|
|
12
|
-
export class SqmReferralIframe {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.ignored = true;
|
|
15
|
-
/**
|
|
16
|
-
* @uiName Height of the iframe container
|
|
17
|
-
*/
|
|
18
|
-
this.iframeHeight = "100%";
|
|
19
|
-
/**
|
|
20
|
-
* @uiName Width of the iframe container
|
|
21
|
-
*/
|
|
22
|
-
this.iframeWidth = "100%";
|
|
23
|
-
withHooks(this);
|
|
24
|
-
}
|
|
25
|
-
disconnectedCallback() { }
|
|
26
|
-
render() {
|
|
27
|
-
const missingProps = getMissingProps([
|
|
28
|
-
{
|
|
29
|
-
attribute: "iframe-src",
|
|
30
|
-
value: this.iframeSrc,
|
|
31
|
-
},
|
|
32
|
-
]);
|
|
33
|
-
if (missingProps) {
|
|
34
|
-
return h(RequiredPropsError, { missingProps: missingProps });
|
|
35
|
-
}
|
|
36
|
-
const { states, data } = isDemo()
|
|
37
|
-
? useReferralIframeDemo(getProps(this))
|
|
38
|
-
: useReferralIframe(getProps(this));
|
|
39
|
-
return (h(Host, { style: { display: "contents" } },
|
|
40
|
-
h(ReferralIframeView, { data: data, states: states })));
|
|
41
|
-
}
|
|
42
|
-
static get is() { return "sqm-referral-iframe"; }
|
|
43
|
-
static get properties() { return {
|
|
44
|
-
"iframeSrc": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"mutable": false,
|
|
47
|
-
"complexType": {
|
|
48
|
-
"original": "string",
|
|
49
|
-
"resolved": "string",
|
|
50
|
-
"references": {}
|
|
51
|
-
},
|
|
52
|
-
"required": false,
|
|
53
|
-
"optional": false,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [{
|
|
56
|
-
"text": "URL of iframe to display",
|
|
57
|
-
"name": "uiName"
|
|
58
|
-
}, {
|
|
59
|
-
"text": undefined,
|
|
60
|
-
"name": "uiRequired"
|
|
61
|
-
}],
|
|
62
|
-
"text": ""
|
|
63
|
-
},
|
|
64
|
-
"attribute": "iframe-src",
|
|
65
|
-
"reflect": false
|
|
66
|
-
},
|
|
67
|
-
"iframeHeight": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"mutable": false,
|
|
70
|
-
"complexType": {
|
|
71
|
-
"original": "string",
|
|
72
|
-
"resolved": "string",
|
|
73
|
-
"references": {}
|
|
74
|
-
},
|
|
75
|
-
"required": false,
|
|
76
|
-
"optional": false,
|
|
77
|
-
"docs": {
|
|
78
|
-
"tags": [{
|
|
79
|
-
"text": "Height of the iframe container",
|
|
80
|
-
"name": "uiName"
|
|
81
|
-
}],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"attribute": "iframe-height",
|
|
85
|
-
"reflect": false,
|
|
86
|
-
"defaultValue": "\"100%\""
|
|
87
|
-
},
|
|
88
|
-
"iframeWidth": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"mutable": false,
|
|
91
|
-
"complexType": {
|
|
92
|
-
"original": "string",
|
|
93
|
-
"resolved": "string",
|
|
94
|
-
"references": {}
|
|
95
|
-
},
|
|
96
|
-
"required": false,
|
|
97
|
-
"optional": false,
|
|
98
|
-
"docs": {
|
|
99
|
-
"tags": [{
|
|
100
|
-
"text": "Width of the iframe container",
|
|
101
|
-
"name": "uiName"
|
|
102
|
-
}],
|
|
103
|
-
"text": ""
|
|
104
|
-
},
|
|
105
|
-
"attribute": "iframe-width",
|
|
106
|
-
"reflect": false,
|
|
107
|
-
"defaultValue": "\"100%\""
|
|
108
|
-
},
|
|
109
|
-
"demoData": {
|
|
110
|
-
"type": "unknown",
|
|
111
|
-
"mutable": false,
|
|
112
|
-
"complexType": {
|
|
113
|
-
"original": "DemoData<ReferralIframeViewProps>",
|
|
114
|
-
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }",
|
|
115
|
-
"references": {
|
|
116
|
-
"DemoData": {
|
|
117
|
-
"location": "import",
|
|
118
|
-
"path": "../../global/demo"
|
|
119
|
-
},
|
|
120
|
-
"ReferralIframeViewProps": {
|
|
121
|
-
"location": "import",
|
|
122
|
-
"path": "./sqm-referral-iframe-view"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"required": false,
|
|
127
|
-
"optional": true,
|
|
128
|
-
"docs": {
|
|
129
|
-
"tags": [{
|
|
130
|
-
"text": undefined,
|
|
131
|
-
"name": "undocumented"
|
|
132
|
-
}, {
|
|
133
|
-
"text": "object",
|
|
134
|
-
"name": "uiType"
|
|
135
|
-
}],
|
|
136
|
-
"text": ""
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}; }
|
|
140
|
-
static get states() { return {
|
|
141
|
-
"ignored": {}
|
|
142
|
-
}; }
|
|
143
|
-
}
|
|
144
|
-
function useReferralIframeDemo(props) {
|
|
145
|
-
return deepmerge({
|
|
146
|
-
states: {
|
|
147
|
-
content: {
|
|
148
|
-
iframeSrc: "https://example.com",
|
|
149
|
-
...props,
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
data: {
|
|
153
|
-
shareCode: "SHARECODE123",
|
|
154
|
-
},
|
|
155
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
156
|
-
}
|
|
1
|
+
import { Component, h, Host, Prop, State } from "@stencil/core";
|
|
2
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { useReferralIframe } from "./useReferralIframe";
|
|
4
|
+
import { ReferralIframeView, } from "./sqm-referral-iframe-view";
|
|
5
|
+
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
6
|
+
import deepmerge from "deepmerge";
|
|
7
|
+
import { getMissingProps, getProps } from "../../utils/utils";
|
|
8
|
+
import { RequiredPropsError } from "../../utils/RequiredPropsError";
|
|
9
|
+
/**
|
|
10
|
+
* @uiName Referral IFrame
|
|
11
|
+
*/
|
|
12
|
+
export class SqmReferralIframe {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.ignored = true;
|
|
15
|
+
/**
|
|
16
|
+
* @uiName Height of the iframe container
|
|
17
|
+
*/
|
|
18
|
+
this.iframeHeight = "100%";
|
|
19
|
+
/**
|
|
20
|
+
* @uiName Width of the iframe container
|
|
21
|
+
*/
|
|
22
|
+
this.iframeWidth = "100%";
|
|
23
|
+
withHooks(this);
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() { }
|
|
26
|
+
render() {
|
|
27
|
+
const missingProps = getMissingProps([
|
|
28
|
+
{
|
|
29
|
+
attribute: "iframe-src",
|
|
30
|
+
value: this.iframeSrc,
|
|
31
|
+
},
|
|
32
|
+
]);
|
|
33
|
+
if (missingProps) {
|
|
34
|
+
return h(RequiredPropsError, { missingProps: missingProps });
|
|
35
|
+
}
|
|
36
|
+
const { states, data } = isDemo()
|
|
37
|
+
? useReferralIframeDemo(getProps(this))
|
|
38
|
+
: useReferralIframe(getProps(this));
|
|
39
|
+
return (h(Host, { style: { display: "contents" } },
|
|
40
|
+
h(ReferralIframeView, { data: data, states: states })));
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "sqm-referral-iframe"; }
|
|
43
|
+
static get properties() { return {
|
|
44
|
+
"iframeSrc": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [{
|
|
56
|
+
"text": "URL of iframe to display",
|
|
57
|
+
"name": "uiName"
|
|
58
|
+
}, {
|
|
59
|
+
"text": undefined,
|
|
60
|
+
"name": "uiRequired"
|
|
61
|
+
}],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "iframe-src",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"iframeHeight": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [{
|
|
79
|
+
"text": "Height of the iframe container",
|
|
80
|
+
"name": "uiName"
|
|
81
|
+
}],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "iframe-height",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "\"100%\""
|
|
87
|
+
},
|
|
88
|
+
"iframeWidth": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [{
|
|
100
|
+
"text": "Width of the iframe container",
|
|
101
|
+
"name": "uiName"
|
|
102
|
+
}],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "iframe-width",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "\"100%\""
|
|
108
|
+
},
|
|
109
|
+
"demoData": {
|
|
110
|
+
"type": "unknown",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "DemoData<ReferralIframeViewProps>",
|
|
114
|
+
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }",
|
|
115
|
+
"references": {
|
|
116
|
+
"DemoData": {
|
|
117
|
+
"location": "import",
|
|
118
|
+
"path": "../../global/demo"
|
|
119
|
+
},
|
|
120
|
+
"ReferralIframeViewProps": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "./sqm-referral-iframe-view"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": true,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [{
|
|
130
|
+
"text": undefined,
|
|
131
|
+
"name": "undocumented"
|
|
132
|
+
}, {
|
|
133
|
+
"text": "object",
|
|
134
|
+
"name": "uiType"
|
|
135
|
+
}],
|
|
136
|
+
"text": ""
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}; }
|
|
140
|
+
static get states() { return {
|
|
141
|
+
"ignored": {}
|
|
142
|
+
}; }
|
|
143
|
+
}
|
|
144
|
+
function useReferralIframeDemo(props) {
|
|
145
|
+
return deepmerge({
|
|
146
|
+
states: {
|
|
147
|
+
content: {
|
|
148
|
+
iframeSrc: "https://example.com",
|
|
149
|
+
...props,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
data: {
|
|
153
|
+
shareCode: "SHARECODE123",
|
|
154
|
+
},
|
|
155
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
156
|
+
}
|