@dynamic-labs/sdk-react-core 2.0.0-alpha.15 → 2.0.0-alpha.17
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/index.cjs +4 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +3 -1
- package/src/lib/Main.cjs +2 -1
- package/src/lib/Main.js +2 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +2 -1
- package/src/lib/components/Captcha/Captcha.cjs +2 -1
- package/src/lib/components/Captcha/Captcha.js +2 -1
- package/src/lib/components/Divider/Divider.cjs +2 -1
- package/src/lib/components/Divider/Divider.js +2 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +2 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +2 -1
- package/src/lib/components/LogoutButton/LogoutButton.cjs +2 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +2 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +2 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.js +2 -1
- package/src/lib/components/Modal/Modal.cjs +2 -1
- package/src/lib/components/Modal/Modal.js +2 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +2 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +2 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +2 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +2 -1
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +114 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.d.ts +15 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +110 -0
- package/src/lib/components/PhoneNumberField/index.d.ts +1 -0
- package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/usePhoneInputLogic/usePhoneInputLogic.cjs +14 -133
- package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/usePhoneInputLogic/usePhoneInputLogic.d.ts +9 -6
- package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/usePhoneInputLogic/usePhoneInputLogic.js +16 -135
- package/src/lib/components/Portal/Portal.cjs +2 -1
- package/src/lib/components/Portal/Portal.js +2 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +2 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +2 -1
- package/src/lib/components/QRCode/QRCode.cjs +2 -1
- package/src/lib/components/QRCode/QRCode.js +2 -1
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +2 -1
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +2 -1
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +3 -2
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +3 -2
- package/src/lib/components/RenderView/RenderView.cjs +1 -0
- package/src/lib/components/RenderView/RenderView.js +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +3 -2
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +3 -2
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +2 -1
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +2 -1
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +2 -1
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +2 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +2 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +2 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +2 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.js +2 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +3 -2
- package/src/lib/components/SocialSignIn/SocialSignIn.js +3 -2
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +2 -1
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +2 -1
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +2 -1
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +2 -1
- package/src/lib/components/Toolkit/Toolkit.cjs +2 -1
- package/src/lib/components/Toolkit/Toolkit.js +2 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +2 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +2 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +2 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +2 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -1
- package/src/lib/components/Tooltip/Tooltip.js +2 -1
- package/src/lib/components/TosAndPp/TosAndPp.cjs +2 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +2 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +2 -1
- package/src/lib/components/UserAddress/UserAddress.js +2 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +3 -2
- package/src/lib/components/UserProfile/UserProfile.js +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +3 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.js +3 -2
- package/src/lib/components/index.d.ts +7 -6
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +3 -2
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +3 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +4 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +4 -3
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +2 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +2 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +2 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +2 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +2 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +2 -1
- package/src/lib/context/FieldsStateContext/FieldsStateContext.cjs +23 -0
- package/src/lib/context/FieldsStateContext/FieldsStateContext.d.ts +12 -0
- package/src/lib/context/FieldsStateContext/FieldsStateContext.js +17 -0
- package/src/lib/context/FieldsStateContext/index.d.ts +1 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +2 -1
- package/src/lib/context/FundingContext/FundingContext.js +2 -1
- package/src/lib/context/LoadingContext/LoadingContext.cjs +2 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +2 -1
- package/src/lib/context/MockContext/MockContext.cjs +2 -1
- package/src/lib/context/MockContext/MockContext.js +2 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +2 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.js +2 -1
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +2 -1
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +2 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +2 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +2 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +2 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +2 -1
- package/src/lib/context/WalletContext/WalletContext.js +2 -1
- package/src/lib/data/api.cjs +20 -3
- package/src/lib/data/api.js +22 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +2 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +2 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +2 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -1
- package/src/lib/locale/en/translation.cjs +2 -0
- package/src/lib/locale/en/translation.d.ts +2 -0
- package/src/lib/locale/en/translation.js +2 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +2 -1
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +2 -1
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +2 -1
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +2 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +2 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +2 -1
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +2 -1
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +2 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +2 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +2 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/fields.d.ts +1 -0
- package/src/lib/utils/constants/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.cjs +25 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.d.ts +9 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.js +21 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +2 -0
- package/src/lib/utils/functions/validatePhoneLength/index.d.ts +1 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.cjs +15 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.d.ts +3 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.js +11 -0
- package/src/lib/utils/hooks/authenticationHooks/index.d.ts +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/index.d.ts +1 -0
- package/src/lib/utils/hooks/authenticationHooks/{useEmailVerificationRequest/useEmailVerificationRequest.cjs → useOtpVerificationRequest/useOtpVerificationRequest.cjs} +42 -23
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.d.ts +7 -0
- package/src/lib/utils/hooks/authenticationHooks/{useEmailVerificationRequest/useEmailVerificationRequest.js → useOtpVerificationRequest/useOtpVerificationRequest.js} +44 -25
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +2 -1
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +2 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +2 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +2 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +2 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +2 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +2 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +2 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +2 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +2 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +2 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +2 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +2 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +2 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +2 -1
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +2 -1
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +2 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +2 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +2 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +2 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +2 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +2 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +4 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +4 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +8 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +8 -2
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +2 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +2 -1
- package/src/lib/utils/hooks/useHandleVerificationRequired/index.d.ts +1 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +62 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.d.ts +16 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +56 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +2 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +2 -1
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +2 -1
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +2 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +2 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +2 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +2 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +2 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +2 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +2 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +2 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +2 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +2 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +2 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +2 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +2 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +4 -3
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +4 -3
- package/src/lib/utils/hooks/useSocialAuth/farcaster.cjs +7 -4
- package/src/lib/utils/hooks/useSocialAuth/farcaster.d.ts +4 -1
- package/src/lib/utils/hooks/useSocialAuth/farcaster.js +7 -4
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +11 -4
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +11 -4
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +3 -2
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +3 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +37 -32
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.d.ts +2 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +37 -32
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +2 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +2 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +1 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +1 -4
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +2 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +2 -1
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +2 -1
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +2 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +2 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +2 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.js +2 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +2 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +2 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +2 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +2 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +2 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +2 -1
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -1
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +2 -1
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +2 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +2 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +2 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +2 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +2 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -1
- package/src/lib/views/EmailVerification/EmailVerification.cjs +9 -8
- package/src/lib/views/EmailVerification/EmailVerification.js +9 -8
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +3 -2
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +3 -2
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +2 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +2 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +2 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +2 -1
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +3 -2
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +3 -2
- package/src/lib/views/LoginView/LoginView.cjs +6 -5
- package/src/lib/views/LoginView/LoginView.js +6 -5
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +21 -33
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +22 -34
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +153 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.d.ts +10 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +149 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +3 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +3 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +2 -1
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +2 -1
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +2 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +2 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +2 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +3 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +3 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -1
- package/src/lib/views/NoAccess/NoAccess.js +2 -1
- package/src/lib/views/NoAccess/useNoAccessText.cjs +2 -1
- package/src/lib/views/NoAccess/useNoAccessText.js +2 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +2 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +2 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +2 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +2 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +2 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +2 -1
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -1
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +2 -1
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +2 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +3 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +3 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.cjs +2 -2
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.js +2 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -1
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -2
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -2
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +2 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +2 -1
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +2 -1
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +2 -1
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -1
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -2
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +3 -2
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +3 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +2 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +2 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +2 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +2 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +3 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.js +3 -2
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +2 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -1
- package/src/lib/views/WalletList/WalletList.cjs +2 -1
- package/src/lib/views/WalletList/WalletList.js +2 -1
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +2 -1
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +2 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -1
- package/src/lib/views/WalletList/hooks/useTabState.cjs +2 -1
- package/src/lib/views/WalletList/hooks/useTabState.js +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -1
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +2 -1
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +2 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
- package/src/lib/views/viewToComponentMap.cjs +1 -0
- package/src/lib/views/viewToComponentMap.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +2 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +2 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +2 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +2 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +2 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +3 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -1
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.cjs +0 -9
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.d.ts +0 -2
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.js +0 -5
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/index.d.ts +0 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.d.ts +0 -8
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/checkIfNumberHasError.cjs +0 -12
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/checkIfNumberHasError.d.ts +0 -5
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/checkIfNumberHasError.js +0 -8
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts +0 -1
- /package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/getCustomCountries/getCustomCountries.cjs +0 -0
- /package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/getCustomCountries/getCustomCountries.d.ts +0 -0
- /package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/getCustomCountries/getCustomCountries.js +0 -0
- /package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/getCustomCountries/index.d.ts +0 -0
- /package/src/lib/{views/LoginView/sections/PhoneNumberSignInSection → components/PhoneNumberField}/usePhoneInputLogic/index.d.ts +0 -0
|
@@ -55,6 +55,7 @@ require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
|
55
55
|
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
56
56
|
require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
57
57
|
require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
58
|
+
require('../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
58
59
|
require('../Popper/Popper/Popper.cjs');
|
|
59
60
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
60
61
|
require('react-focus-lock');
|
|
@@ -67,7 +68,7 @@ require('i18next');
|
|
|
67
68
|
require('@hcaptcha/react-hcaptcha');
|
|
68
69
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
69
70
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
70
|
-
require('../../
|
|
71
|
+
require('../../locale/locale.cjs');
|
|
71
72
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
72
73
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
73
74
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
@@ -51,6 +51,7 @@ import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
51
51
|
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
52
52
|
import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
53
53
|
import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
54
|
+
import '../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
54
55
|
import '../Popper/Popper/Popper.js';
|
|
55
56
|
import '../Popper/PopperContext/PopperContext.js';
|
|
56
57
|
import 'react-focus-lock';
|
|
@@ -63,7 +64,7 @@ import 'i18next';
|
|
|
63
64
|
import '@hcaptcha/react-hcaptcha';
|
|
64
65
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
65
66
|
import '../../context/FooterAnimationContext/index.js';
|
|
66
|
-
import '../../
|
|
67
|
+
import '../../locale/locale.js';
|
|
67
68
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
68
69
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
69
70
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
@@ -54,6 +54,7 @@ require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
54
54
|
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
55
55
|
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
56
56
|
require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
57
|
+
require('../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
57
58
|
require('../Popper/Popper/Popper.cjs');
|
|
58
59
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
59
60
|
require('react-focus-lock');
|
|
@@ -68,7 +69,7 @@ require('i18next');
|
|
|
68
69
|
require('@hcaptcha/react-hcaptcha');
|
|
69
70
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
70
71
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
71
|
-
require('../../
|
|
72
|
+
require('../../locale/locale.cjs');
|
|
72
73
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
73
74
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
74
75
|
require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
@@ -50,6 +50,7 @@ import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
|
50
50
|
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
51
51
|
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
52
52
|
import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
53
|
+
import '../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
53
54
|
import '../Popper/Popper/Popper.js';
|
|
54
55
|
import '../Popper/PopperContext/PopperContext.js';
|
|
55
56
|
import 'react-focus-lock';
|
|
@@ -64,7 +65,7 @@ import 'i18next';
|
|
|
64
65
|
import '@hcaptcha/react-hcaptcha';
|
|
65
66
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
66
67
|
import '../../context/FooterAnimationContext/index.js';
|
|
67
|
-
import '../../
|
|
68
|
+
import '../../locale/locale.js';
|
|
68
69
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
69
70
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
70
71
|
import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
@@ -68,6 +68,7 @@ require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
|
68
68
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
69
69
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
70
70
|
require('../../../IsBrowser/IsBrowser.cjs');
|
|
71
|
+
require('../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
71
72
|
require('../../../Popper/Popper/Popper.cjs');
|
|
72
73
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
73
74
|
require('qrcode');
|
|
@@ -76,7 +77,7 @@ var UnsupportedNetwork = require('../UnsupportedNetwork/UnsupportedNetwork.cjs')
|
|
|
76
77
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
77
78
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
78
79
|
require('@hcaptcha/react-hcaptcha');
|
|
79
|
-
require('../../../../
|
|
80
|
+
require('../../../../locale/locale.cjs');
|
|
80
81
|
|
|
81
82
|
const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
82
83
|
var _a, _b;
|
|
@@ -64,6 +64,7 @@ import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
|
64
64
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
65
65
|
import '../../../InlineWidget/InlineWidget.js';
|
|
66
66
|
import '../../../IsBrowser/IsBrowser.js';
|
|
67
|
+
import '../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
67
68
|
import '../../../Popper/Popper/Popper.js';
|
|
68
69
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
69
70
|
import 'qrcode';
|
|
@@ -72,7 +73,7 @@ import { UnsupportedNetwork } from '../UnsupportedNetwork/UnsupportedNetwork.js'
|
|
|
72
73
|
import '../../../../views/WalletList/WalletList.js';
|
|
73
74
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
75
|
import '@hcaptcha/react-hcaptcha';
|
|
75
|
-
import '../../../../
|
|
76
|
+
import '../../../../locale/locale.js';
|
|
76
77
|
|
|
77
78
|
const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '', network, walletConnector, isOpen, setIsOpen, showNetworkName = false, }) => {
|
|
78
79
|
var _a, _b;
|
|
@@ -69,13 +69,14 @@ require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
|
69
69
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
70
70
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
71
71
|
require('../../../IsBrowser/IsBrowser.cjs');
|
|
72
|
+
require('../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
72
73
|
require('../../../Popper/Popper/Popper.cjs');
|
|
73
74
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
74
75
|
require('qrcode');
|
|
75
76
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
76
77
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
77
78
|
require('@hcaptcha/react-hcaptcha');
|
|
78
|
-
require('../../../../
|
|
79
|
+
require('../../../../locale/locale.cjs');
|
|
79
80
|
|
|
80
81
|
const Network = ({ iconUrl, isActive, networkName, className, checkboxClassName = '', isChanging, notSupported = false, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('network', className, {
|
|
81
82
|
'network--not-supported': notSupported,
|
|
@@ -65,13 +65,14 @@ import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
|
65
65
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
66
66
|
import '../../../InlineWidget/InlineWidget.js';
|
|
67
67
|
import '../../../IsBrowser/IsBrowser.js';
|
|
68
|
+
import '../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
68
69
|
import '../../../Popper/Popper/Popper.js';
|
|
69
70
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
70
71
|
import 'qrcode';
|
|
71
72
|
import '../../../../views/WalletList/WalletList.js';
|
|
72
73
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
73
74
|
import '@hcaptcha/react-hcaptcha';
|
|
74
|
-
import '../../../../
|
|
75
|
+
import '../../../../locale/locale.js';
|
|
75
76
|
|
|
76
77
|
const Network = ({ iconUrl, isActive, networkName, className, checkboxClassName = '', isChanging, notSupported = false, }) => (jsxs("div", { className: classNames('network', className, {
|
|
77
78
|
'network--not-supported': notSupported,
|
|
@@ -66,13 +66,14 @@ require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
|
66
66
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
67
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
68
68
|
require('../../../IsBrowser/IsBrowser.cjs');
|
|
69
|
+
require('../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
69
70
|
require('../../../Popper/Popper/Popper.cjs');
|
|
70
71
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
71
72
|
require('qrcode');
|
|
72
73
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
73
74
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
74
75
|
require('@hcaptcha/react-hcaptcha');
|
|
75
|
-
require('../../../../
|
|
76
|
+
require('../../../../locale/locale.cjs');
|
|
76
77
|
|
|
77
78
|
const NetworkControlSkeleton = ({ className, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('network-control-skeleton', className), "data-testid": 'network-control-loading', children: [jsxRuntime.jsx("div", { className: 'network-control-skeleton__icon' }), jsxRuntime.jsx(Skeleton.Skeleton, { className: 'network-control-skeleton__skeleton' })] }));
|
|
78
79
|
|
package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js
CHANGED
|
@@ -62,13 +62,14 @@ import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
|
62
62
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
63
|
import '../../../InlineWidget/InlineWidget.js';
|
|
64
64
|
import '../../../IsBrowser/IsBrowser.js';
|
|
65
|
+
import '../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
65
66
|
import '../../../Popper/Popper/Popper.js';
|
|
66
67
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
67
68
|
import 'qrcode';
|
|
68
69
|
import '../../../../views/WalletList/WalletList.js';
|
|
69
70
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
70
71
|
import '@hcaptcha/react-hcaptcha';
|
|
71
|
-
import '../../../../
|
|
72
|
+
import '../../../../locale/locale.js';
|
|
72
73
|
|
|
73
74
|
const NetworkControlSkeleton = ({ className, }) => (jsxs("div", { className: classNames('network-control-skeleton', className), "data-testid": 'network-control-loading', children: [jsx("div", { className: 'network-control-skeleton__icon' }), jsx(Skeleton, { className: 'network-control-skeleton__skeleton' })] }));
|
|
74
75
|
|
|
@@ -70,6 +70,7 @@ require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
|
70
70
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
71
71
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
72
72
|
require('../../../IsBrowser/IsBrowser.cjs');
|
|
73
|
+
require('../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
73
74
|
require('../../../Popper/Popper/Popper.cjs');
|
|
74
75
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
75
76
|
require('qrcode');
|
|
@@ -77,7 +78,7 @@ var NetworkControlSkeleton = require('../NetworkControlSkeleton/NetworkControlSk
|
|
|
77
78
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
78
79
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
79
80
|
require('@hcaptcha/react-hcaptcha');
|
|
80
|
-
require('../../../../
|
|
81
|
+
require('../../../../locale/locale.cjs');
|
|
81
82
|
|
|
82
83
|
const NonNetworkSwitchingSupportedControl = ({ walletConnector, className, showNetworkName = false, }) => {
|
|
83
84
|
const { chain, isLoading } = useFetchChain.useFetchChain(walletConnector);
|
|
@@ -66,6 +66,7 @@ import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
|
66
66
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
67
67
|
import '../../../InlineWidget/InlineWidget.js';
|
|
68
68
|
import '../../../IsBrowser/IsBrowser.js';
|
|
69
|
+
import '../../../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
69
70
|
import '../../../Popper/Popper/Popper.js';
|
|
70
71
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
71
72
|
import 'qrcode';
|
|
@@ -73,7 +74,7 @@ import { NetworkControlSkeleton } from '../NetworkControlSkeleton/NetworkControl
|
|
|
73
74
|
import '../../../../views/WalletList/WalletList.js';
|
|
74
75
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
75
76
|
import '@hcaptcha/react-hcaptcha';
|
|
76
|
-
import '../../../../
|
|
77
|
+
import '../../../../locale/locale.js';
|
|
77
78
|
|
|
78
79
|
const NonNetworkSwitchingSupportedControl = ({ walletConnector, className, showNetworkName = false, }) => {
|
|
79
80
|
const { chain, isLoading } = useFetchChain(walletConnector);
|
|
@@ -30,7 +30,7 @@ var PinField = require('../PinField/PinField.cjs');
|
|
|
30
30
|
var RetrySendVerificationCodeSection = require('../RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs');
|
|
31
31
|
var Typography = require('../Typography/Typography.cjs');
|
|
32
32
|
|
|
33
|
-
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, }) => {
|
|
33
|
+
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
34
34
|
const { t } = reactI18next.useTranslation();
|
|
35
35
|
const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
|
|
36
36
|
const titleCopyKey = React.useMemo(() => isValid
|
|
@@ -38,7 +38,7 @@ const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, d
|
|
|
38
38
|
: 'dyn_otp_verification.confirm_code', [isValid]);
|
|
39
39
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!hideHeader && (jsxRuntime.jsx(ModalHeader.ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsxRuntime.jsx("div", { className: 'otp-verification-view__status-header', children: jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', copykey: titleCopyKey, children: t(titleCopyKey) }) }) })), successBannerTextKey && (jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'notice', messageKey: successBannerTextKey, disableTruncate: true })), jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', messageKey: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsxs("div", { className: classNames.classNames('otp-verification-view', {
|
|
40
40
|
'otp-verification-view--message': Boolean(successBannerTextKey || error),
|
|
41
|
-
}), children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: MainIcon, iconSize: 96, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxRuntime.jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.
|
|
41
|
+
}), children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: MainIcon, iconSize: 96, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxRuntime.jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: t('dyn_otp_verification.description') }), jsxRuntime.jsxs("div", { className: 'otp-verification-view__destination-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: displayedDestination }), onClickEditDestination && (jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickEditDestination, "data-testid": 'otp-verification-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) }))] })] }))] }), appendAboveOTPInput, jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsxRuntime.jsx(RetrySendVerificationCodeSection.RetrySendVerificationCodeSection, { className: 'otp-verification-view__retry-container', retryHandler: retryHandler }), appendToEnd] })] }));
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.OTPVerificationView = OTPVerificationView;
|
|
@@ -14,5 +14,7 @@ export type OtpVerificationLayoutProps = {
|
|
|
14
14
|
retryHandler: () => Promise<void> | void;
|
|
15
15
|
onPinComplete: (value: string) => void;
|
|
16
16
|
successBannerTextKey?: string;
|
|
17
|
+
appendToEnd?: JSX.Element;
|
|
18
|
+
appendAboveOTPInput?: JSX.Element;
|
|
17
19
|
};
|
|
18
20
|
export declare const OTPVerificationView: FC<OtpVerificationLayoutProps>;
|
|
@@ -26,7 +26,7 @@ import { PinField } from '../PinField/PinField.js';
|
|
|
26
26
|
import { RetrySendVerificationCodeSection } from '../RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js';
|
|
27
27
|
import { Typography } from '../Typography/Typography.js';
|
|
28
28
|
|
|
29
|
-
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, }) => {
|
|
29
|
+
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
30
30
|
const { t } = useTranslation();
|
|
31
31
|
const backButton = onClickBack && (jsx(IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsx(SvgChevronLeft, {}) }));
|
|
32
32
|
const titleCopyKey = useMemo(() => isValid
|
|
@@ -34,7 +34,7 @@ const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, d
|
|
|
34
34
|
: 'dyn_otp_verification.confirm_code', [isValid]);
|
|
35
35
|
return (jsxs(Fragment, { children: [!hideHeader && (jsx(ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsx("div", { className: 'otp-verification-view__status-header', children: jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', copykey: titleCopyKey, children: t(titleCopyKey) }) }) })), successBannerTextKey && (jsx(ModalHeaderBanner, { type: 'notice', messageKey: successBannerTextKey, disableTruncate: true })), jsx(ModalHeaderBanner, { type: 'error', messageKey: error === null || error === void 0 ? void 0 : error.message }), jsxs("div", { className: classNames('otp-verification-view', {
|
|
36
36
|
'otp-verification-view--message': Boolean(successBannerTextKey || error),
|
|
37
|
-
}), children: [isValid && (jsx(IconWithStatus, { Icon: MainIcon, iconSize: 96, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.
|
|
37
|
+
}), children: [isValid && (jsx(IconWithStatus, { Icon: MainIcon, iconSize: 96, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: t('dyn_otp_verification.description') }), jsxs("div", { className: 'otp-verification-view__destination-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: displayedDestination }), onClickEditDestination && (jsx(IconButton, { onClick: onClickEditDestination, "data-testid": 'otp-verification-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) }))] })] }))] }), appendAboveOTPInput, jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsx(RetrySendVerificationCodeSection, { className: 'otp-verification-view__retry-container', retryHandler: retryHandler }), appendToEnd] })] }));
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export { OTPVerificationView };
|
|
@@ -55,6 +55,7 @@ require('../IsBrowser/IsBrowser.cjs');
|
|
|
55
55
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
56
56
|
var OverlayCardTarget = require('./OverlayCardTarget/OverlayCardTarget.cjs');
|
|
57
57
|
require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
58
|
+
require('../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
58
59
|
require('../Popper/Popper/Popper.cjs');
|
|
59
60
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
60
61
|
require('react-focus-lock');
|
|
@@ -67,7 +68,7 @@ require('i18next');
|
|
|
67
68
|
require('@hcaptcha/react-hcaptcha');
|
|
68
69
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
69
70
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
70
|
-
require('../../
|
|
71
|
+
require('../../locale/locale.cjs');
|
|
71
72
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
72
73
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
73
74
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
@@ -51,6 +51,7 @@ import '../IsBrowser/IsBrowser.js';
|
|
|
51
51
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
52
52
|
import { useOverlayCardTarget } from './OverlayCardTarget/OverlayCardTarget.js';
|
|
53
53
|
import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
54
|
+
import '../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
54
55
|
import '../Popper/Popper/Popper.js';
|
|
55
56
|
import '../Popper/PopperContext/PopperContext.js';
|
|
56
57
|
import 'react-focus-lock';
|
|
@@ -63,7 +64,7 @@ import 'i18next';
|
|
|
63
64
|
import '@hcaptcha/react-hcaptcha';
|
|
64
65
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
65
66
|
import '../../context/FooterAnimationContext/index.js';
|
|
66
|
-
import '../../
|
|
67
|
+
import '../../locale/locale.js';
|
|
67
68
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
68
69
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
69
70
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
@@ -52,6 +52,7 @@ require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
52
52
|
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
53
53
|
var OpacityTransition = require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
54
54
|
require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
55
|
+
require('../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
55
56
|
require('../Popper/Popper/Popper.cjs');
|
|
56
57
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
57
58
|
require('react-focus-lock');
|
|
@@ -64,7 +65,7 @@ require('i18next');
|
|
|
64
65
|
require('@hcaptcha/react-hcaptcha');
|
|
65
66
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
66
67
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
67
|
-
require('../../
|
|
68
|
+
require('../../locale/locale.cjs');
|
|
68
69
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
69
70
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
70
71
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
@@ -48,6 +48,7 @@ import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
|
48
48
|
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
49
49
|
import { OpacityTransition } from '../Transition/OpacityTransition/OpacityTransition.js';
|
|
50
50
|
import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
51
|
+
import '../PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
51
52
|
import '../Popper/Popper/Popper.js';
|
|
52
53
|
import '../Popper/PopperContext/PopperContext.js';
|
|
53
54
|
import 'react-focus-lock';
|
|
@@ -60,7 +61,7 @@ import 'i18next';
|
|
|
60
61
|
import '@hcaptcha/react-hcaptcha';
|
|
61
62
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
62
63
|
import '../../context/FooterAnimationContext/index.js';
|
|
63
|
-
import '../../
|
|
64
|
+
import '../../locale/locale.js';
|
|
64
65
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
65
66
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
66
67
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactInternationalPhone = require('react-international-phone');
|
|
8
|
+
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
9
|
+
require('../../events/dynamicEvents.cjs');
|
|
10
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
11
|
+
require('@dynamic-labs/utils');
|
|
12
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
13
|
+
require('@dynamic-labs/sdk-api');
|
|
14
|
+
require('../../shared/logger.cjs');
|
|
15
|
+
require('@dynamic-labs/iconic');
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
17
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
18
|
+
var chevronDown = require('../../shared/assets/chevron-down.cjs');
|
|
19
|
+
require('@dynamic-labs/wallet-book');
|
|
20
|
+
require('../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../utils/constants/values.cjs');
|
|
22
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
|
+
require('../../shared/consts/index.cjs');
|
|
24
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
26
|
+
require('@dynamic-labs/multi-wallet');
|
|
27
|
+
require('viem');
|
|
28
|
+
require('viem/chains');
|
|
29
|
+
require('../../config/ApiEndpoint.cjs');
|
|
30
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
32
|
+
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
33
|
+
require('react-dom');
|
|
34
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
35
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
36
|
+
require('@dynamic-labs/types');
|
|
37
|
+
require('yup');
|
|
38
|
+
require('react-i18next');
|
|
39
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
40
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
41
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
42
|
+
require('@dynamic-labs/rpc-providers');
|
|
43
|
+
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
44
|
+
require('i18next');
|
|
45
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
46
|
+
require('../ShadowDOM/ShadowDOM.cjs');
|
|
47
|
+
require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
48
|
+
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
49
|
+
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
50
|
+
require('../OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
51
|
+
require('../../context/FooterAnimationContext/index.cjs');
|
|
52
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
53
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
|
+
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
55
|
+
require('react-focus-lock');
|
|
56
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
57
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
58
|
+
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
|
+
require('../IconButton/IconButton.cjs');
|
|
60
|
+
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
61
|
+
require('../UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
62
|
+
require('formik');
|
|
63
|
+
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
64
|
+
require('../Alert/Alert.cjs');
|
|
65
|
+
var Input = require('../Input/Input.cjs');
|
|
66
|
+
require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
67
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
68
|
+
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
69
|
+
require('../InlineWidget/InlineWidget.cjs');
|
|
70
|
+
require('../IsBrowser/IsBrowser.cjs');
|
|
71
|
+
var MenuList = require('../MenuList/MenuList/MenuList.cjs');
|
|
72
|
+
var usePhoneInputLogic = require('./usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
73
|
+
require('../Popper/Popper/Popper.cjs');
|
|
74
|
+
require('../Popper/PopperContext/PopperContext.cjs');
|
|
75
|
+
require('qrcode');
|
|
76
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
77
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
78
|
+
require('@hcaptcha/react-hcaptcha');
|
|
79
|
+
require('../../locale/locale.cjs');
|
|
80
|
+
|
|
81
|
+
const PhoneNumberField = ({ isLoading, disabled, error, label, onUpdate, appendRight, setIsFocused, setIsHovered, initialPhone, onBlur, }) => {
|
|
82
|
+
const countryInputRef = React.useRef(null);
|
|
83
|
+
const [countryDropdownOpen, setCountryDropdownOpen] = React.useState(false);
|
|
84
|
+
const anchorRef = React.useRef(null);
|
|
85
|
+
const [invalidNumberMessage, setInvalidNumberMessage] = React.useState(undefined);
|
|
86
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, countryFontSize, } = usePhoneInputLogic.usePhoneInputLogic({
|
|
87
|
+
countryInputRef,
|
|
88
|
+
initialPhone,
|
|
89
|
+
onUpdate,
|
|
90
|
+
setCountryDropdownOpen,
|
|
91
|
+
setInvalidNumberMessage,
|
|
92
|
+
});
|
|
93
|
+
return (jsxRuntime.jsxs("div", { className: 'phone-number-field', children: [jsxRuntime.jsxs("div", { className: 'phone-number-field__fields', onPointerEnter: () => setIsHovered === null || setIsHovered === void 0 ? void 0 : setIsHovered(true), onPointerLeave: () => setIsHovered === null || setIsHovered === void 0 ? void 0 : setIsHovered(false), onFocus: () => setIsFocused === null || setIsFocused === void 0 ? void 0 : setIsFocused(true), onBlur: (event) => {
|
|
94
|
+
setIsFocused === null || setIsFocused === void 0 ? void 0 : setIsFocused(false);
|
|
95
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
96
|
+
}, ref: anchorRef, children: [jsxRuntime.jsxs("div", { className: classNames.classNames('phone-number-field__fields__country-code', {
|
|
97
|
+
'phone-number-field__fields__country-code--disabled': isLoading || disabled,
|
|
98
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__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 || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric' }), jsxRuntime.jsx(Icon.Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input' }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', children: label !== null && label !== void 0 ? label : 'Phone number' })), appendRight] }), jsxRuntime.jsx(MenuList.MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
99
|
+
anchorOrigin: 'bottom-left',
|
|
100
|
+
anchorRef,
|
|
101
|
+
}, mobileTitle: 'Select country', dropdownClassName: 'phone-number-field__dropdown', children: jsxRuntime.jsx("div", { className: 'phone-number-field__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
102
|
+
const country = reactInternationalPhone.parseCountry(countryData);
|
|
103
|
+
const { iso2, name, dialCode } = country;
|
|
104
|
+
const isSelected = iso2 === currentCountry.iso2;
|
|
105
|
+
return (jsxRuntime.jsxs("div", { className: classNames.classNames('phone-number-field__dropdown__items__country', {
|
|
106
|
+
'phone-number-field__dropdown__items__country--selected': isSelected,
|
|
107
|
+
}), onClick: () => {
|
|
108
|
+
setCountry(country);
|
|
109
|
+
closeDropdown();
|
|
110
|
+
}, id: iso2, children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: iso2, size: '24px' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'primary', children: name }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', children: dialCode })] }, iso2));
|
|
111
|
+
}) }) }), Boolean(invalidNumberMessage || error) && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', className: 'phone-number-field__error-message', children: error !== null && error !== void 0 ? error : invalidNumberMessage }))] }));
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
exports.PhoneNumberField = PhoneNumberField;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Dispatch, FC, FocusEventHandler, SetStateAction } from 'react';
|
|
2
|
+
import { OnUpdatePhoneData } from './usePhoneInputLogic';
|
|
3
|
+
export type PhoneNumberFieldProps = {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
onUpdate?: OnUpdatePhoneData;
|
|
9
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
10
|
+
setIsHovered?: Dispatch<SetStateAction<boolean>>;
|
|
11
|
+
setIsFocused?: Dispatch<SetStateAction<boolean>>;
|
|
12
|
+
initialPhone?: string;
|
|
13
|
+
appendRight?: JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export declare const PhoneNumberField: FC<PhoneNumberFieldProps>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useState } from 'react';
|
|
3
|
+
import { FlagImage, parseCountry } from 'react-international-phone';
|
|
4
|
+
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
5
|
+
import '../../events/dynamicEvents.js';
|
|
6
|
+
import '../../../../_virtual/_tslib.js';
|
|
7
|
+
import '@dynamic-labs/utils';
|
|
8
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
9
|
+
import '@dynamic-labs/sdk-api';
|
|
10
|
+
import '../../shared/logger.js';
|
|
11
|
+
import '@dynamic-labs/iconic';
|
|
12
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
13
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
14
|
+
import { ReactComponent as SvgChevronDown } from '../../shared/assets/chevron-down.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 '../../shared/consts/index.js';
|
|
20
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
21
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
22
|
+
import '@dynamic-labs/multi-wallet';
|
|
23
|
+
import 'viem';
|
|
24
|
+
import 'viem/chains';
|
|
25
|
+
import '../../config/ApiEndpoint.js';
|
|
26
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
|
+
import '../../context/VerificationContext/VerificationContext.js';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
31
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
32
|
+
import '@dynamic-labs/types';
|
|
33
|
+
import 'yup';
|
|
34
|
+
import 'react-i18next';
|
|
35
|
+
import '../../context/MockContext/MockContext.js';
|
|
36
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
37
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
38
|
+
import '@dynamic-labs/rpc-providers';
|
|
39
|
+
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
40
|
+
import 'i18next';
|
|
41
|
+
import { Typography } from '../Typography/Typography.js';
|
|
42
|
+
import '../ShadowDOM/ShadowDOM.js';
|
|
43
|
+
import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
44
|
+
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
45
|
+
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
46
|
+
import '../OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
47
|
+
import '../../context/FooterAnimationContext/index.js';
|
|
48
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
49
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
|
+
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
51
|
+
import 'react-focus-lock';
|
|
52
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
53
|
+
import { Icon } from '../Icon/Icon.js';
|
|
54
|
+
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
|
+
import '../IconButton/IconButton.js';
|
|
56
|
+
import '../MenuList/Dropdown/Dropdown.js';
|
|
57
|
+
import '../UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
58
|
+
import 'formik';
|
|
59
|
+
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
60
|
+
import '../Alert/Alert.js';
|
|
61
|
+
import { Input } from '../Input/Input.js';
|
|
62
|
+
import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
63
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
64
|
+
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
65
|
+
import '../InlineWidget/InlineWidget.js';
|
|
66
|
+
import '../IsBrowser/IsBrowser.js';
|
|
67
|
+
import { MenuList } from '../MenuList/MenuList/MenuList.js';
|
|
68
|
+
import { usePhoneInputLogic } from './usePhoneInputLogic/usePhoneInputLogic.js';
|
|
69
|
+
import '../Popper/Popper/Popper.js';
|
|
70
|
+
import '../Popper/PopperContext/PopperContext.js';
|
|
71
|
+
import 'qrcode';
|
|
72
|
+
import '../../views/WalletList/WalletList.js';
|
|
73
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
|
+
import '@hcaptcha/react-hcaptcha';
|
|
75
|
+
import '../../locale/locale.js';
|
|
76
|
+
|
|
77
|
+
const PhoneNumberField = ({ isLoading, disabled, error, label, onUpdate, appendRight, setIsFocused, setIsHovered, initialPhone, onBlur, }) => {
|
|
78
|
+
const countryInputRef = useRef(null);
|
|
79
|
+
const [countryDropdownOpen, setCountryDropdownOpen] = useState(false);
|
|
80
|
+
const anchorRef = useRef(null);
|
|
81
|
+
const [invalidNumberMessage, setInvalidNumberMessage] = useState(undefined);
|
|
82
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, countryFontSize, } = usePhoneInputLogic({
|
|
83
|
+
countryInputRef,
|
|
84
|
+
initialPhone,
|
|
85
|
+
onUpdate,
|
|
86
|
+
setCountryDropdownOpen,
|
|
87
|
+
setInvalidNumberMessage,
|
|
88
|
+
});
|
|
89
|
+
return (jsxs("div", { className: 'phone-number-field', children: [jsxs("div", { className: 'phone-number-field__fields', onPointerEnter: () => setIsHovered === null || setIsHovered === void 0 ? void 0 : setIsHovered(true), onPointerLeave: () => setIsHovered === null || setIsHovered === void 0 ? void 0 : setIsHovered(false), onFocus: () => setIsFocused === null || setIsFocused === void 0 ? void 0 : setIsFocused(true), onBlur: (event) => {
|
|
90
|
+
setIsFocused === null || setIsFocused === void 0 ? void 0 : setIsFocused(false);
|
|
91
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
92
|
+
}, ref: anchorRef, children: [jsxs("div", { className: classNames('phone-number-field__fields__country-code', {
|
|
93
|
+
'phone-number-field__fields__country-code--disabled': isLoading || disabled,
|
|
94
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsx(Typography, { className: 'phone-number-field__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 || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric' }), jsx(Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input' }), !hasInput && (jsx(Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', children: label !== null && label !== void 0 ? label : 'Phone number' })), appendRight] }), jsx(MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
95
|
+
anchorOrigin: 'bottom-left',
|
|
96
|
+
anchorRef,
|
|
97
|
+
}, mobileTitle: 'Select country', dropdownClassName: 'phone-number-field__dropdown', children: jsx("div", { className: 'phone-number-field__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
98
|
+
const country = parseCountry(countryData);
|
|
99
|
+
const { iso2, name, dialCode } = country;
|
|
100
|
+
const isSelected = iso2 === currentCountry.iso2;
|
|
101
|
+
return (jsxs("div", { className: classNames('phone-number-field__dropdown__items__country', {
|
|
102
|
+
'phone-number-field__dropdown__items__country--selected': isSelected,
|
|
103
|
+
}), onClick: () => {
|
|
104
|
+
setCountry(country);
|
|
105
|
+
closeDropdown();
|
|
106
|
+
}, id: iso2, children: [jsx(FlagImage, { iso2: iso2, size: '24px' }), jsx(Typography, { variant: 'body_small', color: 'primary', children: name }), jsx(Typography, { variant: 'body_small', color: 'secondary', children: dialCode })] }, iso2));
|
|
107
|
+
}) }) }), Boolean(invalidNumberMessage || error) && (jsx(Typography, { variant: 'body_mini', className: 'phone-number-field__error-message', children: error !== null && error !== void 0 ? error : invalidNumberMessage }))] }));
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export { PhoneNumberField };
|