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
@@ -0,0 +1,59 @@
1
+ import type { UseQueryOptions } from "@tanstack/react-query";
2
+ import type { JSX } from "react";
3
+ import type { NFT } from "../../../../../utils/nft/parseNft.js";
4
+ export interface NFTNameProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
5
+ loadingComponent?: JSX.Element;
6
+ fallbackComponent?: JSX.Element;
7
+ /**
8
+ * Optional `useQuery` params
9
+ */
10
+ queryOptions?: Omit<UseQueryOptions<NFT>, "queryFn" | "queryKey">;
11
+ }
12
+ /**
13
+ * This component fetches and displays an NFT's name. It takes in a `className` and `style` props
14
+ * so you can style it just like how you would style a <span> element.
15
+ * @returns A <span> element containing the name of the NFT
16
+ *
17
+ * @component
18
+ * @example
19
+ * ### Basic usage
20
+ * ```tsx
21
+ * import { NFTProvider, NFTName } from "thirdweb/react";
22
+ *
23
+ * <NFTProvider>
24
+ * <NFTName />
25
+ * </NFTProvider>
26
+ * ```
27
+ *
28
+ * ### Show a loading sign while the name is being fetched
29
+ * ```tsx
30
+ * import { NFTProvider, NFTName } from "thirdweb/react";
31
+ *
32
+ * <NFTProvider>
33
+ * <NFTName loadingComponent={<YourLoadingSign />} />
34
+ * </NFTProvider>
35
+ * ```
36
+ *
37
+ * ### Show something in case the name failed to resolve
38
+ * ```tsx
39
+ * import { NFTProvider, NFTName } from "thirdweb/react";
40
+ *
41
+ * <NFTProvider>
42
+ * <NFTName fallbackComponent={<span>Failed to load name</span>} />
43
+ * </NFTProvider>
44
+ * ```
45
+ *
46
+ * ### Custom query options for useQuery (tanstack-query)
47
+ * ```tsx
48
+ * import { NFTProvider, NFTName } from "thirdweb/react";
49
+ *
50
+ * <NFTProvider>
51
+ * <NFTName queryOptions={{ retry: 3, enabled: false, }} />
52
+ * </NFTProvider>
53
+ * ```
54
+ *
55
+ * @nft
56
+ * @beta
57
+ */
58
+ export declare function NFTName({ loadingComponent, fallbackComponent, queryOptions, ...restProps }: NFTNameProps): import("react/jsx-runtime.js").JSX.Element | null;
59
+ //# sourceMappingURL=name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/NFT/name.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAIhE,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,OAAO,CAAC,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,YAAY,qDAiBd"}
@@ -0,0 +1,55 @@
1
+ import type { ThirdwebContract } from "../../../../../contract/contract.js";
2
+ /**
3
+ * Props for the <NFT> component
4
+ * @component
5
+ */
6
+ export type NFTProviderProps = {
7
+ /**
8
+ * The NFT contract address. Accepts both ERC721 and ERC1155 contracts
9
+ */
10
+ contract: ThirdwebContract;
11
+ /**
12
+ * The tokenId whose info you want to display
13
+ */
14
+ tokenId: bigint;
15
+ };
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare const NFTProviderContext: import("react").Context<NFTProviderProps | undefined>;
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare function useNFTContext(): NFTProviderProps;
24
+ /**
25
+ * A React context provider component that supplies NFT-related data to its child components.
26
+ *
27
+ * This component serves as a wrapper around the `NFTProviderContext.Provider` and passes
28
+ * the provided NFT data down to all of its child components through the context API.
29
+ *
30
+ *
31
+ * @param {React.PropsWithChildren<NFTProviderProps>} props - The props for the NFT provider
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * import { getContract } from "thirdweb";
36
+ * import { NFTProvider, NFTMedia, NFTDescription, NFTName } from "thirdweb/react";
37
+ *
38
+ * const contract = getContract({
39
+ * address: "0x...",
40
+ * chain: ethereum,
41
+ * client: yourThirdwebClient,
42
+ * });
43
+ *
44
+ * <NFTProvider contract={contract} tokenId={0n}>
45
+ * <NFTMedia />
46
+ * <NFTDescription />
47
+ * <NFTName />
48
+ * </NFTProvider>
49
+ * ```
50
+ * @component
51
+ * @nft
52
+ * @beta
53
+ */
54
+ export declare function NFTProvider(props: React.PropsWithChildren<NFTProviderProps>): import("react/jsx-runtime.js").JSX.Element;
55
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/NFT/provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,uDAEnB,CAAC;AAEb;;GAEG;AACH,wBAAgB,aAAa,qBAQ5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,8CAM3E"}
@@ -0,0 +1,95 @@
1
+ import { type UseQueryOptions } from "@tanstack/react-query";
2
+ import type { JSX } from "react";
3
+ export interface TokenIconProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src"> {
4
+ /**
5
+ * This prop can be a string or a (async) function that resolves to a string, representing the icon url of the token
6
+ * This is particularly useful if you already have a way to fetch the token icon.
7
+ */
8
+ iconResolver?: string | (() => string) | (() => Promise<string>);
9
+ /**
10
+ * This component will be shown while the avatar of the icon is being fetched
11
+ * If not passed, the component will return `null`.
12
+ *
13
+ * You can pass a loading sign or spinner to this prop.
14
+ * @example
15
+ * ```tsx
16
+ * <TokenIcon loadingComponent={<Spinner />} />
17
+ * ```
18
+ */
19
+ loadingComponent?: JSX.Element;
20
+ /**
21
+ * This component will be shown if the request for fetching the avatar is done
22
+ * but could not retreive any result.
23
+ * You can pass a dummy avatar/image to this prop.
24
+ *
25
+ * If not passed, the component will return `null`
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * <TokenIcon fallbackComponent={<DummyImage />} />
30
+ * ```
31
+ */
32
+ fallbackComponent?: JSX.Element;
33
+ /**
34
+ * Optional query options for `useQuery`
35
+ */
36
+ queryOptions?: Omit<UseQueryOptions<string>, "queryFn" | "queryKey">;
37
+ }
38
+ /**
39
+ * This component tries to resolve the icon of a given token, then return an image.
40
+ * @returns an <img /> with the src of the token icon
41
+ *
42
+ * @example
43
+ * ### Basic usage
44
+ * ```tsx
45
+ * import { TokenProvider, TokenIcon } from "thirdweb/react";
46
+ *
47
+ * <TokenProvider address="0x-token-address" chain={chain} client={client}>
48
+ * <TokenIcon />
49
+ * </TokenProvider>
50
+ * ```
51
+ *
52
+ * Result: An <img /> component with the src of the icon
53
+ * ```html
54
+ * <img src="token-icon.png" />
55
+ * ```
56
+ *
57
+ * ### Override the icon with the `iconResolver` prop
58
+ * If you already have the icon url, you can skip the network requests and pass it directly to the TokenIcon
59
+ * ```tsx
60
+ * <TokenIcon iconResolver="/usdc.png" />
61
+ * ```
62
+ *
63
+ * You can also pass in your own custom (async) function that retrieves the icon url
64
+ * ```tsx
65
+ * const getIcon = async () => {
66
+ * const icon = getIconFromCoinMarketCap(tokenAddress, etc);
67
+ * return icon;
68
+ * };
69
+ *
70
+ * <TokenIcon iconResolver={getIcon} />
71
+ * ```
72
+ *
73
+ * ### Show a loading sign while the icon is being loaded
74
+ * ```tsx
75
+ * <TokenIcon loadingComponent={<Spinner />} />
76
+ * ```
77
+ *
78
+ * ### Fallback to a dummy image if the token icon fails to resolve
79
+ * ```tsx
80
+ * <TokenIcon fallbackComponent={<img src="blank-image.png" />} />
81
+ * ```
82
+ *
83
+ * ### Usage with queryOptions
84
+ * TokenIcon uses useQuery() from tanstack query internally.
85
+ * It allows you to pass a custom queryOptions of your choice for more control of the internal fetching logic
86
+ * ```tsx
87
+ * <TokenIcon queryOptions={{ enabled: someLogic, retry: 3, }} />
88
+ * ```
89
+ *
90
+ * @component
91
+ * @token
92
+ * @beta
93
+ */
94
+ export declare function TokenIcon({ iconResolver, loadingComponent, fallbackComponent, queryOptions, ...restProps }: TokenIconProps): import("react/jsx-runtime.js").JSX.Element | null;
95
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Token/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IAC9D;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,cAAc,qDAsDhB"}
@@ -0,0 +1,140 @@
1
+ import { type UseQueryOptions } from "@tanstack/react-query";
2
+ import type React from "react";
3
+ import type { JSX } from "react";
4
+ /**
5
+ * Props for the TokenName component
6
+ * @component
7
+ * @token
8
+ */
9
+ export interface TokenNameProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
10
+ /**
11
+ * This prop can be a string or a (async) function that resolves to a string, representing the name of the token
12
+ * This is particularly useful if you already have a way to fetch the token name.
13
+ */
14
+ nameResolver?: string | (() => string) | (() => Promise<string>);
15
+ /**
16
+ * A function to format the name's display value
17
+ * Particularly useful to avoid overflowing-UI issues
18
+ *
19
+ * ```tsx
20
+ * <TokenName formatFn={(str: string) => doSomething()} />
21
+ * ```
22
+ */
23
+ formatFn?: (str: string) => string;
24
+ /**
25
+ * This component will be shown while the name of the token is being fetched
26
+ * If not passed, the component will return `null`.
27
+ *
28
+ * You can/should pass a loading sign or spinner to this prop.
29
+ * @example
30
+ * ```tsx
31
+ * <TokenName loadingComponent={<Spinner />} />
32
+ * ```
33
+ */
34
+ loadingComponent?: JSX.Element;
35
+ /**
36
+ * This component will be shown if the name fails to be retreived
37
+ * If not passed, the component will return `null`.
38
+ *
39
+ * You can/should pass a descriptive text/component to this prop, indicating that the
40
+ * name was not fetched succesfully
41
+ * @example
42
+ * ```tsx
43
+ * <TokenName fallbackComponent={"Failed to load"}
44
+ * />
45
+ * ```
46
+ */
47
+ fallbackComponent?: JSX.Element;
48
+ /**
49
+ * Optional `useQuery` params
50
+ */
51
+ queryOptions?: Omit<UseQueryOptions<string>, "queryFn" | "queryKey">;
52
+ }
53
+ /**
54
+ * This component fetches then shows the name of a token. For ERC20 tokens, it calls the `name` function in the ERC20 contract.
55
+ * It inherits all the attributes of a HTML <span> component, hence you can style it just like how you would style a normal <span>
56
+ *
57
+ *
58
+ * @example
59
+ * ### Basic usage
60
+ * ```tsx
61
+ * import { TokenProvider, TokenName } from "thirdweb/react";
62
+ * import { ethereum } from "thirdweb/chains";
63
+ *
64
+ * <TokenProvider {...props}>
65
+ * <TokenName />
66
+ * </TokenProvider>
67
+ * ```
68
+ * Result:
69
+ * ```html
70
+ * <span>Ether</span>
71
+ * ```
72
+ *
73
+ * ### Custom name resolver
74
+ * By default TokenName will call the `name` method of the token contract.
75
+ * However if you have a different way to fetch the name, you can pass the function to the `nameResolver` prop.
76
+ * Note: nameResolver should either be a string or a function (async) that returns a string.
77
+ * ```tsx
78
+ * async function fetchNameMethod() {
79
+ * // your own fetching logic
80
+ * return "the token name";
81
+ * }
82
+ *
83
+ * <TokenName nameResolver={fetchNameMethod} />
84
+ * ```
85
+ *
86
+ * Alternatively you can also pass in a string directly:
87
+ * ```tsx
88
+ * <TokenName nameResolver="USD Coin Circle" />
89
+ * ```
90
+ *
91
+ *
92
+ * ### Format the name (capitalize, truncate, etc.)
93
+ * The TokenName component accepts a `formatFn` which takes in a string and outputs a string
94
+ * The function is used to modify the name of the token
95
+ *
96
+ * ```tsx
97
+ * const concatStr = (str: string):string => str + "Token"
98
+ *
99
+ * <TokenName formatFn={concatStr} />
100
+ * ```
101
+ *
102
+ * Result:
103
+ * ```html
104
+ * <span>Ether Token</span>
105
+ * ```
106
+ *
107
+ * ### Show a loading sign when the name is being fetched
108
+ * ```tsx
109
+ * import { TokenProvider, TokenName } from "thirdweb/react";
110
+ *
111
+ * <TokenProvider address="0x...">
112
+ * <TokenName loadingComponent={<Spinner />} />
113
+ * </TokenProvider>
114
+ * ```
115
+ *
116
+ * ### Fallback to something when the name fails to resolve
117
+ * ```tsx
118
+ * <TokenProvider address="0x...">
119
+ * <TokenName fallbackComponent={"Failed to load"} />
120
+ * </TokenProvider>
121
+ * ```
122
+ *
123
+ * ### Custom query options for useQuery
124
+ * This component uses `@tanstack-query`'s useQuery internally.
125
+ * You can use the `queryOptions` prop for more fine-grained control
126
+ * ```tsx
127
+ * <TokenName
128
+ * queryOptions={{
129
+ * enabled: isEnabled,
130
+ * retry: 4,
131
+ * }}
132
+ * />
133
+ * ```
134
+ *
135
+ * @component
136
+ * @token
137
+ * @beta
138
+ */
139
+ export declare function TokenName({ nameResolver, formatFn, loadingComponent, fallbackComponent, queryOptions, ...restProps }: TokenNameProps): import("react/jsx-runtime.js").JSX.Element | null;
140
+ //# sourceMappingURL=name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Token/name.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,cAAc,qDA4ChB"}
@@ -0,0 +1,61 @@
1
+ import type { Address } from "abitype";
2
+ import type React from "react";
3
+ import type { Chain } from "../../../../../chains/types.js";
4
+ import type { ThirdwebClient } from "../../../../../client/client.js";
5
+ /**
6
+ * Props for the <TokenProvider /> component
7
+ * @component
8
+ * @token
9
+ */
10
+ export type TokenProviderProps = {
11
+ /**
12
+ * The token (ERC20) contract address
13
+ */
14
+ address: Address;
15
+ /**
16
+ * thirdweb Client
17
+ */
18
+ client: ThirdwebClient;
19
+ /**
20
+ * The chain (network) that the token is on
21
+ */
22
+ chain: Chain;
23
+ };
24
+ /**
25
+ * A React context provider component that supplies Token-related data to its child components.
26
+ *
27
+ * This component serves as a wrapper around the `TokenProviderContext.Provider` and passes
28
+ * the provided token data down to all of its child components through the context API.
29
+ *
30
+ * @example
31
+ * ### Basic usage
32
+ * ```tsx
33
+ * import { TokenProvider, TokenIcon, TokenName } from "thirdweb/react";
34
+ * import { ethereum } from "thirdweb/chains";
35
+ *
36
+ * <TokenProvider address="0x..." client={...} chain={ethereum}>
37
+ * <TokenIcon />
38
+ * <TokenName />
39
+ * </TokenProvider>
40
+ * ```
41
+ *
42
+ * ### This component also works with native token!
43
+ * ```tsx
44
+ * import { NATIVE_TOKEN_ADDRESS} from "thirdweb";
45
+ * import { ethereum } from "thirdweb/chains";
46
+ *
47
+ * <TokenProvider address={NATIVE_TOKEN_ADDRESS} chain={ethereum} client={client}>
48
+ * <TokenSymbol /> // "ETH"
49
+ * </TokenProvider>
50
+ * ```
51
+ *
52
+ * @component
53
+ * @token
54
+ * @beta
55
+ */
56
+ export declare function TokenProvider(props: React.PropsWithChildren<TokenProviderProps>): import("react/jsx-runtime.js").JSX.Element;
57
+ /**
58
+ * @internal
59
+ */
60
+ export declare function useTokenContext(): TokenProviderProps;
61
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Token/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,8CAOnD;AAED;;GAEG;AACH,wBAAgB,eAAe,uBAQ9B"}
@@ -0,0 +1,137 @@
1
+ import { type UseQueryOptions } from "@tanstack/react-query";
2
+ import type React from "react";
3
+ import type { JSX } from "react";
4
+ /**
5
+ * Props for the TokenSymbol component
6
+ * @component
7
+ * @token
8
+ */
9
+ export interface TokenSymbolProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
10
+ /**
11
+ * This prop can be a string or a (async) function that resolves to a string, representing the symbol of the token
12
+ * This is particularly useful if you already have a way to fetch the token symbol.
13
+ */
14
+ symbolResolver?: string | (() => string) | (() => Promise<string>);
15
+ /**
16
+ * A function to format the symbol's value
17
+ * Particularly useful to avoid overflowing-UI issues
18
+ *
19
+ * ```tsx
20
+ * <TokenSymbol formatFn={(str: string) => doSomething()} />
21
+ * ```
22
+ */
23
+ formatFn?: (str: string) => string;
24
+ /**
25
+ * This component will be shown while the symbol of the token is being fetched
26
+ * If not passed, the component will return `null`.
27
+ *
28
+ * You can/should pass a loading sign or spinner to this prop.
29
+ * @example
30
+ * ```tsx
31
+ * <TokenSymbol loadingComponent={<Spinner />} />
32
+ * ```
33
+ */
34
+ loadingComponent?: JSX.Element;
35
+ /**
36
+ * This component will be shown if the symbol fails to be retreived
37
+ * If not passed, the component will return `null`.
38
+ *
39
+ * You can/should pass a descriptive text/component to this prop, indicating that the
40
+ * symbol was not fetched succesfully
41
+ * @example
42
+ * ```tsx
43
+ * <TokenSymbol fallbackComponent={"Failed to load"}
44
+ * />
45
+ * ```
46
+ */
47
+ fallbackComponent?: JSX.Element;
48
+ /**
49
+ * Optional `useQuery` params
50
+ */
51
+ queryOptions?: Omit<UseQueryOptions<string>, "queryFn" | "queryKey">;
52
+ }
53
+ /**
54
+ * This component fetches then shows the symbol of a token. For ERC20 tokens, it calls the `symbol` function in the ERC20 contract.
55
+ * It inherits all the attributes of a HTML <span> component, hence you can style it just like how you would style a normal <span>
56
+ *
57
+ *
58
+ * @example
59
+ * ### Basic usage
60
+ * ```tsx
61
+ * import { TokenProvider, TokenSymbol } from "thirdweb/react";
62
+ * import { ethereum } from "thirdweb/chains";
63
+ *
64
+ * <TokenProvider {...props}>
65
+ * <TokenSymbol />
66
+ * </TokenProvider>
67
+ * ```
68
+ * Result:
69
+ * ```html
70
+ * <span>ETH</span>
71
+ * ```
72
+ *
73
+ * ### Custom symbol resolver
74
+ * By default, TokenSymbol calls the `symbol` function of your contract,
75
+ * however, if your token as an unconventional way to fetch the symbol, you can pass the custom logic to the `symbolResolver` prop.
76
+ * It can either be a string or a function (async) that returns or resolves to a string.
77
+ * ```tsx
78
+ * async function getSymbol() {
79
+ * // your own fetching logic
80
+ * return "the symbol";
81
+ * }
82
+ *
83
+ * <TokenSymbol symbolResolver={getSymbol} />
84
+ * ```
85
+ * Alternatively, you can pass in a string directly:
86
+ * ```tsx
87
+ * <TokenSymbol symbolResolver="USDC.e" />
88
+ * ```
89
+ *
90
+ * ### Format the symbol (capitalize, truncate, etc.)
91
+ * The TokenSymbol component accepts a `formatFn` which takes in a string and outputs a string
92
+ * The function is used to modify the symbol of the token
93
+ *
94
+ * ```tsx
95
+ * const concatStr = (str: string):string => str + "Token"
96
+ *
97
+ * <TokenSymbol formatFn={concatStr} />
98
+ * ```
99
+ *
100
+ * Result:
101
+ * ```html
102
+ * <span>Ether Token</span>
103
+ * ```
104
+ *
105
+ * ### Show a loading sign when the symbol is being fetched
106
+ * ```tsx
107
+ * import { TokenProvider, TokenSymbol } from "thirdweb/react";
108
+ *
109
+ * <TokenProvider address="0x...">
110
+ * <TokenSymbol loadingComponent={<Spinner />} />
111
+ * </TokenProvider>
112
+ * ```
113
+ *
114
+ * ### Fallback to something when the symbol fails to resolve
115
+ * ```tsx
116
+ * <TokenProvider address="0x...">
117
+ * <TokenSymbol fallbackComponent={"Failed to load"} />
118
+ * </TokenProvider>
119
+ * ```
120
+ *
121
+ * ### Custom query options for useQuery
122
+ * This component uses `@tanstack-query`'s useQuery internally.
123
+ * You can use the `queryOptions` prop for more fine-grained control
124
+ * ```tsx
125
+ * <TokenSymbol queryOptions={{
126
+ * enabled: isEnabled,
127
+ * retry: 4,
128
+ * }}
129
+ * />
130
+ * ```
131
+ *
132
+ * @component
133
+ * @token
134
+ * @beta
135
+ */
136
+ export declare function TokenSymbol({ symbolResolver, formatFn, loadingComponent, fallbackComponent, queryOptions, ...restProps }: TokenSymbolProps): import("react/jsx-runtime.js").JSX.Element | null;
137
+ //# sourceMappingURL=symbol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Token/symbol.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,gBAAgB,qDA+ClB"}
@@ -60,6 +60,7 @@ export type BuyDirectListingButtonProps = Omit<TransactionButtonProps, "transact
60
60
  * For error handling & callbacks on transaction-sent and transaction-confirmed,
61
61
  * please refer to the TransactionButton docs.
62
62
  * @component
63
+ * @transaction
63
64
  */
64
65
  export declare function BuyDirectListingButton(props: BuyDirectListingButtonProps): import("react/jsx-runtime.js").JSX.Element;
65
66
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAKzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAKhH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,sBAAsB,EACtB,aAAa,CACd,GAAG;IACF;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,8CAuGxE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAKzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAKhH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,sBAAsB,EACtB,aAAa,CACd,GAAG;IACF;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,8CAuGxE"}
@@ -87,6 +87,7 @@ import type { ClaimButtonProps, Erc20ClaimParams, Erc721ClaimParams, Erc1155Clai
87
87
  *
88
88
  * For error handling & callbacks on transaction-sent and transaction-confirmed,
89
89
  * please refer to the TransactionButton docs.
90
+ * @transaction
90
91
  */
91
92
  export declare function ClaimButton(props: ClaimButtonProps): import("react/jsx-runtime.js").JSX.Element;
92
93
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAEhG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAK9E,OAAO,KAAK,EACV,gBAAgB,EAEhB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAqDlD;AAsDD;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,iBAAiB,CAAC;CAChC,8JAWA;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,kBAAkB,CAAC;CACjC,8JAYA;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,gBAAgB,CAAC;CAC/B,8JAwBA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAEhG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAK9E,OAAO,KAAK,EACV,gBAAgB,EAEhB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,8CAqDlD;AAsDD;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,iBAAiB,CAAC;CAChC,8JAWA;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,kBAAkB,CAAC;CACjC,8JAYA;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,gBAAgB,CAAC;CAC/B,8JAwBA"}
@@ -35,6 +35,7 @@ export type CreateDirectListingButtonProps = Omit<TransactionButtonProps, "trans
35
35
  * For error handling & callbacks on transaction-sent and transaction-confirmed,
36
36
  * please refer to the TransactionButton docs.
37
37
  * @component
38
+ * @transaction
38
39
  */
39
40
  export declare function CreateDirectListingButton(props: CreateDirectListingButtonProps): import("react/jsx-runtime.js").JSX.Element;
40
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIzE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,iFAAiF,CAAC;AAGzF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAKhH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,sBAAsB,EACtB,aAAa,CACd,GACC,mBAAmB,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,8BAA8B,8CAyHtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIzE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,iFAAiF,CAAC;AAGzF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAKhH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,sBAAsB,EACtB,aAAa,CACd,GACC,mBAAmB,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,8BAA8B,8CAyHtC"}
@@ -5,7 +5,7 @@ export type UnpinOptions = {
5
5
  };
6
6
  /**
7
7
  * Unpins a file from IPFS.
8
- * @note For security purposes, this method requires a secret key to be set in the ThirdwebClient instance.
8
+ * For security purposes, this method requires a secret key to be set in the ThirdwebClient instance.
9
9
  * @param options - The options for unpinning the file.
10
10
  * @param options.client - The Thirdweb client instance.
11
11
  * @param options.cid - The content identifier (CID) of the file to unpin.
@@ -30,6 +30,7 @@ type UploadReturnType<TFiles extends UploadableFile[]> = TFiles extends {
30
30
  * },
31
31
  * ],
32
32
  * });
33
+ * ```
33
34
  *
34
35
  * ### Uploading files
35
36
  *
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/storage/upload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAU1D,OAAO,KAAK,EAEV,aAAa,IAAI,qBAAqB,EACtC,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,cAAc,EAAE,IACvD,qBAAqB,CAAC,MAAM,CAAC,GAAG;IAC9B,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ,KAAK,gBAAgB,CAAC,MAAM,SAAS,cAAc,EAAE,IAAI,MAAM,SAAS;IACtE,MAAM,EAAE,CAAC,CAAC;CACX,GACG,IAAI,GACJ,MAAM,SAAS;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,GAC1B,MAAM,GACN,MAAM,EAAE,CAAC;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,MAAM,CAAC,KAAK,CAAC,MAAM,SAAS,cAAc,EAAE,EAChE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAC7B,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAgEnC"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/storage/upload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAU1D,OAAO,KAAK,EAEV,aAAa,IAAI,qBAAqB,EACtC,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,cAAc,EAAE,IACvD,qBAAqB,CAAC,MAAM,CAAC,GAAG;IAC9B,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ,KAAK,gBAAgB,CAAC,MAAM,SAAS,cAAc,EAAE,IAAI,MAAM,SAAS;IACtE,MAAM,EAAE,CAAC,CAAC;CACX,GACG,IAAI,GACJ,MAAM,SAAS;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,GAC1B,MAAM,GACN,MAAM,EAAE,CAAC;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,MAAM,CAAC,KAAK,CAAC,MAAM,SAAS,cAAc,EAAE,EAChE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAC7B,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAgEnC"}
@@ -14,7 +14,7 @@ export type ToSerializableTransactionOptions = {
14
14
  * @param options - The transaction and additional options for conversion
15
15
  * @returns A serializable transaction for inspection or submission to an account.
16
16
  *
17
- * @note For easier transaction sending, {@see sendTransaction}
17
+ * For easier transaction sending, {@see sendTransaction}
18
18
  * @example
19
19
  * ```ts
20
20
  * import { prepareTransaction, toSerializableTransaction } from "thirdweb";