@dynamic-labs/sdk-react-core 2.0.0-alpha.5 → 2.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/package.cjs +5 -5
- package/package.js +5 -5
- package/package.json +17 -17
- package/src/index.cjs +24 -22
- package/src/index.d.ts +1 -2
- package/src/index.js +14 -11
- package/src/lib/Main.cjs +2 -2
- package/src/lib/Main.js +2 -2
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +5 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +5 -5
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/Alert/Alert.types.d.ts +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +5 -5
- package/src/lib/components/AnimatePresence/AnimatePresence.js +5 -5
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +5 -5
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +5 -5
- package/src/lib/components/Captcha/Captcha.cjs +4 -4
- package/src/lib/components/Captcha/Captcha.js +4 -4
- package/src/lib/components/Divider/Divider.cjs +4 -4
- package/src/lib/components/Divider/Divider.js +4 -4
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +5 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +5 -5
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +5 -5
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +5 -5
- package/src/lib/components/LogoutButton/LogoutButton.cjs +5 -5
- package/src/lib/components/LogoutButton/LogoutButton.js +5 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +5 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +5 -5
- package/src/lib/components/Modal/Modal.cjs +5 -5
- package/src/lib/components/Modal/Modal.js +5 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +5 -5
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +10 -8
- package/src/lib/components/NetworkPicker/NetworkPicker.js +10 -8
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +5 -5
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +5 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +4 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.js +4 -4
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +3 -3
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +3 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +4 -4
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +4 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +5 -5
- package/src/lib/components/OverlayCard/OverlayCard.js +5 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +5 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +5 -5
- package/src/lib/components/PhoneIcon/PhoneIcon.cjs +14 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.js +10 -0
- package/src/lib/components/Portal/Portal.cjs +5 -5
- package/src/lib/components/Portal/Portal.js +5 -5
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +5 -5
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +5 -5
- package/src/lib/components/RenderView/RenderView.cjs +5 -5
- package/src/lib/components/RenderView/RenderView.js +5 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +5 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +5 -5
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +5 -5
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +5 -5
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +7 -5
- package/src/lib/components/ShadowDOM/ShadowDOM.js +7 -6
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +5 -5
- package/src/lib/components/SocialSignIn/SocialSignIn.js +5 -5
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +31 -15
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +32 -16
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +94 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +90 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +5 -5
- package/src/lib/components/Toolkit/Toolkit.js +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +5 -5
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +5 -5
- package/src/lib/components/Tooltip/Tooltip.cjs +5 -5
- package/src/lib/components/Tooltip/Tooltip.js +5 -5
- package/src/lib/components/TosAndPp/TosAndPp.cjs +5 -5
- package/src/lib/components/TosAndPp/TosAndPp.js +5 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +5 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +5 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +5 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +5 -5
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +5 -5
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +5 -5
- package/src/lib/components/UserAddress/UserAddress.cjs +6 -6
- package/src/lib/components/UserAddress/UserAddress.js +6 -6
- package/src/lib/components/UserProfile/UserProfile.cjs +5 -5
- package/src/lib/components/UserProfile/UserProfile.js +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +5 -5
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +4 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +4 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +5 -5
- package/src/lib/components/UserProfileForm/UserProfileForm.js +5 -5
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +5 -5
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +5 -5
- package/src/lib/context/DynamicContext/DynamicContext.cjs +23 -22
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +4 -4
- package/src/lib/context/DynamicContext/DynamicContext.js +24 -23
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +10 -0
- package/src/lib/context/DynamicContext/helpers/helpers.d.ts +5 -0
- package/src/lib/context/DynamicContext/helpers/helpers.js +10 -1
- package/src/lib/context/DynamicContext/helpers/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +5 -5
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +5 -5
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +5 -4
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +8 -6
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +5 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +5 -5
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +5 -5
- package/src/lib/context/DynamicContext/types/index.d.ts +14 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +5 -5
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +5 -5
- package/src/lib/context/ErrorContext/ErrorContext.cjs +4 -0
- package/src/lib/context/ErrorContext/ErrorContext.d.ts +1 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +4 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +7 -5
- package/src/lib/context/FundingContext/FundingContext.js +7 -5
- package/src/lib/context/LoadingContext/LoadingContext.cjs +4 -4
- package/src/lib/context/LoadingContext/LoadingContext.js +4 -4
- package/src/lib/context/MockContext/MockContext.cjs +6 -6
- package/src/lib/context/MockContext/MockContext.js +6 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +6 -5
- package/src/lib/context/PasskeyContext/PasskeyContext.js +6 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +5 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +5 -5
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +5 -5
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +5 -5
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +5 -5
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -5
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +5 -5
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +5 -5
- package/src/lib/context/VerificationContext/VerificationContext.cjs +8 -5
- package/src/lib/context/VerificationContext/VerificationContext.d.ts +20 -2
- package/src/lib/context/VerificationContext/VerificationContext.js +8 -5
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -0
- package/src/lib/context/ViewContext/ViewContext.js +7 -0
- package/src/lib/context/ViewContext/types/index.d.ts +5 -3
- package/src/lib/context/WalletContext/WalletContext.cjs +5 -5
- package/src/lib/context/WalletContext/WalletContext.js +5 -5
- package/src/lib/data/api.cjs +70 -20
- package/src/lib/data/api.d.ts +37 -10
- package/src/lib/data/api.js +68 -20
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +5 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +3 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +3 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +3 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +3 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +5 -5
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +5 -5
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +4 -4
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +4 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +4 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +4 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +4 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +4 -4
- package/src/lib/locale/en/translation.cjs +158 -4
- package/src/lib/locale/en/translation.d.ts +156 -2
- package/src/lib/locale/en/translation.js +158 -4
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +81 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +77 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +87 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +3 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +83 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +5 -0
- package/src/lib/modals/CreatePasswordModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +4 -4
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +4 -4
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +87 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +83 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +4 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +4 -4
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -3
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +3 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +3 -3
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/download.cjs +53 -0
- package/src/lib/shared/assets/download.js +29 -0
- package/src/lib/shared/assets/index.d.ts +3 -0
- package/src/lib/shared/assets/save-password-hero.cjs +127 -0
- package/src/lib/shared/assets/save-password-hero.js +103 -0
- package/src/lib/shared/assets/wallet-claim-hero.cjs +127 -0
- package/src/lib/shared/assets/wallet-claim-hero.js +103 -0
- package/src/lib/shared/types/localStorage.d.ts +1 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +10 -28
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +1 -5
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +10 -28
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +1 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +1 -3
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +1 -1
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
- package/src/lib/utils/functions/index.d.ts +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
- package/src/lib/utils/functions/mergeNetworks/index.d.ts +1 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.cjs +26 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.d.ts +13 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.js +22 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +9 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +7 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +7 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +6 -5
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +6 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +5 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +5 -5
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +9 -13
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +9 -13
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +4 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +4 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +9 -7
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +9 -7
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +5 -5
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +5 -5
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs +59 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.js +55 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +5 -5
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +5 -5
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +5 -5
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +5 -5
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +6 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +6 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +6 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +6 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +5 -5
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +5 -5
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +8 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +8 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +37 -12
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +37 -12
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +9 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +9 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +33 -9
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +33 -9
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +5 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +5 -5
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +30 -36
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +31 -37
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +15 -20
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +16 -21
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +2 -6
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +2 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +5 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +5 -5
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +6 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +6 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +5 -5
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +5 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +5 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +5 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +5 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +5 -5
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +5 -5
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +5 -5
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +4 -4
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +4 -4
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +1 -1
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +1 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +20 -54
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts +5 -3
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +20 -54
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +4 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +4 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.cjs +5 -5
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.js +5 -5
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +38 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.d.ts +2 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +34 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +5 -4
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +5 -4
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +12 -15
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +12 -15
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +5 -5
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +5 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +8 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +8 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +5 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +5 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -8
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -9
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +7 -6
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +7 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +5 -5
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +5 -5
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +4 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +4 -7
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +4 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +4 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +46 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +46 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +5 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +5 -5
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +6 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +6 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +6 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +6 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +4 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +4 -4
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +97 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +2 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +93 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +5 -5
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +5 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +6 -11
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +6 -11
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +4 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +4 -4
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs} +11 -10
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.d.ts +13 -0
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js} +11 -10
- package/src/lib/views/CollectUserDataViewNoWallet/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +178 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +174 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +150 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +9 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +146 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +126 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +122 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/index.d.ts +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +6 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.js +6 -5
- package/src/lib/views/EmailVerification/EmailVerification.cjs +16 -23
- package/src/lib/views/EmailVerification/EmailVerification.js +16 -23
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +4 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +4 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +45 -18
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +45 -18
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +1 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +122 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +118 -0
- package/src/lib/views/LoginView/LoginView.cjs +5 -5
- package/src/lib/views/LoginView/LoginView.js +5 -5
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +4 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +4 -4
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +6 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +6 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.cjs → checkIfNumberHasError/checkIfNumberHasError.cjs} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.d.ts → checkIfNumberHasError/checkIfNumberHasError.d.ts} +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/{checkPhoneNumberForError/checkPhoneNumberForError.js → checkIfNumberHasError/checkIfNumberHasError.js} +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkIfNumberHasError/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.cjs +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.d.ts +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.js +8 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +114 -14
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.d.ts +1 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +114 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +3 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +5 -5
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +5 -5
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +4 -4
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +3 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +3 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +4 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +5 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +5 -5
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +16 -10
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +16 -10
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +7 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +7 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +6 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +6 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +3 -3
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +3 -3
- package/src/lib/views/NoAccess/NoAccess.cjs +6 -6
- package/src/lib/views/NoAccess/NoAccess.js +6 -6
- package/src/lib/views/NoAccess/useNoAccessText.cjs +5 -5
- package/src/lib/views/NoAccess/useNoAccessText.js +5 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +4 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +4 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +4 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +2 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +4 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +3 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +3 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +3 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +3 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +5 -5
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +4 -4
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +4 -3
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +4 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +4 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +4 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +6 -6
- package/src/lib/views/QrCodeView/QRCode.js +6 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +4 -4
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +4 -4
- package/src/lib/views/QrCodeView/QrCodeView.cjs +5 -5
- package/src/lib/views/QrCodeView/QrCodeView.js +5 -5
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +6 -6
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +6 -6
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +4 -4
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +4 -4
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +6 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.js +6 -6
- package/src/lib/views/SmsVerification/SmsVerification.cjs +15 -0
- package/src/lib/views/SmsVerification/SmsVerification.d.ts +2 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +11 -0
- package/src/lib/views/SmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +191 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.d.ts +10 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +187 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +4 -4
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +4 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +4 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +4 -4
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +6 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +6 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +6 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +6 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +5 -5
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +5 -5
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +5 -5
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +5 -5
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +4 -4
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +4 -4
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +8 -8
- package/src/lib/views/WalletGroupView/WalletGroupView.js +8 -8
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +4 -4
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +4 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +4 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +4 -4
- package/src/lib/views/WalletList/WalletList.cjs +4 -4
- package/src/lib/views/WalletList/WalletList.js +4 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +4 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +4 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +4 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +4 -4
- package/src/lib/views/WalletList/hooks/useTabState.cjs +5 -5
- package/src/lib/views/WalletList/hooks/useTabState.js +5 -5
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +4 -4
- package/src/lib/views/WalletLockedView/WalletLockedView.js +4 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +4 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +4 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +5 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +5 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.js +7 -6
- package/src/lib/views/index.d.ts +6 -6
- package/src/lib/views/viewToComponentMap.cjs +28 -24
- package/src/lib/views/viewToComponentMap.d.ts +60 -2
- package/src/lib/views/viewToComponentMap.js +28 -24
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +5 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +2 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +2 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +5 -5
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +5 -5
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +5 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -6
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +11 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +11 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -7
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +6 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +7 -19
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +7 -19
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +8 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +6 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +6 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +4 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -3
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +22 -13
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +22 -13
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +5 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -3
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.cjs +0 -55
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.d.ts +0 -11
- package/src/lib/context/DynamicContext/helpers/initRefreshAuth/initRefreshAuth.js +0 -50
- package/src/lib/context/PhoneNumberContext/PhoneNumberContext.d.ts +0 -14
- package/src/lib/context/PhoneNumberContext/index.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/index.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.cjs +0 -9
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +0 -5
- package/src/lib/utils/functions/updateUserInfo/index.d.ts +0 -1
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.cjs +0 -18
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.d.ts +0 -1
- package/src/lib/utils/functions/updateUserInfo/updateUserInfo.js +0 -14
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -16
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -2
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -12
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.d.ts +0 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/index.d.ts +0 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/index.d.ts +0 -1
|
@@ -21,9 +21,9 @@ 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 '../../../config/ApiEndpoint.js';
|
|
25
24
|
import 'react-international-phone';
|
|
26
25
|
import 'viem/chains';
|
|
26
|
+
import '../../../config/ApiEndpoint.js';
|
|
27
27
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
28
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
29
|
import '../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -39,6 +39,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
39
39
|
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
40
40
|
import '../../../context/MockContext/MockContext.js';
|
|
41
41
|
import 'react-i18next';
|
|
42
|
+
import 'i18next';
|
|
42
43
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
44
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
44
45
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
@@ -50,7 +51,6 @@ import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWid
|
|
|
50
51
|
import 'react-focus-lock';
|
|
51
52
|
import '../../../context/LoadingContext/LoadingContext.js';
|
|
52
53
|
import '../../../context/WalletContext/WalletContext.js';
|
|
53
|
-
import 'i18next';
|
|
54
54
|
import 'qrcode';
|
|
55
55
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
56
|
import '../../../components/IconButton/IconButton.js';
|
|
@@ -70,9 +70,9 @@ import '../../../components/IsBrowser/IsBrowser.js';
|
|
|
70
70
|
import '../../../components/Popper/Popper/Popper.js';
|
|
71
71
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
72
72
|
import '../../WalletList/WalletList.js';
|
|
73
|
-
import '@hcaptcha/react-hcaptcha';
|
|
74
73
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
75
74
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
75
|
+
import '@hcaptcha/react-hcaptcha';
|
|
76
76
|
import '../../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
77
77
|
|
|
78
78
|
const OnboardingUserDataForm = ({ children, userProfile, disableSubmit, }) => {
|
|
@@ -102,14 +102,9 @@ const OnboardingUserDataForm = ({ children, userProfile, disableSubmit, }) => {
|
|
|
102
102
|
setShowAuthFlow(false);
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
yield createEmbeddedWallet();
|
|
109
|
-
}
|
|
110
|
-
catch (e) {
|
|
111
|
-
setShowAuthFlow(false);
|
|
112
|
-
}
|
|
105
|
+
// this function will check turnkey wallet enabled and create wallet if needed
|
|
106
|
+
// if not enabled, it will throw an error.
|
|
107
|
+
yield createEmbeddedWallet().catch(() => setShowAuthFlow(false));
|
|
113
108
|
}), [
|
|
114
109
|
updateUser,
|
|
115
110
|
setCallback,
|
|
@@ -25,9 +25,9 @@ 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('../../../config/ApiEndpoint.cjs');
|
|
29
28
|
require('react-international-phone');
|
|
30
29
|
require('viem/chains');
|
|
30
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
31
31
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
32
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
33
|
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -42,19 +42,19 @@ require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.c
|
|
|
42
42
|
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
43
43
|
require('@dynamic-labs/rpc-providers');
|
|
44
44
|
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('i18next');
|
|
46
|
+
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
45
47
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
48
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
47
49
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
48
50
|
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
49
51
|
require('../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
50
52
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
51
|
-
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
52
53
|
var Tooltip = require('../../../components/Tooltip/Tooltip.cjs');
|
|
53
54
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
55
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
55
56
|
require('react-focus-lock');
|
|
56
57
|
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
57
|
-
require('i18next');
|
|
58
58
|
require('qrcode');
|
|
59
59
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
60
|
require('../../../components/IconButton/IconButton.cjs');
|
|
@@ -73,9 +73,9 @@ require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
|
73
73
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
74
74
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
75
75
|
require('../../WalletList/WalletList.cjs');
|
|
76
|
-
require('@hcaptcha/react-hcaptcha');
|
|
77
76
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
78
77
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
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,9 +21,9 @@ 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 '../../../config/ApiEndpoint.js';
|
|
25
24
|
import 'react-international-phone';
|
|
26
25
|
import 'viem/chains';
|
|
26
|
+
import '../../../config/ApiEndpoint.js';
|
|
27
27
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
28
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
29
|
import '../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -38,19 +38,19 @@ import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js
|
|
|
38
38
|
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
39
39
|
import '@dynamic-labs/rpc-providers';
|
|
40
40
|
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import 'i18next';
|
|
42
|
+
import { Typography } from '../../../components/Typography/Typography.js';
|
|
41
43
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
42
44
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
45
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
44
46
|
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
45
47
|
import '../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
46
48
|
import '../../../context/FooterAnimationContext/index.js';
|
|
47
|
-
import { Typography } from '../../../components/Typography/Typography.js';
|
|
48
49
|
import { Tooltip } from '../../../components/Tooltip/Tooltip.js';
|
|
49
50
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
51
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
51
52
|
import 'react-focus-lock';
|
|
52
53
|
import '../../../context/LoadingContext/LoadingContext.js';
|
|
53
|
-
import 'i18next';
|
|
54
54
|
import 'qrcode';
|
|
55
55
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
56
|
import '../../../components/IconButton/IconButton.js';
|
|
@@ -69,9 +69,9 @@ import '../../../components/IsBrowser/IsBrowser.js';
|
|
|
69
69
|
import '../../../components/Popper/Popper/Popper.js';
|
|
70
70
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
71
71
|
import '../../WalletList/WalletList.js';
|
|
72
|
-
import '@hcaptcha/react-hcaptcha';
|
|
73
72
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
74
73
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
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
|
|
|
@@ -26,9 +26,9 @@ 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('../../config/ApiEndpoint.cjs');
|
|
30
29
|
require('react-international-phone');
|
|
31
30
|
require('viem/chains');
|
|
31
|
+
require('../../config/ApiEndpoint.cjs');
|
|
32
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
34
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -42,19 +42,19 @@ require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
42
42
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
43
43
|
require('@dynamic-labs/rpc-providers');
|
|
44
44
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('i18next');
|
|
46
|
+
var Typography = require('../../components/Typography/Typography.cjs');
|
|
45
47
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
48
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
47
49
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
48
50
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
49
51
|
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
50
52
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
51
|
-
var Typography = require('../../components/Typography/Typography.cjs');
|
|
52
53
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
54
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
55
|
require('react-focus-lock');
|
|
55
56
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
56
57
|
var Icon = require('../../components/Icon/Icon.cjs');
|
|
57
|
-
require('i18next');
|
|
58
58
|
require('qrcode');
|
|
59
59
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
60
|
require('../../components/IconButton/IconButton.cjs');
|
|
@@ -72,24 +72,25 @@ require('../../components/Input/Input.cjs');
|
|
|
72
72
|
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
73
73
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
74
74
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
75
|
-
require('../WalletList/WalletList.cjs');
|
|
76
75
|
var OnboardingUserDataForm = require('../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs');
|
|
77
|
-
require('
|
|
78
|
-
var UserAvatar = require('../../components/UserAvatar/UserAvatar.cjs');
|
|
76
|
+
require('../WalletList/WalletList.cjs');
|
|
79
77
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
80
78
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
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
|
-
const
|
|
83
|
+
const CollectUserDataViewNoWallet = ({ userIdentification, userIdentificationOverride }) => {
|
|
84
|
+
var _a;
|
|
84
85
|
const { appName, handleLogOut, projectSettings, onboardingImageUrl, decodedOnboardingOnlyToken, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
85
86
|
const { t } = reactI18next.useTranslation();
|
|
86
87
|
if (!decodedOnboardingOnlyToken) {
|
|
87
88
|
return null;
|
|
88
89
|
}
|
|
89
90
|
const userProfile = createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
90
|
-
return (jsxRuntime.jsxs("div", { className: 'collect-user-data-login-
|
|
91
|
+
return (jsxRuntime.jsxs("div", { className: 'collect-user-data-login-no-wallet', "data-testid": 'collect-user-data-login-no-wallet', children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data-login-no-wallet__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-no-wallet__user-info-container', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-no-wallet__icon-container', children: jsxRuntime.jsx(UserAvatar.UserAvatar, { user: userProfile }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-no-wallet__user-identification', children: (_a = userIdentificationOverride !== null && userIdentificationOverride !== void 0 ? userIdentificationOverride : userProfile[userIdentification]) !== null && _a !== void 0 ? _a : 'My profile' })] }), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-no-wallet__form', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-no-wallet__success-icon', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'large', children: jsxRuntime.jsx(checkConnection.ReactComponent, {}) }) }), jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, { userProfile: userProfile, children: jsxRuntime.jsxs("div", { className: 'collect-user-data-login-no-wallet__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-no-wallet__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
|
|
91
92
|
t('dyn_collect_user_data.greeting', { appName }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
|
|
92
|
-
t('dyn_collect_user_data.description') })] }) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data-login-
|
|
93
|
+
t('dyn_collect_user_data.description') })] }) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data-login-no-wallet__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
|
|
93
94
|
};
|
|
94
95
|
|
|
95
|
-
exports.
|
|
96
|
+
exports.CollectUserDataViewNoWallet = CollectUserDataViewNoWallet;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UserProfile } from '../../shared';
|
|
3
|
+
type CollectUserDataViewNoWalletProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Which user field we should display as the user's identification.
|
|
6
|
+
* Ex: we can show his email when logging in with email or number when logging through sms.
|
|
7
|
+
*/
|
|
8
|
+
userIdentification: keyof UserProfile;
|
|
9
|
+
/** When passed, is shown instead of a user profile field as the user identification. */
|
|
10
|
+
userIdentificationOverride?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const CollectUserDataViewNoWallet: FC<CollectUserDataViewNoWalletProps>;
|
|
13
|
+
export {};
|
|
@@ -22,9 +22,9 @@ 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 '../../config/ApiEndpoint.js';
|
|
26
25
|
import 'react-international-phone';
|
|
27
26
|
import 'viem/chains';
|
|
27
|
+
import '../../config/ApiEndpoint.js';
|
|
28
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
30
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
@@ -38,19 +38,19 @@ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
38
38
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
39
39
|
import '@dynamic-labs/rpc-providers';
|
|
40
40
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import 'i18next';
|
|
42
|
+
import { Typography } from '../../components/Typography/Typography.js';
|
|
41
43
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
42
44
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
45
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
44
46
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
45
47
|
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
46
48
|
import '../../context/FooterAnimationContext/index.js';
|
|
47
|
-
import { Typography } from '../../components/Typography/Typography.js';
|
|
48
49
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
50
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
51
|
import 'react-focus-lock';
|
|
51
52
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
52
53
|
import { Icon } from '../../components/Icon/Icon.js';
|
|
53
|
-
import 'i18next';
|
|
54
54
|
import 'qrcode';
|
|
55
55
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
56
|
import '../../components/IconButton/IconButton.js';
|
|
@@ -68,24 +68,25 @@ import '../../components/Input/Input.js';
|
|
|
68
68
|
import '../../components/IsBrowser/IsBrowser.js';
|
|
69
69
|
import '../../components/Popper/Popper/Popper.js';
|
|
70
70
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
71
|
-
import '../WalletList/WalletList.js';
|
|
72
71
|
import { OnboardingUserDataForm } from '../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js';
|
|
73
|
-
import '
|
|
74
|
-
import { UserAvatar } from '../../components/UserAvatar/UserAvatar.js';
|
|
72
|
+
import '../WalletList/WalletList.js';
|
|
75
73
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
76
74
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
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
|
-
const
|
|
79
|
+
const CollectUserDataViewNoWallet = ({ userIdentification, userIdentificationOverride }) => {
|
|
80
|
+
var _a;
|
|
80
81
|
const { appName, handleLogOut, projectSettings, onboardingImageUrl, decodedOnboardingOnlyToken, } = useInternalDynamicContext();
|
|
81
82
|
const { t } = useTranslation();
|
|
82
83
|
if (!decodedOnboardingOnlyToken) {
|
|
83
84
|
return null;
|
|
84
85
|
}
|
|
85
86
|
const userProfile = createUserProfile(decodedOnboardingOnlyToken);
|
|
86
|
-
return (jsxs("div", { className: 'collect-user-data-login-
|
|
87
|
+
return (jsxs("div", { className: 'collect-user-data-login-no-wallet', "data-testid": 'collect-user-data-login-no-wallet', children: [onboardingImageUrl && (jsx("img", { className: 'collect-user-data-login-no-wallet__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxs("div", { className: 'collect-user-data-login-no-wallet__user-info-container', children: [jsx("div", { className: 'collect-user-data-login-no-wallet__icon-container', children: jsx(UserAvatar, { user: userProfile }) }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-no-wallet__user-identification', children: (_a = userIdentificationOverride !== null && userIdentificationOverride !== void 0 ? userIdentificationOverride : userProfile[userIdentification]) !== null && _a !== void 0 ? _a : 'My profile' })] }), jsxs("div", { className: 'collect-user-data-login-no-wallet__form', children: [jsx("div", { className: 'collect-user-data-login-no-wallet__success-icon', children: jsx(Icon, { color: 'text-primary', size: 'large', children: jsx(SvgCheckConnection, {}) }) }), jsx(OnboardingUserDataForm, { userProfile: userProfile, children: jsxs("div", { className: 'collect-user-data-login-no-wallet__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-no-wallet__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
|
|
87
88
|
t('dyn_collect_user_data.greeting', { appName }) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
|
|
88
|
-
t('dyn_collect_user_data.description') })] }) }), jsx(TextButton, { className: 'collect-user-data-login-
|
|
89
|
+
t('dyn_collect_user_data.description') })] }) }), jsx(TextButton, { className: 'collect-user-data-login-no-wallet__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
|
|
89
90
|
};
|
|
90
91
|
|
|
91
|
-
export {
|
|
92
|
+
export { CollectUserDataViewNoWallet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CollectUserDataViewNoWallet';
|
|
@@ -0,0 +1,178 @@
|
|
|
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 ||
|
|
103
|
+
(currentPassword && currentPassword !== password)));
|
|
104
|
+
const closeButton = onClose && (jsxRuntime.jsx(IconButton.IconButton, { onClick: () => onClose(), type: 'button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
105
|
+
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) => {
|
|
106
|
+
e.preventDefault();
|
|
107
|
+
} }) }) })), jsxRuntime.jsx(ToggleVisibilityButton.ToggleVisibilityButton, { initialState: inputType === 'password', onClick: (hidden) => setInputType(hidden ? 'password' : 'text'), className: 'create-password__password-input__suffix__icon' })] }));
|
|
108
|
+
const handleChangePassword = (e) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
const connector = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector;
|
|
111
|
+
if (isChangingPassword && walletConnectorCore.isCoinbaseMpcWalletConnector(connector)) {
|
|
112
|
+
setIsLoading(true);
|
|
113
|
+
try {
|
|
114
|
+
const isValid = yield connector.validatePasscode(currentPassword);
|
|
115
|
+
if (!isValid) {
|
|
116
|
+
setError(t('dyn_create_password.errors.invalid_current_password'));
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
setError(t('dyn_create_password.errors.error_changing_password'));
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
finally {
|
|
125
|
+
setIsLoading(false);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (canContinue) {
|
|
129
|
+
onContinue();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const onCreatePasswordInputChange = (e) => {
|
|
133
|
+
const newPassword = e.target.value;
|
|
134
|
+
const { strength } = validatePassword.validatePassword(newPassword);
|
|
135
|
+
setPasswordStrength(strength);
|
|
136
|
+
setPassword(newPassword);
|
|
137
|
+
if (isChangingPassword) {
|
|
138
|
+
if (currentPassword === newPassword) {
|
|
139
|
+
setError(t('dyn_create_password.errors.new_password_same_as_old'));
|
|
140
|
+
}
|
|
141
|
+
else if (newPassword &&
|
|
142
|
+
confirmPassword &&
|
|
143
|
+
newPassword !== confirmPassword) {
|
|
144
|
+
setError(t('dyn_create_password.errors.password_mismatch'));
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
setError('');
|
|
148
|
+
}
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (!(newPassword === null || newPassword === void 0 ? void 0 : newPassword.length)) {
|
|
152
|
+
setError('');
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const onConfirmPasswordInputChange = (e) => {
|
|
156
|
+
const newPassword = e.target.value;
|
|
157
|
+
if (newPassword !== password) {
|
|
158
|
+
setError(t('dyn_create_password.errors.password_mismatch'));
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
setError('');
|
|
162
|
+
}
|
|
163
|
+
setConfirmPassword(newPassword);
|
|
164
|
+
};
|
|
165
|
+
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
|
|
166
|
+
? t('dyn_create_password.title.update')
|
|
167
|
+
: 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
|
|
168
|
+
? t('dyn_create_password.update_input.placeholder')
|
|
169
|
+
: t('dyn_create_password.create_input.placeholder'), type: passwordInputType, suffix: inputSuffix(passwordInputType, setPasswordInputType), label: isChangingPassword
|
|
170
|
+
? t('dyn_create_password.update_input.label')
|
|
171
|
+
: 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
|
|
172
|
+
? 'create-password__password-criteria-list__success'
|
|
173
|
+
: '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: {
|
|
174
|
+
color: 'inherit',
|
|
175
|
+
}, 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') }))] }) })] }));
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
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>;
|