@stytch/vanilla-js 6.0.5 → 6.0.7
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 +18 -0
- package/dist/cjs/{StytchSSRProxy-uT0ZmdOT.js → StytchSSRProxy-4bK96PqP.js} +2 -5
- package/dist/cjs/StytchSSRProxy-4bK96PqP.js.map +1 -0
- package/dist/cjs/b2b/index.cjs +10 -10
- package/dist/cjs/b2b/index.cjs.map +1 -1
- package/dist/cjs/b2b/index.headless.cjs +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.headless.cjs +1 -1
- package/dist/cjs/{shadcn-DNo-Z1LB.js → shadcn-C9ZF6bjn.js} +2 -2
- package/dist/cjs/{shadcn-DNo-Z1LB.js.map → shadcn-C9ZF6bjn.js.map} +1 -1
- package/dist/cjs-dev/{StytchSSRProxy-Dz4qX2tJ.js → StytchSSRProxy-4d3oztg-.js} +2 -5
- package/dist/cjs-dev/StytchSSRProxy-4d3oztg-.js.map +1 -0
- package/dist/cjs-dev/b2b/index.cjs +10 -10
- package/dist/cjs-dev/b2b/index.cjs.map +1 -1
- package/dist/cjs-dev/b2b/index.headless.cjs +1 -1
- package/dist/cjs-dev/index.cjs +2 -2
- package/dist/cjs-dev/index.headless.cjs +1 -1
- package/dist/cjs-dev/{shadcn-JZgM-5AS.js → shadcn-BMlZ0kfy.js} +2 -2
- package/dist/cjs-dev/{shadcn-JZgM-5AS.js.map → shadcn-BMlZ0kfy.js.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/NetworkClient.mjs +1 -3
- package/dist/esm/packages/web/src/NetworkClient.mjs.map +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/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-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/NetworkClient.mjs +1 -3
- package/dist/esm-dev/packages/web/src/NetworkClient.mjs.map +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.headless.js +1 -1
- package/dist/iife/b2b/index.headless.js.map +1 -1
- package/dist/iife/b2b/index.js +2 -2
- package/dist/iife/b2b/index.js.map +1 -1
- package/dist/iife/index.headless.js +1 -1
- package/dist/iife/index.headless.js.map +1 -1
- package/dist/iife/index.js +1 -1
- package/dist/iife/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
- package/dist/cjs/StytchSSRProxy-uT0ZmdOT.js.map +0 -1
- package/dist/cjs-dev/StytchSSRProxy-Dz4qX2tJ.js.map +0 -1
- package/dist/esm/packages/web/package.json.mjs +0 -4
- package/dist/esm/packages/web/package.json.mjs.map +0 -1
- package/dist/esm-dev/packages/web/package.json.mjs +0 -4
- package/dist/esm-dev/packages/web/package.json.mjs.map +0 -1
|
@@ -3,8 +3,8 @@ import createCache from '../../cache/dist/emotion-cache.browser.esm.mjs';
|
|
|
3
3
|
import { getRegisteredStyles, registerStyles, insertStyles } from '../../utils/dist/emotion-utils.browser.esm.mjs';
|
|
4
4
|
import { serializeStyles } from '../../serialize/dist/emotion-serialize.esm.mjs';
|
|
5
5
|
import { useInsertionEffectAlwaysWithSyncFallback } from '../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs';
|
|
6
|
-
import { createContext as F, createElement as y, Fragment as g } from '../../../preact/dist/preact.module.mjs';
|
|
7
6
|
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
7
|
+
import { createContext as F, createElement as y, Fragment as g } from '../../../preact/dist/preact.module.mjs';
|
|
8
8
|
|
|
9
9
|
var EmotionCacheContext = /* #__PURE__ */F( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
10
10
|
// because this module is primarily intended for the browser and node
|
|
@@ -19,10 +19,10 @@ import Chip from '../Chip/Chip.mjs';
|
|
|
19
19
|
import capitalize from '../../utils/esm/capitalize/capitalize.mjs';
|
|
20
20
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
21
21
|
import styled from '../styles/styled.mjs';
|
|
22
|
+
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
22
23
|
import IconButton from '../IconButton/IconButton.mjs';
|
|
23
24
|
import ListSubheader from '../ListSubheader/ListSubheader.mjs';
|
|
24
25
|
import { Fragment as g } from '../../../preact/dist/preact.module.mjs';
|
|
25
|
-
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
26
26
|
|
|
27
27
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
28
28
|
const useUtilityClasses$E = ownerState => {
|
|
@@ -15,8 +15,8 @@ import capitalize from '../../utils/esm/capitalize/capitalize.mjs';
|
|
|
15
15
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
16
16
|
import styled from '../styles/styled.mjs';
|
|
17
17
|
import ButtonBase from '../ButtonBase/ButtonBase.mjs';
|
|
18
|
-
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
19
18
|
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
19
|
+
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
20
20
|
|
|
21
21
|
const useUtilityClasses$C = ownerState => {
|
|
22
22
|
const {
|
|
@@ -11,8 +11,8 @@ import ButtonBase from '../ButtonBase/ButtonBase.mjs';
|
|
|
11
11
|
import capitalize from '../../utils/esm/capitalize/capitalize.mjs';
|
|
12
12
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
13
13
|
import styled from '../styles/styled.mjs';
|
|
14
|
-
import { useRef as _ } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
15
14
|
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
15
|
+
import { useRef as _ } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
16
16
|
|
|
17
17
|
const useUtilityClasses$G = ownerState => {
|
|
18
18
|
const {
|
|
@@ -14,8 +14,8 @@ import ButtonBase from '../ButtonBase/ButtonBase.mjs';
|
|
|
14
14
|
import listItemIconClasses from '../ListItemIcon/listItemIconClasses.mjs';
|
|
15
15
|
import listItemTextClasses from '../ListItemText/listItemTextClasses.mjs';
|
|
16
16
|
import dividerClasses from '../Divider/dividerClasses.mjs';
|
|
17
|
-
import { useContext as q, useMemo as F, useRef as _ } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
18
17
|
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
18
|
+
import { useContext as q, useMemo as F, useRef as _ } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
19
19
|
|
|
20
20
|
const overridesResolver = (props, styles) => {
|
|
21
21
|
const {
|
|
@@ -9,8 +9,8 @@ import { useDefaultProps } from '../DefaultPropsProvider/DefaultPropsProvider.mj
|
|
|
9
9
|
import capitalize from '../../utils/esm/capitalize/capitalize.mjs';
|
|
10
10
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
11
11
|
import styled from '../styles/styled.mjs';
|
|
12
|
-
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
13
12
|
import { lighten, alpha, darken } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
13
|
+
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
14
14
|
|
|
15
15
|
const useUtilityClasses$6 = ownerState => {
|
|
16
16
|
const {
|
|
@@ -7,8 +7,8 @@ import { jsx as u } from '../../../preact/jsx-runtime/dist/jsxRuntime.module.mjs
|
|
|
7
7
|
import { useDefaultProps } from '../DefaultPropsProvider/DefaultPropsProvider.mjs';
|
|
8
8
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
9
9
|
import styled from '../styles/styled.mjs';
|
|
10
|
-
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
11
10
|
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
11
|
+
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
12
12
|
|
|
13
13
|
const useUtilityClasses$1 = ownerState => {
|
|
14
14
|
const {
|
|
@@ -18,10 +18,10 @@ import Grow from '../Grow/Grow.mjs';
|
|
|
18
18
|
import Popper from '../Popper/Popper.mjs';
|
|
19
19
|
import capitalize from '../../utils/esm/capitalize/capitalize.mjs';
|
|
20
20
|
import composeClasses from '../../utils/esm/composeClasses/composeClasses.mjs';
|
|
21
|
+
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
21
22
|
import isFocusVisible from '../../utils/esm/isFocusVisible/isFocusVisible.mjs';
|
|
22
23
|
import { useState as h, useRef as _, useEffect as p, useMemo as F } from '../../../preact/hooks/dist/hooks.module.mjs';
|
|
23
24
|
import { Fragment as g } from '../../../preact/dist/preact.module.mjs';
|
|
24
|
-
import { alpha } from '../../system/esm/colorManipulator/colorManipulator.mjs';
|
|
25
25
|
|
|
26
26
|
function round(value) {
|
|
27
27
|
return Math.round(value * 1e5) / 1e5;
|
|
@@ -9,11 +9,11 @@ import { private_safeDarken, private_safeLighten, private_safeEmphasize, private
|
|
|
9
9
|
import deepmerge from '../../utils/esm/deepmerge/deepmerge.mjs';
|
|
10
10
|
import prepareCssVars from '../../system/esm/cssVars/prepareCssVars.mjs';
|
|
11
11
|
import createSpacing from '../../system/esm/createTheme/createSpacing.mjs';
|
|
12
|
+
import { createUnarySpacing } from '../../system/esm/spacing/spacing.mjs';
|
|
12
13
|
import { createGetColorSchemeSelector } from '../../system/esm/cssVars/getColorSchemeSelector.mjs';
|
|
13
14
|
import defaultSxConfig from '../../system/esm/styleFunctionSx/defaultSxConfig.mjs';
|
|
14
15
|
import styleFunctionSx from '../../system/esm/styleFunctionSx/styleFunctionSx.mjs';
|
|
15
16
|
import createGetCssVar$1 from '../../system/esm/cssVars/createGetCssVar.mjs';
|
|
16
|
-
import { createUnarySpacing } from '../../system/esm/spacing/spacing.mjs';
|
|
17
17
|
|
|
18
18
|
function assignNode(obj, keys) {
|
|
19
19
|
keys.forEach(k => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createUnaryUnit, getValue } from '../spacing/spacing.mjs';
|
|
2
|
+
import { handleBreakpoints } from '../breakpoints/breakpoints.mjs';
|
|
2
3
|
import compose from '../compose/compose.mjs';
|
|
3
4
|
import style from '../style/style.mjs';
|
|
4
|
-
import { handleBreakpoints } from '../breakpoints/breakpoints.mjs';
|
|
5
5
|
|
|
6
6
|
function borderTransform(value) {
|
|
7
7
|
if (typeof value !== 'number') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import style from '../style/style.mjs';
|
|
2
|
-
import compose from '../compose/compose.mjs';
|
|
3
1
|
import { createUnaryUnit, getValue } from '../spacing/spacing.mjs';
|
|
4
2
|
import { handleBreakpoints } from '../breakpoints/breakpoints.mjs';
|
|
3
|
+
import style from '../style/style.mjs';
|
|
4
|
+
import compose from '../compose/compose.mjs';
|
|
5
5
|
|
|
6
6
|
// false positive
|
|
7
7
|
// eslint-disable-next-line react/function-component-definition
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { handleBreakpoints, values } from '../breakpoints/breakpoints.mjs';
|
|
1
2
|
import style from '../style/style.mjs';
|
|
2
3
|
import compose from '../compose/compose.mjs';
|
|
3
|
-
import { handleBreakpoints, values } from '../breakpoints/breakpoints.mjs';
|
|
4
4
|
|
|
5
5
|
function sizingTransform(value) {
|
|
6
6
|
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPath } from '../style/style.mjs';
|
|
2
2
|
import merge from '../merge/merge.mjs';
|
|
3
|
-
import memoize from '../memoize/memoize.mjs';
|
|
4
3
|
import { handleBreakpoints } from '../breakpoints/breakpoints.mjs';
|
|
4
|
+
import memoize from '../memoize/memoize.mjs';
|
|
5
5
|
|
|
6
6
|
const properties = {
|
|
7
7
|
m: 'margin',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { omitUser, isTestPublicToken } from '../utils/index.mjs';
|
|
2
|
-
import { OAuthProviders } from '../public/ui.mjs';
|
|
3
2
|
import { logger } from '../utils/logger.mjs';
|
|
3
|
+
import { OAuthProviders } from '../public/ui.mjs';
|
|
4
4
|
|
|
5
5
|
let HeadlessOAuthClient$1 = class HeadlessOAuthClient {
|
|
6
6
|
_networkClient;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { version } from '../package.json.mjs';
|
|
2
1
|
import { isTestPublicToken, createPersistentId, createAppSessionId, createEventId } from '../../core/src/utils/index.mjs';
|
|
3
2
|
import { EventLogger, DEFAULT_INTERVAL_DURATION_MS, DEFAULT_MAX_BATCH_SIZE } from '../../core/src/EventLogger.mjs';
|
|
4
3
|
import { baseFetchSDK, baseSubmitFormSDK, retriableFetchSDK } from '../../core/src/NetworkClient.mjs';
|
|
@@ -64,10 +63,9 @@ class NetworkClient {
|
|
|
64
63
|
identifier: window.location.hostname
|
|
65
64
|
},
|
|
66
65
|
sdk: {
|
|
67
|
-
// TODO: Pull these from package.json when there is a package
|
|
68
66
|
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
69
67
|
identifier: 'Stytch.js Javascript SDK',
|
|
70
|
-
version:
|
|
68
|
+
version: "@stytch/vanilla-js" + '@' + "6.0.7"
|
|
71
69
|
}
|
|
72
70
|
};
|
|
73
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkClient.mjs","sources":["../../../../../../web/src/NetworkClient.ts"],"sourcesContent":["import {\n AdditionalTelemetryData,\n baseFetchSDK,\n baseSubmitFormSDK,\n createAppSessionId,\n createEventId,\n createPersistentId,\n DEFAULT_INTERVAL_DURATION_MS,\n DEFAULT_MAX_BATCH_SIZE,\n EventLogger,\n INetworkClient,\n isTestPublicToken,\n retriableFetchSDK,\n RetriableSDKRequestInfo,\n SDKRequestInfo,\n SDKTelemetry,\n} from '@stytch/core';\nimport { ResponseCommon } from '@stytch/core/public';\n\nimport { version as PACKAGE_VERSION } from '../package.json';\nimport { B2BSubscriptionDataLayer, ConsumerSubscriptionDataLayer } from './SubscriptionService';\n\nexport class NetworkClient implements INetworkClient {\n private eventLogger: EventLogger;\n private readonly baseURL: string;\n\n constructor(\n private _publicToken: string,\n private _subscriptionDataLayer: ConsumerSubscriptionDataLayer | B2BSubscriptionDataLayer,\n _liveAPIURL: string,\n _testAPIURL: string,\n private additionalTelemetryDataFn: () => AdditionalTelemetryData,\n ) {\n this.baseURL = _liveAPIURL;\n if (isTestPublicToken(_publicToken)) {\n this.baseURL = _testAPIURL;\n }\n this.eventLogger = new EventLogger({\n maxBatchSize: DEFAULT_MAX_BATCH_SIZE,\n intervalDurationMs: DEFAULT_INTERVAL_DURATION_MS,\n logEventURL: this.buildSDKUrl('/events'),\n });\n }\n\n // @deprecated Use the new sessions.updateSession() method instead\n updateSessionToken = () => {\n return null;\n };\n\n logEvent({\n name,\n details,\n error = {},\n }: {\n name: string;\n details: Record<string, unknown>;\n error?: { error_code?: string; error_description?: string; http_status_code?: string };\n }): void {\n this.eventLogger.logEvent(this.createTelemetryBlob(), {\n public_token: this._publicToken,\n event_name: name,\n details: details,\n\n // Error fields\n error_code: error.error_code,\n error_description: error.error_description,\n http_status_code: error.http_status_code,\n });\n }\n\n createTelemetryBlob(): SDKTelemetry {\n return {\n event_id: createEventId(),\n // TODO: These should be persisted somewhere, not generated per request\n app_session_id: createAppSessionId(),\n persistent_id: createPersistentId(),\n\n client_sent_at: new Date().toISOString(),\n timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n\n // Logged in data\n // This gets passed into the constructor from StytchClient or StytchB2BClient\n // We pass in the user & session id when the Consumer SDK is being used and member & session id\n // when the B2B SDK is being used.\n\n // Why don't we generate this from the session_token in the auth header?\n // - We don't want to tie analytics ingest to session validation. There's no need to put\n // that kind of pressure on API, and ingest could be moved to somewhere that doesn't\n // have the ability to validate tokens\n // - For bulk event batches, we want to keep track of whether or not a user was logged\n // in at each event. If we have 10 events, the user logs in at event 5, then they'll have\n // a token when they log the batch, but we want to know that they were not logged in for the\n // first 4 events\n ...this.additionalTelemetryDataFn(),\n\n // Versioning\n app: {\n identifier: window.location.hostname,\n },\n sdk: {\n // TODO: Pull these from package.json when there is a package\n // eslint-disable-next-line lingui/no-unlocalized-strings\n identifier: 'Stytch.js Javascript SDK',\n version: PACKAGE_VERSION,\n },\n };\n }\n\n async fetchSDK<T extends ResponseCommon>({ url, body, method }: SDKRequestInfo): Promise<T> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return baseFetchSDK<T>({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n });\n }\n\n async submitFormSDK({ url, body, method }: SDKRequestInfo): Promise<void> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return baseSubmitFormSDK({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n });\n }\n\n async retriableFetchSDK<T extends ResponseCommon>({\n url,\n body,\n method,\n retryCallback,\n }: RetriableSDKRequestInfo): Promise<T> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return retriableFetchSDK<T>({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n retryCallback,\n });\n }\n\n buildSDKUrl(url: string): string {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return `${this.baseURL}/sdk/v1${url}`;\n }\n}\n"],"names":["NetworkClient","eventLogger","baseURL","_subscriptionDataLayer","_liveAPIURL","_testAPIURL","_publicToken","additionalTelemetryDataFn","isTestPublicToken","EventLogger","maxBatchSize","DEFAULT_MAX_BATCH_SIZE","intervalDurationMs","DEFAULT_INTERVAL_DURATION_MS","logEventURL","buildSDKUrl","updateSessionToken","logEvent","name","details","error","createTelemetryBlob","public_token","event_name","error_code","error_description","http_status_code","event_id","createEventId","app_session_id","createAppSessionId","persistent_id","createPersistentId","client_sent_at","Date","toISOString","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","app","identifier","window","location","hostname","sdk","version","PACKAGE_VERSION","fetchSDK","url","body","method","sessionToken","readSessionCookie","session_token","basicAuthHeader","btoa","xSDKClientHeader","JSON","stringify","xSDKParentHostHeader","origin","baseFetchSDK","finalURL","submitFormSDK","baseSubmitFormSDK","retriableFetchSDK","retryCallback"],"mappings":";;;;;AAsBO,MAAMA,aAAAA,CAAAA;;;;IACHC,WAAAA;IACSC,OAAAA;AAEjB,IAAA,WAAA,CACE,YAA4B,EACpBC,sBAAgF,EACxFC,WAAmB,EACnBC,WAAmB,EACnB,yBAAgE,CAChE;aALQC,YAAAA,GAAAA,YAAAA;aACAH,sBAAAA,GAAAA,sBAAAA;aAGAI,yBAAAA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
|
1
|
+
{"version":3,"file":"NetworkClient.mjs","sources":["../../../../../../web/src/NetworkClient.ts"],"sourcesContent":["import {\n AdditionalTelemetryData,\n baseFetchSDK,\n baseSubmitFormSDK,\n createAppSessionId,\n createEventId,\n createPersistentId,\n DEFAULT_INTERVAL_DURATION_MS,\n DEFAULT_MAX_BATCH_SIZE,\n EventLogger,\n INetworkClient,\n isTestPublicToken,\n retriableFetchSDK,\n RetriableSDKRequestInfo,\n SDKRequestInfo,\n SDKTelemetry,\n} from '@stytch/core';\nimport { ResponseCommon } from '@stytch/core/public';\n\nimport { B2BSubscriptionDataLayer, ConsumerSubscriptionDataLayer } from './SubscriptionService';\n\nexport class NetworkClient implements INetworkClient {\n private eventLogger: EventLogger;\n private readonly baseURL: string;\n\n constructor(\n private _publicToken: string,\n private _subscriptionDataLayer: ConsumerSubscriptionDataLayer | B2BSubscriptionDataLayer,\n _liveAPIURL: string,\n _testAPIURL: string,\n private additionalTelemetryDataFn: () => AdditionalTelemetryData,\n ) {\n this.baseURL = _liveAPIURL;\n if (isTestPublicToken(_publicToken)) {\n this.baseURL = _testAPIURL;\n }\n this.eventLogger = new EventLogger({\n maxBatchSize: DEFAULT_MAX_BATCH_SIZE,\n intervalDurationMs: DEFAULT_INTERVAL_DURATION_MS,\n logEventURL: this.buildSDKUrl('/events'),\n });\n }\n\n // @deprecated Use the new sessions.updateSession() method instead\n updateSessionToken = () => {\n return null;\n };\n\n logEvent({\n name,\n details,\n error = {},\n }: {\n name: string;\n details: Record<string, unknown>;\n error?: { error_code?: string; error_description?: string; http_status_code?: string };\n }): void {\n this.eventLogger.logEvent(this.createTelemetryBlob(), {\n public_token: this._publicToken,\n event_name: name,\n details: details,\n\n // Error fields\n error_code: error.error_code,\n error_description: error.error_description,\n http_status_code: error.http_status_code,\n });\n }\n\n createTelemetryBlob(): SDKTelemetry {\n return {\n event_id: createEventId(),\n // TODO: These should be persisted somewhere, not generated per request\n app_session_id: createAppSessionId(),\n persistent_id: createPersistentId(),\n\n client_sent_at: new Date().toISOString(),\n timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n\n // Logged in data\n // This gets passed into the constructor from StytchClient or StytchB2BClient\n // We pass in the user & session id when the Consumer SDK is being used and member & session id\n // when the B2B SDK is being used.\n\n // Why don't we generate this from the session_token in the auth header?\n // - We don't want to tie analytics ingest to session validation. There's no need to put\n // that kind of pressure on API, and ingest could be moved to somewhere that doesn't\n // have the ability to validate tokens\n // - For bulk event batches, we want to keep track of whether or not a user was logged\n // in at each event. If we have 10 events, the user logs in at event 5, then they'll have\n // a token when they log the batch, but we want to know that they were not logged in for the\n // first 4 events\n ...this.additionalTelemetryDataFn(),\n\n // Versioning\n app: {\n identifier: window.location.hostname,\n },\n sdk: {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n identifier: 'Stytch.js Javascript SDK',\n version: STYTCH_PACKAGE_NAME + '@' + STYTCH_PACKAGE_VERSION,\n },\n };\n }\n\n async fetchSDK<T extends ResponseCommon>({ url, body, method }: SDKRequestInfo): Promise<T> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return baseFetchSDK<T>({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n });\n }\n\n async submitFormSDK({ url, body, method }: SDKRequestInfo): Promise<void> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return baseSubmitFormSDK({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n });\n }\n\n async retriableFetchSDK<T extends ResponseCommon>({\n url,\n body,\n method,\n retryCallback,\n }: RetriableSDKRequestInfo): Promise<T> {\n const sessionToken = this._subscriptionDataLayer.readSessionCookie().session_token;\n const basicAuthHeader = 'Basic ' + window.btoa(this._publicToken + ':' + (sessionToken || this._publicToken));\n const xSDKClientHeader = window.btoa(JSON.stringify(this.createTelemetryBlob()));\n const xSDKParentHostHeader = window.location.origin;\n\n return retriableFetchSDK<T>({\n basicAuthHeader,\n body,\n finalURL: this.buildSDKUrl(url),\n method,\n xSDKClientHeader,\n xSDKParentHostHeader,\n retryCallback,\n });\n }\n\n buildSDKUrl(url: string): string {\n // eslint-disable-next-line lingui/no-unlocalized-strings\n return `${this.baseURL}/sdk/v1${url}`;\n }\n}\n"],"names":["NetworkClient","eventLogger","baseURL","_subscriptionDataLayer","_liveAPIURL","_testAPIURL","_publicToken","additionalTelemetryDataFn","isTestPublicToken","EventLogger","maxBatchSize","DEFAULT_MAX_BATCH_SIZE","intervalDurationMs","DEFAULT_INTERVAL_DURATION_MS","logEventURL","buildSDKUrl","updateSessionToken","logEvent","name","details","error","createTelemetryBlob","public_token","event_name","error_code","error_description","http_status_code","event_id","createEventId","app_session_id","createAppSessionId","persistent_id","createPersistentId","client_sent_at","Date","toISOString","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","app","identifier","window","location","hostname","sdk","version","fetchSDK","url","body","method","sessionToken","readSessionCookie","session_token","basicAuthHeader","btoa","xSDKClientHeader","JSON","stringify","xSDKParentHostHeader","origin","baseFetchSDK","finalURL","submitFormSDK","baseSubmitFormSDK","retriableFetchSDK","retryCallback"],"mappings":";;;;AAqBO,MAAMA,aAAAA,CAAAA;;;;IACHC,WAAAA;IACSC,OAAAA;AAEjB,IAAA,WAAA,CACE,YAA4B,EACpBC,sBAAgF,EACxFC,WAAmB,EACnBC,WAAmB,EACnB,yBAAgE,CAChE;aALQC,YAAAA,GAAAA,YAAAA;aACAH,sBAAAA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AC,OAAO,EAAE+C,GAAAA,CAAAA,CAAK;AACvC,IAAA;AACF;;;;"}
|
|
@@ -5,8 +5,8 @@ import { ToastContextProvider } from './components/Toast.mjs';
|
|
|
5
5
|
import { MainContainer } from './MainContainer.mjs';
|
|
6
6
|
import { StytchClientContext } from './StytchClientContext.mjs';
|
|
7
7
|
import { getTheme } from './utils/theme.mjs';
|
|
8
|
-
import ThemeProvider from '../../../../node_modules/@mui/material/styles/ThemeProvider.mjs';
|
|
9
8
|
import { useMemo as F } from '../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
9
|
+
import ThemeProvider from '../../../../node_modules/@mui/material/styles/ThemeProvider.mjs';
|
|
10
10
|
|
|
11
11
|
const ContextProvider = ({ theme, options, children })=>{
|
|
12
12
|
const clientAndConfig = F(()=>({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import wn from '../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
2
2
|
import { IconButtonMenu } from './IconButtonMenu.mjs';
|
|
3
3
|
import styled from '../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
4
|
-
import MoreVert from '../../../../../node_modules/@mui/icons-material/esm/MoreVert.mjs';
|
|
5
4
|
import { useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
5
|
+
import MoreVert from '../../../../../node_modules/@mui/icons-material/esm/MoreVert.mjs';
|
|
6
6
|
|
|
7
7
|
const StyledDiv = styled('div')({
|
|
8
8
|
display: 'flex',
|
|
@@ -13,9 +13,9 @@ import autocompleteClasses from '../../../../../node_modules/@mui/material/Autoc
|
|
|
13
13
|
import outlinedInputClasses from '../../../../../node_modules/@mui/material/OutlinedInput/outlinedInputClasses.mjs';
|
|
14
14
|
import inputBaseClasses from '../../../../../node_modules/@mui/material/InputBase/inputBaseClasses.mjs';
|
|
15
15
|
import IconButton from '../../../../../node_modules/@mui/material/IconButton/IconButton.mjs';
|
|
16
|
+
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
16
17
|
import Typography from '../../../../../node_modules/@mui/material/Typography/Typography.mjs';
|
|
17
18
|
import TextField from '../../../../../node_modules/@mui/material/TextField/TextField.mjs';
|
|
18
|
-
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
19
19
|
|
|
20
20
|
const StyledAutocomplete = styled(Autocomplete$1)(({ theme })=>({
|
|
21
21
|
[`& .${inputBaseClasses.root}`]: {
|
|
@@ -2,8 +2,8 @@ import wn from '../../../../../node_modules/preact/compat/dist/compat.module.mjs
|
|
|
2
2
|
import { Modal } from './Modal.mjs';
|
|
3
3
|
import { Typography } from './Typography.mjs';
|
|
4
4
|
import { useDeleteSsoConnection } from '../utils/useMutateSsoConnection.mjs';
|
|
5
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
6
5
|
import { useState as h, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
6
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
7
7
|
|
|
8
8
|
const DeleteConfirmModal = ({ connectionName, connectionType, ...modalProps })=>{
|
|
9
9
|
return /*#__PURE__*/ wn.createElement(Modal, {
|
|
@@ -5,8 +5,8 @@ import { Typography } from './Typography.mjs';
|
|
|
5
5
|
import styled from '../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
6
6
|
import MenuItem from '../../../../../node_modules/@mui/material/MenuItem/MenuItem.mjs';
|
|
7
7
|
import IconButton from '../../../../../node_modules/@mui/material/IconButton/IconButton.mjs';
|
|
8
|
-
import Menu from '../../../../../node_modules/@mui/material/Menu/Menu.mjs';
|
|
9
8
|
import { useState as h, useCallback as T, useMemo as F } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
9
|
+
import Menu from '../../../../../node_modules/@mui/material/Menu/Menu.mjs';
|
|
10
10
|
|
|
11
11
|
const StyledMenuItem$1 = styled(MenuItem)(({ theme })=>({
|
|
12
12
|
padding: theme.spacing(1),
|
|
@@ -7,9 +7,9 @@ import { Modal } from './Modal.mjs';
|
|
|
7
7
|
import { useToast } from '../shared/components/Toast.mjs';
|
|
8
8
|
import { Typography } from './Typography.mjs';
|
|
9
9
|
import styled from '../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
10
|
+
import { useState as h, useContext as q } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
11
|
import { useModalState } from '../shared/components/Modal.mjs';
|
|
11
12
|
import { createContext as F } from '../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
12
|
-
import { useState as h, useContext as q } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
13
|
|
|
14
14
|
const Container$2 = styled('div')(({ theme })=>({
|
|
15
15
|
border: '1px solid',
|
|
@@ -19,8 +19,8 @@ import { useRoleSortFn } from '../utils/useRoleSortFn.mjs';
|
|
|
19
19
|
import { useSelf } from '../utils/useSelf.mjs';
|
|
20
20
|
import { useStateSliceSetter } from '../utils/useStateSliceSetter.mjs';
|
|
21
21
|
import { useMemberManagementRouterController } from './MemberManagementRouter.mjs';
|
|
22
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
23
22
|
import { useMemo as F, useRef as _, useCallback as T, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
23
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
24
24
|
|
|
25
25
|
const getRoleSourceTypeDisplayName = (sourceType)=>{
|
|
26
26
|
switch(sourceType){
|
|
@@ -6,8 +6,8 @@ import { Modal } from '../components/Modal.mjs';
|
|
|
6
6
|
import { ROLE_ID_STYTCH_MEMBER } from '../utils/roles.mjs';
|
|
7
7
|
import { useRbac } from '../utils/useRbac.mjs';
|
|
8
8
|
import { useRoleAutocomplete } from '../utils/useRoleAutocomplete.mjs';
|
|
9
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
10
9
|
import { useState as h, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
11
11
|
|
|
12
12
|
const defaultInviteRoles = [];
|
|
13
13
|
const useInviteModal = (inviteUser)=>{
|
|
@@ -7,8 +7,8 @@ import { memberGetKey } from '../utils/memberGetKey.mjs';
|
|
|
7
7
|
import { useMutateWithToast } from '../utils/useMutateWithToast.mjs';
|
|
8
8
|
import { useStytchClient } from '../utils/useStytchClient.mjs';
|
|
9
9
|
import { useUpdateCachedMember } from '../utils/useUpdateCachedMember.mjs';
|
|
10
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
11
10
|
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
11
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
12
12
|
|
|
13
13
|
const getActionCopy = ({ status, isEmailVerified })=>{
|
|
14
14
|
if (status === 'invited') {
|
|
@@ -16,8 +16,8 @@ import { useRbac } from '../utils/useRbac.mjs';
|
|
|
16
16
|
import { scimGetConnectionKey } from '../utils/useScimConnection.mjs';
|
|
17
17
|
import { useStytchClient } from '../utils/useStytchClient.mjs';
|
|
18
18
|
import { getFieldBy, DEFAULT_HEADER_BEARER_TOKEN_LABEL } from './scimInfo.mjs';
|
|
19
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
20
19
|
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
20
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
21
21
|
|
|
22
22
|
const tokenRotationItemRenderers = ({ isCurrent, tokenTitle, tokenLastFour, tokenExpiresAt })=>[
|
|
23
23
|
{
|
|
@@ -7,9 +7,9 @@ import { SCIMFields } from '../components/ScimFields.mjs';
|
|
|
7
7
|
import { Typography } from '../components/Typography.mjs';
|
|
8
8
|
import { getSCIMIdpInfo } from './scimInfo.mjs';
|
|
9
9
|
import { useScimRouterController } from './SCIMRouter.mjs';
|
|
10
|
+
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
11
|
import Accordion from '../../../../../node_modules/@mui/material/Accordion/Accordion.mjs';
|
|
11
12
|
import AccordionDetails from '../../../../../node_modules/@mui/material/AccordionDetails/AccordionDetails.mjs';
|
|
12
|
-
import { useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
13
|
|
|
14
14
|
const SCIMNewConnectionConfigureScreen = ({ connection })=>{
|
|
15
15
|
const { navigate } = useScimRouterController();
|
package/dist/esm/packages/web/src/adminPortal/settings/OrgSettingsRoleAssignmentsSection.mjs
CHANGED
|
@@ -29,10 +29,10 @@ import { useScimConnection } from '../utils/useScimConnection.mjs';
|
|
|
29
29
|
import { useScimConnectionGroups } from '../utils/useScimConnectionGroups.mjs';
|
|
30
30
|
import { useSsoConnections } from '../utils/useSsoConnections.mjs';
|
|
31
31
|
import { useOrgSettingsRouterController } from './AdminPortalOrgRouter.mjs';
|
|
32
|
+
import { useMemo as F, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
32
33
|
import { useModalState } from '../shared/components/Modal.mjs';
|
|
33
34
|
import TableContainer from '../../../../../node_modules/@mui/material/TableContainer/TableContainer.mjs';
|
|
34
35
|
import Paper from '../../../../../node_modules/@mui/material/Paper/Paper.mjs';
|
|
35
|
-
import { useMemo as F, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
36
36
|
|
|
37
37
|
const roleAssignmentsItemRenderers = (idMap, rolesById)=>[
|
|
38
38
|
{
|
|
@@ -27,8 +27,8 @@ import { useRbac } from '../utils/useRbac.mjs';
|
|
|
27
27
|
import { useSelf } from '../utils/useSelf.mjs';
|
|
28
28
|
import { useStateSliceSetter } from '../utils/useStateSliceSetter.mjs';
|
|
29
29
|
import { useOrgSettingsRouterController } from './AdminPortalOrgRouter.mjs';
|
|
30
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
31
30
|
import { useMemo as F, useCallback as T, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
31
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
32
32
|
|
|
33
33
|
const useMutateAuthSettings = ()=>{
|
|
34
34
|
const { mutate } = useMutateOrganization();
|
|
@@ -4,11 +4,11 @@ import { TABLE_ACTIONS_HEADER, TableActionsContainer } from './TableActions.mjs'
|
|
|
4
4
|
import styled from '../../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
5
5
|
import Table from '../../../../../../node_modules/@mui/material/Table/Table.mjs';
|
|
6
6
|
import TableCell from '../../../../../../node_modules/@mui/material/TableCell/TableCell.mjs';
|
|
7
|
+
import { useCallback as T, useState as h, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
7
8
|
import TableContainer from '../../../../../../node_modules/@mui/material/TableContainer/TableContainer.mjs';
|
|
8
9
|
import TableHead from '../../../../../../node_modules/@mui/material/TableHead/TableHead.mjs';
|
|
9
10
|
import TableRow from '../../../../../../node_modules/@mui/material/TableRow/TableRow.mjs';
|
|
10
11
|
import TableBody from '../../../../../../node_modules/@mui/material/TableBody/TableBody.mjs';
|
|
11
|
-
import { useCallback as T, useState as h, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
12
12
|
|
|
13
13
|
const StyledTable$1 = styled(Table)(({ hasActions })=>[
|
|
14
14
|
// For some reason with position sticky, the table is 2px wider than the container
|
|
@@ -2,8 +2,8 @@ import wn from '../../../../../../node_modules/preact/compat/dist/compat.module.
|
|
|
2
2
|
import { useUniqueId } from '../../../utils/uniqueId.mjs';
|
|
3
3
|
import { DEFAULT_GRID_COLUMN_WIDTH, DEFAULT_MAX_ITEM_WIDTH } from './constants.mjs';
|
|
4
4
|
import styled from '../../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
5
|
-
import OutlinedInput from '../../../../../../node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs';
|
|
6
5
|
import { useState as h, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
6
|
+
import OutlinedInput from '../../../../../../node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs';
|
|
7
7
|
|
|
8
8
|
const InputContainer = styled('div')(({ isMultiline, isReadOnly, fullWidth, theme })=>[
|
|
9
9
|
{
|
|
@@ -4,9 +4,9 @@ import { useToast } from './Toast.mjs';
|
|
|
4
4
|
import styled from '../../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
5
5
|
import tablePaginationClasses from '../../../../../../node_modules/@mui/material/TablePagination/tablePaginationClasses.mjs';
|
|
6
6
|
import iconButtonClasses from '../../../../../../node_modules/@mui/material/IconButton/iconButtonClasses.mjs';
|
|
7
|
+
import { useRef as _ } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
7
8
|
import CircularProgress from '../../../../../../node_modules/@mui/material/CircularProgress/CircularProgress.mjs';
|
|
8
9
|
import TablePagination from '../../../../../../node_modules/@mui/material/TablePagination/TablePagination.mjs';
|
|
9
|
-
import { useRef as _ } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
10
|
|
|
11
11
|
const DEFAULT_TABLE_ROWS_PER_PAGE = 20;
|
|
12
12
|
const LOAD_NEXT_PAGE_ERROR = 'Failed to load the next page.';
|
|
@@ -8,12 +8,12 @@ import styled from '../../../../../../node_modules/@mui/material/styles/styled.m
|
|
|
8
8
|
import Table from '../../../../../../node_modules/@mui/material/Table/Table.mjs';
|
|
9
9
|
import TableRow$1 from '../../../../../../node_modules/@mui/material/TableRow/TableRow.mjs';
|
|
10
10
|
import TableCell$1 from '../../../../../../node_modules/@mui/material/TableCell/TableCell.mjs';
|
|
11
|
+
import { useState as h, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
11
12
|
import TableContainer from '../../../../../../node_modules/@mui/material/TableContainer/TableContainer.mjs';
|
|
12
13
|
import TableHead from '../../../../../../node_modules/@mui/material/TableHead/TableHead.mjs';
|
|
13
14
|
import TableBody from '../../../../../../node_modules/@mui/material/TableBody/TableBody.mjs';
|
|
14
15
|
import IconButton from '../../../../../../node_modules/@mui/material/IconButton/IconButton.mjs';
|
|
15
16
|
import Collapse from '../../../../../../node_modules/@mui/material/Collapse/Collapse.mjs';
|
|
16
|
-
import { useState as h, useEffect as p } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
17
17
|
|
|
18
18
|
const TABLE_CONTAINER_ID = 'table-container';
|
|
19
19
|
const EXPANDED_CONTENT_CLASSNAME = 'expanded-content';
|
|
@@ -9,8 +9,8 @@ import Snackbar from '../../../../../../node_modules/@mui/material/Snackbar/Snac
|
|
|
9
9
|
import IconButton from '../../../../../../node_modules/@mui/material/IconButton/IconButton.mjs';
|
|
10
10
|
import Alert from '../../../../../../node_modules/@mui/material/Alert/Alert.mjs';
|
|
11
11
|
import alertClasses from '../../../../../../node_modules/@mui/material/Alert/alertClasses.mjs';
|
|
12
|
-
import { createContext as F } from '../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
13
12
|
import { useState as h, useRef as _, useCallback as T, useContext as q } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
|
+
import { createContext as F } from '../../../../../../node_modules/preact/dist/preact.module.mjs';
|
|
14
14
|
|
|
15
15
|
const StyledSnackbar = styled(Snackbar)(({ theme })=>({
|
|
16
16
|
bottom: theme.spacing(5)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import wn from '../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
|
|
2
2
|
import styled from '../../../../../../node_modules/@mui/material/styles/styled.mjs';
|
|
3
|
-
import Tooltip from '../../../../../../node_modules/@mui/material/Tooltip/Tooltip.mjs';
|
|
4
3
|
import { useState as h } from '../../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
4
|
+
import Tooltip from '../../../../../../node_modules/@mui/material/Tooltip/Tooltip.mjs';
|
|
5
5
|
|
|
6
6
|
const HoverTarget = styled('span')({
|
|
7
7
|
display: 'flex',
|
|
@@ -7,9 +7,9 @@ import { Modal } from '../components/Modal.mjs';
|
|
|
7
7
|
import { Select } from '../components/Select.mjs';
|
|
8
8
|
import { Typography } from '../components/Typography.mjs';
|
|
9
9
|
import { collator } from '../utils/collator.mjs';
|
|
10
|
+
import { useMemo as F, useState as h, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
10
11
|
import { useModalState } from '../shared/components/Modal.mjs';
|
|
11
12
|
import Add from '../../../../../node_modules/@mui/icons-material/esm/Add.mjs';
|
|
12
|
-
import { useMemo as F, useState as h, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
13
13
|
|
|
14
14
|
const nameKeys = new Set([
|
|
15
15
|
'full_name',
|
|
@@ -20,9 +20,9 @@ import { AttributeMappingTable } from './AttributeMappingTable.mjs';
|
|
|
20
20
|
import { getIdpAndConnectionInfo } from './IdpInfo.mjs';
|
|
21
21
|
import { samlIdpSelectItems, oidcIdpSelectItems } from './IdpSelect.mjs';
|
|
22
22
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
23
|
-
import { useModalState } from '../shared/components/Modal.mjs';
|
|
24
23
|
import { useMemo as F, useCallback as T, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
25
24
|
import { StytchSDKAPIError } from '../../../../core/src/public/SDKErrors.mjs';
|
|
25
|
+
import { useModalState } from '../shared/components/Modal.mjs';
|
|
26
26
|
|
|
27
27
|
const certItemRenderer = [
|
|
28
28
|
{
|
|
@@ -16,8 +16,8 @@ import { useRbac } from '../utils/useRbac.mjs';
|
|
|
16
16
|
import { useRoleAutocomplete } from '../utils/useRoleAutocomplete.mjs';
|
|
17
17
|
import { getIdpInfo } from './IdpInfo.mjs';
|
|
18
18
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
19
|
-
import Add from '../../../../../node_modules/@mui/icons-material/esm/Add.mjs';
|
|
20
19
|
import { useMemo as F, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
20
|
+
import Add from '../../../../../node_modules/@mui/icons-material/esm/Add.mjs';
|
|
21
21
|
|
|
22
22
|
const RoleAssignmentsSectionBody = ({ connection, localState, setLocalState, remoteState })=>{
|
|
23
23
|
const { editing } = useSettingsContainer();
|
|
@@ -14,8 +14,8 @@ import { DetailsSection } from './DetailsSection.mjs';
|
|
|
14
14
|
import { OrganizationUpdatesSection } from './OrganizationUpdatesSection.mjs';
|
|
15
15
|
import { RoleAssignmentsSection } from './RoleAssignmentsSection.mjs';
|
|
16
16
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
17
|
-
import ChevronLeft from '../../../../../node_modules/@mui/icons-material/esm/ChevronLeft.mjs';
|
|
18
17
|
import { useMemo as F, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
18
|
+
import ChevronLeft from '../../../../../node_modules/@mui/icons-material/esm/ChevronLeft.mjs';
|
|
19
19
|
|
|
20
20
|
const SSOConnectionDetailsScreen = ({ connectionId })=>{
|
|
21
21
|
const { navigate } = useSsoRouterController();
|
|
@@ -17,12 +17,12 @@ import { useDisplayPagination } from '../utils/useDisplayPagination.mjs';
|
|
|
17
17
|
import { useRbac } from '../utils/useRbac.mjs';
|
|
18
18
|
import { getIdpInfo } from './IdpInfo.mjs';
|
|
19
19
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
20
|
+
import { useMemo as F, useCallback as T, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
20
21
|
import VisibilityOutlined from '../../../../../node_modules/@mui/icons-material/esm/VisibilityOutlined.mjs';
|
|
21
22
|
import EditOutlined from '../../../../../node_modules/@mui/icons-material/esm/EditOutlined.mjs';
|
|
22
23
|
import Tune from '../../../../../node_modules/@mui/icons-material/esm/Tune.mjs';
|
|
23
24
|
import DeleteOutlined from '../../../../../node_modules/@mui/icons-material/esm/DeleteOutlined.mjs';
|
|
24
25
|
import Add from '../../../../../node_modules/@mui/icons-material/esm/Add.mjs';
|
|
25
|
-
import { useMemo as F, useCallback as T, useState as h } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
26
26
|
|
|
27
27
|
const itemRenderer = [
|
|
28
28
|
{
|
|
@@ -18,10 +18,10 @@ import { CreateApplication } from './CreateApplication.mjs';
|
|
|
18
18
|
import { DetailedAttributeMappingTable } from './DetailedAttributeMappingTable.mjs';
|
|
19
19
|
import { getIdpAndConnectionInfo, typeToUserFriendlyName } from './IdpInfo.mjs';
|
|
20
20
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
21
|
+
import { useState as h, useMemo as F, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
21
22
|
import Accordion from '../../../../../node_modules/@mui/material/Accordion/Accordion.mjs';
|
|
22
23
|
import AccordionDetails from '../../../../../node_modules/@mui/material/AccordionDetails/AccordionDetails.mjs';
|
|
23
24
|
import ChevronLeft from '../../../../../node_modules/@mui/icons-material/esm/ChevronLeft.mjs';
|
|
24
|
-
import { useState as h, useMemo as F, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
25
25
|
|
|
26
26
|
const useManualConfigurationState = ({ idp, type })=>{
|
|
27
27
|
const [manualConfigurationState, setManualConfigurationState] = h(false);
|
|
@@ -12,8 +12,8 @@ import { useRevalidateConnectionList } from '../utils/useRevalidateConnectionLis
|
|
|
12
12
|
import { useStytchClient } from '../utils/useStytchClient.mjs';
|
|
13
13
|
import { idpOptions, idpSelectItems } from './IdpSelect.mjs';
|
|
14
14
|
import { useSsoRouterController } from './SSORouter.mjs';
|
|
15
|
-
import ChevronLeft from '../../../../../node_modules/@mui/icons-material/esm/ChevronLeft.mjs';
|
|
16
15
|
import { useState as h, useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';
|
|
16
|
+
import ChevronLeft from '../../../../../node_modules/@mui/icons-material/esm/ChevronLeft.mjs';
|
|
17
17
|
|
|
18
18
|
const SSONewConnectionScreen = ()=>{
|
|
19
19
|
const { navigate } = useSsoRouterController();
|
|
@@ -10,6 +10,8 @@ import { writeB2BInternals } from '../utils/internal.mjs';
|
|
|
10
10
|
import { HeadlessB2BOAuthClient } from './HeadlessB2BOAuthClient.mjs';
|
|
11
11
|
import { B2BOneTapProvider } from './oneTap/B2BOneTapProvider.mjs';
|
|
12
12
|
import { checkB2BNotSSR, checkPublicToken } from '../../../core/src/utils/checks.mjs';
|
|
13
|
+
import { StateChangeClient } from '../../../core/src/StateChangeClient.mjs';
|
|
14
|
+
import { DFPProtectedAuthProvider } from '../../../core/src/DFPProtectedAuthProvider.mjs';
|
|
13
15
|
import { HeadlessB2BOrganizationClient } from '../../../core/src/HeadlessClients/b2b/HeadlessB2BOrganizationClient.mjs';
|
|
14
16
|
import { HeadlessB2BDiscoveryClient } from '../../../core/src/HeadlessClients/b2b/HeadlessB2BDiscoveryClient.mjs';
|
|
15
17
|
import { HeadlessB2BIDPClient } from '../../../core/src/HeadlessClients/b2b/HeadlessB2BIDPClient.mjs';
|
|
@@ -28,10 +30,8 @@ import { HeadlessB2BTOTPsClient } from '../../../core/src/HeadlessClients/b2b/He
|
|
|
28
30
|
import '../../../core/src/HeadlessClients/HeadlessCryptoWalletClient.mjs';
|
|
29
31
|
import '../../../core/src/HeadlessClients/HeadlessMagicLinkClient.mjs';
|
|
30
32
|
import '../../../core/src/HeadlessClients/HeadlessPasswordClient.mjs';
|
|
31
|
-
import { VERTICAL_CONSUMER } from '../../../core/src/Vertical.mjs';
|
|
32
|
-
import { StateChangeClient } from '../../../core/src/StateChangeClient.mjs';
|
|
33
|
-
import { DFPProtectedAuthProvider } from '../../../core/src/DFPProtectedAuthProvider.mjs';
|
|
34
33
|
import { SessionManager } from '../../../core/src/SessionManager.mjs';
|
|
34
|
+
import { VERTICAL_CONSUMER } from '../../../core/src/Vertical.mjs';
|
|
35
35
|
import { SearchDataManager } from '../../../core/src/SearchManager.mjs';
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GoogleOneTapClient } from './GoogleOneTapClient.mjs';
|
|
2
|
+
import { StytchAPIError } from '../../../core/src/public/SDKErrors.mjs';
|
|
2
3
|
import { loadESModule } from '../../../core/src/utils/loadESModule.mjs';
|
|
3
4
|
import { GOOGLE_ONE_TAP_SCRIPT_URL } from '../../../core/src/constants.mjs';
|
|
4
|
-
import { StytchAPIError } from '../../../core/src/public/SDKErrors.mjs';
|
|
5
5
|
|
|
6
6
|
const loadGoogleOneTapClient = ()=>loadESModule(GOOGLE_ONE_TAP_SCRIPT_URL, ()=>window.google.accounts.id);
|
|
7
7
|
/**
|