thirdweb 5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334 → 5.70.0-nightly-ecaa304a812188da3c81888bb52ca6064093c139-20241121000332

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/client/client.js +1 -0
  2. package/dist/cjs/client/client.js.map +1 -1
  3. package/dist/cjs/exports/react.js +32 -3
  4. package/dist/cjs/exports/react.js.map +1 -1
  5. package/dist/cjs/extensions/erc721/lazyMinting/read/getBatchesToReveal.js +1 -1
  6. package/dist/cjs/extensions/modules/common/checkModulesCompatibility.js +5 -0
  7. package/dist/cjs/extensions/modules/common/checkModulesCompatibility.js.map +1 -1
  8. package/dist/cjs/extensions/prebuilts/deploy-pack.js +1 -0
  9. package/dist/cjs/extensions/prebuilts/deploy-pack.js.map +1 -1
  10. package/dist/cjs/extensions/thirdweb/write/publish.js +4 -0
  11. package/dist/cjs/extensions/thirdweb/write/publish.js.map +1 -1
  12. package/dist/cjs/react/core/hooks/others/useChainQuery.js +3 -3
  13. package/dist/cjs/react/core/hooks/rpc/useBlockNumber.js +1 -1
  14. package/dist/cjs/react/core/hooks/wallets/useCapabilities.js +1 -1
  15. package/dist/cjs/react/core/hooks/wallets/useSendCalls.js +3 -3
  16. package/dist/cjs/react/core/providers/connection-manager.js +3 -0
  17. package/dist/cjs/react/core/providers/connection-manager.js.map +1 -1
  18. package/dist/cjs/react/core/utils/wallet.js +2 -1
  19. package/dist/cjs/react/core/utils/wallet.js.map +1 -1
  20. package/dist/cjs/react/core/utils/walletIcon.js +2 -0
  21. package/dist/cjs/react/core/utils/walletIcon.js.map +1 -1
  22. package/dist/cjs/react/native/hooks/wallets/useProfiles.js +1 -1
  23. package/dist/cjs/react/native/providers/thirdweb-provider.js +1 -0
  24. package/dist/cjs/react/native/providers/thirdweb-provider.js.map +1 -1
  25. package/dist/cjs/react/native/ui/AutoConnect/AutoConnect.js +1 -0
  26. package/dist/cjs/react/native/ui/AutoConnect/AutoConnect.js.map +1 -1
  27. package/dist/cjs/react/native/ui/connect/ConnectModal.js +1 -0
  28. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
  29. package/dist/cjs/react/native/ui/transaction/TransactionButton.js +1 -0
  30. package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -1
  31. package/dist/cjs/react/web/hooks/wallets/useProfiles.js +1 -1
  32. package/dist/cjs/react/web/providers/thirdweb-provider.js +1 -0
  33. package/dist/cjs/react/web/providers/thirdweb-provider.js.map +1 -1
  34. package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js +1 -0
  35. package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
  36. package/dist/cjs/react/web/ui/ConnectWallet/Blobbie.js +19 -4
  37. package/dist/cjs/react/web/ui/ConnectWallet/Blobbie.js.map +1 -1
  38. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +21 -19
  39. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  40. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +18 -13
  41. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  42. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -0
  43. package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  44. package/dist/cjs/react/web/ui/PayEmbed.js +1 -0
  45. package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
  46. package/dist/cjs/react/web/ui/SiteEmbed.js +3 -2
  47. package/dist/cjs/react/web/ui/SiteEmbed.js.map +1 -1
  48. package/dist/cjs/react/web/ui/SiteLink.js +2 -1
  49. package/dist/cjs/react/web/ui/SiteLink.js.map +1 -1
  50. package/dist/cjs/react/web/ui/TransactionButton/index.js +1 -0
  51. package/dist/cjs/react/web/ui/TransactionButton/index.js.map +1 -1
  52. package/dist/cjs/react/web/ui/prebuilt/Account/address.js +49 -0
  53. package/dist/cjs/react/web/ui/prebuilt/Account/address.js.map +1 -0
  54. package/dist/cjs/react/web/ui/prebuilt/Account/avatar.js +144 -0
  55. package/dist/cjs/react/web/ui/prebuilt/Account/avatar.js.map +1 -0
  56. package/dist/cjs/react/web/ui/prebuilt/Account/balance.js +122 -0
  57. package/dist/cjs/react/web/ui/prebuilt/Account/balance.js.map +1 -0
  58. package/dist/cjs/react/web/ui/prebuilt/Account/blobbie.js +16 -0
  59. package/dist/cjs/react/web/ui/prebuilt/Account/blobbie.js.map +1 -0
  60. package/dist/cjs/react/web/ui/prebuilt/Account/name.js +106 -0
  61. package/dist/cjs/react/web/ui/prebuilt/Account/name.js.map +1 -0
  62. package/dist/cjs/react/web/ui/prebuilt/Account/provider.js +43 -0
  63. package/dist/cjs/react/web/ui/prebuilt/Account/provider.js.map +1 -0
  64. package/dist/cjs/react/web/ui/prebuilt/NFT/description.js +69 -0
  65. package/dist/cjs/react/web/ui/prebuilt/NFT/description.js.map +1 -0
  66. package/dist/cjs/react/web/ui/prebuilt/NFT/hooks.js +45 -0
  67. package/dist/cjs/react/web/ui/prebuilt/NFT/hooks.js.map +1 -0
  68. package/dist/cjs/react/web/ui/prebuilt/NFT/media.js +82 -0
  69. package/dist/cjs/react/web/ui/prebuilt/NFT/media.js.map +1 -0
  70. package/dist/cjs/react/web/ui/prebuilt/NFT/name.js +68 -0
  71. package/dist/cjs/react/web/ui/prebuilt/NFT/name.js.map +1 -0
  72. package/dist/cjs/react/web/ui/prebuilt/NFT/provider.js +55 -0
  73. package/dist/cjs/react/web/ui/prebuilt/NFT/provider.js.map +1 -0
  74. package/dist/cjs/react/web/ui/prebuilt/Token/icon.js +113 -0
  75. package/dist/cjs/react/web/ui/prebuilt/Token/icon.js.map +1 -0
  76. package/dist/cjs/react/web/ui/prebuilt/Token/name.js +137 -0
  77. package/dist/cjs/react/web/ui/prebuilt/Token/name.js.map +1 -0
  78. package/dist/cjs/react/web/ui/prebuilt/Token/provider.js +54 -0
  79. package/dist/cjs/react/web/ui/prebuilt/Token/provider.js.map +1 -0
  80. package/dist/cjs/react/web/ui/prebuilt/Token/symbol.js +134 -0
  81. package/dist/cjs/react/web/ui/prebuilt/Token/symbol.js.map +1 -0
  82. package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +1 -0
  83. package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
  84. package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +1 -0
  85. package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
  86. package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +1 -0
  87. package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
  88. package/dist/cjs/storage/unpin.js +1 -1
  89. package/dist/cjs/storage/upload.js +1 -0
  90. package/dist/cjs/storage/upload.js.map +1 -1
  91. package/dist/cjs/transaction/actions/to-serializable-transaction.js +1 -1
  92. package/dist/cjs/transaction/actions/zksync/send-eip712-transaction.js +5 -0
  93. package/dist/cjs/transaction/actions/zksync/send-eip712-transaction.js.map +1 -1
  94. package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js +5 -0
  95. package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
  96. package/dist/cjs/utils/config.js +9 -0
  97. package/dist/cjs/utils/config.js.map +1 -1
  98. package/dist/cjs/utils/json.js +7 -4
  99. package/dist/cjs/utils/json.js.map +1 -1
  100. package/dist/cjs/version.js +1 -1
  101. package/dist/cjs/wallets/eip5792/get-calls-status.js +1 -1
  102. package/dist/cjs/wallets/eip5792/get-capabilities.js +1 -1
  103. package/dist/cjs/wallets/eip5792/send-calls.js +2 -2
  104. package/dist/cjs/wallets/eip5792/wait-for-bundle.js +1 -1
  105. package/dist/cjs/wallets/in-app/core/users/getUser.js +1 -1
  106. package/dist/cjs/wallets/smart/smart-wallet.js +1 -0
  107. package/dist/cjs/wallets/smart/smart-wallet.js.map +1 -1
  108. package/dist/esm/client/client.js +1 -0
  109. package/dist/esm/client/client.js.map +1 -1
  110. package/dist/esm/exports/react.js +17 -1
  111. package/dist/esm/exports/react.js.map +1 -1
  112. package/dist/esm/extensions/erc721/lazyMinting/read/getBatchesToReveal.js +1 -1
  113. package/dist/esm/extensions/modules/common/checkModulesCompatibility.js +5 -0
  114. package/dist/esm/extensions/modules/common/checkModulesCompatibility.js.map +1 -1
  115. package/dist/esm/extensions/prebuilts/deploy-pack.js +1 -0
  116. package/dist/esm/extensions/prebuilts/deploy-pack.js.map +1 -1
  117. package/dist/esm/extensions/thirdweb/write/publish.js +4 -0
  118. package/dist/esm/extensions/thirdweb/write/publish.js.map +1 -1
  119. package/dist/esm/react/core/hooks/others/useChainQuery.js +3 -3
  120. package/dist/esm/react/core/hooks/rpc/useBlockNumber.js +1 -1
  121. package/dist/esm/react/core/hooks/wallets/useCapabilities.js +1 -1
  122. package/dist/esm/react/core/hooks/wallets/useSendCalls.js +3 -3
  123. package/dist/esm/react/core/providers/connection-manager.js +3 -0
  124. package/dist/esm/react/core/providers/connection-manager.js.map +1 -1
  125. package/dist/esm/react/core/utils/wallet.js +2 -1
  126. package/dist/esm/react/core/utils/wallet.js.map +1 -1
  127. package/dist/esm/react/core/utils/walletIcon.js +2 -0
  128. package/dist/esm/react/core/utils/walletIcon.js.map +1 -1
  129. package/dist/esm/react/native/hooks/wallets/useProfiles.js +1 -1
  130. package/dist/esm/react/native/providers/thirdweb-provider.js +1 -0
  131. package/dist/esm/react/native/providers/thirdweb-provider.js.map +1 -1
  132. package/dist/esm/react/native/ui/AutoConnect/AutoConnect.js +1 -0
  133. package/dist/esm/react/native/ui/AutoConnect/AutoConnect.js.map +1 -1
  134. package/dist/esm/react/native/ui/connect/ConnectModal.js +1 -0
  135. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
  136. package/dist/esm/react/native/ui/transaction/TransactionButton.js +1 -0
  137. package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -1
  138. package/dist/esm/react/web/hooks/wallets/useProfiles.js +1 -1
  139. package/dist/esm/react/web/providers/thirdweb-provider.js +1 -0
  140. package/dist/esm/react/web/providers/thirdweb-provider.js.map +1 -1
  141. package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js +1 -0
  142. package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
  143. package/dist/esm/react/web/ui/ConnectWallet/Blobbie.js +19 -4
  144. package/dist/esm/react/web/ui/ConnectWallet/Blobbie.js.map +1 -1
  145. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +21 -19
  146. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  147. package/dist/esm/react/web/ui/ConnectWallet/Details.js +19 -14
  148. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  149. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -0
  150. package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
  151. package/dist/esm/react/web/ui/PayEmbed.js +1 -0
  152. package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
  153. package/dist/esm/react/web/ui/SiteEmbed.js +3 -2
  154. package/dist/esm/react/web/ui/SiteEmbed.js.map +1 -1
  155. package/dist/esm/react/web/ui/SiteLink.js +2 -1
  156. package/dist/esm/react/web/ui/SiteLink.js.map +1 -1
  157. package/dist/esm/react/web/ui/TransactionButton/index.js +1 -0
  158. package/dist/esm/react/web/ui/TransactionButton/index.js.map +1 -1
  159. package/dist/esm/react/web/ui/prebuilt/Account/address.js +46 -0
  160. package/dist/esm/react/web/ui/prebuilt/Account/address.js.map +1 -0
  161. package/dist/esm/react/web/ui/prebuilt/Account/avatar.js +141 -0
  162. package/dist/esm/react/web/ui/prebuilt/Account/avatar.js.map +1 -0
  163. package/dist/esm/react/web/ui/prebuilt/Account/balance.js +119 -0
  164. package/dist/esm/react/web/ui/prebuilt/Account/balance.js.map +1 -0
  165. package/dist/esm/react/web/ui/prebuilt/Account/blobbie.js +13 -0
  166. package/dist/esm/react/web/ui/prebuilt/Account/blobbie.js.map +1 -0
  167. package/dist/esm/react/web/ui/prebuilt/Account/name.js +103 -0
  168. package/dist/esm/react/web/ui/prebuilt/Account/name.js.map +1 -0
  169. package/dist/esm/react/web/ui/prebuilt/Account/provider.js +39 -0
  170. package/dist/esm/react/web/ui/prebuilt/Account/provider.js.map +1 -0
  171. package/dist/esm/react/web/ui/prebuilt/NFT/description.js +66 -0
  172. package/dist/esm/react/web/ui/prebuilt/NFT/description.js.map +1 -0
  173. package/dist/esm/react/web/ui/prebuilt/NFT/hooks.js +41 -0
  174. package/dist/esm/react/web/ui/prebuilt/NFT/hooks.js.map +1 -0
  175. package/dist/esm/react/web/ui/prebuilt/NFT/media.js +79 -0
  176. package/dist/esm/react/web/ui/prebuilt/NFT/media.js.map +1 -0
  177. package/dist/esm/react/web/ui/prebuilt/NFT/name.js +65 -0
  178. package/dist/esm/react/web/ui/prebuilt/NFT/name.js.map +1 -0
  179. package/dist/esm/react/web/ui/prebuilt/NFT/provider.js +50 -0
  180. package/dist/esm/react/web/ui/prebuilt/NFT/provider.js.map +1 -0
  181. package/dist/esm/react/web/ui/prebuilt/Token/icon.js +110 -0
  182. package/dist/esm/react/web/ui/prebuilt/Token/icon.js.map +1 -0
  183. package/dist/esm/react/web/ui/prebuilt/Token/name.js +134 -0
  184. package/dist/esm/react/web/ui/prebuilt/Token/name.js.map +1 -0
  185. package/dist/esm/react/web/ui/prebuilt/Token/provider.js +50 -0
  186. package/dist/esm/react/web/ui/prebuilt/Token/provider.js.map +1 -0
  187. package/dist/esm/react/web/ui/prebuilt/Token/symbol.js +131 -0
  188. package/dist/esm/react/web/ui/prebuilt/Token/symbol.js.map +1 -0
  189. package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +1 -0
  190. package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
  191. package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +1 -0
  192. package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
  193. package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +1 -0
  194. package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
  195. package/dist/esm/storage/unpin.js +1 -1
  196. package/dist/esm/storage/upload.js +1 -0
  197. package/dist/esm/storage/upload.js.map +1 -1
  198. package/dist/esm/transaction/actions/to-serializable-transaction.js +1 -1
  199. package/dist/esm/transaction/actions/zksync/send-eip712-transaction.js +5 -0
  200. package/dist/esm/transaction/actions/zksync/send-eip712-transaction.js.map +1 -1
  201. package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js +5 -0
  202. package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
  203. package/dist/esm/utils/config.js +9 -0
  204. package/dist/esm/utils/config.js.map +1 -1
  205. package/dist/esm/utils/json.js +6 -2
  206. package/dist/esm/utils/json.js.map +1 -1
  207. package/dist/esm/version.js +1 -1
  208. package/dist/esm/wallets/eip5792/get-calls-status.js +1 -1
  209. package/dist/esm/wallets/eip5792/get-capabilities.js +1 -1
  210. package/dist/esm/wallets/eip5792/send-calls.js +2 -2
  211. package/dist/esm/wallets/eip5792/wait-for-bundle.js +1 -1
  212. package/dist/esm/wallets/in-app/core/users/getUser.js +1 -1
  213. package/dist/esm/wallets/smart/smart-wallet.js +1 -0
  214. package/dist/esm/wallets/smart/smart-wallet.js.map +1 -1
  215. package/dist/types/client/client.d.ts +1 -0
  216. package/dist/types/client/client.d.ts.map +1 -1
  217. package/dist/types/exports/react.d.ts +14 -1
  218. package/dist/types/exports/react.d.ts.map +1 -1
  219. package/dist/types/extensions/erc721/lazyMinting/read/getBatchesToReveal.d.ts +1 -1
  220. package/dist/types/extensions/modules/common/checkModulesCompatibility.d.ts +5 -0
  221. package/dist/types/extensions/modules/common/checkModulesCompatibility.d.ts.map +1 -1
  222. package/dist/types/extensions/prebuilts/deploy-pack.d.ts +1 -0
  223. package/dist/types/extensions/prebuilts/deploy-pack.d.ts.map +1 -1
  224. package/dist/types/extensions/thirdweb/write/publish.d.ts +4 -0
  225. package/dist/types/extensions/thirdweb/write/publish.d.ts.map +1 -1
  226. package/dist/types/react/core/hooks/others/useChainQuery.d.ts +3 -3
  227. package/dist/types/react/core/hooks/rpc/useBlockNumber.d.ts +1 -1
  228. package/dist/types/react/core/hooks/wallets/useCapabilities.d.ts +1 -1
  229. package/dist/types/react/core/hooks/wallets/useSendCalls.d.ts +3 -3
  230. package/dist/types/react/core/providers/connection-manager.d.ts +3 -0
  231. package/dist/types/react/core/providers/connection-manager.d.ts.map +1 -1
  232. package/dist/types/react/core/utils/wallet.d.ts +2 -1
  233. package/dist/types/react/core/utils/wallet.d.ts.map +1 -1
  234. package/dist/types/react/core/utils/walletIcon.d.ts +2 -0
  235. package/dist/types/react/core/utils/walletIcon.d.ts.map +1 -1
  236. package/dist/types/react/native/hooks/wallets/useProfiles.d.ts +1 -1
  237. package/dist/types/react/native/providers/thirdweb-provider.d.ts +1 -0
  238. package/dist/types/react/native/providers/thirdweb-provider.d.ts.map +1 -1
  239. package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts +1 -0
  240. package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
  241. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +1 -0
  242. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  243. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts +1 -0
  244. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts.map +1 -1
  245. package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +1 -1
  246. package/dist/types/react/web/providers/thirdweb-provider.d.ts +1 -0
  247. package/dist/types/react/web/providers/thirdweb-provider.d.ts.map +1 -1
  248. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts +1 -0
  249. package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
  250. package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts +22 -5
  251. package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts.map +1 -1
  252. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +2 -1
  253. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  254. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  255. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -0
  256. package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
  257. package/dist/types/react/web/ui/PayEmbed.d.ts +2 -2
  258. package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
  259. package/dist/types/react/web/ui/SiteEmbed.d.ts +3 -2
  260. package/dist/types/react/web/ui/SiteEmbed.d.ts.map +1 -1
  261. package/dist/types/react/web/ui/SiteLink.d.ts +2 -1
  262. package/dist/types/react/web/ui/SiteLink.d.ts.map +1 -1
  263. package/dist/types/react/web/ui/TransactionButton/index.d.ts +1 -0
  264. package/dist/types/react/web/ui/TransactionButton/index.d.ts.map +1 -1
  265. package/dist/types/react/web/ui/prebuilt/Account/address.d.ts +52 -0
  266. package/dist/types/react/web/ui/prebuilt/Account/address.d.ts.map +1 -0
  267. package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts +142 -0
  268. package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts.map +1 -0
  269. package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts +137 -0
  270. package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts.map +1 -0
  271. package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts +8 -0
  272. package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts.map +1 -0
  273. package/dist/types/react/web/ui/prebuilt/Account/name.d.ts +119 -0
  274. package/dist/types/react/web/ui/prebuilt/Account/name.d.ts.map +1 -0
  275. package/dist/types/react/web/ui/prebuilt/Account/provider.d.ts +45 -0
  276. package/dist/types/react/web/ui/prebuilt/Account/provider.d.ts.map +1 -0
  277. package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts +59 -0
  278. package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts.map +1 -0
  279. package/dist/types/react/web/ui/prebuilt/NFT/hooks.d.ts +14 -0
  280. package/dist/types/react/web/ui/prebuilt/NFT/hooks.d.ts.map +1 -0
  281. package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts +75 -0
  282. package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts.map +1 -0
  283. package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts +59 -0
  284. package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts.map +1 -0
  285. package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts +55 -0
  286. package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts.map +1 -0
  287. package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts +95 -0
  288. package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts.map +1 -0
  289. package/dist/types/react/web/ui/prebuilt/Token/name.d.ts +140 -0
  290. package/dist/types/react/web/ui/prebuilt/Token/name.d.ts.map +1 -0
  291. package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts +61 -0
  292. package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts.map +1 -0
  293. package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts +137 -0
  294. package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts.map +1 -0
  295. package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts +1 -0
  296. package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts.map +1 -1
  297. package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts +1 -0
  298. package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts.map +1 -1
  299. package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts +1 -0
  300. package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts.map +1 -1
  301. package/dist/types/storage/unpin.d.ts +1 -1
  302. package/dist/types/storage/upload.d.ts +1 -0
  303. package/dist/types/storage/upload.d.ts.map +1 -1
  304. package/dist/types/transaction/actions/to-serializable-transaction.d.ts +1 -1
  305. package/dist/types/transaction/actions/zksync/send-eip712-transaction.d.ts +5 -0
  306. package/dist/types/transaction/actions/zksync/send-eip712-transaction.d.ts.map +1 -1
  307. package/dist/types/utils/any-evm/zksync/isZkSyncChain.d.ts +5 -0
  308. package/dist/types/utils/any-evm/zksync/isZkSyncChain.d.ts.map +1 -1
  309. package/dist/types/utils/config.d.ts +9 -0
  310. package/dist/types/utils/config.d.ts.map +1 -1
  311. package/dist/types/utils/json.d.ts +1 -1
  312. package/dist/types/utils/json.d.ts.map +1 -1
  313. package/dist/types/version.d.ts +1 -1
  314. package/dist/types/wallets/eip5792/get-calls-status.d.ts +1 -1
  315. package/dist/types/wallets/eip5792/get-capabilities.d.ts +1 -1
  316. package/dist/types/wallets/eip5792/send-calls.d.ts +2 -2
  317. package/dist/types/wallets/eip5792/wait-for-bundle.d.ts +1 -1
  318. package/dist/types/wallets/in-app/core/users/getUser.d.ts +1 -1
  319. package/dist/types/wallets/smart/smart-wallet.d.ts +1 -0
  320. package/dist/types/wallets/smart/smart-wallet.d.ts.map +1 -1
  321. package/package.json +1 -1
  322. package/src/client/client.ts +1 -0
  323. package/src/exports/react.ts +56 -2
  324. package/src/extensions/erc721/lazyMinting/read/getBatchesToReveal.ts +1 -1
  325. package/src/extensions/modules/common/checkModulesCompatibility.ts +5 -0
  326. package/src/extensions/prebuilts/deploy-pack.ts +1 -0
  327. package/src/extensions/thirdweb/write/publish.ts +4 -0
  328. package/src/react/core/hooks/others/useChainQuery.ts +3 -3
  329. package/src/react/core/hooks/rpc/useBlockNumber.ts +1 -1
  330. package/src/react/core/hooks/wallets/useCapabilities.ts +1 -1
  331. package/src/react/core/hooks/wallets/useSendCalls.ts +3 -3
  332. package/src/react/core/providers/connection-manager.tsx +3 -0
  333. package/src/react/core/utils/wallet.ts +2 -1
  334. package/src/react/core/utils/walletIcon.ts +2 -0
  335. package/src/react/native/hooks/wallets/useProfiles.ts +1 -1
  336. package/src/react/native/providers/thirdweb-provider.tsx +1 -0
  337. package/src/react/native/ui/AutoConnect/AutoConnect.tsx +1 -0
  338. package/src/react/native/ui/connect/ConnectModal.tsx +1 -0
  339. package/src/react/native/ui/transaction/TransactionButton.tsx +1 -0
  340. package/src/react/web/hooks/wallets/useProfiles.ts +1 -1
  341. package/src/react/web/providers/thirdweb-provider.tsx +1 -0
  342. package/src/react/web/ui/AutoConnect/AutoConnect.tsx +1 -0
  343. package/src/react/web/ui/ConnectWallet/Blobbie.tsx +31 -4
  344. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +36 -32
  345. package/src/react/web/ui/ConnectWallet/Details.tsx +91 -58
  346. package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +1 -0
  347. package/src/react/web/ui/PayEmbed.tsx +2 -2
  348. package/src/react/web/ui/SiteEmbed.tsx +3 -2
  349. package/src/react/web/ui/SiteLink.tsx +2 -1
  350. package/src/react/web/ui/TransactionButton/index.tsx +1 -0
  351. package/src/react/web/ui/prebuilt/Account/address.test.tsx +28 -0
  352. package/src/react/web/ui/prebuilt/Account/address.tsx +64 -0
  353. package/src/react/web/ui/prebuilt/Account/avatar.test.tsx +48 -0
  354. package/src/react/web/ui/prebuilt/Account/avatar.tsx +221 -0
  355. package/src/react/web/ui/prebuilt/Account/balance.test.tsx +54 -0
  356. package/src/react/web/ui/prebuilt/Account/balance.tsx +202 -0
  357. package/src/react/web/ui/prebuilt/Account/blobbie.tsx +12 -0
  358. package/src/react/web/ui/prebuilt/Account/name.test.tsx +62 -0
  359. package/src/react/web/ui/prebuilt/Account/name.tsx +175 -0
  360. package/src/react/web/ui/prebuilt/Account/provider.test.tsx +38 -0
  361. package/src/react/web/ui/prebuilt/Account/provider.tsx +69 -0
  362. package/src/react/web/ui/prebuilt/NFT/NFT.test.tsx +17 -14
  363. package/src/react/web/ui/prebuilt/NFT/description.tsx +87 -0
  364. package/src/react/web/ui/prebuilt/NFT/hooks.tsx +53 -0
  365. package/src/react/web/ui/prebuilt/NFT/media.tsx +119 -0
  366. package/src/react/web/ui/prebuilt/NFT/name.tsx +85 -0
  367. package/src/react/web/ui/prebuilt/NFT/provider.tsx +75 -0
  368. package/src/react/web/ui/prebuilt/Token/icon.tsx +164 -0
  369. package/src/react/web/ui/prebuilt/Token/name.tsx +201 -0
  370. package/src/react/web/ui/prebuilt/Token/provider.tsx +86 -0
  371. package/src/react/web/ui/prebuilt/Token/symbol.tsx +201 -0
  372. package/src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.tsx +1 -0
  373. package/src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx +1 -0
  374. package/src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.tsx +1 -0
  375. package/src/storage/unpin.ts +1 -1
  376. package/src/storage/upload.ts +1 -0
  377. package/src/transaction/actions/to-serializable-transaction.ts +1 -1
  378. package/src/transaction/actions/zksync/send-eip712-transaction.ts +5 -0
  379. package/src/utils/any-evm/zksync/isZkSyncChain.ts +5 -0
  380. package/src/utils/config.ts +9 -0
  381. package/src/utils/json.ts +8 -2
  382. package/src/version.ts +1 -1
  383. package/src/wallets/eip5792/get-calls-status.ts +1 -1
  384. package/src/wallets/eip5792/get-capabilities.ts +1 -1
  385. package/src/wallets/eip5792/send-calls.ts +2 -2
  386. package/src/wallets/eip5792/wait-for-bundle.ts +1 -1
  387. package/src/wallets/in-app/core/users/getUser.ts +1 -1
  388. package/src/wallets/smart/smart-wallet.ts +1 -0
  389. package/dist/cjs/react/web/ui/prebuilt/NFT/NFT.js +0 -217
  390. package/dist/cjs/react/web/ui/prebuilt/NFT/NFT.js.map +0 -1
  391. package/dist/esm/react/web/ui/prebuilt/NFT/NFT.js +0 -212
  392. package/dist/esm/react/web/ui/prebuilt/NFT/NFT.js.map +0 -1
  393. package/dist/types/react/web/ui/prebuilt/NFT/NFT.d.ts +0 -76
  394. package/dist/types/react/web/ui/prebuilt/NFT/NFT.d.ts.map +0 -1
  395. package/src/extensions/prebuilts/deploy-published.test.ts +0 -132
  396. package/src/react/web/ui/prebuilt/NFT/NFT.tsx +0 -272
  397. package/src/wallets/smart/smart-wallet-integration-v07.test.ts +0 -270
  398. package/src/wallets/smart/smart-wallet-integration.test.ts +0 -375
@@ -30,6 +30,11 @@ export declare function signEip712Transaction(options: {
30
30
  eip712Transaction: EIP721TransactionSerializable;
31
31
  chainId: number;
32
32
  }): Promise<Hex>;
33
+ /**
34
+ * Populate a prepared transaction to be serialized as a EIP712 transaction
35
+ * @param options
36
+ * @internal
37
+ */
33
38
  export declare function populateEip712Transaction(options: SendEip712TransactionOptions): Promise<EIP721TransactionSerializable>;
34
39
  export declare function getZkGasFees(args: {
35
40
  transaction: PreparedTransaction;
@@ -1 +1 @@
1
- {"version":3,"file":"send-eip712-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/transaction/actions/zksync/send-eip712-transaction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,2BAA2B,CAAC;AAGrE,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,sBAAsB,CAAC;AAE9B,KAAK,4BAA4B,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAmBhC;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,GAAG,CAAC,CAef;AAED,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAsBxC;AAgDD,wBAAsB,YAAY,CAAC,IAAI,EAAE;IACvC,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;;;;;GAuCA"}
1
+ {"version":3,"file":"send-eip712-transaction.d.ts","sourceRoot":"","sources":["../../../../../src/transaction/actions/zksync/send-eip712-transaction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,2BAA2B,CAAC;AAGrE,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,sBAAsB,CAAC;AAE9B,KAAK,4BAA4B,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAmBhC;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,GAAG,CAAC,CAef;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAsBxC;AAgDD,wBAAsB,YAAY,CAAC,IAAI,EAAE;IACvC,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;;;;;GAuCA"}
@@ -1,3 +1,8 @@
1
1
  import type { Chain } from "../../../chains/types.js";
2
+ /**
3
+ * Checks whether the given chain is part of the zksync stack
4
+ * @param chain
5
+ * @chain
6
+ */
2
7
  export declare function isZkSyncChain(chain: Chain): Promise<boolean>;
3
8
  //# sourceMappingURL=isZkSyncChain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isZkSyncChain.d.ts","sourceRoot":"","sources":["../../../../../src/utils/any-evm/zksync/isZkSyncChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,oBAiC/C"}
1
+ {"version":3,"file":"isZkSyncChain.d.ts","sourceRoot":"","sources":["../../../../../src/utils/any-evm/zksync/isZkSyncChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,oBAiC/C"}
@@ -1,5 +1,8 @@
1
1
  import type { PreparedTransaction } from "../transaction/prepare-transaction.js";
2
2
  import type { Account } from "../wallets/interfaces/wallet.js";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare function setTransactionDecorator(decoratorFunction: (args: {
4
7
  account: Account;
5
8
  transaction: PreparedTransaction;
@@ -7,7 +10,13 @@ export declare function setTransactionDecorator(decoratorFunction: (args: {
7
10
  account: Account;
8
11
  transaction: PreparedTransaction;
9
12
  }>): void;
13
+ /**
14
+ * @internal
15
+ */
10
16
  export declare function clearTransactionDecorator(): void;
17
+ /**
18
+ * @internal
19
+ */
11
20
  export declare function getTransactionDecorator(): ((args: {
12
21
  account: Account;
13
22
  transaction: PreparedTransaction;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAS/D,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,CAAC,IAAI,EAAE;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,mBAAmB,CAAC;CAClC,KAAK,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC,QAGtE;AAED,wBAAgB,yBAAyB,SAExC;AAED,wBAAgB,uBAAuB,YAnB3B;IACN,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,mBAAmB,CAAC;CAClC,KAAK,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC,SAkBxE"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAS/D;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,CAAC,IAAI,EAAE;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,mBAAmB,CAAC;CAClC,KAAK,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC,QAGtE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,SAExC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,YA5B3B;IACN,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,mBAAmB,CAAC;CAClC,KAAK,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC,SA2BxE"}
@@ -14,5 +14,5 @@
14
14
  * ```
15
15
  * @utils
16
16
  */
17
- export declare const stringify: typeof JSON.stringify;
17
+ export declare function stringify(value: any, replacer?: ((this: any, key: string, value: any) => any) | null, space?: string | number): string;
18
18
  //# sourceMappingURL=json.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,IAAI,CAAC,SAUnC,CAAC"}
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CAEvB,KAAK,EAAE,GAAG,EAEV,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,IAAI,EAC/D,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,UAWxB"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334";
1
+ export declare const version = "5.70.0-nightly-ecaa304a812188da3c81888bb52ca6064093c139-20241121000332";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -9,7 +9,7 @@ export type GetCallsStatusOptions = {
9
9
  /**
10
10
  * Get the status of an [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) bundle.
11
11
  *
12
- * @note This function is dependent on the wallet's support for EIP-5792 and could fail.
12
+ * This function is dependent on the wallet's support for EIP-5792 and could fail.
13
13
  *
14
14
  * @param {GetCallsStatusOptions} options
15
15
  * @param {Wallet} options.wallet - The wallet that send the original calls.
@@ -9,7 +9,7 @@ export type GetCapabilitiesResult = Prettify<WalletCapabilitiesRecord<WalletCapa
9
9
  /**
10
10
  * Get the capabilities of a wallet based on the [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) specification.
11
11
  *
12
- * @note This function is dependent on the wallet's support for EIP-5792, but will not throw.
12
+ * This function is dependent on the wallet's support for EIP-5792, but will not throw.
13
13
  * **The returned object contains a `message` field detailing any issues with the wallet's support for EIP-5792.**
14
14
  *
15
15
  * @param {GetCapabilitiesOptions} options
@@ -31,7 +31,7 @@ export type SendCallsResult = WalletSendCallsId;
31
31
  * This function works with all Thirdweb wallets (in-app and smart) and certain injected wallets that already support EIP-5792.
32
32
  * Transactions will be bundled and sponsored when those capabilities are supported, otherwise they will be sent as individual transactions.
33
33
  *
34
- * @note This function is dependent on the wallet's support for EIP-5792 and could fail.
34
+ * This function is dependent on the wallet's support for EIP-5792 and could fail.
35
35
  *
36
36
  * @param {SendCallsOptions} options
37
37
  * @param {Wallet} options.wallet - The wallet to send the calls to.
@@ -81,7 +81,7 @@ export type SendCallsResult = WalletSendCallsId;
81
81
  * }
82
82
  * }
83
83
  * });
84
- * @note We recommend proxying any paymaster calls via an API route you setup and control.
84
+ * We recommend proxying any paymaster calls via an API route you setup and control.
85
85
  * ```
86
86
  * @extension EIP5792
87
87
  */
@@ -13,7 +13,7 @@ export type WaitForBundleOptions = Prettify<{
13
13
  /**
14
14
  * Waits for the [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) bundle to be confirmed.
15
15
  *
16
- * @note This function is dependent on the wallet's support for EIP-5792 and could fail.
16
+ * This function is dependent on the wallet's support for EIP-5792 and could fail.
17
17
  *
18
18
  * @param options - The options for waiting for the bundle.
19
19
  * By default, the max wait time is 100 blocks.
@@ -12,7 +12,7 @@ export type GetUserResult = {
12
12
  };
13
13
  /**
14
14
  * Gets user based on the provided query parameters.
15
- * @note This function is only available on the server (a secret key is required in the client).
15
+ * This function is only available on the server (a secret key is required in the client).
16
16
  *
17
17
  * @param options - The options for the get user function.
18
18
  * @param options.client - The Thirdweb client with a secret key included.
@@ -71,6 +71,7 @@ import type { CreateWalletArgs } from "../wallet-types.js";
71
71
  * sponsorGas: true, // enable sponsored transactions
72
72
  * factoryAddress: "0x...", // custom factory address
73
73
  * });
74
+ * ```
74
75
  *
75
76
  * ## Using v0.7 Entrypoint
76
77
  *
@@ -1 +1 @@
1
- {"version":3,"file":"smart-wallet.d.ts","sourceRoot":"","sources":["../../../../src/wallets/smart/smart-wallet.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,wBAAgB,WAAW,CACzB,aAAa,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAC1C,MAAM,CAAC,OAAO,CAAC,CA2GjB"}
1
+ {"version":3,"file":"smart-wallet.d.ts","sourceRoot":"","sources":["../../../../src/wallets/smart/smart-wallet.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqHG;AACH,wBAAgB,WAAW,CACzB,aAAa,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAC1C,MAAM,CAAC,OAAO,CAAC,CA2GjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334",
3
+ "version": "5.70.0-nightly-ecaa304a812188da3c81888bb52ca6064093c139-20241121000332",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -98,6 +98,7 @@ export type ThirdwebClient = {
98
98
  *
99
99
  * const client = createThirdwebClient({ secretKey: "..." });
100
100
  * ```
101
+ * @client
101
102
  */
102
103
  export function createThirdwebClient(
103
104
  options: CreateThirdwebClientOptions,
@@ -173,10 +173,23 @@ export {
173
173
  type CreateDirectListingButtonProps,
174
174
  } from "../react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js";
175
175
 
176
+ // NFT rendering components
176
177
  export {
177
- NFT,
178
+ NFTProvider,
179
+ type NFTProviderProps,
180
+ } from "../react/web/ui/prebuilt/NFT/provider.js";
181
+ export {
182
+ NFTName,
183
+ type NFTNameProps,
184
+ } from "../react/web/ui/prebuilt/NFT/name.js";
185
+ export {
186
+ NFTDescription,
187
+ type NFTDescriptionProps,
188
+ } from "../react/web/ui/prebuilt/NFT/description.js";
189
+ export {
190
+ NFTMedia,
178
191
  type NFTMediaProps,
179
- } from "../react/web/ui/prebuilt/NFT/NFT.js";
192
+ } from "../react/web/ui/prebuilt/NFT/media.js";
180
193
 
181
194
  export { useConnectionManager } from "../react/core/providers/connection-manager.js";
182
195
 
@@ -199,3 +212,44 @@ export type {
199
212
  // Site Embed and Linking
200
213
  export { SiteEmbed } from "../react/web/ui/SiteEmbed.js";
201
214
  export { SiteLink } from "../react/web/ui/SiteLink.js";
215
+
216
+ // Account
217
+ export {
218
+ AccountAddress,
219
+ type AccountAddressProps,
220
+ } from "../react/web/ui/prebuilt/Account/address.js";
221
+ export {
222
+ AccountBalance,
223
+ type AccountBalanceProps,
224
+ } from "../react/web/ui/prebuilt/Account/balance.js";
225
+ export {
226
+ AccountName,
227
+ type AccountNameProps,
228
+ } from "../react/web/ui/prebuilt/Account/name.js";
229
+ export { AccountBlobbie } from "../react/web/ui/prebuilt/Account/blobbie.js";
230
+ export {
231
+ AccountProvider,
232
+ type AccountProviderProps,
233
+ } from "../react/web/ui/prebuilt/Account/provider.js";
234
+ export {
235
+ AccountAvatar,
236
+ type AccountAvatarProps,
237
+ } from "../react/web/ui/prebuilt/Account/avatar.js";
238
+
239
+ // Token
240
+ export {
241
+ TokenProvider,
242
+ type TokenProviderProps,
243
+ } from "../react/web/ui/prebuilt/Token/provider.js";
244
+ export {
245
+ TokenName,
246
+ type TokenNameProps,
247
+ } from "../react/web/ui/prebuilt/Token/name.js";
248
+ export {
249
+ TokenSymbol,
250
+ type TokenSymbolProps,
251
+ } from "../react/web/ui/prebuilt/Token/symbol.js";
252
+ export {
253
+ TokenIcon,
254
+ type TokenIconProps,
255
+ } from "../react/web/ui/prebuilt/Token/icon.js";
@@ -25,7 +25,7 @@ export interface BatchToReveal {
25
25
  * @param options.contract {@link ThirdwebContract} - The NFT contract instance.
26
26
  * @returns A promise resolving to an array of unrevealed batches.
27
27
  *
28
- * @note Use the `batchId` and corresponding password for each batch to reveal it with `reveal`. {@see reveal}
28
+ * Use the `batchId` and corresponding password for each batch to reveal it with `reveal`. {@see reveal}
29
29
  * @extension ERC721
30
30
  * @example
31
31
  * ```ts
@@ -18,6 +18,11 @@ import {
18
18
  FN_SELECTOR as getModuleConfigSelector,
19
19
  } from "../__generated__/IModule/read/getModuleConfig.js";
20
20
 
21
+ /**
22
+ * Check if the given modules are compatible with the given core contract
23
+ * @param options
24
+ * @modules
25
+ */
21
26
  export async function checkModulesCompatibility(options: {
22
27
  coreBytecode: string;
23
28
  moduleBytecodes: string[];
@@ -73,6 +73,7 @@ export type DeployPackContractOptions = Prettify<
73
73
  * },
74
74
  * });
75
75
  * ```
76
+ * @extension DEPLOY
76
77
  */
77
78
  export async function deployPackContract(options: DeployPackContractOptions) {
78
79
  const { chain, client, account, params } = options;
@@ -113,6 +113,10 @@ export function publishContract(
113
113
  });
114
114
  }
115
115
 
116
+ /**
117
+ * Returns the default publisher contract on polygon
118
+ * @utils
119
+ */
116
120
  export function getContractPublisher(client: ThirdwebClient) {
117
121
  return getContract({
118
122
  client,
@@ -144,13 +144,13 @@ function getQueryOptions(chain?: Chain) {
144
144
  }
145
145
 
146
146
  /**
147
- * @description Retrieves metadata for a chain such as name, icon, available faucets, block explorers, etc.
147
+ * Retrieves metadata for a chain such as name, icon, available faucets, block explorers, etc.
148
148
  *
149
149
  * @param chain - Chain to retrieve metadata for, see [defineChain](https://portal.thirdweb.com/references/typescript/v5/defineChain) for how to create a chain from a chain ID.
150
- * @returns A React Query result containing the chain metadata, @see {@link ChainMetadata}.
150
+ * @returns A React Query result containing the chain metadata
151
151
  *
152
152
  * @example
153
- * ```jsx
153
+ * ```
154
154
  * import { useChainMetadata } from "thirdweb/react";
155
155
  *
156
156
  * const { data: chainMetadata } = useChainMetadata(defineChain(11155111));
@@ -18,7 +18,7 @@ export type UseBlockNumberOptions = {
18
18
  * @param options - The options for the hook.
19
19
  * @returns The latest block number.
20
20
  * @example
21
- * ```jsx
21
+ * ```ts
22
22
  * import { useBlockNumber } from "thirdweb/react";
23
23
  * const blockNumber = useBlockNumber({client, chain});
24
24
  * ```
@@ -8,7 +8,7 @@ import { useActiveWallet } from "./useActiveWallet.js";
8
8
  /**
9
9
  * A hook to get the current wallet's capabilities according to [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792).
10
10
  *
11
- * @note This function is dependent on the wallet's support for EIP-5792, but will not throw.
11
+ * This function is dependent on the wallet's support for EIP-5792, but will not throw.
12
12
  * **The returned object contains a `message` field detailing any issues with the wallet's support for EIP-5792.**
13
13
  *
14
14
  * @returns a React Query object.
@@ -24,8 +24,8 @@ import { useActiveWallet } from "./useActiveWallet.js";
24
24
  *
25
25
  * When calls are sent, all contracts that are interacted with will have their corresponding reads revalidated via React Query.
26
26
  *
27
- * @note This hook is dependent on the wallet's support for EIP-5792 and could fail.
28
- * @note The mutatuon function will use your currently connected wallet by default, but you can pass it a specific wallet to use if you'd like.
27
+ * This hook is dependent on the wallet's support for EIP-5792 and could fail.
28
+ * The mutatuon function will use your currently connected wallet by default, but you can pass it a specific wallet to use if you'd like.
29
29
  *
30
30
  * @returns A React Query mutatuon object to interact with {@link sendCalls}
31
31
  * @throws an error if the wallet does not support EIP-5792.
@@ -76,7 +76,7 @@ import { useActiveWallet } from "./useActiveWallet.js";
76
76
  * });
77
77
  * ```
78
78
  *
79
- * @note We recommend proxying any paymaster calls via an API route you setup and control.
79
+ * We recommend proxying any paymaster calls via an API route you setup and control.
80
80
  * @extension EIP5792
81
81
  */
82
82
  export function useSendCalls({
@@ -7,6 +7,9 @@ export const ConnectionManagerCtx = createContext<
7
7
  ConnectionManager | undefined
8
8
  >(undefined);
9
9
 
10
+ /**
11
+ * @internal
12
+ */
10
13
  export function useConnectionManager() {
11
14
  const connectionManager = useConnectionManagerCtx("useConnectionManager");
12
15
  if (!connectionManager) {
@@ -77,7 +77,8 @@ export function useEnsAvatar(options: {
77
77
  }
78
78
 
79
79
  /**
80
- * @internal
80
+ * @internal This hook is only being used in our react-native package
81
+ * It can be removed once we migrate the RN UI code to our headless components (AccountProvider, AccountName etc.)
81
82
  */
82
83
  export function useConnectedWalletDetails(
83
84
  client: ThirdwebClient,
@@ -62,6 +62,8 @@ export const socialIcons = {
62
62
  * const googleIcon = getSocialIcon("google")
63
63
  * const appleIcon = getSocialIcon("apple")
64
64
  * ```
65
+ *
66
+ * @walletUtils
65
67
  */
66
68
  export function getSocialIcon(provider: AuthOption | ({} & string)): string {
67
69
  switch (provider) {
@@ -10,7 +10,7 @@ import { useAdminWallet } from "../../../core/hooks/wallets/useAdminWallet.js";
10
10
  * Retrieves all linked profiles of the connected in-app or ecosystem account.
11
11
  *
12
12
  * @returns A React Query result containing the linked profiles for the connected in-app account.
13
- * @note This hook will only run if the connected wallet supports account linking.
13
+ * This hook will only run if the connected wallet supports account linking.
14
14
  *
15
15
  * @example
16
16
  * ```jsx
@@ -23,6 +23,7 @@ import { ThirdwebProviderCore } from "../../core/providers/thirdweb-provider.js"
23
23
  * }
24
24
  * ```
25
25
  * @component
26
+ * @walletConnection
26
27
  */
27
28
  export function ThirdwebProvider(
28
29
  props: React.PropsWithChildren<{
@@ -32,6 +32,7 @@ import { useAutoConnect } from "../../hooks/wallets/useAutoConnect.js";
32
32
  * }
33
33
  * ```
34
34
  * @component
35
+ * @walletConnection
35
36
  */
36
37
  export function AutoConnect(props: AutoConnectProps) {
37
38
  useAutoConnect(props);
@@ -61,6 +61,7 @@ export type ModalState =
61
61
  *
62
62
  * Refer to the [`ConnectEmbedProps`](https://portal.thirdweb.com/references/typescript/v5/ConnectEmbedProps) type for more details
63
63
  * @component
64
+ * @walletConnection
64
65
  */
65
66
  export function ConnectEmbed(props: ConnectEmbedProps) {
66
67
  const theme = parseTheme(props.theme);
@@ -25,6 +25,7 @@ import { ThemedSpinner } from "../components/spinner.js";
25
25
  * </TransactionButton>
26
26
  * ```
27
27
  * @component
28
+ * @transaction
28
29
  */
29
30
  export function TransactionButton(props: TransactionButtonProps) {
30
31
  const {
@@ -10,7 +10,7 @@ import { useAdminWallet } from "../../../core/hooks/wallets/useAdminWallet.js";
10
10
  * Retrieves all linked profiles of the connected in-app or ecosystem account.
11
11
  *
12
12
  * @returns A React Query result containing the linked profiles for the connected in-app account.
13
- * @note This hook will only run if the connected wallet supports account linking.
13
+ * This hook will only run if the connected wallet supports account linking.
14
14
  *
15
15
  * @example
16
16
  * ```jsx
@@ -23,6 +23,7 @@ import { ThirdwebProviderCore } from "../../core/providers/thirdweb-provider.js"
23
23
  * }
24
24
  * ```
25
25
  * @component
26
+ * @walletConnection
26
27
  */
27
28
  export function ThirdwebProvider(
28
29
  props: React.PropsWithChildren<{
@@ -37,6 +37,7 @@ import { useAutoConnect } from "../../hooks/wallets/useAutoConnect.js";
37
37
  * }
38
38
  * ```
39
39
  * @component
40
+ * @walletConnection
40
41
  */
41
42
  export function AutoConnect(props: AutoConnectProps) {
42
43
  useAutoConnect(props);
@@ -21,13 +21,34 @@ const COLOR_OPTIONS = [
21
21
  ["#fda4af", "#be123c"],
22
22
  ];
23
23
 
24
+ /**
25
+ * Props for the Blobbie component
26
+ * @component
27
+ */
28
+ export type BlobbieProps = {
29
+ address: Address;
30
+ style?: Omit<React.CSSProperties, "backgroundImage">;
31
+ className?: string;
32
+ size?: number;
33
+ };
34
+
24
35
  /**
25
36
  * A unique gradient avatar based on the provided address.
26
37
  * @param props The component props.
27
38
  * @param props.address The address to generate the gradient with.
28
- * @param props.size The size of each side of the square avatar (in pixels)
39
+ * @param props.style The CSS style for the component - excluding `backgroundImage`
40
+ * @param props.className The className for the component
41
+ * @param props.size The size of each side of the square avatar (in pixels). This prop will override the `width` and `height` attributes from the `style` prop.
42
+ * @component
43
+ * @wallet
44
+ * @example
45
+ * ```tsx
46
+ * import { Blobbie } from "thirdweb/react";
47
+ *
48
+ * <Blobbie address="0x...." className="w-10 h-10" />
49
+ * ```
29
50
  */
30
- export function Blobbie(props: { address: Address; size: number }) {
51
+ export function Blobbie(props: BlobbieProps) {
31
52
  const id = useId();
32
53
  const colors = useMemo(
33
54
  () =>
@@ -41,10 +62,16 @@ export function Blobbie(props: { address: Address; size: number }) {
41
62
  <div
42
63
  id={id}
43
64
  style={{
44
- width: `${props.size}px`,
45
- height: `${props.size}px`,
65
+ ...props.style,
46
66
  backgroundImage: `radial-gradient(ellipse at left bottom, ${colors[0]}, ${colors[1]})`,
67
+ ...(props.size
68
+ ? {
69
+ width: `${props.size}px`,
70
+ height: `${props.size}px`,
71
+ }
72
+ : undefined),
47
73
  }}
74
+ className={props.className}
48
75
  />
49
76
  );
50
77
  }
@@ -23,6 +23,7 @@ import { Spinner } from "../components/Spinner.js";
23
23
  import { Container } from "../components/basic.js";
24
24
  import { Button } from "../components/buttons.js";
25
25
  import { fadeInAnimation } from "../design-system/animations.js";
26
+ import { AccountProvider } from "../prebuilt/Account/provider.js";
26
27
  import { ConnectedWalletDetails } from "./Details.js";
27
28
  import ConnectModal from "./Modal/ConnectModal.js";
28
29
  import { LockIcon } from "./icons/LockIcon.js";
@@ -187,7 +188,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
187
188
  * client={client}
188
189
  * connectModal={{
189
190
  * title: "Sign in to MyApp",
190
- * titleIcon: https://example.com/logo.png,
191
+ * titleIcon: "https://example.com/logo.png",
191
192
  * size: "compact",
192
193
  * }}
193
194
  * />
@@ -269,6 +270,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
269
270
  * @returns A JSX element that renders the <ConnectButton> component.
270
271
  *
271
272
  * @component
273
+ * @walletConnection
272
274
  */
273
275
  export function ConnectButton(props: ConnectButtonProps) {
274
276
  const wallets = useMemo(
@@ -531,37 +533,39 @@ function ConnectButtonInner(
531
533
  }
532
534
 
533
535
  return (
534
- <ConnectedWalletDetails
535
- theme={theme}
536
- detailsButton={props.detailsButton}
537
- detailsModal={props.detailsModal}
538
- supportedTokens={supportedTokens}
539
- supportedNFTs={props.supportedNFTs}
540
- onDisconnect={(info) => {
541
- // logout on explicit disconnect!
542
- if (siweAuth.requiresAuth) {
543
- siweAuth.doLogout();
544
- }
545
- props.onDisconnect?.(info);
546
- }}
547
- chains={props?.chains || []}
548
- chain={props.chain}
549
- switchButton={props.switchButton}
550
- client={props.client}
551
- connectLocale={locale}
552
- connectOptions={{
553
- accountAbstraction: props.accountAbstraction,
554
- appMetadata: props.appMetadata,
555
- chain: props.chain,
556
- chains: props.chains,
557
- connectModal: props.connectModal,
558
- recommendedWallets: props.recommendedWallets,
559
- showAllWallets: props.showAllWallets,
560
- walletConnect: props.walletConnect,
561
- wallets: props.wallets,
562
- hiddenWallets: props.detailsModal?.hiddenWallets,
563
- }}
564
- />
536
+ <AccountProvider address={activeAccount.address} client={props.client}>
537
+ <ConnectedWalletDetails
538
+ theme={theme}
539
+ detailsButton={props.detailsButton}
540
+ detailsModal={props.detailsModal}
541
+ supportedTokens={supportedTokens}
542
+ supportedNFTs={props.supportedNFTs}
543
+ onDisconnect={(info) => {
544
+ // logout on explicit disconnect!
545
+ if (siweAuth.requiresAuth) {
546
+ siweAuth.doLogout();
547
+ }
548
+ props.onDisconnect?.(info);
549
+ }}
550
+ chains={props?.chains || []}
551
+ chain={props.chain}
552
+ switchButton={props.switchButton}
553
+ client={props.client}
554
+ connectLocale={locale}
555
+ connectOptions={{
556
+ accountAbstraction: props.accountAbstraction,
557
+ appMetadata: props.appMetadata,
558
+ chain: props.chain,
559
+ chains: props.chains,
560
+ connectModal: props.connectModal,
561
+ recommendedWallets: props.recommendedWallets,
562
+ showAllWallets: props.showAllWallets,
563
+ walletConnect: props.walletConnect,
564
+ wallets: props.wallets,
565
+ hiddenWallets: props.detailsModal?.hiddenWallets,
566
+ }}
567
+ />
568
+ </AccountProvider>
565
569
  );
566
570
  }
567
571