@dynamic-labs/sdk-react-core 2.0.0-alpha.5 → 2.0.0-alpha.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 +39 -0
- package/package.cjs +5 -5
- package/package.js +5 -5
- package/package.json +17 -17
- package/src/index.cjs +24 -22
- package/src/index.d.ts +1 -2
- package/src/index.js +14 -11
- package/src/lib/Main.cjs +2 -2
- package/src/lib/Main.js +2 -2
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +5 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +5 -5
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/Alert/Alert.types.d.ts +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +5 -5
- package/src/lib/components/AnimatePresence/AnimatePresence.js +5 -5
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +5 -5
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +5 -5
- package/src/lib/components/Captcha/Captcha.cjs +4 -4
- package/src/lib/components/Captcha/Captcha.js +4 -4
- package/src/lib/components/Divider/Divider.cjs +4 -4
- package/src/lib/components/Divider/Divider.js +4 -4
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +5 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +5 -5
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +5 -5
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +5 -5
- package/src/lib/components/LogoutButton/LogoutButton.cjs +5 -5
- package/src/lib/components/LogoutButton/LogoutButton.js +5 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +5 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +5 -5
- package/src/lib/components/Modal/Modal.cjs +5 -5
- package/src/lib/components/Modal/Modal.js +5 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +5 -5
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +10 -8
- package/src/lib/components/NetworkPicker/NetworkPicker.js +10 -8
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +5 -5
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +5 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +4 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.js +4 -4
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +3 -3
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +3 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +4 -4
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +4 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +5 -5
- package/src/lib/components/OverlayCard/OverlayCard.js +5 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +5 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +5 -5
- package/src/lib/components/PhoneIcon/PhoneIcon.cjs +14 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.js +10 -0
- package/src/lib/components/Portal/Portal.cjs +5 -5
- package/src/lib/components/Portal/Portal.js +5 -5
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +5 -5
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +5 -5
- package/src/lib/components/RenderView/RenderView.cjs +5 -5
- package/src/lib/components/RenderView/RenderView.js +5 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +5 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +5 -5
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +5 -5
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +5 -5
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +7 -5
- package/src/lib/components/ShadowDOM/ShadowDOM.js +7 -6
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +5 -5
- package/src/lib/components/SocialSignIn/SocialSignIn.js +5 -5
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +31 -15
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +32 -16
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +94 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +90 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +5 -5
- package/src/lib/components/Toolkit/Toolkit.js +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +5 -5
- package/src/lib/components/Tooltip/Tooltip.cjs +5 -5
- package/src/lib/components/Tooltip/Tooltip.js +5 -5
- package/src/lib/components/TosAndPp/TosAndPp.cjs +5 -5
- package/src/lib/components/TosAndPp/TosAndPp.js +5 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +5 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +5 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +5 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +5 -5
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +5 -5
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +5 -5
- package/src/lib/components/UserAddress/UserAddress.cjs +6 -6
- package/src/lib/components/UserAddress/UserAddress.js +6 -6
- package/src/lib/components/UserProfile/UserProfile.cjs +5 -5
- package/src/lib/components/UserProfile/UserProfile.js +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +4 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +5 -5
- package/src/lib/components/UserProfileForm/UserProfileForm.js +5 -5
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +5 -5
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +5 -5
- package/src/lib/context/DynamicContext/DynamicContext.cjs +23 -22
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +4 -4
- package/src/lib/context/DynamicContext/DynamicContext.js +24 -23
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +10 -0
- package/src/lib/context/DynamicContext/helpers/helpers.d.ts +5 -0
- package/src/lib/context/DynamicContext/helpers/helpers.js +10 -1
- package/src/lib/context/DynamicContext/helpers/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +5 -5
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +5 -5
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +5 -4
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +8 -6
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +5 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +5 -5
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +5 -5
- package/src/lib/context/DynamicContext/types/index.d.ts +14 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +5 -5
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +5 -5
- package/src/lib/context/ErrorContext/ErrorContext.cjs +4 -0
- package/src/lib/context/ErrorContext/ErrorContext.d.ts +1 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +4 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +7 -5
- package/src/lib/context/FundingContext/FundingContext.js +7 -5
- package/src/lib/context/LoadingContext/LoadingContext.cjs +4 -4
- package/src/lib/context/LoadingContext/LoadingContext.js +4 -4
- package/src/lib/context/MockContext/MockContext.cjs +6 -6
- package/src/lib/context/MockContext/MockContext.js +6 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +6 -5
- package/src/lib/context/PasskeyContext/PasskeyContext.js +6 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +5 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +5 -5
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +5 -5
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +5 -5
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +5 -5
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -5
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +5 -5
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +5 -5
- package/src/lib/context/VerificationContext/VerificationContext.cjs +8 -5
- package/src/lib/context/VerificationContext/VerificationContext.d.ts +20 -2
- package/src/lib/context/VerificationContext/VerificationContext.js +8 -5
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -0
- package/src/lib/context/ViewContext/ViewContext.js +7 -0
- package/src/lib/context/ViewContext/types/index.d.ts +5 -3
- package/src/lib/context/WalletContext/WalletContext.cjs +5 -5
- package/src/lib/context/WalletContext/WalletContext.js +5 -5
- package/src/lib/data/api.cjs +70 -20
- package/src/lib/data/api.d.ts +37 -10
- package/src/lib/data/api.js +68 -20
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +3 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +3 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +3 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +3 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +5 -5
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +5 -5
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +4 -4
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +4 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +4 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +4 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +4 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +4 -4
- package/src/lib/locale/en/translation.cjs +158 -4
- package/src/lib/locale/en/translation.d.ts +156 -2
- package/src/lib/locale/en/translation.js +158 -4
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +81 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +77 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +87 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +3 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +83 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +5 -0
- package/src/lib/modals/CreatePasswordModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +4 -4
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +4 -4
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +87 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +83 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +4 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +4 -4
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -3
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +3 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +3 -3
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/download.cjs +53 -0
- package/src/lib/shared/assets/download.js +29 -0
- package/src/lib/shared/assets/index.d.ts +3 -0
- package/src/lib/shared/assets/save-password-hero.cjs +127 -0
- package/src/lib/shared/assets/save-password-hero.js +103 -0
- package/src/lib/shared/assets/wallet-claim-hero.cjs +127 -0
- package/src/lib/shared/assets/wallet-claim-hero.js +103 -0
- package/src/lib/shared/types/localStorage.d.ts +1 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +10 -28
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +1 -5
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +10 -28
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +1 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +1 -3
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +1 -1
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
- package/src/lib/utils/functions/index.d.ts +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
- package/src/lib/utils/functions/mergeNetworks/index.d.ts +1 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.cjs +26 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.d.ts +13 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.js +22 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +9 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +7 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +7 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +6 -5
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +6 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +5 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +5 -5
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +9 -13
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +9 -13
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +4 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +4 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +9 -7
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +9 -7
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +5 -5
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +5 -5
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs +59 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.js +55 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +5 -5
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +5 -5
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +5 -5
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +5 -5
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +6 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +6 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +6 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +6 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +5 -5
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +5 -5
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +8 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +8 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +37 -12
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +37 -12
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +9 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +9 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +33 -9
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +33 -9
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +5 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +5 -5
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +30 -36
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +31 -37
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +15 -20
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +16 -21
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +2 -6
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +2 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +5 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +5 -5
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +6 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +6 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +5 -5
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +5 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +5 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +5 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +5 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +5 -5
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +5 -5
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +5 -5
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +4 -4
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +4 -4
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +1 -1
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +1 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +20 -54
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts +5 -3
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +20 -54
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +4 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +4 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.cjs +5 -5
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.js +5 -5
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +38 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.d.ts +2 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +34 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +5 -4
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +5 -4
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +12 -15
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +12 -15
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +5 -5
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +5 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +8 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +8 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +5 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +5 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -8
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -9
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +7 -6
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +7 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +5 -5
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +5 -5
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +4 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +4 -7
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +4 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +4 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +46 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +46 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +5 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +5 -5
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +6 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +6 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +6 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +6 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +4 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +4 -4
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +97 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +2 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +93 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +5 -5
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +5 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +6 -11
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +6 -11
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +4 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +4 -4
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs} +11 -10
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.d.ts +13 -0
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js} +11 -10
- package/src/lib/views/CollectUserDataViewNoWallet/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +178 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +174 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +150 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +9 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +146 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +126 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +122 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/index.d.ts +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +6 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.js +6 -5
- package/src/lib/views/EmailVerification/EmailVerification.cjs +16 -23
- package/src/lib/views/EmailVerification/EmailVerification.js +16 -23
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +4 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +4 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +45 -18
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +45 -18
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +1 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +122 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +118 -0
- package/src/lib/views/LoginView/LoginView.cjs +5 -5
- package/src/lib/views/LoginView/LoginView.js +5 -5
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +4 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +4 -4
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +6 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +6 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.cjs → checkIfNumberHasError/checkIfNumberHasError.cjs} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.d.ts → checkIfNumberHasError/checkIfNumberHasError.d.ts} +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.js → checkIfNumberHasError/checkIfNumberHasError.js} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.cjs +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.d.ts +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.js +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +114 -14
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.d.ts +1 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +114 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +5 -5
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +5 -5
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +4 -4
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +3 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +3 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +5 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +5 -5
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +16 -10
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +16 -10
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +7 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +7 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +6 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +6 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +3 -3
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +3 -3
- package/src/lib/views/NoAccess/NoAccess.cjs +6 -6
- package/src/lib/views/NoAccess/NoAccess.js +6 -6
- package/src/lib/views/NoAccess/useNoAccessText.cjs +5 -5
- package/src/lib/views/NoAccess/useNoAccessText.js +5 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +4 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +4 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +4 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +2 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +3 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +3 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +3 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +3 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +5 -5
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +4 -4
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +4 -3
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +4 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +4 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +4 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +6 -6
- package/src/lib/views/QrCodeView/QRCode.js +6 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +4 -4
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +4 -4
- package/src/lib/views/QrCodeView/QrCodeView.cjs +5 -5
- package/src/lib/views/QrCodeView/QrCodeView.js +5 -5
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +6 -6
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +6 -6
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +4 -4
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +6 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.js +6 -6
- package/src/lib/views/SmsVerification/SmsVerification.cjs +15 -0
- package/src/lib/views/SmsVerification/SmsVerification.d.ts +2 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +11 -0
- package/src/lib/views/SmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +191 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.d.ts +10 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +187 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +4 -4
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +4 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +4 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +4 -4
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +6 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +6 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +6 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +6 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +5 -5
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +5 -5
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +5 -5
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +5 -5
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +4 -4
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +4 -4
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +8 -8
- package/src/lib/views/WalletGroupView/WalletGroupView.js +8 -8
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +4 -4
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +4 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +4 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +4 -4
- package/src/lib/views/WalletList/WalletList.cjs +4 -4
- package/src/lib/views/WalletList/WalletList.js +4 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +4 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +4 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +4 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +4 -4
- package/src/lib/views/WalletList/hooks/useTabState.cjs +5 -5
- package/src/lib/views/WalletList/hooks/useTabState.js +5 -5
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +4 -4
- package/src/lib/views/WalletLockedView/WalletLockedView.js +4 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +4 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +4 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +5 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +5 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.js +7 -6
- package/src/lib/views/index.d.ts +6 -6
- package/src/lib/views/viewToComponentMap.cjs +28 -24
- package/src/lib/views/viewToComponentMap.d.ts +60 -2
- package/src/lib/views/viewToComponentMap.js +28 -24
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +2 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +2 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +5 -5
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +5 -5
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +5 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +11 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +11 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -7
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +7 -19
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +7 -19
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +8 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +6 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +6 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +4 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -3
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +22 -13
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +22 -13
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +5 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -3
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.cjs +0 -55
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.d.ts +0 -11
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.js +0 -50
- package/src/lib/context/PhoneNumberContext/PhoneNumberContext.d.ts +0 -14
- package/src/lib/context/PhoneNumberContext/index.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/index.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.cjs +0 -9
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +0 -5
- package/src/lib/utils/functions/updateUserInfo/index.d.ts +0 -1
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.cjs +0 -18
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.d.ts +0 -1
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.js +0 -14
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -16
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -2
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -12
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.d.ts +0 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/index.d.ts +0 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/index.d.ts +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import '../../events/dynamicEvents.js';
|
|
5
|
+
import '../../../../_virtual/_tslib.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/sdk-api';
|
|
9
|
+
import '../../shared/logger.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
|
|
14
|
+
import { ReactComponent as SvgPasswordHero } from '../../shared/assets/password-hero.js';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../utils/constants/colors.js';
|
|
17
|
+
import '../../utils/constants/values.js';
|
|
18
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import 'viem';
|
|
20
|
+
import '../../shared/consts/index.js';
|
|
21
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
22
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
23
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
|
+
import '@dynamic-labs/multi-wallet';
|
|
25
|
+
import 'react-international-phone';
|
|
26
|
+
import 'viem/chains';
|
|
27
|
+
import '../../config/ApiEndpoint.js';
|
|
28
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
|
+
import '../../context/VerificationContext/VerificationContext.js';
|
|
31
|
+
import 'react-dom';
|
|
32
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
33
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
34
|
+
import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
|
|
35
|
+
import '@dynamic-labs/types';
|
|
36
|
+
import 'yup';
|
|
37
|
+
import '../../context/MockContext/MockContext.js';
|
|
38
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
39
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
40
|
+
import '@dynamic-labs/rpc-providers';
|
|
41
|
+
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import 'i18next';
|
|
43
|
+
import { Typography } from '../../components/Typography/Typography.js';
|
|
44
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
45
|
+
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
46
|
+
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
47
|
+
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
48
|
+
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
49
|
+
import '../../context/FooterAnimationContext/index.js';
|
|
50
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
51
|
+
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
52
|
+
import 'react-focus-lock';
|
|
53
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
54
|
+
import 'qrcode';
|
|
55
|
+
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
|
+
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
57
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
58
|
+
import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
|
|
59
|
+
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
60
|
+
import 'formik';
|
|
61
|
+
import { Button } from '../../components/Button/Button.js';
|
|
62
|
+
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
63
|
+
import '../../components/Alert/Alert.js';
|
|
64
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
65
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
66
|
+
import '../TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
67
|
+
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
68
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
69
|
+
import { Input } from '../../components/Input/Input.js';
|
|
70
|
+
import '../../components/IsBrowser/IsBrowser.js';
|
|
71
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
72
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
73
|
+
import '../WalletList/WalletList.js';
|
|
74
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
75
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
76
|
+
import '@hcaptcha/react-hcaptcha';
|
|
77
|
+
import '../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
78
|
+
import { ToggleVisibilityButton } from '../../components/ToggleVisibilityButton/ToggleVisibilityButton.js';
|
|
79
|
+
|
|
80
|
+
const EnterPasswordView = ({ mutation, onSuccess, onError, closeView = true, }) => {
|
|
81
|
+
const { setShowAuthFlow } = useInternalDynamicContext();
|
|
82
|
+
const [password, setPassword] = useState('');
|
|
83
|
+
const [inputType, setInputType] = useState('password');
|
|
84
|
+
const { t } = useTranslation();
|
|
85
|
+
const { mutate: handlePasswordSubmit, isLoading, hasError, } = useMutation(() => mutation(password), {
|
|
86
|
+
onFailure: onError,
|
|
87
|
+
onSuccess: () => {
|
|
88
|
+
if (closeView) {
|
|
89
|
+
setShowAuthFlow(false);
|
|
90
|
+
}
|
|
91
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(password);
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
const onClose = () => {
|
|
95
|
+
if (onError) {
|
|
96
|
+
onError === null || onError === void 0 ? void 0 : onError(t('dyn_enter_password.error.invalid_password'));
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
setShowAuthFlow(false);
|
|
100
|
+
};
|
|
101
|
+
const errorMessage = hasError
|
|
102
|
+
? t('dyn_enter_password.error.invalid_password')
|
|
103
|
+
: undefined;
|
|
104
|
+
const closeButton = (jsx(IconButton, { onClick: onClose, type: 'button', children: jsx(SvgClose, {}) }));
|
|
105
|
+
const inputSuffix = (jsx(ToggleVisibilityButton, { initialState: inputType === 'password', onClick: (hidden) => setInputType(hidden ? 'password' : 'text'), className: 'enter-password-view__password-input__suffix-icon' }));
|
|
106
|
+
const onPasswordInputChange = (e) => {
|
|
107
|
+
const newPassword = e.target.value;
|
|
108
|
+
setPassword(newPassword);
|
|
109
|
+
};
|
|
110
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', className: 'header__typography', copykey: 'dyn_enter_password.title', children: t('dyn_enter_password.title') }) }), jsx("div", { className: 'enter-password-view', children: jsxs("form", { className: 'enter-password-view__body', onSubmit: (e) => {
|
|
111
|
+
e.preventDefault();
|
|
112
|
+
handlePasswordSubmit();
|
|
113
|
+
}, children: [jsx("div", { className: 'enter-password-view__body__icon', children: jsx(SvgPasswordHero, {}) }), jsx("div", { className: 'enter-password-view__body__description', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_enter_password.description', children: t('dyn_enter_password.description') }) }), Boolean(errorMessage) && (jsx(ErrorContainer, { copykey: 'dyn_enter_password.error', children: errorMessage })), jsx("div", { children: jsx(Input, { id: 'password', placeholder: t('dyn_enter_password.input.placeholder'), type: inputType, suffix: inputSuffix, label: t('dyn_enter_password.input.label'), value: password, onChange: onPasswordInputChange, copykey: 'dyn_enter_password.input' }) }), jsx(Button, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
|
|
114
|
+
color: 'inherit',
|
|
115
|
+
}, disabled: !password && !errorMessage, loading: isLoading, copykey: 'dyn_enter_password.continue_button_label', type: 'submit', children: t('dyn_enter_password.continue_button_label') })] }) })] }));
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { EnterPasswordView };
|
|
@@ -23,9 +23,9 @@ require('../../shared/consts/index.cjs');
|
|
|
23
23
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
24
24
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
25
25
|
require('@dynamic-labs/multi-wallet');
|
|
26
|
-
require('../../config/ApiEndpoint.cjs');
|
|
27
26
|
require('react-international-phone');
|
|
28
27
|
require('viem/chains');
|
|
28
|
+
require('../../config/ApiEndpoint.cjs');
|
|
29
29
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
30
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
31
31
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -40,6 +40,8 @@ require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
40
40
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
41
41
|
require('@dynamic-labs/rpc-providers');
|
|
42
42
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
43
|
+
require('i18next');
|
|
44
|
+
var Typography = require('../../components/Typography/Typography.cjs');
|
|
43
45
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
44
46
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
45
47
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
@@ -47,13 +49,11 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
47
49
|
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
48
50
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
49
51
|
var useAuthLayoutChecks = require('../../utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs');
|
|
50
|
-
var Typography = require('../../components/Typography/Typography.cjs');
|
|
51
52
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
52
53
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
54
|
require('react-focus-lock');
|
|
54
55
|
var Divider = require('../../components/Divider/Divider.cjs');
|
|
55
56
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
-
require('i18next');
|
|
57
57
|
require('qrcode');
|
|
58
58
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
59
|
require('../../components/IconButton/IconButton.cjs');
|
|
@@ -72,10 +72,10 @@ require('../../components/IsBrowser/IsBrowser.cjs');
|
|
|
72
72
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
73
73
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
74
|
var WalletList = require('../WalletList/WalletList.cjs');
|
|
75
|
-
require('@hcaptcha/react-hcaptcha');
|
|
76
75
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
77
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
78
76
|
var LoginEmailForm = require('./sections/EmailSignInSection/LoginEmailForm.cjs');
|
|
77
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
78
|
+
require('@hcaptcha/react-hcaptcha');
|
|
79
79
|
var DefaultFooter = require('../../layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.cjs');
|
|
80
80
|
var PhoneNumberSignInSection = require('./sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
81
81
|
var SocialSignInSection = require('./sections/SocialSignInSection/SocialSignInSection.cjs');
|
|
@@ -19,9 +19,9 @@ import '../../shared/consts/index.js';
|
|
|
19
19
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
20
20
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
21
21
|
import '@dynamic-labs/multi-wallet';
|
|
22
|
-
import '../../config/ApiEndpoint.js';
|
|
23
22
|
import 'react-international-phone';
|
|
24
23
|
import 'viem/chains';
|
|
24
|
+
import '../../config/ApiEndpoint.js';
|
|
25
25
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
26
26
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
27
27
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
@@ -36,6 +36,8 @@ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
36
36
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
37
37
|
import '@dynamic-labs/rpc-providers';
|
|
38
38
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
39
|
+
import 'i18next';
|
|
40
|
+
import { Typography } from '../../components/Typography/Typography.js';
|
|
39
41
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
40
42
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
41
43
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
@@ -43,13 +45,11 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
43
45
|
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
44
46
|
import '../../context/FooterAnimationContext/index.js';
|
|
45
47
|
import { useAuthLayoutChecks } from '../../utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js';
|
|
46
|
-
import { Typography } from '../../components/Typography/Typography.js';
|
|
47
48
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
48
49
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
49
50
|
import 'react-focus-lock';
|
|
50
51
|
import { Divider } from '../../components/Divider/Divider.js';
|
|
51
52
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
52
|
-
import 'i18next';
|
|
53
53
|
import 'qrcode';
|
|
54
54
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
55
|
import '../../components/IconButton/IconButton.js';
|
|
@@ -68,10 +68,10 @@ import '../../components/IsBrowser/IsBrowser.js';
|
|
|
68
68
|
import '../../components/Popper/Popper/Popper.js';
|
|
69
69
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
70
70
|
import { WalletList } from '../WalletList/WalletList.js';
|
|
71
|
-
import '@hcaptcha/react-hcaptcha';
|
|
72
71
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
73
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
72
|
import { LoginEmailForm } from './sections/EmailSignInSection/LoginEmailForm.js';
|
|
73
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
|
+
import '@hcaptcha/react-hcaptcha';
|
|
75
75
|
import { DefaultFooter } from '../../layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.js';
|
|
76
76
|
import { PhoneNumberSignInSection } from './sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
77
77
|
import { SocialSignInSection } from './sections/SocialSignInSection/SocialSignInSection.js';
|
|
@@ -24,11 +24,11 @@ var useInternalDynamicContext = require('../../../../context/DynamicContext/useD
|
|
|
24
24
|
var CaptchaContext = require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
25
|
var ErrorContext = require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
26
26
|
require('@dynamic-labs/multi-wallet');
|
|
27
|
-
require('../../../../config/ApiEndpoint.cjs');
|
|
28
27
|
require('react-international-phone');
|
|
29
28
|
var isEmailProviderEnabled = require('../../../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs');
|
|
30
29
|
var isEmailValid = require('../../../../utils/functions/isEmailValid/isEmailValid.cjs');
|
|
31
30
|
require('viem/chains');
|
|
31
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
32
32
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
34
|
require('../../../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -43,6 +43,7 @@ require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUse
|
|
|
43
43
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
44
44
|
require('@dynamic-labs/rpc-providers');
|
|
45
45
|
require('../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
|
+
require('i18next');
|
|
46
47
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
48
|
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
48
49
|
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
@@ -53,7 +54,6 @@ require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
|
53
54
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
55
|
require('react-focus-lock');
|
|
55
56
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
-
require('i18next');
|
|
57
57
|
require('qrcode');
|
|
58
58
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
59
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
@@ -73,10 +73,10 @@ require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
|
73
73
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
74
74
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
75
75
|
require('../../../WalletList/WalletList.cjs');
|
|
76
|
-
require('@hcaptcha/react-hcaptcha');
|
|
77
76
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
78
|
-
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
79
77
|
var useEmailProvider = require('../../../../utils/hooks/useEmailProvider/useEmailProvider.cjs');
|
|
78
|
+
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
79
|
+
require('@hcaptcha/react-hcaptcha');
|
|
80
80
|
require('../PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
81
81
|
|
|
82
82
|
const LoginEmailForm = ({ isLoading: isExternalLoading, onSubmit, onSubmitError, currentEmail, }) => {
|
|
@@ -20,11 +20,11 @@ import { useInternalDynamicContext } from '../../../../context/DynamicContext/us
|
|
|
20
20
|
import { useCaptchaContext } from '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
21
21
|
import { useErrorContext } from '../../../../context/ErrorContext/ErrorContext.js';
|
|
22
22
|
import '@dynamic-labs/multi-wallet';
|
|
23
|
-
import '../../../../config/ApiEndpoint.js';
|
|
24
23
|
import 'react-international-phone';
|
|
25
24
|
import { isEmailProviderEnabled } from '../../../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js';
|
|
26
25
|
import { isEmailValid } from '../../../../utils/functions/isEmailValid/isEmailValid.js';
|
|
27
26
|
import 'viem/chains';
|
|
27
|
+
import '../../../../config/ApiEndpoint.js';
|
|
28
28
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
30
|
import '../../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -39,6 +39,7 @@ import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser
|
|
|
39
39
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
40
40
|
import '@dynamic-labs/rpc-providers';
|
|
41
41
|
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import 'i18next';
|
|
42
43
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
44
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
44
45
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
@@ -49,7 +50,6 @@ import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
|
49
50
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
51
|
import 'react-focus-lock';
|
|
51
52
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
-
import 'i18next';
|
|
53
53
|
import 'qrcode';
|
|
54
54
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
55
|
import '../../../../components/IconButton/IconButton.js';
|
|
@@ -69,10 +69,10 @@ import '../../../../components/IsBrowser/IsBrowser.js';
|
|
|
69
69
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
70
70
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
71
71
|
import '../../../WalletList/WalletList.js';
|
|
72
|
-
import '@hcaptcha/react-hcaptcha';
|
|
73
72
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
74
|
-
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
75
73
|
import { useEmailProvider } from '../../../../utils/hooks/useEmailProvider/useEmailProvider.js';
|
|
74
|
+
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
75
|
+
import '@hcaptcha/react-hcaptcha';
|
|
76
76
|
import '../PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
77
77
|
|
|
78
78
|
const LoginEmailForm = ({ isLoading: isExternalLoading, onSubmit, onSubmitError, currentEmail, }) => {
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs
CHANGED
|
@@ -27,8 +27,8 @@ require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
|
27
27
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
28
28
|
require('@dynamic-labs/multi-wallet');
|
|
29
29
|
var isPhoneNumberProviderEnabled = require('../../../../utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs');
|
|
30
|
-
require('../../../../config/ApiEndpoint.cjs');
|
|
31
30
|
require('viem/chains');
|
|
31
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
32
32
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
34
|
require('../../../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -43,19 +43,19 @@ require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUse
|
|
|
43
43
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
44
44
|
require('@dynamic-labs/rpc-providers');
|
|
45
45
|
require('../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
|
+
require('i18next');
|
|
47
|
+
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
46
48
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
49
|
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
48
50
|
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
49
51
|
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
50
52
|
require('../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
51
53
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
52
|
-
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
53
54
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
55
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
55
56
|
require('react-focus-lock');
|
|
56
57
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
57
58
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
58
|
-
require('i18next');
|
|
59
59
|
require('qrcode');
|
|
60
60
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
61
61
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
@@ -76,9 +76,9 @@ var MenuList = require('../../../../components/MenuList/MenuList/MenuList.cjs');
|
|
|
76
76
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
77
77
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
78
78
|
require('../../../WalletList/WalletList.cjs');
|
|
79
|
-
require('@hcaptcha/react-hcaptcha');
|
|
80
79
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
81
80
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
81
|
+
require('@hcaptcha/react-hcaptcha');
|
|
82
82
|
var usePhoneInputLogic = require('./usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
83
83
|
|
|
84
84
|
const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
@@ -88,7 +88,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
88
88
|
const [countryDropdownOpen, setCountryDropdownOpen] = React.useState(false);
|
|
89
89
|
const anchorRef = React.useRef(null);
|
|
90
90
|
const [invalidNumberMessage, setInvalidNumberMessage] = React.useState(undefined);
|
|
91
|
-
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef,
|
|
91
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, isInputComplete, handleSubmit, countryFontSize, } = usePhoneInputLogic.usePhoneInputLogic({
|
|
92
92
|
countryInputRef,
|
|
93
93
|
onSubmit,
|
|
94
94
|
onSubmitError,
|
|
@@ -104,7 +104,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
104
104
|
}
|
|
105
105
|
return (jsxRuntime.jsxs("form", { className: 'login-with-phone-number-form', onSubmit: (e) => handleSubmit(e), children: [jsxRuntime.jsxs("div", { className: 'login-with-phone-number-form__fields', onPointerEnter: () => setIsHovered(true), onPointerLeave: () => setIsHovered(false), onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), ref: anchorRef, children: [jsxRuntime.jsxs("div", { className: classNames.classNames('login-with-phone-number-form__fields__country-code', {
|
|
106
106
|
'login-with-phone-number-form__fields__country-code--disabled': isLoading,
|
|
107
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsxRuntime.jsx(Icon.Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage) }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children:
|
|
107
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsxRuntime.jsx(Icon.Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage), inputMode: 'numeric' }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children: "Phone number" })), jsxRuntime.jsx(InlineSubmitButton.InlineSubmitButton, { disabled: isLoading || !isInputComplete, highlighted: isInputComplete, isFocused: isFocused, isHovered: isHovered, className: 'login-with-phone-number-form__fields__inline-submit' })] }), jsxRuntime.jsx(MenuList.MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
108
108
|
anchorOrigin: 'bottom-left',
|
|
109
109
|
anchorRef,
|
|
110
110
|
}, mobileTitle: 'Select country', dropdownClassName: 'login-with-phone-number-form__dropdown', children: jsxRuntime.jsx("div", { className: 'login-with-phone-number-form__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js
CHANGED
|
@@ -23,8 +23,8 @@ import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
|
23
23
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
24
24
|
import '@dynamic-labs/multi-wallet';
|
|
25
25
|
import { isPhoneNumberProviderEnabled } from '../../../../utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js';
|
|
26
|
-
import '../../../../config/ApiEndpoint.js';
|
|
27
26
|
import 'viem/chains';
|
|
27
|
+
import '../../../../config/ApiEndpoint.js';
|
|
28
28
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
30
|
import '../../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -39,19 +39,19 @@ import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser
|
|
|
39
39
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
40
40
|
import '@dynamic-labs/rpc-providers';
|
|
41
41
|
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import 'i18next';
|
|
43
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
42
44
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
45
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
44
46
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
45
47
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
46
48
|
import '../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
47
49
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
48
|
-
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
49
50
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
51
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
51
52
|
import 'react-focus-lock';
|
|
52
53
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
53
54
|
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
54
|
-
import 'i18next';
|
|
55
55
|
import 'qrcode';
|
|
56
56
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
57
57
|
import '../../../../components/IconButton/IconButton.js';
|
|
@@ -72,9 +72,9 @@ import { MenuList } from '../../../../components/MenuList/MenuList/MenuList.js';
|
|
|
72
72
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
73
73
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
74
74
|
import '../../../WalletList/WalletList.js';
|
|
75
|
-
import '@hcaptcha/react-hcaptcha';
|
|
76
75
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
77
76
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
77
|
+
import '@hcaptcha/react-hcaptcha';
|
|
78
78
|
import { usePhoneInputLogic } from './usePhoneInputLogic/usePhoneInputLogic.js';
|
|
79
79
|
|
|
80
80
|
const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
@@ -84,7 +84,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
84
84
|
const [countryDropdownOpen, setCountryDropdownOpen] = useState(false);
|
|
85
85
|
const anchorRef = useRef(null);
|
|
86
86
|
const [invalidNumberMessage, setInvalidNumberMessage] = useState(undefined);
|
|
87
|
-
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef,
|
|
87
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, isInputComplete, handleSubmit, countryFontSize, } = usePhoneInputLogic({
|
|
88
88
|
countryInputRef,
|
|
89
89
|
onSubmit,
|
|
90
90
|
onSubmitError,
|
|
@@ -100,7 +100,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
100
100
|
}
|
|
101
101
|
return (jsxs("form", { className: 'login-with-phone-number-form', onSubmit: (e) => handleSubmit(e), children: [jsxs("div", { className: 'login-with-phone-number-form__fields', onPointerEnter: () => setIsHovered(true), onPointerLeave: () => setIsHovered(false), onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), ref: anchorRef, children: [jsxs("div", { className: classNames('login-with-phone-number-form__fields__country-code', {
|
|
102
102
|
'login-with-phone-number-form__fields__country-code--disabled': isLoading,
|
|
103
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsx(Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsx(Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage) }), !hasInput && (jsx(Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children:
|
|
103
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsx(Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsx(Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage), inputMode: 'numeric' }), !hasInput && (jsx(Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children: "Phone number" })), jsx(InlineSubmitButton, { disabled: isLoading || !isInputComplete, highlighted: isInputComplete, isFocused: isFocused, isHovered: isHovered, className: 'login-with-phone-number-form__fields__inline-submit' })] }), jsx(MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
104
104
|
anchorOrigin: 'bottom-left',
|
|
105
105
|
anchorRef,
|
|
106
106
|
}, mobileTitle: 'Select country', dropdownClassName: 'login-with-phone-number-form__dropdown', children: jsx("div", { className: 'login-with-phone-number-form__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
@@ -7,6 +7,6 @@ const PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
|
7
7
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
8
8
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const checkIfNumberHasError = (number) => !PHONE_NUMBER_REGEX.test(number);
|
|
11
11
|
|
|
12
|
-
exports.
|
|
12
|
+
exports.checkIfNumberHasError = checkIfNumberHasError;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
3
3
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const checkIfNumberHasError: (number: string) => boolean;
|
|
@@ -3,6 +3,6 @@ const PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
|
3
3
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
4
4
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const checkIfNumberHasError = (number) => !PHONE_NUMBER_REGEX.test(number);
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { checkIfNumberHasError };
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkIfNumberHasError';
|
|
@@ -9,12 +9,14 @@ var reactInternationalPhone = require('react-international-phone');
|
|
|
9
9
|
const getCustomCountries = () => reactInternationalPhone.defaultCountries
|
|
10
10
|
.map(reactInternationalPhone.parseCountry)
|
|
11
11
|
.filter(({ iso2 }) => supportedCountries.includes(iso2))
|
|
12
|
-
.map((country) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
.map((country) => {
|
|
13
|
+
if (country.iso2 === 'br')
|
|
14
|
+
country.format = '(..) .....-....';
|
|
15
|
+
if (country.iso2 === 'fr')
|
|
16
|
+
country.format = '(.) .. .. .. ..';
|
|
17
|
+
return reactInternationalPhone.buildCountryData(country);
|
|
18
|
+
});
|
|
19
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
18
20
|
const supportedCountries = ['us', 'ca'];
|
|
19
21
|
|
|
20
22
|
exports.getCustomCountries = getCustomCountries;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CountryData, CountryIso2 } from 'react-international-phone';
|
|
2
2
|
export declare const getCustomCountries: () => CountryData[];
|
|
3
|
-
/** Which countries
|
|
3
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
4
4
|
export declare const supportedCountries: CountryIso2[];
|
|
@@ -5,12 +5,14 @@ import { defaultCountries, parseCountry, buildCountryData } from 'react-internat
|
|
|
5
5
|
const getCustomCountries = () => defaultCountries
|
|
6
6
|
.map(parseCountry)
|
|
7
7
|
.filter(({ iso2 }) => supportedCountries.includes(iso2))
|
|
8
|
-
.map((country) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
.map((country) => {
|
|
9
|
+
if (country.iso2 === 'br')
|
|
10
|
+
country.format = '(..) .....-....';
|
|
11
|
+
if (country.iso2 === 'fr')
|
|
12
|
+
country.format = '(.) .. .. .. ..';
|
|
13
|
+
return buildCountryData(country);
|
|
14
|
+
});
|
|
15
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
14
16
|
const supportedCountries = ['us', 'ca'];
|
|
15
17
|
|
|
16
18
|
export { getCustomCountries, supportedCountries };
|