thirdweb 5.31.1 → 5.32.0
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/dist/cjs/exports/react.js +4 -4
- package/dist/cjs/exports/react.js.map +1 -1
- package/dist/cjs/exports/react.native.js +14 -6
- package/dist/cjs/exports/react.native.js.map +1 -1
- package/dist/cjs/exports/wallets/in-app.js +1 -1
- package/dist/cjs/exports/wallets/in-app.js.map +1 -1
- package/dist/cjs/pay/utils/definitions.js +17 -10
- package/dist/cjs/pay/utils/definitions.js.map +1 -1
- package/dist/cjs/react/core/hooks/connection/ConnectButtonProps.js.map +1 -0
- package/dist/cjs/react/core/hooks/connection/ConnectEmbedProps.js +3 -0
- package/dist/cjs/react/core/hooks/connection/ConnectEmbedProps.js.map +1 -0
- package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/cjs/react/core/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/cjs/react/core/hooks/wallets/useSendToken.js +81 -0
- package/dist/cjs/react/core/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/cjs/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.js +20 -25
- package/dist/cjs/react/core/utils/defaultTokens.js.map +1 -0
- package/dist/cjs/react/core/utils/isSmartWallet.js.map +1 -0
- package/dist/cjs/react/{web/ui/ConnectWallet/icons/dataUris.js → core/utils/socialIcons.js} +19 -2
- package/dist/cjs/react/core/utils/socialIcons.js.map +1 -0
- package/dist/cjs/react/core/utils/storage.js.map +1 -0
- package/dist/cjs/react/core/utils/wallet.js +85 -0
- package/dist/cjs/react/core/utils/wallet.js.map +1 -0
- package/dist/cjs/react/native/design-system/index.js +33 -0
- package/dist/cjs/react/native/design-system/index.js.map +1 -0
- package/dist/cjs/react/native/hooks/wallets/useAutoConnect.js +5 -1
- package/dist/cjs/react/native/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/cjs/react/native/hooks/wallets/useSendToken.js +31 -0
- package/dist/cjs/react/native/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/cjs/react/native/ui/components/Address.js +31 -0
- package/dist/cjs/react/native/ui/components/Address.js.map +1 -0
- package/dist/cjs/react/native/ui/components/ChainIcon.js +30 -0
- package/dist/cjs/react/native/ui/components/ChainIcon.js.map +1 -0
- package/dist/cjs/react/native/ui/components/Header.js +30 -0
- package/dist/cjs/react/native/ui/components/Header.js.map +1 -0
- package/dist/cjs/react/native/ui/components/RNImage.js +43 -0
- package/dist/cjs/react/native/ui/components/RNImage.js.map +1 -0
- package/dist/cjs/react/native/ui/components/Skeleton.js +62 -0
- package/dist/cjs/react/native/ui/components/Skeleton.js.map +1 -0
- package/dist/cjs/react/native/ui/components/TokenIcon.js +16 -0
- package/dist/cjs/react/native/ui/components/TokenIcon.js.map +1 -0
- package/dist/cjs/react/native/ui/components/WalletImage.js +69 -0
- package/dist/cjs/react/native/ui/components/WalletImage.js.map +1 -0
- package/dist/cjs/react/native/ui/components/button.js +23 -8
- package/dist/cjs/react/native/ui/components/button.js.map +1 -1
- package/dist/cjs/react/native/ui/components/input.js +64 -0
- package/dist/cjs/react/native/ui/components/input.js.map +1 -0
- package/dist/cjs/react/native/ui/components/spacer.js +10 -0
- package/dist/cjs/react/native/ui/components/spacer.js.map +1 -0
- package/dist/cjs/react/native/ui/components/text.js +10 -7
- package/dist/cjs/react/native/ui/components/text.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectButton.js +106 -0
- package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectModal.js +133 -0
- package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectedButton.js +42 -0
- package/dist/cjs/react/native/ui/connect/ConnectedButton.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js +175 -0
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ErrorView.js +25 -0
- package/dist/cjs/react/native/ui/connect/ErrorView.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ExternalWalletsList.js +67 -0
- package/dist/cjs/react/native/ui/connect/ExternalWalletsList.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/InAppWalletUI.js +167 -0
- package/dist/cjs/react/native/ui/connect/InAppWalletUI.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/ReceiveScreen.js +42 -0
- package/dist/cjs/react/native/ui/connect/ReceiveScreen.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/SendScreen.js +82 -0
- package/dist/cjs/react/native/ui/connect/SendScreen.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/SuccessView.js +25 -0
- package/dist/cjs/react/native/ui/connect/SuccessView.js.map +1 -0
- package/dist/cjs/react/native/ui/connect/TokenListScreen.js +59 -0
- package/dist/cjs/react/native/ui/connect/TokenListScreen.js.map +1 -0
- package/dist/cjs/react/native/ui/icons/svgs.js +236 -0
- package/dist/cjs/react/native/ui/icons/svgs.js.map +1 -0
- package/dist/cjs/react/native/ui/{TransactionButton/TrabsactionButton.js → transaction/TransactionButton.js} +1 -1
- package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -0
- package/dist/cjs/react/native/wallets/defaultWallets.js +22 -0
- package/dist/cjs/react/native/wallets/defaultWallets.js.map +1 -0
- package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useAutoConnect.js +7 -2
- package/dist/cjs/react/web/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useSendToken.js +31 -0
- package/dist/cjs/react/web/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +7 -51
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -8
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +0 -4
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js +4 -15
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
- package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/components/ChainIcon.js.map +1 -1
- package/dist/cjs/react/web/ui/components/TokenIcon.js +2 -2
- package/dist/cjs/react/web/ui/components/TokenIcon.js.map +1 -1
- package/dist/cjs/react/web/ui/components/WalletImage.js +12 -13
- package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletHeader.js +2 -2
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletHeader.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +5 -6
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +1 -1
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +1 -1
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js +1 -1
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/in-app/native/native-connector.js +3 -4
- package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/cjs/wallets/manager/index.js +3 -2
- package/dist/cjs/wallets/manager/index.js.map +1 -1
- package/dist/esm/exports/react.js +4 -3
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/react.native.js +6 -2
- package/dist/esm/exports/react.native.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.js +1 -1
- package/dist/esm/exports/wallets/in-app.js.map +1 -1
- package/dist/esm/pay/utils/definitions.js +15 -9
- package/dist/esm/pay/utils/definitions.js.map +1 -1
- package/dist/esm/react/core/hooks/connection/ConnectButtonProps.js.map +1 -0
- package/dist/esm/react/core/hooks/connection/ConnectEmbedProps.js +2 -0
- package/dist/esm/react/core/hooks/connection/ConnectEmbedProps.js.map +1 -0
- package/dist/esm/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/esm/react/core/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/esm/react/core/hooks/wallets/useSendToken.js +78 -0
- package/dist/esm/react/core/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/esm/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.js +10 -15
- package/dist/esm/react/core/utils/defaultTokens.js.map +1 -0
- package/dist/esm/react/core/utils/isSmartWallet.js.map +1 -0
- package/dist/esm/react/{web/ui/ConnectWallet/icons/dataUris.js → core/utils/socialIcons.js} +18 -1
- package/dist/esm/react/core/utils/socialIcons.js.map +1 -0
- package/dist/esm/react/core/utils/storage.js.map +1 -0
- package/dist/esm/react/core/utils/wallet.js +80 -0
- package/dist/esm/react/core/utils/wallet.js.map +1 -0
- package/dist/esm/react/native/design-system/index.js +30 -0
- package/dist/esm/react/native/design-system/index.js.map +1 -0
- package/dist/esm/react/native/hooks/wallets/useAutoConnect.js +5 -1
- package/dist/esm/react/native/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/esm/react/native/hooks/wallets/useSendToken.js +28 -0
- package/dist/esm/react/native/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/esm/react/native/ui/components/Address.js +27 -0
- package/dist/esm/react/native/ui/components/Address.js.map +1 -0
- package/dist/esm/react/native/ui/components/ChainIcon.js +26 -0
- package/dist/esm/react/native/ui/components/ChainIcon.js.map +1 -0
- package/dist/esm/react/native/ui/components/Header.js +27 -0
- package/dist/esm/react/native/ui/components/Header.js.map +1 -0
- package/dist/esm/react/native/ui/components/RNImage.js +39 -0
- package/dist/esm/react/native/ui/components/RNImage.js.map +1 -0
- package/dist/esm/react/native/ui/components/Skeleton.js +58 -0
- package/dist/esm/react/native/ui/components/Skeleton.js.map +1 -0
- package/dist/esm/react/native/ui/components/TokenIcon.js +13 -0
- package/dist/esm/react/native/ui/components/TokenIcon.js.map +1 -0
- package/dist/esm/react/native/ui/components/WalletImage.js +65 -0
- package/dist/esm/react/native/ui/components/WalletImage.js.map +1 -0
- package/dist/esm/react/native/ui/components/button.js +24 -10
- package/dist/esm/react/native/ui/components/button.js.map +1 -1
- package/dist/esm/react/native/ui/components/input.js +60 -0
- package/dist/esm/react/native/ui/components/input.js.map +1 -0
- package/dist/esm/react/native/ui/components/spacer.js +7 -0
- package/dist/esm/react/native/ui/components/spacer.js.map +1 -0
- package/dist/esm/react/native/ui/components/text.js +10 -7
- package/dist/esm/react/native/ui/components/text.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectButton.js +103 -0
- package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ConnectModal.js +129 -0
- package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ConnectedButton.js +39 -0
- package/dist/esm/react/native/ui/connect/ConnectedButton.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ConnectedModal.js +172 -0
- package/dist/esm/react/native/ui/connect/ConnectedModal.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ErrorView.js +21 -0
- package/dist/esm/react/native/ui/connect/ErrorView.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ExternalWalletsList.js +64 -0
- package/dist/esm/react/native/ui/connect/ExternalWalletsList.js.map +1 -0
- package/dist/esm/react/native/ui/connect/InAppWalletUI.js +163 -0
- package/dist/esm/react/native/ui/connect/InAppWalletUI.js.map +1 -0
- package/dist/esm/react/native/ui/connect/ReceiveScreen.js +38 -0
- package/dist/esm/react/native/ui/connect/ReceiveScreen.js.map +1 -0
- package/dist/esm/react/native/ui/connect/SendScreen.js +78 -0
- package/dist/esm/react/native/ui/connect/SendScreen.js.map +1 -0
- package/dist/esm/react/native/ui/connect/SuccessView.js +21 -0
- package/dist/esm/react/native/ui/connect/SuccessView.js.map +1 -0
- package/dist/esm/react/native/ui/connect/TokenListScreen.js +54 -0
- package/dist/esm/react/native/ui/connect/TokenListScreen.js.map +1 -0
- package/dist/esm/react/native/ui/icons/svgs.js +233 -0
- package/dist/esm/react/native/ui/icons/svgs.js.map +1 -0
- package/dist/esm/react/native/ui/{TransactionButton/TrabsactionButton.js → transaction/TransactionButton.js} +1 -1
- package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -0
- package/dist/esm/react/native/wallets/defaultWallets.js +19 -0
- package/dist/esm/react/native/wallets/defaultWallets.js.map +1 -0
- package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useAutoConnect.js +7 -2
- package/dist/esm/react/web/hooks/wallets/useAutoConnect.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useSendToken.js +28 -0
- package/dist/esm/react/web/hooks/wallets/useSendToken.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +7 -51
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -8
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -5
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js +5 -16
- package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
- package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/components/ChainIcon.js.map +1 -1
- package/dist/esm/react/web/ui/components/TokenIcon.js +1 -1
- package/dist/esm/react/web/ui/components/WalletImage.js +3 -4
- package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletHeader.js +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletHeader.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -3
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +1 -1
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +1 -1
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/SocialLogin.js +1 -1
- package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/in-app/native/native-connector.js +3 -4
- package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/esm/wallets/manager/index.js +3 -2
- package/dist/esm/wallets/manager/index.js.map +1 -1
- package/dist/types/exports/react.d.ts +7 -6
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/exports/react.native.d.ts +7 -2
- package/dist/types/exports/react.native.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
- package/dist/types/pay/utils/definitions.d.ts +1 -0
- package/dist/types/pay/utils/definitions.d.ts.map +1 -1
- package/dist/types/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.d.ts +6 -6
- package/dist/types/react/core/hooks/connection/ConnectButtonProps.d.ts.map +1 -0
- package/dist/types/react/core/hooks/connection/ConnectEmbedProps.d.ts +264 -0
- package/dist/types/react/core/hooks/connection/ConnectEmbedProps.d.ts.map +1 -0
- package/dist/types/react/core/hooks/connection/types.d.ts +1 -1
- package/dist/types/react/core/hooks/connection/types.d.ts.map +1 -1
- package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts +1 -1
- package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useAutoConnect.d.ts +3 -1
- package/dist/types/react/core/hooks/wallets/useAutoConnect.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useSendToken.d.ts +12 -0
- package/dist/types/react/core/hooks/wallets/useSendToken.d.ts.map +1 -0
- package/dist/types/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.d.ts +1 -0
- package/dist/types/react/core/utils/defaultTokens.d.ts.map +1 -0
- package/dist/types/react/core/utils/isSmartWallet.d.ts.map +1 -0
- package/dist/types/react/{web/ui/ConnectWallet/icons/dataUris.d.ts → core/utils/socialIcons.d.ts} +17 -1
- package/dist/types/react/core/utils/socialIcons.d.ts.map +1 -0
- package/dist/types/react/core/utils/storage.d.ts +5 -0
- package/dist/types/react/core/utils/storage.d.ts.map +1 -0
- package/dist/types/react/core/utils/wallet.d.ts +26 -0
- package/dist/types/react/core/utils/wallet.d.ts.map +1 -0
- package/dist/types/react/native/design-system/index.d.ts +30 -0
- package/dist/types/react/native/design-system/index.d.ts.map +1 -0
- package/dist/types/react/native/hooks/wallets/useAutoConnect.d.ts.map +1 -1
- package/dist/types/react/{web/ui/hooks → native/hooks/wallets}/useSendToken.d.ts +18 -1
- package/dist/types/react/native/hooks/wallets/useSendToken.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/Address.d.ts +9 -0
- package/dist/types/react/native/ui/components/Address.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/ChainIcon.d.ts +11 -0
- package/dist/types/react/native/ui/components/ChainIcon.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/Header.d.ts +10 -0
- package/dist/types/react/native/ui/components/Header.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/RNImage.d.ts +10 -0
- package/dist/types/react/native/ui/components/RNImage.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/Skeleton.d.ts +11 -0
- package/dist/types/react/native/ui/components/Skeleton.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/TokenIcon.d.ts +15 -0
- package/dist/types/react/native/ui/components/TokenIcon.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/WalletImage.d.ts +9 -0
- package/dist/types/react/native/ui/components/WalletImage.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/button.d.ts +5 -1
- package/dist/types/react/native/ui/components/button.d.ts.map +1 -1
- package/dist/types/react/native/ui/components/input.d.ts +12 -0
- package/dist/types/react/native/ui/components/input.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/spacer.d.ts +5 -0
- package/dist/types/react/native/ui/components/spacer.d.ts.map +1 -0
- package/dist/types/react/native/ui/components/text.d.ts +1 -1
- package/dist/types/react/native/ui/components/text.d.ts.map +1 -1
- package/dist/types/react/native/ui/connect/ConnectButton.d.ts +18 -0
- package/dist/types/react/native/ui/connect/ConnectButton.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ConnectModal.d.ts +40 -0
- package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ConnectedButton.d.ts +9 -0
- package/dist/types/react/native/ui/connect/ConnectedButton.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ConnectedModal.d.ts +14 -0
- package/dist/types/react/native/ui/connect/ConnectedModal.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ErrorView.d.ts +7 -0
- package/dist/types/react/native/ui/connect/ErrorView.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts +15 -0
- package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts +19 -0
- package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts +13 -0
- package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/SendScreen.d.ts +14 -0
- package/dist/types/react/native/ui/connect/SendScreen.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/SuccessView.d.ts +7 -0
- package/dist/types/react/native/ui/connect/SuccessView.d.ts.map +1 -0
- package/dist/types/react/native/ui/connect/TokenListScreen.d.ts +20 -0
- package/dist/types/react/native/ui/connect/TokenListScreen.d.ts.map +1 -0
- package/dist/types/react/native/ui/icons/svgs.d.ts +22 -0
- package/dist/types/react/native/ui/icons/svgs.d.ts.map +1 -0
- package/dist/types/react/native/ui/{TransactionButton/TrabsactionButton.d.ts → transaction/TransactionButton.d.ts} +1 -1
- package/dist/types/react/native/ui/transaction/TransactionButton.d.ts.map +1 -0
- package/dist/types/react/native/wallets/defaultWallets.d.ts +11 -0
- package/dist/types/react/native/wallets/defaultWallets.d.ts.map +1 -0
- package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts.map +1 -1
- package/dist/types/react/web/hooks/wallets/useAutoConnect.d.ts.map +1 -1
- package/dist/types/react/web/hooks/wallets/useSendToken.d.ts +28 -0
- package/dist/types/react/web/hooks/wallets/useSendToken.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +2 -2
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -267
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts +2 -2
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/nativeToken.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/nativeToken.d.ts.map +1 -1
- package/dist/types/react/web/ui/PayEmbed.d.ts +2 -2
- package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/ChainIcon.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
- package/dist/types/wallets/manager/index.d.ts +1 -0
- package/dist/types/wallets/manager/index.d.ts.map +1 -1
- package/package.json +19 -3
- package/src/exports/react.native.ts +19 -5
- package/src/exports/react.ts +7 -12
- package/src/exports/wallets/in-app.ts +1 -1
- package/src/pay/utils/definitions.ts +16 -9
- package/src/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.ts +7 -10
- package/src/react/core/hooks/connection/ConnectEmbedProps.ts +285 -0
- package/src/react/core/hooks/connection/types.ts +1 -1
- package/src/react/core/hooks/transaction/useSendTransaction.ts +1 -1
- package/src/react/core/hooks/wallets/useAutoConnect.ts +1 -1
- package/src/react/core/hooks/wallets/useSendToken.ts +94 -0
- package/src/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.ts +10 -15
- package/src/react/{web/ui/ConnectWallet/icons/dataUris.ts → core/utils/socialIcons.ts} +30 -0
- package/src/react/{web/wallets/shared → core/utils}/storage.ts +2 -2
- package/src/react/core/utils/wallet.ts +101 -0
- package/src/react/native/design-system/index.ts +31 -0
- package/src/react/native/hooks/wallets/useAutoConnect.ts +5 -1
- package/src/react/native/hooks/wallets/useSendToken.ts +29 -0
- package/src/react/native/ui/components/Address.tsx +52 -0
- package/src/react/native/ui/components/ChainIcon.tsx +42 -0
- package/src/react/native/ui/components/Header.tsx +84 -0
- package/src/react/native/ui/components/RNImage.tsx +71 -0
- package/src/react/native/ui/components/Skeleton.tsx +93 -0
- package/src/react/native/ui/components/TokenIcon.tsx +31 -0
- package/src/react/native/ui/components/WalletImage.tsx +81 -0
- package/src/react/native/ui/components/button.tsx +41 -9
- package/src/react/native/ui/components/input.tsx +128 -0
- package/src/react/native/ui/components/spacer.tsx +6 -0
- package/src/react/native/ui/components/text.tsx +17 -8
- package/src/react/native/ui/connect/ConnectButton.tsx +188 -0
- package/src/react/native/ui/connect/ConnectModal.tsx +301 -0
- package/src/react/native/ui/connect/ConnectedButton.tsx +94 -0
- package/src/react/native/ui/connect/ConnectedModal.tsx +434 -0
- package/src/react/native/ui/connect/ErrorView.tsx +44 -0
- package/src/react/native/ui/connect/ExternalWalletsList.tsx +162 -0
- package/src/react/native/ui/connect/InAppWalletUI.tsx +320 -0
- package/src/react/native/ui/connect/ReceiveScreen.tsx +81 -0
- package/src/react/native/ui/connect/SendScreen.tsx +238 -0
- package/src/react/native/ui/connect/SuccessView.tsx +44 -0
- package/src/react/native/ui/connect/TokenListScreen.tsx +147 -0
- package/src/react/native/ui/icons/svgs.ts +252 -0
- package/src/react/native/wallets/defaultWallets.ts +30 -0
- package/src/react/web/hooks/transaction/useSendTransaction.tsx +2 -2
- package/src/react/web/hooks/wallets/useAutoConnect.ts +18 -8
- package/src/react/web/hooks/wallets/useSendToken.ts +29 -0
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/Details.tsx +26 -78
- package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +2 -9
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +6 -285
- package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +3 -1
- package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.ts +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.ts +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +8 -21
- package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/ViewFunds.tsx +4 -1
- package/src/react/web/ui/ConnectWallet/screens/nativeToken.ts +1 -1
- package/src/react/web/ui/PayEmbed.tsx +3 -3
- package/src/react/web/ui/components/ChainIcon.tsx +0 -1
- package/src/react/web/ui/components/TokenIcon.tsx +1 -1
- package/src/react/web/ui/components/WalletImage.tsx +7 -9
- package/src/react/web/wallets/ecosystem/EcosystemWalletHeader.tsx +1 -1
- package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +8 -4
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +6 -6
- package/src/react/web/wallets/shared/OTPLoginUI.tsx +1 -1
- package/src/react/web/wallets/shared/PassKeyLogin.tsx +1 -1
- package/src/react/web/wallets/shared/SocialLogin.tsx +1 -1
- package/src/version.ts +1 -1
- package/src/wallets/in-app/native/native-connector.ts +4 -6
- package/src/wallets/manager/index.ts +4 -2
- package/dist/cjs/react/native/ui/TransactionButton/TrabsactionButton.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButtonProps.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/defaultTokens.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/dataUris.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/socialLogins.js +0 -15
- package/dist/cjs/react/web/ui/ConnectWallet/icons/socialLogins.js.map +0 -1
- package/dist/cjs/react/web/ui/hooks/useSendToken.js +0 -57
- package/dist/cjs/react/web/ui/hooks/useSendToken.js.map +0 -1
- package/dist/cjs/react/web/ui/hooks/useWalletInfo.js +0 -37
- package/dist/cjs/react/web/ui/hooks/useWalletInfo.js.map +0 -1
- package/dist/cjs/react/web/utils/isSmartWallet.js.map +0 -1
- package/dist/cjs/react/web/wallets/in-app/socialIcons.js +0 -10
- package/dist/cjs/react/web/wallets/in-app/socialIcons.js.map +0 -1
- package/dist/cjs/react/web/wallets/shared/storage.js.map +0 -1
- package/dist/esm/react/native/ui/TransactionButton/TrabsactionButton.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButtonProps.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/defaultTokens.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/dataUris.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/socialLogins.js +0 -12
- package/dist/esm/react/web/ui/ConnectWallet/icons/socialLogins.js.map +0 -1
- package/dist/esm/react/web/ui/hooks/useSendToken.js +0 -54
- package/dist/esm/react/web/ui/hooks/useSendToken.js.map +0 -1
- package/dist/esm/react/web/ui/hooks/useWalletInfo.js +0 -33
- package/dist/esm/react/web/ui/hooks/useWalletInfo.js.map +0 -1
- package/dist/esm/react/web/utils/isSmartWallet.js.map +0 -1
- package/dist/esm/react/web/wallets/in-app/socialIcons.js +0 -7
- package/dist/esm/react/web/wallets/in-app/socialIcons.js.map +0 -1
- package/dist/esm/react/web/wallets/shared/storage.js.map +0 -1
- package/dist/types/react/native/ui/TransactionButton/TrabsactionButton.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButtonProps.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/defaultTokens.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/icons/dataUris.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/icons/socialLogins.d.ts +0 -12
- package/dist/types/react/web/ui/ConnectWallet/icons/socialLogins.d.ts.map +0 -1
- package/dist/types/react/web/ui/hooks/useSendToken.d.ts.map +0 -1
- package/dist/types/react/web/ui/hooks/useWalletInfo.d.ts +0 -13
- package/dist/types/react/web/ui/hooks/useWalletInfo.d.ts.map +0 -1
- package/dist/types/react/web/utils/isSmartWallet.d.ts.map +0 -1
- package/dist/types/react/web/wallets/in-app/socialIcons.d.ts +0 -6
- package/dist/types/react/web/wallets/in-app/socialIcons.d.ts.map +0 -1
- package/dist/types/react/web/wallets/shared/storage.d.ts +0 -5
- package/dist/types/react/web/wallets/shared/storage.d.ts.map +0 -1
- package/src/react/web/ui/ConnectWallet/icons/socialLogins.ts +0 -22
- package/src/react/web/ui/hooks/useSendToken.ts +0 -66
- package/src/react/web/ui/hooks/useWalletInfo.ts +0 -37
- package/src/react/web/wallets/in-app/socialIcons.ts +0 -11
- /package/dist/cjs/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.js +0 -0
- /package/dist/cjs/react/{web → core}/utils/isSmartWallet.js +0 -0
- /package/dist/cjs/react/{web/wallets/shared → core/utils}/storage.js +0 -0
- /package/dist/esm/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.js +0 -0
- /package/dist/esm/react/{web → core}/utils/isSmartWallet.js +0 -0
- /package/dist/esm/react/{web/wallets/shared → core/utils}/storage.js +0 -0
- /package/dist/types/react/{web → core}/utils/isSmartWallet.d.ts +0 -0
- /package/src/react/{web → core}/utils/isSmartWallet.ts +0 -0
- /package/src/react/native/ui/{TransactionButton/TrabsactionButton.tsx → transaction/TransactionButton.tsx} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "thirdweb",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.32.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
@@ -204,21 +204,24 @@
|
|
204
204
|
"mipd": "0.0.7",
|
205
205
|
"node-libs-browser": "2.2.1",
|
206
206
|
"uqr": "0.1.2",
|
207
|
-
"viem": "2.16.
|
207
|
+
"viem": "2.16.5"
|
208
208
|
},
|
209
209
|
"peerDependencies": {
|
210
210
|
"@aws-sdk/client-lambda": "^3",
|
211
211
|
"@aws-sdk/credential-providers": "^3",
|
212
212
|
"@coinbase/wallet-mobile-sdk": "^1",
|
213
213
|
"@react-native-async-storage/async-storage": "^1",
|
214
|
+
"@react-native-clipboard/clipboard": "^1",
|
214
215
|
"amazon-cognito-identity-js": "^6",
|
215
216
|
"aws-amplify": "^5",
|
216
217
|
"ethers": "^5 || ^6",
|
218
|
+
"expo-linking": "^6",
|
217
219
|
"expo-web-browser": "^13",
|
218
220
|
"react": ">=18",
|
219
221
|
"react-native": ">=0.70",
|
220
222
|
"react-native-aes-gcm-crypto": "^0.2",
|
221
223
|
"react-native-quick-crypto": ">=0.7.0-rc.6 || >=0.7",
|
224
|
+
"react-native-svg": "^15",
|
222
225
|
"typescript": ">=5.0.4"
|
223
226
|
},
|
224
227
|
"peerDependenciesMeta": {
|
@@ -237,12 +240,18 @@
|
|
237
240
|
"react-native-aes-gcm-crypto": {
|
238
241
|
"optional": true
|
239
242
|
},
|
243
|
+
"expo-linking": {
|
244
|
+
"optional": true
|
245
|
+
},
|
240
246
|
"expo-web-browser": {
|
241
247
|
"optional": true
|
242
248
|
},
|
243
249
|
"react-native-quick-crypto": {
|
244
250
|
"optional": true
|
245
251
|
},
|
252
|
+
"react-native-svg": {
|
253
|
+
"optional": true
|
254
|
+
},
|
246
255
|
"aws-amplify": {
|
247
256
|
"optional": true
|
248
257
|
},
|
@@ -258,6 +267,9 @@
|
|
258
267
|
"@react-native-async-storage/async-storage": {
|
259
268
|
"optional": true
|
260
269
|
},
|
270
|
+
"@react-native-clipboard/clipboard": {
|
271
|
+
"optional": true
|
272
|
+
},
|
261
273
|
"@coinbase/wallet-mobile-sdk": {
|
262
274
|
"optional": true
|
263
275
|
}
|
@@ -270,6 +282,7 @@
|
|
270
282
|
"@aws-sdk/credential-providers": "3.577.0",
|
271
283
|
"@coinbase/wallet-mobile-sdk": "1.0.13",
|
272
284
|
"@react-native-async-storage/async-storage": "^1.23.1",
|
285
|
+
"@react-native-clipboard/clipboard": "1.14.1",
|
273
286
|
"@testing-library/jest-dom": "^6.4.6",
|
274
287
|
"@testing-library/react": "^16.0.0",
|
275
288
|
"@testing-library/user-event": "^14.5.2",
|
@@ -280,12 +293,15 @@
|
|
280
293
|
"amazon-cognito-identity-js": "6.3.12",
|
281
294
|
"aws-amplify": "5.3.18",
|
282
295
|
"cross-spawn": "7.0.3",
|
296
|
+
"expo-linking": "6.3.1",
|
283
297
|
"expo-web-browser": "13.0.3",
|
284
298
|
"happy-dom": "^14.12.0",
|
285
299
|
"react-native": "0.74.2",
|
286
300
|
"react-native-aes-gcm-crypto": "0.2.2",
|
287
301
|
"react-native-quick-crypto": "0.7.0-rc.6",
|
288
|
-
"
|
302
|
+
"react-native-svg": "15.3.0",
|
303
|
+
"vitest": "1.6.0",
|
304
|
+
"typescript": "5.5.2"
|
289
305
|
},
|
290
306
|
"scripts": {
|
291
307
|
"bench:compare": "bun run ./benchmarks/run.ts",
|
@@ -1,5 +1,12 @@
|
|
1
1
|
export { ThirdwebProvider } from "../react/core/providers/thirdweb-provider.js";
|
2
2
|
|
3
|
+
// theme
|
4
|
+
export { darkTheme, lightTheme } from "../react/core/design-system/index.js";
|
5
|
+
export type {
|
6
|
+
Theme,
|
7
|
+
ThemeOverrides,
|
8
|
+
} from "../react/core/design-system/index.js";
|
9
|
+
|
3
10
|
// wallet hooks
|
4
11
|
export { useActiveWallet } from "../react/native/hooks/wallets/useActiveWallet.js";
|
5
12
|
export { useActiveWalletChain } from "../react/native/hooks/wallets/useActiveWalletChain.js";
|
@@ -77,11 +84,18 @@ export {
|
|
77
84
|
export { AutoConnect } from "../react/native/ui/AutoConnect/AutoConnect.js";
|
78
85
|
export type { AutoConnectProps } from "../react/core/hooks/connection/types.js";
|
79
86
|
|
80
|
-
export { TransactionButton } from "../react/native/ui/TransactionButton
|
87
|
+
export { TransactionButton } from "../react/native/ui/transaction/TransactionButton.js";
|
81
88
|
export type { TransactionButtonProps } from "../react/core/hooks/transaction/transaction-button-utils.js";
|
82
89
|
|
90
|
+
export type {
|
91
|
+
ConnectButtonProps,
|
92
|
+
ConnectButton_connectButtonOptions,
|
93
|
+
ConnectButton_connectModalOptions,
|
94
|
+
ConnectButton_detailsButtonOptions,
|
95
|
+
ConnectButton_detailsModalOptions,
|
96
|
+
} from "../react/core/hooks/connection/ConnectButtonProps.js";
|
97
|
+
export { ConnectButton } from "../react/native/ui/connect/ConnectButton.js";
|
98
|
+
export { ConnectEmbed } from "../react/native/ui/connect/ConnectModal.js";
|
99
|
+
|
83
100
|
// wallet info
|
84
|
-
export {
|
85
|
-
useWalletInfo,
|
86
|
-
useWalletImage,
|
87
|
-
} from "../react/web/ui/hooks/useWalletInfo.js";
|
101
|
+
export { useWalletInfo, useWalletImage } from "../react/core/utils/wallet.js";
|
package/src/exports/react.ts
CHANGED
@@ -5,10 +5,8 @@ export type {
|
|
5
5
|
} from "../react/core/design-system/index.js";
|
6
6
|
|
7
7
|
export { ConnectButton } from "../react/web/ui/ConnectWallet/ConnectButton.js";
|
8
|
-
export {
|
9
|
-
|
10
|
-
type ConnectEmbedProps,
|
11
|
-
} from "../react/web/ui/ConnectWallet/Modal/ConnectEmbed.js";
|
8
|
+
export { ConnectEmbed } from "../react/web/ui/ConnectWallet/Modal/ConnectEmbed.js";
|
9
|
+
export { type ConnectEmbedProps } from "../react/core/hooks/connection/ConnectEmbedProps.js";
|
12
10
|
|
13
11
|
export type {
|
14
12
|
ConnectButtonProps,
|
@@ -16,7 +14,7 @@ export type {
|
|
16
14
|
ConnectButton_connectModalOptions,
|
17
15
|
ConnectButton_detailsButtonOptions,
|
18
16
|
ConnectButton_detailsModalOptions,
|
19
|
-
} from "../react/
|
17
|
+
} from "../react/core/hooks/connection/ConnectButtonProps.js";
|
20
18
|
export type { NetworkSelectorProps } from "../react/web/ui/ConnectWallet/NetworkSelector.js";
|
21
19
|
export type { WelcomeScreen } from "../react/web/ui/ConnectWallet/screens/types.js";
|
22
20
|
export type { LocaleId } from "../react/web/ui/types.js";
|
@@ -30,8 +28,8 @@ export { ThirdwebProvider } from "../react/core/providers/thirdweb-provider.js";
|
|
30
28
|
export type {
|
31
29
|
SupportedTokens,
|
32
30
|
TokenInfo,
|
33
|
-
} from "../react/
|
34
|
-
export { defaultTokens } from "../react/
|
31
|
+
} from "../react/core/utils/defaultTokens.js";
|
32
|
+
export { defaultTokens } from "../react/core/utils/defaultTokens.js";
|
35
33
|
|
36
34
|
// Media Renderer
|
37
35
|
export { MediaRenderer } from "../react/web/ui/MediaRenderer/MediaRenderer.js";
|
@@ -123,7 +121,7 @@ export {
|
|
123
121
|
type PayEmbedProps,
|
124
122
|
type PayEmbedConnectOptions,
|
125
123
|
} from "../react/web/ui/PayEmbed.js";
|
126
|
-
export type { PayUIOptions } from "../react/
|
124
|
+
export type { PayUIOptions } from "../react/core/hooks/connection/ConnectButtonProps.js";
|
127
125
|
|
128
126
|
export {
|
129
127
|
useConnectModal,
|
@@ -131,10 +129,7 @@ export {
|
|
131
129
|
} from "../react/web/ui/ConnectWallet/useConnectModal.js";
|
132
130
|
|
133
131
|
// wallet info
|
134
|
-
export {
|
135
|
-
useWalletInfo,
|
136
|
-
useWalletImage,
|
137
|
-
} from "../react/web/ui/hooks/useWalletInfo.js";
|
132
|
+
export { useWalletInfo, useWalletImage } from "../react/core/utils/wallet.js";
|
138
133
|
|
139
134
|
export {
|
140
135
|
useWalletDetailsModal,
|
@@ -13,4 +13,4 @@ export { type GetAuthenticatedUserParams } from "../../wallets/in-app/core/authe
|
|
13
13
|
|
14
14
|
export { hasStoredPasskey } from "../../wallets/in-app/web/lib/auth/passkeys.js";
|
15
15
|
|
16
|
-
export { socialIcons } from "../../react/
|
16
|
+
export { socialIcons } from "../../react/core/utils/socialIcons.js";
|
@@ -1,59 +1,66 @@
|
|
1
1
|
import { getThirdwebDomains } from "../../utils/domains.js";
|
2
2
|
|
3
|
+
export const getPayBaseUrl = () => {
|
4
|
+
const payDomain: string = getThirdwebDomains().pay;
|
5
|
+
return payDomain.startsWith("localhost")
|
6
|
+
? `http://${payDomain}`
|
7
|
+
: `https://${payDomain}`;
|
8
|
+
};
|
9
|
+
|
3
10
|
/**
|
4
11
|
* Endpoint to get the status of a "Buy with Crypto" quote.
|
5
12
|
* @internal
|
6
13
|
*/
|
7
14
|
export const getPayBuyWithCryptoStatusUrl = () =>
|
8
|
-
|
15
|
+
`${getPayBaseUrl()}/buy-with-crypto/status/v1`;
|
9
16
|
/**
|
10
17
|
* Endpoint to get "Buy with Crypto" quote.
|
11
18
|
* @internal
|
12
19
|
*/
|
13
20
|
export const getPayBuyWithCryptoQuoteEndpoint = () =>
|
14
|
-
|
21
|
+
`${getPayBaseUrl()}/buy-with-crypto/quote/v1`;
|
15
22
|
|
16
23
|
/**
|
17
24
|
* Endpoint to get a "Buy with Fiat" quote.
|
18
25
|
* @internal
|
19
26
|
*/
|
20
27
|
export const getPayBuyWithFiatQuoteEndpoint = () =>
|
21
|
-
|
28
|
+
`${getPayBaseUrl()}/buy-with-fiat/quote/v1`;
|
22
29
|
|
23
30
|
/**
|
24
31
|
* Endpoint to get the status of a "Buy with Fiat" transaction status.
|
25
32
|
* @internal
|
26
33
|
*/
|
27
34
|
export const getPayBuyWithFiatStatusEndpoint = () =>
|
28
|
-
|
35
|
+
`${getPayBaseUrl()}/buy-with-fiat/status/v1`;
|
29
36
|
|
30
37
|
/**
|
31
38
|
* Endpoint to get history of "Buy with Fiat" transactions for given wallet address.
|
32
39
|
* @internal
|
33
40
|
*/
|
34
41
|
export const getPayBuyWithFiatHistoryEndpoint = () =>
|
35
|
-
|
42
|
+
`${getPayBaseUrl()}/buy-with-fiat/history/v1`;
|
36
43
|
|
37
44
|
/**
|
38
45
|
* Endpoint to get a "Buy with Crypto" transaction history for a given wallet address.
|
39
46
|
* @internal
|
40
47
|
*/
|
41
48
|
export const getPayBuyWithCryptoHistoryEndpoint = () =>
|
42
|
-
|
49
|
+
`${getPayBaseUrl()}/buy-with-crypto/history/v1`;
|
43
50
|
|
44
51
|
/**
|
45
52
|
* Endpoint to get a list of supported destination chains and tokens for thirdweb pay.
|
46
53
|
* @internal
|
47
54
|
*/
|
48
55
|
export const getPaySupportedDestinations = () =>
|
49
|
-
|
56
|
+
`${getPayBaseUrl()}/destination-tokens/v1`;
|
50
57
|
|
51
58
|
/**
|
52
59
|
* Endpoint to get a list of supported source chains + tokens for thirdweb pay.
|
53
60
|
* @internal
|
54
61
|
*/
|
55
62
|
export const getPaySupportedSources = () =>
|
56
|
-
|
63
|
+
`${getPayBaseUrl()}/buy-with-crypto/source-tokens/v1`;
|
57
64
|
|
58
65
|
/**
|
59
66
|
* Endpoint to get buy history for a given wallet address.
|
@@ -61,4 +68,4 @@ export const getPaySupportedSources = () =>
|
|
61
68
|
* @internal
|
62
69
|
*/
|
63
70
|
export const getPayBuyHistoryEndpoint = () =>
|
64
|
-
|
71
|
+
`${getPayBaseUrl()}/wallet/history/v1`;
|
@@ -3,12 +3,12 @@ import type { ThirdwebClient } from "../../../../client/client.js";
|
|
3
3
|
import type { Account, Wallet } from "../../../../wallets/interfaces/wallet.js";
|
4
4
|
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
|
5
5
|
import type { AppMetadata } from "../../../../wallets/types.js";
|
6
|
-
import type {
|
7
|
-
import type {
|
8
|
-
import type { LocaleId } from "
|
9
|
-
import type {
|
10
|
-
import type { SupportedTokens } from "
|
11
|
-
import type {
|
6
|
+
import type { NetworkSelectorProps } from "../../../web/ui/ConnectWallet/NetworkSelector.js";
|
7
|
+
import type { WelcomeScreen } from "../../../web/ui/ConnectWallet/screens/types.js";
|
8
|
+
import type { LocaleId } from "../../../web/ui/types.js";
|
9
|
+
import type { Theme } from "../../design-system/index.js";
|
10
|
+
import type { SupportedTokens } from "../../utils/defaultTokens.js";
|
11
|
+
import type { SiweAuthOptions } from "../auth/useSiweAuth.js";
|
12
12
|
|
13
13
|
export type PayUIOptions = {
|
14
14
|
/**
|
@@ -699,10 +699,7 @@ export type ConnectButtonProps = {
|
|
699
699
|
* />
|
700
700
|
* ```
|
701
701
|
*/
|
702
|
-
onDisconnect?: (info: {
|
703
|
-
wallet: Wallet;
|
704
|
-
account: Account;
|
705
|
-
}) => void;
|
702
|
+
onDisconnect?: (info: { wallet: Wallet; account: Account }) => void;
|
706
703
|
|
707
704
|
/**
|
708
705
|
* Configure options for WalletConnect
|
@@ -0,0 +1,285 @@
|
|
1
|
+
import type { Chain } from "../../../../chains/types.js";
|
2
|
+
import type { ThirdwebClient } from "../../../../client/client.js";
|
3
|
+
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
4
|
+
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
|
5
|
+
import type { AppMetadata } from "../../../../wallets/types.js";
|
6
|
+
import type { LocaleId } from "../../../web/ui/types.js";
|
7
|
+
import type { Theme } from "../../design-system/index.js";
|
8
|
+
import type { SiweAuthOptions } from "../auth/useSiweAuth.js";
|
9
|
+
|
10
|
+
export type ConnectEmbedProps = {
|
11
|
+
/**
|
12
|
+
* A client is the entry point to the thirdweb SDK.
|
13
|
+
* It is required for all other actions.
|
14
|
+
* You can create a client using the `createThirdwebClient` function. Refer to the [Creating a Client](https://portal.thirdweb.com/typescript/v5/client) documentation for more information.
|
15
|
+
*
|
16
|
+
* You must provide a `clientId` or `secretKey` in order to initialize a client. Pass `clientId` if you want for client-side usage and `secretKey` for server-side usage.
|
17
|
+
*
|
18
|
+
* ```tsx
|
19
|
+
* import { createThirdwebClient } from "thirdweb";
|
20
|
+
*
|
21
|
+
* const client = createThirdwebClient({
|
22
|
+
* clientId: "<your_client_id>",
|
23
|
+
* })
|
24
|
+
* ```
|
25
|
+
*/
|
26
|
+
client: ThirdwebClient;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.
|
30
|
+
*
|
31
|
+
* Some wallets display this information to the user when they connect to your app.
|
32
|
+
* @example
|
33
|
+
* ```ts
|
34
|
+
* {
|
35
|
+
* name: "My App",
|
36
|
+
* url: "https://my-app.com",
|
37
|
+
* description: "some description about your app",
|
38
|
+
* logoUrl: "https://path/to/my-app/logo.svg",
|
39
|
+
* };
|
40
|
+
* ```
|
41
|
+
*/
|
42
|
+
appMetadata?: AppMetadata;
|
43
|
+
|
44
|
+
/**
|
45
|
+
* By default - ConnectEmbed UI uses the `en-US` locale for english language users.
|
46
|
+
*
|
47
|
+
* You can customize the language used in the ConnectEmbed UI by setting the `locale` prop.
|
48
|
+
*
|
49
|
+
* Refer to the [`LocaleId`](https://portal.thirdweb.com/references/typescript/v5/LocaleId) type for supported locales.
|
50
|
+
*/
|
51
|
+
locale?: LocaleId;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Array of supported wallets. If not provided, default wallets will be used.
|
55
|
+
* @example
|
56
|
+
* ```tsx
|
57
|
+
* import { AutoConnect } from "thirdweb/react";
|
58
|
+
* import { createWallet, inAppWallet } from "thirdweb/wallets";
|
59
|
+
*
|
60
|
+
* const wallets = [
|
61
|
+
* inAppWallet(),
|
62
|
+
* createWallet("io.metamask"),
|
63
|
+
* createWallet("com.coinbase.wallet"),
|
64
|
+
* createWallet("me.rainbow"),
|
65
|
+
* ];
|
66
|
+
*
|
67
|
+
* function Example() {
|
68
|
+
* return (
|
69
|
+
* <ConnectEmbed
|
70
|
+
* client={client}
|
71
|
+
* wallets={wallets}
|
72
|
+
* />
|
73
|
+
* )
|
74
|
+
* }
|
75
|
+
* ```
|
76
|
+
*
|
77
|
+
* If no wallets are specified. The component will show All the EIP-6963 compliant installed wallet extensions, as well as below default wallets:
|
78
|
+
*
|
79
|
+
* ```tsx
|
80
|
+
* const defaultWallets = [
|
81
|
+
* inAppWallet(),
|
82
|
+
* createWallet("io.metamask"),
|
83
|
+
* createWallet("com.coinbase.wallet"),
|
84
|
+
* createWallet("me.rainbow"),
|
85
|
+
* createWallet("io.zerion.wallet"),
|
86
|
+
* ]
|
87
|
+
* ```
|
88
|
+
*
|
89
|
+
* The `ConnectEmbed` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 350+ wallets
|
90
|
+
*/
|
91
|
+
wallets?: Wallet[];
|
92
|
+
|
93
|
+
/**
|
94
|
+
* When the user has connected their wallet to your site, this configuration determines whether or not you want to automatically connect to the last connected wallet when user visits your site again in the future.
|
95
|
+
*
|
96
|
+
* By default it is set to `{ timeout: 15000 }` meaning that autoConnect is enabled and if the autoConnection does not succeed within 15 seconds, it will be cancelled.
|
97
|
+
*
|
98
|
+
* If you want to disable autoConnect, set this prop to `false`.
|
99
|
+
*
|
100
|
+
* If you want to customize the timeout, you can assign an object with a `timeout` key to this prop.
|
101
|
+
* ```tsx
|
102
|
+
* <ConnectEmbed client={client} autoConnect={{ timeout: 10000 }} />
|
103
|
+
* ```
|
104
|
+
*/
|
105
|
+
autoConnect?:
|
106
|
+
| {
|
107
|
+
timeout: number;
|
108
|
+
}
|
109
|
+
| boolean;
|
110
|
+
|
111
|
+
/**
|
112
|
+
* The [`Chain`](https://portal.thirdweb.com/references/typescript/v5/Chain) object of the blockchain you want the wallet to connect to
|
113
|
+
*
|
114
|
+
* If a `chain` is not specified, Wallet will be connected to whatever is the default set in the wallet.
|
115
|
+
*
|
116
|
+
* If a `chain` is specified, Wallet will be prompted to switch to given chain after connection if it is not already connected to it.
|
117
|
+
* This ensures that the wallet is connected to the correct blockchain before interacting with your app.
|
118
|
+
*
|
119
|
+
* You can create a `Chain` object using the [`defineChain`](https://portal.thirdweb.com/references/typescript/v5/defineChain) function.
|
120
|
+
* At minimum, you need to pass the `id` of the blockchain to `defineChain` function to create a `Chain` object.
|
121
|
+
* @example
|
122
|
+
* ```tsx
|
123
|
+
* import { polygon } from "thirdweb/chains";
|
124
|
+
*
|
125
|
+
* function Example() {
|
126
|
+
* return <div> <ConnectEmbed chain={polygon} /> </div>
|
127
|
+
* }
|
128
|
+
* ```
|
129
|
+
*/
|
130
|
+
chain?: Chain;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Array of chains that your app supports.
|
134
|
+
*
|
135
|
+
* This is only relevant if your app is a multi-chain app and works across multiple blockchains.
|
136
|
+
* If your app only works on a single blockchain, you should only specify the `chain` prop.
|
137
|
+
*
|
138
|
+
* Given list of chains will used in various ways:
|
139
|
+
* - They will be displayed in the network selector in the `ConnectEmbed`'s details modal post connection
|
140
|
+
* - They will be sent to wallet at the time of connection if the wallet supports requesting multiple chains ( example: WalletConnect ) so that users can switch between the chains post connection easily
|
141
|
+
*
|
142
|
+
* ```tsx
|
143
|
+
* <ConnectEmbed chains={[ethereum, polygon, optimism]} />
|
144
|
+
* ```
|
145
|
+
*
|
146
|
+
* You can create a `Chain` object using the [`defineChain`](https://portal.thirdweb.com/references/typescript/v5/defineChain) function.
|
147
|
+
* At minimum, you need to pass the `id` of the blockchain to `defineChain` function to create a `Chain` object.
|
148
|
+
*
|
149
|
+
* ```tsx
|
150
|
+
* import { defineChain } from "thirdweb/react";
|
151
|
+
*
|
152
|
+
* const polygon = defineChain({
|
153
|
+
* id: 137,
|
154
|
+
* });
|
155
|
+
* ```
|
156
|
+
*/
|
157
|
+
chains?: Chain[];
|
158
|
+
|
159
|
+
/**
|
160
|
+
* Class name to be added to the root element of ConnectEmbed
|
161
|
+
*/
|
162
|
+
className?: string;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Set the theme for the `ConnectEmbed` component. By default it is set to `"dark"`
|
166
|
+
*
|
167
|
+
* theme can be set to either `"dark"`, `"light"` or a custom theme object.
|
168
|
+
* You can also import [`lightTheme`](https://portal.thirdweb.com/references/typescript/v5/lightTheme)
|
169
|
+
* or [`darkTheme`](https://portal.thirdweb.com/references/typescript/v5/darkTheme)
|
170
|
+
* functions from `thirdweb/react` to use the default themes as base and overrides parts of it.
|
171
|
+
* @example
|
172
|
+
* ```ts
|
173
|
+
* import { lightTheme } from "thirdweb/react";
|
174
|
+
*
|
175
|
+
* const customTheme = lightTheme({
|
176
|
+
* colors: {
|
177
|
+
* modalBg: 'red'
|
178
|
+
* }
|
179
|
+
* })
|
180
|
+
*
|
181
|
+
* function Example() {
|
182
|
+
* return <ConnectEmbed theme={customTheme} />
|
183
|
+
* }
|
184
|
+
* ```
|
185
|
+
*/
|
186
|
+
theme?: "dark" | "light" | Theme;
|
187
|
+
|
188
|
+
/**
|
189
|
+
* CSS styles to be applied to the root element of ConnectEmbed
|
190
|
+
*/
|
191
|
+
style?: React.CSSProperties;
|
192
|
+
|
193
|
+
/**
|
194
|
+
* If provided, Embed will show a Terms of Service message at the bottom with below link
|
195
|
+
*/
|
196
|
+
termsOfServiceUrl?: string;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* If provided, Embed will show a Privacy Policy message at the bottom with below link
|
200
|
+
*/
|
201
|
+
privacyPolicyUrl?: string;
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Callback to be called on successful connection of wallet - including auto-connect.
|
205
|
+
* The callback is called with the connected wallet
|
206
|
+
*
|
207
|
+
* ```tsx
|
208
|
+
* <ConnectEmbed
|
209
|
+
* onConnect={(wallet) => {
|
210
|
+
* console.log("connected to", wallet)
|
211
|
+
* }}
|
212
|
+
* />
|
213
|
+
* ```
|
214
|
+
* ```
|
215
|
+
*/
|
216
|
+
onConnect?: (wallet: Wallet) => void;
|
217
|
+
|
218
|
+
/**
|
219
|
+
* By default, A "Powered by Thirdweb" branding is shown at the bottom of the embed.
|
220
|
+
*
|
221
|
+
* If you want to hide it, set this to `false`
|
222
|
+
* @example
|
223
|
+
* ```tsx
|
224
|
+
* <ConnectEmbed showThirdwebBranding={false} />
|
225
|
+
* ```
|
226
|
+
*/
|
227
|
+
showThirdwebBranding?: boolean;
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Configure options for WalletConnect
|
231
|
+
*
|
232
|
+
* By default WalletConnect uses the thirdweb's default project id.
|
233
|
+
* Setting your own project id is recommended.
|
234
|
+
*
|
235
|
+
* You can create a project id by signing up on [walletconnect.com](https://walletconnect.com/)
|
236
|
+
*/
|
237
|
+
walletConnect?: {
|
238
|
+
projectId?: string;
|
239
|
+
};
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Enable Account abstraction for all wallets. This will connect to the users's smart account based on the connected personal wallet and the given options.
|
243
|
+
*
|
244
|
+
* This allows to sponsor gas fees for your user's transaction using the thirdweb account abstraction infrastructure.
|
245
|
+
*
|
246
|
+
* ```tsx
|
247
|
+
* <ConnectEmbed
|
248
|
+
* accountAbstraction={{
|
249
|
+
* factoryAddress: "0x123...",
|
250
|
+
* chain: sepolia,
|
251
|
+
* gasless: true;
|
252
|
+
* }}
|
253
|
+
* />
|
254
|
+
*/
|
255
|
+
accountAbstraction?: SmartWalletOptions;
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Wallets to show as recommended in the `ConnectEmbed` UI
|
259
|
+
*/
|
260
|
+
recommendedWallets?: Wallet[];
|
261
|
+
|
262
|
+
/**
|
263
|
+
* By default, `ConnectEmbed` shows a "All Wallets" button that shows a list of 350+ wallets.
|
264
|
+
*
|
265
|
+
* You can disable this button by setting `showAllWallets` prop to `false`
|
266
|
+
*/
|
267
|
+
showAllWallets?: boolean;
|
268
|
+
|
269
|
+
/**
|
270
|
+
* ConnectEmbed supports two modal size variants: `compact` and `wide`.
|
271
|
+
*
|
272
|
+
* By default it is set to `compact`, you can set it to `wide` if you want to show a wider modal.
|
273
|
+
*
|
274
|
+
* Note that if the screen width can not fit the wide modal, the `compact` version will be shown regardless of this `modalSize` options provided
|
275
|
+
*/
|
276
|
+
modalSize?: "compact" | "wide";
|
277
|
+
|
278
|
+
/**
|
279
|
+
* Enable SIWE (Sign in with Ethererum) by passing an object of type `SiweAuthOptions` to
|
280
|
+
* enforce the users to sign a message after connecting their wallet to authenticate themselves.
|
281
|
+
*
|
282
|
+
* Refer to the [`SiweAuthOptions`](https://portal.thirdweb.com/references/typescript/v5/SiweAuthOptions) for more details
|
283
|
+
*/
|
284
|
+
auth?: SiweAuthOptions;
|
285
|
+
};
|
@@ -11,10 +11,10 @@ import {
|
|
11
11
|
type GetWalletBalanceResult,
|
12
12
|
getWalletBalance,
|
13
13
|
} from "../../../../wallets/utils/getWalletBalance.js";
|
14
|
-
import type { SupportedTokens } from "../../../web/ui/ConnectWallet/defaultTokens.js";
|
15
14
|
import { fetchBuySupportedDestinations } from "../../../web/ui/ConnectWallet/screens/Buy/swap/useSwapSupportedChains.js";
|
16
15
|
import type { LocaleId } from "../../../web/ui/types.js";
|
17
16
|
import type { Theme } from "../../design-system/index.js";
|
17
|
+
import type { SupportedTokens } from "../../utils/defaultTokens.js";
|
18
18
|
|
19
19
|
/**
|
20
20
|
* Configuration for the "Pay Modal" that opens when the user doesn't have enough funds to send a transaction.
|
@@ -15,7 +15,7 @@ import { useSetActiveWalletConnectionStatusCore } from "./useSetActiveWalletConn
|
|
15
15
|
export function useAutoConnectCore(
|
16
16
|
manager: ConnectionManager,
|
17
17
|
storage: AsyncStorage,
|
18
|
-
props: AutoConnectProps,
|
18
|
+
props: AutoConnectProps & { wallets: Wallet[] },
|
19
19
|
getInstalledWallets?: () => Wallet[],
|
20
20
|
) {
|
21
21
|
const setConnectionStatus = useSetActiveWalletConnectionStatusCore(manager);
|