@dynamic-labs/sdk-react-core 2.0.0-alpha.3 → 2.0.0-alpha.4
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 +28 -0
- package/package.cjs +4 -3
- package/package.js +4 -3
- package/package.json +15 -12
- package/src/index.cjs +42 -32
- package/src/index.js +25 -19
- package/src/lib/Main.cjs +10 -6
- package/src/lib/Main.js +10 -6
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +10 -6
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +10 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +10 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.js +10 -6
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +14 -6
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +14 -6
- package/src/lib/components/Captcha/Captcha.cjs +10 -6
- package/src/lib/components/Captcha/Captcha.js +10 -6
- package/src/lib/components/ChainIcon/ChainIcon.cjs +27 -0
- package/src/lib/components/ChainIcon/ChainIcon.d.ts +8 -0
- package/src/lib/components/ChainIcon/ChainIcon.js +23 -0
- package/src/lib/components/ChainIcon/index.d.ts +1 -0
- package/src/lib/components/Divider/Divider.cjs +9 -5
- package/src/lib/components/Divider/Divider.js +9 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +10 -6
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +10 -6
- package/src/lib/components/EmailIcon/EmailIcon.cjs +14 -0
- package/src/lib/components/EmailIcon/EmailIcon.d.ts +2 -0
- package/src/lib/components/EmailIcon/EmailIcon.js +10 -0
- package/src/lib/components/EmailIcon/index.d.ts +1 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +89 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.d.ts +10 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +85 -0
- package/src/lib/components/InlineSubmitButton/index.d.ts +1 -0
- package/src/lib/components/Input/Input.cjs +9 -6
- package/src/lib/components/Input/Input.d.ts +13 -2
- package/src/lib/components/Input/Input.js +9 -6
- package/src/lib/components/Input/Input.types.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +10 -6
- package/src/lib/components/LogoutButton/LogoutButton.js +10 -6
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +10 -6
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +10 -6
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +2 -2
- package/src/lib/components/MenuList/MenuList/MenuList.js +2 -2
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/Modal/Modal.cjs +10 -6
- package/src/lib/components/Modal/Modal.js +10 -6
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +10 -6
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +10 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +13 -9
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +13 -9
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +9 -5
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +9 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +9 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.js +9 -5
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +70 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +71 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +10 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +10 -6
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +13 -19
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +6 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +13 -19
- package/src/lib/components/OverlayCard/OverlayCard.cjs +29 -22
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +0 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +29 -22
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs +46 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.d.ts +17 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js +40 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/index.d.ts +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +9 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +9 -5
- package/src/lib/components/Portal/Portal.cjs +10 -6
- package/src/lib/components/Portal/Portal.js +10 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +10 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +10 -6
- package/src/lib/components/RenderView/RenderView.cjs +7 -5
- package/src/lib/components/RenderView/RenderView.js +7 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +10 -6
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +10 -6
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs} +12 -8
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.d.ts +6 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js} +12 -8
- package/src/lib/components/SecureEmbeddedWalletCard/index.d.ts +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +2 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +2 -2
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +3 -3
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +3 -3
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +10 -6
- package/src/lib/components/ShadowDOM/ShadowDOM.js +10 -6
- package/src/lib/components/Skeleton/Skeleton.cjs +2 -2
- package/src/lib/components/Skeleton/Skeleton.d.ts +2 -1
- package/src/lib/components/Skeleton/Skeleton.js +2 -2
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +13 -9
- package/src/lib/components/SocialSignIn/SocialSignIn.js +13 -9
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.cjs → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs} +12 -8
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.d.ts +1 -0
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.js → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js} +12 -8
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/index.d.ts +1 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.d.ts +8 -0
- package/src/lib/components/ToggleVisibilityButton/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +16 -12
- package/src/lib/components/Toolkit/Toolkit.js +16 -12
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +11 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +11 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +13 -11
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +13 -11
- package/src/lib/components/Tooltip/Tooltip.cjs +10 -6
- package/src/lib/components/Tooltip/Tooltip.js +10 -6
- package/src/lib/components/TosAndPp/TosAndPp.cjs +10 -6
- package/src/lib/components/TosAndPp/TosAndPp.js +10 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +9 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +9 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +10 -6
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +10 -6
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.cjs +2 -2
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.js +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js +2 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +10 -6
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +10 -6
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.cjs +2 -2
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.js +2 -2
- package/src/lib/components/Typography/Typography.cjs +2 -2
- package/src/lib/components/Typography/Typography.js +2 -2
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +10 -6
- package/src/lib/components/UserAddress/UserAddress.js +10 -6
- package/src/lib/components/UserProfile/UserProfile.cjs +10 -6
- package/src/lib/components/UserProfile/UserProfile.js +10 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +11 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +11 -7
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +13 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +13 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +10 -6
- package/src/lib/components/UserProfileForm/UserProfileForm.js +10 -6
- package/src/lib/components/index.d.ts +10 -5
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +10 -6
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +10 -6
- package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -24
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +0 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +15 -24
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +1 -4
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +1 -4
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -19
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +4 -20
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.types.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +10 -6
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +10 -6
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +12 -11
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +12 -11
- package/src/lib/context/DynamicContext/types/index.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +0 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +0 -2
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +10 -6
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +10 -6
- package/src/lib/context/FundingContext/FundingContext.cjs +10 -6
- package/src/lib/context/FundingContext/FundingContext.js +10 -6
- package/src/lib/context/LoadingContext/LoadingContext.cjs +10 -6
- package/src/lib/context/LoadingContext/LoadingContext.js +10 -6
- package/src/lib/context/MockContext/MockContext.cjs +7 -3
- package/src/lib/context/MockContext/MockContext.js +7 -3
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +9 -5
- package/src/lib/context/PasskeyContext/PasskeyContext.js +9 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +10 -6
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +10 -6
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +13 -7
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +13 -7
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +10 -6
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +10 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +10 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +10 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +10 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +10 -6
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +22 -7
- package/src/lib/context/WalletContext/WalletContext.d.ts +8 -3
- package/src/lib/context/WalletContext/WalletContext.js +23 -9
- package/src/lib/data/api.cjs +4 -1
- package/src/lib/data/api.d.ts +22 -2
- package/src/lib/data/api.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +9 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +9 -6
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +10 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +10 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +11 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +11 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +10 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +10 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +11 -7
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +11 -7
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +16 -13
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +16 -13
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +9 -5
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +9 -5
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +11 -7
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +11 -7
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +9 -5
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +9 -5
- package/src/lib/locale/en/translation.cjs +46 -2
- package/src/lib/locale/en/translation.d.ts +45 -1
- package/src/lib/locale/en/translation.js +46 -2
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.d.ts +3 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.types.d.ts +8 -0
- package/src/lib/modals/ConfirmationModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +9 -5
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +9 -5
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +3 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.types.d.ts +6 -0
- package/src/lib/modals/EnterPasswordModal/index.d.ts +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +10 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +10 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +10 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +10 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +11 -15
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +11 -15
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +4 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +9 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +9 -5
- package/src/lib/modals/index.d.ts +2 -0
- package/src/lib/shared/assets/chevron-down.cjs +53 -0
- package/src/lib/shared/assets/chevron-down.js +29 -0
- package/src/lib/shared/assets/index.d.ts +15 -13
- package/src/lib/shared/assets/password-hero.cjs +53 -0
- package/src/lib/shared/assets/password-hero.js +29 -0
- package/src/lib/shared/types/connectionAndSignature.d.ts +15 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +48 -0
- package/src/lib/shared/types/embeddedWallets.d.ts +6 -0
- package/src/lib/shared/types/general.d.ts +5 -0
- package/src/lib/shared/types/index.d.ts +8 -220
- package/src/lib/shared/types/localStorage.d.ts +18 -0
- package/src/lib/shared/types/ui.d.ts +14 -0
- package/src/lib/shared/types/user.d.ts +15 -0
- package/src/lib/shared/types/wallets.d.ts +85 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +9 -2
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +2 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +9 -2
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.cjs +14 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.d.ts +1 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.js +10 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +3 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +1 -1
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +3 -0
- package/src/lib/shared/utils/functions/validatePassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.cjs +59 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.d.ts +13 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.js +55 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +1 -1
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +2 -0
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +2 -1
- package/src/lib/utils/constants/values.cjs +2 -0
- package/src/lib/utils/constants/values.d.ts +1 -0
- package/src/lib/utils/constants/values.js +2 -1
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.d.ts +2 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +36 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +3 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +32 -0
- package/src/lib/utils/functions/getEOAWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +7 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +5 -4
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +5 -4
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +26 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +22 -0
- package/src/lib/utils/functions/modulo/index.d.ts +1 -0
- package/src/lib/utils/functions/modulo/modulo.cjs +8 -0
- package/src/lib/utils/functions/modulo/modulo.d.ts +2 -0
- package/src/lib/utils/functions/modulo/modulo.js +4 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.d.ts +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +10 -6
- package/src/lib/utils/hooks/index.d.ts +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +10 -6
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +10 -6
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +10 -6
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +10 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +10 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +10 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +10 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +10 -6
- package/src/lib/utils/hooks/useConfirmationPortal/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.d.ts +13 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +10 -6
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +10 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +10 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +10 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +10 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +10 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +10 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +10 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +10 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +10 -6
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +10 -6
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +10 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +10 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +10 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +12 -11
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +12 -11
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +10 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +10 -6
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +12 -11
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +12 -11
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +10 -6
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +10 -6
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +10 -6
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +10 -6
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.cjs +43 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.d.ts +16 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.js +39 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.cjs +35 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.d.ts +21 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.js +31 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.cjs +51 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.d.ts +18 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.js +47 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/index.d.ts +3 -0
- package/src/lib/utils/hooks/useSendBalance/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.cjs +121 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.d.ts +17 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.js +117 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +10 -6
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +10 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +10 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +10 -6
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +4 -2
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.d.ts +4 -3
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +4 -2
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +10 -6
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +10 -6
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +2 -44
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -44
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +10 -6
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +5 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +10 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +10 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +10 -6
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +3 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +10 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +10 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +12 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -5
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +12 -8
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +9 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.js +9 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +10 -6
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +10 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +10 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +10 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +10 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +10 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +9 -5
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +9 -5
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +9 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +9 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +9 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +9 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +9 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +9 -6
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +9 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +9 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +9 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +9 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +8 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.js +8 -5
- package/src/lib/views/EmailVerification/EmailVerification.cjs +11 -7
- package/src/lib/views/EmailVerification/EmailVerification.js +11 -7
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +30 -24
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +30 -24
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +13 -14
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +13 -14
- package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +8 -0
- package/src/lib/views/EnterPasswordView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +36 -17
- package/src/lib/views/LoginView/LoginView.js +36 -17
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +16 -25
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +18 -27
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +125 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.d.ts +3 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +121 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.cjs +12 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.d.ts +5 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.js +8 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.cjs +21 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.d.ts +4 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.js +16 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +235 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.d.ts +33 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +230 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +10 -6
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.cjs → LoginView/sections/ToggleableSection/ToggleableSection.cjs} +31 -32
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.d.ts +11 -0
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.js → LoginView/sections/ToggleableSection/ToggleableSection.js} +32 -33
- package/src/lib/views/LoginView/sections/ToggleableSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/index.d.ts +3 -1
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.cjs +62 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.d.ts +28 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.js +58 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +201 -0
- package/src/lib/views/LoginView/{useLoginView.d.ts → useLoginView/useLoginView.d.ts} +1 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +196 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +10 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +10 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +9 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +9 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +9 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +9 -5
- package/src/lib/views/NoAccess/NoAccess.cjs +8 -5
- package/src/lib/views/NoAccess/NoAccess.js +8 -5
- package/src/lib/views/NoAccess/useNoAccessText.cjs +10 -6
- package/src/lib/views/NoAccess/useNoAccessText.js +10 -6
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +9 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +9 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +9 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +9 -5
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +10 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +10 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +11 -7
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +11 -7
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +9 -5
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +9 -5
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +11 -11
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +11 -11
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +11 -10
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +11 -10
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +9 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +9 -5
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +8 -5
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +8 -5
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +9 -5
- package/src/lib/views/PendingConnectView/PendingConnectView.js +9 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +9 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +9 -5
- package/src/lib/views/QrCodeView/QRCode.cjs +10 -6
- package/src/lib/views/QrCodeView/QRCode.js +10 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +9 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +9 -5
- package/src/lib/views/QrCodeView/QrCodeView.cjs +10 -6
- package/src/lib/views/QrCodeView/QrCodeView.js +10 -6
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +9 -5
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +9 -5
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +10 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +32 -51
- package/src/lib/views/SendBalanceView/SendBalanceView.js +32 -51
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +9 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +9 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +9 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +9 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +37 -23
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +6 -3
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +38 -24
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +17 -2
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +17 -2
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +19 -9
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +5 -4
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +19 -9
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +10 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +10 -6
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +10 -6
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +10 -6
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +9 -5
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +9 -5
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +11 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.js +11 -7
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +10 -6
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +10 -6
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +9 -5
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +9 -5
- package/src/lib/views/WalletList/WalletList.cjs +9 -5
- package/src/lib/views/WalletList/WalletList.js +9 -5
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +9 -5
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +9 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +10 -6
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +10 -6
- package/src/lib/views/WalletList/data.cjs +2 -6
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletList/data.js +2 -6
- package/src/lib/views/WalletList/hooks/useTabState.cjs +10 -6
- package/src/lib/views/WalletList/hooks/useTabState.js +10 -6
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +9 -5
- package/src/lib/views/WalletLockedView/WalletLockedView.js +9 -5
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +86 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.d.ts +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +82 -0
- package/src/lib/views/WalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +10 -6
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +10 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +9 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.js +9 -5
- package/src/lib/views/viewToComponentMap.cjs +9 -5
- package/src/lib/views/viewToComponentMap.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +10 -6
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +7 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +7 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +8 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +8 -4
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +71 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +71 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +10 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +10 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +11 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +11 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +19 -19
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +20 -20
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +18 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +18 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +4 -53
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +4 -53
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +17 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +17 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +12 -6
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +12 -6
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +9 -6
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +9 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +9 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +12 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +12 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +17 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +14 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +14 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +8 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +8 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +8 -4
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +7 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +9 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +9 -5
- package/src/lib/components/OverlayCard/OverlayCard.context.cjs +0 -9
- package/src/lib/components/OverlayCard/OverlayCard.context.d.ts +0 -6
- package/src/lib/components/OverlayCard/OverlayCard.context.js +0 -5
- package/src/lib/components/OverlayCard/OverlayCardTarget.cjs +0 -17
- package/src/lib/components/OverlayCard/OverlayCardTarget.d.ts +0 -2
- package/src/lib/components/OverlayCard/OverlayCardTarget.js +0 -13
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.d.ts +0 -6
- package/src/lib/components/SecureTurnkeyWalletCard/index.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/index.d.ts +0 -1
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.cjs +0 -18
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.js +0 -14
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +0 -10
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +0 -6
- package/src/lib/utils/hooks/useTransactionWithGasPrice/index.d.ts +0 -1
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +0 -56
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +0 -32
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +0 -52
- package/src/lib/views/LoginView/useLoginView.cjs +0 -265
- package/src/lib/views/LoginView/useLoginView.js +0 -260
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +0 -11
- package/src/lib/views/SendBalanceView/components/TransactionStage/index.d.ts +0 -1
- package/src/lib/views/SendBalanceView/components/index.d.ts +0 -1
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { useState, useRef } from 'react';
|
|
4
3
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { parseEther } from 'viem';
|
|
6
4
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
7
5
|
import '../../events/dynamicEvents.js';
|
|
6
|
+
import '../../../../_virtual/_tslib.js';
|
|
8
7
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
9
8
|
import '@dynamic-labs/sdk-api';
|
|
10
9
|
import '../../shared/logger.js';
|
|
11
|
-
import
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
12
11
|
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import '@dynamic-labs/wallet-book';
|
|
14
14
|
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
15
15
|
import '../../utils/constants/colors.js';
|
|
16
16
|
import '../../utils/constants/values.js';
|
|
17
17
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
18
18
|
import { formatBigNumber } from '../../shared/utils/functions/formatBigNumber/formatBigNumber.js';
|
|
19
|
-
import '@dynamic-labs/iconic';
|
|
20
|
-
import '../../context/ViewContext/ViewContext.js';
|
|
21
19
|
import '../../shared/consts/index.js';
|
|
22
20
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
23
21
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
24
22
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
25
23
|
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import 'viem';
|
|
26
25
|
import 'viem/chains';
|
|
27
26
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
27
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
@@ -39,25 +38,23 @@ import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
|
39
38
|
import '@dynamic-labs/rpc-providers';
|
|
40
39
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
40
|
import '../../components/Alert/Alert.js';
|
|
41
|
+
import { Spinner } from '../../components/Spinner/spinner.js';
|
|
42
42
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
43
|
-
import { Icon } from '../../components/Icon/Icon.js';
|
|
44
43
|
import '../../components/IconButton/IconButton.js';
|
|
45
44
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
45
|
+
import '../../components/Input/Input.js';
|
|
46
46
|
import '../../components/IsBrowser/IsBrowser.js';
|
|
47
47
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
48
48
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
49
49
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
50
50
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
51
|
+
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
52
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
51
53
|
import '../../components/Popper/Popper/Popper.js';
|
|
52
54
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
53
55
|
import 'react-focus-lock';
|
|
54
|
-
import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
|
|
55
|
-
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
56
|
-
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
57
|
-
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
58
56
|
import '../WalletList/WalletList.js';
|
|
59
|
-
import
|
|
60
|
-
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
57
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
61
58
|
import 'formik';
|
|
62
59
|
import 'qrcode';
|
|
63
60
|
import '@hcaptcha/react-hcaptcha';
|
|
@@ -67,44 +64,44 @@ import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
|
67
64
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
68
65
|
import 'i18next';
|
|
69
66
|
import '../../context/FooterAnimationContext/index.js';
|
|
67
|
+
import 'react-international-phone';
|
|
68
|
+
import '../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
69
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
70
|
+
import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
|
|
71
|
+
import { ChainIcon } from '../../components/ChainIcon/ChainIcon.js';
|
|
70
72
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
71
73
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
72
74
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
73
75
|
import { TransactionStatusLayout } from '../../components/TransactionStatusLayout/TransactionStatusLayout.js';
|
|
74
|
-
import {
|
|
76
|
+
import { TransactionConfirmationView } from '../TransactionConfirmationView/TransactionConfirmationView.js';
|
|
75
77
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
76
|
-
import '
|
|
78
|
+
import { useSendBalance } from '../../utils/hooks/useSendBalance/useSendBalance.js';
|
|
77
79
|
|
|
78
80
|
const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBack, onClickClose, onError, onSuccess, onDone, displayPoweredByDynamicFooter = false, }) => {
|
|
79
81
|
const [stage, setStage] = useState('form');
|
|
80
|
-
const { primaryWallet
|
|
82
|
+
const { primaryWallet } = useInternalDynamicContext();
|
|
81
83
|
const { t } = useTranslation();
|
|
82
84
|
const [value, setValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : null);
|
|
83
85
|
const [recipientAddress, setRecipientAddress] = useState(initialRecipientAddress);
|
|
84
86
|
const transactionRef = useRef(null);
|
|
87
|
+
const { chain, currencySymbol = '', loadBalance, loadProvider, mutate, parser, networkData, isLoading, recipientRegex, getGasPrice, } = useSendBalance(primaryWallet);
|
|
88
|
+
const testBalance = usePromise(loadBalance, { deps: [chain] });
|
|
89
|
+
const testProvider = usePromise(loadProvider, { deps: [chain] });
|
|
90
|
+
const { data: balance } = testBalance;
|
|
91
|
+
const { data: provider } = testProvider;
|
|
85
92
|
if (!primaryWallet) {
|
|
86
93
|
throw new DynamicError('Primary wallet is not available, send balance cannot be displayed');
|
|
87
94
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const {
|
|
93
|
-
const evmNetworks = (walletConnector && walletConnector.evmNetworks) || [];
|
|
94
|
-
const evmNetwork = evmNetworks.find((evmNetwork) => evmNetwork.chainId === network);
|
|
95
|
-
const networkIcon = evmNetwork && (jsx("img", { src: evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.iconUrls[0], alt: `${evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.name} icon` }));
|
|
96
|
-
const networkName = (evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.vanityName) || (evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.name);
|
|
97
|
-
const networkCurrencyDecimals = evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.nativeCurrency.decimals;
|
|
98
|
-
const [chain] = useFetchChain(primaryWallet.connector);
|
|
99
|
-
const chainName = (chain === null || chain === void 0 ? void 0 : chain.name) || primaryWallet.chain;
|
|
100
|
-
const ChainIconComponent = getChainIcon(chainName);
|
|
101
|
-
const chainIcon = (jsx(Icon, { size: 'small', children: (chain === null || chain === void 0 ? void 0 : chain.icon) ? (jsx("img", { src: chain.icon, alt: `${chain.name} icon` })) : (jsx(ChainIconComponent, {})) }));
|
|
102
|
-
const [currencySymbol = ''] = useFetchCurrency(primaryWallet.connector);
|
|
95
|
+
if (!chain || isLoading || !provider || !mutate || !parser || !getGasPrice) {
|
|
96
|
+
return (jsx("div", { className: 'send-balance-widget-view__spinner', "data-testid": 'send-balance-spinner', children: jsx(Spinner, {}) }));
|
|
97
|
+
}
|
|
98
|
+
const chainName = (chain === null || chain === void 0 ? void 0 : chain.name) || (primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.chain);
|
|
99
|
+
const { networkName, networkCurrencyDecimals } = networkData || {};
|
|
103
100
|
const buildFormStage = () => (jsx(SendBalancePageLayout, { initialValues: {
|
|
104
|
-
amount: value === null ? '' : formatBigNumber(value),
|
|
101
|
+
amount: value === null ? '' : formatBigNumber(chain.symbol, value),
|
|
105
102
|
recipient: recipientAddress,
|
|
106
|
-
}, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon:
|
|
107
|
-
setValue(
|
|
103
|
+
}, recipientRegex: recipientRegex, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: jsx(ChainIcon, { chain: chain, chainName: chainName }), networkCurrencyDecimals: networkCurrencyDecimals, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress(primaryWallet.address, 3, 3), walletKey: primaryWallet.connector.key, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
|
|
104
|
+
setValue(parser(data.amount) || BigInt(data.amount));
|
|
108
105
|
setRecipientAddress(data.recipient);
|
|
109
106
|
setStage('confirmation');
|
|
110
107
|
} }));
|
|
@@ -117,23 +114,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
117
114
|
to: recipientAddress,
|
|
118
115
|
value,
|
|
119
116
|
};
|
|
120
|
-
return (jsx(
|
|
121
|
-
walletUiUtils.disabledConfirmationOnce();
|
|
122
|
-
const signer = yield walletConnector.getSigner();
|
|
123
|
-
const sentTransaction = yield signer.sendTransaction({
|
|
124
|
-
account: signer.account || primaryWallet.address,
|
|
125
|
-
/**
|
|
126
|
-
* chain is set to null because viem already have the correct chain from the wallet connector
|
|
127
|
-
* docs: https://viem.sh/docs/actions/wallet/sendTransaction.html#chain-optional
|
|
128
|
-
*/
|
|
129
|
-
chain: null,
|
|
130
|
-
gasPrice,
|
|
131
|
-
nonce,
|
|
132
|
-
to,
|
|
133
|
-
value,
|
|
134
|
-
});
|
|
135
|
-
return sentTransaction;
|
|
136
|
-
}), onSuccess: (transaction) => {
|
|
117
|
+
return (jsx(TransactionConfirmationView, { provider: provider, transaction: transaction, copykey: 'dyn_send_transaction.confirmation.title', title: t('dyn_send_transaction.confirmation.title'), onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: () => mutate(transaction), getGasPrice: getGasPrice, parser: parser, onSuccess: (transaction) => {
|
|
137
118
|
transactionRef.current = transaction;
|
|
138
119
|
setStage('success');
|
|
139
120
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(transactionRef.current);
|
|
@@ -142,7 +123,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
142
123
|
const buildSuccessState = () => {
|
|
143
124
|
if (value === null)
|
|
144
125
|
return null;
|
|
145
|
-
return (jsx(TransactionStatusLayout, { amount: formatBigNumber(value), destinationAddress: recipientAddress, networkCurrency: currencySymbol, networkName: chainName || '', NetworkIcon:
|
|
126
|
+
return (jsx(TransactionStatusLayout, { amount: formatBigNumber(chain.symbol, value), destinationAddress: recipientAddress, networkCurrency: currencySymbol, networkName: chainName || '', NetworkIcon: jsx(ChainIcon, { chain: chain, chainName: chainName }), onClickClose: onClickClose, onDone: () => onDone === null || onDone === void 0 ? void 0 : onDone(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter }));
|
|
146
127
|
};
|
|
147
128
|
const getCurrentView = () => {
|
|
148
129
|
switch (stage) {
|
|
@@ -39,11 +39,11 @@ require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
39
39
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
40
40
|
require('@dynamic-labs/rpc-providers');
|
|
41
41
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
42
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
42
43
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
43
44
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
44
45
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
45
|
-
require('../../components/
|
|
46
|
-
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
46
|
+
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
47
47
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
48
48
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
49
49
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -51,27 +51,31 @@ require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidge
|
|
|
51
51
|
require('react-focus-lock');
|
|
52
52
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
53
53
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
54
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
54
55
|
require('i18next');
|
|
55
56
|
require('qrcode');
|
|
56
57
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
59
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
57
60
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
58
61
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
59
62
|
require('formik');
|
|
60
|
-
require('../../components/IconButton/IconButton.cjs');
|
|
61
63
|
require('../../components/Alert/Alert.cjs');
|
|
62
64
|
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
65
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
|
-
require('
|
|
66
|
+
require('../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
65
67
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
68
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
69
|
+
require('../../components/Input/Input.cjs');
|
|
67
70
|
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
68
|
-
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
69
71
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
70
72
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
71
73
|
require('../WalletList/WalletList.cjs');
|
|
72
74
|
require('@hcaptcha/react-hcaptcha');
|
|
73
75
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
74
76
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
77
|
+
require('react-international-phone');
|
|
78
|
+
require('../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
75
79
|
|
|
76
80
|
const SocialRedirectView = () => {
|
|
77
81
|
const { socialProvider, signInProvider } = SocialRedirectContext.useSocialRedirectContext();
|
|
@@ -35,11 +35,11 @@ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
35
35
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
36
36
|
import '@dynamic-labs/rpc-providers';
|
|
37
37
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
38
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
38
39
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
39
40
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
40
41
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
41
|
-
import '../../components/
|
|
42
|
-
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
42
|
+
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
43
43
|
import '../../context/FooterAnimationContext/index.js';
|
|
44
44
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
45
45
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -47,27 +47,31 @@ import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidget
|
|
|
47
47
|
import 'react-focus-lock';
|
|
48
48
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
49
49
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
50
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
50
51
|
import 'i18next';
|
|
51
52
|
import 'qrcode';
|
|
52
53
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
|
+
import '../../components/IconButton/IconButton.js';
|
|
55
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
53
56
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
54
57
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
55
58
|
import 'formik';
|
|
56
|
-
import '../../components/IconButton/IconButton.js';
|
|
57
59
|
import '../../components/Alert/Alert.js';
|
|
58
60
|
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
61
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
-
import '
|
|
62
|
+
import '../TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
61
63
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
62
64
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
65
|
+
import '../../components/Input/Input.js';
|
|
63
66
|
import '../../components/IsBrowser/IsBrowser.js';
|
|
64
|
-
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
65
67
|
import '../../components/Popper/Popper/Popper.js';
|
|
66
68
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
67
69
|
import '../WalletList/WalletList.js';
|
|
68
70
|
import '@hcaptcha/react-hcaptcha';
|
|
69
71
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
70
72
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
73
|
+
import 'react-international-phone';
|
|
74
|
+
import '../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
71
75
|
|
|
72
76
|
const SocialRedirectView = () => {
|
|
73
77
|
const { socialProvider, signInProvider } = useSocialRedirectContext();
|
|
@@ -39,11 +39,11 @@ require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
39
39
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
40
40
|
require('@dynamic-labs/rpc-providers');
|
|
41
41
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
42
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
42
43
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
43
44
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
44
45
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
45
|
-
require('../../components/
|
|
46
|
-
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
46
|
+
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
47
47
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
48
48
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
49
49
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -51,27 +51,31 @@ require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidge
|
|
|
51
51
|
require('react-focus-lock');
|
|
52
52
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
53
53
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
54
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
54
55
|
require('i18next');
|
|
55
56
|
require('qrcode');
|
|
56
57
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
59
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
57
60
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
58
61
|
require('formik');
|
|
59
62
|
var Button = require('../../components/Button/Button.cjs');
|
|
60
|
-
require('../../components/IconButton/IconButton.cjs');
|
|
61
63
|
require('../../components/Alert/Alert.cjs');
|
|
62
64
|
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
65
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
|
-
require('
|
|
66
|
+
require('../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
65
67
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
68
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
69
|
+
require('../../components/Input/Input.cjs');
|
|
67
70
|
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
68
|
-
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
69
71
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
70
72
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
71
73
|
require('../WalletList/WalletList.cjs');
|
|
72
74
|
require('@hcaptcha/react-hcaptcha');
|
|
73
75
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
74
76
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
77
|
+
require('react-international-phone');
|
|
78
|
+
require('../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
75
79
|
|
|
76
80
|
const SocialWrongAccountView = () => {
|
|
77
81
|
const [tryAgainClicked, setTryAgainClicked] = React.useState(false);
|
|
@@ -35,11 +35,11 @@ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
35
35
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
36
36
|
import '@dynamic-labs/rpc-providers';
|
|
37
37
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
38
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
38
39
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
39
40
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
40
41
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
41
|
-
import '../../components/
|
|
42
|
-
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
42
|
+
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
43
43
|
import '../../context/FooterAnimationContext/index.js';
|
|
44
44
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
45
45
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -47,27 +47,31 @@ import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidget
|
|
|
47
47
|
import 'react-focus-lock';
|
|
48
48
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
49
49
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
50
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
50
51
|
import 'i18next';
|
|
51
52
|
import 'qrcode';
|
|
52
53
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
|
+
import '../../components/IconButton/IconButton.js';
|
|
55
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
53
56
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
54
57
|
import 'formik';
|
|
55
58
|
import { Button } from '../../components/Button/Button.js';
|
|
56
|
-
import '../../components/IconButton/IconButton.js';
|
|
57
59
|
import '../../components/Alert/Alert.js';
|
|
58
60
|
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
61
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
-
import '
|
|
62
|
+
import '../TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
61
63
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
62
64
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
65
|
+
import '../../components/Input/Input.js';
|
|
63
66
|
import '../../components/IsBrowser/IsBrowser.js';
|
|
64
|
-
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
65
67
|
import '../../components/Popper/Popper/Popper.js';
|
|
66
68
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
67
69
|
import '../WalletList/WalletList.js';
|
|
68
70
|
import '@hcaptcha/react-hcaptcha';
|
|
69
71
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
70
72
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
73
|
+
import 'react-international-phone';
|
|
74
|
+
import '../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
71
75
|
|
|
72
76
|
const SocialWrongAccountView = () => {
|
|
73
77
|
const [tryAgainClicked, setTryAgainClicked] = useState(false);
|
|
@@ -12,15 +12,14 @@ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
|
12
12
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
var logger = require('../../shared/logger.cjs');
|
|
15
|
-
|
|
15
|
+
require('@dynamic-labs/iconic');
|
|
16
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
16
17
|
require('@dynamic-labs/wallet-book');
|
|
17
18
|
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
18
19
|
require('../../utils/constants/colors.cjs');
|
|
19
20
|
require('../../utils/constants/values.cjs');
|
|
20
21
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
22
|
var formatBigNumber = require('../../shared/utils/functions/formatBigNumber/formatBigNumber.cjs');
|
|
22
|
-
require('@dynamic-labs/iconic');
|
|
23
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
24
23
|
require('../../shared/consts/index.cjs');
|
|
25
24
|
require('../../events/dynamicEvents.cjs');
|
|
26
25
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -45,34 +44,38 @@ require('@dynamic-labs/rpc-providers');
|
|
|
45
44
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
45
|
var Alert = require('../../components/Alert/Alert.cjs');
|
|
47
46
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
48
|
-
var Icon = require('../../components/Icon/Icon.cjs');
|
|
49
47
|
require('../../components/IconButton/IconButton.cjs');
|
|
50
48
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
49
|
+
require('../../components/Input/Input.cjs');
|
|
51
50
|
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
52
51
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
53
52
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
54
53
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
55
54
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
55
|
+
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
56
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
56
57
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
57
58
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
58
59
|
require('react-focus-lock');
|
|
59
|
-
require('formik');
|
|
60
|
-
require('i18next');
|
|
61
|
-
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
62
|
-
var TransactionConfirmationPageLayout = require('../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs');
|
|
63
|
-
var TransactionRow = require('../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs');
|
|
64
|
-
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
|
-
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
60
|
require('../WalletList/WalletList.cjs');
|
|
67
61
|
var useFetchChain = require('../../widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs');
|
|
68
62
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
63
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
64
|
+
require('formik');
|
|
69
65
|
require('qrcode');
|
|
70
66
|
require('@hcaptcha/react-hcaptcha');
|
|
71
67
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
72
68
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
73
69
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
74
70
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
71
|
+
require('i18next');
|
|
75
72
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
73
|
+
require('react-international-phone');
|
|
74
|
+
require('../LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
75
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
76
|
+
var TransactionConfirmationPageLayout = require('../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs');
|
|
77
|
+
var TransactionRow = require('../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs');
|
|
78
|
+
var ChainIcon = require('../../components/ChainIcon/ChainIcon.cjs');
|
|
76
79
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
77
80
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
78
81
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -82,7 +85,7 @@ var transactionErrorMessage = require('./helpers/transactionErrorMessage.cjs');
|
|
|
82
85
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
83
86
|
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
84
87
|
|
|
85
|
-
const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess, onClickBack, onClickClose, title, displayPoweredByDynamicFooter = false, provider, copykey, }) => {
|
|
88
|
+
const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess, onClickBack, onClickClose, parser = viem.parseEther, title, displayPoweredByDynamicFooter = false, provider, getGasPrice, copykey, }) => {
|
|
86
89
|
const { appName, appLogoUrl, primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
87
90
|
const appOrigin = getAppOrigin.getAppOrigin();
|
|
88
91
|
const [isGasSponsored, setIsGasSponsored] = React.useState(false);
|
|
@@ -90,10 +93,10 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
|
|
|
90
93
|
if (!primaryWallet) {
|
|
91
94
|
throw new utils.DynamicError('Primary wallet is not available, transaction cannot be displayed');
|
|
92
95
|
}
|
|
93
|
-
const
|
|
96
|
+
const { currency: currencySymbol } = useFetchCurrency.useFetchCurrency(primaryWallet.connector);
|
|
94
97
|
const { data: balance } = usePromise.usePromise(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
95
98
|
const balanceText = yield primaryWallet.connector.getBalance();
|
|
96
|
-
return balanceText ?
|
|
99
|
+
return balanceText ? parser(balanceText) : undefined;
|
|
97
100
|
}));
|
|
98
101
|
const { isLoading: isGasSponsoredLoading } = usePromise.usePromise(() => {
|
|
99
102
|
if (!walletConnectorCore.isAccountAbstractionConnector(primaryWallet.connector)) {
|
|
@@ -128,6 +131,7 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
|
|
|
128
131
|
onSuccess: (tx) => onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(tx),
|
|
129
132
|
});
|
|
130
133
|
const { isLoading: isGasPriceLoading, gasTotalPrice, isGasEstimated, } = useTransactionGas.useTransactionGas({
|
|
134
|
+
getGasPrice,
|
|
131
135
|
provider,
|
|
132
136
|
transaction,
|
|
133
137
|
});
|
|
@@ -150,10 +154,8 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
|
|
|
150
154
|
isTransactionToAddressLoading ||
|
|
151
155
|
isTransactionFromAddressLoading ||
|
|
152
156
|
isGasSponsoredLoading;
|
|
153
|
-
const
|
|
157
|
+
const { chain } = useFetchChain.useFetchChain(primaryWallet.connector);
|
|
154
158
|
const chainName = (chain === null || chain === void 0 ? void 0 : chain.name) || primaryWallet.chain;
|
|
155
|
-
const ChainIconComponent = getChainIcon.getChainIcon(chainName);
|
|
156
|
-
const chainIcon = (jsxRuntime.jsx(Icon.Icon, { size: 'small', children: (chain === null || chain === void 0 ? void 0 : chain.icon) ? (jsxRuntime.jsx("img", { src: chain.icon, alt: `${chain.name} icon` })) : (jsxRuntime.jsx(ChainIconComponent, {})) }));
|
|
157
159
|
const errorMessage = transactionError && transactionErrorMessage.transactionErrorMessage(transactionError);
|
|
158
160
|
const missingFunds = React.useMemo(() => {
|
|
159
161
|
if (balance === undefined || total === undefined)
|
|
@@ -174,7 +176,7 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
|
|
|
174
176
|
const showInsufficientFundsWarningMessage = hasInsufficientFunds && missingFunds;
|
|
175
177
|
if (!showInsufficientFundsWarningMessage)
|
|
176
178
|
return;
|
|
177
|
-
const amountLeft = formatBigNumber.formatBigNumber(missingFunds, 5);
|
|
179
|
+
const amountLeft = formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, missingFunds, 5);
|
|
178
180
|
return (jsxRuntime.jsx(Alert.Alert, { icon: 'error', variant: 'warning', contentDataTestId: 'warning_content', copykey: 'dyn_send_transaction.warning_message.insufficient_funds', children: t('dyn_send_transaction.warning_message.insufficient_funds', {
|
|
179
181
|
amountLeft,
|
|
180
182
|
currencySymbol,
|
|
@@ -188,15 +190,27 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
|
|
|
188
190
|
isTransactionLoading,
|
|
189
191
|
errorMessage,
|
|
190
192
|
]);
|
|
191
|
-
return (jsxRuntime.jsxs(TransactionConfirmationPageLayout.TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, copykey: copykey, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading
|
|
192
|
-
shortenWalletAddress.shortenWalletAddress(transactionToAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: 'dyn_send_transaction.confirmation.data.amount', label: t('dyn_send_transaction.confirmation.data.amount'), isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue
|
|
193
|
+
return (jsxRuntime.jsxs(TransactionConfirmationPageLayout.TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, copykey: copykey, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading, error: errorMessage, alert: alert, children: [jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: 'dyn_send_transaction.confirmation.data.from', label: t('dyn_send_transaction.confirmation.data.from'), isLoading: isTransactionFromAddressLoading, title: transactionFromAddress, children: shortenWalletAddress.shortenWalletAddress(transactionFromAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: 'dyn_send_transaction.confirmation.data.to', label: t('dyn_send_transaction.confirmation.data.to'), isLoading: isTransactionToAddressLoading, title: transactionToAddress, children: transactionToAddress &&
|
|
194
|
+
shortenWalletAddress.shortenWalletAddress(transactionToAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: 'dyn_send_transaction.confirmation.data.amount', label: t('dyn_send_transaction.confirmation.data.amount'), isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue
|
|
195
|
+
? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, transactionValue)
|
|
196
|
+
: undefined, suffix: currencySymbol, icon: chain && jsxRuntime.jsx(ChainIcon.ChainIcon, { chain: chain, chainName: chainName }), dataTestId: 'transaction-amount', children: transactionValue
|
|
197
|
+
? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, transactionValue, 10)
|
|
198
|
+
: 0 }), !isGasSponsored && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: isGasEstimated
|
|
193
199
|
? 'dyn_send_transaction.confirmation.data.gas_estimate'
|
|
194
200
|
: 'dyn_send_transaction.confirmation.data.gas', label: isGasEstimated
|
|
195
201
|
? t('dyn_send_transaction.confirmation.data.gas_estimate')
|
|
196
|
-
: t('dyn_send_transaction.confirmation.data.gas'), isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading || isGasSponsoredLoading, title: gasTotalPrice
|
|
202
|
+
: t('dyn_send_transaction.confirmation.data.gas'), isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading || isGasSponsoredLoading, title: gasTotalPrice
|
|
203
|
+
? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, gasTotalPrice)
|
|
204
|
+
: undefined, suffix: gasTotalPrice ? currencySymbol : undefined, icon: gasTotalPrice
|
|
205
|
+
? chain && jsxRuntime.jsx(ChainIcon.ChainIcon, { chain: chain, chainName: chainName })
|
|
206
|
+
: undefined, dataTestId: isGasEstimated
|
|
197
207
|
? 'transaction-estimated-gas-fee'
|
|
198
|
-
: 'transaction-gas-fee', children: gasTotalPrice
|
|
199
|
-
? formatBigNumber.formatBigNumber(
|
|
208
|
+
: 'transaction-gas-fee', children: gasTotalPrice
|
|
209
|
+
? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, gasTotalPrice, 10)
|
|
210
|
+
: '--' }), jsxRuntime.jsx(TransactionRow.TransactionRow, { copykey: 'dyn_send_transaction.confirmation.data.total', label: t('dyn_send_transaction.confirmation.data.total'), isEmpty: !total, title: total ? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, total) : undefined, suffix: total ? currencySymbol : undefined, icon: total
|
|
211
|
+
? chain && jsxRuntime.jsx(ChainIcon.ChainIcon, { chain: chain, chainName: chainName })
|
|
212
|
+
: undefined, dataTestId: 'transaction-total', children: total
|
|
213
|
+
? formatBigNumber.formatBigNumber(chain === null || chain === void 0 ? void 0 : chain.symbol, total, 10)
|
|
200
214
|
: t('dyn_send_transaction.confirmation.not_applied') })] }))] }));
|
|
201
215
|
};
|
|
202
216
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { Address
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
import { IUITransaction } from '@dynamic-labs/types';
|
|
3
4
|
import { CopyKey } from '../../shared';
|
|
4
5
|
export type TransactionConfirmationViewProps = {
|
|
5
6
|
displayPoweredByDynamicFooter?: boolean;
|
|
@@ -9,7 +10,9 @@ export type TransactionConfirmationViewProps = {
|
|
|
9
10
|
onError?: (error: unknown) => void;
|
|
10
11
|
onSuccess?: (transactionAddress: Address) => void;
|
|
11
12
|
title: ReactNode;
|
|
12
|
-
transaction:
|
|
13
|
-
provider:
|
|
13
|
+
transaction: IUITransaction;
|
|
14
|
+
provider: unknown;
|
|
15
|
+
parser?: (value: string) => bigint | undefined;
|
|
16
|
+
getGasPrice?: (_: IUITransaction) => Promise<bigint> | undefined;
|
|
14
17
|
} & CopyKey;
|
|
15
18
|
export declare const TransactionConfirmationView: FC<TransactionConfirmationViewProps>;
|