@dynamic-labs/sdk-react-core 4.0.0-alpha.5 → 4.0.0-alpha.50
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 +460 -0
- package/package.cjs +3 -2
- package/package.js +3 -2
- package/package.json +16 -20
- package/src/index.cjs +58 -48
- package/src/index.d.ts +3 -1
- package/src/index.js +39 -28
- package/src/lib/Main.cjs +33 -40
- package/src/lib/Main.js +33 -40
- package/src/lib/assets/dynamic-logo.cjs +3 -3
- package/src/lib/assets/dynamic-logo.js +3 -3
- package/src/lib/assets/no-wallet-found.cjs +3 -3
- package/src/lib/assets/no-wallet-found.js +3 -3
- package/src/lib/assets/search.cjs +3 -3
- package/src/lib/assets/search.js +3 -3
- package/src/lib/assets/secure-account.cjs +3 -3
- package/src/lib/assets/secure-account.js +3 -3
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +12 -16
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +12 -16
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +12 -16
- package/src/lib/components/AnimatePresence/AnimatePresence.js +12 -16
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +19 -20
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +20 -21
- package/src/lib/components/Button/Button.cjs +2 -2
- package/src/lib/components/Button/Button.d.ts +2 -1
- package/src/lib/components/Button/Button.js +2 -2
- package/src/lib/components/Captcha/Captcha.cjs +12 -16
- package/src/lib/components/Captcha/Captcha.js +12 -16
- package/src/lib/components/CopyButton/CopyButton.cjs +5 -5
- package/src/lib/components/CopyButton/CopyButton.js +7 -7
- package/src/lib/components/Divider/Divider.cjs +16 -19
- package/src/lib/components/Divider/Divider.js +16 -19
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +12 -16
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +12 -16
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +3 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +3 -1
- package/src/lib/components/EmailForm/EmailForm.cjs +15 -19
- package/src/lib/components/EmailForm/EmailForm.js +15 -19
- package/src/lib/components/Icon/Icon.cjs +1 -17
- package/src/lib/components/Icon/Icon.d.ts +10 -1
- package/src/lib/components/Icon/Icon.js +1 -17
- package/src/lib/components/Icon/index.d.ts +1 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +9 -12
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +1 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.js +10 -13
- package/src/lib/components/Input/Input.cjs +3 -1
- package/src/lib/components/Input/Input.d.ts +1 -0
- package/src/lib/components/Input/Input.js +3 -1
- package/src/lib/components/Input/Input.types.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +12 -16
- package/src/lib/components/LogoutButton/LogoutButton.js +12 -16
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +1 -18
- package/src/lib/components/MenuList/MenuList/MenuList.js +2 -19
- package/src/lib/components/Modal/Modal.cjs +15 -19
- package/src/lib/components/Modal/Modal.js +15 -19
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +12 -16
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +12 -16
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +13 -17
- package/src/lib/components/NetworkPicker/NetworkPicker.js +13 -17
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +30 -19
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +7 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +30 -20
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +15 -19
- package/src/lib/components/NetworkPicker/components/Network/Network.js +15 -19
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +15 -19
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +15 -19
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +16 -20
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +16 -20
- package/src/lib/components/OverlayCard/OverlayCard.cjs +17 -88
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +24 -3
- package/src/lib/components/OverlayCard/OverlayCard.js +19 -90
- package/src/lib/components/OverlayCard/index.d.ts +0 -1
- package/src/lib/components/OverlayCardBase/OverlayCardBase.cjs +109 -0
- package/src/lib/components/OverlayCardBase/OverlayCardBase.d.ts +13 -0
- package/src/lib/components/OverlayCardBase/OverlayCardBase.js +105 -0
- package/src/lib/components/OverlayCardBase/index.d.ts +2 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +12 -16
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +12 -16
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +15 -19
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +15 -19
- package/src/lib/components/PinField/PinField.cjs +10 -1
- package/src/lib/components/PinField/PinField.js +11 -2
- package/src/lib/components/PinInput/PinInput.cjs +1 -1
- package/src/lib/components/PinInput/PinInput.js +1 -1
- package/src/lib/components/Portal/Portal.cjs +12 -16
- package/src/lib/components/Portal/Portal.js +12 -16
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +12 -16
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +12 -16
- package/src/lib/components/QRCode/QRCode.cjs +13 -17
- package/src/lib/components/QRCode/QRCode.js +13 -17
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +15 -19
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +15 -19
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +16 -20
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +16 -20
- package/src/lib/components/RenderView/RenderView.cjs +16 -20
- package/src/lib/components/RenderView/RenderView.js +16 -20
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +13 -17
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +13 -17
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +12 -16
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +12 -16
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +12 -16
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +12 -16
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +12 -16
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +12 -16
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +39 -23
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +40 -24
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +15 -19
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +15 -19
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +12 -16
- package/src/lib/components/ShadowDOM/ShadowDOM.js +12 -16
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +13 -21
- package/src/lib/components/SocialSignIn/SocialSignIn.js +14 -22
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.cjs +13 -17
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.js +13 -17
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +15 -19
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +15 -19
- package/src/lib/components/Toolkit/Toolkit.cjs +12 -16
- package/src/lib/components/Toolkit/Toolkit.js +12 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +12 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +12 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +12 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +12 -16
- package/src/lib/components/Tooltip/Tooltip.cjs +50 -22
- package/src/lib/components/Tooltip/Tooltip.d.ts +16 -1
- package/src/lib/components/Tooltip/Tooltip.js +50 -22
- package/src/lib/components/TosAndPp/TosAndPp.cjs +12 -16
- package/src/lib/components/TosAndPp/TosAndPp.js +12 -16
- package/src/lib/components/TransactionCard/OldTransactionCard.cjs +126 -0
- package/src/lib/components/TransactionCard/OldTransactionCard.d.ts +17 -0
- package/src/lib/components/TransactionCard/OldTransactionCard.js +122 -0
- package/src/lib/components/TransactionCard/TransactionCard.cjs +202 -18
- package/src/lib/components/TransactionCard/TransactionCard.d.ts +8 -15
- package/src/lib/components/TransactionCard/TransactionCard.js +200 -20
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +16 -19
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +3 -4
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +16 -19
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +17 -21
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +17 -21
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js +2 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +12 -16
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +12 -16
- package/src/lib/components/UserAddress/UserAddress.cjs +13 -17
- package/src/lib/components/UserAddress/UserAddress.js +13 -17
- package/src/lib/components/UserProfile/UserProfile.cjs +27 -21
- package/src/lib/components/UserProfile/UserProfile.js +28 -22
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.cjs +12 -16
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.js +12 -16
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +16 -20
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +16 -20
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +16 -20
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +16 -20
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +16 -20
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +16 -20
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +16 -18
- package/src/lib/components/UserProfileForm/UserProfileForm.js +16 -18
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.cjs +175 -0
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.d.ts +6 -0
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.js +171 -0
- package/src/lib/components/WalletConnectorEvents/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.cjs +16 -28
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.js +16 -28
- package/src/lib/context/ConnectWithOtpContext/constants.cjs +0 -1
- package/src/lib/context/ConnectWithOtpContext/constants.js +0 -1
- package/src/lib/context/ConnectWithOtpContext/types.d.ts +1 -1
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.cjs +19 -8
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.js +20 -9
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.cjs +6 -5
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.js +6 -5
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.cjs +5 -4
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.js +5 -4
- package/src/lib/context/DynamicContext/DynamicContext.cjs +101 -76
- package/src/lib/context/DynamicContext/DynamicContext.js +104 -79
- package/src/lib/context/DynamicContext/functions/onReinitialize/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/functions/onReinitialize/onReinitialize.cjs +14 -0
- package/src/lib/context/DynamicContext/functions/onReinitialize/onReinitialize.d.ts +1 -0
- package/src/lib/context/DynamicContext/functions/onReinitialize/onReinitialize.js +10 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +18 -22
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +18 -22
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/useRegisterStorageService.cjs +14 -4
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/useRegisterStorageService.js +15 -5
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +1 -7
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +1 -3
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +1 -7
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +12 -16
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +12 -16
- package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +8 -6
- package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +2 -6
- package/src/lib/context/DynamicContext/types/SettingsOverrides.d.ts +1 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +1 -3
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +1 -3
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +12 -16
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +12 -16
- package/src/lib/context/FundingContext/FundingContext.cjs +64 -31
- package/src/lib/context/FundingContext/FundingContext.d.ts +2 -0
- package/src/lib/context/FundingContext/FundingContext.js +65 -32
- package/src/lib/context/FundingContext/useFunding/useFunding.cjs +156 -4
- package/src/lib/context/FundingContext/useFunding/useFunding.d.ts +10 -1
- package/src/lib/context/FundingContext/useFunding/useFunding.js +158 -6
- package/src/lib/context/LoadingContext/LoadingContext.cjs +12 -16
- package/src/lib/context/LoadingContext/LoadingContext.js +12 -16
- package/src/lib/context/MockContext/MockContext.cjs +21 -28
- package/src/lib/context/MockContext/MockContext.js +21 -28
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +13 -17
- package/src/lib/context/PasskeyContext/PasskeyContext.js +13 -17
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +12 -16
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +12 -16
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +13 -18
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +13 -18
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +1 -0
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +12 -15
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +12 -15
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +13 -18
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +13 -18
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.cjs +29 -28
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.js +29 -28
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +13 -17
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +13 -17
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +8 -4
- package/src/lib/context/WalletGroupContext/WalletGroupContext.d.ts +4 -2
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +8 -4
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +1 -0
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +1 -0
- package/src/lib/data/api/api.cjs +6 -0
- package/src/lib/data/api/api.js +6 -0
- package/src/lib/data/api/email/email.cjs +17 -32
- package/src/lib/data/api/email/email.js +6 -21
- package/src/lib/data/api/embeddedWallets/embeddedWallets.cjs +55 -37
- package/src/lib/data/api/embeddedWallets/embeddedWallets.d.ts +15 -1
- package/src/lib/data/api/embeddedWallets/embeddedWallets.js +50 -34
- package/src/lib/data/api/embeddedWallets/types.d.ts +1 -0
- package/src/lib/data/api/externalAuth/externalAuth.cjs +10 -23
- package/src/lib/data/api/externalAuth/externalAuth.js +3 -16
- package/src/lib/data/api/mfa/mfa.cjs +15 -33
- package/src/lib/data/api/mfa/mfa.js +11 -29
- package/src/lib/data/api/oauth/oauth.cjs +30 -22
- package/src/lib/data/api/oauth/oauth.js +23 -15
- package/src/lib/data/api/session/session.cjs +7 -19
- package/src/lib/data/api/session/session.js +3 -15
- package/src/lib/data/api/settings/settings.cjs +30 -1
- package/src/lib/data/api/settings/settings.js +30 -1
- package/src/lib/data/api/sms/sms.cjs +14 -16
- package/src/lib/data/api/sms/sms.js +5 -7
- package/src/lib/data/api/transactions/blockaid.cjs +95 -0
- package/src/lib/data/api/transactions/blockaid.d.ts +22 -0
- package/src/lib/data/api/transactions/blockaid.js +93 -1
- package/src/lib/data/api/user/user.cjs +27 -11
- package/src/lib/data/api/user/user.d.ts +6 -1
- package/src/lib/data/api/user/user.js +20 -5
- package/src/lib/data/api/utils.cjs +26 -2
- package/src/lib/data/api/utils.d.ts +2 -1
- package/src/lib/data/api/utils.js +25 -2
- package/src/lib/data/api/wallets/wallets.cjs +17 -28
- package/src/lib/data/api/wallets/wallets.js +6 -17
- package/src/lib/events/auth.d.ts +1 -22
- package/src/lib/events/dynamicEvents.cjs +22 -0
- package/src/lib/events/dynamicEvents.d.ts +3 -0
- package/src/lib/events/dynamicEvents.js +21 -1
- package/src/lib/events/multiWallet.d.ts +2 -1
- package/src/lib/events/wallets.d.ts +4 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +17 -21
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +17 -21
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +19 -23
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +20 -24
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +12 -16
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +12 -16
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +17 -21
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +17 -21
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +15 -19
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +15 -19
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +16 -20
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +16 -20
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +15 -19
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +15 -19
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +18 -21
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +19 -22
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +16 -20
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +16 -20
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +16 -20
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +16 -20
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +16 -20
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +16 -20
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +12 -16
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +12 -16
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +17 -21
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +17 -21
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +17 -21
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +17 -21
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +17 -21
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +17 -21
- package/src/lib/locale/en/translation.cjs +278 -107
- package/src/lib/locale/en/translation.d.ts +271 -100
- package/src/lib/locale/en/translation.js +278 -107
- package/src/lib/modals/AddNetworkModal/AddNetworkModal.cjs +103 -0
- package/src/lib/modals/AddNetworkModal/AddNetworkModal.d.ts +12 -0
- package/src/lib/modals/AddNetworkModal/AddNetworkModal.js +99 -0
- package/src/lib/modals/AddNetworkModal/index.d.ts +1 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +16 -20
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +16 -20
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +13 -17
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +13 -17
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +16 -21
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +16 -21
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +12 -16
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +12 -16
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +20 -24
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +20 -24
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +16 -20
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +16 -20
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +11 -5
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +11 -5
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +14 -18
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +14 -18
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +17 -21
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +17 -21
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/access-blocked.cjs +3 -3
- package/src/lib/shared/assets/access-blocked.js +3 -3
- package/src/lib/shared/assets/add.cjs +3 -3
- package/src/lib/shared/assets/add.js +3 -3
- package/src/lib/shared/assets/alt-key.cjs +3 -3
- package/src/lib/shared/assets/alt-key.js +3 -3
- package/src/lib/shared/assets/android-face-id.cjs +3 -3
- package/src/lib/shared/assets/android-face-id.js +3 -3
- package/src/lib/shared/assets/android-touch-id.cjs +3 -3
- package/src/lib/shared/assets/android-touch-id.js +3 -3
- package/src/lib/shared/assets/arrow-circle-right.cjs +3 -3
- package/src/lib/shared/assets/arrow-circle-right.js +3 -3
- package/src/lib/shared/assets/arrow-down.cjs +3 -3
- package/src/lib/shared/assets/arrow-down.js +3 -3
- package/src/lib/shared/assets/arrow-left.cjs +3 -3
- package/src/lib/shared/assets/arrow-left.js +3 -3
- package/src/lib/shared/assets/arrow-right-background.cjs +3 -3
- package/src/lib/shared/assets/arrow-right-background.js +3 -3
- package/src/lib/shared/assets/arrow-right.cjs +3 -3
- package/src/lib/shared/assets/arrow-right.js +3 -3
- package/src/lib/shared/assets/at.cjs +3 -3
- package/src/lib/shared/assets/at.js +3 -3
- package/src/lib/shared/assets/authenticator.cjs +3 -3
- package/src/lib/shared/assets/authenticator.js +3 -3
- package/src/lib/shared/assets/blue-walletconnect.cjs +3 -3
- package/src/lib/shared/assets/blue-walletconnect.js +3 -3
- package/src/lib/shared/assets/caution-triangle.cjs +3 -3
- package/src/lib/shared/assets/caution-triangle.js +3 -3
- package/src/lib/shared/assets/check-blue.cjs +3 -3
- package/src/lib/shared/assets/check-blue.js +3 -3
- package/src/lib/shared/assets/check-circle.cjs +3 -3
- package/src/lib/shared/assets/check-circle.js +3 -3
- package/src/lib/shared/assets/check-connection.cjs +3 -3
- package/src/lib/shared/assets/check-connection.js +3 -3
- package/src/lib/shared/assets/check.cjs +3 -3
- package/src/lib/shared/assets/check.js +3 -3
- package/src/lib/shared/assets/chevron-down.cjs +3 -3
- package/src/lib/shared/assets/chevron-down.js +3 -3
- package/src/lib/shared/assets/chevron-left.cjs +3 -3
- package/src/lib/shared/assets/chevron-left.js +3 -3
- package/src/lib/shared/assets/close.cjs +3 -3
- package/src/lib/shared/assets/close.js +3 -3
- package/src/lib/shared/assets/connected-apps.cjs +64 -0
- package/src/lib/shared/assets/connected-apps.js +40 -0
- package/src/lib/shared/assets/copy.cjs +3 -3
- package/src/lib/shared/assets/copy.js +3 -3
- package/src/lib/shared/assets/currency.cjs +3 -3
- package/src/lib/shared/assets/currency.js +3 -3
- package/src/lib/shared/assets/delete-embedded-hero.cjs +57 -0
- package/src/lib/shared/assets/delete-embedded-hero.js +33 -0
- package/src/lib/shared/assets/domain.cjs +3 -3
- package/src/lib/shared/assets/domain.js +3 -3
- package/src/lib/shared/assets/dots-horizontal.cjs +3 -3
- package/src/lib/shared/assets/dots-horizontal.js +3 -3
- package/src/lib/shared/assets/double-arrow-right.cjs +3 -3
- package/src/lib/shared/assets/double-arrow-right.js +3 -3
- package/src/lib/shared/assets/download.cjs +3 -3
- package/src/lib/shared/assets/download.js +3 -3
- package/src/lib/shared/assets/embedded-wallet-icon.cjs +14 -13
- package/src/lib/shared/assets/embedded-wallet-icon.js +14 -13
- package/src/lib/shared/assets/error.cjs +3 -3
- package/src/lib/shared/assets/error.js +3 -3
- package/src/lib/shared/assets/exclamation-circle.cjs +3 -3
- package/src/lib/shared/assets/exclamation-circle.js +3 -3
- package/src/lib/shared/assets/exclamation.cjs +3 -3
- package/src/lib/shared/assets/exclamation.js +3 -3
- package/src/lib/shared/assets/export-embedded-hero.cjs +3 -3
- package/src/lib/shared/assets/export-embedded-hero.js +3 -3
- package/src/lib/shared/assets/export-private-key.cjs +3 -3
- package/src/lib/shared/assets/export-private-key.js +3 -3
- package/src/lib/shared/assets/export-recovery-phrase.cjs +3 -3
- package/src/lib/shared/assets/export-recovery-phrase.js +3 -3
- package/src/lib/shared/assets/externalLink.cjs +3 -3
- package/src/lib/shared/assets/externalLink.js +3 -3
- package/src/lib/shared/assets/eye-off-icon.cjs +3 -3
- package/src/lib/shared/assets/eye-off-icon.js +3 -3
- package/src/lib/shared/assets/eye-outline.cjs +54 -0
- package/src/lib/shared/assets/eye-outline.js +30 -0
- package/src/lib/shared/assets/face-id.cjs +3 -3
- package/src/lib/shared/assets/face-id.js +3 -3
- package/src/lib/shared/assets/footer-eye-icon.cjs +3 -3
- package/src/lib/shared/assets/footer-eye-icon.js +3 -3
- package/src/lib/shared/assets/footer-gas-icon.cjs +3 -3
- package/src/lib/shared/assets/footer-gas-icon.js +3 -3
- package/src/lib/shared/assets/footer-info-icon.cjs +3 -3
- package/src/lib/shared/assets/footer-info-icon.js +3 -3
- package/src/lib/shared/assets/footer-key-icon.cjs +3 -3
- package/src/lib/shared/assets/footer-key-icon.js +3 -3
- package/src/lib/shared/assets/gear.cjs +3 -3
- package/src/lib/shared/assets/gear.js +3 -3
- package/src/lib/shared/assets/index.d.ts +4 -0
- package/src/lib/shared/assets/info.cjs +3 -3
- package/src/lib/shared/assets/info.js +3 -3
- package/src/lib/shared/assets/iphone-face-id.cjs +3 -3
- package/src/lib/shared/assets/iphone-face-id.js +3 -3
- package/src/lib/shared/assets/iphone-touch-id.cjs +3 -3
- package/src/lib/shared/assets/iphone-touch-id.js +3 -3
- package/src/lib/shared/assets/justified-text.cjs +3 -3
- package/src/lib/shared/assets/justified-text.js +3 -3
- package/src/lib/shared/assets/key.cjs +3 -3
- package/src/lib/shared/assets/key.js +3 -3
- package/src/lib/shared/assets/link.cjs +3 -3
- package/src/lib/shared/assets/link.js +3 -3
- package/src/lib/shared/assets/location.cjs +3 -3
- package/src/lib/shared/assets/location.js +3 -3
- package/src/lib/shared/assets/lock.cjs +3 -3
- package/src/lib/shared/assets/lock.js +3 -3
- package/src/lib/shared/assets/logout.cjs +3 -3
- package/src/lib/shared/assets/logout.js +3 -3
- package/src/lib/shared/assets/mail.cjs +3 -3
- package/src/lib/shared/assets/mail.js +3 -3
- package/src/lib/shared/assets/mfa-recovery-icon.cjs +3 -3
- package/src/lib/shared/assets/mfa-recovery-icon.js +3 -3
- package/src/lib/shared/assets/multiple-account-security.cjs +3 -3
- package/src/lib/shared/assets/multiple-account-security.js +3 -3
- package/src/lib/shared/assets/passkey-account-security.cjs +3 -3
- package/src/lib/shared/assets/passkey-account-security.js +3 -3
- package/src/lib/shared/assets/passkey-intro-icon.cjs +3 -3
- package/src/lib/shared/assets/passkey-intro-icon.js +3 -3
- package/src/lib/shared/assets/passkey-intro2.cjs +3 -3
- package/src/lib/shared/assets/passkey-intro2.js +3 -3
- package/src/lib/shared/assets/password-hero.cjs +3 -3
- package/src/lib/shared/assets/password-hero.js +3 -3
- package/src/lib/shared/assets/pencil-alt-icon.cjs +3 -3
- package/src/lib/shared/assets/pencil-alt-icon.js +3 -3
- package/src/lib/shared/assets/pencil.cjs +3 -3
- package/src/lib/shared/assets/pencil.js +3 -3
- package/src/lib/shared/assets/phone.cjs +3 -3
- package/src/lib/shared/assets/phone.js +3 -3
- package/src/lib/shared/assets/profile-outline.cjs +3 -3
- package/src/lib/shared/assets/profile-outline.js +3 -3
- package/src/lib/shared/assets/puzzle.cjs +3 -3
- package/src/lib/shared/assets/puzzle.js +3 -3
- package/src/lib/shared/assets/question-mark.cjs +3 -3
- package/src/lib/shared/assets/question-mark.js +3 -3
- package/src/lib/shared/assets/save-password-hero.cjs +3 -3
- package/src/lib/shared/assets/save-password-hero.js +3 -3
- package/src/lib/shared/assets/send.cjs +3 -3
- package/src/lib/shared/assets/send.js +3 -3
- package/src/lib/shared/assets/settings-outline.cjs +3 -3
- package/src/lib/shared/assets/settings-outline.js +3 -3
- package/src/lib/shared/assets/shield.cjs +3 -3
- package/src/lib/shared/assets/shield.js +3 -3
- package/src/lib/shared/assets/sign-circle.cjs +3 -3
- package/src/lib/shared/assets/sign-circle.js +3 -3
- package/src/lib/shared/assets/sign-in-with-email.cjs +3 -3
- package/src/lib/shared/assets/sign-in-with-email.js +3 -3
- package/src/lib/shared/assets/sign-in-with-phone.cjs +3 -3
- package/src/lib/shared/assets/sign-in-with-phone.js +3 -3
- package/src/lib/shared/assets/size-labels.cjs +3 -3
- package/src/lib/shared/assets/size-labels.js +3 -3
- package/src/lib/shared/assets/smart-wallet.cjs +59 -0
- package/src/lib/shared/assets/smart-wallet.js +35 -0
- package/src/lib/shared/assets/spinner.cjs +3 -3
- package/src/lib/shared/assets/spinner.js +3 -3
- package/src/lib/shared/assets/stroke.cjs +3 -3
- package/src/lib/shared/assets/stroke.js +3 -3
- package/src/lib/shared/assets/switch-horizontal.cjs +3 -3
- package/src/lib/shared/assets/switch-horizontal.js +3 -3
- package/src/lib/shared/assets/three-dots.cjs +3 -3
- package/src/lib/shared/assets/three-dots.js +3 -3
- package/src/lib/shared/assets/tooltip-arrow.cjs +3 -3
- package/src/lib/shared/assets/tooltip-arrow.js +3 -3
- package/src/lib/shared/assets/tooltip.cjs +3 -3
- package/src/lib/shared/assets/tooltip.js +3 -3
- package/src/lib/shared/assets/unlink.cjs +3 -3
- package/src/lib/shared/assets/unlink.js +3 -3
- package/src/lib/shared/assets/user-account-2.cjs +3 -3
- package/src/lib/shared/assets/user-account-2.js +3 -3
- package/src/lib/shared/assets/user-card.cjs +3 -3
- package/src/lib/shared/assets/user-card.js +3 -3
- package/src/lib/shared/assets/user.cjs +3 -3
- package/src/lib/shared/assets/user.js +3 -3
- package/src/lib/shared/assets/wallet-claim-hero.cjs +3 -3
- package/src/lib/shared/assets/wallet-claim-hero.js +3 -3
- package/src/lib/shared/assets/wallet-connect-logo.cjs +3 -3
- package/src/lib/shared/assets/wallet-connect-logo.js +3 -3
- package/src/lib/shared/assets/wallet-outline-v2.cjs +3 -3
- package/src/lib/shared/assets/wallet-outline-v2.js +3 -3
- package/src/lib/shared/assets/wallet-v2.cjs +3 -3
- package/src/lib/shared/assets/wallet-v2.js +3 -3
- package/src/lib/shared/assets/warning-orange.cjs +3 -3
- package/src/lib/shared/assets/warning-orange.js +3 -3
- package/src/lib/shared/assets/warning-red.cjs +3 -3
- package/src/lib/shared/assets/warning-red.js +3 -3
- package/src/lib/shared/assets/work-suitcase.cjs +3 -3
- package/src/lib/shared/assets/work-suitcase.js +3 -3
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +1 -2
- package/src/lib/shared/types/dynamicHandlers.d.ts +3 -0
- package/src/lib/shared/types/embeddedWallets.d.ts +1 -1
- package/src/lib/shared/types/wallets.d.ts +21 -0
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +1 -0
- package/src/lib/shared/utils/functions/chain/getChainIcon.js +2 -1
- package/src/lib/shared/utils/functions/createWalletGroupFromWalletOption/createWalletGroupFromWalletOption.cjs +22 -0
- package/src/lib/shared/utils/functions/createWalletGroupFromWalletOption/createWalletGroupFromWalletOption.d.ts +9 -0
- package/src/lib/shared/utils/functions/createWalletGroupFromWalletOption/createWalletGroupFromWalletOption.js +18 -0
- package/src/lib/shared/utils/functions/createWalletGroupFromWalletOption/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/getInitialUrl/getInitialUrl.cjs +16 -0
- package/src/lib/shared/utils/functions/getInitialUrl/getInitialUrl.d.ts +1 -0
- package/src/lib/shared/utils/functions/getInitialUrl/getInitialUrl.js +12 -0
- package/src/lib/shared/utils/functions/getInitialUrl/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +3 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +3 -0
- package/src/lib/shared/utils/functions/shouldFetchNonce/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/shouldFetchNonce/shouldFetchNonce.cjs +10 -0
- package/src/lib/shared/utils/functions/shouldFetchNonce/shouldFetchNonce.d.ts +6 -0
- package/src/lib/shared/utils/functions/shouldFetchNonce/shouldFetchNonce.js +6 -0
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +9 -9
- package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +1 -1
- package/src/lib/shared/utils/functions/wallet/createWallet.js +9 -9
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +31 -18
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +6 -3
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +32 -19
- package/src/lib/store/internalImplementation/store.cjs +6 -4
- package/src/lib/store/internalImplementation/store.d.ts +3 -2
- package/src/lib/store/internalImplementation/store.js +6 -4
- package/src/lib/store/internalImplementation/utils/syncLegacyStorage/syncLegacyStorage.cjs +1 -1
- package/src/lib/store/internalImplementation/utils/syncLegacyStorage/syncLegacyStorage.js +1 -1
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.cjs +27 -0
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.d.ts +19 -0
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.js +22 -0
- package/src/lib/store/state/dynamicContextProps/dynamicContextProps.cjs +78 -0
- package/src/lib/store/state/dynamicContextProps/dynamicContextProps.d.ts +12 -0
- package/src/lib/store/state/dynamicContextProps/dynamicContextProps.js +65 -0
- package/src/lib/store/state/dynamicContextProps/index.d.ts +1 -0
- package/src/lib/store/state/nonce/index.d.ts +1 -0
- package/src/lib/store/state/nonce/nonce.cjs +142 -0
- package/src/lib/store/state/nonce/nonce.d.ts +13 -0
- package/src/lib/store/state/nonce/nonce.js +133 -0
- package/src/lib/store/state/projectSettings/projectSettings.cjs +24 -26
- package/src/lib/store/state/projectSettings/projectSettings.d.ts +8 -3
- package/src/lib/store/state/projectSettings/projectSettings.js +24 -26
- package/src/lib/store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -0
- package/src/lib/store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -0
- package/src/lib/store/state/user/user.cjs +11 -1
- package/src/lib/store/state/user/user.d.ts +4 -2
- package/src/lib/store/state/user/user.js +11 -1
- package/src/lib/store/state/walletOptions/index.d.ts +1 -0
- package/src/lib/store/state/walletOptions/walletOptions.cjs +59 -0
- package/src/lib/store/state/walletOptions/walletOptions.d.ts +18 -0
- package/src/lib/store/state/walletOptions/walletOptions.js +46 -0
- package/src/lib/store/stateConfig.cjs +8 -4
- package/src/lib/store/stateConfig.d.ts +3 -2
- package/src/lib/store/stateConfig.js +8 -4
- package/src/lib/store/types.d.ts +13 -7
- package/src/lib/store/utils/settingsUtils/index.d.ts +1 -0
- package/src/lib/store/utils/settingsUtils/settingsUtils.d.ts +22 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/fields.cjs +3 -0
- package/src/lib/utils/constants/fields.d.ts +1 -0
- package/src/lib/utils/constants/fields.js +3 -1
- package/src/lib/utils/constants/index.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.cjs +2 -4
- package/src/lib/utils/constants/localStorage.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.js +2 -3
- package/src/lib/utils/functions/classNames/classNames.cjs +3 -3
- package/src/lib/utils/functions/classNames/classNames.js +1 -1
- package/src/lib/utils/functions/classNames/utils/index.d.ts +0 -1
- package/src/lib/utils/functions/compareChains/compareChains.cjs +15 -0
- package/src/lib/utils/functions/compareChains/compareChains.d.ts +1 -0
- package/src/lib/utils/functions/compareChains/compareChains.js +11 -0
- package/src/lib/utils/functions/compareChains/index.d.ts +1 -0
- package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.cjs +21 -6
- package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.js +21 -6
- package/src/lib/utils/functions/generateMessages/index.cjs +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +1 -1
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +6 -5
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +6 -5
- package/src/lib/utils/functions/getDeviceFingerprint/getDeviceFingerprint.cjs +20 -0
- package/src/lib/utils/functions/getDeviceFingerprint/getDeviceFingerprint.d.ts +1 -0
- package/src/lib/utils/functions/getDeviceFingerprint/getDeviceFingerprint.js +16 -0
- package/src/lib/utils/functions/getDeviceFingerprint/index.d.ts +1 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +1 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +1 -0
- package/src/lib/utils/functions/getExpiresAt/getExpiresAt.d.ts +1 -1
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.cjs +33 -65
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.js +33 -65
- package/src/lib/utils/functions/getPlatformForConnector/getPlatformForConnector.cjs +1 -1
- package/src/lib/utils/functions/getPlatformForConnector/getPlatformForConnector.d.ts +2 -2
- package/src/lib/utils/functions/getPlatformForConnector/getPlatformForConnector.js +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +5 -3
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +6 -4
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +4 -2
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -2
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +3 -1
- package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.cjs +24 -0
- package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.js +20 -0
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -0
- package/src/lib/utils/functions/isCookieEnabled/isCookieEnabled.cjs +4 -4
- package/src/lib/utils/functions/isCookieEnabled/isCookieEnabled.js +4 -4
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -0
- package/src/lib/utils/functions/networksAndChains/networksAndChains.cjs +19 -40
- package/src/lib/utils/functions/networksAndChains/networksAndChains.d.ts +11 -7
- package/src/lib/utils/functions/networksAndChains/networksAndChains.js +19 -38
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.d.ts +1 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -0
- package/src/lib/utils/functions/socialStorage/socialStorage.d.ts +3 -0
- package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.cjs +7 -7
- package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.d.ts +1 -3
- package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.js +7 -7
- package/src/lib/utils/functions/walletListBuilder/utils/createMetaMaskMobileFilter/createMetaMaskMobileFilter.cjs +25 -0
- package/src/lib/utils/functions/walletListBuilder/utils/createMetaMaskMobileFilter/createMetaMaskMobileFilter.d.ts +7 -0
- package/src/lib/utils/functions/walletListBuilder/utils/createMetaMaskMobileFilter/createMetaMaskMobileFilter.js +21 -0
- package/src/lib/utils/functions/walletListBuilder/utils/createMetaMaskMobileFilter/index.d.ts +1 -0
- package/src/lib/utils/functions/walletListBuilder/utils/{filterWalletConnectWallets/filterWalletConnectWallets.cjs → createWalletConnectWalletsFilter/createWalletConnectWalletsFilter.cjs} +6 -6
- package/src/lib/utils/functions/walletListBuilder/utils/{filterWalletConnectWallets/filterWalletConnectWallets.d.ts → createWalletConnectWalletsFilter/createWalletConnectWalletsFilter.d.ts} +1 -4
- package/src/lib/utils/functions/walletListBuilder/utils/createWalletConnectWalletsFilter/createWalletConnectWalletsFilter.js +16 -0
- package/src/lib/utils/functions/walletListBuilder/utils/createWalletConnectWalletsFilter/index.d.ts +1 -0
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.cjs +4 -5
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.d.ts +2 -3
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +4 -5
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/index.d.ts +1 -0
- package/src/lib/utils/functions/walletListBuilder/utils/isWalletGroup/index.d.ts +1 -0
- package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.cjs +4 -3
- package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.d.ts +1 -2
- package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.js +4 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +6 -12
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +3 -4
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +6 -12
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +13 -18
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +13 -18
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +23 -27
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +4 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +23 -27
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +12 -16
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +12 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +13 -18
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +13 -18
- package/src/lib/utils/hooks/events/types.d.ts +1 -2
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.cjs +1 -16
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +1 -1
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.js +1 -16
- package/src/lib/utils/hooks/index.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +17 -19
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +17 -19
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +14 -16
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +14 -16
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +13 -16
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +13 -16
- package/src/lib/utils/hooks/useConnectWallet/updateUserWalletsFromConnectedWallets/updateUserWalletsFromConnectedWallets.cjs +7 -3
- package/src/lib/utils/hooks/useConnectWallet/updateUserWalletsFromConnectedWallets/updateUserWalletsFromConnectedWallets.js +7 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +18 -20
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +18 -20
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +21 -16
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +22 -17
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +27 -19
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +27 -19
- package/src/lib/utils/hooks/useCreateWalletConnectorOptions/index.d.ts +2 -0
- package/src/lib/utils/hooks/{useWalletConnectorOptions/useWalletConnectorOptions.cjs → useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.cjs} +17 -35
- package/src/lib/utils/hooks/{useWalletConnectorOptions/useWalletConnectorOptions.d.ts → useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.d.ts} +2 -3
- package/src/lib/utils/hooks/{useWalletConnectorOptions/useWalletConnectorOptions.js → useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.js} +12 -30
- package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -0
- package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -0
- package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -0
- package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -0
- package/src/lib/utils/hooks/useCreateWalletGroups/index.d.ts +1 -0
- package/src/lib/utils/hooks/useCreateWalletGroups/useCreateWalletGroups.cjs +46 -0
- package/src/lib/utils/hooks/useCreateWalletGroups/useCreateWalletGroups.d.ts +5 -0
- package/src/lib/utils/hooks/useCreateWalletGroups/useCreateWalletGroups.js +42 -0
- package/src/lib/utils/hooks/useDebounce/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.cjs +22 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.d.ts +1 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.js +18 -0
- package/src/lib/utils/hooks/useDeviceFingerprint/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDeviceFingerprint/useDeviceFingerprint.cjs +67 -0
- package/src/lib/utils/hooks/useDeviceFingerprint/useDeviceFingerprint.d.ts +3 -0
- package/src/lib/utils/hooks/useDeviceFingerprint/useDeviceFingerprint.js +45 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +267 -158
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +267 -158
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +12 -16
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +12 -16
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +12 -16
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +12 -16
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +12 -16
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +12 -16
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +17 -18
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +17 -18
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +14 -16
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +14 -16
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +13 -22
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +13 -22
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +12 -16
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +12 -16
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +45 -46
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +45 -46
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +36 -27
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +36 -27
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +12 -16
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +12 -16
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +12 -16
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +12 -16
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.cjs +20 -6
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.js +20 -6
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.cjs +18 -22
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.js +18 -22
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.cjs +12 -16
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.js +12 -16
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +4 -3
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +4 -3
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +12 -16
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +12 -16
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +17 -17
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +17 -17
- package/src/lib/utils/hooks/useHover/useHover.types.d.ts +1 -4
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +12 -16
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +12 -16
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +12 -16
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +12 -16
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +12 -16
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +12 -16
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +12 -16
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +12 -16
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +17 -21
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +17 -21
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +12 -16
- package/src/lib/utils/hooks/useMfa/useMfa.js +12 -16
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +12 -16
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +12 -16
- package/src/lib/utils/hooks/useNetworkConfigurationsFromProjectSettings/useNetworkConfigurationsFromProjectSettings.cjs +5 -1
- package/src/lib/utils/hooks/useNetworkConfigurationsFromProjectSettings/useNetworkConfigurationsFromProjectSettings.js +5 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +12 -16
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +12 -16
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +12 -16
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +12 -16
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +12 -16
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +12 -16
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -16
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -16
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +2 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +2 -0
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +1 -1
- package/src/lib/utils/hooks/usePromise/usePromise.js +1 -1
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.cjs +12 -16
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.js +12 -16
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.cjs +9 -1
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.d.ts +3 -1
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.js +10 -2
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +12 -16
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +12 -16
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.cjs +1 -0
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.js +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +13 -17
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +13 -17
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +11 -16
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +11 -16
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +16 -23
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +1 -4
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +16 -23
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +35 -27
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +1 -2
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +32 -24
- package/src/lib/utils/hooks/useSubdomainCheck/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs +120 -0
- package/src/lib/utils/hooks/useSubdomainCheck/useSubdomainCheck.d.ts +11 -0
- package/src/lib/utils/hooks/useSubdomainCheck/useSubdomainCheck.js +116 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +16 -20
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +16 -20
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.cjs +70 -32
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.d.ts +4 -1
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.js +71 -33
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.cjs +12 -16
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.js +12 -16
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.cjs +12 -16
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.js +12 -16
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.cjs +55 -39
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.d.ts +3 -2
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.js +55 -39
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +26 -19
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +26 -19
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +14 -23
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.d.ts +3 -6
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +14 -23
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +17 -20
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +17 -20
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +12 -16
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +12 -16
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +12 -16
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +12 -16
- package/src/lib/utils/hooks/useValidateSession/handleStoreAndEnvironmentMismatch/handleStoreAndEnvironmentMismatch.cjs +6 -6
- package/src/lib/utils/hooks/useValidateSession/handleStoreAndEnvironmentMismatch/handleStoreAndEnvironmentMismatch.js +1 -1
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.cjs +1 -0
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.js +1 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +14 -22
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +14 -22
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +12 -16
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +12 -16
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +18 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +19 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +13 -4
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +14 -5
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +15 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +15 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/updateUserWalletsFromLinkedWallets/updateUserWalletsFromLinkedWallets.cjs +6 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/updateUserWalletsFromLinkedWallets/updateUserWalletsFromLinkedWallets.js +6 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +1 -16
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +1 -16
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +41 -25
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +41 -25
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +31 -31
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.d.ts +12 -0
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +32 -32
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +44 -7
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +44 -7
- package/src/lib/views/AccessBlockedView/AccessBlockedView.cjs +16 -20
- package/src/lib/views/AccessBlockedView/AccessBlockedView.js +16 -20
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +16 -20
- package/src/lib/views/AccountExistsView/AccountExistsView.js +16 -20
- package/src/lib/views/AddNetworkView/AddNetworkView.cjs +108 -0
- package/src/lib/views/AddNetworkView/AddNetworkView.d.ts +12 -0
- package/src/lib/views/AddNetworkView/AddNetworkView.js +104 -0
- package/src/lib/views/AddNetworkView/index.d.ts +1 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +12 -16
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +12 -16
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +12 -16
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +12 -16
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +12 -16
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +12 -16
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +16 -20
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +16 -20
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +17 -21
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +17 -21
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +16 -20
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +16 -20
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +23 -22
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +24 -23
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.cjs +12 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.js +7 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +16 -20
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +16 -20
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +16 -20
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +16 -20
- package/src/lib/views/CollectUserDataView/useFields.cjs +1 -0
- package/src/lib/views/CollectUserDataView/useFields.js +1 -0
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +17 -21
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +17 -21
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +17 -21
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +17 -21
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +12 -16
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +12 -16
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +17 -21
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +17 -21
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +16 -20
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +16 -20
- package/src/lib/views/EmailVerification/EmailVerification.cjs +21 -23
- package/src/lib/views/EmailVerification/EmailVerification.js +21 -23
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +17 -21
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +17 -21
- package/src/lib/views/EmbeddedDeleteView/EmbeddedDeleteView.cjs +159 -0
- package/src/lib/views/EmbeddedDeleteView/EmbeddedDeleteView.d.ts +2 -0
- package/src/lib/views/EmbeddedDeleteView/EmbeddedDeleteView.js +155 -0
- package/src/lib/views/EmbeddedDeleteView/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +43 -28
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +43 -28
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +7 -6
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +7 -6
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +17 -21
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +17 -21
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +16 -20
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +16 -20
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.cjs +10 -14
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.js +11 -15
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.cjs +16 -20
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.js +16 -20
- package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.cjs +15 -19
- package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.js +15 -19
- package/src/lib/views/LoginView/LoginView.cjs +5 -3
- package/src/lib/views/LoginView/LoginView.js +5 -3
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +17 -21
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +17 -21
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +16 -20
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +16 -20
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +16 -20
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +16 -20
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +12 -16
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +12 -16
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +16 -21
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +16 -21
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +16 -20
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +16 -20
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +12 -16
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +12 -16
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +16 -20
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +16 -20
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +15 -19
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +15 -19
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +18 -22
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.d.ts +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +18 -22
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +20 -21
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +20 -21
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +12 -16
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +12 -16
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +16 -20
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +16 -20
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +12 -16
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +12 -16
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +16 -20
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +16 -20
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +17 -21
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +17 -21
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +17 -21
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +17 -21
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +16 -20
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +16 -20
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.cjs +15 -19
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.js +15 -19
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +17 -21
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +17 -21
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +13 -17
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +13 -17
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.cjs +126 -0
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.d.ts +6 -0
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.js +122 -0
- package/src/lib/views/MobileWalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +16 -20
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +16 -20
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +17 -21
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +17 -21
- package/src/lib/views/NoAccess/NoAccess.cjs +17 -21
- package/src/lib/views/NoAccess/NoAccess.js +17 -21
- package/src/lib/views/NoAccess/useNoAccessText.cjs +12 -16
- package/src/lib/views/NoAccess/useNoAccessText.js +12 -16
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +21 -26
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +22 -27
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +16 -20
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +16 -20
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +16 -20
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +16 -20
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +16 -16
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +16 -16
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +15 -19
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +15 -19
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +16 -20
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +16 -20
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +15 -19
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.d.ts +1 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +15 -19
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +12 -16
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +12 -16
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +17 -21
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +17 -21
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +12 -16
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +16 -20
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +16 -20
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +17 -21
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +17 -21
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.cjs +10 -8
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.d.ts +2 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.js +10 -8
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +9 -8
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +9 -8
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +16 -20
- package/src/lib/views/PendingConnectView/PendingConnectView.js +16 -20
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +16 -20
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +16 -20
- package/src/lib/views/QrCodeView/QrCodeView.cjs +14 -19
- package/src/lib/views/QrCodeView/QrCodeView.js +15 -20
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.cjs +16 -20
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.js +16 -20
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +17 -21
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +17 -21
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +12 -90
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.d.ts +6 -1
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +13 -91
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +16 -20
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +16 -20
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +16 -24
- package/src/lib/views/SendBalanceView/SendBalanceView.js +17 -25
- package/src/lib/views/SmsVerification/SmsVerification.cjs +16 -20
- package/src/lib/views/SmsVerification/SmsVerification.js +16 -20
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +13 -17
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +13 -17
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +18 -22
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +19 -23
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +15 -19
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +15 -19
- package/src/lib/views/SubdomainField/SubdomainField.cjs +149 -0
- package/src/lib/views/SubdomainField/SubdomainField.d.ts +5 -0
- package/src/lib/views/SubdomainField/SubdomainField.js +145 -0
- package/src/lib/views/SubdomainField/index.d.ts +1 -0
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs +18 -22
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js +18 -22
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +20 -23
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +21 -24
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +16 -20
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +16 -20
- package/src/lib/views/SyncWalletView/SyncWalletView.cjs +18 -22
- package/src/lib/views/SyncWalletView/SyncWalletView.js +18 -22
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +270 -65
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +268 -67
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +19 -23
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +19 -23
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +12 -16
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +12 -16
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +18 -22
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +18 -22
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +11 -88
- package/src/lib/views/WalletGroupView/WalletGroupView.d.ts +6 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.js +12 -89
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +18 -29
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +18 -29
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +16 -20
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +16 -20
- package/src/lib/views/WalletList/WalletList.cjs +34 -34
- package/src/lib/views/WalletList/WalletList.d.ts +4 -1
- package/src/lib/views/WalletList/WalletList.js +35 -35
- package/src/lib/views/WalletList/WalletListForDefaultConnection/WalletListForDefaultConnection.cjs +15 -0
- package/src/lib/views/WalletList/WalletListForDefaultConnection/WalletListForDefaultConnection.d.ts +6 -0
- package/src/lib/views/WalletList/WalletListForDefaultConnection/WalletListForDefaultConnection.js +11 -0
- package/src/lib/views/WalletList/WalletListForDefaultConnection/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +15 -19
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.d.ts +1 -1
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +15 -19
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +33 -39
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.d.ts +18 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +34 -40
- package/src/lib/views/WalletList/WalletListItem/index.d.ts +0 -1
- package/src/lib/views/WalletList/data.cjs +1 -0
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletList/data.js +1 -0
- package/src/lib/views/WalletList/hooks/useTabState.d.ts +2 -2
- package/src/lib/views/WalletList/utils/getEffectiveRecommendedWallets.d.ts +1 -2
- package/src/lib/views/WalletList/utils/getEffectiveWalletFilter.d.ts +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +17 -21
- package/src/lib/views/WalletLockedView/WalletLockedView.js +17 -21
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +18 -20
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +18 -20
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +14 -18
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +14 -18
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +20 -32
- package/src/lib/views/WalletUsedView/WalletUsedView.js +20 -32
- package/src/lib/views/index.d.ts +1 -0
- package/src/lib/views/viewToComponentMap.cjs +36 -34
- package/src/lib/views/viewToComponentMap.d.ts +20 -5
- package/src/lib/views/viewToComponentMap.js +36 -34
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +24 -23
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +24 -23
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +15 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +15 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +15 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +15 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +17 -21
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +17 -21
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +12 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +12 -16
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +12 -15
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +12 -15
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +15 -18
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +15 -18
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +20 -24
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +20 -24
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +13 -17
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +13 -17
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +17 -31
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +17 -31
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +20 -24
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +20 -24
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +13 -16
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +13 -16
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +17 -21
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +17 -21
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +36 -24
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +9 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +36 -25
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +44 -36
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +44 -36
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.cjs +18 -22
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.d.ts +4 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.js +18 -22
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs +15 -19
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js +15 -19
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +12 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +21 -23
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +21 -23
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +30 -30
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +30 -30
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +12 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +17 -21
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +15 -19
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +15 -19
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +16 -20
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +14 -18
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +14 -18
- package/src/lib/widgets/DynamicWidget/components/{UnknownWalletInformation/UnknownWalletInformation.cjs → WalletDetailsCard/WalletDetailsCard.cjs} +28 -43
- package/src/lib/widgets/DynamicWidget/components/WalletDetailsCard/WalletDetailsCard.d.ts +12 -0
- package/src/lib/widgets/DynamicWidget/components/{UnknownWalletInformation/UnknownWalletInformation.js → WalletDetailsCard/WalletDetailsCard.js} +28 -43
- package/src/lib/widgets/DynamicWidget/components/WalletDetailsCard/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +15 -19
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +15 -19
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +20 -17
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +21 -18
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +19 -14
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +12 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +13 -17
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +13 -17
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +16 -19
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +16 -19
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +24 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +24 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +13 -17
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +13 -17
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +12 -16
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/useWalletDownloadLinks.cjs +3 -4
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/useWalletDownloadLinks.js +3 -4
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +12 -16
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +15 -19
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +15 -19
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +19 -21
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +19 -21
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +18 -23
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +20 -25
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +13 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +13 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +16 -20
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +12 -16
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +17 -21
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +21 -26
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +22 -27
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +12 -16
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +12 -16
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.cjs +176 -0
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.d.ts +12 -0
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.js +171 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +17 -21
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +22 -29
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +22 -29
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.js +17 -21
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +17 -21
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +17 -21
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +16 -20
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +29 -24
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +29 -24
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +16 -20
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +16 -20
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +17 -20
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +17 -20
- package/src/lib/components/Icon/Icon.types.d.ts +0 -10
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +0 -11
- package/src/lib/context/ConnectWithOtpContext/utils/createMagicHandler.cjs +0 -26
- package/src/lib/context/ConnectWithOtpContext/utils/createMagicHandler.js +0 -22
- package/src/lib/context/DynamicContext/types/WalletListViewTabItem.d.ts +0 -11
- package/src/lib/context/DynamicContext/validators/validators.cjs +0 -16
- package/src/lib/context/DynamicContext/validators/validators.js +0 -12
- package/src/lib/store/state/environmentId.cjs +0 -12
- package/src/lib/store/state/environmentId.d.ts +0 -1
- package/src/lib/store/state/environmentId.js +0 -6
- package/src/lib/store/state/walletConnectorOptions.cjs +0 -13
- package/src/lib/store/state/walletConnectorOptions.d.ts +0 -1
- package/src/lib/store/state/walletConnectorOptions.js +0 -6
- package/src/lib/utils/constants/onrampProviders.cjs +0 -8
- package/src/lib/utils/constants/onrampProviders.js +0 -4
- package/src/lib/utils/functions/classNames/utils/isString.cjs +0 -8
- package/src/lib/utils/functions/classNames/utils/isString.d.ts +0 -1
- package/src/lib/utils/functions/classNames/utils/isString.js +0 -4
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.cjs +0 -10
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.js +0 -6
- package/src/lib/utils/functions/walletListBuilder/utils/filterWalletConnectWallets/filterWalletConnectWallets.js +0 -16
- package/src/lib/utils/functions/walletListBuilder/utils/filterWalletConnectWallets/index.d.ts +0 -1
- package/src/lib/utils/hooks/useFetchNonce/index.d.ts +0 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +0 -64
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.d.ts +0 -3
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +0 -60
- package/src/lib/utils/hooks/useWalletConnectorOptions/index.d.ts +0 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +0 -17
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.d.ts +0 -4
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +0 -9
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/index.d.ts +0 -1
- /package/src/lib/components/{OverlayCard → OverlayCardBase}/OverlayCardTarget/OverlayCardTarget.cjs +0 -0
- /package/src/lib/components/{OverlayCard → OverlayCardBase}/OverlayCardTarget/OverlayCardTarget.d.ts +0 -0
- /package/src/lib/components/{OverlayCard → OverlayCardBase}/OverlayCardTarget/OverlayCardTarget.js +0 -0
- /package/src/lib/components/{OverlayCard → OverlayCardBase}/OverlayCardTarget/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/errors/ConnectorSetupError.cjs +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/errors/ConnectorSetupError.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/errors/ConnectorSetupError.js +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/errors/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyMagicIsSetup/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyMagicIsSetup/verifyMagicIsSetup.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyRequiredConnectorsAreSetup/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyRequiredConnectorsAreSetup/verifyRequiredConnectorsAreSetup.cjs +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyRequiredConnectorsAreSetup/verifyRequiredConnectorsAreSetup.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyRequiredConnectorsAreSetup/verifyRequiredConnectorsAreSetup.js +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyZeroDevIsSetup/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorOptions → useCreateWalletConnectorOptions}/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.d.ts +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
7
|
-
var utils = require('@dynamic-labs/utils');
|
|
7
|
+
var utils$1 = require('@dynamic-labs/utils');
|
|
8
8
|
var locale = require('../../../locale/locale.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api-core');
|
|
10
10
|
var logger = require('../../../shared/logger.cjs');
|
|
@@ -19,6 +19,7 @@ require('../../../utils/constants/values.cjs');
|
|
|
19
19
|
require('../../../store/state/loadingAndLifecycle.cjs');
|
|
20
20
|
require('../../../shared/consts/index.cjs');
|
|
21
21
|
var api = require('../api.cjs');
|
|
22
|
+
var utils = require('../utils.cjs');
|
|
22
23
|
|
|
23
24
|
const createSmsVerification = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ isoCountryCode, phoneNumber, phoneCountryCode, environmentId, captchaToken, }) {
|
|
24
25
|
try {
|
|
@@ -33,9 +34,8 @@ const createSmsVerification = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fun
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
catch (e) {
|
|
36
|
-
const data = yield
|
|
37
|
-
|
|
38
|
-
throw new utils.SmsVerificationError(data.error, data.code);
|
|
37
|
+
const data = yield utils.logResponseError(e, 'Error creating phone number verification');
|
|
38
|
+
throw new utils$1.SmsVerificationError(data.error, data.code);
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
const signInWithSmsVerification = (_b) => _tslib.__awaiter(void 0, [_b], void 0, function* ({ verificationToken, verificationUUID, environmentId, captchaToken, sessionPublicKey, }) {
|
|
@@ -52,18 +52,17 @@ const signInWithSmsVerification = (_b) => _tslib.__awaiter(void 0, [_b], void 0,
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
catch (e) {
|
|
55
|
-
const data = yield
|
|
56
|
-
logger.logger.error(data.error);
|
|
55
|
+
const data = yield utils.logResponseError(e, 'Error signin phone number');
|
|
57
56
|
if (((_c = data.error) === null || _c === void 0 ? void 0 : _c.code) === 'missing_from_list') {
|
|
58
|
-
throw new utils.NoAccessError({ phoneNumber: data.payload.phoneNumber });
|
|
57
|
+
throw new utils$1.NoAccessError({ phoneNumber: data.payload.phoneNumber });
|
|
59
58
|
}
|
|
60
59
|
if (data.code === 'wrong_sms_verification_token') {
|
|
61
|
-
throw new utils.SmsVerificationError(locale.Locale.getInstance().t('dyn_login.helper.phone_number_form.invalid_sms_verification'), data.code);
|
|
60
|
+
throw new utils$1.SmsVerificationError(locale.Locale.getInstance().t('dyn_login.helper.phone_number_form.invalid_sms_verification'), data.code);
|
|
62
61
|
}
|
|
63
62
|
if (data.error.code === 'sandbox_maximum_threshold_reached') {
|
|
64
|
-
throw new utils.SandboxMaximumThresholdReachedError(data.error.message);
|
|
63
|
+
throw new utils$1.SandboxMaximumThresholdReachedError(data.error.message);
|
|
65
64
|
}
|
|
66
|
-
throw new utils.SmsVerificationError(data.error, data.code);
|
|
65
|
+
throw new utils$1.SmsVerificationError(data.error, data.code);
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
const retrySmsVerification = (_d) => _tslib.__awaiter(void 0, [_d], void 0, function* ({ isoCountryCode, phoneCountryCode, phoneNumber, environmentId, verificationUUID, }) {
|
|
@@ -79,9 +78,8 @@ const retrySmsVerification = (_d) => _tslib.__awaiter(void 0, [_d], void 0, func
|
|
|
79
78
|
});
|
|
80
79
|
}
|
|
81
80
|
catch (e) {
|
|
82
|
-
const data = yield
|
|
83
|
-
|
|
84
|
-
throw new utils.SmsVerificationError(data.error, data.code);
|
|
81
|
+
const data = yield utils.logResponseError(e, 'Error retrying phone number verification');
|
|
82
|
+
throw new utils$1.SmsVerificationError(data.error, data.code);
|
|
85
83
|
}
|
|
86
84
|
});
|
|
87
85
|
const verifySms = (_e) => _tslib.__awaiter(void 0, [_e], void 0, function* ({ verificationToken, verificationUUID, environmentId, }) {
|
|
@@ -95,12 +93,12 @@ const verifySms = (_e) => _tslib.__awaiter(void 0, [_e], void 0, function* ({ ve
|
|
|
95
93
|
});
|
|
96
94
|
}
|
|
97
95
|
catch (e) {
|
|
98
|
-
const data = yield
|
|
96
|
+
const data = yield utils.logResponseError(e, 'Error verifying phone number');
|
|
99
97
|
logger.logger.error(data.error);
|
|
100
98
|
if (data.error.code === 'sandbox_maximum_threshold_reached') {
|
|
101
|
-
throw new utils.SandboxMaximumThresholdReachedError(data.error.message);
|
|
99
|
+
throw new utils$1.SandboxMaximumThresholdReachedError(data.error.message);
|
|
102
100
|
}
|
|
103
|
-
throw new utils.SmsVerificationError(data.error, data.code);
|
|
101
|
+
throw new utils$1.SmsVerificationError(data.error, data.code);
|
|
104
102
|
}
|
|
105
103
|
});
|
|
106
104
|
|
|
@@ -15,6 +15,7 @@ import '../../../utils/constants/values.js';
|
|
|
15
15
|
import '../../../store/state/loadingAndLifecycle.js';
|
|
16
16
|
import '../../../shared/consts/index.js';
|
|
17
17
|
import { sdkApi } from '../api.js';
|
|
18
|
+
import { logResponseError } from '../utils.js';
|
|
18
19
|
|
|
19
20
|
const createSmsVerification = (_a) => __awaiter(void 0, [_a], void 0, function* ({ isoCountryCode, phoneNumber, phoneCountryCode, environmentId, captchaToken, }) {
|
|
20
21
|
try {
|
|
@@ -29,8 +30,7 @@ const createSmsVerification = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
catch (e) {
|
|
32
|
-
const data = yield e
|
|
33
|
-
logger.error(data.error);
|
|
33
|
+
const data = yield logResponseError(e, 'Error creating phone number verification');
|
|
34
34
|
throw new SmsVerificationError(data.error, data.code);
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -48,8 +48,7 @@ const signInWithSmsVerification = (_b) => __awaiter(void 0, [_b], void 0, functi
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
catch (e) {
|
|
51
|
-
const data = yield e
|
|
52
|
-
logger.error(data.error);
|
|
51
|
+
const data = yield logResponseError(e, 'Error signin phone number');
|
|
53
52
|
if (((_c = data.error) === null || _c === void 0 ? void 0 : _c.code) === 'missing_from_list') {
|
|
54
53
|
throw new NoAccessError({ phoneNumber: data.payload.phoneNumber });
|
|
55
54
|
}
|
|
@@ -75,8 +74,7 @@ const retrySmsVerification = (_d) => __awaiter(void 0, [_d], void 0, function* (
|
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
76
|
catch (e) {
|
|
78
|
-
const data = yield e
|
|
79
|
-
logger.error(data.error);
|
|
77
|
+
const data = yield logResponseError(e, 'Error retrying phone number verification');
|
|
80
78
|
throw new SmsVerificationError(data.error, data.code);
|
|
81
79
|
}
|
|
82
80
|
});
|
|
@@ -91,7 +89,7 @@ const verifySms = (_e) => __awaiter(void 0, [_e], void 0, function* ({ verificat
|
|
|
91
89
|
});
|
|
92
90
|
}
|
|
93
91
|
catch (e) {
|
|
94
|
-
const data = yield e
|
|
92
|
+
const data = yield logResponseError(e, 'Error verifying phone number');
|
|
95
93
|
logger.error(data.error);
|
|
96
94
|
if (data.error.code === 'sandbox_maximum_threshold_reached') {
|
|
97
95
|
throw new SandboxMaximumThresholdReachedError(data.error.message);
|
|
@@ -5,6 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
7
7
|
var api = require('../api.cjs');
|
|
8
|
+
require('@dynamic-labs/sdk-api-core');
|
|
9
|
+
var logger = require('../../../shared/logger.cjs');
|
|
10
|
+
require('@dynamic-labs/iconic');
|
|
11
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
+
require('react/jsx-runtime');
|
|
13
|
+
require('../../../context/ViewContext/ViewContext.cjs');
|
|
14
|
+
require('react');
|
|
15
|
+
require('@dynamic-labs/wallet-book');
|
|
16
|
+
require('@dynamic-labs/utils');
|
|
17
|
+
require('../../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../../utils/constants/values.cjs');
|
|
19
|
+
require('../../../store/state/loadingAndLifecycle.cjs');
|
|
20
|
+
require('../../../shared/consts/index.cjs');
|
|
21
|
+
require('@dynamic-labs/multi-wallet');
|
|
22
|
+
var getAppOrigin = require('../../../utils/functions/getAppOrigin/getAppOrigin.cjs');
|
|
23
|
+
require('react-international-phone');
|
|
24
|
+
require('../../../store/state/nonce/nonce.cjs');
|
|
25
|
+
require('../../../store/state/user/user.cjs');
|
|
26
|
+
require('../../../locale/locale.cjs');
|
|
27
|
+
require('../../../store/state/projectSettings/projectSettings.cjs');
|
|
8
28
|
|
|
9
29
|
const isMaliciousUrl = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ environmentId, url, }) {
|
|
10
30
|
try {
|
|
@@ -19,5 +39,80 @@ const isMaliciousUrl = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function*
|
|
|
19
39
|
return undefined;
|
|
20
40
|
}
|
|
21
41
|
});
|
|
42
|
+
const simulateBlockaidUserOperation = (_b) => _tslib.__awaiter(void 0, [_b], void 0, function* ({ environmentId, userOperation, chainId, value, entryPoint, }) {
|
|
43
|
+
try {
|
|
44
|
+
const request = {
|
|
45
|
+
environmentId,
|
|
46
|
+
simulateUserOpRequest: {
|
|
47
|
+
chainId,
|
|
48
|
+
entryPoint,
|
|
49
|
+
operation: userOperation,
|
|
50
|
+
value: value,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
const transactionData = yield api.sdkApi().simulateUserOp(request);
|
|
54
|
+
return transactionData;
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
logger.logger.warn('simulateBlockaidUserOperation error', error);
|
|
58
|
+
// when tx is not sponsored and blockaid is on, but user doesnt have enough gas
|
|
59
|
+
if (error instanceof Error &&
|
|
60
|
+
error.message.includes("AA21 didn't pay prefund")) {
|
|
61
|
+
return {
|
|
62
|
+
inAssets: [],
|
|
63
|
+
outAssets: [],
|
|
64
|
+
priceData: { nativeTokenUsdPrice: undefined },
|
|
65
|
+
showTotalFiat: false,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const simulateBlockaidEVMTransaction = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ environmentId, chainId, from, to, value, data, }) {
|
|
72
|
+
try {
|
|
73
|
+
const request = {
|
|
74
|
+
chainId,
|
|
75
|
+
data,
|
|
76
|
+
from,
|
|
77
|
+
to,
|
|
78
|
+
value,
|
|
79
|
+
};
|
|
80
|
+
const simulationRequest = {
|
|
81
|
+
environmentId,
|
|
82
|
+
simulateEVMTransactionRequest: request,
|
|
83
|
+
};
|
|
84
|
+
const transactionData = yield api.sdkApi().simulateEVMTransaction(simulationRequest);
|
|
85
|
+
return transactionData;
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
logger.logger.warn('simulateBlockaidEVMTransaction error', error);
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
const simulateBlockaidSVMTransaction = (_d) => _tslib.__awaiter(void 0, [_d], void 0, function* ({ environmentId, chain, accountAddress, transactions, }) {
|
|
93
|
+
var _e;
|
|
94
|
+
try {
|
|
95
|
+
const request = {
|
|
96
|
+
environmentId,
|
|
97
|
+
simulateSVMTransactionRequest: {
|
|
98
|
+
accountAddress,
|
|
99
|
+
chain: chain,
|
|
100
|
+
domain: (_e = getAppOrigin.getAppOrigin()) !== null && _e !== void 0 ? _e : 'https://example.com',
|
|
101
|
+
// signAll works the same as sign, signAndSend, signAll
|
|
102
|
+
method: 'signAllTransactions',
|
|
103
|
+
transactions,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
const transactionData = yield api.sdkApi().simulateSVMTransaction(request);
|
|
107
|
+
return transactionData;
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
logger.logger.warn('simulateBlockaidSVMTransaction error', error);
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
22
114
|
|
|
23
115
|
exports.isMaliciousUrl = isMaliciousUrl;
|
|
116
|
+
exports.simulateBlockaidEVMTransaction = simulateBlockaidEVMTransaction;
|
|
117
|
+
exports.simulateBlockaidSVMTransaction = simulateBlockaidSVMTransaction;
|
|
118
|
+
exports.simulateBlockaidUserOperation = simulateBlockaidUserOperation;
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
+
import { SimulateTransactionResponse, V7UserOp, V6UserOp } from '@dynamic-labs/sdk-api-core';
|
|
1
2
|
export declare const isMaliciousUrl: ({ environmentId, url, }: {
|
|
2
3
|
url: string;
|
|
3
4
|
environmentId: string;
|
|
4
5
|
}) => Promise<boolean | undefined>;
|
|
6
|
+
export declare const simulateBlockaidUserOperation: ({ environmentId, userOperation, chainId, value, entryPoint, }: {
|
|
7
|
+
environmentId: string;
|
|
8
|
+
userOperation: V7UserOp | V6UserOp;
|
|
9
|
+
chainId: string;
|
|
10
|
+
value: string;
|
|
11
|
+
entryPoint: string;
|
|
12
|
+
}) => Promise<SimulateTransactionResponse | undefined>;
|
|
13
|
+
export declare const simulateBlockaidEVMTransaction: ({ environmentId, chainId, from, to, value, data, }: {
|
|
14
|
+
environmentId: string;
|
|
15
|
+
chainId: string;
|
|
16
|
+
from: string;
|
|
17
|
+
to: string;
|
|
18
|
+
value: string;
|
|
19
|
+
data: string;
|
|
20
|
+
}) => Promise<SimulateTransactionResponse | undefined>;
|
|
21
|
+
export declare const simulateBlockaidSVMTransaction: ({ environmentId, chain, accountAddress, transactions, }: {
|
|
22
|
+
environmentId: string;
|
|
23
|
+
chain: 'mainnet' | 'devnet';
|
|
24
|
+
accountAddress: string;
|
|
25
|
+
transactions: string[];
|
|
26
|
+
}) => Promise<SimulateTransactionResponse | undefined>;
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
3
3
|
import { sdkApi } from '../api.js';
|
|
4
|
+
import '@dynamic-labs/sdk-api-core';
|
|
5
|
+
import { logger } from '../../../shared/logger.js';
|
|
6
|
+
import '@dynamic-labs/iconic';
|
|
7
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import '@dynamic-labs/wallet-book';
|
|
12
|
+
import '@dynamic-labs/utils';
|
|
13
|
+
import '../../../utils/constants/colors.js';
|
|
14
|
+
import '../../../utils/constants/values.js';
|
|
15
|
+
import '../../../store/state/loadingAndLifecycle.js';
|
|
16
|
+
import '../../../shared/consts/index.js';
|
|
17
|
+
import '@dynamic-labs/multi-wallet';
|
|
18
|
+
import { getAppOrigin } from '../../../utils/functions/getAppOrigin/getAppOrigin.js';
|
|
19
|
+
import 'react-international-phone';
|
|
20
|
+
import '../../../store/state/nonce/nonce.js';
|
|
21
|
+
import '../../../store/state/user/user.js';
|
|
22
|
+
import '../../../locale/locale.js';
|
|
23
|
+
import '../../../store/state/projectSettings/projectSettings.js';
|
|
4
24
|
|
|
5
25
|
const isMaliciousUrl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ environmentId, url, }) {
|
|
6
26
|
try {
|
|
@@ -15,5 +35,77 @@ const isMaliciousUrl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ envi
|
|
|
15
35
|
return undefined;
|
|
16
36
|
}
|
|
17
37
|
});
|
|
38
|
+
const simulateBlockaidUserOperation = (_b) => __awaiter(void 0, [_b], void 0, function* ({ environmentId, userOperation, chainId, value, entryPoint, }) {
|
|
39
|
+
try {
|
|
40
|
+
const request = {
|
|
41
|
+
environmentId,
|
|
42
|
+
simulateUserOpRequest: {
|
|
43
|
+
chainId,
|
|
44
|
+
entryPoint,
|
|
45
|
+
operation: userOperation,
|
|
46
|
+
value: value,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const transactionData = yield sdkApi().simulateUserOp(request);
|
|
50
|
+
return transactionData;
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
logger.warn('simulateBlockaidUserOperation error', error);
|
|
54
|
+
// when tx is not sponsored and blockaid is on, but user doesnt have enough gas
|
|
55
|
+
if (error instanceof Error &&
|
|
56
|
+
error.message.includes("AA21 didn't pay prefund")) {
|
|
57
|
+
return {
|
|
58
|
+
inAssets: [],
|
|
59
|
+
outAssets: [],
|
|
60
|
+
priceData: { nativeTokenUsdPrice: undefined },
|
|
61
|
+
showTotalFiat: false,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const simulateBlockaidEVMTransaction = (_c) => __awaiter(void 0, [_c], void 0, function* ({ environmentId, chainId, from, to, value, data, }) {
|
|
68
|
+
try {
|
|
69
|
+
const request = {
|
|
70
|
+
chainId,
|
|
71
|
+
data,
|
|
72
|
+
from,
|
|
73
|
+
to,
|
|
74
|
+
value,
|
|
75
|
+
};
|
|
76
|
+
const simulationRequest = {
|
|
77
|
+
environmentId,
|
|
78
|
+
simulateEVMTransactionRequest: request,
|
|
79
|
+
};
|
|
80
|
+
const transactionData = yield sdkApi().simulateEVMTransaction(simulationRequest);
|
|
81
|
+
return transactionData;
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
logger.warn('simulateBlockaidEVMTransaction error', error);
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
const simulateBlockaidSVMTransaction = (_d) => __awaiter(void 0, [_d], void 0, function* ({ environmentId, chain, accountAddress, transactions, }) {
|
|
89
|
+
var _e;
|
|
90
|
+
try {
|
|
91
|
+
const request = {
|
|
92
|
+
environmentId,
|
|
93
|
+
simulateSVMTransactionRequest: {
|
|
94
|
+
accountAddress,
|
|
95
|
+
chain: chain,
|
|
96
|
+
domain: (_e = getAppOrigin()) !== null && _e !== void 0 ? _e : 'https://example.com',
|
|
97
|
+
// signAll works the same as sign, signAndSend, signAll
|
|
98
|
+
method: 'signAllTransactions',
|
|
99
|
+
transactions,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
const transactionData = yield sdkApi().simulateSVMTransaction(request);
|
|
103
|
+
return transactionData;
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
logger.warn('simulateBlockaidSVMTransaction error', error);
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
18
110
|
|
|
19
|
-
export { isMaliciousUrl };
|
|
111
|
+
export { isMaliciousUrl, simulateBlockaidEVMTransaction, simulateBlockaidSVMTransaction, simulateBlockaidUserOperation };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
7
|
-
var utils = require('@dynamic-labs/utils');
|
|
7
|
+
var utils$1 = require('@dynamic-labs/utils');
|
|
8
8
|
require('@dynamic-labs/sdk-api-core');
|
|
9
9
|
var logger = require('../../../shared/logger.cjs');
|
|
10
10
|
require('@dynamic-labs/iconic');
|
|
@@ -20,6 +20,7 @@ require('../../../shared/consts/index.cjs');
|
|
|
20
20
|
var api = require('../api.cjs');
|
|
21
21
|
var storeAuthTokenAndUser = require('../../../store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs');
|
|
22
22
|
require('../../../store/state/user/user.cjs');
|
|
23
|
+
var utils = require('../utils.cjs');
|
|
23
24
|
|
|
24
25
|
const updateUserProfileFields = (environmentId, fields) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
25
26
|
try {
|
|
@@ -31,24 +32,23 @@ const updateUserProfileFields = (environmentId, fields) => _tslib.__awaiter(void
|
|
|
31
32
|
return Object.assign(Object.assign({}, response), { userProfile });
|
|
32
33
|
}
|
|
33
34
|
catch (e) {
|
|
34
|
-
|
|
35
|
+
const error = yield utils.logResponseError(e, 'Error updateUserProfileFields');
|
|
35
36
|
if (e instanceof Response) {
|
|
36
|
-
const error = yield e.json();
|
|
37
37
|
if (error.code === 'email_already_exists') {
|
|
38
|
-
throw new utils.EmailAlreadyExistsError();
|
|
38
|
+
throw new utils$1.EmailAlreadyExistsError();
|
|
39
39
|
}
|
|
40
40
|
else if (error.code === 'custom_field_data_not_unique') {
|
|
41
|
-
throw new utils.CustomFieldNotUniqueError();
|
|
41
|
+
throw new utils$1.CustomFieldNotUniqueError();
|
|
42
42
|
}
|
|
43
43
|
else if (error.code === 'username_already_exists') {
|
|
44
|
-
throw new utils.UsernameAlreadyExistsError();
|
|
44
|
+
throw new utils$1.UsernameAlreadyExistsError();
|
|
45
45
|
}
|
|
46
46
|
else if (error.code === 'too_many_verification_attempts') {
|
|
47
|
-
throw new utils.TooManyEmailVerificationsError();
|
|
47
|
+
throw new utils$1.TooManyEmailVerificationsError();
|
|
48
48
|
}
|
|
49
49
|
else if (error.code === 'invalid_phone' ||
|
|
50
50
|
error.code === 'invalid_sms_verification') {
|
|
51
|
-
throw new utils.InvalidPhoneNumberError(error.error);
|
|
51
|
+
throw new utils$1.InvalidPhoneNumberError(error.error);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
throw e;
|
|
@@ -63,7 +63,7 @@ const mergeUserAccounts = (environmentId) => _tslib.__awaiter(void 0, void 0, vo
|
|
|
63
63
|
return user;
|
|
64
64
|
}
|
|
65
65
|
catch (e) {
|
|
66
|
-
|
|
66
|
+
yield utils.logResponseError(e, 'Error mergeUserAccounts');
|
|
67
67
|
throw e;
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -79,7 +79,7 @@ const verifyMergeUsers = (environmentId, mergeConflictResolutions) => _tslib.__a
|
|
|
79
79
|
return user;
|
|
80
80
|
}
|
|
81
81
|
catch (e) {
|
|
82
|
-
|
|
82
|
+
yield utils.logResponseError(e, 'Error verifyMergeUsers');
|
|
83
83
|
throw e;
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -92,6 +92,7 @@ const refreshUserJwt = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function*
|
|
|
92
92
|
return user;
|
|
93
93
|
}
|
|
94
94
|
catch (e) {
|
|
95
|
+
yield utils.logResponseError(e, 'Error refreshUserJwt');
|
|
95
96
|
return undefined;
|
|
96
97
|
}
|
|
97
98
|
});
|
|
@@ -102,18 +103,33 @@ const getAuthenticatedUser = (_b) => _tslib.__awaiter(void 0, [_b], void 0, func
|
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
105
|
catch (e) {
|
|
106
|
+
yield utils.logResponseError(e, 'Error getAuthenticatedUser');
|
|
105
107
|
// only explicitly throw `CookieInvalidError` when we attempt to get the authenticated user
|
|
106
108
|
// and the backend returns a 401, indicating that there is no valid auth for the request
|
|
107
109
|
if (e.status === 401) {
|
|
108
110
|
logger.logger.error('No valid auth for getAuthenticatedUser', e);
|
|
109
|
-
throw new utils.CookieInvalidError();
|
|
111
|
+
throw new utils$1.CookieInvalidError();
|
|
110
112
|
}
|
|
111
113
|
logger.logger.error('Other error getting authenticated user', e);
|
|
112
114
|
return undefined;
|
|
113
115
|
}
|
|
114
116
|
});
|
|
117
|
+
/** Hook implementation of [getUserFieldsCheck] */
|
|
118
|
+
const getUserFieldsCheck = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ environmentId, filter, }) {
|
|
119
|
+
try {
|
|
120
|
+
return yield api.sdkApi().getUserFieldsCheck({
|
|
121
|
+
environmentId,
|
|
122
|
+
filter,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
yield utils.logResponseError(e, 'Error checking user field availability');
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
115
130
|
|
|
116
131
|
exports.getAuthenticatedUser = getAuthenticatedUser;
|
|
132
|
+
exports.getUserFieldsCheck = getUserFieldsCheck;
|
|
117
133
|
exports.mergeUserAccounts = mergeUserAccounts;
|
|
118
134
|
exports.refreshUserJwt = refreshUserJwt;
|
|
119
135
|
exports.updateUserProfileFields = updateUserProfileFields;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserFields, UpdateSelfResponse, MergeUserConflictResolution, SdkUser } from '@dynamic-labs/sdk-api-core';
|
|
1
|
+
import { UserFields, UpdateSelfResponse, MergeUserConflictResolution, SdkUser, UserFieldsCheckParams, UserFieldsCheckResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
import { UserProfile } from '../../../..';
|
|
3
3
|
export type UpdateUserResponse = UpdateSelfResponse & {
|
|
4
4
|
userProfile: UserProfile;
|
|
@@ -12,3 +12,8 @@ export declare const refreshUserJwt: ({ environmentId, }: {
|
|
|
12
12
|
export declare const getAuthenticatedUser: ({ environmentId, }: {
|
|
13
13
|
environmentId: string;
|
|
14
14
|
}) => Promise<SdkUser | undefined>;
|
|
15
|
+
/** Hook implementation of [getUserFieldsCheck] */
|
|
16
|
+
export declare const getUserFieldsCheck: ({ environmentId, filter, }: {
|
|
17
|
+
environmentId: string;
|
|
18
|
+
filter: UserFieldsCheckParams;
|
|
19
|
+
}) => Promise<UserFieldsCheckResponse | undefined>;
|
|
@@ -16,6 +16,7 @@ import '../../../shared/consts/index.js';
|
|
|
16
16
|
import { sdkApi } from '../api.js';
|
|
17
17
|
import { storeAuthTokenAndUser } from '../../../store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.js';
|
|
18
18
|
import '../../../store/state/user/user.js';
|
|
19
|
+
import { logResponseError } from '../utils.js';
|
|
19
20
|
|
|
20
21
|
const updateUserProfileFields = (environmentId, fields) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
22
|
try {
|
|
@@ -27,9 +28,8 @@ const updateUserProfileFields = (environmentId, fields) => __awaiter(void 0, voi
|
|
|
27
28
|
return Object.assign(Object.assign({}, response), { userProfile });
|
|
28
29
|
}
|
|
29
30
|
catch (e) {
|
|
30
|
-
|
|
31
|
+
const error = yield logResponseError(e, 'Error updateUserProfileFields');
|
|
31
32
|
if (e instanceof Response) {
|
|
32
|
-
const error = yield e.json();
|
|
33
33
|
if (error.code === 'email_already_exists') {
|
|
34
34
|
throw new EmailAlreadyExistsError();
|
|
35
35
|
}
|
|
@@ -59,7 +59,7 @@ const mergeUserAccounts = (environmentId) => __awaiter(void 0, void 0, void 0, f
|
|
|
59
59
|
return user;
|
|
60
60
|
}
|
|
61
61
|
catch (e) {
|
|
62
|
-
|
|
62
|
+
yield logResponseError(e, 'Error mergeUserAccounts');
|
|
63
63
|
throw e;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -75,7 +75,7 @@ const verifyMergeUsers = (environmentId, mergeConflictResolutions) => __awaiter(
|
|
|
75
75
|
return user;
|
|
76
76
|
}
|
|
77
77
|
catch (e) {
|
|
78
|
-
|
|
78
|
+
yield logResponseError(e, 'Error verifyMergeUsers');
|
|
79
79
|
throw e;
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -88,6 +88,7 @@ const refreshUserJwt = (_a) => __awaiter(void 0, [_a], void 0, function* ({ envi
|
|
|
88
88
|
return user;
|
|
89
89
|
}
|
|
90
90
|
catch (e) {
|
|
91
|
+
yield logResponseError(e, 'Error refreshUserJwt');
|
|
91
92
|
return undefined;
|
|
92
93
|
}
|
|
93
94
|
});
|
|
@@ -98,6 +99,7 @@ const getAuthenticatedUser = (_b) => __awaiter(void 0, [_b], void 0, function* (
|
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
catch (e) {
|
|
102
|
+
yield logResponseError(e, 'Error getAuthenticatedUser');
|
|
101
103
|
// only explicitly throw `CookieInvalidError` when we attempt to get the authenticated user
|
|
102
104
|
// and the backend returns a 401, indicating that there is no valid auth for the request
|
|
103
105
|
if (e.status === 401) {
|
|
@@ -108,5 +110,18 @@ const getAuthenticatedUser = (_b) => __awaiter(void 0, [_b], void 0, function* (
|
|
|
108
110
|
return undefined;
|
|
109
111
|
}
|
|
110
112
|
});
|
|
113
|
+
/** Hook implementation of [getUserFieldsCheck] */
|
|
114
|
+
const getUserFieldsCheck = (_c) => __awaiter(void 0, [_c], void 0, function* ({ environmentId, filter, }) {
|
|
115
|
+
try {
|
|
116
|
+
return yield sdkApi().getUserFieldsCheck({
|
|
117
|
+
environmentId,
|
|
118
|
+
filter,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
yield logResponseError(e, 'Error checking user field availability');
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
111
126
|
|
|
112
|
-
export { getAuthenticatedUser, mergeUserAccounts, refreshUserJwt, updateUserProfileFields, verifyMergeUsers };
|
|
127
|
+
export { getAuthenticatedUser, getUserFieldsCheck, mergeUserAccounts, refreshUserJwt, updateUserProfileFields, verifyMergeUsers };
|
|
@@ -4,9 +4,32 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
7
|
+
require('@dynamic-labs/sdk-api-core');
|
|
8
|
+
var logger = require('../../shared/logger.cjs');
|
|
9
|
+
require('@dynamic-labs/iconic');
|
|
10
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
11
|
+
require('react/jsx-runtime');
|
|
12
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
require('react');
|
|
14
|
+
require('@dynamic-labs/wallet-book');
|
|
15
|
+
require('@dynamic-labs/utils');
|
|
16
|
+
require('../../utils/constants/colors.cjs');
|
|
17
|
+
require('../../utils/constants/values.cjs');
|
|
18
|
+
require('../../store/state/loadingAndLifecycle.cjs');
|
|
19
|
+
require('../../shared/consts/index.cjs');
|
|
7
20
|
var api = require('./api.cjs');
|
|
8
21
|
|
|
9
|
-
const
|
|
22
|
+
const logResponseError = (e, message) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
+
if (e instanceof Response) {
|
|
24
|
+
const data = yield e.json();
|
|
25
|
+
logger.logger.error(message, { error: data.error, status: e.status });
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
else if (e instanceof Error) {
|
|
29
|
+
logger.logger.error(message, e);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const getNonce = (environmentId) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
10
33
|
try {
|
|
11
34
|
const res = yield api.sdkApi().getNonce({
|
|
12
35
|
environmentId,
|
|
@@ -18,4 +41,5 @@ const fetchNonce = (environmentId) => _tslib.__awaiter(void 0, void 0, void 0, f
|
|
|
18
41
|
}
|
|
19
42
|
});
|
|
20
43
|
|
|
21
|
-
exports.
|
|
44
|
+
exports.getNonce = getNonce;
|
|
45
|
+
exports.logResponseError = logResponseError;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const logResponseError: (e: any, message: string) => Promise<any>;
|
|
2
|
+
export declare const getNonce: (environmentId: string) => Promise<string | undefined>;
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
3
|
+
import '@dynamic-labs/sdk-api-core';
|
|
4
|
+
import { logger } from '../../shared/logger.js';
|
|
5
|
+
import '@dynamic-labs/iconic';
|
|
6
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import 'react';
|
|
10
|
+
import '@dynamic-labs/wallet-book';
|
|
11
|
+
import '@dynamic-labs/utils';
|
|
12
|
+
import '../../utils/constants/colors.js';
|
|
13
|
+
import '../../utils/constants/values.js';
|
|
14
|
+
import '../../store/state/loadingAndLifecycle.js';
|
|
15
|
+
import '../../shared/consts/index.js';
|
|
3
16
|
import { sdkApi } from './api.js';
|
|
4
17
|
|
|
5
|
-
const
|
|
18
|
+
const logResponseError = (e, message) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
if (e instanceof Response) {
|
|
20
|
+
const data = yield e.json();
|
|
21
|
+
logger.error(message, { error: data.error, status: e.status });
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
else if (e instanceof Error) {
|
|
25
|
+
logger.error(message, e);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const getNonce = (environmentId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
29
|
try {
|
|
7
30
|
const res = yield sdkApi().getNonce({
|
|
8
31
|
environmentId,
|
|
@@ -14,4 +37,4 @@ const fetchNonce = (environmentId) => __awaiter(void 0, void 0, void 0, function
|
|
|
14
37
|
}
|
|
15
38
|
});
|
|
16
39
|
|
|
17
|
-
export {
|
|
40
|
+
export { getNonce, logResponseError };
|