@stytch/vanilla-js 6.0.5 → 6.0.6
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 +12 -0
- package/dist/cjs/b2b/index.cjs +8 -8
- package/dist/cjs/b2b/index.cjs.map +1 -1
- package/dist/cjs-dev/b2b/index.cjs +8 -8
- package/dist/cjs-dev/b2b/index.cjs.map +1 -1
- package/dist/esm/_virtual/index3.mjs +5 -3
- package/dist/esm/_virtual/index3.mjs.map +1 -1
- package/dist/esm/_virtual/index4.mjs +3 -5
- package/dist/esm/_virtual/index4.mjs.map +1 -1
- package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/Autocomplete/Autocomplete.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/Button/Button.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/Chip.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/TableCell/TableCell.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/TableRow/TableRow.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createThemeWithVars.mjs +1 -1
- package/dist/esm/node_modules/@mui/system/esm/borders/borders.mjs +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssGrid/cssGrid.mjs +2 -2
- package/dist/esm/node_modules/@mui/system/esm/sizing/sizing.mjs +1 -1
- package/dist/esm/node_modules/@mui/system/esm/spacing/spacing.mjs +1 -1
- package/dist/esm/packages/core/src/HeadlessClients/HeadlessOAuthClient.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/AdminPortalWrapper.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/components/ActionMenu.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/components/Autocomplete.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/components/DeleteConnection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/components/IconButtonMenu.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/components/SettingsContainer.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/memberManagement/useMemberActivation.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/scim/SCIMConnectionTokenRotationSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/scim/SCIMNewConnectionConfigureScreen.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsUserOnboardingSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/EmbeddedTable.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/Input.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/PaginatedTable.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/Table.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/Toast.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/shared/components/Tooltip.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/AttributeMappingTable.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/DetailsSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/SSOConnectionDetailsScreen.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/SSOConnectionsScreen.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/SSONewConnectionConfigureScreen.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/sso/SSONewConnectionScreen.mjs +1 -1
- package/dist/esm/packages/web/src/adminPortal/utils/theme.mjs +1 -1
- package/dist/esm/packages/web/src/b2b/StytchB2BClient.mjs +3 -3
- package/dist/esm/packages/web/src/oneTap/OneTapProvider.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/InternalAppContainer.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/components/B2BOneTap.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/screens/MFAEnrollmentSelectionScreen.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/screens/PasswordResetForm.mjs +4 -4
- package/dist/esm/packages/web/src/ui/b2b/screens/PasswordResetForm.mjs.map +1 -1
- package/dist/esm/packages/web/src/ui/b2b/screens/SSODiscoveryMenu.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/screens/SsoAndOAuthButtons.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2b/usePasswordInput.mjs +4 -4
- package/dist/esm/packages/web/src/ui/b2b/usePasswordInput.mjs.map +1 -1
- package/dist/esm/packages/web/src/ui/b2c/GlobalContextProvider.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/IdentityProvider/IDPConsent.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Main/LoginForm/MagicLinkForm.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Main/LoginForm/OTPForm.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Passkey/PasskeyConfirmation.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Password/PasswordConfirmation.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/OTPConfirmation.mjs +1 -1
- package/dist/esm/packages/web/src/ui/components/PresentationConfig.mjs +1 -1
- package/dist/esm/packages/web/src/ui/hooks/usePromptPasskey.mjs +1 -1
- package/dist/esm/packages/web/src/utils/crypto.mjs +1 -1
- package/dist/esm-dev/node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Autocomplete/Autocomplete.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Button/Button.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Checkbox/Checkbox.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Chip/Chip.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/IconButton/IconButton.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/MenuItem/MenuItem.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Radio/Radio.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Switch/Switch.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/TableCell/TableCell.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/TableRow/TableRow.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/material/styles/createThemeWithVars.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/system/esm/borders/borders.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/system/esm/createStyled/createStyled.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/system/esm/cssGrid/cssGrid.mjs +2 -2
- package/dist/esm-dev/node_modules/@mui/system/esm/sizing/sizing.mjs +1 -1
- package/dist/esm-dev/node_modules/@mui/system/esm/spacing/spacing.mjs +1 -1
- package/dist/esm-dev/packages/core/src/HeadlessClients/HeadlessOAuthClient.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/AdminPortalWrapper.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/components/ActionMenu.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/components/Autocomplete.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/components/DeleteConnection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/components/IconButtonMenu.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/components/SettingsContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/AccessSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/InviteModal.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/memberManagement/useMemberActivation.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMConnectionTokenRotationSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/scim/SCIMNewConnectionConfigureScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/settings/OrgSettingsUserOnboardingSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/EmbeddedTable.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/Input.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/PaginatedTable.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/Table.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/Toast.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/shared/components/Tooltip.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/AttributeMappingTable.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/DetailsSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/RoleAssignmentsSection.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/SSOConnectionDetailsScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/SSOConnectionsScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/SSONewConnectionConfigureScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/adminPortal/sso/SSONewConnectionScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/b2b/StytchB2BClient.mjs +3 -3
- package/dist/esm-dev/packages/web/src/oneTap/OneTapProvider.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/App.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/InternalAppContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/components/B2BOneTap.mjs +2 -2
- package/dist/esm-dev/packages/web/src/ui/b2b/screens/MFAEnrollmentSelectionScreen.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/screens/PasswordResetForm.mjs +4 -4
- package/dist/esm-dev/packages/web/src/ui/b2b/screens/PasswordResetForm.mjs.map +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/screens/SSODiscoveryMenu.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/screens/SsoAndOAuthButtons.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2b/usePasswordInput.mjs +4 -4
- package/dist/esm-dev/packages/web/src/ui/b2b/usePasswordInput.mjs.map +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/AppContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/GlobalContextProvider.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/IDPContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/PasskeyRegistrationContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/ResetPasswordContainer.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/components/GoogleOneTap.mjs +2 -2
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/IdentityProvider/IDPConsent.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/LoginForm/MagicLinkForm.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/LoginForm/OTPForm.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/LoginForm/index.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Main/index.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Passkey/PasskeyConfirmation.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Password/PasswordConfirmation.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/OTPConfirmation.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/components/PresentationConfig.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/hooks/usePromptPasskey.mjs +1 -1
- package/dist/iife/b2b/index.js +1 -1
- package/dist/iife/b2b/index.js.map +1 -1
- package/dist/types/{GoogleOneTapClient-wRV3UqOo.d.ts → GoogleOneTapClient-iv3nb_kU.d.ts} +29 -2
- package/dist/types/{StytchB2BClient-BxoZQ3m8.d.ts → StytchB2BClient-C-2u87oo.d.ts} +1 -1
- package/dist/types/{StytchClient-CMzVKb4K.d.ts → StytchClient-CCLs7DV6.d.ts} +1 -1
- package/dist/types/adminPortal/index.d.ts +3 -3
- package/dist/types/b2b/index.d.ts +5 -5
- package/dist/types/b2b/index.headless.d.ts +2 -2
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.headless.d.ts +2 -2
- package/dist/types/{themes-sEz9GUNs.d.ts → themes-MdCoynbd.d.ts} +3 -3
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import { I18nProviderWrapper } from '../components/atoms/I18nProviderWrapper.mjs
|
|
|
5
5
|
import { usePresentationWithDefault, PresentationContext } from '../components/PresentationConfig.mjs';
|
|
6
6
|
import AppContainer$1 from './Container.mjs';
|
|
7
7
|
import { GlobalContextProvider } from './GlobalContextProvider.mjs';
|
|
8
|
-
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
9
8
|
import { useState as h, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
9
|
+
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
10
10
|
import { logger } from '../../../../core/src/utils/logger.mjs';
|
|
11
11
|
|
|
12
12
|
const AppContainer = ({ client, config, presentation, callbacks, strings, styles })=>{
|
|
@@ -2,8 +2,8 @@ import wn from '../../../../../node_modules/preact/compat/dist/compat.module.mjs
|
|
|
2
2
|
import { noop } from '../../utils/index.mjs';
|
|
3
3
|
import { useEvent } from '../hooks/useEvent.mjs';
|
|
4
4
|
import { reducer } from './reducer.mjs';
|
|
5
|
-
import { Wallets, OTPMethods } from '../../../../core/src/public/ui.mjs';
|
|
6
5
|
import { useContext as q } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
6
|
+
import { Wallets, OTPMethods } from '../../../../core/src/public/ui.mjs';
|
|
7
7
|
|
|
8
8
|
/* eslint-disable lingui/no-unlocalized-strings -- internal constants, not user-facing strings */ const AppScreens = {
|
|
9
9
|
Main: 'Main',
|
|
@@ -6,8 +6,8 @@ import { IDPContextProvider } from '../components/organisms/IDPContextProvider.m
|
|
|
6
6
|
import { usePresentationWithDefault, PresentationContext } from '../components/PresentationConfig.mjs';
|
|
7
7
|
import { GlobalContextProvider, DEFAULT_STATE } from './GlobalContextProvider.mjs';
|
|
8
8
|
import { IDPConsentScreen } from './screens/IdentityProvider/IDPConsent.mjs';
|
|
9
|
-
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
10
9
|
import { useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
|
+
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
11
11
|
import { logger } from '../../../../core/src/utils/logger.mjs';
|
|
12
12
|
|
|
13
13
|
const IDPContainer = ({ client, presentation, callbacks, strings, styles, getIDPConsentManifest, authTokenParams })=>{
|
|
@@ -7,8 +7,8 @@ import AppContainer from './Container.mjs';
|
|
|
7
7
|
import { DEFAULT_STATE, GlobalContextProvider, AppScreens } from './GlobalContextProvider.mjs';
|
|
8
8
|
import { passkeyRegistration } from './Products.mjs';
|
|
9
9
|
import { addProduct } from './utils.mjs';
|
|
10
|
-
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
11
10
|
import { useState as h, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
11
|
+
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
12
12
|
import { logger } from '../../../../core/src/utils/logger.mjs';
|
|
13
13
|
|
|
14
14
|
const PasskeyRegistrationContainer = ({ client, config: rawConfig, presentation, callbacks, strings, styles })=>{
|
|
@@ -7,8 +7,8 @@ import AppContainer from './Container.mjs';
|
|
|
7
7
|
import { DEFAULT_STATE, GlobalContextProvider, AppScreens } from './GlobalContextProvider.mjs';
|
|
8
8
|
import { passwords } from './Products.mjs';
|
|
9
9
|
import { addProduct } from './utils.mjs';
|
|
10
|
-
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
11
10
|
import { useState as h, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
11
|
+
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
12
12
|
import { logger } from '../../../../core/src/utils/logger.mjs';
|
|
13
13
|
|
|
14
14
|
const ResetPasswordContainer = ({ client, config: rawConfig, presentation, callbacks, strings, styles, passwordResetToken: rawToken })=>{
|
|
@@ -13,10 +13,10 @@ import { useConfig, useStytch } from '../GlobalContextProvider.mjs';
|
|
|
13
13
|
import { useLastUsedOAuth } from '../screens/Main/useLastUsedOAuth.mjs';
|
|
14
14
|
import modules_f4506a56 from './GoogleOneTap.module.css.mjs';
|
|
15
15
|
import { OAuthButton } from './OAuthButton.mjs';
|
|
16
|
-
import { DEV } from '../../../../../core/src/utils/dev.mjs';
|
|
17
16
|
import { useState as h, useRef as _, useCallback as T, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
18
|
-
import { logger } from '../../../../../core/src/utils/logger.mjs';
|
|
19
17
|
import { OAuthProviders } from '../../../../../core/src/public/ui.mjs';
|
|
18
|
+
import { DEV } from '../../../../../core/src/utils/dev.mjs';
|
|
19
|
+
import { logger } from '../../../../../core/src/utils/logger.mjs';
|
|
20
20
|
|
|
21
21
|
const OAUTH_BUTTON_HEIGHT = 38;
|
|
22
22
|
// See WebComponents.tsx - when using shadow DOM, the Google script cannot see the
|
|
@@ -11,8 +11,8 @@ import { usePresentation } from '../../../components/PresentationConfig.mjs';
|
|
|
11
11
|
import { useStytchUser } from '../../../hooks/useStytchUser.mjs';
|
|
12
12
|
import { useErrorCallback, useStytch, useEventCallback } from '../../GlobalContextProvider.mjs';
|
|
13
13
|
import { useBootstrap } from '../../utils.mjs';
|
|
14
|
-
import { NoCurrentSessionError } from '../../../../../../core/src/public/SDKErrors.mjs';
|
|
15
14
|
import { useState as h, useRef as _, useEffect as p } from '../../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
15
|
+
import { NoCurrentSessionError } from '../../../../../../core/src/public/SDKErrors.mjs';
|
|
16
16
|
|
|
17
17
|
const IDPConsentScreenImpl = ({ initialError, initialParams })=>{
|
|
18
18
|
const stytchClient = useStytch();
|
|
@@ -8,9 +8,9 @@ import Column from '../../../../components/atoms/Column.mjs';
|
|
|
8
8
|
import EmailInput from '../../../../components/molecules/EmailInput.mjs';
|
|
9
9
|
import { useEventCallback, useErrorCallback, useGlobalReducer, useStytch, useConfig, AppScreens } from '../../../GlobalContextProvider.mjs';
|
|
10
10
|
import { hasProduct } from '../../../utils.mjs';
|
|
11
|
-
import { EmailSentType } from '../../../../../../../core/src/Events.mjs';
|
|
12
11
|
import { useState as h } from '../../../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
12
|
import { StytchEventType } from '../../../../../../../core/src/public/ui.mjs';
|
|
13
|
+
import { EmailSentType } from '../../../../../../../core/src/Events.mjs';
|
|
14
14
|
|
|
15
15
|
const MagicLinkEmailForm = ()=>{
|
|
16
16
|
const { i18n: $__i18n, _: $__ } = useLingui();
|
|
@@ -10,9 +10,9 @@ import EmailInput from '../../../../components/molecules/EmailInput.mjs';
|
|
|
10
10
|
import PhoneInput, { getPhoneNumberProps } from '../../../../components/molecules/PhoneInput.mjs';
|
|
11
11
|
import { useEventCallback, useErrorCallback, useStytch, useConfig, useGlobalReducer, AppScreens } from '../../../GlobalContextProvider.mjs';
|
|
12
12
|
import { hasProduct } from '../../../utils.mjs';
|
|
13
|
-
import { DEFAULT_OTP_EXPIRATION_MINUTES } from '../../../../../../../core/src/constants.mjs';
|
|
14
13
|
import { useState as h } from '../../../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
15
14
|
import { OTPMethods, StytchEventType } from '../../../../../../../core/src/public/ui.mjs';
|
|
15
|
+
import { DEFAULT_OTP_EXPIRATION_MINUTES } from '../../../../../../../core/src/constants.mjs';
|
|
16
16
|
import { EmailSentType } from '../../../../../../../core/src/Events.mjs';
|
|
17
17
|
|
|
18
18
|
const OTPButtonText = {
|
|
@@ -7,8 +7,8 @@ import { useConfig } from '../../../GlobalContextProvider.mjs';
|
|
|
7
7
|
import { PasswordMethods, MagicLinkMethods } from '../../../StytchProduct.mjs';
|
|
8
8
|
import { hasProduct, useProductComponents } from '../../../utils.mjs';
|
|
9
9
|
import modules_c21c94f2 from './index.module.css.mjs';
|
|
10
|
-
import { DEV } from '../../../../../../../core/src/utils/dev.mjs';
|
|
11
10
|
import { OTPMethods } from '../../../../../../../core/src/public/ui.mjs';
|
|
11
|
+
import { DEV } from '../../../../../../../core/src/utils/dev.mjs';
|
|
12
12
|
import { Root as Root2, List, Trigger, Content } from '../../../../../../../../node_modules/@radix-ui/react-tabs/dist/index.mjs';
|
|
13
13
|
|
|
14
14
|
const OTPTabHeaders = {
|
|
@@ -9,8 +9,8 @@ import { usePresentation } from '../../../components/PresentationConfig.mjs';
|
|
|
9
9
|
import { usePromptPasskey } from '../../../hooks/usePromptPasskey.mjs';
|
|
10
10
|
import { useStytch, useConfig } from '../../GlobalContextProvider.mjs';
|
|
11
11
|
import { hasProduct, useProductComponents } from '../../utils.mjs';
|
|
12
|
-
import { DEV } from '../../../../../../core/src/utils/dev.mjs';
|
|
13
12
|
import { useState as h, useEffect as p } from '../../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
|
+
import { DEV } from '../../../../../../core/src/utils/dev.mjs';
|
|
14
14
|
|
|
15
15
|
const MainScreen = ()=>{
|
|
16
16
|
const stytchClient = useStytch();
|
|
@@ -3,8 +3,8 @@ import '../../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
|
3
3
|
import { Confirmation } from '../../../components/molecules/Confirmation.mjs';
|
|
4
4
|
import { useMountEffect } from '../../../hooks/useMountEffect.mjs';
|
|
5
5
|
import { useEventCallback } from '../../GlobalContextProvider.mjs';
|
|
6
|
-
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
7
6
|
import { StytchEventType } from '../../../../../../core/src/public/ui.mjs';
|
|
7
|
+
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
8
8
|
|
|
9
9
|
const PasskeyConfirmation = ()=>{
|
|
10
10
|
const { i18n: $__i18n, _: $__ } = useLingui();
|
|
@@ -10,9 +10,9 @@ import { useStytchUser } from '../../../hooks/useStytchUser.mjs';
|
|
|
10
10
|
import { useStytch, useEventCallback, useGlobalReducer, AppScreens } from '../../GlobalContextProvider.mjs';
|
|
11
11
|
import { EditableRow } from './EditableRow.mjs';
|
|
12
12
|
import modules_04e642ad from './PasskeyRegistrationSuccess.module.css.mjs';
|
|
13
|
-
import { errorToStytchError } from '../../../../../../core/src/public/SDKErrors.mjs';
|
|
14
13
|
import { useState as h } from '../../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
15
14
|
import { StytchEventType } from '../../../../../../core/src/public/ui.mjs';
|
|
15
|
+
import { errorToStytchError } from '../../../../../../core/src/public/SDKErrors.mjs';
|
|
16
16
|
import { logger } from '../../../../../../core/src/utils/logger.mjs';
|
|
17
17
|
|
|
18
18
|
const PasskeyRegistrationSuccess = ()=>{
|
|
@@ -2,8 +2,8 @@ import '../../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
|
2
2
|
import { Confirmation } from '../../../components/molecules/Confirmation.mjs';
|
|
3
3
|
import { useMountEffect } from '../../../hooks/useMountEffect.mjs';
|
|
4
4
|
import { useEventCallback } from '../../GlobalContextProvider.mjs';
|
|
5
|
-
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
6
5
|
import { StytchEventType } from '../../../../../../core/src/public/ui.mjs';
|
|
6
|
+
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
7
7
|
|
|
8
8
|
const PasswordConfirmation = ()=>{
|
|
9
9
|
const onEvent = useEventCallback();
|
|
@@ -3,8 +3,8 @@ import '../../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
|
3
3
|
import { Confirmation } from '../../../components/molecules/Confirmation.mjs';
|
|
4
4
|
import { useMountEffect } from '../../../hooks/useMountEffect.mjs';
|
|
5
5
|
import { useEventCallback } from '../../GlobalContextProvider.mjs';
|
|
6
|
-
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
7
6
|
import { StytchEventType } from '../../../../../../core/src/public/ui.mjs';
|
|
7
|
+
import { createElement as y } from '../../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
8
8
|
|
|
9
9
|
const OTPConfirmation = ()=>{
|
|
10
10
|
const { i18n: $__i18n, _: $__ } = useLingui();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
2
2
|
import { useMediaQuery } from '../hooks/useMediaQuery.mjs';
|
|
3
3
|
import { defaultTheme } from './themes/themes.mjs';
|
|
4
|
+
import { useContext as q, useMemo as F$1 } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
4
5
|
import { createContext as F } from '../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
5
6
|
import { RUN_IN_DEV } from '../../../../core/src/utils/dev.mjs';
|
|
6
|
-
import { useContext as q, useMemo as F$1 } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
7
7
|
import { logger } from '../../../../core/src/utils/logger.mjs';
|
|
8
8
|
|
|
9
9
|
const defaultOptions = {
|
|
@@ -4,9 +4,9 @@ import { extractErrorMessage } from '../../utils/extractErrorMessage.mjs';
|
|
|
4
4
|
import { extractErrorType } from '../../utils/extractErrorType.mjs';
|
|
5
5
|
import { useStytch, useConfig, useEventCallback, useErrorCallback, useGlobalReducer, AppScreens } from '../b2c/GlobalContextProvider.mjs';
|
|
6
6
|
import { hasProduct } from '../b2c/utils.mjs';
|
|
7
|
+
import { useState as h, useCallback as T, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
7
8
|
import { DEFAULT_SESSION_DURATION_MINUTES } from '../../../../core/src/constants.mjs';
|
|
8
9
|
import { StytchEventType } from '../../../../core/src/public/ui.mjs';
|
|
9
|
-
import { useState as h, useCallback as T, useEffect as p } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
10
|
|
|
11
11
|
const MAX_ATTEMPTS = 5;
|
|
12
12
|
const usePromptPasskey = ({ canAutofill, shadowDOM })=>{
|