@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
|
@@ -25,11 +25,12 @@ var useInternalDynamicContext = require('../../../context/DynamicContext/useDyna
|
|
|
25
25
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
26
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
27
|
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
require('react-international-phone');
|
|
28
29
|
require('viem/chains');
|
|
30
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
29
31
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
32
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
31
|
-
require('../../../
|
|
32
|
-
require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
33
|
+
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
33
34
|
require('react-dom');
|
|
34
35
|
var useEmbeddedWallet = require('../../../utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs');
|
|
35
36
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -42,6 +43,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
42
43
|
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
43
44
|
require('../../../context/MockContext/MockContext.cjs');
|
|
44
45
|
require('react-i18next');
|
|
46
|
+
require('i18next');
|
|
45
47
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
48
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
47
49
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
@@ -53,7 +55,6 @@ require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWi
|
|
|
53
55
|
require('react-focus-lock');
|
|
54
56
|
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
55
57
|
require('../../../context/WalletContext/WalletContext.cjs');
|
|
56
|
-
require('i18next');
|
|
57
58
|
require('qrcode');
|
|
58
59
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
60
|
require('../../../components/IconButton/IconButton.cjs');
|
|
@@ -73,10 +74,9 @@ require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
|
73
74
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
74
75
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
75
76
|
require('../../WalletList/WalletList.cjs');
|
|
76
|
-
require('@hcaptcha/react-hcaptcha');
|
|
77
77
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
78
78
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
79
|
-
require('react-
|
|
79
|
+
require('@hcaptcha/react-hcaptcha');
|
|
80
80
|
require('../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
81
81
|
|
|
82
82
|
const OnboardingUserDataForm = ({ children, userProfile, disableSubmit, }) => {
|
|
@@ -21,11 +21,12 @@ import { useInternalDynamicContext } from '../../../context/DynamicContext/useDy
|
|
|
21
21
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
22
22
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
23
23
|
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import 'react-international-phone';
|
|
24
25
|
import 'viem/chains';
|
|
26
|
+
import '../../../config/ApiEndpoint.js';
|
|
25
27
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
26
28
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
27
|
-
import '../../../
|
|
28
|
-
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
29
|
+
import '../../../context/VerificationContext/VerificationContext.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import { useEmbeddedWallet } from '../../../utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js';
|
|
31
32
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
@@ -38,6 +39,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
38
39
|
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
39
40
|
import '../../../context/MockContext/MockContext.js';
|
|
40
41
|
import 'react-i18next';
|
|
42
|
+
import 'i18next';
|
|
41
43
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
42
44
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
45
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
@@ -49,7 +51,6 @@ import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWid
|
|
|
49
51
|
import 'react-focus-lock';
|
|
50
52
|
import '../../../context/LoadingContext/LoadingContext.js';
|
|
51
53
|
import '../../../context/WalletContext/WalletContext.js';
|
|
52
|
-
import 'i18next';
|
|
53
54
|
import 'qrcode';
|
|
54
55
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
56
|
import '../../../components/IconButton/IconButton.js';
|
|
@@ -69,10 +70,9 @@ import '../../../components/IsBrowser/IsBrowser.js';
|
|
|
69
70
|
import '../../../components/Popper/Popper/Popper.js';
|
|
70
71
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
71
72
|
import '../../WalletList/WalletList.js';
|
|
72
|
-
import '@hcaptcha/react-hcaptcha';
|
|
73
73
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
74
74
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
75
|
-
import 'react-
|
|
75
|
+
import '@hcaptcha/react-hcaptcha';
|
|
76
76
|
import '../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
77
77
|
|
|
78
78
|
const OnboardingUserDataForm = ({ children, userProfile, disableSubmit, }) => {
|
|
@@ -25,12 +25,14 @@ var index$1 = require('../../../shared/consts/index.cjs');
|
|
|
25
25
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
26
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
27
|
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
require('react-international-phone');
|
|
28
29
|
require('viem/chains');
|
|
30
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
29
31
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
32
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
31
|
-
require('../../../
|
|
32
|
-
require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
33
|
+
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
33
34
|
require('react-dom');
|
|
35
|
+
require('../../../context/WalletContext/WalletContext.cjs');
|
|
34
36
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
35
37
|
require('@dynamic-labs/types');
|
|
36
38
|
require('yup');
|
|
@@ -40,20 +42,19 @@ require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.c
|
|
|
40
42
|
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
41
43
|
require('@dynamic-labs/rpc-providers');
|
|
42
44
|
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('i18next');
|
|
46
|
+
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
43
47
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
44
48
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
45
49
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
46
50
|
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
47
51
|
require('../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
48
52
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
49
|
-
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
50
53
|
var Tooltip = require('../../../components/Tooltip/Tooltip.cjs');
|
|
51
54
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
52
55
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
56
|
require('react-focus-lock');
|
|
54
57
|
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
55
|
-
require('../../../context/WalletContext/WalletContext.cjs');
|
|
56
|
-
require('i18next');
|
|
57
58
|
require('qrcode');
|
|
58
59
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
60
|
require('../../../components/IconButton/IconButton.cjs');
|
|
@@ -72,10 +73,9 @@ require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
|
72
73
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
73
74
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
75
|
require('../../WalletList/WalletList.cjs');
|
|
75
|
-
require('@hcaptcha/react-hcaptcha');
|
|
76
76
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
77
77
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
78
|
-
require('react-
|
|
78
|
+
require('@hcaptcha/react-hcaptcha');
|
|
79
79
|
require('../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
80
80
|
var Select = require('../../../components/Select/Select.cjs');
|
|
81
81
|
|
|
@@ -21,12 +21,14 @@ import { tShirtSizes, teamNames, countryCodes } from '../../../shared/consts/ind
|
|
|
21
21
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
22
22
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
23
23
|
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import 'react-international-phone';
|
|
24
25
|
import 'viem/chains';
|
|
26
|
+
import '../../../config/ApiEndpoint.js';
|
|
25
27
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
26
28
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
27
|
-
import '../../../
|
|
28
|
-
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
29
|
+
import '../../../context/VerificationContext/VerificationContext.js';
|
|
29
30
|
import 'react-dom';
|
|
31
|
+
import '../../../context/WalletContext/WalletContext.js';
|
|
30
32
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
31
33
|
import '@dynamic-labs/types';
|
|
32
34
|
import 'yup';
|
|
@@ -36,20 +38,19 @@ import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js
|
|
|
36
38
|
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
37
39
|
import '@dynamic-labs/rpc-providers';
|
|
38
40
|
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import 'i18next';
|
|
42
|
+
import { Typography } from '../../../components/Typography/Typography.js';
|
|
39
43
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
40
44
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
41
45
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
42
46
|
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
43
47
|
import '../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
44
48
|
import '../../../context/FooterAnimationContext/index.js';
|
|
45
|
-
import { Typography } from '../../../components/Typography/Typography.js';
|
|
46
49
|
import { Tooltip } from '../../../components/Tooltip/Tooltip.js';
|
|
47
50
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
48
51
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
49
52
|
import 'react-focus-lock';
|
|
50
53
|
import '../../../context/LoadingContext/LoadingContext.js';
|
|
51
|
-
import '../../../context/WalletContext/WalletContext.js';
|
|
52
|
-
import 'i18next';
|
|
53
54
|
import 'qrcode';
|
|
54
55
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
56
|
import '../../../components/IconButton/IconButton.js';
|
|
@@ -68,10 +69,9 @@ import '../../../components/IsBrowser/IsBrowser.js';
|
|
|
68
69
|
import '../../../components/Popper/Popper/Popper.js';
|
|
69
70
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
70
71
|
import '../../WalletList/WalletList.js';
|
|
71
|
-
import '@hcaptcha/react-hcaptcha';
|
|
72
72
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
73
73
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
|
-
import 'react-
|
|
74
|
+
import '@hcaptcha/react-hcaptcha';
|
|
75
75
|
import '../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
76
76
|
import { Select } from '../../../components/Select/Select.js';
|
|
77
77
|
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs
CHANGED
|
@@ -26,12 +26,14 @@ require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
|
26
26
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
27
27
|
var createUserProfile = require('../../utils/functions/createUserProfile/createUserProfile.cjs');
|
|
28
28
|
require('@dynamic-labs/multi-wallet');
|
|
29
|
+
require('react-international-phone');
|
|
29
30
|
require('viem/chains');
|
|
31
|
+
require('../../config/ApiEndpoint.cjs');
|
|
30
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
33
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
32
|
-
require('../../
|
|
33
|
-
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
34
|
+
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
34
35
|
require('react-dom');
|
|
36
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
35
37
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
36
38
|
require('@dynamic-labs/types');
|
|
37
39
|
require('yup');
|
|
@@ -40,20 +42,19 @@ require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
40
42
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
41
43
|
require('@dynamic-labs/rpc-providers');
|
|
42
44
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('i18next');
|
|
46
|
+
var Typography = require('../../components/Typography/Typography.cjs');
|
|
43
47
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
44
48
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
45
49
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
46
50
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
47
51
|
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
48
52
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
49
|
-
var Typography = require('../../components/Typography/Typography.cjs');
|
|
50
53
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
51
54
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
52
55
|
require('react-focus-lock');
|
|
53
56
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
54
57
|
var Icon = require('../../components/Icon/Icon.cjs');
|
|
55
|
-
require('../../context/WalletContext/WalletContext.cjs');
|
|
56
|
-
require('i18next');
|
|
57
58
|
require('qrcode');
|
|
58
59
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
60
|
require('../../components/IconButton/IconButton.cjs');
|
|
@@ -71,13 +72,12 @@ require('../../components/Input/Input.cjs');
|
|
|
71
72
|
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
72
73
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
73
74
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
|
-
require('../WalletList/WalletList.cjs');
|
|
75
75
|
var OnboardingUserDataForm = require('../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs');
|
|
76
|
-
require('
|
|
77
|
-
var UserAvatar = require('../../components/UserAvatar/UserAvatar.cjs');
|
|
76
|
+
require('../WalletList/WalletList.cjs');
|
|
78
77
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
79
78
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
80
|
-
require('react-
|
|
79
|
+
require('@hcaptcha/react-hcaptcha');
|
|
80
|
+
var UserAvatar = require('../../components/UserAvatar/UserAvatar.cjs');
|
|
81
81
|
require('../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
82
82
|
|
|
83
83
|
const CollectUserDataViewLoginWithEmail = () => {
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js
CHANGED
|
@@ -22,12 +22,14 @@ import '../../context/CaptchaContext/CaptchaContext.js';
|
|
|
22
22
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
23
23
|
import { createUserProfile } from '../../utils/functions/createUserProfile/createUserProfile.js';
|
|
24
24
|
import '@dynamic-labs/multi-wallet';
|
|
25
|
+
import 'react-international-phone';
|
|
25
26
|
import 'viem/chains';
|
|
27
|
+
import '../../config/ApiEndpoint.js';
|
|
26
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
29
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
|
-
import '../../
|
|
29
|
-
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
30
|
+
import '../../context/VerificationContext/VerificationContext.js';
|
|
30
31
|
import 'react-dom';
|
|
32
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
31
33
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
32
34
|
import '@dynamic-labs/types';
|
|
33
35
|
import 'yup';
|
|
@@ -36,20 +38,19 @@ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
36
38
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
37
39
|
import '@dynamic-labs/rpc-providers';
|
|
38
40
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import 'i18next';
|
|
42
|
+
import { Typography } from '../../components/Typography/Typography.js';
|
|
39
43
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
40
44
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
41
45
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
42
46
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
43
47
|
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
44
48
|
import '../../context/FooterAnimationContext/index.js';
|
|
45
|
-
import { Typography } from '../../components/Typography/Typography.js';
|
|
46
49
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
47
50
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
51
|
import 'react-focus-lock';
|
|
49
52
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
50
53
|
import { Icon } from '../../components/Icon/Icon.js';
|
|
51
|
-
import '../../context/WalletContext/WalletContext.js';
|
|
52
|
-
import 'i18next';
|
|
53
54
|
import 'qrcode';
|
|
54
55
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
56
|
import '../../components/IconButton/IconButton.js';
|
|
@@ -67,13 +68,12 @@ import '../../components/Input/Input.js';
|
|
|
67
68
|
import '../../components/IsBrowser/IsBrowser.js';
|
|
68
69
|
import '../../components/Popper/Popper/Popper.js';
|
|
69
70
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
70
|
-
import '../WalletList/WalletList.js';
|
|
71
71
|
import { OnboardingUserDataForm } from '../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js';
|
|
72
|
-
import '
|
|
73
|
-
import { UserAvatar } from '../../components/UserAvatar/UserAvatar.js';
|
|
72
|
+
import '../WalletList/WalletList.js';
|
|
74
73
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
75
74
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
76
|
-
import 'react-
|
|
75
|
+
import '@hcaptcha/react-hcaptcha';
|
|
76
|
+
import { UserAvatar } from '../../components/UserAvatar/UserAvatar.js';
|
|
77
77
|
import '../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
78
78
|
|
|
79
79
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
|
+
require('../../../events/dynamicEvents.cjs');
|
|
11
|
+
require('@dynamic-labs/utils');
|
|
12
|
+
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
13
|
+
require('@dynamic-labs/sdk-api');
|
|
14
|
+
require('../../../shared/logger.cjs');
|
|
15
|
+
require('@dynamic-labs/iconic');
|
|
16
|
+
require('../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
var check = require('../../../shared/assets/check.cjs');
|
|
18
|
+
var close = require('../../../shared/assets/close.cjs');
|
|
19
|
+
var copy = require('../../../shared/assets/copy.cjs');
|
|
20
|
+
var passwordHero = require('../../../shared/assets/password-hero.cjs');
|
|
21
|
+
require('@dynamic-labs/wallet-book');
|
|
22
|
+
require('../../../utils/constants/colors.cjs');
|
|
23
|
+
require('../../../utils/constants/values.cjs');
|
|
24
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
25
|
+
require('viem');
|
|
26
|
+
var validatePassword = require('../../../shared/utils/functions/validatePassword/validatePassword.cjs');
|
|
27
|
+
require('../../../shared/consts/index.cjs');
|
|
28
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
29
|
+
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
30
|
+
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
31
|
+
require('@dynamic-labs/multi-wallet');
|
|
32
|
+
require('react-international-phone');
|
|
33
|
+
require('viem/chains');
|
|
34
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
35
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
37
|
+
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
38
|
+
require('react-dom');
|
|
39
|
+
require('../../../context/WalletContext/WalletContext.cjs');
|
|
40
|
+
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
41
|
+
require('@dynamic-labs/types');
|
|
42
|
+
require('yup');
|
|
43
|
+
require('../../../context/MockContext/MockContext.cjs');
|
|
44
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
45
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
46
|
+
require('@dynamic-labs/rpc-providers');
|
|
47
|
+
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
48
|
+
require('i18next');
|
|
49
|
+
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
50
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
51
|
+
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
52
|
+
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
53
|
+
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
54
|
+
require('../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
55
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
56
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
57
|
+
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
|
+
require('react-focus-lock');
|
|
59
|
+
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
60
|
+
require('qrcode');
|
|
61
|
+
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
62
|
+
var IconButton = require('../../../components/IconButton/IconButton.cjs');
|
|
63
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
64
|
+
var ErrorContainer = require('../../../components/ErrorContainer/ErrorContainer.cjs');
|
|
65
|
+
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
66
|
+
require('formik');
|
|
67
|
+
var Button = require('../../../components/Button/Button.cjs');
|
|
68
|
+
var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
|
|
69
|
+
require('../../../components/Alert/Alert.cjs');
|
|
70
|
+
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
71
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
72
|
+
require('../../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
73
|
+
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
74
|
+
var CopyButton = require('../../../components/CopyButton/CopyButton.cjs');
|
|
75
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
76
|
+
var Input = require('../../../components/Input/Input.cjs');
|
|
77
|
+
require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
78
|
+
var TextButton = require('../../../components/TextButton/TextButton.cjs');
|
|
79
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
80
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
81
|
+
require('../../WalletList/WalletList.cjs');
|
|
82
|
+
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
83
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
84
|
+
require('@hcaptcha/react-hcaptcha');
|
|
85
|
+
require('../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
86
|
+
var ToggleVisibilityButton = require('../../../components/ToggleVisibilityButton/ToggleVisibilityButton.cjs');
|
|
87
|
+
|
|
88
|
+
const CreatePasswordStep = ({ password, setPassword, currentPassword, setCurrentPassword, onContinue, isChangingPassword, onClose, onLogout, }) => {
|
|
89
|
+
const { primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
90
|
+
const [currentPasswordInputType, setCurrentPasswordInputType] = React.useState('password');
|
|
91
|
+
const [passwordInputType, setPasswordInputType] = React.useState('password');
|
|
92
|
+
const intialPasswordStrength = validatePassword.validatePassword(password).strength;
|
|
93
|
+
const [passwordStrength, setPasswordStrength] = React.useState(intialPasswordStrength);
|
|
94
|
+
const [confirmPassword, setConfirmPassword] = React.useState('');
|
|
95
|
+
const [confirmPasswordInputType, setConfirmPasswordInputType] = React.useState('password');
|
|
96
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
97
|
+
const [error, setError] = React.useState('');
|
|
98
|
+
const { t } = reactI18next.useTranslation();
|
|
99
|
+
const canContinue = Boolean((password === null || password === void 0 ? void 0 : password.length) >= 6 &&
|
|
100
|
+
passwordStrength >= 5 &&
|
|
101
|
+
confirmPassword === password &&
|
|
102
|
+
(!isChangingPassword || currentPassword));
|
|
103
|
+
const closeButton = onClose && (jsxRuntime.jsx(IconButton.IconButton, { onClick: () => onClose(), type: 'button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
104
|
+
const inputSuffix = (inputType, setInputType, includeCopy = true) => (jsxRuntime.jsxs("div", { className: 'create-password__password-input__suffix', children: [includeCopy && (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(CopyButton.CopyButton, { textToCopy: password, copykey: 'dyn_qr_code.copy_button', className: 'create-password__password-input__suffix__icon', children: jsxRuntime.jsx(copy.ReactComponent, { className: 'create-password__password-input__suffix__icon', onClick: (e) => {
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
} }) }) })), jsxRuntime.jsx(ToggleVisibilityButton.ToggleVisibilityButton, { initialState: inputType === 'password', onClick: (hidden) => setInputType(hidden ? 'password' : 'text'), className: 'create-password__password-input__suffix__icon' })] }));
|
|
107
|
+
const handleChangePassword = (e) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
const connector = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector;
|
|
110
|
+
if (isChangingPassword && walletConnectorCore.isCoinbaseMpcWalletConnector(connector)) {
|
|
111
|
+
setIsLoading(true);
|
|
112
|
+
try {
|
|
113
|
+
const isValid = yield connector.validatePasscode(currentPassword);
|
|
114
|
+
if (!isValid) {
|
|
115
|
+
setError(t('dyn_create_password.errors.invalid_current_password'));
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
setError(t('dyn_create_password.errors.error_changing_password'));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
finally {
|
|
124
|
+
setIsLoading(false);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (canContinue) {
|
|
128
|
+
onContinue();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
const onCreatePasswordInputChange = (e) => {
|
|
132
|
+
const newPassword = e.target.value;
|
|
133
|
+
const { strength } = validatePassword.validatePassword(newPassword);
|
|
134
|
+
setPasswordStrength(strength);
|
|
135
|
+
setPassword(newPassword);
|
|
136
|
+
if (!isChangingPassword && !(newPassword === null || newPassword === void 0 ? void 0 : newPassword.length)) {
|
|
137
|
+
setError('');
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const onConfirmPasswordInputChange = (e) => {
|
|
141
|
+
const newPassword = e.target.value;
|
|
142
|
+
if (newPassword !== password) {
|
|
143
|
+
setError(t('dyn_create_password.errors.password_mismatch'));
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
setError('');
|
|
147
|
+
}
|
|
148
|
+
setConfirmPassword(newPassword);
|
|
149
|
+
};
|
|
150
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_create_password.title', children: isChangingPassword
|
|
151
|
+
? t('dyn_create_password.title.update')
|
|
152
|
+
: t('dyn_create_password.title.create') }) }), jsxRuntime.jsx("div", { className: 'create-password', children: jsxRuntime.jsxs("form", { className: 'create-password__body', "data-testid": 'create-password-form', onSubmit: handleChangePassword, children: [jsxRuntime.jsxs("div", { className: 'create-password__body__header', children: [jsxRuntime.jsx(passwordHero.ReactComponent, {}), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_create_password.description') })] }), error && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: error }), isChangingPassword && (jsxRuntime.jsx(Input.Input, { id: 'current-password', placeholder: t('dyn_create_password.current_password_input.placeholder'), type: currentPasswordInputType, suffix: inputSuffix(currentPasswordInputType, setCurrentPasswordInputType, false), label: t('dyn_create_password.current_password_input.label'), value: currentPassword, onChange: (e) => setCurrentPassword(e.target.value), autoFocus: true, copykey: 'dyn_create_password.current_password_input' })), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(Input.Input, { id: 'password', placeholder: isChangingPassword
|
|
153
|
+
? t('dyn_create_password.update_input.placeholder')
|
|
154
|
+
: t('dyn_create_password.create_input.placeholder'), type: passwordInputType, suffix: inputSuffix(passwordInputType, setPasswordInputType), label: isChangingPassword
|
|
155
|
+
? t('dyn_create_password.update_input.label')
|
|
156
|
+
: t('dyn_create_password.create_input.label'), value: password, onChange: onCreatePasswordInputChange, autoFocus: Boolean(!isChangingPassword), copykey: 'dyn_create_password.create_input' }) }), password.length >= 1 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: 'create-password__body__card', children: validatePassword.validatePassword(password).securityCriteria.map((criteria) => (jsxRuntime.jsxs("div", { className: `create-password__password-criteria-list ${criteria.value
|
|
157
|
+
? 'create-password__password-criteria-list__success'
|
|
158
|
+
: 'create-password__password-criteria-list__error'}`, children: [jsxRuntime.jsx("div", { children: criteria.value ? (jsxRuntime.jsx(check.ReactComponent, { className: 'create-password__password-criteria-icon' })) : (jsxRuntime.jsx(close.ReactComponent, { className: 'create-password__password-criteria-icon' })) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', children: criteria.description })] }, criteria.key))) }), jsxRuntime.jsx(Input.Input, { id: 'confirm-password', placeholder: t('dyn_create_password.confirm_input.placeholder'), type: confirmPasswordInputType, suffix: inputSuffix(confirmPasswordInputType, setConfirmPasswordInputType, false), label: t('dyn_create_password.confirm_input.label'), value: confirmPassword, onChange: onConfirmPasswordInputChange, copykey: 'dyn_create_password.confirm_input' })] })), jsxRuntime.jsx(Button.Button, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
|
|
159
|
+
color: 'inherit',
|
|
160
|
+
}, disabled: !canContinue, copykey: 'dyn_create_password.continue', type: 'submit', loading: isLoading, children: t('dyn_create_password.continue') }), onLogout && (jsxRuntime.jsx(TextButton.TextButton, { className: 'create-password__log-out', onClick: onLogout, copykey: 'dyn_create_password.logout', children: t('dyn_create_password.logout') }))] }) })] }));
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
exports.CreatePasswordStep = CreatePasswordStep;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
|
2
|
+
export type CreatePasswordStepProps = {
|
|
3
|
+
password: string;
|
|
4
|
+
setPassword: Dispatch<SetStateAction<string>>;
|
|
5
|
+
currentPassword: string;
|
|
6
|
+
setCurrentPassword: Dispatch<SetStateAction<string>>;
|
|
7
|
+
onContinue: () => void;
|
|
8
|
+
isChangingPassword?: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
onLogout?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const CreatePasswordStep: FC<CreatePasswordStepProps>;
|