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.
Files changed (525) hide show
  1. package/dist/cjs/exports/react.js +4 -4
  2. package/dist/cjs/exports/react.js.map +1 -1
  3. package/dist/cjs/exports/react.native.js +14 -6
  4. package/dist/cjs/exports/react.native.js.map +1 -1
  5. package/dist/cjs/exports/wallets/in-app.js +1 -1
  6. package/dist/cjs/exports/wallets/in-app.js.map +1 -1
  7. package/dist/cjs/pay/utils/definitions.js +17 -10
  8. package/dist/cjs/pay/utils/definitions.js.map +1 -1
  9. package/dist/cjs/react/core/hooks/connection/ConnectButtonProps.js.map +1 -0
  10. package/dist/cjs/react/core/hooks/connection/ConnectEmbedProps.js +3 -0
  11. package/dist/cjs/react/core/hooks/connection/ConnectEmbedProps.js.map +1 -0
  12. package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  13. package/dist/cjs/react/core/hooks/wallets/useAutoConnect.js.map +1 -1
  14. package/dist/cjs/react/core/hooks/wallets/useSendToken.js +81 -0
  15. package/dist/cjs/react/core/hooks/wallets/useSendToken.js.map +1 -0
  16. package/dist/cjs/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.js +20 -25
  17. package/dist/cjs/react/core/utils/defaultTokens.js.map +1 -0
  18. package/dist/cjs/react/core/utils/isSmartWallet.js.map +1 -0
  19. package/dist/cjs/react/{web/ui/ConnectWallet/icons/dataUris.js → core/utils/socialIcons.js} +19 -2
  20. package/dist/cjs/react/core/utils/socialIcons.js.map +1 -0
  21. package/dist/cjs/react/core/utils/storage.js.map +1 -0
  22. package/dist/cjs/react/core/utils/wallet.js +85 -0
  23. package/dist/cjs/react/core/utils/wallet.js.map +1 -0
  24. package/dist/cjs/react/native/design-system/index.js +33 -0
  25. package/dist/cjs/react/native/design-system/index.js.map +1 -0
  26. package/dist/cjs/react/native/hooks/wallets/useAutoConnect.js +5 -1
  27. package/dist/cjs/react/native/hooks/wallets/useAutoConnect.js.map +1 -1
  28. package/dist/cjs/react/native/hooks/wallets/useSendToken.js +31 -0
  29. package/dist/cjs/react/native/hooks/wallets/useSendToken.js.map +1 -0
  30. package/dist/cjs/react/native/ui/components/Address.js +31 -0
  31. package/dist/cjs/react/native/ui/components/Address.js.map +1 -0
  32. package/dist/cjs/react/native/ui/components/ChainIcon.js +30 -0
  33. package/dist/cjs/react/native/ui/components/ChainIcon.js.map +1 -0
  34. package/dist/cjs/react/native/ui/components/Header.js +30 -0
  35. package/dist/cjs/react/native/ui/components/Header.js.map +1 -0
  36. package/dist/cjs/react/native/ui/components/RNImage.js +43 -0
  37. package/dist/cjs/react/native/ui/components/RNImage.js.map +1 -0
  38. package/dist/cjs/react/native/ui/components/Skeleton.js +62 -0
  39. package/dist/cjs/react/native/ui/components/Skeleton.js.map +1 -0
  40. package/dist/cjs/react/native/ui/components/TokenIcon.js +16 -0
  41. package/dist/cjs/react/native/ui/components/TokenIcon.js.map +1 -0
  42. package/dist/cjs/react/native/ui/components/WalletImage.js +69 -0
  43. package/dist/cjs/react/native/ui/components/WalletImage.js.map +1 -0
  44. package/dist/cjs/react/native/ui/components/button.js +23 -8
  45. package/dist/cjs/react/native/ui/components/button.js.map +1 -1
  46. package/dist/cjs/react/native/ui/components/input.js +64 -0
  47. package/dist/cjs/react/native/ui/components/input.js.map +1 -0
  48. package/dist/cjs/react/native/ui/components/spacer.js +10 -0
  49. package/dist/cjs/react/native/ui/components/spacer.js.map +1 -0
  50. package/dist/cjs/react/native/ui/components/text.js +10 -7
  51. package/dist/cjs/react/native/ui/components/text.js.map +1 -1
  52. package/dist/cjs/react/native/ui/connect/ConnectButton.js +106 -0
  53. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -0
  54. package/dist/cjs/react/native/ui/connect/ConnectModal.js +133 -0
  55. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -0
  56. package/dist/cjs/react/native/ui/connect/ConnectedButton.js +42 -0
  57. package/dist/cjs/react/native/ui/connect/ConnectedButton.js.map +1 -0
  58. package/dist/cjs/react/native/ui/connect/ConnectedModal.js +175 -0
  59. package/dist/cjs/react/native/ui/connect/ConnectedModal.js.map +1 -0
  60. package/dist/cjs/react/native/ui/connect/ErrorView.js +25 -0
  61. package/dist/cjs/react/native/ui/connect/ErrorView.js.map +1 -0
  62. package/dist/cjs/react/native/ui/connect/ExternalWalletsList.js +67 -0
  63. package/dist/cjs/react/native/ui/connect/ExternalWalletsList.js.map +1 -0
  64. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js +167 -0
  65. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js.map +1 -0
  66. package/dist/cjs/react/native/ui/connect/ReceiveScreen.js +42 -0
  67. package/dist/cjs/react/native/ui/connect/ReceiveScreen.js.map +1 -0
  68. package/dist/cjs/react/native/ui/connect/SendScreen.js +82 -0
  69. package/dist/cjs/react/native/ui/connect/SendScreen.js.map +1 -0
  70. package/dist/cjs/react/native/ui/connect/SuccessView.js +25 -0
  71. package/dist/cjs/react/native/ui/connect/SuccessView.js.map +1 -0
  72. package/dist/cjs/react/native/ui/connect/TokenListScreen.js +59 -0
  73. package/dist/cjs/react/native/ui/connect/TokenListScreen.js.map +1 -0
  74. package/dist/cjs/react/native/ui/icons/svgs.js +236 -0
  75. package/dist/cjs/react/native/ui/icons/svgs.js.map +1 -0
  76. package/dist/cjs/react/native/ui/{TransactionButton/TrabsactionButton.js → transaction/TransactionButton.js} +1 -1
  77. package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -0
  78. package/dist/cjs/react/native/wallets/defaultWallets.js +22 -0
  79. package/dist/cjs/react/native/wallets/defaultWallets.js.map +1 -0
  80. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  81. package/dist/cjs/react/web/hooks/wallets/useAutoConnect.js +7 -2
  82. package/dist/cjs/react/web/hooks/wallets/useAutoConnect.js.map +1 -1
  83. package/dist/cjs/react/web/hooks/wallets/useSendToken.js +31 -0
  84. package/dist/cjs/react/web/hooks/wallets/useSendToken.js.map +1 -0
  85. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  86. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  87. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +7 -51
  88. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  89. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -8
  90. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  91. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +0 -4
  92. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  93. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
  94. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  95. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +2 -2
  96. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  97. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -2
  98. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  99. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
  100. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  101. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  102. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  103. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
  104. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  105. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js +4 -15
  106. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  107. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  108. package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
  109. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js +1 -1
  110. package/dist/cjs/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
  111. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  112. package/dist/cjs/react/web/ui/components/ChainIcon.js.map +1 -1
  113. package/dist/cjs/react/web/ui/components/TokenIcon.js +2 -2
  114. package/dist/cjs/react/web/ui/components/TokenIcon.js.map +1 -1
  115. package/dist/cjs/react/web/ui/components/WalletImage.js +12 -13
  116. package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
  117. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletHeader.js +2 -2
  118. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletHeader.js.map +1 -1
  119. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  120. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  121. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +5 -6
  122. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  123. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +1 -1
  124. package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  125. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +1 -1
  126. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  127. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +1 -1
  128. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  129. package/dist/cjs/version.js +1 -1
  130. package/dist/cjs/wallets/in-app/native/native-connector.js +3 -4
  131. package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
  132. package/dist/cjs/wallets/manager/index.js +3 -2
  133. package/dist/cjs/wallets/manager/index.js.map +1 -1
  134. package/dist/esm/exports/react.js +4 -3
  135. package/dist/esm/exports/react.js.map +1 -1
  136. package/dist/esm/exports/react.native.js +6 -2
  137. package/dist/esm/exports/react.native.js.map +1 -1
  138. package/dist/esm/exports/wallets/in-app.js +1 -1
  139. package/dist/esm/exports/wallets/in-app.js.map +1 -1
  140. package/dist/esm/pay/utils/definitions.js +15 -9
  141. package/dist/esm/pay/utils/definitions.js.map +1 -1
  142. package/dist/esm/react/core/hooks/connection/ConnectButtonProps.js.map +1 -0
  143. package/dist/esm/react/core/hooks/connection/ConnectEmbedProps.js +2 -0
  144. package/dist/esm/react/core/hooks/connection/ConnectEmbedProps.js.map +1 -0
  145. package/dist/esm/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  146. package/dist/esm/react/core/hooks/wallets/useAutoConnect.js.map +1 -1
  147. package/dist/esm/react/core/hooks/wallets/useSendToken.js +78 -0
  148. package/dist/esm/react/core/hooks/wallets/useSendToken.js.map +1 -0
  149. package/dist/esm/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.js +10 -15
  150. package/dist/esm/react/core/utils/defaultTokens.js.map +1 -0
  151. package/dist/esm/react/core/utils/isSmartWallet.js.map +1 -0
  152. package/dist/esm/react/{web/ui/ConnectWallet/icons/dataUris.js → core/utils/socialIcons.js} +18 -1
  153. package/dist/esm/react/core/utils/socialIcons.js.map +1 -0
  154. package/dist/esm/react/core/utils/storage.js.map +1 -0
  155. package/dist/esm/react/core/utils/wallet.js +80 -0
  156. package/dist/esm/react/core/utils/wallet.js.map +1 -0
  157. package/dist/esm/react/native/design-system/index.js +30 -0
  158. package/dist/esm/react/native/design-system/index.js.map +1 -0
  159. package/dist/esm/react/native/hooks/wallets/useAutoConnect.js +5 -1
  160. package/dist/esm/react/native/hooks/wallets/useAutoConnect.js.map +1 -1
  161. package/dist/esm/react/native/hooks/wallets/useSendToken.js +28 -0
  162. package/dist/esm/react/native/hooks/wallets/useSendToken.js.map +1 -0
  163. package/dist/esm/react/native/ui/components/Address.js +27 -0
  164. package/dist/esm/react/native/ui/components/Address.js.map +1 -0
  165. package/dist/esm/react/native/ui/components/ChainIcon.js +26 -0
  166. package/dist/esm/react/native/ui/components/ChainIcon.js.map +1 -0
  167. package/dist/esm/react/native/ui/components/Header.js +27 -0
  168. package/dist/esm/react/native/ui/components/Header.js.map +1 -0
  169. package/dist/esm/react/native/ui/components/RNImage.js +39 -0
  170. package/dist/esm/react/native/ui/components/RNImage.js.map +1 -0
  171. package/dist/esm/react/native/ui/components/Skeleton.js +58 -0
  172. package/dist/esm/react/native/ui/components/Skeleton.js.map +1 -0
  173. package/dist/esm/react/native/ui/components/TokenIcon.js +13 -0
  174. package/dist/esm/react/native/ui/components/TokenIcon.js.map +1 -0
  175. package/dist/esm/react/native/ui/components/WalletImage.js +65 -0
  176. package/dist/esm/react/native/ui/components/WalletImage.js.map +1 -0
  177. package/dist/esm/react/native/ui/components/button.js +24 -10
  178. package/dist/esm/react/native/ui/components/button.js.map +1 -1
  179. package/dist/esm/react/native/ui/components/input.js +60 -0
  180. package/dist/esm/react/native/ui/components/input.js.map +1 -0
  181. package/dist/esm/react/native/ui/components/spacer.js +7 -0
  182. package/dist/esm/react/native/ui/components/spacer.js.map +1 -0
  183. package/dist/esm/react/native/ui/components/text.js +10 -7
  184. package/dist/esm/react/native/ui/components/text.js.map +1 -1
  185. package/dist/esm/react/native/ui/connect/ConnectButton.js +103 -0
  186. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -0
  187. package/dist/esm/react/native/ui/connect/ConnectModal.js +129 -0
  188. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -0
  189. package/dist/esm/react/native/ui/connect/ConnectedButton.js +39 -0
  190. package/dist/esm/react/native/ui/connect/ConnectedButton.js.map +1 -0
  191. package/dist/esm/react/native/ui/connect/ConnectedModal.js +172 -0
  192. package/dist/esm/react/native/ui/connect/ConnectedModal.js.map +1 -0
  193. package/dist/esm/react/native/ui/connect/ErrorView.js +21 -0
  194. package/dist/esm/react/native/ui/connect/ErrorView.js.map +1 -0
  195. package/dist/esm/react/native/ui/connect/ExternalWalletsList.js +64 -0
  196. package/dist/esm/react/native/ui/connect/ExternalWalletsList.js.map +1 -0
  197. package/dist/esm/react/native/ui/connect/InAppWalletUI.js +163 -0
  198. package/dist/esm/react/native/ui/connect/InAppWalletUI.js.map +1 -0
  199. package/dist/esm/react/native/ui/connect/ReceiveScreen.js +38 -0
  200. package/dist/esm/react/native/ui/connect/ReceiveScreen.js.map +1 -0
  201. package/dist/esm/react/native/ui/connect/SendScreen.js +78 -0
  202. package/dist/esm/react/native/ui/connect/SendScreen.js.map +1 -0
  203. package/dist/esm/react/native/ui/connect/SuccessView.js +21 -0
  204. package/dist/esm/react/native/ui/connect/SuccessView.js.map +1 -0
  205. package/dist/esm/react/native/ui/connect/TokenListScreen.js +54 -0
  206. package/dist/esm/react/native/ui/connect/TokenListScreen.js.map +1 -0
  207. package/dist/esm/react/native/ui/icons/svgs.js +233 -0
  208. package/dist/esm/react/native/ui/icons/svgs.js.map +1 -0
  209. package/dist/esm/react/native/ui/{TransactionButton/TrabsactionButton.js → transaction/TransactionButton.js} +1 -1
  210. package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -0
  211. package/dist/esm/react/native/wallets/defaultWallets.js +19 -0
  212. package/dist/esm/react/native/wallets/defaultWallets.js.map +1 -0
  213. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  214. package/dist/esm/react/web/hooks/wallets/useAutoConnect.js +7 -2
  215. package/dist/esm/react/web/hooks/wallets/useAutoConnect.js.map +1 -1
  216. package/dist/esm/react/web/hooks/wallets/useSendToken.js +28 -0
  217. package/dist/esm/react/web/hooks/wallets/useSendToken.js.map +1 -0
  218. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  219. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  220. package/dist/esm/react/web/ui/ConnectWallet/Details.js +7 -51
  221. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  222. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +2 -8
  223. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  224. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -5
  225. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  226. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
  227. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  228. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +1 -1
  229. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  230. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +1 -1
  231. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  232. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
  233. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  234. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  235. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
  236. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
  237. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  238. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js +5 -16
  239. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  240. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  241. package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
  242. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js +1 -1
  243. package/dist/esm/react/web/ui/ConnectWallet/screens/ViewFunds.js.map +1 -1
  244. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  245. package/dist/esm/react/web/ui/components/ChainIcon.js.map +1 -1
  246. package/dist/esm/react/web/ui/components/TokenIcon.js +1 -1
  247. package/dist/esm/react/web/ui/components/WalletImage.js +3 -4
  248. package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
  249. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletHeader.js +1 -1
  250. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletHeader.js.map +1 -1
  251. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +8 -4
  252. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  253. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -3
  254. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  255. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +1 -1
  256. package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
  257. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +1 -1
  258. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  259. package/dist/esm/react/web/wallets/shared/SocialLogin.js +1 -1
  260. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  261. package/dist/esm/version.js +1 -1
  262. package/dist/esm/wallets/in-app/native/native-connector.js +3 -4
  263. package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
  264. package/dist/esm/wallets/manager/index.js +3 -2
  265. package/dist/esm/wallets/manager/index.js.map +1 -1
  266. package/dist/types/exports/react.d.ts +7 -6
  267. package/dist/types/exports/react.d.ts.map +1 -1
  268. package/dist/types/exports/react.native.d.ts +7 -2
  269. package/dist/types/exports/react.native.d.ts.map +1 -1
  270. package/dist/types/exports/wallets/in-app.d.ts +1 -1
  271. package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
  272. package/dist/types/pay/utils/definitions.d.ts +1 -0
  273. package/dist/types/pay/utils/definitions.d.ts.map +1 -1
  274. package/dist/types/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.d.ts +6 -6
  275. package/dist/types/react/core/hooks/connection/ConnectButtonProps.d.ts.map +1 -0
  276. package/dist/types/react/core/hooks/connection/ConnectEmbedProps.d.ts +264 -0
  277. package/dist/types/react/core/hooks/connection/ConnectEmbedProps.d.ts.map +1 -0
  278. package/dist/types/react/core/hooks/connection/types.d.ts +1 -1
  279. package/dist/types/react/core/hooks/connection/types.d.ts.map +1 -1
  280. package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts +1 -1
  281. package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts.map +1 -1
  282. package/dist/types/react/core/hooks/wallets/useAutoConnect.d.ts +3 -1
  283. package/dist/types/react/core/hooks/wallets/useAutoConnect.d.ts.map +1 -1
  284. package/dist/types/react/core/hooks/wallets/useSendToken.d.ts +12 -0
  285. package/dist/types/react/core/hooks/wallets/useSendToken.d.ts.map +1 -0
  286. package/dist/types/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.d.ts +1 -0
  287. package/dist/types/react/core/utils/defaultTokens.d.ts.map +1 -0
  288. package/dist/types/react/core/utils/isSmartWallet.d.ts.map +1 -0
  289. package/dist/types/react/{web/ui/ConnectWallet/icons/dataUris.d.ts → core/utils/socialIcons.d.ts} +17 -1
  290. package/dist/types/react/core/utils/socialIcons.d.ts.map +1 -0
  291. package/dist/types/react/core/utils/storage.d.ts +5 -0
  292. package/dist/types/react/core/utils/storage.d.ts.map +1 -0
  293. package/dist/types/react/core/utils/wallet.d.ts +26 -0
  294. package/dist/types/react/core/utils/wallet.d.ts.map +1 -0
  295. package/dist/types/react/native/design-system/index.d.ts +30 -0
  296. package/dist/types/react/native/design-system/index.d.ts.map +1 -0
  297. package/dist/types/react/native/hooks/wallets/useAutoConnect.d.ts.map +1 -1
  298. package/dist/types/react/{web/ui/hooks → native/hooks/wallets}/useSendToken.d.ts +18 -1
  299. package/dist/types/react/native/hooks/wallets/useSendToken.d.ts.map +1 -0
  300. package/dist/types/react/native/ui/components/Address.d.ts +9 -0
  301. package/dist/types/react/native/ui/components/Address.d.ts.map +1 -0
  302. package/dist/types/react/native/ui/components/ChainIcon.d.ts +11 -0
  303. package/dist/types/react/native/ui/components/ChainIcon.d.ts.map +1 -0
  304. package/dist/types/react/native/ui/components/Header.d.ts +10 -0
  305. package/dist/types/react/native/ui/components/Header.d.ts.map +1 -0
  306. package/dist/types/react/native/ui/components/RNImage.d.ts +10 -0
  307. package/dist/types/react/native/ui/components/RNImage.d.ts.map +1 -0
  308. package/dist/types/react/native/ui/components/Skeleton.d.ts +11 -0
  309. package/dist/types/react/native/ui/components/Skeleton.d.ts.map +1 -0
  310. package/dist/types/react/native/ui/components/TokenIcon.d.ts +15 -0
  311. package/dist/types/react/native/ui/components/TokenIcon.d.ts.map +1 -0
  312. package/dist/types/react/native/ui/components/WalletImage.d.ts +9 -0
  313. package/dist/types/react/native/ui/components/WalletImage.d.ts.map +1 -0
  314. package/dist/types/react/native/ui/components/button.d.ts +5 -1
  315. package/dist/types/react/native/ui/components/button.d.ts.map +1 -1
  316. package/dist/types/react/native/ui/components/input.d.ts +12 -0
  317. package/dist/types/react/native/ui/components/input.d.ts.map +1 -0
  318. package/dist/types/react/native/ui/components/spacer.d.ts +5 -0
  319. package/dist/types/react/native/ui/components/spacer.d.ts.map +1 -0
  320. package/dist/types/react/native/ui/components/text.d.ts +1 -1
  321. package/dist/types/react/native/ui/components/text.d.ts.map +1 -1
  322. package/dist/types/react/native/ui/connect/ConnectButton.d.ts +18 -0
  323. package/dist/types/react/native/ui/connect/ConnectButton.d.ts.map +1 -0
  324. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +40 -0
  325. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -0
  326. package/dist/types/react/native/ui/connect/ConnectedButton.d.ts +9 -0
  327. package/dist/types/react/native/ui/connect/ConnectedButton.d.ts.map +1 -0
  328. package/dist/types/react/native/ui/connect/ConnectedModal.d.ts +14 -0
  329. package/dist/types/react/native/ui/connect/ConnectedModal.d.ts.map +1 -0
  330. package/dist/types/react/native/ui/connect/ErrorView.d.ts +7 -0
  331. package/dist/types/react/native/ui/connect/ErrorView.d.ts.map +1 -0
  332. package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts +15 -0
  333. package/dist/types/react/native/ui/connect/ExternalWalletsList.d.ts.map +1 -0
  334. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts +19 -0
  335. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -0
  336. package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts +13 -0
  337. package/dist/types/react/native/ui/connect/ReceiveScreen.d.ts.map +1 -0
  338. package/dist/types/react/native/ui/connect/SendScreen.d.ts +14 -0
  339. package/dist/types/react/native/ui/connect/SendScreen.d.ts.map +1 -0
  340. package/dist/types/react/native/ui/connect/SuccessView.d.ts +7 -0
  341. package/dist/types/react/native/ui/connect/SuccessView.d.ts.map +1 -0
  342. package/dist/types/react/native/ui/connect/TokenListScreen.d.ts +20 -0
  343. package/dist/types/react/native/ui/connect/TokenListScreen.d.ts.map +1 -0
  344. package/dist/types/react/native/ui/icons/svgs.d.ts +22 -0
  345. package/dist/types/react/native/ui/icons/svgs.d.ts.map +1 -0
  346. package/dist/types/react/native/ui/{TransactionButton/TrabsactionButton.d.ts → transaction/TransactionButton.d.ts} +1 -1
  347. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts.map +1 -0
  348. package/dist/types/react/native/wallets/defaultWallets.d.ts +11 -0
  349. package/dist/types/react/native/wallets/defaultWallets.d.ts.map +1 -0
  350. package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts.map +1 -1
  351. package/dist/types/react/web/hooks/wallets/useAutoConnect.d.ts.map +1 -1
  352. package/dist/types/react/web/hooks/wallets/useSendToken.d.ts +28 -0
  353. package/dist/types/react/web/hooks/wallets/useSendToken.d.ts.map +1 -0
  354. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +1 -1
  355. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  356. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +2 -2
  357. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  358. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  359. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -267
  360. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  361. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
  362. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
  363. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  364. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts +2 -2
  365. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
  366. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts +1 -1
  367. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts.map +1 -1
  368. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts +1 -1
  369. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts.map +1 -1
  370. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts +1 -1
  371. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
  372. package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts +1 -1
  373. package/dist/types/react/web/ui/ConnectWallet/screens/SendFunds.d.ts.map +1 -1
  374. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts +1 -1
  375. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
  376. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts +1 -1
  377. package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts.map +1 -1
  378. package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts +1 -1
  379. package/dist/types/react/web/ui/ConnectWallet/screens/ViewFunds.d.ts.map +1 -1
  380. package/dist/types/react/web/ui/ConnectWallet/screens/nativeToken.d.ts +1 -1
  381. package/dist/types/react/web/ui/ConnectWallet/screens/nativeToken.d.ts.map +1 -1
  382. package/dist/types/react/web/ui/PayEmbed.d.ts +2 -2
  383. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  384. package/dist/types/react/web/ui/components/ChainIcon.d.ts.map +1 -1
  385. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  386. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  387. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  388. package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
  389. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  390. package/dist/types/version.d.ts +1 -1
  391. package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
  392. package/dist/types/wallets/manager/index.d.ts +1 -0
  393. package/dist/types/wallets/manager/index.d.ts.map +1 -1
  394. package/package.json +19 -3
  395. package/src/exports/react.native.ts +19 -5
  396. package/src/exports/react.ts +7 -12
  397. package/src/exports/wallets/in-app.ts +1 -1
  398. package/src/pay/utils/definitions.ts +16 -9
  399. package/src/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.ts +7 -10
  400. package/src/react/core/hooks/connection/ConnectEmbedProps.ts +285 -0
  401. package/src/react/core/hooks/connection/types.ts +1 -1
  402. package/src/react/core/hooks/transaction/useSendTransaction.ts +1 -1
  403. package/src/react/core/hooks/wallets/useAutoConnect.ts +1 -1
  404. package/src/react/core/hooks/wallets/useSendToken.ts +94 -0
  405. package/src/react/{web/ui/ConnectWallet → core/utils}/defaultTokens.ts +10 -15
  406. package/src/react/{web/ui/ConnectWallet/icons/dataUris.ts → core/utils/socialIcons.ts} +30 -0
  407. package/src/react/{web/wallets/shared → core/utils}/storage.ts +2 -2
  408. package/src/react/core/utils/wallet.ts +101 -0
  409. package/src/react/native/design-system/index.ts +31 -0
  410. package/src/react/native/hooks/wallets/useAutoConnect.ts +5 -1
  411. package/src/react/native/hooks/wallets/useSendToken.ts +29 -0
  412. package/src/react/native/ui/components/Address.tsx +52 -0
  413. package/src/react/native/ui/components/ChainIcon.tsx +42 -0
  414. package/src/react/native/ui/components/Header.tsx +84 -0
  415. package/src/react/native/ui/components/RNImage.tsx +71 -0
  416. package/src/react/native/ui/components/Skeleton.tsx +93 -0
  417. package/src/react/native/ui/components/TokenIcon.tsx +31 -0
  418. package/src/react/native/ui/components/WalletImage.tsx +81 -0
  419. package/src/react/native/ui/components/button.tsx +41 -9
  420. package/src/react/native/ui/components/input.tsx +128 -0
  421. package/src/react/native/ui/components/spacer.tsx +6 -0
  422. package/src/react/native/ui/components/text.tsx +17 -8
  423. package/src/react/native/ui/connect/ConnectButton.tsx +188 -0
  424. package/src/react/native/ui/connect/ConnectModal.tsx +301 -0
  425. package/src/react/native/ui/connect/ConnectedButton.tsx +94 -0
  426. package/src/react/native/ui/connect/ConnectedModal.tsx +434 -0
  427. package/src/react/native/ui/connect/ErrorView.tsx +44 -0
  428. package/src/react/native/ui/connect/ExternalWalletsList.tsx +162 -0
  429. package/src/react/native/ui/connect/InAppWalletUI.tsx +320 -0
  430. package/src/react/native/ui/connect/ReceiveScreen.tsx +81 -0
  431. package/src/react/native/ui/connect/SendScreen.tsx +238 -0
  432. package/src/react/native/ui/connect/SuccessView.tsx +44 -0
  433. package/src/react/native/ui/connect/TokenListScreen.tsx +147 -0
  434. package/src/react/native/ui/icons/svgs.ts +252 -0
  435. package/src/react/native/wallets/defaultWallets.ts +30 -0
  436. package/src/react/web/hooks/transaction/useSendTransaction.tsx +2 -2
  437. package/src/react/web/hooks/wallets/useAutoConnect.ts +18 -8
  438. package/src/react/web/hooks/wallets/useSendToken.ts +29 -0
  439. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +2 -2
  440. package/src/react/web/ui/ConnectWallet/Details.tsx +26 -78
  441. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +2 -9
  442. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +6 -285
  443. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +3 -1
  444. package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +1 -1
  445. package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +1 -1
  446. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +1 -1
  447. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +2 -2
  448. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +1 -1
  449. package/src/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.ts +1 -1
  450. package/src/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.ts +1 -1
  451. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +1 -1
  452. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.tsx +1 -1
  453. package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +8 -21
  454. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +1 -1
  455. package/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx +1 -1
  456. package/src/react/web/ui/ConnectWallet/screens/ViewFunds.tsx +4 -1
  457. package/src/react/web/ui/ConnectWallet/screens/nativeToken.ts +1 -1
  458. package/src/react/web/ui/PayEmbed.tsx +3 -3
  459. package/src/react/web/ui/components/ChainIcon.tsx +0 -1
  460. package/src/react/web/ui/components/TokenIcon.tsx +1 -1
  461. package/src/react/web/ui/components/WalletImage.tsx +7 -9
  462. package/src/react/web/wallets/ecosystem/EcosystemWalletHeader.tsx +1 -1
  463. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +8 -4
  464. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +6 -6
  465. package/src/react/web/wallets/shared/OTPLoginUI.tsx +1 -1
  466. package/src/react/web/wallets/shared/PassKeyLogin.tsx +1 -1
  467. package/src/react/web/wallets/shared/SocialLogin.tsx +1 -1
  468. package/src/version.ts +1 -1
  469. package/src/wallets/in-app/native/native-connector.ts +4 -6
  470. package/src/wallets/manager/index.ts +4 -2
  471. package/dist/cjs/react/native/ui/TransactionButton/TrabsactionButton.js.map +0 -1
  472. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButtonProps.js.map +0 -1
  473. package/dist/cjs/react/web/ui/ConnectWallet/defaultTokens.js.map +0 -1
  474. package/dist/cjs/react/web/ui/ConnectWallet/icons/dataUris.js.map +0 -1
  475. package/dist/cjs/react/web/ui/ConnectWallet/icons/socialLogins.js +0 -15
  476. package/dist/cjs/react/web/ui/ConnectWallet/icons/socialLogins.js.map +0 -1
  477. package/dist/cjs/react/web/ui/hooks/useSendToken.js +0 -57
  478. package/dist/cjs/react/web/ui/hooks/useSendToken.js.map +0 -1
  479. package/dist/cjs/react/web/ui/hooks/useWalletInfo.js +0 -37
  480. package/dist/cjs/react/web/ui/hooks/useWalletInfo.js.map +0 -1
  481. package/dist/cjs/react/web/utils/isSmartWallet.js.map +0 -1
  482. package/dist/cjs/react/web/wallets/in-app/socialIcons.js +0 -10
  483. package/dist/cjs/react/web/wallets/in-app/socialIcons.js.map +0 -1
  484. package/dist/cjs/react/web/wallets/shared/storage.js.map +0 -1
  485. package/dist/esm/react/native/ui/TransactionButton/TrabsactionButton.js.map +0 -1
  486. package/dist/esm/react/web/ui/ConnectWallet/ConnectButtonProps.js.map +0 -1
  487. package/dist/esm/react/web/ui/ConnectWallet/defaultTokens.js.map +0 -1
  488. package/dist/esm/react/web/ui/ConnectWallet/icons/dataUris.js.map +0 -1
  489. package/dist/esm/react/web/ui/ConnectWallet/icons/socialLogins.js +0 -12
  490. package/dist/esm/react/web/ui/ConnectWallet/icons/socialLogins.js.map +0 -1
  491. package/dist/esm/react/web/ui/hooks/useSendToken.js +0 -54
  492. package/dist/esm/react/web/ui/hooks/useSendToken.js.map +0 -1
  493. package/dist/esm/react/web/ui/hooks/useWalletInfo.js +0 -33
  494. package/dist/esm/react/web/ui/hooks/useWalletInfo.js.map +0 -1
  495. package/dist/esm/react/web/utils/isSmartWallet.js.map +0 -1
  496. package/dist/esm/react/web/wallets/in-app/socialIcons.js +0 -7
  497. package/dist/esm/react/web/wallets/in-app/socialIcons.js.map +0 -1
  498. package/dist/esm/react/web/wallets/shared/storage.js.map +0 -1
  499. package/dist/types/react/native/ui/TransactionButton/TrabsactionButton.d.ts.map +0 -1
  500. package/dist/types/react/web/ui/ConnectWallet/ConnectButtonProps.d.ts.map +0 -1
  501. package/dist/types/react/web/ui/ConnectWallet/defaultTokens.d.ts.map +0 -1
  502. package/dist/types/react/web/ui/ConnectWallet/icons/dataUris.d.ts.map +0 -1
  503. package/dist/types/react/web/ui/ConnectWallet/icons/socialLogins.d.ts +0 -12
  504. package/dist/types/react/web/ui/ConnectWallet/icons/socialLogins.d.ts.map +0 -1
  505. package/dist/types/react/web/ui/hooks/useSendToken.d.ts.map +0 -1
  506. package/dist/types/react/web/ui/hooks/useWalletInfo.d.ts +0 -13
  507. package/dist/types/react/web/ui/hooks/useWalletInfo.d.ts.map +0 -1
  508. package/dist/types/react/web/utils/isSmartWallet.d.ts.map +0 -1
  509. package/dist/types/react/web/wallets/in-app/socialIcons.d.ts +0 -6
  510. package/dist/types/react/web/wallets/in-app/socialIcons.d.ts.map +0 -1
  511. package/dist/types/react/web/wallets/shared/storage.d.ts +0 -5
  512. package/dist/types/react/web/wallets/shared/storage.d.ts.map +0 -1
  513. package/src/react/web/ui/ConnectWallet/icons/socialLogins.ts +0 -22
  514. package/src/react/web/ui/hooks/useSendToken.ts +0 -66
  515. package/src/react/web/ui/hooks/useWalletInfo.ts +0 -37
  516. package/src/react/web/wallets/in-app/socialIcons.ts +0 -11
  517. /package/dist/cjs/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.js +0 -0
  518. /package/dist/cjs/react/{web → core}/utils/isSmartWallet.js +0 -0
  519. /package/dist/cjs/react/{web/wallets/shared → core/utils}/storage.js +0 -0
  520. /package/dist/esm/react/{web/ui/ConnectWallet → core/hooks/connection}/ConnectButtonProps.js +0 -0
  521. /package/dist/esm/react/{web → core}/utils/isSmartWallet.js +0 -0
  522. /package/dist/esm/react/{web/wallets/shared → core/utils}/storage.js +0 -0
  523. /package/dist/types/react/{web → core}/utils/isSmartWallet.d.ts +0 -0
  524. /package/src/react/{web → core}/utils/isSmartWallet.ts +0 -0
  525. /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.31.1",
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.4"
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
- "vitest": "1.6.0"
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/TrabsactionButton.js";
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";
@@ -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
- ConnectEmbed,
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/web/ui/ConnectWallet/ConnectButtonProps.js";
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/web/ui/ConnectWallet/defaultTokens.js";
34
- export { defaultTokens } from "../react/web/ui/ConnectWallet/defaultTokens.js";
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/web/ui/ConnectWallet/ConnectButtonProps.js";
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/web/wallets/in-app/socialIcons.js";
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
- `https://${getThirdwebDomains().pay}/buy-with-crypto/status/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-crypto/quote/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-fiat/quote/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-fiat/status/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-fiat/history/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-crypto/history/v1`;
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
- `https://${getThirdwebDomains().pay}/destination-tokens/v1`;
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
- `https://${getThirdwebDomains().pay}/buy-with-crypto/source-tokens/v1`;
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
- `https://${getThirdwebDomains().pay}/wallet/history/v1`;
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 { Theme } from "../../../core/design-system/index.js";
7
- import type { SiweAuthOptions } from "../../../core/hooks/auth/useSiweAuth.js";
8
- import type { LocaleId } from "../types.js";
9
- import type { NetworkSelectorProps } from "./NetworkSelector.js";
10
- import type { SupportedTokens } from "./defaultTokens.js";
11
- import type { WelcomeScreen } from "./screens/types.js";
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
+ };
@@ -28,7 +28,7 @@ export type AutoConnectProps = {
28
28
  * }
29
29
  * ```
30
30
  */
31
- wallets: Wallet[];
31
+ wallets?: Wallet[];
32
32
 
33
33
  /**
34
34
  * A client is the entry point to the thirdweb SDK.
@@ -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);