@dynamic-labs/sdk-react-core 2.0.0-alpha.4 → 2.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +15 -15
- package/src/index.cjs +23 -14
- package/src/index.js +13 -8
- package/src/lib/Main.cjs +5 -5
- package/src/lib/Main.js +5 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +8 -8
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +8 -8
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +8 -8
- package/src/lib/components/AnimatePresence/AnimatePresence.js +8 -8
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +8 -8
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +8 -8
- package/src/lib/components/Captcha/Captcha.cjs +7 -7
- package/src/lib/components/Captcha/Captcha.js +7 -7
- package/src/lib/components/Divider/Divider.cjs +7 -7
- package/src/lib/components/Divider/Divider.js +7 -7
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +8 -8
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +8 -8
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +2 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +2 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +2 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +2 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +2 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.js +2 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +8 -8
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +8 -8
- package/src/lib/components/LogoutButton/LogoutButton.cjs +8 -8
- package/src/lib/components/LogoutButton/LogoutButton.js +8 -8
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +8 -8
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +8 -8
- package/src/lib/components/Modal/Modal.cjs +8 -8
- package/src/lib/components/Modal/Modal.js +8 -8
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +8 -8
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +8 -8
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +9 -9
- package/src/lib/components/NetworkPicker/NetworkPicker.js +9 -9
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +8 -8
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +8 -8
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +7 -7
- package/src/lib/components/NetworkPicker/components/Network/Network.js +7 -7
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +6 -6
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +6 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +7 -7
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +7 -7
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +3 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +2 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +3 -3
- package/src/lib/components/OverlayCard/OverlayCard.cjs +8 -8
- package/src/lib/components/OverlayCard/OverlayCard.js +8 -8
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +8 -8
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +8 -8
- package/src/lib/components/PhoneIcon/PhoneIcon.cjs +14 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.d.ts +2 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.js +10 -0
- package/src/lib/components/PhoneIcon/index.d.ts +1 -0
- package/src/lib/components/Portal/Portal.cjs +9 -8
- package/src/lib/components/Portal/Portal.js +9 -8
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +8 -8
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +8 -8
- package/src/lib/components/RenderView/RenderView.cjs +8 -7
- package/src/lib/components/RenderView/RenderView.js +8 -7
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +8 -8
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +8 -8
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +8 -8
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +8 -8
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +2 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +2 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +8 -8
- package/src/lib/components/ShadowDOM/ShadowDOM.js +8 -8
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +8 -8
- package/src/lib/components/SocialSignIn/SocialSignIn.js +8 -8
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +7 -7
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +7 -7
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +94 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +90 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +8 -8
- package/src/lib/components/Toolkit/Toolkit.js +8 -8
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +8 -8
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +8 -8
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +8 -8
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +8 -8
- package/src/lib/components/Tooltip/Tooltip.cjs +8 -8
- package/src/lib/components/Tooltip/Tooltip.js +8 -8
- package/src/lib/components/TosAndPp/TosAndPp.cjs +8 -8
- package/src/lib/components/TosAndPp/TosAndPp.js +8 -8
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +8 -8
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +8 -8
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +8 -8
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +8 -8
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +8 -8
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +8 -8
- package/src/lib/components/UserAddress/UserAddress.cjs +9 -9
- package/src/lib/components/UserAddress/UserAddress.js +9 -9
- package/src/lib/components/UserProfile/UserProfile.cjs +8 -8
- package/src/lib/components/UserProfile/UserProfile.js +8 -8
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +7 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +7 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +8 -8
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +8 -8
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +7 -7
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +7 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +7 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +7 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +8 -8
- package/src/lib/components/UserProfileForm/UserProfileForm.js +8 -8
- package/src/lib/context/CaptchaContext/CaptchaContext.d.ts +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +8 -8
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +8 -8
- package/src/lib/context/DynamicContext/DynamicContext.cjs +23 -20
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +23 -20
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +2 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +11 -7
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +11 -7
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +4 -4
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +2 -1
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +4 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +8 -8
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +8 -8
- package/src/lib/context/DynamicContext/types/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +2 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +2 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +8 -8
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +8 -8
- package/src/lib/context/FundingContext/FundingContext.cjs +7 -7
- package/src/lib/context/FundingContext/FundingContext.js +7 -7
- package/src/lib/context/LoadingContext/LoadingContext.cjs +7 -7
- package/src/lib/context/LoadingContext/LoadingContext.js +7 -7
- package/src/lib/context/MockContext/MockContext.cjs +9 -9
- package/src/lib/context/MockContext/MockContext.js +9 -9
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +8 -8
- package/src/lib/context/PasskeyContext/PasskeyContext.js +8 -8
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +8 -8
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +8 -8
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +8 -8
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +8 -8
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +8 -8
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +8 -8
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +8 -8
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +8 -8
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +8 -8
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +8 -8
- package/src/lib/context/VerificationContext/VerificationContext.cjs +34 -0
- package/src/lib/context/VerificationContext/VerificationContext.d.ts +35 -0
- package/src/lib/context/VerificationContext/VerificationContext.js +28 -0
- package/src/lib/context/VerificationContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +7 -7
- package/src/lib/context/WalletContext/WalletContext.js +7 -7
- package/src/lib/data/api.cjs +122 -0
- package/src/lib/data/api.d.ts +36 -6
- package/src/lib/data/api.js +118 -3
- package/src/lib/events/dynamicEvents.d.ts +11 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +8 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +6 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +6 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +6 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +6 -6
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +8 -8
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +8 -8
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +7 -7
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +7 -7
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +7 -7
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +7 -7
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +7 -7
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +7 -7
- package/src/lib/locale/en/translation.cjs +142 -2
- package/src/lib/locale/en/translation.d.ts +141 -1
- package/src/lib/locale/en/translation.js +142 -2
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +81 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +77 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +87 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +3 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +83 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +5 -0
- package/src/lib/modals/CreatePasswordModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +7 -7
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +7 -7
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +87 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +83 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +6 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +6 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +7 -7
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +7 -7
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +6 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +6 -6
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +6 -6
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +6 -6
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/download.cjs +53 -0
- package/src/lib/shared/assets/download.js +29 -0
- package/src/lib/shared/assets/index.d.ts +4 -0
- package/src/lib/shared/assets/save-password-hero.cjs +127 -0
- package/src/lib/shared/assets/save-password-hero.js +103 -0
- package/src/lib/shared/assets/sign-in-with-phone.cjs +53 -0
- package/src/lib/shared/assets/sign-in-with-phone.js +29 -0
- package/src/lib/shared/assets/wallet-claim-hero.cjs +127 -0
- package/src/lib/shared/assets/wallet-claim-hero.js +103 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.cjs +7 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.js +3 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.cjs +28 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.d.ts +5 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.js +24 -0
- package/src/lib/utils/functions/formatPhone/index.d.ts +1 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +32 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts +10 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +28 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/index.d.ts +1 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +2 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +2 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +43 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.d.ts +6 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +39 -0
- package/src/lib/utils/functions/getUserIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +1 -0
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.cjs +13 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.js +9 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +2 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.cjs +15 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.js +11 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +35 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +31 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +10 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +10 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +10 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +10 -9
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +9 -9
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +9 -9
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +8 -8
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +8 -8
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +12 -16
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +12 -16
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +7 -7
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +7 -7
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +14 -9
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +14 -9
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +8 -8
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +8 -8
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs +59 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.js +55 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +8 -8
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +8 -8
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +8 -8
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +8 -8
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +8 -8
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +8 -8
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +8 -8
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +8 -8
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +4 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +4 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +8 -8
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +8 -8
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +10 -10
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +10 -10
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +7 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +7 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +218 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +5 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +214 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +49 -12
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +49 -12
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +8 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +8 -8
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +133 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +129 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +15 -20
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +16 -21
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +8 -8
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +8 -8
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +8 -8
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +8 -8
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +8 -8
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +8 -8
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +8 -8
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +8 -8
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +8 -8
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +8 -8
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +8 -8
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +8 -8
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +7 -7
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +7 -7
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +2 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +2 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +4 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +4 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.cjs +8 -8
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.js +8 -8
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +8 -8
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +8 -8
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +7 -7
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +7 -7
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +8 -8
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +8 -8
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +9 -9
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +9 -9
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +8 -8
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +8 -8
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +7 -7
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +7 -7
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +8 -8
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +8 -8
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +2 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +7 -7
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +7 -7
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +49 -12
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +49 -12
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +2 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +2 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +8 -8
- package/src/lib/views/AccountExistsView/AccountExistsView.js +8 -8
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +8 -8
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +8 -8
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +8 -8
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +8 -8
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +9 -9
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +9 -9
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +7 -7
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +7 -7
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +97 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +2 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +93 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +8 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +8 -7
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +5 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +5 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +7 -7
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +7 -7
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +9 -9
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +9 -9
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +163 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +159 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +151 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +7 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +147 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +126 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +122 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/index.d.ts +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +7 -7
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +7 -7
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +8 -8
- package/src/lib/views/EmailUpdate/EmailUpdate.js +8 -8
- package/src/lib/views/EmailVerification/EmailVerification.cjs +8 -8
- package/src/lib/views/EmailVerification/EmailVerification.js +8 -8
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +8 -8
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +8 -8
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +9 -9
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +9 -9
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +115 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +111 -0
- package/src/lib/views/LoginView/LoginView.cjs +8 -7
- package/src/lib/views/LoginView/LoginView.js +8 -7
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +7 -7
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +7 -7
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +8 -8
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +8 -8
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.cjs → checkIfNumberHasError/checkIfNumberHasError.cjs} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.d.ts → checkIfNumberHasError/checkIfNumberHasError.d.ts} +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.js → checkIfNumberHasError/checkIfNumberHasError.js} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.cjs +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.d.ts +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.js +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +113 -14
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.d.ts +1 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +113 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +6 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +6 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +6 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +6 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +8 -8
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +8 -8
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +7 -7
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +7 -7
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +6 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +6 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +7 -7
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +7 -7
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +8 -8
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +8 -8
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +8 -8
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +8 -8
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +9 -9
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +9 -9
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +9 -9
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +9 -9
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +6 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +6 -6
- package/src/lib/views/NoAccess/NoAccess.cjs +9 -8
- package/src/lib/views/NoAccess/NoAccess.js +9 -8
- package/src/lib/views/NoAccess/useNoAccessText.cjs +8 -8
- package/src/lib/views/NoAccess/useNoAccessText.js +8 -8
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +7 -7
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +7 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +7 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +7 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +6 -6
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +6 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +6 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +6 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +9 -9
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +9 -9
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +7 -7
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +7 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +7 -7
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +7 -7
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +7 -7
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +1 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +1 -0
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +1 -0
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +1 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +1 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +7 -7
- package/src/lib/views/PendingConnectView/PendingConnectView.js +7 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +7 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +7 -7
- package/src/lib/views/QrCodeView/QRCode.cjs +9 -9
- package/src/lib/views/QrCodeView/QRCode.js +9 -9
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +7 -7
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +7 -7
- package/src/lib/views/QrCodeView/QrCodeView.cjs +8 -8
- package/src/lib/views/QrCodeView/QrCodeView.js +8 -8
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +9 -9
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +9 -9
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +7 -7
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +7 -7
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +7 -7
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +7 -7
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +9 -9
- package/src/lib/views/SendBalanceView/SendBalanceView.js +9 -9
- package/src/lib/views/SmsVerification/SmsVerification.cjs +15 -0
- package/src/lib/views/SmsVerification/SmsVerification.d.ts +2 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +11 -0
- package/src/lib/views/SmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +167 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.d.ts +10 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +163 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +7 -7
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +7 -7
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +7 -7
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +7 -7
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +9 -9
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +9 -9
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +9 -9
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +9 -9
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +8 -8
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +8 -8
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +8 -8
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +8 -8
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +7 -7
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +7 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +11 -11
- package/src/lib/views/WalletGroupView/WalletGroupView.js +11 -11
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +7 -7
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +7 -7
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +7 -7
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +7 -7
- package/src/lib/views/WalletList/WalletList.cjs +7 -7
- package/src/lib/views/WalletList/WalletList.js +7 -7
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +7 -7
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +7 -7
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +7 -7
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +7 -7
- package/src/lib/views/WalletList/hooks/useTabState.cjs +8 -8
- package/src/lib/views/WalletList/hooks/useTabState.js +8 -8
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +7 -7
- package/src/lib/views/WalletLockedView/WalletLockedView.js +7 -7
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +7 -7
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +7 -7
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +8 -8
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +8 -8
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +8 -8
- package/src/lib/views/WalletUsedView/WalletUsedView.js +8 -8
- package/src/lib/views/index.d.ts +6 -6
- package/src/lib/views/viewToComponentMap.cjs +29 -22
- package/src/lib/views/viewToComponentMap.js +29 -22
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +8 -8
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +7 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +7 -7
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +5 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +5 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +8 -8
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +8 -8
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +8 -8
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +8 -8
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +38 -45
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +38 -45
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +9 -8
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +9 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +10 -18
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +10 -18
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +8 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +8 -8
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +7 -7
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +8 -7
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +8 -7
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +6 -6
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +8 -8
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +8 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +9 -9
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +7 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +7 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -7
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +8 -8
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +8 -8
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +7 -7
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +9 -9
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +9 -9
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +6 -6
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +7 -7
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +7 -7
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +8 -8
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +8 -8
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +6 -6
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +6 -6
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.cjs +0 -31
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.d.ts +0 -13
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.js +0 -25
- package/src/lib/context/EmailVerificationContext/index.d.ts +0 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/index.d.ts +0 -1
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs
CHANGED
|
@@ -28,11 +28,12 @@ require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
28
28
|
require('@dynamic-labs/multi-wallet');
|
|
29
29
|
var isPhoneNumberProviderEnabled = require('../../../../utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs');
|
|
30
30
|
require('viem/chains');
|
|
31
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
31
32
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
33
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
|
-
require('../../../../
|
|
34
|
-
require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
34
|
+
require('../../../../context/VerificationContext/VerificationContext.cjs');
|
|
35
35
|
require('react-dom');
|
|
36
|
+
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
36
37
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
37
38
|
require('@dynamic-labs/types');
|
|
38
39
|
require('yup');
|
|
@@ -42,20 +43,19 @@ require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUse
|
|
|
42
43
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
43
44
|
require('@dynamic-labs/rpc-providers');
|
|
44
45
|
require('../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
|
+
require('i18next');
|
|
47
|
+
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
45
48
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
49
|
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
47
50
|
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
48
51
|
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
49
52
|
require('../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
50
53
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
51
|
-
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
52
54
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
55
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
56
|
require('react-focus-lock');
|
|
55
57
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
58
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
57
|
-
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
58
|
-
require('i18next');
|
|
59
59
|
require('qrcode');
|
|
60
60
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
61
61
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
@@ -76,9 +76,9 @@ var MenuList = require('../../../../components/MenuList/MenuList/MenuList.cjs');
|
|
|
76
76
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
77
77
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
78
78
|
require('../../../WalletList/WalletList.cjs');
|
|
79
|
-
require('@hcaptcha/react-hcaptcha');
|
|
80
79
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
81
80
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
81
|
+
require('@hcaptcha/react-hcaptcha');
|
|
82
82
|
var usePhoneInputLogic = require('./usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
83
83
|
|
|
84
84
|
const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
@@ -88,7 +88,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
88
88
|
const [countryDropdownOpen, setCountryDropdownOpen] = React.useState(false);
|
|
89
89
|
const anchorRef = React.useRef(null);
|
|
90
90
|
const [invalidNumberMessage, setInvalidNumberMessage] = React.useState(undefined);
|
|
91
|
-
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef,
|
|
91
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, isInputComplete, handleSubmit, countryFontSize, } = usePhoneInputLogic.usePhoneInputLogic({
|
|
92
92
|
countryInputRef,
|
|
93
93
|
onSubmit,
|
|
94
94
|
onSubmitError,
|
|
@@ -104,7 +104,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
104
104
|
}
|
|
105
105
|
return (jsxRuntime.jsxs("form", { className: 'login-with-phone-number-form', onSubmit: (e) => handleSubmit(e), children: [jsxRuntime.jsxs("div", { className: 'login-with-phone-number-form__fields', onPointerEnter: () => setIsHovered(true), onPointerLeave: () => setIsHovered(false), onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), ref: anchorRef, children: [jsxRuntime.jsxs("div", { className: classNames.classNames('login-with-phone-number-form__fields__country-code', {
|
|
106
106
|
'login-with-phone-number-form__fields__country-code--disabled': isLoading,
|
|
107
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsxRuntime.jsx(Icon.Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage) }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children:
|
|
107
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsxRuntime.jsx(Icon.Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage), inputMode: 'numeric' }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children: "Phone number" })), jsxRuntime.jsx(InlineSubmitButton.InlineSubmitButton, { disabled: isLoading || !isInputComplete, highlighted: isInputComplete, isFocused: isFocused, isHovered: isHovered, className: 'login-with-phone-number-form__fields__inline-submit' })] }), jsxRuntime.jsx(MenuList.MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
108
108
|
anchorOrigin: 'bottom-left',
|
|
109
109
|
anchorRef,
|
|
110
110
|
}, mobileTitle: 'Select country', dropdownClassName: 'login-with-phone-number-form__dropdown', children: jsxRuntime.jsx("div", { className: 'login-with-phone-number-form__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js
CHANGED
|
@@ -24,11 +24,12 @@ import '../../../../context/ErrorContext/ErrorContext.js';
|
|
|
24
24
|
import '@dynamic-labs/multi-wallet';
|
|
25
25
|
import { isPhoneNumberProviderEnabled } from '../../../../utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js';
|
|
26
26
|
import 'viem/chains';
|
|
27
|
+
import '../../../../config/ApiEndpoint.js';
|
|
27
28
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
29
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
|
-
import '../../../../
|
|
30
|
-
import '../../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
30
|
+
import '../../../../context/VerificationContext/VerificationContext.js';
|
|
31
31
|
import 'react-dom';
|
|
32
|
+
import '../../../../context/WalletContext/WalletContext.js';
|
|
32
33
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
33
34
|
import '@dynamic-labs/types';
|
|
34
35
|
import 'yup';
|
|
@@ -38,20 +39,19 @@ import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser
|
|
|
38
39
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
39
40
|
import '@dynamic-labs/rpc-providers';
|
|
40
41
|
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import 'i18next';
|
|
43
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
41
44
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
42
45
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
46
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
44
47
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
45
48
|
import '../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
46
49
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
47
|
-
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
48
50
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
51
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
52
|
import 'react-focus-lock';
|
|
51
53
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
54
|
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
53
|
-
import '../../../../context/WalletContext/WalletContext.js';
|
|
54
|
-
import 'i18next';
|
|
55
55
|
import 'qrcode';
|
|
56
56
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
57
57
|
import '../../../../components/IconButton/IconButton.js';
|
|
@@ -72,9 +72,9 @@ import { MenuList } from '../../../../components/MenuList/MenuList/MenuList.js';
|
|
|
72
72
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
73
73
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
74
74
|
import '../../../WalletList/WalletList.js';
|
|
75
|
-
import '@hcaptcha/react-hcaptcha';
|
|
76
75
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
77
76
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
77
|
+
import '@hcaptcha/react-hcaptcha';
|
|
78
78
|
import { usePhoneInputLogic } from './usePhoneInputLogic/usePhoneInputLogic.js';
|
|
79
79
|
|
|
80
80
|
const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
@@ -84,7 +84,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
84
84
|
const [countryDropdownOpen, setCountryDropdownOpen] = useState(false);
|
|
85
85
|
const anchorRef = useRef(null);
|
|
86
86
|
const [invalidNumberMessage, setInvalidNumberMessage] = useState(undefined);
|
|
87
|
-
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef,
|
|
87
|
+
const { formattedPhone, currentCountry, handleCountryInput, handlePhoneInput, hasInput, inputRef, countryInput, onBlurCountry, filteredCountries, openDropdown, handleCountryKeyDown, closeDropdown, setCountry, onMenuDisplayToggle, onFocusCountry, isInputComplete, handleSubmit, countryFontSize, } = usePhoneInputLogic({
|
|
88
88
|
countryInputRef,
|
|
89
89
|
onSubmit,
|
|
90
90
|
onSubmitError,
|
|
@@ -100,7 +100,7 @@ const PhoneNumberSignInSection = ({ isLoading, onSubmit, onSubmitError, }) => {
|
|
|
100
100
|
}
|
|
101
101
|
return (jsxs("form", { className: 'login-with-phone-number-form', onSubmit: (e) => handleSubmit(e), children: [jsxs("div", { className: 'login-with-phone-number-form__fields', onPointerEnter: () => setIsHovered(true), onPointerLeave: () => setIsHovered(false), onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), ref: anchorRef, children: [jsxs("div", { className: classNames('login-with-phone-number-form__fields__country-code', {
|
|
102
102
|
'login-with-phone-number-form__fields__country-code--disabled': isLoading,
|
|
103
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsx(Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsx(Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage) }), !hasInput && (jsx(Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children:
|
|
103
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'login-with-phone-number-form__fields__country-code__flag' }), jsx(Typography, { className: 'login-with-phone-number-form__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__country-code__container', className: 'login-with-phone-number-form__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input' }), jsx(Icon, { className: 'login-with-phone-number-form__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phone_number_field', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading, containerClassName: 'login-with-phone-number-form__fields__phone-number', className: 'login-with-phone-number-form__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage), inputMode: 'numeric' }), !hasInput && (jsx(Typography, { className: 'login-with-phone-number-form__fields__placeholder', variant: 'body_normal', weight: 'regular', children: "Phone number" })), jsx(InlineSubmitButton, { disabled: isLoading || !isInputComplete, highlighted: isInputComplete, isFocused: isFocused, isHovered: isHovered, className: 'login-with-phone-number-form__fields__inline-submit' })] }), jsx(MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
104
104
|
anchorOrigin: 'bottom-left',
|
|
105
105
|
anchorRef,
|
|
106
106
|
}, mobileTitle: 'Select country', dropdownClassName: 'login-with-phone-number-form__dropdown', children: jsx("div", { className: 'login-with-phone-number-form__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
@@ -7,6 +7,6 @@ const PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
|
7
7
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
8
8
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const checkIfNumberHasError = (number) => !PHONE_NUMBER_REGEX.test(number);
|
|
11
11
|
|
|
12
|
-
exports.
|
|
12
|
+
exports.checkIfNumberHasError = checkIfNumberHasError;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
3
3
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const checkIfNumberHasError: (number: string) => boolean;
|
|
@@ -3,6 +3,6 @@ const PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
|
3
3
|
* Performs a regex check to ensure phone follows the e.164 format
|
|
4
4
|
* https://www.twilio.com/docs/glossary/what-e164
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const checkIfNumberHasError = (number) => !PHONE_NUMBER_REGEX.test(number);
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { checkIfNumberHasError };
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkIfNumberHasError';
|
|
@@ -9,12 +9,14 @@ var reactInternationalPhone = require('react-international-phone');
|
|
|
9
9
|
const getCustomCountries = () => reactInternationalPhone.defaultCountries
|
|
10
10
|
.map(reactInternationalPhone.parseCountry)
|
|
11
11
|
.filter(({ iso2 }) => supportedCountries.includes(iso2))
|
|
12
|
-
.map((country) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
.map((country) => {
|
|
13
|
+
if (country.iso2 === 'br')
|
|
14
|
+
country.format = '(..) .....-....';
|
|
15
|
+
if (country.iso2 === 'fr')
|
|
16
|
+
country.format = '(.) .. .. .. ..';
|
|
17
|
+
return reactInternationalPhone.buildCountryData(country);
|
|
18
|
+
});
|
|
19
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
18
20
|
const supportedCountries = ['us', 'ca'];
|
|
19
21
|
|
|
20
22
|
exports.getCustomCountries = getCustomCountries;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CountryData, CountryIso2 } from 'react-international-phone';
|
|
2
2
|
export declare const getCustomCountries: () => CountryData[];
|
|
3
|
-
/** Which countries
|
|
3
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
4
4
|
export declare const supportedCountries: CountryIso2[];
|
|
@@ -5,12 +5,14 @@ import { defaultCountries, parseCountry, buildCountryData } from 'react-internat
|
|
|
5
5
|
const getCustomCountries = () => defaultCountries
|
|
6
6
|
.map(parseCountry)
|
|
7
7
|
.filter(({ iso2 }) => supportedCountries.includes(iso2))
|
|
8
|
-
.map((country) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
.map((country) => {
|
|
9
|
+
if (country.iso2 === 'br')
|
|
10
|
+
country.format = '(..) .....-....';
|
|
11
|
+
if (country.iso2 === 'fr')
|
|
12
|
+
country.format = '(.) .. .. .. ..';
|
|
13
|
+
return buildCountryData(country);
|
|
14
|
+
});
|
|
15
|
+
/** Which countries to show in phone number input country dropdowns */
|
|
14
16
|
const supportedCountries = ['us', 'ca'];
|
|
15
17
|
|
|
16
18
|
export { getCustomCountries, supportedCountries };
|
|
@@ -2,15 +2,80 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _tslib = require('../../../../../../../_virtual/_tslib.cjs');
|
|
5
6
|
var React = require('react');
|
|
6
|
-
var reactInternationalPhone = require('react-international-phone');
|
|
7
7
|
var reactI18next = require('react-i18next');
|
|
8
|
+
var reactInternationalPhone = require('react-international-phone');
|
|
9
|
+
var CaptchaContext = require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
10
|
+
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
11
|
+
require('@dynamic-labs/sdk-api');
|
|
12
|
+
require('../../../../../shared/logger.cjs');
|
|
13
|
+
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
|
+
require('react/jsx-runtime');
|
|
16
|
+
var ViewContext = require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
require('@dynamic-labs/wallet-book');
|
|
18
|
+
var localStorage$1 = require('../../../../../utils/constants/localStorage.cjs');
|
|
19
|
+
require('../../../../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../../../../utils/constants/values.cjs');
|
|
8
21
|
var localStorage = require('../../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
22
|
+
require('viem');
|
|
23
|
+
require('@dynamic-labs/utils');
|
|
9
24
|
var useThrottle = require('../../../../../shared/utils/hooks/useThrottle/useThrottle.cjs');
|
|
10
|
-
|
|
25
|
+
require('../../../../../shared/consts/index.cjs');
|
|
26
|
+
require('../../../../../events/dynamicEvents.cjs');
|
|
27
|
+
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
28
|
+
require('@dynamic-labs/multi-wallet');
|
|
11
29
|
var modulo = require('../../../../../utils/functions/modulo/modulo.cjs');
|
|
30
|
+
require('viem/chains');
|
|
31
|
+
var api = require('../../../../../data/api.cjs');
|
|
32
|
+
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
|
+
var VerificationContext = require('../../../../../context/VerificationContext/VerificationContext.cjs');
|
|
35
|
+
require('react-dom');
|
|
36
|
+
require('../../../../../context/WalletContext/WalletContext.cjs');
|
|
37
|
+
require('../../../../../context/ThemeContext/ThemeContext.cjs');
|
|
38
|
+
require('@dynamic-labs/types');
|
|
39
|
+
require('yup');
|
|
40
|
+
require('../../../../../context/MockContext/MockContext.cjs');
|
|
41
|
+
require('../../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
42
|
+
require('../../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
43
|
+
require('@dynamic-labs/rpc-providers');
|
|
44
|
+
require('../../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('../../../../../components/Alert/Alert.cjs');
|
|
46
|
+
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
|
+
require('../../../../../components/IconButton/IconButton.cjs');
|
|
48
|
+
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
|
+
require('../../../../../components/Input/Input.cjs');
|
|
50
|
+
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
51
|
+
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
52
|
+
require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
53
|
+
require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
54
|
+
require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
55
|
+
require('../../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
56
|
+
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
57
|
+
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
58
|
+
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
59
|
+
require('react-focus-lock');
|
|
60
|
+
require('formik');
|
|
61
|
+
require('qrcode');
|
|
62
|
+
require('../../../../WalletList/WalletList.cjs');
|
|
63
|
+
require('../../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
64
|
+
require('../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
65
|
+
require('i18next');
|
|
66
|
+
require('@hcaptcha/react-hcaptcha');
|
|
67
|
+
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
68
|
+
require('../../../../../context/FooterAnimationContext/index.cjs');
|
|
69
|
+
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
70
|
+
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
71
|
+
require('../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
72
|
+
require('../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
73
|
+
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
74
|
+
require('../../../../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
75
|
+
require('../../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
76
|
+
var useInternalDynamicContext = require('../../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
77
|
+
var checkIfNumberHasError = require('../checkIfNumberHasError/checkIfNumberHasError.cjs');
|
|
12
78
|
var getCustomCountries = require('../getCustomCountries/getCustomCountries.cjs');
|
|
13
|
-
var checkPhoneNumberForError = require('../checkPhoneNumberForError/checkPhoneNumberForError.cjs');
|
|
14
79
|
|
|
15
80
|
const customCountries = getCustomCountries.getCustomCountries();
|
|
16
81
|
/** The default country we want to use */
|
|
@@ -134,17 +199,57 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
134
199
|
if (event.key === 'Enter')
|
|
135
200
|
return handleEnterInput(event);
|
|
136
201
|
}, [closeDropdown, handleArrowInput, handleEnterInput]);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
202
|
+
// =================================================================
|
|
203
|
+
// SUBMITTING
|
|
204
|
+
// =================================================================
|
|
205
|
+
const { engageCaptcha } = CaptchaContext.useCaptchaContext();
|
|
206
|
+
const { view, setView } = ViewContext.useViewContext();
|
|
207
|
+
const { environmentId, projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
208
|
+
const { setDisplayedDestination, setVerificationUUID, setRetryData } = VerificationContext.useVerification();
|
|
209
|
+
const submitSms = (captchaToken) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
210
|
+
try {
|
|
211
|
+
const phoneNumber = reactInternationalPhone.removeDialCode({
|
|
212
|
+
dialCode: currentCountry.dialCode,
|
|
213
|
+
phone,
|
|
214
|
+
});
|
|
215
|
+
const { verificationUUID } = yield api.createSmsVerification({
|
|
216
|
+
captchaToken,
|
|
217
|
+
environmentId,
|
|
218
|
+
isoCountryCode: currentCountry.iso2,
|
|
219
|
+
phoneCountryCode: currentCountry.dialCode,
|
|
220
|
+
phoneNumber,
|
|
221
|
+
});
|
|
222
|
+
setRetryData({
|
|
223
|
+
dialCode: currentCountry.dialCode,
|
|
224
|
+
iso2: currentCountry.iso2,
|
|
225
|
+
phone: phoneNumber,
|
|
226
|
+
});
|
|
227
|
+
setView('login-with-sms-verification');
|
|
228
|
+
setDisplayedDestination(formattedPhone);
|
|
229
|
+
setVerificationUUID(verificationUUID);
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
setView(view.type);
|
|
233
|
+
if (typeof error === 'string')
|
|
234
|
+
setInvalidNumberMessage(error);
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
const handleSubmit = (event) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
238
|
+
var _e;
|
|
239
|
+
event.preventDefault();
|
|
240
|
+
const error = checkIfNumberHasError.checkIfNumberHasError(phone);
|
|
140
241
|
if (error) {
|
|
141
242
|
setInvalidNumberMessage(t('dyn_login.helper.phone_number_form.invalid_number'));
|
|
142
243
|
onSubmitError === null || onSubmitError === void 0 ? void 0 : onSubmitError();
|
|
143
244
|
return;
|
|
144
245
|
}
|
|
145
246
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
146
|
-
|
|
147
|
-
|
|
247
|
+
if ((_e = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.security.hCaptcha) === null || _e === void 0 ? void 0 : _e.enabled) {
|
|
248
|
+
engageCaptcha({ authMethod: 'phone', onCaptchaSuccess: submitSms });
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
submitSms();
|
|
252
|
+
});
|
|
148
253
|
// =================================================================
|
|
149
254
|
// UTILITIES
|
|
150
255
|
// =================================================================
|
|
@@ -156,11 +261,6 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
156
261
|
dialCode: currentCountry.dialCode,
|
|
157
262
|
phone,
|
|
158
263
|
}).length > 0, [currentCountry.dialCode, phone]);
|
|
159
|
-
/** Placeholder based on selected country's format */
|
|
160
|
-
const placeholder = React.useMemo(() => reactInternationalPhone.getActiveFormattingMask({
|
|
161
|
-
country: currentCountry,
|
|
162
|
-
phone: '+00000000',
|
|
163
|
-
}), [currentCountry]);
|
|
164
264
|
/** Ref of the entire form */
|
|
165
265
|
const countriesContainer = React.useRef(null);
|
|
166
266
|
const scrollCountryIntoView = (iso2) => {
|
|
@@ -226,7 +326,6 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
226
326
|
onFocusCountry: openDropdown,
|
|
227
327
|
onMenuDisplayToggle,
|
|
228
328
|
openDropdown,
|
|
229
|
-
placeholder,
|
|
230
329
|
setCountry,
|
|
231
330
|
};
|
|
232
331
|
};
|
|
@@ -19,7 +19,7 @@ export declare const usePhoneInputLogic: ({ countryInputRef, setCountryDropdownO
|
|
|
19
19
|
handleCountryInput: ChangeEventHandler<HTMLInputElement>;
|
|
20
20
|
handleCountryKeyDown: KeyboardEventHandler<HTMLInputElement>;
|
|
21
21
|
handlePhoneInput: (e: import("react").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => string;
|
|
22
|
-
handleSubmit: (
|
|
22
|
+
handleSubmit: (event: FormEvent<HTMLFormElement>) => Promise<void>;
|
|
23
23
|
hasInput: boolean;
|
|
24
24
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
25
25
|
isInputComplete: boolean;
|
|
@@ -27,7 +27,6 @@ export declare const usePhoneInputLogic: ({ countryInputRef, setCountryDropdownO
|
|
|
27
27
|
onFocusCountry: () => void;
|
|
28
28
|
onMenuDisplayToggle: (menu: HTMLDivElement | null) => void;
|
|
29
29
|
openDropdown: () => void;
|
|
30
|
-
placeholder: string;
|
|
31
30
|
setCountry: (newCountry: ParsedCountry) => void;
|
|
32
31
|
};
|
|
33
32
|
export {};
|
|
@@ -1,12 +1,77 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../../../../_virtual/_tslib.js';
|
|
1
2
|
import { useState, useMemo, useCallback, useRef } from 'react';
|
|
2
|
-
import { usePhoneInput, parseCountry, removeDialCode, getActiveFormattingMask, guessCountryByPartialPhoneNumber } from 'react-international-phone';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { usePhoneInput, parseCountry, removeDialCode, getActiveFormattingMask, guessCountryByPartialPhoneNumber } from 'react-international-phone';
|
|
5
|
+
import { useCaptchaContext } from '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
6
|
+
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
7
|
+
import '@dynamic-labs/sdk-api';
|
|
8
|
+
import '../../../../../shared/logger.js';
|
|
9
|
+
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
12
|
+
import { useViewContext } from '../../../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import '@dynamic-labs/wallet-book';
|
|
14
|
+
import { PHONE_INPUT_DEFAULT_COUNTRY } from '../../../../../utils/constants/localStorage.js';
|
|
15
|
+
import '../../../../../utils/constants/colors.js';
|
|
16
|
+
import '../../../../../utils/constants/values.js';
|
|
4
17
|
import { LocalStorage } from '../../../../../shared/utils/classes/storage/localStorage.js';
|
|
18
|
+
import 'viem';
|
|
19
|
+
import '@dynamic-labs/utils';
|
|
5
20
|
import { useThrottle } from '../../../../../shared/utils/hooks/useThrottle/useThrottle.js';
|
|
6
|
-
import
|
|
21
|
+
import '../../../../../shared/consts/index.js';
|
|
22
|
+
import '../../../../../events/dynamicEvents.js';
|
|
23
|
+
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
24
|
+
import '@dynamic-labs/multi-wallet';
|
|
7
25
|
import { modulo } from '../../../../../utils/functions/modulo/modulo.js';
|
|
26
|
+
import 'viem/chains';
|
|
27
|
+
import { createSmsVerification } from '../../../../../data/api.js';
|
|
28
|
+
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
|
+
import { useVerification } from '../../../../../context/VerificationContext/VerificationContext.js';
|
|
31
|
+
import 'react-dom';
|
|
32
|
+
import '../../../../../context/WalletContext/WalletContext.js';
|
|
33
|
+
import '../../../../../context/ThemeContext/ThemeContext.js';
|
|
34
|
+
import '@dynamic-labs/types';
|
|
35
|
+
import 'yup';
|
|
36
|
+
import '../../../../../context/MockContext/MockContext.js';
|
|
37
|
+
import '../../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
38
|
+
import '../../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
39
|
+
import '@dynamic-labs/rpc-providers';
|
|
40
|
+
import '../../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import '../../../../../components/Alert/Alert.js';
|
|
42
|
+
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
|
+
import '../../../../../components/IconButton/IconButton.js';
|
|
44
|
+
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
45
|
+
import '../../../../../components/Input/Input.js';
|
|
46
|
+
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
47
|
+
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
48
|
+
import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
49
|
+
import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
50
|
+
import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
51
|
+
import '../../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
52
|
+
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
53
|
+
import '../../../../../components/Popper/Popper/Popper.js';
|
|
54
|
+
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
55
|
+
import 'react-focus-lock';
|
|
56
|
+
import 'formik';
|
|
57
|
+
import 'qrcode';
|
|
58
|
+
import '../../../../WalletList/WalletList.js';
|
|
59
|
+
import '../../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
60
|
+
import '../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
61
|
+
import 'i18next';
|
|
62
|
+
import '@hcaptcha/react-hcaptcha';
|
|
63
|
+
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
64
|
+
import '../../../../../context/FooterAnimationContext/index.js';
|
|
65
|
+
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
66
|
+
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
67
|
+
import '../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
68
|
+
import '../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
69
|
+
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
70
|
+
import '../../../../TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
71
|
+
import '../../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
72
|
+
import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
73
|
+
import { checkIfNumberHasError } from '../checkIfNumberHasError/checkIfNumberHasError.js';
|
|
8
74
|
import { getCustomCountries } from '../getCustomCountries/getCustomCountries.js';
|
|
9
|
-
import { checkPhoneNumberForError } from '../checkPhoneNumberForError/checkPhoneNumberForError.js';
|
|
10
75
|
|
|
11
76
|
const customCountries = getCustomCountries();
|
|
12
77
|
/** The default country we want to use */
|
|
@@ -130,17 +195,57 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
130
195
|
if (event.key === 'Enter')
|
|
131
196
|
return handleEnterInput(event);
|
|
132
197
|
}, [closeDropdown, handleArrowInput, handleEnterInput]);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
198
|
+
// =================================================================
|
|
199
|
+
// SUBMITTING
|
|
200
|
+
// =================================================================
|
|
201
|
+
const { engageCaptcha } = useCaptchaContext();
|
|
202
|
+
const { view, setView } = useViewContext();
|
|
203
|
+
const { environmentId, projectSettings } = useInternalDynamicContext();
|
|
204
|
+
const { setDisplayedDestination, setVerificationUUID, setRetryData } = useVerification();
|
|
205
|
+
const submitSms = (captchaToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
206
|
+
try {
|
|
207
|
+
const phoneNumber = removeDialCode({
|
|
208
|
+
dialCode: currentCountry.dialCode,
|
|
209
|
+
phone,
|
|
210
|
+
});
|
|
211
|
+
const { verificationUUID } = yield createSmsVerification({
|
|
212
|
+
captchaToken,
|
|
213
|
+
environmentId,
|
|
214
|
+
isoCountryCode: currentCountry.iso2,
|
|
215
|
+
phoneCountryCode: currentCountry.dialCode,
|
|
216
|
+
phoneNumber,
|
|
217
|
+
});
|
|
218
|
+
setRetryData({
|
|
219
|
+
dialCode: currentCountry.dialCode,
|
|
220
|
+
iso2: currentCountry.iso2,
|
|
221
|
+
phone: phoneNumber,
|
|
222
|
+
});
|
|
223
|
+
setView('login-with-sms-verification');
|
|
224
|
+
setDisplayedDestination(formattedPhone);
|
|
225
|
+
setVerificationUUID(verificationUUID);
|
|
226
|
+
}
|
|
227
|
+
catch (error) {
|
|
228
|
+
setView(view.type);
|
|
229
|
+
if (typeof error === 'string')
|
|
230
|
+
setInvalidNumberMessage(error);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
const handleSubmit = (event) => __awaiter(void 0, void 0, void 0, function* () {
|
|
234
|
+
var _e;
|
|
235
|
+
event.preventDefault();
|
|
236
|
+
const error = checkIfNumberHasError(phone);
|
|
136
237
|
if (error) {
|
|
137
238
|
setInvalidNumberMessage(t('dyn_login.helper.phone_number_form.invalid_number'));
|
|
138
239
|
onSubmitError === null || onSubmitError === void 0 ? void 0 : onSubmitError();
|
|
139
240
|
return;
|
|
140
241
|
}
|
|
141
242
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
142
|
-
|
|
143
|
-
|
|
243
|
+
if ((_e = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.security.hCaptcha) === null || _e === void 0 ? void 0 : _e.enabled) {
|
|
244
|
+
engageCaptcha({ authMethod: 'phone', onCaptchaSuccess: submitSms });
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
submitSms();
|
|
248
|
+
});
|
|
144
249
|
// =================================================================
|
|
145
250
|
// UTILITIES
|
|
146
251
|
// =================================================================
|
|
@@ -152,11 +257,6 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
152
257
|
dialCode: currentCountry.dialCode,
|
|
153
258
|
phone,
|
|
154
259
|
}).length > 0, [currentCountry.dialCode, phone]);
|
|
155
|
-
/** Placeholder based on selected country's format */
|
|
156
|
-
const placeholder = useMemo(() => getActiveFormattingMask({
|
|
157
|
-
country: currentCountry,
|
|
158
|
-
phone: '+00000000',
|
|
159
|
-
}), [currentCountry]);
|
|
160
260
|
/** Ref of the entire form */
|
|
161
261
|
const countriesContainer = useRef(null);
|
|
162
262
|
const scrollCountryIntoView = (iso2) => {
|
|
@@ -222,7 +322,6 @@ const usePhoneInputLogic = ({ countryInputRef, setCountryDropdownOpen, setInvali
|
|
|
222
322
|
onFocusCountry: openDropdown,
|
|
223
323
|
onMenuDisplayToggle,
|
|
224
324
|
openDropdown,
|
|
225
|
-
placeholder,
|
|
226
325
|
setCountry,
|
|
227
326
|
};
|
|
228
327
|
};
|