thirdweb 5.32.2-nightly-a6ed6e66dae7f2fa239c76a57e93b545e5d8da8d-20240704000330 → 5.32.2

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 (398) hide show
  1. package/dist/cjs/gas/fee-data.js +13 -6
  2. package/dist/cjs/gas/fee-data.js.map +1 -1
  3. package/dist/cjs/pay/buyWithCrypto/getQuote.js +1 -0
  4. package/dist/cjs/pay/buyWithCrypto/getQuote.js.map +1 -1
  5. package/dist/cjs/pay/buyWithFiat/getPostOnRampQuote.js +5 -0
  6. package/dist/cjs/pay/buyWithFiat/getPostOnRampQuote.js.map +1 -1
  7. package/dist/cjs/pay/buyWithFiat/getQuote.js.map +1 -1
  8. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js +4 -1
  9. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  10. package/dist/cjs/react/native/ui/components/Header.js +1 -1
  11. package/dist/cjs/react/native/ui/components/Header.js.map +1 -1
  12. package/dist/cjs/react/native/ui/components/button.js +1 -1
  13. package/dist/cjs/react/native/ui/components/button.js.map +1 -1
  14. package/dist/cjs/react/native/ui/connect/ConnectButton.js +1 -1
  15. package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
  16. package/dist/cjs/react/native/ui/connect/ConnectModal.js +7 -8
  17. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
  18. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js +1 -1
  19. package/dist/cjs/react/native/ui/connect/InAppWalletUI.js.map +1 -1
  20. package/dist/cjs/react/native/ui/icons/svgs.js +5 -5
  21. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js +2 -2
  22. package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  23. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +12 -2
  24. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  25. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +19 -5
  26. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  27. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  28. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  29. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +5 -4
  30. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  31. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +5 -4
  32. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  33. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js +1 -1
  34. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  35. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +11 -7
  36. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  37. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  39. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +12 -12
  40. package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  41. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +3 -5
  42. package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  43. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +24 -14
  44. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  45. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js +1 -0
  46. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  47. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js +1 -0
  48. package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  49. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js +1 -0
  50. package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  51. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js +1 -0
  52. package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  53. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +144 -87
  54. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  55. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js +49 -0
  56. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js.map +1 -0
  57. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +32 -0
  58. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -0
  59. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js +1 -1
  60. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js.map +1 -1
  61. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  62. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  63. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +6 -1
  64. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  65. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js +2 -4
  66. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js.map +1 -1
  67. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js +1 -1
  68. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js.map +1 -1
  69. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +18 -17
  70. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  71. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -6
  72. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  73. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js +1 -1
  74. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js.map +1 -1
  75. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js +26 -0
  76. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js.map +1 -0
  77. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js +12 -1
  78. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js.map +1 -1
  79. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js +1 -1
  80. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js.map +1 -1
  81. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js +8 -1
  82. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js.map +1 -1
  83. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js +1 -1
  84. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js.map +1 -1
  85. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/types.js +3 -0
  86. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/types.js.map +1 -0
  87. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js +55 -0
  88. package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js.map +1 -0
  89. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +78 -0
  90. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -0
  91. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js +3 -4
  92. package/dist/cjs/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  93. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  94. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  95. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js +31 -0
  96. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js.map +1 -0
  97. package/dist/cjs/react/web/ui/PayEmbed.js +3 -17
  98. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  99. package/dist/cjs/react/web/ui/components/CopyIcon.js +1 -1
  100. package/dist/cjs/react/web/ui/components/CopyIcon.js.map +1 -1
  101. package/dist/cjs/react/web/ui/components/Drawer.js +51 -17
  102. package/dist/cjs/react/web/ui/components/Drawer.js.map +1 -1
  103. package/dist/cjs/react/web/ui/components/SwitchNetwork.js +1 -3
  104. package/dist/cjs/react/web/ui/components/SwitchNetwork.js.map +1 -1
  105. package/dist/cjs/react/web/ui/components/WalletImage.js +1 -0
  106. package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
  107. package/dist/cjs/react/web/ui/components/buttons.js +5 -1
  108. package/dist/cjs/react/web/ui/components/buttons.js.map +1 -1
  109. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +2 -1
  110. package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  111. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +2 -1
  112. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  113. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js +2 -2
  114. package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  115. package/dist/cjs/utils/formatNumber.js +4 -1
  116. package/dist/cjs/utils/formatNumber.js.map +1 -1
  117. package/dist/cjs/version.js +1 -1
  118. package/dist/cjs/version.js.map +1 -1
  119. package/dist/esm/gas/fee-data.js +13 -6
  120. package/dist/esm/gas/fee-data.js.map +1 -1
  121. package/dist/esm/pay/buyWithCrypto/getQuote.js +1 -0
  122. package/dist/esm/pay/buyWithCrypto/getQuote.js.map +1 -1
  123. package/dist/esm/pay/buyWithFiat/getPostOnRampQuote.js +5 -0
  124. package/dist/esm/pay/buyWithFiat/getPostOnRampQuote.js.map +1 -1
  125. package/dist/esm/pay/buyWithFiat/getQuote.js.map +1 -1
  126. package/dist/esm/react/core/hooks/auth/useSiweAuth.js +4 -1
  127. package/dist/esm/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  128. package/dist/esm/react/native/ui/components/Header.js +1 -1
  129. package/dist/esm/react/native/ui/components/Header.js.map +1 -1
  130. package/dist/esm/react/native/ui/components/button.js +1 -1
  131. package/dist/esm/react/native/ui/components/button.js.map +1 -1
  132. package/dist/esm/react/native/ui/connect/ConnectButton.js +1 -1
  133. package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
  134. package/dist/esm/react/native/ui/connect/ConnectModal.js +8 -9
  135. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
  136. package/dist/esm/react/native/ui/connect/InAppWalletUI.js +1 -1
  137. package/dist/esm/react/native/ui/connect/InAppWalletUI.js.map +1 -1
  138. package/dist/esm/react/native/ui/icons/svgs.js +5 -5
  139. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js +2 -2
  140. package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
  141. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +12 -2
  142. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  143. package/dist/esm/react/web/ui/ConnectWallet/Details.js +20 -6
  144. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  145. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  146. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  147. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +5 -4
  148. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  149. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +2 -2
  150. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  151. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js +1 -1
  152. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
  153. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +11 -7
  154. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
  155. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +1 -1
  156. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
  157. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +12 -12
  158. package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
  159. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
  160. package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
  161. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +25 -15
  162. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  163. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js +1 -0
  164. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js.map +1 -1
  165. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js +1 -0
  166. package/dist/esm/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
  167. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js +1 -0
  168. package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
  169. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js +1 -0
  170. package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
  171. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +145 -88
  172. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
  173. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js +46 -0
  174. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.js.map +1 -0
  175. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js +29 -0
  176. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.js.map +1 -0
  177. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js +1 -1
  178. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.js.map +1 -1
  179. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js +1 -1
  180. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.js.map +1 -1
  181. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +6 -1
  182. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
  183. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js +2 -4
  184. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.js.map +1 -1
  185. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js +1 -1
  186. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.js.map +1 -1
  187. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +18 -17
  188. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
  189. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +3 -7
  190. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
  191. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js +1 -1
  192. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.js.map +1 -1
  193. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js +23 -0
  194. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.js.map +1 -0
  195. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js +12 -1
  196. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.js.map +1 -1
  197. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js +1 -1
  198. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.js.map +1 -1
  199. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js +8 -1
  200. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.js.map +1 -1
  201. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js +1 -1
  202. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.js.map +1 -1
  203. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/types.js +2 -0
  204. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/types.js.map +1 -0
  205. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js +52 -0
  206. package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.js.map +1 -0
  207. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +75 -0
  208. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -0
  209. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js +4 -5
  210. package/dist/esm/react/web/ui/ConnectWallet/screens/SendFunds.js.map +1 -1
  211. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  212. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
  213. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js +28 -0
  214. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.js.map +1 -0
  215. package/dist/esm/react/web/ui/PayEmbed.js +3 -17
  216. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  217. package/dist/esm/react/web/ui/components/CopyIcon.js +1 -1
  218. package/dist/esm/react/web/ui/components/CopyIcon.js.map +1 -1
  219. package/dist/esm/react/web/ui/components/Drawer.js +54 -20
  220. package/dist/esm/react/web/ui/components/Drawer.js.map +1 -1
  221. package/dist/esm/react/web/ui/components/SwitchNetwork.js +1 -3
  222. package/dist/esm/react/web/ui/components/SwitchNetwork.js.map +1 -1
  223. package/dist/esm/react/web/ui/components/WalletImage.js +1 -0
  224. package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
  225. package/dist/esm/react/web/ui/components/buttons.js +5 -1
  226. package/dist/esm/react/web/ui/components/buttons.js.map +1 -1
  227. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +2 -1
  228. package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
  229. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +2 -1
  230. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  231. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js +2 -2
  232. package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
  233. package/dist/esm/utils/formatNumber.js +4 -1
  234. package/dist/esm/utils/formatNumber.js.map +1 -1
  235. package/dist/esm/version.js +1 -1
  236. package/dist/esm/version.js.map +1 -1
  237. package/dist/types/gas/fee-data.d.ts.map +1 -1
  238. package/dist/types/pay/buyWithCrypto/getQuote.d.ts +5 -1
  239. package/dist/types/pay/buyWithCrypto/getQuote.d.ts.map +1 -1
  240. package/dist/types/pay/buyWithFiat/getPostOnRampQuote.d.ts.map +1 -1
  241. package/dist/types/pay/buyWithFiat/getQuote.d.ts +4 -0
  242. package/dist/types/pay/buyWithFiat/getQuote.d.ts.map +1 -1
  243. package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts.map +1 -1
  244. package/dist/types/react/native/ui/components/Header.d.ts +1 -1
  245. package/dist/types/react/native/ui/components/Header.d.ts.map +1 -1
  246. package/dist/types/react/native/ui/components/button.d.ts.map +1 -1
  247. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  248. package/dist/types/react/native/ui/connect/InAppWalletUI.d.ts.map +1 -1
  249. package/dist/types/react/native/ui/icons/svgs.d.ts +3 -3
  250. package/dist/types/react/native/ui/icons/svgs.d.ts.map +1 -1
  251. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts +21 -1
  252. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  253. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  254. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts +0 -2
  255. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  256. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +6 -0
  257. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  258. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts.map +1 -1
  259. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts +7 -3
  260. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
  261. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts +0 -2
  262. package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts.map +1 -1
  263. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts +3 -1
  264. package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
  265. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +7 -5
  266. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  267. package/dist/types/react/web/ui/ConnectWallet/locale/en.d.ts.map +1 -1
  268. package/dist/types/react/web/ui/ConnectWallet/locale/es.d.ts.map +1 -1
  269. package/dist/types/react/web/ui/ConnectWallet/locale/ja.d.ts.map +1 -1
  270. package/dist/types/react/web/ui/ConnectWallet/locale/tl.d.ts.map +1 -1
  271. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts +2 -0
  272. package/dist/types/react/web/ui/ConnectWallet/locale/types.d.ts.map +1 -1
  273. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts +5 -4
  274. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
  275. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.d.ts +8 -0
  276. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.d.ts.map +1 -0
  277. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.d.ts +13 -0
  278. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.d.ts.map +1 -0
  279. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.d.ts +2 -0
  280. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.d.ts.map +1 -1
  281. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.d.ts +2 -0
  282. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.d.ts.map +1 -1
  283. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.d.ts +2 -0
  284. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.d.ts.map +1 -1
  285. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.d.ts +2 -0
  286. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.d.ts.map +1 -1
  287. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts +12 -3
  288. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts.map +1 -1
  289. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts +2 -0
  290. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts.map +1 -1
  291. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts +2 -0
  292. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
  293. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts +2 -2
  294. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.d.ts.map +1 -1
  295. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.d.ts +12 -0
  296. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.d.ts.map +1 -0
  297. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.d.ts.map +1 -1
  298. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.d.ts +2 -0
  299. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.d.ts.map +1 -1
  300. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.d.ts.map +1 -1
  301. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.d.ts +2 -0
  302. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.d.ts.map +1 -1
  303. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/types.d.ts +9 -0
  304. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/types.d.ts.map +1 -0
  305. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.d.ts +6 -0
  306. package/dist/types/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.d.ts.map +1 -0
  307. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts +9 -0
  308. package/dist/types/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.d.ts.map +1 -0
  309. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts +1 -1
  310. package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
  311. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts +25 -0
  312. package/dist/types/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.d.ts.map +1 -0
  313. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts +1 -1
  314. package/dist/types/react/web/ui/ConnectWallet/screens/types.d.ts.map +1 -1
  315. package/dist/types/react/web/ui/PayEmbed.d.ts +1 -1
  316. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  317. package/dist/types/react/web/ui/components/CopyIcon.d.ts.map +1 -1
  318. package/dist/types/react/web/ui/components/Drawer.d.ts +2 -1
  319. package/dist/types/react/web/ui/components/Drawer.d.ts.map +1 -1
  320. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts +1 -2
  321. package/dist/types/react/web/ui/components/SwitchNetwork.d.ts.map +1 -1
  322. package/dist/types/react/web/ui/components/WalletImage.d.ts +1 -0
  323. package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
  324. package/dist/types/react/web/ui/components/buttons.d.ts.map +1 -1
  325. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +0 -2
  326. package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
  327. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +0 -2
  328. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  329. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts +0 -2
  330. package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts.map +1 -1
  331. package/dist/types/utils/formatNumber.d.ts.map +1 -1
  332. package/dist/types/version.d.ts +1 -1
  333. package/dist/types/version.d.ts.map +1 -1
  334. package/package.json +1 -1
  335. package/src/gas/fee-data.ts +14 -6
  336. package/src/pay/buyWithCrypto/getQuote.ts +7 -3
  337. package/src/pay/buyWithFiat/getPostOnRampQuote.ts +5 -0
  338. package/src/pay/buyWithFiat/getQuote.ts +4 -0
  339. package/src/react/core/hooks/auth/useSiweAuth.ts +4 -1
  340. package/src/react/native/ui/components/Header.tsx +2 -2
  341. package/src/react/native/ui/components/button.tsx +6 -1
  342. package/src/react/native/ui/connect/ConnectButton.tsx +1 -1
  343. package/src/react/native/ui/connect/ConnectModal.tsx +9 -4
  344. package/src/react/native/ui/connect/InAppWalletUI.tsx +24 -20
  345. package/src/react/native/ui/icons/svgs.ts +5 -5
  346. package/src/react/web/hooks/transaction/useSendTransaction.tsx +30 -17
  347. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +12 -1
  348. package/src/react/web/ui/ConnectWallet/Details.tsx +73 -2
  349. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +2 -0
  350. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +3 -6
  351. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +3 -2
  352. package/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx +2 -1
  353. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +17 -10
  354. package/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx +2 -1
  355. package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +14 -15
  356. package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +12 -13
  357. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +35 -20
  358. package/src/react/web/ui/ConnectWallet/locale/en.ts +1 -0
  359. package/src/react/web/ui/ConnectWallet/locale/es.ts +1 -0
  360. package/src/react/web/ui/ConnectWallet/locale/ja.ts +1 -0
  361. package/src/react/web/ui/ConnectWallet/locale/tl.ts +1 -0
  362. package/src/react/web/ui/ConnectWallet/locale/types.ts +3 -0
  363. package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +435 -266
  364. package/src/react/web/ui/ConnectWallet/screens/Buy/ReceiverWalletSelectionScreen.tsx +118 -0
  365. package/src/react/web/ui/ConnectWallet/screens/Buy/WalletSelectorButton.tsx +86 -0
  366. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatFlow.tsx +3 -0
  367. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatStatusScreen.tsx +2 -0
  368. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx +23 -0
  369. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwap.tsx +4 -5
  370. package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/PostOnRampSwapFlow.tsx +3 -0
  371. package/src/react/web/ui/ConnectWallet/screens/Buy/main/types.ts +15 -4
  372. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +43 -32
  373. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +4 -7
  374. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapFlow.tsx +3 -2
  375. package/src/react/web/ui/ConnectWallet/screens/Buy/swap/WalletSwitcherDrawerContent.tsx +66 -0
  376. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistory.tsx +16 -0
  377. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/FiatDetailsScreen.tsx +3 -0
  378. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/SwapDetailsScreen.tsx +27 -0
  379. package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/TxDetailsScreen.tsx +3 -0
  380. package/src/react/web/ui/ConnectWallet/screens/Buy/types.ts +9 -0
  381. package/src/react/web/ui/ConnectWallet/screens/Buy/usePayerSetup.tsx +63 -0
  382. package/src/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.tsx +203 -0
  383. package/src/react/web/ui/ConnectWallet/screens/SendFunds.tsx +1 -13
  384. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -2
  385. package/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx +83 -0
  386. package/src/react/web/ui/ConnectWallet/screens/types.ts +2 -1
  387. package/src/react/web/ui/PayEmbed.tsx +7 -29
  388. package/src/react/web/ui/components/CopyIcon.tsx +5 -1
  389. package/src/react/web/ui/components/Drawer.tsx +91 -40
  390. package/src/react/web/ui/components/SwitchNetwork.tsx +2 -5
  391. package/src/react/web/ui/components/WalletImage.tsx +2 -0
  392. package/src/react/web/ui/components/buttons.tsx +5 -1
  393. package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +2 -3
  394. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +2 -3
  395. package/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx +3 -3
  396. package/src/utils/format-number.test.ts +23 -8
  397. package/src/utils/formatNumber.ts +4 -1
  398. package/src/version.ts +1 -1
@@ -8,7 +8,6 @@ import { parseTheme } from "../../../core/design-system/CustomThemeProvider.js";
8
8
  import type { Theme } from "../../../core/design-system/index.js";
9
9
  import type { ConnectButtonProps } from "../../../core/hooks/connection/ConnectButtonProps.js";
10
10
  import type { ConnectEmbedProps } from "../../../core/hooks/connection/ConnectEmbedProps.js";
11
- import { genericWalletIcon } from "../../../core/utils/socialIcons.js";
12
11
  import { useWalletInfo } from "../../../core/utils/wallet.js";
13
12
  import { radius, spacing } from "../../design-system/index.js";
14
13
  import { useActiveWallet } from "../../hooks/wallets/useActiveWallet.js";
@@ -24,7 +23,7 @@ import { ThemedButtonWithIcon } from "../components/button.js";
24
23
  import { Spacer } from "../components/spacer.js";
25
24
  import { ThemedText } from "../components/text.js";
26
25
  import { ThemedView } from "../components/view.js";
27
- import { TW_ICON } from "../icons/svgs.js";
26
+ import { TW_ICON, WALLET_ICON } from "../icons/svgs.js";
28
27
  import { ErrorView } from "./ErrorView.js";
29
28
  import { ExternalWalletsList } from "./ExternalWalletsList.js";
30
29
  import { InAppWalletUI, OtpLogin } from "./InAppWalletUI.js";
@@ -128,6 +127,7 @@ export function ConnectModal(
128
127
  onClose={props.onClose}
129
128
  containerType={containerType}
130
129
  onBack={() => setModalState({ screen: "base" })}
130
+ title={props.connectModal?.title || "Sign in"}
131
131
  />
132
132
  <Spacer size="xl" />
133
133
  <View
@@ -163,6 +163,7 @@ export function ConnectModal(
163
163
  onClose={props.onClose}
164
164
  containerType={containerType}
165
165
  onBack={() => setModalState({ screen: "base" })}
166
+ title={props.connectModal?.title || "Sign in"}
166
167
  />
167
168
  <Spacer size="lg" />
168
169
  <ExternalWalletsList
@@ -184,6 +185,7 @@ export function ConnectModal(
184
185
  onClose={props.onClose}
185
186
  containerType={containerType}
186
187
  onBack={() => setModalState({ screen: "base" })}
188
+ title={props.connectModal?.title || "Sign in"}
187
189
  />
188
190
  {containerType === "modal" ? (
189
191
  <View style={{ flex: 1 }} />
@@ -212,6 +214,7 @@ export function ConnectModal(
212
214
  onClose={props.onClose}
213
215
  containerType={containerType}
214
216
  onBack={() => setModalState({ screen: "base" })}
217
+ title={props.connectModal?.title || "Sign in"}
215
218
  />
216
219
  {containerType === "modal" ? (
217
220
  <View style={{ flex: 1 }} />
@@ -235,6 +238,7 @@ export function ConnectModal(
235
238
  theme={theme}
236
239
  onClose={props.onClose}
237
240
  containerType={containerType}
241
+ title={props.connectModal?.title || "Sign in"}
238
242
  />
239
243
  {inAppWallet ? (
240
244
  <>
@@ -262,7 +266,7 @@ export function ConnectModal(
262
266
  <OrDivider theme={theme} />
263
267
  <ThemedButtonWithIcon
264
268
  theme={theme}
265
- icon={genericWalletIcon}
269
+ icon={WALLET_ICON}
266
270
  title="Connect a wallet"
267
271
  onPress={() =>
268
272
  setModalState({ screen: "external_wallets" })
@@ -279,7 +283,7 @@ export function ConnectModal(
279
283
  </>
280
284
  ) : externalWallets.length > 0 ? (
281
285
  <>
282
- <Spacer size="lg" />
286
+ <Spacer size="xl" />
283
287
  <View
284
288
  style={{
285
289
  flex: 1,
@@ -343,6 +347,7 @@ function LoadingView({
343
347
  theme={theme}
344
348
  size={90}
345
349
  data={getAuthProviderImage(authProvider)}
350
+ color={theme.colors.accentButtonBg}
346
351
  />
347
352
  </View>
348
353
  ) : (
@@ -73,26 +73,30 @@ export function InAppWalletUI(props: InAppWalletFormUIProps) {
73
73
  <SocialLogin key={auth} auth={auth} {...props} />
74
74
  ))}
75
75
  </View>
76
- {inputMode === "email" ? (
77
- <PreOtpLogin auth="email" {...props} />
78
- ) : (
79
- <ThemedButtonWithIcon
80
- theme={theme}
81
- title="Email address"
82
- icon={EMAIL_ICON}
83
- onPress={() => setInputMode("email")}
84
- />
85
- )}
86
- {inputMode === "phone" ? (
87
- <PreOtpLogin auth="phone" {...props} />
88
- ) : (
89
- <ThemedButtonWithIcon
90
- theme={theme}
91
- title="Phone number"
92
- icon={PHONE_ICON}
93
- onPress={() => setInputMode("phone")}
94
- />
95
- )}
76
+ {authOptions.includes("email") ? (
77
+ inputMode === "email" ? (
78
+ <PreOtpLogin auth="email" {...props} />
79
+ ) : (
80
+ <ThemedButtonWithIcon
81
+ theme={theme}
82
+ title="Email address"
83
+ icon={EMAIL_ICON}
84
+ onPress={() => setInputMode("email")}
85
+ />
86
+ )
87
+ ) : null}
88
+ {authOptions.includes("phone") ? (
89
+ inputMode === "phone" ? (
90
+ <PreOtpLogin auth="phone" {...props} />
91
+ ) : (
92
+ <ThemedButtonWithIcon
93
+ theme={theme}
94
+ title="Phone number"
95
+ icon={PHONE_ICON}
96
+ onPress={() => setInputMode("phone")}
97
+ />
98
+ )
99
+ ) : null}
96
100
  </View>
97
101
  );
98
102
  }
@@ -30,13 +30,13 @@ export const GOOGLE_ICON = `<svg height={height} viewBox="0 0 24 24" width={widt
30
30
  </svg>`;
31
31
 
32
32
  export const EMAIL_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
33
- <path d="M13.3335 2.6665H2.66683C1.93045 2.6665 1.3335 3.26346 1.3335 3.99984V11.9998C1.3335 12.7362 1.93045 13.3332 2.66683 13.3332H13.3335C14.0699 13.3332 14.6668 12.7362 14.6668 11.9998V3.99984C14.6668 3.26346 14.0699 2.6665 13.3335 2.6665Z" stroke="#3385FF" stroke-linecap="round" stroke-linejoin="round"/>
34
- <path d="M14.6668 4.6665L8.68683 8.4665C8.48101 8.59545 8.24304 8.66384 8.00016 8.66384C7.75728 8.66384 7.51931 8.59545 7.3135 8.4665L1.3335 4.6665" stroke="#3385FF" stroke-linecap="round" stroke-linejoin="round"/>
33
+ <path d="M13.3335 2.6665H2.66683C1.93045 2.6665 1.3335 3.26346 1.3335 3.99984V11.9998C1.3335 12.7362 1.93045 13.3332 2.66683 13.3332H13.3335C14.0699 13.3332 14.6668 12.7362 14.6668 11.9998V3.99984C14.6668 3.26346 14.0699 2.6665 13.3335 2.6665Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
34
+ <path d="M14.6668 4.6665L8.68683 8.4665C8.48101 8.59545 8.24304 8.66384 8.00016 8.66384C7.75728 8.66384 7.51931 8.59545 7.3135 8.4665L1.3335 4.6665" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
35
35
  </svg>`;
36
36
 
37
37
  export const PHONE_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
38
38
  <g clip-path="url(#clip0_5639_632)">
39
- <path d="M14.6669 11.2802V13.2802C14.6677 13.4659 14.6297 13.6497 14.5553 13.8198C14.4809 13.9899 14.3718 14.1426 14.235 14.2681C14.0982 14.3937 13.9367 14.4892 13.7608 14.5487C13.5849 14.6082 13.3985 14.6303 13.2136 14.6136C11.1622 14.3907 9.19161 13.6897 7.46028 12.5669C5.8495 11.5433 4.48384 10.1777 3.46028 8.56689C2.3336 6.8277 1.63244 4.84756 1.41361 2.78689C1.39695 2.60254 1.41886 2.41673 1.47795 2.24131C1.53703 2.06589 1.63199 1.90469 1.75679 1.76797C1.88159 1.63126 2.03348 1.52203 2.20281 1.44724C2.37213 1.37245 2.55517 1.33374 2.74028 1.33356H4.74028C5.06382 1.33038 5.37748 1.44495 5.62279 1.65592C5.8681 1.86689 6.02833 2.15986 6.07361 2.48023C6.15803 3.12027 6.31458 3.74871 6.54028 4.35356C6.62998 4.59218 6.64939 4.8515 6.59622 5.10081C6.54305 5.35012 6.41952 5.57897 6.24028 5.76023L5.39361 6.60689C6.34265 8.27592 7.72458 9.65786 9.39361 10.6069L10.2403 9.76023C10.4215 9.58099 10.6504 9.45746 10.8997 9.40429C11.149 9.35112 11.4083 9.37053 11.6469 9.46023C12.2518 9.68593 12.8802 9.84248 13.5203 9.92689C13.8441 9.97258 14.1399 10.1357 14.3513 10.3852C14.5627 10.6348 14.6751 10.9533 14.6669 11.2802Z" stroke="#3385FF" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
39
+ <path d="M14.6669 11.2802V13.2802C14.6677 13.4659 14.6297 13.6497 14.5553 13.8198C14.4809 13.9899 14.3718 14.1426 14.235 14.2681C14.0982 14.3937 13.9367 14.4892 13.7608 14.5487C13.5849 14.6082 13.3985 14.6303 13.2136 14.6136C11.1622 14.3907 9.19161 13.6897 7.46028 12.5669C5.8495 11.5433 4.48384 10.1777 3.46028 8.56689C2.3336 6.8277 1.63244 4.84756 1.41361 2.78689C1.39695 2.60254 1.41886 2.41673 1.47795 2.24131C1.53703 2.06589 1.63199 1.90469 1.75679 1.76797C1.88159 1.63126 2.03348 1.52203 2.20281 1.44724C2.37213 1.37245 2.55517 1.33374 2.74028 1.33356H4.74028C5.06382 1.33038 5.37748 1.44495 5.62279 1.65592C5.8681 1.86689 6.02833 2.15986 6.07361 2.48023C6.15803 3.12027 6.31458 3.74871 6.54028 4.35356C6.62998 4.59218 6.64939 4.8515 6.59622 5.10081C6.54305 5.35012 6.41952 5.57897 6.24028 5.76023L5.39361 6.60689C6.34265 8.27592 7.72458 9.65786 9.39361 10.6069L10.2403 9.76023C10.4215 9.58099 10.6504 9.45746 10.8997 9.40429C11.149 9.35112 11.4083 9.37053 11.6469 9.46023C12.2518 9.68593 12.8802 9.84248 13.5203 9.92689C13.8441 9.97258 14.1399 10.1357 14.3513 10.3852C14.5627 10.6348 14.6751 10.9533 14.6669 11.2802Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
40
40
  </g>
41
41
  <defs>
42
42
  <clipPath id="clip0_5639_632">
@@ -52,8 +52,8 @@ export const RIGHT_ARROW = `<svg width="20" height="20" viewBox="0 0 20 20" fill
52
52
  `;
53
53
 
54
54
  export const WALLET_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
55
- <path d="M12.6667 4.66667V2.66667C12.6667 2.48986 12.5964 2.32029 12.4714 2.19526C12.3464 2.07024 12.1768 2 12 2H3.33333C2.97971 2 2.64057 2.14048 2.39052 2.39052C2.14048 2.64057 2 2.97971 2 3.33333C2 3.68696 2.14048 4.02609 2.39052 4.27614C2.64057 4.52619 2.97971 4.66667 3.33333 4.66667H13.3333C13.5101 4.66667 13.6797 4.7369 13.8047 4.86193C13.9298 4.98695 14 5.15652 14 5.33333V8M14 8H12C11.6464 8 11.3072 8.14048 11.0572 8.39052C10.8071 8.64057 10.6667 8.97971 10.6667 9.33333C10.6667 9.68696 10.8071 10.0261 11.0572 10.2761C11.3072 10.5262 11.6464 10.6667 12 10.6667H14C14.1768 10.6667 14.3464 10.5964 14.4714 10.4714C14.5964 10.3464 14.6667 10.1768 14.6667 10V8.66667C14.6667 8.48986 14.5964 8.32029 14.4714 8.19526C14.3464 8.07024 14.1768 8 14 8Z" stroke="#3385FF" stroke-linecap="round" stroke-linejoin="round"/>
56
- <path d="M2 3.3335V12.6668C2 13.0205 2.14048 13.3596 2.39052 13.6096C2.64057 13.8597 2.97971 14.0002 3.33333 14.0002H13.3333C13.5101 14.0002 13.6797 13.9299 13.8047 13.8049C13.9298 13.6799 14 13.5103 14 13.3335V10.6668" stroke="#3385FF" stroke-linecap="round" stroke-linejoin="round"/>
55
+ <path d="M12.6667 4.66667V2.66667C12.6667 2.48986 12.5964 2.32029 12.4714 2.19526C12.3464 2.07024 12.1768 2 12 2H3.33333C2.97971 2 2.64057 2.14048 2.39052 2.39052C2.14048 2.64057 2 2.97971 2 3.33333C2 3.68696 2.14048 4.02609 2.39052 4.27614C2.64057 4.52619 2.97971 4.66667 3.33333 4.66667H13.3333C13.5101 4.66667 13.6797 4.7369 13.8047 4.86193C13.9298 4.98695 14 5.15652 14 5.33333V8M14 8H12C11.6464 8 11.3072 8.14048 11.0572 8.39052C10.8071 8.64057 10.6667 8.97971 10.6667 9.33333C10.6667 9.68696 10.8071 10.0261 11.0572 10.2761C11.3072 10.5262 11.6464 10.6667 12 10.6667H14C14.1768 10.6667 14.3464 10.5964 14.4714 10.4714C14.5964 10.3464 14.6667 10.1768 14.6667 10V8.66667C14.6667 8.48986 14.5964 8.32029 14.4714 8.19526C14.3464 8.07024 14.1768 8 14 8Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
56
+ <path d="M2 3.3335V12.6668C2 13.0205 2.14048 13.3596 2.39052 13.6096C2.64057 13.8597 2.97971 14.0002 3.33333 14.0002H13.3333C13.5101 14.0002 13.6797 13.9299 13.8047 13.8049C13.9298 13.6799 14 13.5103 14 13.3335V10.6668" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
57
57
  </svg>
58
58
  `;
59
59
 
@@ -185,6 +185,8 @@ function ModalContent(props: ModalProps) {
185
185
  onDone={() => {
186
186
  setScreen("execute-tx");
187
187
  }}
188
+ connectOptions={undefined}
189
+ onBack={undefined}
188
190
  />
189
191
  );
190
192
  }
@@ -224,33 +226,44 @@ function ExecutingTxScreen(props: {
224
226
  return (
225
227
  <Container p="lg">
226
228
  <ModalHeader title="Transaction" />
229
+
227
230
  <Spacer y="xxl" />
228
231
  <Spacer y="xxl" />
232
+
229
233
  <Container flex="row" center="x">
230
234
  {status === "loading" && <Spinner size="3xl" color="accentText" />}
231
- status === "failed" && <AccentFailIcon size={iconSize["3xl"]} />
232
- status === "sent" && (
233
- <Container color="success" flex="row" center="both">
234
- <CheckCircledIcon width={iconSize["3xl"]} height={iconSize["3xl"]} />
235
- </Container>
236
- )
235
+ {status === "failed" && <AccentFailIcon size={iconSize["3xl"]} />}
236
+ {status === "sent" && (
237
+ <Container color="success" flex="row" center="both">
238
+ <CheckCircledIcon
239
+ width={iconSize["3xl"]}
240
+ height={iconSize["3xl"]}
241
+ />
242
+ </Container>
243
+ )}
237
244
  </Container>
238
245
  <Spacer y="lg" />
246
+
239
247
  <Text color="primaryText" center size="lg">
240
- status === "loading" && "Sending transaction"status === "failed" &&
241
- "Transaction failed"status === "sent" && "Transaction sent"
248
+ {status === "loading" && "Sending transaction"}
249
+ {status === "failed" && "Transaction failed"}
250
+ {status === "sent" && "Transaction sent"}
242
251
  </Text>
252
+
243
253
  <Spacer y="xxl" />
244
254
  <Spacer y="xxl" />
245
- status === "failed" && (
246
- <Button variant="accent" fullWidth onClick={sendTx}>
247
- Try Again
248
- </Button>
249
- )status === "sent" && (
250
- <Button variant="accent" fullWidth onClick={props.closeModal}>
251
- Done
252
- </Button>
253
- )
255
+
256
+ {status === "failed" && (
257
+ <Button variant="accent" fullWidth onClick={sendTx}>
258
+ Try Again
259
+ </Button>
260
+ )}
261
+
262
+ {status === "sent" && (
263
+ <Button variant="accent" fullWidth onClick={props.closeModal}>
264
+ Done
265
+ </Button>
266
+ )}
254
267
  </Container>
255
268
  );
256
269
  }
@@ -222,7 +222,7 @@ function ConnectButtonInner(
222
222
  if (siweAuth.requiresAuth) {
223
223
  // loading state if loading
224
224
  // TODO: figure out a way to consolidate the loading states with the ones from locale loading
225
- if (siweAuth.isLoading) {
225
+ if (siweAuth.isLoading || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
226
226
  return (
227
227
  <AnimatedButton
228
228
  disabled={true}
@@ -304,6 +304,17 @@ function ConnectButtonInner(
304
304
  switchButton={props.switchButton}
305
305
  client={props.client}
306
306
  connectLocale={locale}
307
+ connectOptions={{
308
+ accountAbstraction: props.accountAbstraction,
309
+ appMetadata: props.appMetadata,
310
+ chain: props.chain,
311
+ chains: props.chains,
312
+ connectModal: props.connectModal,
313
+ recommendedWallets: props.recommendedWallets,
314
+ showAllWallets: props.showAllWallets,
315
+ walletConnect: props.walletConnect,
316
+ wallets: props.wallets,
317
+ }}
307
318
  />
308
319
  );
309
320
  }
@@ -6,6 +6,7 @@ import {
6
6
  PaperPlaneIcon,
7
7
  PinBottomIcon,
8
8
  PlusIcon,
9
+ ShuffleIcon,
9
10
  TextAlignJustifyIcon,
10
11
  } from "@radix-ui/react-icons";
11
12
  import { useQuery } from "@tanstack/react-query";
@@ -15,6 +16,8 @@ import type { ThirdwebClient } from "../../../../client/client.js";
15
16
  import { getContract } from "../../../../contract/contract.js";
16
17
  import { isContractDeployed } from "../../../../utils/bytecode/is-contract-deployed.js";
17
18
  import type { Account, Wallet } from "../../../../wallets/interfaces/wallet.js";
19
+ import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
20
+ import type { AppMetadata } from "../../../../wallets/types.js";
18
21
  import {
19
22
  CustomThemeProvider,
20
23
  useCustomTheme,
@@ -29,6 +32,7 @@ import {
29
32
  } from "../../../core/design-system/index.js";
30
33
  import type {
31
34
  ConnectButtonProps,
35
+ ConnectButton_connectModalOptions,
32
36
  ConnectButton_detailsButtonOptions,
33
37
  ConnectButton_detailsModalOptions,
34
38
  PayUIOptions,
@@ -76,6 +80,7 @@ import { getConnectLocale } from "./locale/getConnectLocale.js";
76
80
  import type { ConnectLocale } from "./locale/types.js";
77
81
  import { LazyBuyScreen } from "./screens/Buy/LazyBuyScreen.js";
78
82
  import { BuyTxHistory } from "./screens/Buy/tx-history/BuyTxHistory.js";
83
+ import { WalletManagerScreen } from "./screens/Details/WalletManagerScreen.js";
79
84
  import { ManageWalletScreen } from "./screens/ManageWalletScreen.js";
80
85
  import { PrivateKey } from "./screens/PrivateKey.js";
81
86
  import { ReceiveFunds } from "./screens/ReceiveFunds.js";
@@ -105,6 +110,7 @@ export const ConnectedWalletDetails: React.FC<{
105
110
  switchButton: ConnectButtonProps["switchButton"];
106
111
  connectLocale: ConnectLocale;
107
112
  client: ThirdwebClient;
113
+ connectOptions: DetailsModalConnectOptions | undefined;
108
114
  }> = (props) => {
109
115
  const { connectLocale: locale, client } = props;
110
116
 
@@ -137,6 +143,7 @@ export const ConnectedWalletDetails: React.FC<{
137
143
  onDisconnect={props.onDisconnect}
138
144
  chains={props.chains}
139
145
  displayBalanceToken={props.detailsButton?.displayBalanceToken}
146
+ connectOptions={props.connectOptions}
140
147
  />,
141
148
  );
142
149
  }
@@ -238,6 +245,7 @@ function DetailsModal(props: {
238
245
  }) => void;
239
246
  chains: Chain[];
240
247
  displayBalanceToken?: Record<number, string>;
248
+ connectOptions: DetailsModalConnectOptions | undefined;
241
249
  }) {
242
250
  const [screen, setScreen] = useState<WalletDetailsModalScreen>("main");
243
251
  const { disconnect } = useDisconnect();
@@ -298,12 +306,12 @@ function DetailsModal(props: {
298
306
  client={client}
299
307
  />
300
308
  ) : (
301
- <Skeleton height={iconSize.md} width={iconSize.md} />
309
+ <Skeleton height={`${iconSize.md}px`} width={`${iconSize.md}px`} />
302
310
  )}
303
311
  </div>
304
312
 
305
313
  {chainNameQuery.isLoading ? (
306
- <Skeleton height={"16px"} width={"200px"} />
314
+ <Skeleton height={"16px"} width={"150px"} />
307
315
  ) : (
308
316
  <Text color="primaryText" multiline>
309
317
  {chainNameQuery.name || `Unknown chain #${walletChain?.id}`}
@@ -324,6 +332,21 @@ function DetailsModal(props: {
324
332
  let content = (
325
333
  <div>
326
334
  <Spacer y="xl" />
335
+
336
+ <IconButton
337
+ style={{
338
+ position: "absolute",
339
+ top: `${spacing.lg}`,
340
+ left: `${spacing.sm}`,
341
+ padding: "3px",
342
+ }}
343
+ onClick={() => {
344
+ setScreen("wallet-manager");
345
+ }}
346
+ >
347
+ <ShuffleIcon width={iconSize.md} height={iconSize.md} />
348
+ </IconButton>
349
+
327
350
  <Container px="lg" flex="column" center="x">
328
351
  {ensAvatarQuery.data ? (
329
352
  <Img
@@ -613,6 +636,32 @@ function DetailsModal(props: {
613
636
  );
614
637
  }
615
638
 
639
+ if (
640
+ screen === "wallet-manager" &&
641
+ activeAccount &&
642
+ walletChain &&
643
+ activeWallet
644
+ ) {
645
+ content = (
646
+ <WalletManagerScreen
647
+ onBack={() => setScreen("main")}
648
+ accountAbstraction={props.connectOptions?.accountAbstraction}
649
+ appMetadata={props.connectOptions?.appMetadata}
650
+ chain={props.connectOptions?.chain}
651
+ chains={props.connectOptions?.chains}
652
+ client={client}
653
+ connectLocale={locale}
654
+ recommendedWallets={props.connectOptions?.recommendedWallets}
655
+ showAllWallets={!!props.connectOptions?.showAllWallets}
656
+ walletConnect={props.connectOptions?.walletConnect}
657
+ wallets={props.connectOptions?.wallets}
658
+ activeAccount={activeAccount}
659
+ activeChain={walletChain}
660
+ activeWallet={activeWallet}
661
+ />
662
+ );
663
+ }
664
+
616
665
  if (screen === "network-switcher") {
617
666
  content = (
618
667
  <NetworkSelectorContent
@@ -718,6 +767,8 @@ function DetailsModal(props: {
718
767
  payOptions={props.detailsModal?.payOptions || {}}
719
768
  theme={typeof props.theme === "string" ? props.theme : props.theme.type}
720
769
  onDone={closeModal}
770
+ connectOptions={undefined}
771
+ buyForTx={undefined}
721
772
  />
722
773
  );
723
774
  }
@@ -943,6 +994,20 @@ function SwitchNetworkButton(props: {
943
994
  );
944
995
  }
945
996
 
997
+ export type DetailsModalConnectOptions = {
998
+ connectModal?: ConnectButton_connectModalOptions;
999
+ walletConnect?: {
1000
+ projectId?: string;
1001
+ };
1002
+ accountAbstraction?: SmartWalletOptions;
1003
+ wallets?: Wallet[];
1004
+ appMetadata?: AppMetadata;
1005
+ chain?: Chain;
1006
+ chains?: Chain[];
1007
+ recommendedWallets?: Wallet[];
1008
+ showAllWallets?: boolean;
1009
+ };
1010
+
946
1011
  export type UseWalletDetailsModalOptions = {
947
1012
  /**
948
1013
  * A client is the entry point to the thirdweb SDK.
@@ -1115,6 +1180,11 @@ export type UseWalletDetailsModalOptions = {
1115
1180
  * ```
1116
1181
  */
1117
1182
  displayBalanceToken?: Record<number, string>;
1183
+
1184
+ /**
1185
+ * Options to configure the Connect UI shown when user clicks the "Connect Wallet" button in the Wallet Switcher screen.
1186
+ */
1187
+ connectOptions?: DetailsModalConnectOptions;
1118
1188
  };
1119
1189
 
1120
1190
  /**
@@ -1176,6 +1246,7 @@ export function useWalletDetailsModal() {
1176
1246
  closeModal();
1177
1247
  }}
1178
1248
  chains={props.chains || []}
1249
+ connectOptions={props.connectOptions}
1179
1250
  />,
1180
1251
  );
1181
1252
  })
@@ -145,6 +145,8 @@ function AllWalletsUI(props: {
145
145
  client={props.client}
146
146
  recommendedWallets={props.recommendedWallets}
147
147
  connectLocale={props.connectLocale}
148
+ isActive={false}
149
+ badge={undefined}
148
150
  />
149
151
  </li>
150
152
  );
@@ -27,7 +27,6 @@ import {
27
27
  import { Spacer } from "../../components/Spacer.js";
28
28
  import { Container, ModalHeader } from "../../components/basic.js";
29
29
  import { Text } from "../../components/text.js";
30
- import type { LocaleId } from "../../types.js";
31
30
  import { AccentFailIcon } from "../icons/AccentFailIcon.js";
32
31
  import type { ConnectLocale } from "../locale/types.js";
33
32
  import { DeepLinkConnectUI } from "./DeepLinkConnectUI.js";
@@ -48,7 +47,6 @@ export function AnyWalletConnectUI(props: {
48
47
  done: () => void;
49
48
  onBack?: () => void;
50
49
  setModalVisibility: (value: boolean) => void;
51
- localeId: LocaleId;
52
50
  chain: Chain | undefined;
53
51
  chains: Chain[] | undefined;
54
52
  client: ThirdwebClient;
@@ -71,10 +69,11 @@ export function AnyWalletConnectUI(props: {
71
69
  const { wallet } = props;
72
70
  const walletInfo = useWalletInfo(props.wallet.id);
73
71
 
72
+ const localeId = props.connectLocale.id;
74
73
  const localeFnQuery = useQuery({
75
- queryKey: ["injectedWalletLocale", props.localeId, walletInfo.data?.name],
74
+ queryKey: ["injectedWalletLocale", localeId, walletInfo.data?.name],
76
75
  queryFn: async () => {
77
- return getInjectedWalletLocale(props.localeId);
76
+ return getInjectedWalletLocale(localeId);
78
77
  },
79
78
  refetchOnWindowFocus: false,
80
79
  refetchOnMount: false,
@@ -268,7 +267,6 @@ export function AnyWalletConnectUI(props: {
268
267
  size={props.size}
269
268
  connectLocale={props.connectLocale}
270
269
  meta={props.meta}
271
- localeId={props.localeId}
272
270
  />
273
271
  </Suspense>
274
272
  );
@@ -285,7 +283,6 @@ export function AnyWalletConnectUI(props: {
285
283
  client={props.client}
286
284
  size={props.size}
287
285
  meta={props.meta}
288
- localeId={props.localeId}
289
286
  connectLocale={props.connectLocale}
290
287
  />
291
288
  </Suspense>
@@ -246,12 +246,13 @@ const ConnectEmbedContent = (props: {
246
246
  // welcomeScreen={undefined}
247
247
  welcomeScreen={undefined}
248
248
  isEmbed={props.isEmbed}
249
- localeId={props.localeId}
250
249
  onConnect={props.onConnect}
251
250
  recommendedWallets={props.recommendedWallets}
252
251
  showAllWallets={props.showAllWallets}
253
252
  walletConnect={props.walletConnect}
254
253
  wallets={props.wallets}
254
+ modalHeader={undefined}
255
+ walletIdsToHide={undefined}
255
256
  />
256
257
  );
257
258
  }
@@ -271,7 +272,7 @@ const ConnectEmbedContent = (props: {
271
272
  );
272
273
  };
273
274
 
274
- const EmbedContainer = /* @__PURE__ */ StyledDiv<{
275
+ export const EmbedContainer = /* @__PURE__ */ StyledDiv<{
275
276
  modalSize: "compact" | "wide";
276
277
  }>((props) => {
277
278
  const { modalSize } = props;
@@ -146,11 +146,12 @@ const ConnectModal = (props: ConnectModalOptions) => {
146
146
  onConnect={props.onConnect}
147
147
  recommendedWallets={props.recommendedWallets}
148
148
  wallets={props.wallets}
149
- localeId={props.localeId}
150
149
  chain={props.chain}
151
150
  showAllWallets={props.showAllWallets}
152
151
  chains={props.chains}
153
152
  walletConnect={props.walletConnect}
153
+ modalHeader={undefined}
154
+ walletIdsToHide={undefined}
154
155
  />
155
156
  </Modal>
156
157
  );
@@ -4,15 +4,16 @@ import type { Chain } from "../../../../../chains/types.js";
4
4
  import type { ThirdwebClient } from "../../../../../client/client.js";
5
5
  import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
6
6
  import type { SmartWalletOptions } from "../../../../../wallets/smart/types.js";
7
+ import type { WalletId } from "../../../../../wallets/wallet-types.js";
7
8
  import {
8
9
  type SiweAuthOptions,
9
10
  useSiweAuth,
10
11
  } from "../../../../core/hooks/auth/useSiweAuth.js";
11
12
  import { useActiveWallet } from "../../../hooks/wallets/useActiveWallet.js";
12
13
  import { useSetActiveWallet } from "../../../hooks/wallets/useSetActiveWallet.js";
14
+ import { connectionManager } from "../../../index.js";
13
15
  import { useSetSelectionData } from "../../../providers/wallet-ui-states-provider.js";
14
16
  import { LoadingScreen } from "../../../wallets/shared/LoadingScreen.js";
15
- import type { LocaleId } from "../../types.js";
16
17
  import { WalletSelector } from "../WalletSelector.js";
17
18
  import { onModalUnmount, reservedScreens } from "../constants.js";
18
19
  import type { ConnectLocale } from "../locale/types.js";
@@ -34,7 +35,7 @@ const AllWalletsUI = /* @__PURE__ */ lazy(() => import("./AllWalletsUI.js"));
34
35
  */
35
36
  export const ConnectModalContent = (props: {
36
37
  screenSetup: ScreenSetup;
37
- onClose: () => void;
38
+ onClose: (() => void) | undefined;
38
39
  isOpen: boolean;
39
40
  setModalVisibility: (value: boolean) => void;
40
41
  shouldSetActive: boolean;
@@ -55,7 +56,6 @@ export const ConnectModalContent = (props: {
55
56
  client: ThirdwebClient;
56
57
  isEmbed: boolean;
57
58
  recommendedWallets: Wallet[] | undefined;
58
- localeId: LocaleId;
59
59
  chain: Chain | undefined;
60
60
  chains: Chain[] | undefined;
61
61
  showAllWallets: boolean | undefined;
@@ -64,6 +64,13 @@ export const ConnectModalContent = (props: {
64
64
  projectId?: string;
65
65
  }
66
66
  | undefined;
67
+ modalHeader:
68
+ | {
69
+ title: string;
70
+ onBack: () => void;
71
+ }
72
+ | undefined;
73
+ walletIdsToHide: WalletId[] | undefined;
67
74
  }) => {
68
75
  const { setModalVisibility, onClose, shouldSetActive } = props;
69
76
  const { screen, setScreen, initialScreen } = props.screenSetup;
@@ -78,6 +85,8 @@ export const ConnectModalContent = (props: {
78
85
  (wallet: Wallet) => {
79
86
  if (shouldSetActive) {
80
87
  setActiveWallet(wallet);
88
+ } else {
89
+ connectionManager.addConnectedWallet(wallet);
81
90
  }
82
91
 
83
92
  if (props.onConnect) {
@@ -93,7 +102,8 @@ export const ConnectModalContent = (props: {
93
102
  if (showSignatureScreen) {
94
103
  setScreen(reservedScreens.signIn);
95
104
  } else {
96
- onClose();
105
+ setScreen(initialScreen);
106
+ onClose?.();
97
107
  }
98
108
  },
99
109
  [
@@ -105,6 +115,7 @@ export const ConnectModalContent = (props: {
105
115
  setScreen,
106
116
  setSelectionData,
107
117
  shouldSetActive,
118
+ initialScreen,
108
119
  ],
109
120
  );
110
121
 
@@ -117,9 +128,6 @@ export const ConnectModalContent = (props: {
117
128
  <WalletSelector
118
129
  title={props.meta.title || props.connectLocale.defaultModalTitle}
119
130
  wallets={props.wallets}
120
- onGetStarted={() => {
121
- setScreen(reservedScreens.getStarted);
122
- }}
123
131
  selectWallet={(newWallet) => {
124
132
  setSelectionData({});
125
133
  if (newWallet.onConnectRequested) {
@@ -142,13 +150,14 @@ export const ConnectModalContent = (props: {
142
150
  isEmbed={props.isEmbed}
143
151
  recommendedWallets={props.recommendedWallets}
144
152
  accountAbstraction={props.accountAbstraction}
145
- localeId={props.localeId}
146
153
  chain={props.chain}
147
154
  showAllWallets={props.showAllWallets}
148
155
  chains={props.chains}
149
156
  walletConnect={props.walletConnect}
150
157
  meta={props.meta}
151
158
  size={props.size}
159
+ modalHeader={props.modalHeader}
160
+ walletIdsToHide={props.walletIdsToHide}
152
161
  />
153
162
  );
154
163
 
@@ -191,7 +200,6 @@ export const ConnectModalContent = (props: {
191
200
  setModalVisibility={props.setModalVisibility}
192
201
  meta={props.meta}
193
202
  size={props.size}
194
- localeId={props.localeId}
195
203
  chain={props.chain}
196
204
  chains={props.chains}
197
205
  client={props.client}
@@ -215,7 +223,6 @@ export const ConnectModalContent = (props: {
215
223
  client={props.client}
216
224
  meta={props.meta}
217
225
  size={props.size}
218
- localeId={props.localeId}
219
226
  walletConnect={props.walletConnect}
220
227
  connectLocale={props.connectLocale}
221
228
  />
@@ -160,13 +160,14 @@ function ConnectModalInlineContent(props: {
160
160
  meta={props.meta}
161
161
  welcomeScreen={props.welcomeScreen}
162
162
  isEmbed={props.isEmbed}
163
- localeId={props.localeId}
164
163
  onConnect={props.onConnect}
165
164
  recommendedWallets={props.recommendedWallets}
166
165
  showAllWallets={props.showAllWallets}
167
166
  wallets={props.wallets}
168
167
  chains={props.chains}
169
168
  walletConnect={props.walletConnect}
169
+ modalHeader={undefined}
170
+ walletIdsToHide={undefined}
170
171
  />
171
172
 
172
173
  {/* close icon */}