@dynamic-labs/sdk-react-core 4.5.1 → 4.5.3
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 +27 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/index.cjs +1 -0
- package/src/index.js +1 -0
- package/src/lib/Main.cjs +1 -0
- package/src/lib/Main.js +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -0
- package/src/lib/components/Captcha/Captcha.cjs +1 -0
- package/src/lib/components/Captcha/Captcha.js +1 -0
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +1 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +1 -0
- package/src/lib/components/EmailForm/EmailForm.cjs +1 -0
- package/src/lib/components/EmailForm/EmailForm.js +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +1 -0
- package/src/lib/components/Modal/Modal.js +1 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +1 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +12 -40
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.js +13 -41
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +2 -4
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +1 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.cjs +67 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.d.ts +14 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.js +63 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.cjs → NetworkSwitchControl/NetworkSwitchControl.cjs} +28 -36
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/NetworkSwitchControl.d.ts +16 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.js → NetworkSwitchControl/NetworkSwitchControl.js} +28 -35
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
- package/src/lib/components/OverlayCardBase/OverlayCardBase.cjs +1 -0
- package/src/lib/components/OverlayCardBase/OverlayCardBase.js +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +1 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +1 -0
- package/src/lib/components/Portal/Portal.cjs +4 -2
- package/src/lib/components/Portal/Portal.js +4 -2
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +1 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +1 -0
- package/src/lib/components/QRCode/QRCode.cjs +1 -0
- package/src/lib/components/QRCode/QRCode.js +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +1 -0
- package/src/lib/components/RenderView/RenderView.cjs +1 -0
- package/src/lib/components/RenderView/RenderView.js +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +1 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +1 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +1 -0
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +1 -0
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -0
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.js +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -0
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.cjs +1 -0
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.js +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -0
- package/src/lib/components/Toolkit/Toolkit.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/src/lib/components/Tooltip/Tooltip.js +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.js +1 -0
- package/src/lib/components/TransactionCard/SendBalanceTransactionCard.cjs +1 -0
- package/src/lib/components/TransactionCard/SendBalanceTransactionCard.js +1 -0
- package/src/lib/components/TransactionCard/TransactionCard.cjs +1 -0
- package/src/lib/components/TransactionCard/TransactionCard.js +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +1 -0
- package/src/lib/components/UserProfile/UserProfile.js +1 -0
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.cjs +1 -0
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -0
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.cjs +1 -0
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.js +1 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.cjs +1 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.js +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -8
- package/src/lib/context/DynamicContext/DynamicContext.js +4 -9
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +1 -0
- package/src/lib/context/LoadingContext/LoadingContext.cjs +1 -0
- package/src/lib/context/LoadingContext/LoadingContext.js +1 -0
- package/src/lib/context/MockContext/MockContext.cjs +1 -0
- package/src/lib/context/MockContext/MockContext.js +1 -0
- package/src/lib/context/OnrampContext/OnrampContext.cjs +1 -0
- package/src/lib/context/OnrampContext/OnrampContext.js +1 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +1 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.cjs +1 -0
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.js +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -0
- package/src/lib/locale/en/translation.cjs +13 -29
- package/src/lib/locale/en/translation.d.ts +11 -27
- package/src/lib/locale/en/translation.js +13 -29
- package/src/lib/modals/AddNetworkModal/AddNetworkModal.cjs +1 -0
- package/src/lib/modals/AddNetworkModal/AddNetworkModal.js +1 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +1 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -0
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +2 -1
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -0
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/{currency.cjs → wallet-with-sunglasses.cjs} +14 -26
- package/src/lib/shared/assets/wallet-with-sunglasses.js +34 -0
- package/src/lib/store/index.d.ts +1 -0
- package/src/lib/store/state/nonce/nonce.cjs +1 -0
- package/src/lib/store/state/nonce/nonce.js +1 -0
- package/src/lib/store/state/projectSettings/projectSettings.cjs +1 -0
- package/src/lib/store/state/projectSettings/projectSettings.js +1 -0
- package/src/lib/store/utils/didStoreVersionChanged/didStoreVersionChanged.cjs +13 -0
- package/src/lib/store/utils/didStoreVersionChanged/didStoreVersionChanged.d.ts +2 -0
- package/src/lib/store/utils/didStoreVersionChanged/didStoreVersionChanged.js +8 -0
- package/src/lib/store/utils/didStoreVersionChanged/index.d.ts +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +2 -4
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -2
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +2 -4
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +1 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +1 -0
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +1 -0
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +1 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +1 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +1 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +3 -1
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +3 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +1 -0
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.cjs +1 -0
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.js +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.cjs +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.js +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/useFund/useFund.cjs +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/useFund/useFund.js +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/usePromptAmountAndFundWithWallet/usePromptAmountAndFundWithWallet.cjs +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/usePromptAmountAndFundWithWallet/usePromptAmountAndFundWithWallet.js +1 -0
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.cjs +1 -0
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.js +1 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +1 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +1 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +1 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +1 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +1 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +1 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +1 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +1 -0
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +5 -0
- package/src/lib/utils/hooks/useMfa/useMfa.js +5 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +24 -7
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.d.ts +1 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +24 -7
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +1 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +1 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +1 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +1 -0
- package/src/lib/utils/hooks/useOpenFundingOptions/useOpenFundingOptions.cjs +1 -0
- package/src/lib/utils/hooks/useOpenFundingOptions/useOpenFundingOptions.js +1 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +1 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +1 -0
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.cjs +1 -0
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.js +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +1 -0
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +1 -0
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +1 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +1 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +1 -0
- package/src/lib/utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs +1 -0
- package/src/lib/utils/hooks/useSubdomainCheck/useSubdomainCheck.js +1 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -0
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.cjs +1 -0
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.js +1 -0
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.cjs +1 -0
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.js +1 -0
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.cjs +1 -0
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.js +1 -0
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.cjs +1 -0
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.js +1 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +1 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +1 -0
- package/src/lib/utils/hooks/useTransactionSimulation/classes/useBaseTransactionSimulation.cjs +1 -0
- package/src/lib/utils/hooks/useTransactionSimulation/classes/useBaseTransactionSimulation.js +1 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +1 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +1 -0
- package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.cjs +1 -0
- package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.js +1 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +1 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +1 -0
- package/src/lib/utils/hooks/useValidateSession/handleStoreVersionChanged/handleStoreVersionChanged.cjs +10 -3
- package/src/lib/utils/hooks/useValidateSession/handleStoreVersionChanged/handleStoreVersionChanged.d.ts +1 -3
- package/src/lib/utils/hooks/useValidateSession/handleStoreVersionChanged/handleStoreVersionChanged.js +10 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +6 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +6 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +1 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +1 -0
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +1 -0
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useHandleWalletItem/useHandleWalletItem.cjs +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useHandleWalletItem/useHandleWalletItem.js +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -0
- package/src/lib/utils/hooks/useWalletList/useWalletList.cjs +1 -0
- package/src/lib/utils/hooks/useWalletList/useWalletList.js +1 -0
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +1 -0
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
- package/src/lib/views/AccessBlockedView/AccessBlockedView.cjs +1 -0
- package/src/lib/views/AccessBlockedView/AccessBlockedView.js +1 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +1 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -0
- package/src/lib/views/AddNetworkView/AddNetworkView.cjs +1 -0
- package/src/lib/views/AddNetworkView/AddNetworkView.js +1 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +1 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +3 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +3 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +1 -0
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +1 -0
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -0
- package/src/lib/views/EmbeddedDeleteView/EmbeddedDeleteView.cjs +1 -0
- package/src/lib/views/EmbeddedDeleteView/EmbeddedDeleteView.js +1 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +1 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +1 -0
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.cjs +1 -0
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.js +1 -0
- package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.cjs +1 -0
- package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.js +1 -0
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +1 -0
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +1 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +1 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +1 -0
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +1 -0
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +1 -0
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +2 -1
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +2 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -0
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -0
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.cjs +1 -0
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.js +1 -0
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +1 -0
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +1 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +1 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +1 -0
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.cjs +1 -0
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.js +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +4 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +4 -4
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -0
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -0
- package/src/lib/views/NoAccess/NoAccess.js +1 -0
- package/src/lib/views/NoAccess/useNoAccessText.cjs +1 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +1 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +1 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +1 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.cjs +1 -0
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.js +1 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -0
- package/src/lib/views/SmsVerification/SmsVerification.cjs +1 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
- package/src/lib/views/SubdomainField/SubdomainField.cjs +1 -0
- package/src/lib/views/SubdomainField/SubdomainField.js +1 -0
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs +1 -0
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js +1 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +1 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +1 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +1 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +1 -0
- package/src/lib/views/SyncWalletView/SyncWalletView.cjs +1 -0
- package/src/lib/views/SyncWalletView/SyncWalletView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +1 -0
- package/src/lib/views/WalletAlreadyExistsView/WalletAlreadyExistsView.cjs +1 -0
- package/src/lib/views/WalletAlreadyExistsView/WalletAlreadyExistsView.js +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +1 -0
- package/src/lib/views/WalletList/WalletList.js +1 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +1 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +1 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -0
- package/src/lib/views/viewToComponentMap.cjs +1 -0
- package/src/lib/views/viewToComponentMap.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +1 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +7 -9
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +8 -10
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +3 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +3 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletDetailsCard/WalletDetailsCard.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletDetailsCard/WalletDetailsCard.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/DepositView/DepositView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/DepositView/DepositView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.js +3 -2
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/components/utils/sort.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/components/utils/sort.d.ts +1 -3
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/components/utils/sort.js +3 -3
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs +99 -49
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js +95 -45
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.cjs +22 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.js +22 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.js +4 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.cjs +27 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.js +23 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.cjs +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.js +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.cjs +33 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.js +29 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.cjs +26 -27
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.d.ts +6 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.js +26 -27
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.cjs +32 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.js +28 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.cjs +28 -15
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.js +28 -15
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.cjs +20 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.js +16 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +4 -6
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +4 -6
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/OnrampWidget/OnrampWidget.cjs +1 -0
- package/src/lib/widgets/OnrampWidget/OnrampWidget.js +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +0 -23
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/index.d.ts +0 -1
- package/src/lib/shared/assets/currency.js +0 -46
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var reactI18next = require('react-i18next');
|
|
8
|
-
var Image = require('../../../../../../components/Image/Image.cjs');
|
|
9
7
|
var classNames = require('../../../../../../utils/functions/classNames/classNames.cjs');
|
|
10
8
|
require('../../../../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
11
9
|
require('../../../../../../components/Alert/Alert.cjs');
|
|
@@ -55,7 +53,9 @@ require('../../../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
55
53
|
require('../../../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
56
54
|
require('@dynamic-labs/rpc-providers');
|
|
57
55
|
require('../../../../../../store/state/loadingAndLifecycle.cjs');
|
|
56
|
+
require('@dynamic-labs/store');
|
|
58
57
|
require('../../../../../../store/state/walletOptions/walletOptions.cjs');
|
|
58
|
+
require('react-i18next');
|
|
59
59
|
var Typography = require('../../../../../../components/Typography/Typography.cjs');
|
|
60
60
|
require('../../../../../../context/FooterAnimationContext/index.cjs');
|
|
61
61
|
require('../../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
@@ -69,6 +69,7 @@ require('react-focus-lock');
|
|
|
69
69
|
require('../../../../context/DynamicWidgetContext.cjs');
|
|
70
70
|
require('../../../../../../components/IconButton/IconButton.cjs');
|
|
71
71
|
require('../../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
72
|
+
var Image = require('../../../../../../components/Image/Image.cjs');
|
|
72
73
|
require('formik');
|
|
73
74
|
require('../../../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs');
|
|
74
75
|
require('../../../../../../store/state/sendBalances.cjs');
|
|
@@ -93,18 +94,29 @@ require('../../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
93
94
|
require('../../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
94
95
|
require('../../../../../../components/Popper/Popper/Popper.cjs');
|
|
95
96
|
require('../../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
97
|
+
var calculateFiatBalance = require('../../utils/calculateFiatBalance/calculateFiatBalance.cjs');
|
|
96
98
|
var formatValue = require('../../utils/formatValue/formatValue.cjs');
|
|
99
|
+
var isFiatToken = require('../../utils/isFiatToken/isFiatToken.cjs');
|
|
97
100
|
|
|
98
|
-
const TokenOption = ({ token, isSelected, onSelect, }) => {
|
|
99
|
-
const
|
|
101
|
+
const TokenOption = ({ token, isSelected, onSelect, showTokenAsPrimary, exchangeRates, }) => {
|
|
102
|
+
const fiatBalance = formatValue.formatValue({
|
|
103
|
+
maxDecimals: 2,
|
|
104
|
+
symbol: 'USD',
|
|
105
|
+
value: calculateFiatBalance.calculateFiatBalance(token, exchangeRates),
|
|
106
|
+
withFixedZeros: true,
|
|
107
|
+
});
|
|
108
|
+
const tokenBalance = formatValue.formatValue({
|
|
109
|
+
maxDecimals: isFiatToken.isFiatOrStablecoin(token.symbol) ? 2 : 6,
|
|
110
|
+
symbol: token.symbol,
|
|
111
|
+
value: token.balance,
|
|
112
|
+
withFixedZeros: isFiatToken.isFiatOrStablecoin(token.symbol),
|
|
113
|
+
});
|
|
114
|
+
const [primaryBalance, secondaryBalance] = showTokenAsPrimary
|
|
115
|
+
? [tokenBalance, fiatBalance]
|
|
116
|
+
: [fiatBalance, tokenBalance];
|
|
100
117
|
return (jsxRuntime.jsxs("div", { className: classNames.classNames('token-option', {
|
|
101
118
|
'token-option--selected': isSelected,
|
|
102
|
-
}), onClick: onSelect, "data-testid": `token-option-${token.symbol}`, children: [token.logoURI ? (jsxRuntime.jsx(Image.Image, { src: token.logoURI, alt: token.symbol, className: 'token-option__icon', dataTestId: 'token-option-icon' })) : (jsxRuntime.jsx("div", { className: 'token-option__icon--skeleton', "data-testid": 'token-option__icon--skeleton' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', className: 'token-option__name', children: token.name }), jsxRuntime.jsxs("div", { className: 'token-option__balance-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_small',
|
|
103
|
-
maxDecimals: 8,
|
|
104
|
-
symbol: token.symbol,
|
|
105
|
-
value: token.balance,
|
|
106
|
-
withFixedZeros: token.symbol === 'USDC',
|
|
107
|
-
}) }) })] })] }));
|
|
119
|
+
}), onClick: onSelect, "data-testid": `token-option-${token.symbol}`, children: [token.logoURI ? (jsxRuntime.jsx(Image.Image, { src: token.logoURI, alt: token.symbol, className: 'token-option__icon', dataTestId: 'token-option-icon' })) : (jsxRuntime.jsx("div", { className: 'token-option__icon--skeleton', "data-testid": 'token-option__icon--skeleton' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', className: 'token-option__name', children: token.name }), jsxRuntime.jsxs("div", { className: 'token-option__balance-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', weight: 'medium', "data-testid": 'token-option__primary-balance', children: primaryBalance }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'body_small', color: 'secondary', "data-testid": 'token-option__secondary-balance', children: secondaryBalance })] })] }));
|
|
108
120
|
};
|
|
109
121
|
|
|
110
122
|
exports.TokenOption = TokenOption;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { Image } from '../../../../../../components/Image/Image.js';
|
|
5
3
|
import { classNames } from '../../../../../../utils/functions/classNames/classNames.js';
|
|
6
4
|
import '../../../../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
7
5
|
import '../../../../../../components/Alert/Alert.js';
|
|
@@ -51,7 +49,9 @@ import '../../../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
|
51
49
|
import '../../../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
52
50
|
import '@dynamic-labs/rpc-providers';
|
|
53
51
|
import '../../../../../../store/state/loadingAndLifecycle.js';
|
|
52
|
+
import '@dynamic-labs/store';
|
|
54
53
|
import '../../../../../../store/state/walletOptions/walletOptions.js';
|
|
54
|
+
import 'react-i18next';
|
|
55
55
|
import { Typography } from '../../../../../../components/Typography/Typography.js';
|
|
56
56
|
import '../../../../../../context/FooterAnimationContext/index.js';
|
|
57
57
|
import '../../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
@@ -65,6 +65,7 @@ import 'react-focus-lock';
|
|
|
65
65
|
import '../../../../context/DynamicWidgetContext.js';
|
|
66
66
|
import '../../../../../../components/IconButton/IconButton.js';
|
|
67
67
|
import '../../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
68
|
+
import { Image } from '../../../../../../components/Image/Image.js';
|
|
68
69
|
import 'formik';
|
|
69
70
|
import '../../../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
70
71
|
import '../../../../../../store/state/sendBalances.js';
|
|
@@ -89,18 +90,29 @@ import '../../../../../../components/InlineWidget/InlineWidget.js';
|
|
|
89
90
|
import '../../../../../../components/IsBrowser/IsBrowser.js';
|
|
90
91
|
import '../../../../../../components/Popper/Popper/Popper.js';
|
|
91
92
|
import '../../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
93
|
+
import { calculateFiatBalance } from '../../utils/calculateFiatBalance/calculateFiatBalance.js';
|
|
92
94
|
import { formatValue } from '../../utils/formatValue/formatValue.js';
|
|
95
|
+
import { isFiatOrStablecoin } from '../../utils/isFiatToken/isFiatToken.js';
|
|
93
96
|
|
|
94
|
-
const TokenOption = ({ token, isSelected, onSelect, }) => {
|
|
95
|
-
const
|
|
97
|
+
const TokenOption = ({ token, isSelected, onSelect, showTokenAsPrimary, exchangeRates, }) => {
|
|
98
|
+
const fiatBalance = formatValue({
|
|
99
|
+
maxDecimals: 2,
|
|
100
|
+
symbol: 'USD',
|
|
101
|
+
value: calculateFiatBalance(token, exchangeRates),
|
|
102
|
+
withFixedZeros: true,
|
|
103
|
+
});
|
|
104
|
+
const tokenBalance = formatValue({
|
|
105
|
+
maxDecimals: isFiatOrStablecoin(token.symbol) ? 2 : 6,
|
|
106
|
+
symbol: token.symbol,
|
|
107
|
+
value: token.balance,
|
|
108
|
+
withFixedZeros: isFiatOrStablecoin(token.symbol),
|
|
109
|
+
});
|
|
110
|
+
const [primaryBalance, secondaryBalance] = showTokenAsPrimary
|
|
111
|
+
? [tokenBalance, fiatBalance]
|
|
112
|
+
: [fiatBalance, tokenBalance];
|
|
96
113
|
return (jsxs("div", { className: classNames('token-option', {
|
|
97
114
|
'token-option--selected': isSelected,
|
|
98
|
-
}), onClick: onSelect, "data-testid": `token-option-${token.symbol}`, children: [token.logoURI ? (jsx(Image, { src: token.logoURI, alt: token.symbol, className: 'token-option__icon', dataTestId: 'token-option-icon' })) : (jsx("div", { className: 'token-option__icon--skeleton', "data-testid": 'token-option__icon--skeleton' })), jsx(Typography, { variant: 'body_normal', className: 'token-option__name', children: token.name }), jsxs("div", { className: 'token-option__balance-container', children: [jsx(Typography, { variant: 'body_small',
|
|
99
|
-
maxDecimals: 8,
|
|
100
|
-
symbol: token.symbol,
|
|
101
|
-
value: token.balance,
|
|
102
|
-
withFixedZeros: token.symbol === 'USDC',
|
|
103
|
-
}) }) })] })] }));
|
|
115
|
+
}), onClick: onSelect, "data-testid": `token-option-${token.symbol}`, children: [token.logoURI ? (jsx(Image, { src: token.logoURI, alt: token.symbol, className: 'token-option__icon', dataTestId: 'token-option-icon' })) : (jsx("div", { className: 'token-option__icon--skeleton', "data-testid": 'token-option__icon--skeleton' })), jsx(Typography, { variant: 'body_normal', className: 'token-option__name', children: token.name }), jsxs("div", { className: 'token-option__balance-container', children: [jsx(Typography, { variant: 'body_small', weight: 'medium', "data-testid": 'token-option__primary-balance', children: primaryBalance }), jsx(Typography, { weight: 'medium', variant: 'body_small', color: 'secondary', "data-testid": 'token-option__secondary-balance', children: secondaryBalance })] })] }));
|
|
104
116
|
};
|
|
105
117
|
|
|
106
118
|
export { TokenOption };
|
|
@@ -57,6 +57,7 @@ require('../../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
57
57
|
require('../../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
58
58
|
require('@dynamic-labs/rpc-providers');
|
|
59
59
|
require('../../../../../store/state/loadingAndLifecycle.cjs');
|
|
60
|
+
require('@dynamic-labs/store');
|
|
60
61
|
require('../../../../../store/state/walletOptions/walletOptions.cjs');
|
|
61
62
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
62
63
|
require('../../../../../context/FooterAnimationContext/index.cjs');
|
|
@@ -81,6 +82,7 @@ require('../../../../../components/OverlayCard/OverlayCard.cjs');
|
|
|
81
82
|
require('../../../../../views/TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
82
83
|
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
83
84
|
require('../../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
85
|
+
var LinearGradientFrame = require('../../../../../components/LinearGradientFrame/LinearGradientFrame.cjs');
|
|
84
86
|
require('../../../../../context/OnrampContext/OnrampContext.cjs');
|
|
85
87
|
require('qrcode');
|
|
86
88
|
require('../ReceiveExternalWalletFunds.cjs');
|
|
@@ -97,10 +99,9 @@ require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
97
99
|
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
98
100
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
99
101
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
100
|
-
var LinearGradientFrame = require('../../../../../components/LinearGradientFrame/LinearGradientFrame.cjs');
|
|
101
102
|
var TokenOption = require('./TokenOption/TokenOption.cjs');
|
|
102
103
|
|
|
103
|
-
const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, className, style, }) => {
|
|
104
|
+
const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, className, style, showTokenAsPrimary, exchangeRates, }) => {
|
|
104
105
|
const { t } = reactI18next.useTranslation();
|
|
105
106
|
const [search$1, setSearch] = React.useState('');
|
|
106
107
|
const filteredTokens = tokens.filter((token) => {
|
|
@@ -114,7 +115,7 @@ const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, class
|
|
|
114
115
|
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', id: 'close-button', "data-testid": 'close-button', onClick: onClose, children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
115
116
|
return (jsxRuntime.jsxs("div", { className: classNames.classNames('token-select', className), style: style, "data-testid": 'token-select', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { variant: 'title', children: t(noAssets
|
|
116
117
|
? 'dyn_wallet_funding.from_external_wallet.token_select.no_assets_title'
|
|
117
|
-
: 'dyn_wallet_funding.from_external_wallet.token_select.title') }) }), noAssets && (jsxRuntime.jsxs("div", { className: 'token-select__no-assets', children: [jsxRuntime.jsx(LinearGradientFrame.LinearGradientFrame, { Icon: jsxRuntime.jsx(walletIllustration.ReactComponent, {}) }), jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'secondary', weight: 'medium', children: t('dyn_wallet_funding.from_external_wallet.token_select.no_assets_description') })] })), !noAssets && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("label", { htmlFor: 'token-select-search', className: 'token-select__search', children: [jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', size: 'small', children: jsxRuntime.jsx(search.ReactComponent, {}) }), jsxRuntime.jsx("input", { id: 'token-select-search', placeholder: t('dyn_wallet_funding.from_external_wallet.token_select.search_placeholder'), className: 'token-select__search__input', value: search$1, onChange: (e) => setSearch(e.target.value) })] }), jsxRuntime.jsx("div", { className: 'token-select__tokens', children: filteredTokens.map((token) => (jsxRuntime.jsx(TokenOption.TokenOption, { token: token, isSelected: token.symbol === currentToken, onSelect: () => onSelectToken(token.symbol) }, token.symbol))) })] }))] }));
|
|
118
|
+
: 'dyn_wallet_funding.from_external_wallet.token_select.title') }) }), noAssets && (jsxRuntime.jsxs("div", { className: 'token-select__no-assets', children: [jsxRuntime.jsx(LinearGradientFrame.LinearGradientFrame, { Icon: jsxRuntime.jsx(walletIllustration.ReactComponent, {}) }), jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'secondary', weight: 'medium', children: t('dyn_wallet_funding.from_external_wallet.token_select.no_assets_description') })] })), !noAssets && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("label", { htmlFor: 'token-select-search', className: 'token-select__search', children: [jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', size: 'small', children: jsxRuntime.jsx(search.ReactComponent, {}) }), jsxRuntime.jsx("input", { id: 'token-select-search', placeholder: t('dyn_wallet_funding.from_external_wallet.token_select.search_placeholder'), className: 'token-select__search__input', value: search$1, onChange: (e) => setSearch(e.target.value) })] }), jsxRuntime.jsx("div", { className: 'token-select__tokens', children: filteredTokens.map((token) => (jsxRuntime.jsx(TokenOption.TokenOption, { token: token, isSelected: token.symbol === currentToken, onSelect: () => onSelectToken(token.symbol), showTokenAsPrimary: showTokenAsPrimary, exchangeRates: exchangeRates }, token.symbol))) })] }))] }));
|
|
118
119
|
};
|
|
119
120
|
|
|
120
121
|
exports.TokenSelectScreen = TokenSelectScreen;
|
|
@@ -6,6 +6,8 @@ type TokenSelectScreenProps = ClassStyleProps & {
|
|
|
6
6
|
onSelectToken: (token: FundingTokenData['symbol']) => void;
|
|
7
7
|
tokens: FundingTokenData[];
|
|
8
8
|
currentToken: FundingTokenData['symbol'];
|
|
9
|
+
showTokenAsPrimary: boolean;
|
|
10
|
+
exchangeRates: Record<string, number>;
|
|
9
11
|
};
|
|
10
12
|
export declare const TokenSelectScreen: FC<TokenSelectScreenProps>;
|
|
11
13
|
export {};
|
|
@@ -53,6 +53,7 @@ import '../../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
|
53
53
|
import '../../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
54
54
|
import '@dynamic-labs/rpc-providers';
|
|
55
55
|
import '../../../../../store/state/loadingAndLifecycle.js';
|
|
56
|
+
import '@dynamic-labs/store';
|
|
56
57
|
import '../../../../../store/state/walletOptions/walletOptions.js';
|
|
57
58
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
58
59
|
import '../../../../../context/FooterAnimationContext/index.js';
|
|
@@ -77,6 +78,7 @@ import '../../../../../components/OverlayCard/OverlayCard.js';
|
|
|
77
78
|
import '../../../../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
78
79
|
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
79
80
|
import '../../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
81
|
+
import { LinearGradientFrame } from '../../../../../components/LinearGradientFrame/LinearGradientFrame.js';
|
|
80
82
|
import '../../../../../context/OnrampContext/OnrampContext.js';
|
|
81
83
|
import 'qrcode';
|
|
82
84
|
import '../ReceiveExternalWalletFunds.js';
|
|
@@ -93,10 +95,9 @@ import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
|
93
95
|
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
94
96
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
95
97
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
96
|
-
import { LinearGradientFrame } from '../../../../../components/LinearGradientFrame/LinearGradientFrame.js';
|
|
97
98
|
import { TokenOption } from './TokenOption/TokenOption.js';
|
|
98
99
|
|
|
99
|
-
const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, className, style, }) => {
|
|
100
|
+
const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, className, style, showTokenAsPrimary, exchangeRates, }) => {
|
|
100
101
|
const { t } = useTranslation();
|
|
101
102
|
const [search, setSearch] = useState('');
|
|
102
103
|
const filteredTokens = tokens.filter((token) => {
|
|
@@ -110,7 +111,7 @@ const TokenSelectScreen = ({ onClose, onSelectToken, currentToken, tokens, class
|
|
|
110
111
|
const closeButton = (jsx(IconButton, { type: 'button', id: 'close-button', "data-testid": 'close-button', onClick: onClose, children: jsx(SvgClose, {}) }));
|
|
111
112
|
return (jsxs("div", { className: classNames('token-select', className), style: style, "data-testid": 'token-select', children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { variant: 'title', children: t(noAssets
|
|
112
113
|
? 'dyn_wallet_funding.from_external_wallet.token_select.no_assets_title'
|
|
113
|
-
: 'dyn_wallet_funding.from_external_wallet.token_select.title') }) }), noAssets && (jsxs("div", { className: 'token-select__no-assets', children: [jsx(LinearGradientFrame, { Icon: jsx(SvgWalletIllustration, {}) }), jsx(Typography, { variant: 'title', color: 'secondary', weight: 'medium', children: t('dyn_wallet_funding.from_external_wallet.token_select.no_assets_description') })] })), !noAssets && (jsxs(Fragment, { children: [jsxs("label", { htmlFor: 'token-select-search', className: 'token-select__search', children: [jsx(Icon, { color: 'text-tertiary', size: 'small', children: jsx(SvgSearch, {}) }), jsx("input", { id: 'token-select-search', placeholder: t('dyn_wallet_funding.from_external_wallet.token_select.search_placeholder'), className: 'token-select__search__input', value: search, onChange: (e) => setSearch(e.target.value) })] }), jsx("div", { className: 'token-select__tokens', children: filteredTokens.map((token) => (jsx(TokenOption, { token: token, isSelected: token.symbol === currentToken, onSelect: () => onSelectToken(token.symbol) }, token.symbol))) })] }))] }));
|
|
114
|
+
: 'dyn_wallet_funding.from_external_wallet.token_select.title') }) }), noAssets && (jsxs("div", { className: 'token-select__no-assets', children: [jsx(LinearGradientFrame, { Icon: jsx(SvgWalletIllustration, {}) }), jsx(Typography, { variant: 'title', color: 'secondary', weight: 'medium', children: t('dyn_wallet_funding.from_external_wallet.token_select.no_assets_description') })] })), !noAssets && (jsxs(Fragment, { children: [jsxs("label", { htmlFor: 'token-select-search', className: 'token-select__search', children: [jsx(Icon, { color: 'text-tertiary', size: 'small', children: jsx(SvgSearch, {}) }), jsx("input", { id: 'token-select-search', placeholder: t('dyn_wallet_funding.from_external_wallet.token_select.search_placeholder'), className: 'token-select__search__input', value: search, onChange: (e) => setSearch(e.target.value) })] }), jsx("div", { className: 'token-select__tokens', children: filteredTokens.map((token) => (jsx(TokenOption, { token: token, isSelected: token.symbol === currentToken, onSelect: () => onSelectToken(token.symbol), showTokenAsPrimary: showTokenAsPrimary, exchangeRates: exchangeRates }, token.symbol))) })] }))] }));
|
|
114
115
|
};
|
|
115
116
|
|
|
116
117
|
export { TokenSelectScreen };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var isFiatToken = require('../isFiatToken/isFiatToken.cjs');
|
|
7
|
+
|
|
8
|
+
const calculateFiatBalance = (token, exchangeRates) => {
|
|
9
|
+
// If there is no token, return 0 instead of undefined because token is only undefined
|
|
10
|
+
// when and only when user has no balance for it.
|
|
11
|
+
if (!token)
|
|
12
|
+
return 0;
|
|
13
|
+
if (token.fiatBalance)
|
|
14
|
+
return token.fiatBalance;
|
|
15
|
+
// Fixing price to 1 for stablecoins to match user expectation
|
|
16
|
+
if (isFiatToken.isFiatOrStablecoin(token.symbol))
|
|
17
|
+
return token.balance;
|
|
18
|
+
if (token.price)
|
|
19
|
+
return token.balance * token.price;
|
|
20
|
+
if (exchangeRates[token.symbol])
|
|
21
|
+
return token.balance * exchangeRates[token.symbol];
|
|
22
|
+
// Here we return undefined instead of 0 because we know user HAS balance for this token,
|
|
23
|
+
// but we cannot calculate the fiat balance, so show as unavailable.
|
|
24
|
+
return undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.calculateFiatBalance = calculateFiatBalance;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { isFiatOrStablecoin } from '../isFiatToken/isFiatToken.js';
|
|
3
|
+
|
|
4
|
+
const calculateFiatBalance = (token, exchangeRates) => {
|
|
5
|
+
// If there is no token, return 0 instead of undefined because token is only undefined
|
|
6
|
+
// when and only when user has no balance for it.
|
|
7
|
+
if (!token)
|
|
8
|
+
return 0;
|
|
9
|
+
if (token.fiatBalance)
|
|
10
|
+
return token.fiatBalance;
|
|
11
|
+
// Fixing price to 1 for stablecoins to match user expectation
|
|
12
|
+
if (isFiatOrStablecoin(token.symbol))
|
|
13
|
+
return token.balance;
|
|
14
|
+
if (token.price)
|
|
15
|
+
return token.balance * token.price;
|
|
16
|
+
if (exchangeRates[token.symbol])
|
|
17
|
+
return token.balance * exchangeRates[token.symbol];
|
|
18
|
+
// Here we return undefined instead of 0 because we know user HAS balance for this token,
|
|
19
|
+
// but we cannot calculate the fiat balance, so show as unavailable.
|
|
20
|
+
return undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { calculateFiatBalance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calculateFiatBalance';
|
package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.cjs
CHANGED
|
@@ -10,6 +10,8 @@ const convertToFiat = (amount, token, exchangeRates) => {
|
|
|
10
10
|
if (amount === '')
|
|
11
11
|
return '';
|
|
12
12
|
const value = parseFloat(amount);
|
|
13
|
+
if (isNaN(value))
|
|
14
|
+
return '';
|
|
13
15
|
return exchangeRates[token] !== undefined
|
|
14
16
|
? roundToMaxDisplayLength(value * exchangeRates[token])
|
|
15
17
|
: undefined;
|
|
@@ -18,6 +20,8 @@ const convertFromFiat = (amount, token, exchangeRates) => {
|
|
|
18
20
|
if (amount === '')
|
|
19
21
|
return '';
|
|
20
22
|
const value = parseFloat(amount);
|
|
23
|
+
if (isNaN(value))
|
|
24
|
+
return '';
|
|
21
25
|
return exchangeRates[token] !== undefined
|
|
22
26
|
? roundToMaxDisplayLength(value / exchangeRates[token])
|
|
23
27
|
: undefined;
|
package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.js
CHANGED
|
@@ -6,6 +6,8 @@ const convertToFiat = (amount, token, exchangeRates) => {
|
|
|
6
6
|
if (amount === '')
|
|
7
7
|
return '';
|
|
8
8
|
const value = parseFloat(amount);
|
|
9
|
+
if (isNaN(value))
|
|
10
|
+
return '';
|
|
9
11
|
return exchangeRates[token] !== undefined
|
|
10
12
|
? roundToMaxDisplayLength(value * exchangeRates[token])
|
|
11
13
|
: undefined;
|
|
@@ -14,6 +16,8 @@ const convertFromFiat = (amount, token, exchangeRates) => {
|
|
|
14
16
|
if (amount === '')
|
|
15
17
|
return '';
|
|
16
18
|
const value = parseFloat(amount);
|
|
19
|
+
if (isNaN(value))
|
|
20
|
+
return '';
|
|
17
21
|
return exchangeRates[token] !== undefined
|
|
18
22
|
? roundToMaxDisplayLength(value / exchangeRates[token])
|
|
19
23
|
: undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Converts a scientific notation number to a decimal number.
|
|
8
|
+
*
|
|
9
|
+
* It might be simpler to just call "toFixed", however, "toFixed" will return
|
|
10
|
+
* incorrect values for numbers that are too large or too small.
|
|
11
|
+
* Try (9.1).toFixed(16) and see for yourself.
|
|
12
|
+
*/
|
|
13
|
+
const convertScientificToDecimal = (value) => {
|
|
14
|
+
const str = value.toString();
|
|
15
|
+
// If the number is already in standard form (no 'e'), return it
|
|
16
|
+
if (!str.includes('e'))
|
|
17
|
+
return str;
|
|
18
|
+
const [base, exponent] = str.split('e').map(parseFloat);
|
|
19
|
+
const isNegativeExp = exponent < 0;
|
|
20
|
+
const absoluteExponent = Math.abs(exponent);
|
|
21
|
+
const absoluteBase = Math.abs(base).toString();
|
|
22
|
+
if (isNegativeExp) {
|
|
23
|
+
// Move the decimal point to the left
|
|
24
|
+
const newNumber = '0.' + '0'.repeat(absoluteExponent - 1) + absoluteBase.replace('.', '');
|
|
25
|
+
return value < 0 ? '-' + newNumber : newNumber;
|
|
26
|
+
}
|
|
27
|
+
// Move the decimal point to the right
|
|
28
|
+
const [intPart, decimalPart = ''] = absoluteBase.split('.');
|
|
29
|
+
const newNumber = intPart + decimalPart.padEnd(absoluteExponent, '0');
|
|
30
|
+
return value < 0 ? '-' + newNumber : newNumber;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.convertScientificToDecimal = convertScientificToDecimal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a scientific notation number to a decimal number.
|
|
3
|
+
*
|
|
4
|
+
* It might be simpler to just call "toFixed", however, "toFixed" will return
|
|
5
|
+
* incorrect values for numbers that are too large or too small.
|
|
6
|
+
* Try (9.1).toFixed(16) and see for yourself.
|
|
7
|
+
*/
|
|
8
|
+
export declare const convertScientificToDecimal: (value: number) => string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
/**
|
|
3
|
+
* Converts a scientific notation number to a decimal number.
|
|
4
|
+
*
|
|
5
|
+
* It might be simpler to just call "toFixed", however, "toFixed" will return
|
|
6
|
+
* incorrect values for numbers that are too large or too small.
|
|
7
|
+
* Try (9.1).toFixed(16) and see for yourself.
|
|
8
|
+
*/
|
|
9
|
+
const convertScientificToDecimal = (value) => {
|
|
10
|
+
const str = value.toString();
|
|
11
|
+
// If the number is already in standard form (no 'e'), return it
|
|
12
|
+
if (!str.includes('e'))
|
|
13
|
+
return str;
|
|
14
|
+
const [base, exponent] = str.split('e').map(parseFloat);
|
|
15
|
+
const isNegativeExp = exponent < 0;
|
|
16
|
+
const absoluteExponent = Math.abs(exponent);
|
|
17
|
+
const absoluteBase = Math.abs(base).toString();
|
|
18
|
+
if (isNegativeExp) {
|
|
19
|
+
// Move the decimal point to the left
|
|
20
|
+
const newNumber = '0.' + '0'.repeat(absoluteExponent - 1) + absoluteBase.replace('.', '');
|
|
21
|
+
return value < 0 ? '-' + newNumber : newNumber;
|
|
22
|
+
}
|
|
23
|
+
// Move the decimal point to the right
|
|
24
|
+
const [intPart, decimalPart = ''] = absoluteBase.split('.');
|
|
25
|
+
const newNumber = intPart + decimalPart.padEnd(absoluteExponent, '0');
|
|
26
|
+
return value < 0 ? '-' + newNumber : newNumber;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { convertScientificToDecimal };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './convertScientificToDecimal';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var consts = require('../../consts.cjs');
|
|
7
|
+
var convertScientificToDecimal = require('./convertScientificToDecimal/convertScientificToDecimal.cjs');
|
|
7
8
|
|
|
8
9
|
/* eslint-disable prefer-destructuring */
|
|
9
10
|
const categorizeValue = (value) => {
|
|
@@ -32,38 +33,36 @@ const formatValue = ({ value, symbol, withFixedZeros = false, maxDecimals, }) =>
|
|
|
32
33
|
if (value === undefined)
|
|
33
34
|
return undefined;
|
|
34
35
|
const parsed = value === '' ? 0 : parseFloat(value.toString());
|
|
36
|
+
// Deal with 0 values so we can assume value is not zero from here on
|
|
35
37
|
if (parsed === 0)
|
|
36
|
-
return addSymbol(withFixedZeros ?
|
|
37
|
-
// When value is inferior to 0.01 and withFixedZeros is true, we would return 0.00,
|
|
38
|
-
// so to avoid this misleading behavior, we return a less than 0.01 value
|
|
39
|
-
if (withFixedZeros && parsed < 0.0099)
|
|
40
|
-
return `< ${addSymbol('0.01', symbol)}`;
|
|
38
|
+
return addSymbol(withFixedZeros && maxDecimals ? (0).toFixed(maxDecimals) : '0', symbol);
|
|
41
39
|
const categorized = categorizeValue(parsed);
|
|
42
40
|
const categorySymbol = typeof categorized === 'object' ? categorized.symbol : '';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.split('.')[1];
|
|
57
|
-
formattedValue = `${formattedInteger}.${rounded}`;
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
formattedValue = decimalPart
|
|
61
|
-
? `${formattedInteger}.${decimalPart}`
|
|
62
|
-
: formattedInteger;
|
|
41
|
+
if (typeof categorized === 'string')
|
|
42
|
+
return addSymbol(categorized + categorySymbol, symbol);
|
|
43
|
+
const expandedValue = convertScientificToDecimal.convertScientificToDecimal(categorized.value);
|
|
44
|
+
let [integerPart, decimalPart] = expandedValue.split('.');
|
|
45
|
+
if (maxDecimals !== undefined) {
|
|
46
|
+
const [roundedInteger, roundedDecimal] = parseFloat(`0.${decimalPart}`)
|
|
47
|
+
.toFixed(maxDecimals)
|
|
48
|
+
.split('.');
|
|
49
|
+
decimalPart = withFixedZeros
|
|
50
|
+
? roundedDecimal
|
|
51
|
+
: roundedDecimal.replace(/0+$/, '');
|
|
52
|
+
if (roundedInteger !== '0') {
|
|
53
|
+
integerPart = convertScientificToDecimal.convertScientificToDecimal(parseFloat(integerPart) + parseFloat(roundedInteger));
|
|
63
54
|
}
|
|
64
55
|
}
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
// Add commas
|
|
57
|
+
integerPart = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
58
|
+
const formattedValue = decimalPart
|
|
59
|
+
? `${integerPart}.${decimalPart}`
|
|
60
|
+
: integerPart;
|
|
61
|
+
// If we ended up with 0 after all rounding, show less than symbol
|
|
62
|
+
if (maxDecimals && parseFloat(formattedValue) === 0) {
|
|
63
|
+
const number = `${(0).toFixed(maxDecimals - 1)}1`;
|
|
64
|
+
return `<${addSymbol(number, symbol)}`;
|
|
65
|
+
}
|
|
67
66
|
return addSymbol(formattedValue + categorySymbol, symbol);
|
|
68
67
|
};
|
|
69
68
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
type FormatValueProps = {
|
|
2
2
|
value: string | number | undefined;
|
|
3
3
|
symbol: string | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* When maxDecimals is defined, this being true will display leading zeros up until the maxDecimals case
|
|
6
|
+
*/
|
|
4
7
|
withFixedZeros?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Rounds off any extra decimals to the maxDecimals value
|
|
10
|
+
*/
|
|
5
11
|
maxDecimals?: number;
|
|
6
12
|
};
|
|
7
13
|
export declare const formatValue: ({ value, symbol, withFixedZeros, maxDecimals, }: FormatValueProps) => string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { UNAVAILABLE_VALUE } from '../../consts.js';
|
|
3
|
+
import { convertScientificToDecimal } from './convertScientificToDecimal/convertScientificToDecimal.js';
|
|
3
4
|
|
|
4
5
|
/* eslint-disable prefer-destructuring */
|
|
5
6
|
const categorizeValue = (value) => {
|
|
@@ -28,38 +29,36 @@ const formatValue = ({ value, symbol, withFixedZeros = false, maxDecimals, }) =>
|
|
|
28
29
|
if (value === undefined)
|
|
29
30
|
return undefined;
|
|
30
31
|
const parsed = value === '' ? 0 : parseFloat(value.toString());
|
|
32
|
+
// Deal with 0 values so we can assume value is not zero from here on
|
|
31
33
|
if (parsed === 0)
|
|
32
|
-
return addSymbol(withFixedZeros ?
|
|
33
|
-
// When value is inferior to 0.01 and withFixedZeros is true, we would return 0.00,
|
|
34
|
-
// so to avoid this misleading behavior, we return a less than 0.01 value
|
|
35
|
-
if (withFixedZeros && parsed < 0.0099)
|
|
36
|
-
return `< ${addSymbol('0.01', symbol)}`;
|
|
34
|
+
return addSymbol(withFixedZeros && maxDecimals ? (0).toFixed(maxDecimals) : '0', symbol);
|
|
37
35
|
const categorized = categorizeValue(parsed);
|
|
38
36
|
const categorySymbol = typeof categorized === 'object' ? categorized.symbol : '';
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.split('.')[1];
|
|
53
|
-
formattedValue = `${formattedInteger}.${rounded}`;
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
formattedValue = decimalPart
|
|
57
|
-
? `${formattedInteger}.${decimalPart}`
|
|
58
|
-
: formattedInteger;
|
|
37
|
+
if (typeof categorized === 'string')
|
|
38
|
+
return addSymbol(categorized + categorySymbol, symbol);
|
|
39
|
+
const expandedValue = convertScientificToDecimal(categorized.value);
|
|
40
|
+
let [integerPart, decimalPart] = expandedValue.split('.');
|
|
41
|
+
if (maxDecimals !== undefined) {
|
|
42
|
+
const [roundedInteger, roundedDecimal] = parseFloat(`0.${decimalPart}`)
|
|
43
|
+
.toFixed(maxDecimals)
|
|
44
|
+
.split('.');
|
|
45
|
+
decimalPart = withFixedZeros
|
|
46
|
+
? roundedDecimal
|
|
47
|
+
: roundedDecimal.replace(/0+$/, '');
|
|
48
|
+
if (roundedInteger !== '0') {
|
|
49
|
+
integerPart = convertScientificToDecimal(parseFloat(integerPart) + parseFloat(roundedInteger));
|
|
59
50
|
}
|
|
60
51
|
}
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
// Add commas
|
|
53
|
+
integerPart = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
54
|
+
const formattedValue = decimalPart
|
|
55
|
+
? `${integerPart}.${decimalPart}`
|
|
56
|
+
: integerPart;
|
|
57
|
+
// If we ended up with 0 after all rounding, show less than symbol
|
|
58
|
+
if (maxDecimals && parseFloat(formattedValue) === 0) {
|
|
59
|
+
const number = `${(0).toFixed(maxDecimals - 1)}1`;
|
|
60
|
+
return `<${addSymbol(number, symbol)}`;
|
|
61
|
+
}
|
|
63
62
|
return addSymbol(formattedValue + categorySymbol, symbol);
|
|
64
63
|
};
|
|
65
64
|
|
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
const isFiatToken = (symbol) => symbol === 'USD';
|
|
7
|
+
const isFiatOrStablecoin = (symbol) => isFiatToken(symbol) || symbol === 'USDC' || symbol === 'USDT';
|
|
7
8
|
|
|
9
|
+
exports.isFiatOrStablecoin = isFiatOrStablecoin;
|
|
8
10
|
exports.isFiatToken = isFiatToken;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useExchangeRatesForFunding';
|