@stytch/vanilla-js 4.12.2 → 4.13.1
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 +17 -0
- package/b2b/adminPortal/package.json +6 -0
- package/dist/APINetworkClient.d.ts +6 -0
- package/dist/BootstrapDataManager.d.ts +38 -0
- package/dist/CaptchaProvider.d.ts +7 -0
- package/dist/ClientsideServicesProvider.d.ts +16 -0
- package/dist/HeadlessOAuthClient.d.ts +68 -0
- package/dist/NetworkClient.d.ts +25 -0
- package/dist/PKCEManager.d.ts +12 -0
- package/dist/StytchHeadlessClient.d.ts +45 -0
- package/dist/StytchUIClient.d.ts +86 -0
- package/dist/SubscriptionService.d.ts +111 -0
- package/dist/adminPortal/AdminPortalStyleConfig.d.ts +166 -0
- package/dist/adminPortal/AdminPortalWrapper.d.ts +6 -0
- package/dist/adminPortal/MainContainer.d.ts +4 -0
- package/dist/adminPortal/Router.d.ts +44 -0
- package/dist/adminPortal/StytchClientContext.d.ts +3 -0
- package/dist/adminPortal/components/Accordion.d.ts +6 -0
- package/dist/adminPortal/components/ActionMenu.d.ts +22 -0
- package/dist/adminPortal/components/Alert.d.ts +4 -0
- package/dist/adminPortal/components/Button.d.ts +6 -0
- package/dist/adminPortal/components/Code.d.ts +7 -0
- package/dist/adminPortal/components/CopyableText.d.ts +7 -0
- package/dist/adminPortal/components/DeleteConnection.d.ts +21 -0
- package/dist/adminPortal/components/EmbeddedTable.d.ts +3 -0
- package/dist/adminPortal/components/FlexBox.d.ts +1 -0
- package/dist/adminPortal/components/InfoIcon.d.ts +3 -0
- package/dist/adminPortal/components/Input.d.ts +5 -0
- package/dist/adminPortal/components/Label.d.ts +4 -0
- package/dist/adminPortal/components/ListEditor.d.ts +4 -0
- package/dist/adminPortal/components/MenuItem.d.ts +4 -0
- package/dist/adminPortal/components/Modal.d.ts +16 -0
- package/dist/adminPortal/components/PageLoadingIndicator.d.ts +2 -0
- package/dist/adminPortal/components/PaginatedTable.d.ts +4 -0
- package/dist/adminPortal/components/SearchBar.d.ts +3 -0
- package/dist/adminPortal/components/Select.d.ts +12 -0
- package/dist/adminPortal/components/SetDefaultConnection.d.ts +29 -0
- package/dist/adminPortal/components/SettingsContainer.d.ts +24 -0
- package/dist/adminPortal/components/SettingsList.d.ts +4 -0
- package/dist/adminPortal/components/SettingsListItem.d.ts +5 -0
- package/dist/adminPortal/components/SettingsSection.d.ts +6 -0
- package/dist/adminPortal/components/Table.d.ts +3 -0
- package/dist/adminPortal/components/TableActions.d.ts +5 -0
- package/dist/adminPortal/components/Tag.d.ts +5 -0
- package/dist/adminPortal/components/TagList.d.ts +4 -0
- package/dist/adminPortal/components/Toast.d.ts +5 -0
- package/dist/adminPortal/components/Tooltip.d.ts +2 -0
- package/dist/adminPortal/components/Typography.d.ts +4 -0
- package/dist/adminPortal/index.d.ts +3 -0
- package/dist/adminPortal/index.esm.js +5 -0
- package/dist/adminPortal/index.js +5 -0
- package/dist/adminPortal/makeAdminPortalComponentMountFn.d.ts +19 -0
- package/dist/adminPortal/shared/components/Accordion.d.ts +15 -0
- package/dist/adminPortal/shared/components/Button.d.ts +25 -0
- package/dist/adminPortal/shared/components/Code.d.ts +14 -0
- package/dist/adminPortal/shared/components/ContentSpacing.d.ts +6 -0
- package/dist/adminPortal/shared/components/CopyableText.d.ts +16 -0
- package/dist/adminPortal/shared/components/EmbeddedTable.d.ts +16 -0
- package/dist/adminPortal/shared/components/FlexBox.d.ts +11 -0
- package/dist/adminPortal/shared/components/InfoIcon.d.ts +7 -0
- package/dist/adminPortal/shared/components/Input.d.ts +28 -0
- package/dist/adminPortal/shared/components/Label.d.ts +10 -0
- package/dist/adminPortal/shared/components/ListEditor.d.ts +27 -0
- package/dist/adminPortal/shared/components/MenuItem.d.ts +14 -0
- package/dist/adminPortal/shared/components/Modal.d.ts +20 -0
- package/dist/adminPortal/shared/components/PaginatedTable.d.ts +30 -0
- package/dist/adminPortal/shared/components/SearchBar.d.ts +6 -0
- package/dist/adminPortal/shared/components/Select.d.ts +30 -0
- package/dist/adminPortal/shared/components/Table.d.ts +17 -0
- package/dist/adminPortal/shared/components/TableActions.d.ts +15 -0
- package/dist/adminPortal/shared/components/Tag.d.ts +4 -0
- package/dist/adminPortal/shared/components/Toast.d.ts +18 -0
- package/dist/adminPortal/shared/components/Tooltip.d.ts +12 -0
- package/dist/adminPortal/shared/components/Typography.d.ts +15 -0
- package/dist/adminPortal/shared/components/componentInjection.d.ts +48 -0
- package/dist/adminPortal/shared/components/constants.d.ts +3 -0
- package/dist/adminPortal/shared/components/types.d.ts +13 -0
- package/dist/adminPortal/shared/utils/clickToCopyUtils.d.ts +15 -0
- package/dist/adminPortal/shared/utils/composeStyles.d.ts +60 -0
- package/dist/adminPortal/shared/utils/keys.d.ts +74 -0
- package/dist/adminPortal/shared/utils/noop.d.ts +1 -0
- package/dist/adminPortal/shared/utils/tableUtils.d.ts +3 -0
- package/dist/adminPortal/shared/utils/uniqueIds.d.ts +2 -0
- package/dist/adminPortal/shared/utils/useToggleState.d.ts +7 -0
- package/dist/adminPortal/sso/AdminPortalSSO.d.ts +18 -0
- package/dist/adminPortal/sso/AppDetails.d.ts +5 -0
- package/dist/adminPortal/sso/AttributeMappingTable.d.ts +22 -0
- package/dist/adminPortal/sso/DetailsSection.d.ts +6 -0
- package/dist/adminPortal/sso/IdpInfo.d.ts +147 -0
- package/dist/adminPortal/sso/IdpSelect.d.ts +126 -0
- package/dist/adminPortal/sso/OrganizationUpdatesSection.d.ts +7 -0
- package/dist/adminPortal/sso/RoleAssignmentsSection.d.ts +6 -0
- package/dist/adminPortal/sso/SSOConnectionDetailsScreen.d.ts +4 -0
- package/dist/adminPortal/sso/SSOConnectionsScreen.d.ts +2 -0
- package/dist/adminPortal/sso/SSONewConnectionConfigureScreen.d.ts +5 -0
- package/dist/adminPortal/sso/SSONewConnectionScreen.d.ts +2 -0
- package/dist/adminPortal/sso/SSORouter.d.ts +44 -0
- package/dist/adminPortal/sso/TaggedConnection.d.ts +8 -0
- package/dist/adminPortal/sso/mountAdminPortalSSO.d.ts +15 -0
- package/dist/adminPortal/sso/useDisplayPagination.d.ts +14 -0
- package/dist/adminPortal/utils/Connection.d.ts +9 -0
- package/dist/adminPortal/utils/ConnectionType.d.ts +1 -0
- package/dist/adminPortal/utils/clickToCopyUtils.d.ts +5 -0
- package/dist/adminPortal/utils/collator.d.ts +1 -0
- package/dist/adminPortal/utils/organizationGetKey.d.ts +1 -0
- package/dist/adminPortal/utils/theme.d.ts +6 -0
- package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +10 -0
- package/dist/adminPortal/utils/useApiNetworkClient.d.ts +2 -0
- package/dist/adminPortal/utils/useB2BInternals.d.ts +1 -0
- package/dist/adminPortal/utils/useFormState.d.ts +13 -0
- package/dist/adminPortal/utils/useMutateOrganization.d.ts +4 -0
- package/dist/adminPortal/utils/useMutateSsoConnection.d.ts +19 -0
- package/dist/adminPortal/utils/useMutateWithToast.d.ts +7 -0
- package/dist/adminPortal/utils/useNavigateAwayWarning.d.ts +1 -0
- package/dist/adminPortal/utils/useOrgInfo.d.ts +1 -0
- package/dist/adminPortal/utils/useRbac.d.ts +51 -0
- package/dist/adminPortal/utils/useRevalidateConnectionList.d.ts +1 -0
- package/dist/adminPortal/utils/useSsoConnections.d.ts +2 -0
- package/dist/adminPortal/utils/useStateSliceSetter.d.ts +2 -0
- package/dist/adminPortal/utils/useStytchClient.d.ts +1 -0
- package/dist/assets/CreateIcon.d.ts +6 -0
- package/dist/assets/amazon.d.ts +3 -0
- package/dist/assets/apple.d.ts +3 -0
- package/dist/assets/backArrow.d.ts +5 -0
- package/dist/assets/binance.d.ts +3 -0
- package/dist/assets/bitbucket.d.ts +3 -0
- package/dist/assets/check.d.ts +2 -0
- package/dist/assets/checkmark.d.ts +2 -0
- package/dist/assets/chevron.d.ts +3 -0
- package/dist/assets/coinbase.d.ts +4 -0
- package/dist/assets/confirmation.d.ts +2 -0
- package/dist/assets/copy.d.ts +3 -0
- package/dist/assets/cross.d.ts +2 -0
- package/dist/assets/discord.d.ts +3 -0
- package/dist/assets/errorIcon.d.ts +3 -0
- package/dist/assets/facebook.d.ts +3 -0
- package/dist/assets/figma.d.ts +3 -0
- package/dist/assets/genericWallet.d.ts +4 -0
- package/dist/assets/github.d.ts +3 -0
- package/dist/assets/gitlab.d.ts +3 -0
- package/dist/assets/gmail.d.ts +3 -0
- package/dist/assets/google.d.ts +3 -0
- package/dist/assets/linkedin.d.ts +3 -0
- package/dist/assets/metamask.d.ts +4 -0
- package/dist/assets/microsoft.d.ts +3 -0
- package/dist/assets/outlook.d.ts +3 -0
- package/dist/assets/passkeyAdded.d.ts +2 -0
- package/dist/assets/passkeys.d.ts +3 -0
- package/dist/assets/passkeysCollage.d.ts +2 -0
- package/dist/assets/passwordIcon.d.ts +5 -0
- package/dist/assets/pencil.d.ts +2 -0
- package/dist/assets/phantom.d.ts +3 -0
- package/dist/assets/salesforce.d.ts +3 -0
- package/dist/assets/slack.d.ts +3 -0
- package/dist/assets/snackbarError.d.ts +2 -0
- package/dist/assets/snackbarSuccess.d.ts +2 -0
- package/dist/assets/snapchat.d.ts +3 -0
- package/dist/assets/successIcon.d.ts +3 -0
- package/dist/assets/tiktok.d.ts +3 -0
- package/dist/assets/trash.d.ts +2 -0
- package/dist/assets/twitch.d.ts +3 -0
- package/dist/assets/twitter.d.ts +3 -0
- package/dist/assets/vessel.d.ts +4 -0
- package/dist/assets/warningIcon.d.ts +3 -0
- package/dist/assets/yahoo.d.ts +3 -0
- package/dist/assets/yahooLogo.d.ts +3 -0
- package/dist/b2b/HeadlessB2BOAuthClient.d.ts +100 -0
- package/dist/b2b/StytchB2BHeadlessClient.d.ts +51 -0
- package/dist/b2b/StytchB2BUIClient.d.ts +40 -0
- package/dist/b2b/index.d.ts +1 -189
- package/dist/b2b/index.esm.js +5598 -13879
- package/dist/b2b/index.headless.d.ts +1 -148
- package/dist/b2b/index.headless.esm.js +2 -5269
- package/dist/b2b/index.headless.js +98 -5253
- package/dist/b2b/index.js +5722 -13890
- package/dist/b2b/oneTap/B2BOneTapProvider.d.ts +39 -0
- package/dist/extractErrorMessage-Dg5V9q2V.js +4534 -0
- package/dist/extractErrorMessage-HqH3v6mm.js +4493 -0
- package/dist/index.d.ts +1 -187
- package/dist/index.esm.js +1 -14827
- package/dist/index.headless-BMU_pBP_.js +1691 -0
- package/dist/index.headless-Hm4-qWxa.js +1695 -0
- package/dist/index.headless.d.ts +1 -103
- package/dist/index.headless.esm.js +5086 -3920
- package/dist/index.headless.js +5135 -3907
- package/dist/index.js +1 -14807
- package/dist/internal-BNX5AEoW.js +5196 -0
- package/dist/internal-CfUZ681R.js +5106 -0
- package/dist/oneTap/OneTapClient.d.ts +22 -0
- package/dist/oneTap/OneTapProvider.d.ts +36 -0
- package/dist/oneTap/navigatorSupportsFedCM.d.ts +1 -0
- package/dist/oneTap/positionModes.d.ts +6 -0
- package/dist/types.d.ts +18 -0
- package/dist/ui/CreateWebComponent.d.ts +20 -0
- package/dist/ui/b2b/App.d.ts +5 -0
- package/dist/ui/b2b/Container.d.ts +2 -0
- package/dist/ui/b2b/GlobalContextProvider.d.ts +82 -0
- package/dist/ui/b2b/MfaState.d.ts +50 -0
- package/dist/ui/b2b/clearStytchSearchParams.d.ts +1 -0
- package/dist/ui/b2b/generateProductComponentsOrdering.d.ts +13 -0
- package/dist/ui/b2b/getEnabledMethods.d.ts +5 -0
- package/dist/ui/b2b/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
- package/dist/ui/b2b/mfa.d.ts +70 -0
- package/dist/ui/b2b/reducer.d.ts +25 -0
- package/dist/ui/b2b/screens/Discovery.d.ts +2 -0
- package/dist/ui/b2b/screens/EmailConfirmation.d.ts +2 -0
- package/dist/ui/b2b/screens/MFAEnrollmentSelectionScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/MagicLinkForm.d.ts +3 -0
- package/dist/ui/b2b/screens/Main.d.ts +2 -0
- package/dist/ui/b2b/screens/OAuthButtons.d.ts +15 -0
- package/dist/ui/b2b/screens/PasswordAuthenticate.d.ts +7 -0
- package/dist/ui/b2b/screens/PasswordEmailForm.d.ts +2 -0
- package/dist/ui/b2b/screens/PasswordForgotForm.d.ts +2 -0
- package/dist/ui/b2b/screens/PasswordResetConfirmation.d.ts +2 -0
- package/dist/ui/b2b/screens/PasswordResetForm.d.ts +2 -0
- package/dist/ui/b2b/screens/PasswordSetNew.d.ts +2 -0
- package/dist/ui/b2b/screens/PasswordUseButton.d.ts +2 -0
- package/dist/ui/b2b/screens/RecoveryCodeEntryScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/RecoveryCodeSaveScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/SMSOTPEnrollScreen.d.ts +3 -0
- package/dist/ui/b2b/screens/SMSOTPEntryScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/SSOButtons.d.ts +6 -0
- package/dist/ui/b2b/screens/TOTPEnrollManualScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/TOTPEnrollQRScreen.d.ts +2 -0
- package/dist/ui/b2b/screens/TOTPEntryScreen.d.ts +2 -0
- package/dist/ui/b2b/utils.d.ts +34 -0
- package/dist/ui/b2c/App.d.ts +11 -0
- package/dist/ui/b2c/Container.d.ts +2 -0
- package/dist/ui/b2c/GlobalContextProvider.d.ts +83 -0
- package/dist/ui/b2c/reducer.d.ts +23 -0
- package/dist/ui/b2c/screens/Crypto/ConnectWallet.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/Error.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/OtherWallets.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/PasskeyConfirmation.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/SetupNewWallet.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/SignMessage.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/Success.d.ts +2 -0
- package/dist/ui/b2c/screens/Crypto/WalletButtons.d.ts +4 -0
- package/dist/ui/b2c/screens/Main/LoginForm/MagicLinkForm.d.ts +2 -0
- package/dist/ui/b2c/screens/Main/LoginForm/OTPForm.d.ts +16 -0
- package/dist/ui/b2c/screens/Main/LoginForm/PasskeyButton.d.ts +2 -0
- package/dist/ui/b2c/screens/Main/LoginForm/PasswordForm.d.ts +2 -0
- package/dist/ui/b2c/screens/Main/LoginForm/index.d.ts +2 -0
- package/dist/ui/b2c/screens/Main/OAuthButtons.d.ts +2 -0
- package/dist/ui/b2c/screens/Main/index.d.ts +2 -0
- package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationStart.d.ts +2 -0
- package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/MagicLinkOption.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordAuthenticate.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordBreached.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordDedupe.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordForgot.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordNewUser.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordSecondaryMethod.d.ts +4 -0
- package/dist/ui/b2c/screens/Password/PasswordSetNew.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/PasswordlessCreate.d.ts +2 -0
- package/dist/ui/b2c/screens/Password/ResetPassword.d.ts +2 -0
- package/dist/ui/b2c/screens/Secondary/EmailConfirmation.d.ts +6 -0
- package/dist/ui/b2c/screens/Secondary/OTPAuthenticate.d.ts +4 -0
- package/dist/ui/b2c/screens/Secondary/OTPConfirmation.d.ts +2 -0
- package/dist/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.d.ts +2 -0
- package/dist/ui/b2c/utils.d.ts +1 -0
- package/dist/ui/components/AlertBox.d.ts +8 -0
- package/dist/ui/components/AnimatedContainer.d.ts +5 -0
- package/dist/ui/components/B2BOneTap.d.ts +2 -0
- package/dist/ui/components/Button.d.ts +5 -0
- package/dist/ui/components/CircularProgress.d.ts +12 -0
- package/dist/ui/components/Confirmation.d.ts +2 -0
- package/dist/ui/components/CountrySelector.d.ts +7 -0
- package/dist/ui/components/Divider.d.ts +2 -0
- package/dist/ui/components/EditableRow.d.ts +15 -0
- package/dist/ui/components/EmailConfirmation.d.ts +11 -0
- package/dist/ui/components/EmailInput.d.ts +7 -0
- package/dist/ui/components/ErrorScreen.d.ts +2 -0
- package/dist/ui/components/ErrorText.d.ts +4 -0
- package/dist/ui/components/Flex.d.ts +40 -0
- package/dist/ui/components/InlineButton.d.ts +7 -0
- package/dist/ui/components/Input.d.ts +1 -0
- package/dist/ui/components/InsetContainer.d.ts +1 -0
- package/dist/ui/components/Loading.d.ts +3 -0
- package/dist/ui/components/LoadingBar.d.ts +4 -0
- package/dist/ui/components/MainContainer.d.ts +3 -0
- package/dist/ui/components/OAuthB2BButton.d.ts +14 -0
- package/dist/ui/components/OAuthButton.d.ts +14 -0
- package/dist/ui/components/OTPControl.d.ts +8 -0
- package/dist/ui/components/OTPEntry.d.ts +11 -0
- package/dist/ui/components/OTPInput.d.ts +6 -0
- package/dist/ui/components/OneTap.d.ts +18 -0
- package/dist/ui/components/OneTapErrorMessages.d.ts +7 -0
- package/dist/ui/components/PasswordError.d.ts +17 -0
- package/dist/ui/components/PasswordInput.d.ts +6 -0
- package/dist/ui/components/PasswordStrengthCheck.d.ts +4 -0
- package/dist/ui/components/PhoneInput.d.ts +10 -0
- package/dist/ui/components/SentOTPEntry.d.ts +10 -0
- package/dist/ui/components/Snackbar.d.ts +2 -0
- package/dist/ui/components/SubmitButton.d.ts +8 -0
- package/dist/ui/components/TOTPEntry.d.ts +8 -0
- package/dist/ui/components/Text.d.ts +9 -0
- package/dist/ui/components/VerifyEmailConfirmation.d.ts +10 -0
- package/dist/ui/components/WalletButton.d.ts +8 -0
- package/dist/ui/hooks/useIsMounted.d.ts +3 -0
- package/dist/ui/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
- package/dist/ui/hooks/usePromptPasskey.d.ts +7 -0
- package/dist/ui/theme.d.ts +112 -0
- package/dist/utils/Optional.d.ts +3 -0
- package/dist/utils/assertUnreachable.d.ts +1 -0
- package/dist/utils/crypto.d.ts +60 -0
- package/dist/utils/deepEqual.d.ts +1 -0
- package/dist/utils/extractErrorMessage.d.ts +1 -0
- package/dist/utils/extractErrorType.d.ts +1 -0
- package/dist/utils/index.d.ts +28 -0
- package/dist/utils/internal.d.ts +34 -0
- package/dist/utils/isTruthy.d.ts +3 -0
- package/dist/utils/oauthProviderType.d.ts +7 -0
- package/dist/utils/passkeys.d.ts +8 -0
- package/package.json +19 -17
- package/dist/b2b/index.esm.d.ts +0 -190
- package/dist/b2b/index.headless.esm.d.ts +0 -149
- package/dist/index.esm.d.ts +0 -188
- package/dist/index.headless.esm.d.ts +0 -104
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AppScreens, AppState, OTPState, CryptoState, PasswordState } from './GlobalContextProvider';
|
|
2
|
+
export type Action = {
|
|
3
|
+
type: 'transition';
|
|
4
|
+
screen: AppScreens;
|
|
5
|
+
} | {
|
|
6
|
+
type: 'set_magic_link_email';
|
|
7
|
+
email: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: 'update_otp_state';
|
|
10
|
+
otpState: OTPState;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'update_crypto_state';
|
|
13
|
+
cryptoState: CryptoState;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'set_error_message';
|
|
16
|
+
errorMessage: string | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'clear_error_message';
|
|
19
|
+
} | {
|
|
20
|
+
type: 'update_password_state';
|
|
21
|
+
passwordState: PasswordState;
|
|
22
|
+
};
|
|
23
|
+
export declare const reducer: (state: AppState, action: Action) => AppState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OTPMethods } from '@stytch/core/public';
|
|
3
|
+
export declare const OTPTabHeaders: {
|
|
4
|
+
sms: string;
|
|
5
|
+
whatsapp: string;
|
|
6
|
+
email: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const OTPButtonText: {
|
|
9
|
+
sms: string;
|
|
10
|
+
whatsapp: string;
|
|
11
|
+
email: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const OTPEmailForm: () => React.JSX.Element;
|
|
14
|
+
export declare const PhoneForm: ({ method }: {
|
|
15
|
+
method: OTPMethods;
|
|
16
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBootstrap: () => import("packages/core/dist").BootstrapData;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CircularProgressProps = {
|
|
3
|
+
size: number;
|
|
4
|
+
thickness: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* A lightweight spinning circle loading animation heavily inspired by the
|
|
8
|
+
* MUI CircularProgress component
|
|
9
|
+
* https://github.com/mui/material-ui/blob/master/packages/mui-material/src/CircularProgress/CircularProgress.js
|
|
10
|
+
*/
|
|
11
|
+
export declare const CircularProgress: ({ size, thickness }: CircularProgressProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const RowInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
type Props = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
isEditingCurr: boolean;
|
|
7
|
+
isEditingAny: boolean;
|
|
8
|
+
isDeletingAny: boolean;
|
|
9
|
+
isDeletingCurr: boolean;
|
|
10
|
+
handleEditing: () => void;
|
|
11
|
+
handleStopEditing: (name: string) => void;
|
|
12
|
+
handleDeleting: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const EditableRow: (props: Props) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const inboxLinks: (emailDomain: string | null) => {
|
|
3
|
+
GMAIL: string;
|
|
4
|
+
OUTLOOK: string;
|
|
5
|
+
YAHOO: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const EmailConfirmation: ({ emailDomain, reset, email, }: {
|
|
8
|
+
emailDomain: string | null;
|
|
9
|
+
reset: () => void;
|
|
10
|
+
email: string;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const EmailInput: ({ email, setEmail, disableInput, hasPasskeys, }: {
|
|
3
|
+
email: string;
|
|
4
|
+
setEmail: (email: string) => void;
|
|
5
|
+
disableInput?: boolean | undefined;
|
|
6
|
+
hasPasskeys?: boolean | undefined;
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type GlobalValues = 'inherit' | 'initial' | 'unset';
|
|
2
|
+
type ContentOptions = 'space-between' | 'space-around' | 'space-evenly' | 'center' | 'stretch' | 'flex-start' | 'flex-end' | 'normal' | GlobalValues;
|
|
3
|
+
type AlignItemsOptions = 'normal' | 'stretch' | 'center' | 'start' | 'flex-start' | 'flex-end' | 'baseline' | GlobalValues;
|
|
4
|
+
type Directions = 'row' | 'row-reverse' | 'column' | 'column-reverse' | GlobalValues;
|
|
5
|
+
type AlignSelfOptions = 'auto' | 'normal' | 'center' | 'flex-start' | 'flex-end' | GlobalValues;
|
|
6
|
+
type FlowOptions = 'row' | 'row-reverse' | 'column' | 'column-reverse' | 'nowrap' | 'wrap' | 'wrap-reverse' | 'row|nowrap' | 'column|wrap' | 'column-reverse|wrap-reverse' | GlobalValues;
|
|
7
|
+
type WrapOptions = 'nowrap' | 'wrap' | 'wrap-reverse' | GlobalValues;
|
|
8
|
+
export type FlexProps = {
|
|
9
|
+
readonly justifyContent?: ContentOptions;
|
|
10
|
+
readonly alignContent?: ContentOptions;
|
|
11
|
+
readonly alignItems?: AlignItemsOptions;
|
|
12
|
+
readonly direction?: Directions;
|
|
13
|
+
readonly alignSelf?: AlignSelfOptions;
|
|
14
|
+
readonly flow?: FlowOptions;
|
|
15
|
+
readonly wrap?: WrapOptions;
|
|
16
|
+
readonly grow?: number | GlobalValues;
|
|
17
|
+
readonly shrink?: number | GlobalValues;
|
|
18
|
+
readonly order?: number | GlobalValues;
|
|
19
|
+
readonly inline?: boolean;
|
|
20
|
+
readonly width?: number | string;
|
|
21
|
+
readonly height?: number | string;
|
|
22
|
+
readonly maxWidth?: number | string;
|
|
23
|
+
readonly maxHeight?: number | string;
|
|
24
|
+
readonly minWidth?: number | string;
|
|
25
|
+
readonly minHeight?: number | string;
|
|
26
|
+
readonly padding?: number | 'auto';
|
|
27
|
+
readonly margin?: number | 'auto';
|
|
28
|
+
readonly paddingTop?: number | 'auto';
|
|
29
|
+
readonly paddingRight?: number | 'auto';
|
|
30
|
+
readonly paddingBottom?: number | 'auto';
|
|
31
|
+
readonly paddingLeft?: number | 'auto';
|
|
32
|
+
readonly marginTop?: number | 'auto';
|
|
33
|
+
readonly marginRight?: number | 'auto';
|
|
34
|
+
readonly marginBottom?: number | 'auto';
|
|
35
|
+
readonly marginLeft?: number | 'auto';
|
|
36
|
+
readonly center?: boolean;
|
|
37
|
+
readonly gap?: number;
|
|
38
|
+
};
|
|
39
|
+
export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps, never>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InsetContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const MainContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ChildrenContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const WatermarkContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { B2BOAuthProviders } from '@stytch/core/public';
|
|
3
|
+
type Props = {
|
|
4
|
+
providerType: B2BOAuthProviders;
|
|
5
|
+
providerTypeTitle: string;
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
loginRedirectUrl?: string;
|
|
8
|
+
signupRedirectUrl?: string;
|
|
9
|
+
discoveryRedirectUrl?: string;
|
|
10
|
+
customScopes?: string[];
|
|
11
|
+
providerParams?: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
export declare const OAuthB2BButton: (props: Props) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StringLiteralFromEnum } from '@stytch/core';
|
|
2
|
+
import { OAuthProviders } from '@stytch/core/public';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type Props = {
|
|
5
|
+
providerType: StringLiteralFromEnum<OAuthProviders>;
|
|
6
|
+
providerTypeTitle: string;
|
|
7
|
+
icon?: JSX.Element;
|
|
8
|
+
loginRedirectUrl?: string;
|
|
9
|
+
signupRedirectUrl?: string;
|
|
10
|
+
customScopes?: string[];
|
|
11
|
+
providerParams?: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
export declare const OAuthButton: (props: Props) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface OTPControlProps {
|
|
3
|
+
isSubmitting: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
onSubmit: (otp: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OTPControl: ({ isSubmitting, onSubmit, errorMessage }: OTPControlProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface OTPEntryProps {
|
|
3
|
+
header: React.ReactNode;
|
|
4
|
+
instruction: React.ReactNode;
|
|
5
|
+
helperContent: React.ReactNode;
|
|
6
|
+
isSubmitting: boolean;
|
|
7
|
+
onSubmit: (otp: string) => void;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const OTPEntry: ({ header, helperContent, instruction, isSubmitting, onSubmit, errorMessage, }: OTPEntryProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OneTapPositions } from '@stytch/core/public';
|
|
3
|
+
import { StringLiteralFromEnum } from '@stytch/core';
|
|
4
|
+
type Props = {
|
|
5
|
+
position?: StringLiteralFromEnum<OneTapPositions>;
|
|
6
|
+
};
|
|
7
|
+
export declare enum OneTapErrors {
|
|
8
|
+
None = "none",
|
|
9
|
+
OriginNotAllowedForClient = "origin_not_allowed_for_client",
|
|
10
|
+
InvalidOAuthClient = "invalid_client",
|
|
11
|
+
NoConfiguredOAuthClient = "oauth_config_not_found",
|
|
12
|
+
NoConfiguredLoginRedirectUrls = "no_login_redirect_urls_set",
|
|
13
|
+
NoConfiguredSignupRedirectUrls = "no_signup_redirect_urls_set",
|
|
14
|
+
DefaultProviderNotAllowed = "default_provider_not_allowed"
|
|
15
|
+
}
|
|
16
|
+
export declare const ErrorMessages: Record<OneTapErrors, React.ReactElement>;
|
|
17
|
+
export declare const GoogleOneTap: ({ position }: Props) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const OneTapNoConfiguredClientsErrorMessage: () => React.JSX.Element;
|
|
3
|
+
export declare const OneTapNoConfiguredLoginRedirectUrlsErrorMessage: () => React.JSX.Element;
|
|
4
|
+
export declare const OneTapNoConfiguredSignupRedirectUrlsErrorMessage: () => React.JSX.Element;
|
|
5
|
+
export declare const OneTapJSOriginErrorMessage: () => React.JSX.Element;
|
|
6
|
+
export declare const OneTapInvalidOAuthClient: () => React.JSX.Element;
|
|
7
|
+
export declare const OneTapNoDefaultProviderAllowedErrorMessage: () => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PasswordErrorProps = {
|
|
3
|
+
passwordPolicy: 'zxcvbn';
|
|
4
|
+
passwordScore: number;
|
|
5
|
+
errorMessage: string;
|
|
6
|
+
passwordFeedback: string;
|
|
7
|
+
} | {
|
|
8
|
+
passwordPolicy: 'luds';
|
|
9
|
+
missingCharacters: number;
|
|
10
|
+
missingComplexity: number;
|
|
11
|
+
isPasswordBreached: boolean;
|
|
12
|
+
} | {
|
|
13
|
+
passwordPolicy: 'none';
|
|
14
|
+
};
|
|
15
|
+
export declare const PasswordB2CError: (props: PasswordErrorProps) => React.JSX.Element | null;
|
|
16
|
+
export declare const PasswordB2BError: (props: PasswordErrorProps) => React.JSX.Element | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CountryCode, ParsedPhoneNumberResponse } from '@stytch/core';
|
|
3
|
+
export declare const PhoneInput: ({ phone, setPhone, country, setCountry, parsePhoneNumber, hasPasskeys, }: {
|
|
4
|
+
phone: string;
|
|
5
|
+
setPhone: (phone: string) => void;
|
|
6
|
+
country: CountryCode;
|
|
7
|
+
setCountry: (country: CountryCode) => void;
|
|
8
|
+
parsePhoneNumber: (phoneNumber: string, countryCode: CountryCode) => Promise<ParsedPhoneNumberResponse>;
|
|
9
|
+
hasPasskeys?: boolean | undefined;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SentOTPEntryProps {
|
|
3
|
+
expiration: Date;
|
|
4
|
+
formattedDestination: string;
|
|
5
|
+
isSubmitting: boolean;
|
|
6
|
+
onSubmit: (otp: string) => void;
|
|
7
|
+
resendOTP: () => void;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SentOTPEntry: ({ expiration, formattedDestination, isSubmitting, onSubmit, errorMessage, resendOTP, }: SentOTPEntryProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TOTPEntryProps {
|
|
3
|
+
isSubmitting: boolean;
|
|
4
|
+
onSubmit: (otp: string) => void;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
helperContent: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const TOTPEntry: ({ helperContent, isSubmitting, onSubmit, errorMessage }: TOTPEntryProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type TextSize = 'header' | 'body' | 'helper';
|
|
2
|
+
type TextColor = 'primary' | 'secondary' | 'success' | 'error';
|
|
3
|
+
type TextProps = {
|
|
4
|
+
size?: TextSize;
|
|
5
|
+
color?: TextColor;
|
|
6
|
+
align?: 'left' | 'center' | 'right';
|
|
7
|
+
};
|
|
8
|
+
export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TextProps, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const inboxLinks: (emailDomain: string | null) => {
|
|
3
|
+
GMAIL: string;
|
|
4
|
+
OUTLOOK: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const VerifyEmailConfirmation: ({ emailDomain, reset, email, }: {
|
|
7
|
+
emailDomain: string | null;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
email: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsOnlyFloatingOneTap: () => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WebAuthnAuthenticateResponse } from '@stytch/core/public';
|
|
2
|
+
export declare const usePromptPasskey: ({ conditionalMediation, }: {
|
|
3
|
+
conditionalMediation: boolean;
|
|
4
|
+
}) => {
|
|
5
|
+
prompt: () => Promise<WebAuthnAuthenticateResponse>;
|
|
6
|
+
promptAutofill: () => void;
|
|
7
|
+
};
|