thirdweb 5.47.1 → 5.48.0-nightly-cbd6fd87d0120c6013ef354fe8ff22293e4c08e2-20240820000346

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 (256) hide show
  1. package/dist/cjs/exports/utils.js +7 -1
  2. package/dist/cjs/exports/utils.js.map +1 -1
  3. package/dist/cjs/extensions/erc721/read/getOwnedNFTs.js +1 -0
  4. package/dist/cjs/extensions/erc721/read/getOwnedNFTs.js.map +1 -1
  5. package/dist/cjs/react/core/hooks/transaction/transaction-button-utils.js.map +1 -1
  6. package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js +10 -1
  7. package/dist/cjs/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  8. package/dist/cjs/react/core/hooks/wallets/useAddConnectedWallet.js +23 -0
  9. package/dist/cjs/react/core/hooks/wallets/useAddConnectedWallet.js.map +1 -0
  10. package/dist/cjs/react/native/ui/connect/ConnectModal.js +1 -0
  11. package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
  12. package/dist/cjs/react/native/ui/transaction/TransactionButton.js +1 -1
  13. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +1 -1
  14. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  15. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +3 -1
  16. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  17. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +1 -1
  18. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  19. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +8 -6
  20. package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  21. package/dist/cjs/react/web/ui/ConnectWallet/locale/en.js +1 -1
  22. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +2 -2
  23. package/dist/cjs/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -1
  24. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +1 -1
  25. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
  26. package/dist/cjs/react/web/ui/TransactionButton/index.js +1 -1
  27. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +4 -0
  28. package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  29. package/dist/cjs/react/web/wallets/in-app/WalletAuth.js +70 -0
  30. package/dist/cjs/react/web/wallets/in-app/WalletAuth.js.map +1 -0
  31. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +9 -1
  32. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  33. package/dist/cjs/react/web/wallets/shared/ErrorState.js +14 -0
  34. package/dist/cjs/react/web/wallets/shared/ErrorState.js.map +1 -0
  35. package/dist/cjs/react/web/wallets/shared/LoadingState.js +19 -0
  36. package/dist/cjs/react/web/wallets/shared/LoadingState.js.map +1 -0
  37. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +6 -20
  38. package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  39. package/dist/cjs/react/web/wallets/shared/locale/de.js +1 -0
  40. package/dist/cjs/react/web/wallets/shared/locale/de.js.map +1 -1
  41. package/dist/cjs/react/web/wallets/shared/locale/en.js +2 -1
  42. package/dist/cjs/react/web/wallets/shared/locale/en.js.map +1 -1
  43. package/dist/cjs/react/web/wallets/shared/locale/es.js +1 -0
  44. package/dist/cjs/react/web/wallets/shared/locale/es.js.map +1 -1
  45. package/dist/cjs/react/web/wallets/shared/locale/fr.js +1 -0
  46. package/dist/cjs/react/web/wallets/shared/locale/fr.js.map +1 -1
  47. package/dist/cjs/react/web/wallets/shared/locale/ja.js +1 -0
  48. package/dist/cjs/react/web/wallets/shared/locale/ja.js.map +1 -1
  49. package/dist/cjs/react/web/wallets/shared/locale/kr.js +1 -0
  50. package/dist/cjs/react/web/wallets/shared/locale/kr.js.map +1 -1
  51. package/dist/cjs/react/web/wallets/shared/locale/tl.js +1 -0
  52. package/dist/cjs/react/web/wallets/shared/locale/tl.js.map +1 -1
  53. package/dist/cjs/react/web/wallets/shared/locale/vi.js +1 -0
  54. package/dist/cjs/react/web/wallets/shared/locale/vi.js.map +1 -1
  55. package/dist/cjs/transaction/actions/gasless/providers/biconomy.js.map +1 -1
  56. package/dist/cjs/transaction/actions/gasless/providers/engine.js.map +1 -1
  57. package/dist/cjs/transaction/actions/gasless/providers/openzeppelin.js.map +1 -1
  58. package/dist/cjs/transaction/prepare-contract-call.js +1 -1
  59. package/dist/cjs/transaction/read-contract.js +21 -2
  60. package/dist/cjs/transaction/read-contract.js.map +1 -1
  61. package/dist/cjs/utils/bigint.js +2 -0
  62. package/dist/cjs/utils/bigint.js.map +1 -1
  63. package/dist/cjs/version.js +1 -1
  64. package/dist/cjs/version.js.map +1 -1
  65. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js +1 -1
  66. package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  67. package/dist/cjs/wallets/manager/index.js +0 -1
  68. package/dist/cjs/wallets/manager/index.js.map +1 -1
  69. package/dist/cjs/wallets/types.js +0 -1
  70. package/dist/cjs/wallets/types.js.map +1 -1
  71. package/dist/esm/exports/utils.js +4 -0
  72. package/dist/esm/exports/utils.js.map +1 -1
  73. package/dist/esm/extensions/erc721/read/getOwnedNFTs.js +1 -0
  74. package/dist/esm/extensions/erc721/read/getOwnedNFTs.js.map +1 -1
  75. package/dist/esm/react/core/hooks/transaction/transaction-button-utils.js.map +1 -1
  76. package/dist/esm/react/core/hooks/transaction/useSendTransaction.js +10 -1
  77. package/dist/esm/react/core/hooks/transaction/useSendTransaction.js.map +1 -1
  78. package/dist/esm/react/core/hooks/wallets/useAddConnectedWallet.js +20 -0
  79. package/dist/esm/react/core/hooks/wallets/useAddConnectedWallet.js.map +1 -0
  80. package/dist/esm/react/native/ui/connect/ConnectModal.js +1 -1
  81. package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
  82. package/dist/esm/react/native/ui/transaction/TransactionButton.js +1 -1
  83. package/dist/esm/react/web/ui/ConnectWallet/Details.js +1 -1
  84. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  85. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +3 -1
  86. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
  87. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +1 -1
  88. package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
  89. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +8 -6
  90. package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
  91. package/dist/esm/react/web/ui/ConnectWallet/locale/en.js +1 -1
  92. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js +3 -3
  93. package/dist/esm/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.js.map +1 -1
  94. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js +1 -1
  95. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkProfileScreen.js.map +1 -1
  96. package/dist/esm/react/web/ui/TransactionButton/index.js +1 -1
  97. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +4 -0
  98. package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
  99. package/dist/esm/react/web/wallets/in-app/WalletAuth.js +67 -0
  100. package/dist/esm/react/web/wallets/in-app/WalletAuth.js.map +1 -0
  101. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +10 -2
  102. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  103. package/dist/esm/react/web/wallets/shared/ErrorState.js +11 -0
  104. package/dist/esm/react/web/wallets/shared/ErrorState.js.map +1 -0
  105. package/dist/esm/react/web/wallets/shared/LoadingState.js +16 -0
  106. package/dist/esm/react/web/wallets/shared/LoadingState.js.map +1 -0
  107. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +4 -18
  108. package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
  109. package/dist/esm/react/web/wallets/shared/locale/de.js +1 -0
  110. package/dist/esm/react/web/wallets/shared/locale/de.js.map +1 -1
  111. package/dist/esm/react/web/wallets/shared/locale/en.js +2 -1
  112. package/dist/esm/react/web/wallets/shared/locale/en.js.map +1 -1
  113. package/dist/esm/react/web/wallets/shared/locale/es.js +1 -0
  114. package/dist/esm/react/web/wallets/shared/locale/es.js.map +1 -1
  115. package/dist/esm/react/web/wallets/shared/locale/fr.js +1 -0
  116. package/dist/esm/react/web/wallets/shared/locale/fr.js.map +1 -1
  117. package/dist/esm/react/web/wallets/shared/locale/ja.js +1 -0
  118. package/dist/esm/react/web/wallets/shared/locale/ja.js.map +1 -1
  119. package/dist/esm/react/web/wallets/shared/locale/kr.js +1 -0
  120. package/dist/esm/react/web/wallets/shared/locale/kr.js.map +1 -1
  121. package/dist/esm/react/web/wallets/shared/locale/tl.js +1 -0
  122. package/dist/esm/react/web/wallets/shared/locale/tl.js.map +1 -1
  123. package/dist/esm/react/web/wallets/shared/locale/vi.js +1 -0
  124. package/dist/esm/react/web/wallets/shared/locale/vi.js.map +1 -1
  125. package/dist/esm/transaction/actions/gasless/providers/biconomy.js.map +1 -1
  126. package/dist/esm/transaction/actions/gasless/providers/engine.js.map +1 -1
  127. package/dist/esm/transaction/actions/gasless/providers/openzeppelin.js.map +1 -1
  128. package/dist/esm/transaction/prepare-contract-call.js +1 -1
  129. package/dist/esm/transaction/read-contract.js +21 -2
  130. package/dist/esm/transaction/read-contract.js.map +1 -1
  131. package/dist/esm/utils/bigint.js +2 -0
  132. package/dist/esm/utils/bigint.js.map +1 -1
  133. package/dist/esm/version.js +1 -1
  134. package/dist/esm/version.js.map +1 -1
  135. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js +1 -1
  136. package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
  137. package/dist/esm/wallets/manager/index.js +0 -1
  138. package/dist/esm/wallets/manager/index.js.map +1 -1
  139. package/dist/esm/wallets/types.js +0 -1
  140. package/dist/esm/wallets/types.js.map +1 -1
  141. package/dist/types/exports/transaction.d.ts +7 -0
  142. package/dist/types/exports/transaction.d.ts.map +1 -1
  143. package/dist/types/exports/utils.d.ts +1 -0
  144. package/dist/types/exports/utils.d.ts.map +1 -1
  145. package/dist/types/extensions/erc721/read/getOwnedNFTs.d.ts +1 -0
  146. package/dist/types/extensions/erc721/read/getOwnedNFTs.d.ts.map +1 -1
  147. package/dist/types/react/core/hooks/transaction/transaction-button-utils.d.ts +1 -0
  148. package/dist/types/react/core/hooks/transaction/transaction-button-utils.d.ts.map +1 -1
  149. package/dist/types/react/core/hooks/transaction/useSendTransaction.d.ts.map +1 -1
  150. package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts +16 -0
  151. package/dist/types/react/core/hooks/wallets/useAddConnectedWallet.d.ts.map +1 -0
  152. package/dist/types/react/native/ui/connect/ConnectModal.d.ts +3 -0
  153. package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
  154. package/dist/types/react/native/ui/transaction/TransactionButton.d.ts +1 -1
  155. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  156. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts +1 -0
  157. package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
  158. package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
  159. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +1 -0
  160. package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
  161. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts +3 -0
  162. package/dist/types/react/web/ui/ConnectWallet/screens/LinkProfileScreen.d.ts.map +1 -1
  163. package/dist/types/react/web/ui/TransactionButton/index.d.ts +1 -1
  164. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +3 -0
  165. package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
  166. package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts +24 -0
  167. package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -0
  168. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +1 -0
  169. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  170. package/dist/types/react/web/wallets/shared/ErrorState.d.ts +5 -0
  171. package/dist/types/react/web/wallets/shared/ErrorState.d.ts.map +1 -0
  172. package/dist/types/react/web/wallets/shared/LoadingState.d.ts +7 -0
  173. package/dist/types/react/web/wallets/shared/LoadingState.d.ts.map +1 -0
  174. package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
  175. package/dist/types/react/web/wallets/shared/locale/de.d.ts +1 -0
  176. package/dist/types/react/web/wallets/shared/locale/de.d.ts.map +1 -1
  177. package/dist/types/react/web/wallets/shared/locale/en.d.ts +1 -0
  178. package/dist/types/react/web/wallets/shared/locale/en.d.ts.map +1 -1
  179. package/dist/types/react/web/wallets/shared/locale/es.d.ts +1 -0
  180. package/dist/types/react/web/wallets/shared/locale/es.d.ts.map +1 -1
  181. package/dist/types/react/web/wallets/shared/locale/fr.d.ts +1 -0
  182. package/dist/types/react/web/wallets/shared/locale/fr.d.ts.map +1 -1
  183. package/dist/types/react/web/wallets/shared/locale/ja.d.ts +1 -0
  184. package/dist/types/react/web/wallets/shared/locale/ja.d.ts.map +1 -1
  185. package/dist/types/react/web/wallets/shared/locale/kr.d.ts +1 -0
  186. package/dist/types/react/web/wallets/shared/locale/kr.d.ts.map +1 -1
  187. package/dist/types/react/web/wallets/shared/locale/tl.d.ts +1 -0
  188. package/dist/types/react/web/wallets/shared/locale/tl.d.ts.map +1 -1
  189. package/dist/types/react/web/wallets/shared/locale/types.d.ts +1 -0
  190. package/dist/types/react/web/wallets/shared/locale/types.d.ts.map +1 -1
  191. package/dist/types/react/web/wallets/shared/locale/vi.d.ts +1 -0
  192. package/dist/types/react/web/wallets/shared/locale/vi.d.ts.map +1 -1
  193. package/dist/types/transaction/actions/gasless/providers/biconomy.d.ts +3 -0
  194. package/dist/types/transaction/actions/gasless/providers/biconomy.d.ts.map +1 -1
  195. package/dist/types/transaction/actions/gasless/providers/engine.d.ts +3 -0
  196. package/dist/types/transaction/actions/gasless/providers/engine.d.ts.map +1 -1
  197. package/dist/types/transaction/actions/gasless/providers/openzeppelin.d.ts +3 -0
  198. package/dist/types/transaction/actions/gasless/providers/openzeppelin.d.ts.map +1 -1
  199. package/dist/types/transaction/actions/gasless/types.d.ts +12 -0
  200. package/dist/types/transaction/actions/gasless/types.d.ts.map +1 -1
  201. package/dist/types/transaction/prepare-contract-call.d.ts +1 -1
  202. package/dist/types/transaction/read-contract.d.ts +21 -2
  203. package/dist/types/transaction/read-contract.d.ts.map +1 -1
  204. package/dist/types/utils/bigint.d.ts +2 -0
  205. package/dist/types/utils/bigint.d.ts.map +1 -1
  206. package/dist/types/version.d.ts +1 -1
  207. package/dist/types/version.d.ts.map +1 -1
  208. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +2 -2
  209. package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts.map +1 -1
  210. package/dist/types/wallets/manager/index.d.ts.map +1 -1
  211. package/dist/types/wallets/types.d.ts +1 -1
  212. package/dist/types/wallets/types.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/src/exports/transaction.ts +8 -0
  215. package/src/exports/utils.ts +5 -0
  216. package/src/extensions/erc721/read/getOwnedNFTs.ts +1 -0
  217. package/src/extensions/lens/read/resolveAddress.test.ts +1 -1
  218. package/src/react/core/hooks/transaction/transaction-button-utils.ts +1 -0
  219. package/src/react/core/hooks/transaction/useSendTransaction.ts +13 -1
  220. package/src/react/core/hooks/wallets/useAddConnectedWallet.ts +20 -0
  221. package/src/react/native/ui/connect/ConnectModal.tsx +1 -1
  222. package/src/react/native/ui/transaction/TransactionButton.tsx +1 -1
  223. package/src/react/web/ui/ConnectWallet/Details.tsx +1 -0
  224. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +4 -1
  225. package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +1 -0
  226. package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +10 -1
  227. package/src/react/web/ui/ConnectWallet/locale/en.ts +1 -1
  228. package/src/react/web/ui/ConnectWallet/screens/Details/WalletManagerScreen.tsx +3 -3
  229. package/src/react/web/ui/ConnectWallet/screens/LinkProfileScreen.tsx +2 -0
  230. package/src/react/web/ui/TransactionButton/index.tsx +1 -1
  231. package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +18 -0
  232. package/src/react/web/wallets/in-app/WalletAuth.tsx +166 -0
  233. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +22 -0
  234. package/src/react/web/wallets/shared/ErrorState.tsx +29 -0
  235. package/src/react/web/wallets/shared/LoadingState.tsx +47 -0
  236. package/src/react/web/wallets/shared/PassKeyLogin.tsx +4 -67
  237. package/src/react/web/wallets/shared/locale/de.ts +1 -0
  238. package/src/react/web/wallets/shared/locale/en.ts +2 -1
  239. package/src/react/web/wallets/shared/locale/es.ts +1 -0
  240. package/src/react/web/wallets/shared/locale/fr.ts +1 -0
  241. package/src/react/web/wallets/shared/locale/ja.ts +1 -0
  242. package/src/react/web/wallets/shared/locale/kr.ts +1 -0
  243. package/src/react/web/wallets/shared/locale/tl.ts +1 -0
  244. package/src/react/web/wallets/shared/locale/types.ts +1 -0
  245. package/src/react/web/wallets/shared/locale/vi.ts +1 -0
  246. package/src/transaction/actions/gasless/providers/biconomy.ts +3 -0
  247. package/src/transaction/actions/gasless/providers/engine.ts +3 -0
  248. package/src/transaction/actions/gasless/providers/openzeppelin.ts +3 -0
  249. package/src/transaction/actions/gasless/types.ts +12 -0
  250. package/src/transaction/prepare-contract-call.ts +1 -1
  251. package/src/transaction/read-contract.ts +21 -2
  252. package/src/utils/bigint.ts +2 -0
  253. package/src/version.ts +1 -1
  254. package/src/wallets/in-app/core/authentication/getLoginPath.ts +4 -4
  255. package/src/wallets/manager/index.ts +0 -2
  256. package/src/wallets/types.ts +0 -1
@@ -7,15 +7,14 @@ import { isEcosystemWallet } from "../../../../wallets/ecosystem/is-ecosystem-wa
7
7
  import { hasStoredPasskey } from "../../../../wallets/in-app/web/lib/auth/passkeys.js";
8
8
  import { iconSize } from "../../../core/design-system/index.js";
9
9
  import { setLastAuthProvider } from "../../../core/utils/storage.js";
10
- import { AccentFailIcon } from "../../ui/ConnectWallet/icons/AccentFailIcon.js";
11
10
  import { FingerPrintIcon } from "../../ui/ConnectWallet/icons/FingerPrintIcon.js";
12
11
  import type { ConnectLocale } from "../../ui/ConnectWallet/locale/types.js";
13
12
  import { Spacer } from "../../ui/components/Spacer.js";
14
- import { Spinner } from "../../ui/components/Spinner.js";
15
13
  import { Container, ModalHeader } from "../../ui/components/basic.js";
16
14
  import { Button } from "../../ui/components/buttons.js";
17
- import { Text } from "../../ui/components/text.js";
15
+ import { ErrorState } from "./ErrorState.js";
18
16
  import { LoadingScreen } from "./LoadingScreen.js";
17
+ import { LoadingState } from "./LoadingState.js";
19
18
 
20
19
  // is passkey stored?
21
20
  // - login
@@ -179,6 +178,7 @@ function LoginScreen(props: {
179
178
  <LoadingState
180
179
  title="Requesting Passkey"
181
180
  subtitle="A pop-up prompt will appear to sign-in and verify your passkey"
181
+ icon={<FingerPrintIcon size={iconSize.xxl} />}
182
182
  />
183
183
  );
184
184
  }
@@ -252,6 +252,7 @@ function SignupScreen(props: {
252
252
  <LoadingState
253
253
  title="Creating Passkey"
254
254
  subtitle="A pop-up prompt will appear to sign-in and verify your passkey"
255
+ icon={<FingerPrintIcon size={iconSize.xxl} />}
255
256
  />
256
257
  );
257
258
  }
@@ -297,67 +298,3 @@ function SelectLoginMethod(props: {
297
298
  </Container>
298
299
  );
299
300
  }
300
-
301
- function ErrorState(props: {
302
- onTryAgain: () => void;
303
- title: string;
304
- }) {
305
- return (
306
- <Container animate="fadein">
307
- <Spacer y="xxl" />
308
- <Container flex="row" center="x">
309
- <AccentFailIcon size={iconSize["3xl"]} />
310
- </Container>
311
- <Spacer y="lg" />
312
- <Text center color="primaryText" size="md">
313
- {props.title}
314
- </Text>
315
- <Spacer y="xl" />
316
- <Spacer y="xxl" />
317
- <Button variant="accent" fullWidth onClick={props.onTryAgain}>
318
- Try Again
319
- </Button>
320
- </Container>
321
- );
322
- }
323
-
324
- function LoadingState(props: {
325
- title: string;
326
- subtitle: string;
327
- }) {
328
- return (
329
- <Container animate="fadein">
330
- <Spacer y="xxl" />
331
- <Container
332
- flex="row"
333
- center="x"
334
- style={{
335
- position: "relative",
336
- }}
337
- >
338
- <Spinner size="4xl" color="accentText" />
339
- <Container
340
- color="accentText"
341
- style={{
342
- position: "absolute",
343
- top: "50%",
344
- left: "50%",
345
- transform: "translate(-50%, -50%)",
346
- }}
347
- >
348
- <FingerPrintIcon size={iconSize.xxl} />
349
- </Container>
350
- </Container>
351
- <Spacer y="xl" />
352
- <Text center color="primaryText" size="lg">
353
- {props.title}
354
- </Text>
355
- <Spacer y="md" />
356
- <Text multiline center>
357
- {props.subtitle}
358
- </Text>
359
- <Spacer y="xxl" />
360
- <Spacer y="xxl" />
361
- </Container>
362
- );
363
- }
@@ -56,4 +56,5 @@ export default {
56
56
  signInWithPhone: "Mit Telefonnummer anmelden",
57
57
  phoneRequired: "Telefonnummer ist erforderlich",
58
58
  passkey: "Passkey",
59
+ linkWallet: "Link a Wallet",
59
60
  } satisfies InAppWalletLocale;
@@ -53,6 +53,7 @@ export default {
53
53
  invalidPhone: "Invalid phone number",
54
54
  phonePlaceholder: "Phone number",
55
55
  signInWithPhone: "Sign in with phone number",
56
- phoneRequired: "phone number is required",
56
+ phoneRequired: "Phone number is required",
57
57
  passkey: "Passkey",
58
+ linkWallet: "Link a Wallet",
58
59
  } satisfies InAppWalletLocale;
@@ -55,4 +55,5 @@ export default {
55
55
  phoneRequired: "Se requiere número de teléfono",
56
56
  signInWithEmail: "Iniciar sesión con correo electrónico",
57
57
  passkey: "Clave de acceso",
58
+ linkWallet: "Link a Wallet",
58
59
  } satisfies InAppWalletLocale;
@@ -56,4 +56,5 @@ export default {
56
56
  signInWithPhone: "Se connecter avec le numéro de téléphone",
57
57
  phoneRequired: "Le numéro de téléphone est requis",
58
58
  passkey: "Passkey",
59
+ linkWallet: "Link a Wallet",
59
60
  } satisfies InAppWalletLocale;
@@ -54,4 +54,5 @@ export default {
54
54
  signInWithPhone: "電話番号でサインイン",
55
55
  phoneRequired: "電話番号は必須です",
56
56
  passkey: "パスキー",
57
+ linkWallet: "Link a Wallet",
57
58
  } satisfies InAppWalletLocale;
@@ -52,4 +52,5 @@ export default {
52
52
  signInWithPhone: "전화번호로 로그인",
53
53
  phoneRequired: "전화번호가 필요합니다",
54
54
  passkey: "비밀번호",
55
+ linkWallet: "Link a Wallet",
55
56
  } satisfies InAppWalletLocale;
@@ -55,4 +55,5 @@ export default {
55
55
  signInWithPhone: "Mag-login gamit ang numero ng telepono",
56
56
  phoneRequired: "Kinakailangan ang numero ng telepono",
57
57
  passkey: "Passkey",
58
+ linkWallet: "Link a Wallet",
58
59
  } satisfies InAppWalletLocale;
@@ -50,4 +50,5 @@ export type InAppWalletLocale = {
50
50
  submitEmail: string;
51
51
  maxAccountsExceeded: string;
52
52
  passkey: string;
53
+ linkWallet: string;
53
54
  };
@@ -55,4 +55,5 @@ export default {
55
55
  signInWithPhone: "Đăng nhập bằng số điện thoại",
56
56
  phoneRequired: "Vui lòng nhập số điện thoại",
57
57
  passkey: "Passkey",
58
+ linkWallet: "Link a Wallet",
58
59
  } satisfies InAppWalletLocale;
@@ -10,6 +10,9 @@ import type { PreparedTransaction } from "../../../prepare-transaction.js";
10
10
  import { readContract } from "../../../read-contract.js";
11
11
  import type { WaitForReceiptOptions } from "../../wait-for-tx-receipt.js";
12
12
 
13
+ /**
14
+ * @transaction
15
+ */
13
16
  export type BiconomyOptions = {
14
17
  provider: "biconomy";
15
18
  // you can find the correct forwarder for your network here: https://docs-gasless.biconomy.io/misc/contract-addresses
@@ -10,6 +10,9 @@ import {
10
10
  waitForReceipt,
11
11
  } from "../../wait-for-tx-receipt.js";
12
12
 
13
+ /**
14
+ * @transaction
15
+ */
13
16
  export type EngineOptions = {
14
17
  provider: "engine";
15
18
  relayerUrl: string;
@@ -8,6 +8,9 @@ import type { PreparedTransaction } from "../../../prepare-transaction.js";
8
8
  import { readContract } from "../../../read-contract.js";
9
9
  import type { WaitForReceiptOptions } from "../../wait-for-tx-receipt.js";
10
10
 
11
+ /**
12
+ * @transaction
13
+ */
11
14
  export type OpenZeppelinOptions = {
12
15
  provider: "openzeppelin";
13
16
  relayerUrl: string;
@@ -2,6 +2,18 @@ import type { BiconomyOptions } from "./providers/biconomy.js";
2
2
  import type { EngineOptions } from "./providers/engine.js";
3
3
  import type { OpenZeppelinOptions } from "./providers/openzeppelin.js";
4
4
 
5
+ /**
6
+ * Gasless configs for sending gasless transactions.
7
+ * This config is used in:
8
+ * - [`TransactionButton`](https://portal.thirdweb.com/references/typescript/v5/TransactionButton)
9
+ * - [`sendTransaction`](https://portal.thirdweb.com/references/typescript/v5/sendTransaction)
10
+ * - [`useSendTransaction`](https://portal.thirdweb.com/references/typescript/v5/useSendTransaction)
11
+ * - [`sendAndConfirmTransaction`](https://portal.thirdweb.com/references/typescript/v5/sendAndConfirmTransaction)
12
+ * - [`useSendAndConfirmTransaction`](https://portal.thirdweb.com/references/typescript/v5/useSendAndConfirmTransaction)
13
+ *
14
+ * Please refer to the docs of those components above for more info.
15
+ * @transaction
16
+ */
5
17
  export type GaslessOptions =
6
18
  | EngineOptions
7
19
  | OpenZeppelinOptions
@@ -113,7 +113,7 @@ export type PrepareContractCallOptions<
113
113
  * });
114
114
  * ```
115
115
  *
116
- * ### Usage with a the ABI defined on the contract:
116
+ * ### Usage with the ABI defined on the contract:
117
117
  *
118
118
  * ```ts
119
119
  * import { getContract, prepareContractCall } from "thirdweb";
@@ -70,7 +70,7 @@ export type ReadContractOptions<
70
70
  >;
71
71
 
72
72
  /**
73
- * Reads state from a deployed smart contract.
73
+ * ### Reads state from a deployed smart contract.
74
74
  *
75
75
  * You can use raw read calls or read [extensions](https://portal.thirdweb.com/typescript/v5/extensions/use) to read from a contract.
76
76
  *
@@ -111,7 +111,26 @@ export type ReadContractOptions<
111
111
  *
112
112
  * const { data, isLoading } = useReadContract({
113
113
  * contract,
114
- * method: "function tokenURI(uint256 tokenId) returns (string)"});
114
+ * method: "function tokenURI(uint256 tokenId) returns (string)"}),
115
+ * params: [1n],
116
+ * });
117
+ * ```
118
+ *
119
+ * ### Using `resolveMethod`
120
+ * ```ts
121
+ * import { getContract, resolveMethod } from "thirdweb";
122
+ * import { sepolia } from "thirdweb/chains";
123
+ * import { useReadContract } from "thirdweb/react";
124
+ *
125
+ * const contract = getContract({
126
+ * client,
127
+ * address: "0x...",
128
+ * chain: sepolia,
129
+ * });
130
+ *
131
+ * const { data, isLoading } = useReadContract({
132
+ * contract,
133
+ * method: resolveMethod("tokenURI"),
115
134
  * params: [1n],
116
135
  * });
117
136
  * ```
@@ -5,6 +5,7 @@ import { uint8ArrayToHex } from "./encoding/hex.js";
5
5
  * @param a - The first BigInt value.
6
6
  * @param b - The second BigInt value.
7
7
  * @returns The smaller of the two BigInt values.
8
+ * @utils
8
9
  * @example
9
10
  * ```ts
10
11
  * min(1n, 2n)
@@ -19,6 +20,7 @@ export function min(a: bigint, b: bigint) {
19
20
  * @param a - The first BigInt value.
20
21
  * @param b - The second BigInt value.
21
22
  * @returns The larger of the two BigInt values.
23
+ * @utils
22
24
  * @example
23
25
  * ```ts
24
26
  * max(1n, 2n)
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.47.1";
1
+ export const version = "5.48.0-nightly-cbd6fd87d0120c6013ef354fe8ff22293e4c08e2-20240820000346";
@@ -3,8 +3,8 @@ import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
3
3
  import { type AuthOption, authOptions } from "../../../../wallets/types.js";
4
4
  import type { Ecosystem } from "../../web/types.js";
5
5
 
6
- const getLoginOptionRoute = (option: AuthOption) => {
7
- if (!authOptions.includes(option)) {
6
+ const getLoginOptionRoute = (option: AuthOption | "wallet") => {
7
+ if (!authOptions.includes(option as AuthOption) && option !== "wallet") {
8
8
  throw new Error(`Unknown auth option ${option}`);
9
9
  }
10
10
  switch (option) {
@@ -22,7 +22,7 @@ export const getLoginUrl = ({
22
22
  mode = "popup",
23
23
  redirectUrl,
24
24
  }: {
25
- authOption: AuthOption;
25
+ authOption: AuthOption | "wallet";
26
26
  client: ThirdwebClient;
27
27
  ecosystem?: Ecosystem;
28
28
  mode?: "popup" | "redirect" | "mobile";
@@ -58,7 +58,7 @@ export const getLoginCallbackUrl = ({
58
58
  client,
59
59
  ecosystem,
60
60
  }: {
61
- authOption: AuthOption;
61
+ authOption: AuthOption | "wallet";
62
62
  client: ThirdwebClient;
63
63
  ecosystem?: Ecosystem;
64
64
  }): string => {
@@ -138,8 +138,6 @@ export function createConnectionManager(storage: AsyncStorage) {
138
138
  });
139
139
  }
140
140
 
141
- handleSetActiveWallet(activeWallet);
142
-
143
141
  // add personal wallet to connected wallets list
144
142
  addConnectedWallet(personalWallet);
145
143
 
@@ -34,7 +34,6 @@ export const authOptions = [
34
34
  "email",
35
35
  "phone",
36
36
  "passkey",
37
- "wallet",
38
37
  ] as const;
39
38
  export type AuthOption = (typeof authOptions)[number];
40
39