@ton/appkit-react 0.0.1 → 0.0.3

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 (797) hide show
  1. package/dist/esm/components/block/block.js +7 -0
  2. package/dist/esm/components/block/block.js.map +1 -0
  3. package/dist/{components → esm/components}/block/block.module.css +1 -1
  4. package/dist/esm/components/block/index.js +9 -0
  5. package/dist/esm/components/block/index.js.map +1 -0
  6. package/dist/esm/components/button/button.js +7 -0
  7. package/dist/esm/components/button/button.js.map +1 -0
  8. package/dist/{components → esm/components}/button/button.module.css +7 -2
  9. package/dist/esm/components/button/index.js +9 -0
  10. package/dist/esm/components/button/index.js.map +1 -0
  11. package/dist/esm/components/circle-icon/circle-icon.js +8 -0
  12. package/dist/esm/components/circle-icon/circle-icon.js.map +1 -0
  13. package/dist/esm/components/circle-icon/circle-icon.module.css +32 -0
  14. package/dist/esm/components/circle-icon/index.js +9 -0
  15. package/dist/esm/components/circle-icon/index.js.map +1 -0
  16. package/dist/esm/components/ton-icon/index.js +9 -0
  17. package/dist/esm/components/ton-icon/index.js.map +1 -0
  18. package/dist/esm/components/ton-icon/ton-icon.js +8 -0
  19. package/dist/esm/components/ton-icon/ton-icon.js.map +1 -0
  20. package/dist/esm/features/balances/components/balance-badge/balance-badge.js +33 -0
  21. package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +1 -0
  22. package/dist/{features → esm/features}/balances/components/balance-badge/balance-badge.module.css +3 -1
  23. package/dist/esm/features/balances/components/balance-badge/index.js +9 -0
  24. package/dist/esm/features/balances/components/balance-badge/index.js.map +1 -0
  25. package/dist/esm/features/balances/components/currency-item/currency-item.js +8 -0
  26. package/dist/esm/features/balances/components/currency-item/currency-item.js.map +1 -0
  27. package/dist/esm/features/balances/components/currency-item/currency-item.module.css +80 -0
  28. package/dist/esm/features/balances/components/currency-item/index.js +9 -0
  29. package/dist/esm/features/balances/components/currency-item/index.js.map +1 -0
  30. package/dist/esm/features/balances/components/send-jetton-button/index.js +9 -0
  31. package/dist/esm/features/balances/components/send-jetton-button/index.js.map +1 -0
  32. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +43 -0
  33. package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
  34. package/dist/esm/features/balances/components/send-ton-button/index.js +9 -0
  35. package/dist/esm/features/balances/components/send-ton-button/index.js.map +1 -0
  36. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +26 -0
  37. package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
  38. package/dist/esm/features/balances/hooks/use-balance-by-address.js +18 -0
  39. package/dist/esm/features/balances/hooks/use-balance-by-address.js.map +1 -0
  40. package/dist/esm/features/balances/hooks/use-balance.js +17 -0
  41. package/dist/esm/features/balances/hooks/use-balance.js.map +1 -0
  42. package/dist/esm/features/balances/index.js +14 -0
  43. package/dist/esm/features/balances/index.js.map +1 -0
  44. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js +18 -0
  45. package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
  46. package/dist/esm/features/jettons/hooks/use-jetton-info.js +18 -0
  47. package/dist/esm/features/jettons/hooks/use-jetton-info.js.map +1 -0
  48. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js +18 -0
  49. package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
  50. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js +18 -0
  51. package/dist/esm/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
  52. package/dist/esm/features/jettons/hooks/use-jettons.js +17 -0
  53. package/dist/esm/features/jettons/hooks/use-jettons.js.map +1 -0
  54. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js +16 -0
  55. package/dist/esm/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
  56. package/dist/esm/features/jettons/index.js +14 -0
  57. package/dist/esm/features/jettons/index.js.map +1 -0
  58. package/dist/esm/features/network/hooks/use-network.js +17 -0
  59. package/dist/esm/features/network/hooks/use-network.js.map +1 -0
  60. package/dist/esm/features/network/hooks/use-networks.js +24 -0
  61. package/dist/esm/features/network/hooks/use-networks.js.map +1 -0
  62. package/dist/esm/features/network/index.js +11 -0
  63. package/dist/esm/features/network/index.js.map +1 -0
  64. package/dist/esm/features/nft/components/nft-item/index.js +9 -0
  65. package/dist/esm/features/nft/components/nft-item/index.js.map +1 -0
  66. package/dist/esm/features/nft/components/nft-item/nft-item.js +15 -0
  67. package/dist/esm/features/nft/components/nft-item/nft-item.js.map +1 -0
  68. package/dist/esm/features/nft/components/nft-item/nft-item.module.css +74 -0
  69. package/dist/esm/features/nft/hooks/use-nft.js +18 -0
  70. package/dist/esm/features/nft/hooks/use-nft.js.map +1 -0
  71. package/dist/esm/features/nft/hooks/use-nfts-by-address.js +18 -0
  72. package/dist/esm/features/nft/hooks/use-nfts-by-address.js.map +1 -0
  73. package/dist/esm/features/nft/hooks/use-nfts.js +17 -0
  74. package/dist/esm/features/nft/hooks/use-nfts.js.map +1 -0
  75. package/dist/esm/features/nft/hooks/use-transfer-nft.js +16 -0
  76. package/dist/esm/features/nft/hooks/use-transfer-nft.js.map +1 -0
  77. package/dist/esm/features/nft/index.js +13 -0
  78. package/dist/esm/features/nft/index.js.map +1 -0
  79. package/dist/esm/features/signing/hooks/use-sign-binary.js +27 -0
  80. package/dist/esm/features/signing/hooks/use-sign-binary.js.map +1 -0
  81. package/dist/esm/features/signing/hooks/use-sign-cell.js +28 -0
  82. package/dist/esm/features/signing/hooks/use-sign-cell.js.map +1 -0
  83. package/dist/esm/features/signing/hooks/use-sign-text.js +27 -0
  84. package/dist/esm/features/signing/hooks/use-sign-text.js.map +1 -0
  85. package/dist/esm/features/signing/index.js +11 -0
  86. package/dist/esm/features/signing/index.js.map +1 -0
  87. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js +16 -0
  88. package/dist/esm/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
  89. package/dist/esm/features/swap/hooks/use-swap-quote.js +16 -0
  90. package/dist/esm/features/swap/hooks/use-swap-quote.js.map +1 -0
  91. package/dist/esm/features/swap/index.js +10 -0
  92. package/dist/esm/features/swap/index.js.map +1 -0
  93. package/dist/esm/features/transaction/components/transaction/index.js +9 -0
  94. package/dist/esm/features/transaction/components/transaction/index.js.map +1 -0
  95. package/dist/esm/features/transaction/components/transaction/transaction.js +41 -0
  96. package/dist/esm/features/transaction/components/transaction/transaction.js.map +1 -0
  97. package/dist/esm/features/transaction/components/transaction-progress/index.js +10 -0
  98. package/dist/esm/features/transaction/components/transaction-progress/index.js.map +1 -0
  99. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-icons.js +14 -0
  100. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-icons.js.map +1 -0
  101. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-provider.js +42 -0
  102. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-provider.js.map +1 -0
  103. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.js +44 -0
  104. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.js.map +1 -0
  105. package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.module.css +44 -0
  106. package/dist/esm/features/transaction/components/transaction-provider/index.js +9 -0
  107. package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -0
  108. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js +64 -0
  109. package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
  110. package/dist/esm/features/transaction/hooks/use-send-transaction.js +16 -0
  111. package/dist/esm/features/transaction/hooks/use-send-transaction.js.map +1 -0
  112. package/dist/esm/features/transaction/hooks/use-transaction-status.js +35 -0
  113. package/dist/esm/features/transaction/hooks/use-transaction-status.js.map +1 -0
  114. package/dist/esm/features/transaction/hooks/use-transfer-ton.js +16 -0
  115. package/dist/esm/features/transaction/hooks/use-transfer-ton.js.map +1 -0
  116. package/dist/esm/features/transaction/index.js +13 -0
  117. package/dist/esm/features/transaction/index.js.map +1 -0
  118. package/dist/esm/features/wallets/components/connect-button/index.js +9 -0
  119. package/dist/esm/features/wallets/components/connect-button/index.js.map +1 -0
  120. package/dist/esm/features/wallets/hooks/use-address.js +17 -0
  121. package/dist/esm/features/wallets/hooks/use-address.js.map +1 -0
  122. package/dist/esm/features/wallets/hooks/use-connect.js +15 -0
  123. package/dist/esm/features/wallets/hooks/use-connect.js.map +1 -0
  124. package/dist/esm/features/wallets/hooks/use-connected-wallets.js +21 -0
  125. package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -0
  126. package/dist/esm/features/wallets/hooks/use-connector-by-id.js +21 -0
  127. package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -0
  128. package/dist/esm/features/wallets/hooks/use-connectors.js +21 -0
  129. package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -0
  130. package/dist/esm/features/wallets/hooks/use-disconnect.js +16 -0
  131. package/dist/esm/features/wallets/hooks/use-disconnect.js.map +1 -0
  132. package/dist/esm/features/wallets/hooks/use-selected-wallet.js +28 -0
  133. package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -0
  134. package/dist/esm/features/wallets/index.js +16 -0
  135. package/dist/esm/features/wallets/index.js.map +1 -0
  136. package/dist/esm/hooks/use-app-kit-theme.js +17 -0
  137. package/dist/esm/hooks/use-app-kit-theme.js.map +1 -0
  138. package/dist/esm/hooks/use-app-kit.js +17 -0
  139. package/dist/esm/hooks/use-app-kit.js.map +1 -0
  140. package/dist/esm/hooks/use-i18n.js +17 -0
  141. package/dist/esm/hooks/use-i18n.js.map +1 -0
  142. package/dist/esm/index.js +26 -0
  143. package/dist/esm/index.js.map +1 -0
  144. package/dist/esm/libs/i18n.js +14 -0
  145. package/dist/esm/libs/i18n.js.map +1 -0
  146. package/dist/esm/libs/query.js +18 -0
  147. package/dist/esm/libs/query.js.map +1 -0
  148. package/dist/esm/locales/en.js +37 -0
  149. package/dist/esm/locales/en.js.map +1 -0
  150. package/dist/esm/providers/app-kit-provider.js +9 -0
  151. package/dist/esm/providers/app-kit-provider.js.map +1 -0
  152. package/dist/esm/providers/i18n-provider.js +51 -0
  153. package/dist/esm/providers/i18n-provider.js.map +1 -0
  154. package/dist/{styles → esm/styles}/index.css +27 -11
  155. package/dist/{styles → esm/styles}/typography.module.css +14 -1
  156. package/dist/esm/tonconnect/tonconnect-bridge.js +27 -0
  157. package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -0
  158. package/dist/esm/tsconfig.build.tsbuildinfo +1 -0
  159. package/dist/types/components/block/block.d.ts.map +1 -0
  160. package/dist/types/components/block/index.d.ts.map +1 -0
  161. package/dist/types/components/button/button.d.ts.map +1 -0
  162. package/dist/types/components/button/index.d.ts.map +1 -0
  163. package/dist/types/components/circle-icon/circle-icon.d.ts.map +1 -0
  164. package/dist/types/components/circle-icon/index.d.ts.map +1 -0
  165. package/dist/types/components/ton-icon/index.d.ts.map +1 -0
  166. package/dist/types/components/ton-icon/ton-icon.d.ts.map +1 -0
  167. package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
  168. package/dist/types/features/balances/components/balance-badge/index.d.ts.map +1 -0
  169. package/dist/types/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
  170. package/dist/types/features/balances/components/currency-item/index.d.ts.map +1 -0
  171. package/dist/types/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
  172. package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
  173. package/dist/types/features/balances/components/send-ton-button/index.d.ts.map +1 -0
  174. package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
  175. package/dist/types/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
  176. package/dist/types/features/balances/hooks/use-balance.d.ts.map +1 -0
  177. package/dist/types/features/balances/index.d.ts.map +1 -0
  178. package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
  179. package/dist/types/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
  180. package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
  181. package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
  182. package/dist/types/features/jettons/hooks/use-jettons.d.ts.map +1 -0
  183. package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
  184. package/dist/types/features/jettons/index.d.ts.map +1 -0
  185. package/dist/types/features/network/hooks/use-network.d.ts.map +1 -0
  186. package/dist/types/features/network/hooks/use-networks.d.ts.map +1 -0
  187. package/dist/types/features/network/index.d.ts.map +1 -0
  188. package/dist/types/features/nft/components/nft-item/index.d.ts.map +1 -0
  189. package/dist/types/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
  190. package/dist/types/features/nft/hooks/use-nft.d.ts.map +1 -0
  191. package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
  192. package/dist/types/features/nft/hooks/use-nfts.d.ts.map +1 -0
  193. package/dist/types/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
  194. package/dist/types/features/nft/index.d.ts.map +1 -0
  195. package/dist/types/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
  196. package/dist/types/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
  197. package/dist/types/features/signing/hooks/use-sign-text.d.ts.map +1 -0
  198. package/dist/types/features/signing/index.d.ts.map +1 -0
  199. package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
  200. package/dist/types/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
  201. package/dist/types/features/swap/index.d.ts.map +1 -0
  202. package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -0
  203. package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +1 -0
  204. package/dist/types/features/transaction/components/transaction-progress/index.d.ts +10 -0
  205. package/dist/types/features/transaction/components/transaction-progress/index.d.ts.map +1 -0
  206. package/dist/types/features/transaction/components/transaction-progress/transaction-progress-icons.d.ts +15 -0
  207. package/dist/types/features/transaction/components/transaction-progress/transaction-progress-icons.d.ts.map +1 -0
  208. package/dist/types/features/transaction/components/transaction-progress/transaction-progress-provider.d.ts +23 -0
  209. package/dist/types/features/transaction/components/transaction-progress/transaction-progress-provider.d.ts.map +1 -0
  210. package/dist/types/features/transaction/components/transaction-progress/transaction-progress.d.ts +32 -0
  211. package/dist/types/features/transaction/components/transaction-progress/transaction-progress.d.ts.map +1 -0
  212. package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
  213. package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
  214. package/dist/types/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
  215. package/dist/types/features/transaction/hooks/use-transaction-status.d.ts +33 -0
  216. package/dist/types/features/transaction/hooks/use-transaction-status.d.ts.map +1 -0
  217. package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
  218. package/dist/types/features/transaction/index.d.ts +13 -0
  219. package/dist/types/features/transaction/index.d.ts.map +1 -0
  220. package/dist/types/features/wallets/components/connect-button/index.d.ts.map +1 -0
  221. package/dist/types/features/wallets/hooks/use-address.d.ts.map +1 -0
  222. package/dist/types/features/wallets/hooks/use-connect.d.ts.map +1 -0
  223. package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
  224. package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
  225. package/dist/types/features/wallets/hooks/use-connectors.d.ts.map +1 -0
  226. package/dist/types/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
  227. package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
  228. package/dist/types/features/wallets/index.d.ts.map +1 -0
  229. package/dist/types/hooks/use-app-kit-theme.d.ts.map +1 -0
  230. package/dist/types/hooks/use-app-kit.d.ts.map +1 -0
  231. package/dist/types/hooks/use-i18n.d.ts.map +1 -0
  232. package/dist/types/index.d.ts.map +1 -0
  233. package/dist/{libs → types/libs}/i18n.d.ts +5 -0
  234. package/dist/types/libs/i18n.d.ts.map +1 -0
  235. package/dist/types/libs/query.d.ts.map +1 -0
  236. package/dist/{locales → types/locales}/en.d.ts +5 -0
  237. package/dist/types/locales/en.d.ts.map +1 -0
  238. package/dist/types/providers/app-kit-provider.d.ts.map +1 -0
  239. package/dist/types/providers/i18n-provider.d.ts.map +1 -0
  240. package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -0
  241. package/package.json +28 -14
  242. package/src/components/block/block.tsx +20 -0
  243. package/src/components/block/index.ts +9 -0
  244. package/src/components/button/button.tsx +16 -0
  245. package/src/components/button/index.ts +9 -0
  246. package/src/components/circle-icon/circle-icon.tsx +34 -0
  247. package/src/components/circle-icon/index.ts +9 -0
  248. package/src/components/ton-icon/index.ts +9 -0
  249. package/src/components/ton-icon/ton-icon.tsx +46 -0
  250. package/src/features/balances/components/balance-badge/balance-badge.tsx +47 -0
  251. package/src/features/balances/components/balance-badge/index.ts +9 -0
  252. package/src/features/balances/components/currency-item/currency-item.tsx +59 -0
  253. package/src/features/balances/components/currency-item/index.ts +9 -0
  254. package/src/features/balances/components/send-jetton-button/index.ts +9 -0
  255. package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +76 -0
  256. package/src/features/balances/components/send-ton-button/index.ts +9 -0
  257. package/src/features/balances/components/send-ton-button/send-ton-button.tsx +44 -0
  258. package/src/features/balances/hooks/use-balance-by-address.ts +33 -0
  259. package/src/features/balances/hooks/use-balance.ts +28 -0
  260. package/{dist/features/balances/index.mjs → src/features/balances/index.ts} +9 -2
  261. package/src/features/jettons/hooks/use-jetton-balance-by-address.ts +37 -0
  262. package/src/features/jettons/hooks/use-jetton-info.ts +32 -0
  263. package/src/features/jettons/hooks/use-jetton-wallet-address.ts +37 -0
  264. package/src/features/jettons/hooks/use-jettons-by-address.ts +33 -0
  265. package/src/features/jettons/hooks/use-jettons.ts +28 -0
  266. package/src/features/jettons/hooks/use-transfer-jetton.ts +44 -0
  267. package/{dist/features/jettons/index.mjs → src/features/jettons/index.ts} +8 -2
  268. package/src/features/network/hooks/use-network.ts +23 -0
  269. package/src/features/network/hooks/use-networks.ts +35 -0
  270. package/src/features/network/index.ts +11 -0
  271. package/src/features/nft/components/nft-item/index.ts +9 -0
  272. package/src/features/nft/components/nft-item/nft-item.tsx +57 -0
  273. package/src/features/nft/hooks/use-nft.ts +29 -0
  274. package/src/features/nft/hooks/use-nfts-by-address.ts +29 -0
  275. package/src/features/nft/hooks/use-nfts.ts +28 -0
  276. package/src/features/nft/hooks/use-transfer-nft.ts +44 -0
  277. package/{dist/features/nft/index.mjs → src/features/nft/index.ts} +9 -2
  278. package/src/features/signing/hooks/use-sign-binary.ts +43 -0
  279. package/src/features/signing/hooks/use-sign-cell.ts +44 -0
  280. package/src/features/signing/hooks/use-sign-text.ts +43 -0
  281. package/src/features/signing/index.ts +11 -0
  282. package/src/features/swap/hooks/use-build-swap-transaction.ts +38 -0
  283. package/src/features/swap/hooks/use-swap-quote.ts +31 -0
  284. package/src/features/swap/index.ts +10 -0
  285. package/src/features/transaction/components/transaction/index.ts +10 -0
  286. package/src/features/transaction/components/transaction/transaction.tsx +105 -0
  287. package/src/features/transaction/components/transaction-progress/index.ts +10 -0
  288. package/src/features/transaction/components/transaction-progress/transaction-progress-icons.tsx +80 -0
  289. package/src/features/transaction/components/transaction-progress/transaction-progress-provider.tsx +60 -0
  290. package/src/features/transaction/components/transaction-progress/transaction-progress.tsx +97 -0
  291. package/src/features/transaction/components/transaction-provider/index.ts +10 -0
  292. package/src/features/transaction/components/transaction-provider/transaction-provider.tsx +114 -0
  293. package/src/features/transaction/hooks/use-send-transaction.ts +44 -0
  294. package/src/features/transaction/hooks/use-transaction-status.ts +55 -0
  295. package/src/features/transaction/hooks/use-transfer-ton.ts +44 -0
  296. package/{dist/features/transaction/index.d.ts → src/features/transaction/index.ts} +4 -1
  297. package/src/features/wallets/components/connect-button/index.ts +9 -0
  298. package/src/features/wallets/hooks/use-address.ts +22 -0
  299. package/src/features/wallets/hooks/use-connect.ts +37 -0
  300. package/src/features/wallets/hooks/use-connected-wallets.ts +32 -0
  301. package/src/features/wallets/hooks/use-connector-by-id.ts +30 -0
  302. package/src/features/wallets/hooks/use-connectors.ts +32 -0
  303. package/src/features/wallets/hooks/use-disconnect.ts +39 -0
  304. package/src/features/wallets/hooks/use-selected-wallet.ts +44 -0
  305. package/{dist/features/wallets/index.mjs → src/features/wallets/index.ts} +10 -2
  306. package/src/global.d.ts +12 -0
  307. package/src/hooks/use-app-kit-theme.ts +22 -0
  308. package/src/hooks/use-app-kit.ts +21 -0
  309. package/src/hooks/use-i18n.ts +21 -0
  310. package/{dist/index.mjs → src/index.ts} +11 -2
  311. package/src/libs/i18n.ts +20 -0
  312. package/src/libs/query.ts +69 -0
  313. package/src/locales/en.ts +40 -0
  314. package/src/providers/app-kit-provider.tsx +30 -0
  315. package/src/providers/i18n-provider.tsx +83 -0
  316. package/src/tonconnect/tonconnect-bridge.tsx +39 -0
  317. package/dist/components/block/block.d.ts.map +0 -1
  318. package/dist/components/block/block.js +0 -18
  319. package/dist/components/block/block.js.map +0 -1
  320. package/dist/components/block/block.mjs +0 -11
  321. package/dist/components/block/block.mjs.map +0 -1
  322. package/dist/components/block/block.module.css.map +0 -1
  323. package/dist/components/block/block.stories.d.ts +0 -15
  324. package/dist/components/block/block.stories.d.ts.map +0 -1
  325. package/dist/components/block/block.stories.js +0 -45
  326. package/dist/components/block/block.stories.js.map +0 -1
  327. package/dist/components/block/block.stories.mjs +0 -39
  328. package/dist/components/block/block.stories.mjs.map +0 -1
  329. package/dist/components/block/index.d.ts.map +0 -1
  330. package/dist/components/block/index.js +0 -14
  331. package/dist/components/block/index.js.map +0 -1
  332. package/dist/components/block/index.mjs +0 -3
  333. package/dist/components/block/index.mjs.map +0 -1
  334. package/dist/components/button/button.d.ts.map +0 -1
  335. package/dist/components/button/button.js +0 -18
  336. package/dist/components/button/button.js.map +0 -1
  337. package/dist/components/button/button.mjs +0 -11
  338. package/dist/components/button/button.mjs.map +0 -1
  339. package/dist/components/button/button.module.css.map +0 -1
  340. package/dist/components/button/button.stories.d.ts +0 -16
  341. package/dist/components/button/button.stories.d.ts.map +0 -1
  342. package/dist/components/button/button.stories.js +0 -53
  343. package/dist/components/button/button.stories.js.map +0 -1
  344. package/dist/components/button/button.stories.mjs +0 -46
  345. package/dist/components/button/button.stories.mjs.map +0 -1
  346. package/dist/components/button/index.d.ts.map +0 -1
  347. package/dist/components/button/index.js +0 -12
  348. package/dist/components/button/index.js.map +0 -1
  349. package/dist/components/button/index.mjs +0 -3
  350. package/dist/components/button/index.mjs.map +0 -1
  351. package/dist/components/circle-icon/circle-icon.d.ts.map +0 -1
  352. package/dist/components/circle-icon/circle-icon.js +0 -22
  353. package/dist/components/circle-icon/circle-icon.js.map +0 -1
  354. package/dist/components/circle-icon/circle-icon.mjs +0 -15
  355. package/dist/components/circle-icon/circle-icon.mjs.map +0 -1
  356. package/dist/components/circle-icon/circle-icon.module.css +0 -31
  357. package/dist/components/circle-icon/circle-icon.module.css.map +0 -1
  358. package/dist/components/circle-icon/circle-icon.stories.d.ts +0 -18
  359. package/dist/components/circle-icon/circle-icon.stories.d.ts.map +0 -1
  360. package/dist/components/circle-icon/circle-icon.stories.js +0 -62
  361. package/dist/components/circle-icon/circle-icon.stories.js.map +0 -1
  362. package/dist/components/circle-icon/circle-icon.stories.mjs +0 -53
  363. package/dist/components/circle-icon/circle-icon.stories.mjs.map +0 -1
  364. package/dist/components/circle-icon/index.d.ts.map +0 -1
  365. package/dist/components/circle-icon/index.js +0 -14
  366. package/dist/components/circle-icon/index.js.map +0 -1
  367. package/dist/components/circle-icon/index.mjs +0 -3
  368. package/dist/components/circle-icon/index.mjs.map +0 -1
  369. package/dist/components/ton-icon/index.d.ts.map +0 -1
  370. package/dist/components/ton-icon/index.js +0 -16
  371. package/dist/components/ton-icon/index.js.map +0 -1
  372. package/dist/components/ton-icon/index.mjs +0 -3
  373. package/dist/components/ton-icon/index.mjs.map +0 -1
  374. package/dist/components/ton-icon/ton-icon.d.ts.map +0 -1
  375. package/dist/components/ton-icon/ton-icon.js +0 -39
  376. package/dist/components/ton-icon/ton-icon.js.map +0 -1
  377. package/dist/components/ton-icon/ton-icon.mjs +0 -36
  378. package/dist/components/ton-icon/ton-icon.mjs.map +0 -1
  379. package/dist/components/ton-icon/ton-icon.stories.d.ts +0 -20
  380. package/dist/components/ton-icon/ton-icon.stories.d.ts.map +0 -1
  381. package/dist/components/ton-icon/ton-icon.stories.js +0 -71
  382. package/dist/components/ton-icon/ton-icon.stories.js.map +0 -1
  383. package/dist/components/ton-icon/ton-icon.stories.mjs +0 -60
  384. package/dist/components/ton-icon/ton-icon.stories.mjs.map +0 -1
  385. package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +0 -1
  386. package/dist/features/balances/components/balance-badge/balance-badge.js +0 -41
  387. package/dist/features/balances/components/balance-badge/balance-badge.js.map +0 -1
  388. package/dist/features/balances/components/balance-badge/balance-badge.mjs +0 -34
  389. package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +0 -1
  390. package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +0 -1
  391. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +0 -16
  392. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +0 -1
  393. package/dist/features/balances/components/balance-badge/balance-badge.stories.js +0 -59
  394. package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +0 -1
  395. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +0 -51
  396. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +0 -1
  397. package/dist/features/balances/components/balance-badge/index.d.ts.map +0 -1
  398. package/dist/features/balances/components/balance-badge/index.js +0 -12
  399. package/dist/features/balances/components/balance-badge/index.js.map +0 -1
  400. package/dist/features/balances/components/balance-badge/index.mjs +0 -3
  401. package/dist/features/balances/components/balance-badge/index.mjs.map +0 -1
  402. package/dist/features/balances/components/currency-item/currency-item.d.ts.map +0 -1
  403. package/dist/features/balances/components/currency-item/currency-item.js +0 -44
  404. package/dist/features/balances/components/currency-item/currency-item.js.map +0 -1
  405. package/dist/features/balances/components/currency-item/currency-item.mjs +0 -37
  406. package/dist/features/balances/components/currency-item/currency-item.mjs.map +0 -1
  407. package/dist/features/balances/components/currency-item/currency-item.module.css +0 -69
  408. package/dist/features/balances/components/currency-item/currency-item.module.css.map +0 -1
  409. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +0 -19
  410. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +0 -1
  411. package/dist/features/balances/components/currency-item/currency-item.stories.js +0 -89
  412. package/dist/features/balances/components/currency-item/currency-item.stories.js.map +0 -1
  413. package/dist/features/balances/components/currency-item/currency-item.stories.mjs +0 -79
  414. package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +0 -1
  415. package/dist/features/balances/components/currency-item/index.d.ts.map +0 -1
  416. package/dist/features/balances/components/currency-item/index.js +0 -14
  417. package/dist/features/balances/components/currency-item/index.js.map +0 -1
  418. package/dist/features/balances/components/currency-item/index.mjs +0 -3
  419. package/dist/features/balances/components/currency-item/index.mjs.map +0 -1
  420. package/dist/features/balances/components/send-jetton-button/index.d.ts.map +0 -1
  421. package/dist/features/balances/components/send-jetton-button/index.js +0 -14
  422. package/dist/features/balances/components/send-jetton-button/index.js.map +0 -1
  423. package/dist/features/balances/components/send-jetton-button/index.mjs +0 -3
  424. package/dist/features/balances/components/send-jetton-button/index.mjs.map +0 -1
  425. package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +0 -1
  426. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +0 -56
  427. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +0 -1
  428. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +0 -54
  429. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +0 -1
  430. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +0 -22
  431. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +0 -1
  432. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +0 -58
  433. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +0 -1
  434. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +0 -49
  435. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +0 -1
  436. package/dist/features/balances/components/send-ton-button/index.d.ts.map +0 -1
  437. package/dist/features/balances/components/send-ton-button/index.js +0 -14
  438. package/dist/features/balances/components/send-ton-button/index.js.map +0 -1
  439. package/dist/features/balances/components/send-ton-button/index.mjs +0 -3
  440. package/dist/features/balances/components/send-ton-button/index.mjs.map +0 -1
  441. package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +0 -1
  442. package/dist/features/balances/components/send-ton-button/send-ton-button.js +0 -33
  443. package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +0 -1
  444. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +0 -31
  445. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +0 -1
  446. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +0 -21
  447. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +0 -1
  448. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +0 -52
  449. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +0 -1
  450. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +0 -44
  451. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +0 -1
  452. package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +0 -1
  453. package/dist/features/balances/hooks/use-balance-by-address.js +0 -14
  454. package/dist/features/balances/hooks/use-balance-by-address.js.map +0 -1
  455. package/dist/features/balances/hooks/use-balance-by-address.mjs +0 -12
  456. package/dist/features/balances/hooks/use-balance-by-address.mjs.map +0 -1
  457. package/dist/features/balances/hooks/use-balance.d.ts.map +0 -1
  458. package/dist/features/balances/hooks/use-balance.js +0 -13
  459. package/dist/features/balances/hooks/use-balance.js.map +0 -1
  460. package/dist/features/balances/hooks/use-balance.mjs +0 -11
  461. package/dist/features/balances/hooks/use-balance.mjs.map +0 -1
  462. package/dist/features/balances/index.d.ts.map +0 -1
  463. package/dist/features/balances/index.js +0 -49
  464. package/dist/features/balances/index.js.map +0 -1
  465. package/dist/features/balances/index.mjs.map +0 -1
  466. package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +0 -1
  467. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +0 -14
  468. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +0 -1
  469. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +0 -12
  470. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +0 -1
  471. package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +0 -1
  472. package/dist/features/jettons/hooks/use-jetton-info.js +0 -14
  473. package/dist/features/jettons/hooks/use-jetton-info.js.map +0 -1
  474. package/dist/features/jettons/hooks/use-jetton-info.mjs +0 -12
  475. package/dist/features/jettons/hooks/use-jetton-info.mjs.map +0 -1
  476. package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +0 -1
  477. package/dist/features/jettons/hooks/use-jetton-wallet-address.js +0 -14
  478. package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +0 -1
  479. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +0 -12
  480. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +0 -1
  481. package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +0 -1
  482. package/dist/features/jettons/hooks/use-jettons-by-address.js +0 -14
  483. package/dist/features/jettons/hooks/use-jettons-by-address.js.map +0 -1
  484. package/dist/features/jettons/hooks/use-jettons-by-address.mjs +0 -12
  485. package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +0 -1
  486. package/dist/features/jettons/hooks/use-jettons.d.ts.map +0 -1
  487. package/dist/features/jettons/hooks/use-jettons.js +0 -13
  488. package/dist/features/jettons/hooks/use-jettons.js.map +0 -1
  489. package/dist/features/jettons/hooks/use-jettons.mjs +0 -11
  490. package/dist/features/jettons/hooks/use-jettons.mjs.map +0 -1
  491. package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +0 -1
  492. package/dist/features/jettons/hooks/use-transfer-jetton.js +0 -14
  493. package/dist/features/jettons/hooks/use-transfer-jetton.js.map +0 -1
  494. package/dist/features/jettons/hooks/use-transfer-jetton.mjs +0 -12
  495. package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +0 -1
  496. package/dist/features/jettons/index.d.ts.map +0 -1
  497. package/dist/features/jettons/index.js +0 -49
  498. package/dist/features/jettons/index.js.map +0 -1
  499. package/dist/features/jettons/index.mjs.map +0 -1
  500. package/dist/features/network/hooks/use-network.d.ts.map +0 -1
  501. package/dist/features/network/hooks/use-network.js +0 -13
  502. package/dist/features/network/hooks/use-network.js.map +0 -1
  503. package/dist/features/network/hooks/use-network.mjs +0 -11
  504. package/dist/features/network/hooks/use-network.mjs.map +0 -1
  505. package/dist/features/network/hooks/use-networks.d.ts.map +0 -1
  506. package/dist/features/network/hooks/use-networks.js +0 -23
  507. package/dist/features/network/hooks/use-networks.js.map +0 -1
  508. package/dist/features/network/hooks/use-networks.mjs +0 -21
  509. package/dist/features/network/hooks/use-networks.mjs.map +0 -1
  510. package/dist/features/network/index.d.ts.map +0 -1
  511. package/dist/features/network/index.js +0 -17
  512. package/dist/features/network/index.js.map +0 -1
  513. package/dist/features/network/index.mjs +0 -4
  514. package/dist/features/network/index.mjs.map +0 -1
  515. package/dist/features/nft/components/nft-item/index.d.ts.map +0 -1
  516. package/dist/features/nft/components/nft-item/index.js +0 -14
  517. package/dist/features/nft/components/nft-item/index.js.map +0 -1
  518. package/dist/features/nft/components/nft-item/index.mjs +0 -3
  519. package/dist/features/nft/components/nft-item/index.mjs.map +0 -1
  520. package/dist/features/nft/components/nft-item/nft-item.d.ts.map +0 -1
  521. package/dist/features/nft/components/nft-item/nft-item.js +0 -43
  522. package/dist/features/nft/components/nft-item/nft-item.js.map +0 -1
  523. package/dist/features/nft/components/nft-item/nft-item.mjs +0 -36
  524. package/dist/features/nft/components/nft-item/nft-item.mjs.map +0 -1
  525. package/dist/features/nft/components/nft-item/nft-item.module.css +0 -65
  526. package/dist/features/nft/components/nft-item/nft-item.module.css.map +0 -1
  527. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +0 -25
  528. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +0 -1
  529. package/dist/features/nft/components/nft-item/nft-item.stories.js +0 -124
  530. package/dist/features/nft/components/nft-item/nft-item.stories.js.map +0 -1
  531. package/dist/features/nft/components/nft-item/nft-item.stories.mjs +0 -110
  532. package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +0 -1
  533. package/dist/features/nft/hooks/use-nft.d.ts.map +0 -1
  534. package/dist/features/nft/hooks/use-nft.js +0 -14
  535. package/dist/features/nft/hooks/use-nft.js.map +0 -1
  536. package/dist/features/nft/hooks/use-nft.mjs +0 -12
  537. package/dist/features/nft/hooks/use-nft.mjs.map +0 -1
  538. package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +0 -1
  539. package/dist/features/nft/hooks/use-nfts-by-address.js +0 -14
  540. package/dist/features/nft/hooks/use-nfts-by-address.js.map +0 -1
  541. package/dist/features/nft/hooks/use-nfts-by-address.mjs +0 -12
  542. package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +0 -1
  543. package/dist/features/nft/hooks/use-nfts.d.ts.map +0 -1
  544. package/dist/features/nft/hooks/use-nfts.js +0 -13
  545. package/dist/features/nft/hooks/use-nfts.js.map +0 -1
  546. package/dist/features/nft/hooks/use-nfts.mjs +0 -11
  547. package/dist/features/nft/hooks/use-nfts.mjs.map +0 -1
  548. package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +0 -1
  549. package/dist/features/nft/hooks/use-transfer-nft.js +0 -14
  550. package/dist/features/nft/hooks/use-transfer-nft.js.map +0 -1
  551. package/dist/features/nft/hooks/use-transfer-nft.mjs +0 -12
  552. package/dist/features/nft/hooks/use-transfer-nft.mjs.map +0 -1
  553. package/dist/features/nft/index.d.ts.map +0 -1
  554. package/dist/features/nft/index.js +0 -42
  555. package/dist/features/nft/index.js.map +0 -1
  556. package/dist/features/nft/index.mjs.map +0 -1
  557. package/dist/features/signing/hooks/use-sign-binary.d.ts.map +0 -1
  558. package/dist/features/signing/hooks/use-sign-binary.js +0 -14
  559. package/dist/features/signing/hooks/use-sign-binary.js.map +0 -1
  560. package/dist/features/signing/hooks/use-sign-binary.mjs +0 -12
  561. package/dist/features/signing/hooks/use-sign-binary.mjs.map +0 -1
  562. package/dist/features/signing/hooks/use-sign-cell.d.ts.map +0 -1
  563. package/dist/features/signing/hooks/use-sign-cell.js +0 -14
  564. package/dist/features/signing/hooks/use-sign-cell.js.map +0 -1
  565. package/dist/features/signing/hooks/use-sign-cell.mjs +0 -12
  566. package/dist/features/signing/hooks/use-sign-cell.mjs.map +0 -1
  567. package/dist/features/signing/hooks/use-sign-text.d.ts.map +0 -1
  568. package/dist/features/signing/hooks/use-sign-text.js +0 -14
  569. package/dist/features/signing/hooks/use-sign-text.js.map +0 -1
  570. package/dist/features/signing/hooks/use-sign-text.mjs +0 -12
  571. package/dist/features/signing/hooks/use-sign-text.mjs.map +0 -1
  572. package/dist/features/signing/index.d.ts.map +0 -1
  573. package/dist/features/signing/index.js +0 -28
  574. package/dist/features/signing/index.js.map +0 -1
  575. package/dist/features/signing/index.mjs +0 -5
  576. package/dist/features/signing/index.mjs.map +0 -1
  577. package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +0 -1
  578. package/dist/features/swap/hooks/use-build-swap-transaction.js +0 -14
  579. package/dist/features/swap/hooks/use-build-swap-transaction.js.map +0 -1
  580. package/dist/features/swap/hooks/use-build-swap-transaction.mjs +0 -12
  581. package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +0 -1
  582. package/dist/features/swap/hooks/use-swap-quote.d.ts.map +0 -1
  583. package/dist/features/swap/hooks/use-swap-quote.js +0 -14
  584. package/dist/features/swap/hooks/use-swap-quote.js.map +0 -1
  585. package/dist/features/swap/hooks/use-swap-quote.mjs +0 -12
  586. package/dist/features/swap/hooks/use-swap-quote.mjs.map +0 -1
  587. package/dist/features/swap/index.d.ts.map +0 -1
  588. package/dist/features/swap/index.js +0 -21
  589. package/dist/features/swap/index.js.map +0 -1
  590. package/dist/features/swap/index.mjs +0 -4
  591. package/dist/features/swap/index.mjs.map +0 -1
  592. package/dist/features/transaction/components/transaction/index.d.ts.map +0 -1
  593. package/dist/features/transaction/components/transaction/index.js +0 -12
  594. package/dist/features/transaction/components/transaction/index.js.map +0 -1
  595. package/dist/features/transaction/components/transaction/index.mjs +0 -3
  596. package/dist/features/transaction/components/transaction/index.mjs.map +0 -1
  597. package/dist/features/transaction/components/transaction/transaction.d.ts.map +0 -1
  598. package/dist/features/transaction/components/transaction/transaction.js +0 -49
  599. package/dist/features/transaction/components/transaction/transaction.js.map +0 -1
  600. package/dist/features/transaction/components/transaction/transaction.mjs +0 -47
  601. package/dist/features/transaction/components/transaction/transaction.mjs.map +0 -1
  602. package/dist/features/transaction/components/transaction/transaction.stories.d.ts +0 -23
  603. package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +0 -1
  604. package/dist/features/transaction/components/transaction/transaction.stories.js +0 -64
  605. package/dist/features/transaction/components/transaction/transaction.stories.js.map +0 -1
  606. package/dist/features/transaction/components/transaction/transaction.stories.mjs +0 -54
  607. package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +0 -1
  608. package/dist/features/transaction/components/transaction-provider/index.d.ts.map +0 -1
  609. package/dist/features/transaction/components/transaction-provider/index.js +0 -20
  610. package/dist/features/transaction/components/transaction-provider/index.js.map +0 -1
  611. package/dist/features/transaction/components/transaction-provider/index.mjs +0 -3
  612. package/dist/features/transaction/components/transaction-provider/index.mjs.map +0 -1
  613. package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +0 -1
  614. package/dist/features/transaction/components/transaction-provider/transaction-provider.js +0 -76
  615. package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +0 -1
  616. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +0 -72
  617. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +0 -1
  618. package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +0 -1
  619. package/dist/features/transaction/hooks/use-send-transaction.js +0 -14
  620. package/dist/features/transaction/hooks/use-send-transaction.js.map +0 -1
  621. package/dist/features/transaction/hooks/use-send-transaction.mjs +0 -12
  622. package/dist/features/transaction/hooks/use-send-transaction.mjs.map +0 -1
  623. package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +0 -1
  624. package/dist/features/transaction/hooks/use-transfer-ton.js +0 -14
  625. package/dist/features/transaction/hooks/use-transfer-ton.js.map +0 -1
  626. package/dist/features/transaction/hooks/use-transfer-ton.mjs +0 -12
  627. package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +0 -1
  628. package/dist/features/transaction/index.d.ts.map +0 -1
  629. package/dist/features/transaction/index.js +0 -28
  630. package/dist/features/transaction/index.js.map +0 -1
  631. package/dist/features/transaction/index.mjs +0 -5
  632. package/dist/features/transaction/index.mjs.map +0 -1
  633. package/dist/features/wallets/components/connect-button/index.d.ts.map +0 -1
  634. package/dist/features/wallets/components/connect-button/index.js +0 -12
  635. package/dist/features/wallets/components/connect-button/index.js.map +0 -1
  636. package/dist/features/wallets/components/connect-button/index.mjs +0 -3
  637. package/dist/features/wallets/components/connect-button/index.mjs.map +0 -1
  638. package/dist/features/wallets/hooks/use-address.d.ts.map +0 -1
  639. package/dist/features/wallets/hooks/use-address.js +0 -13
  640. package/dist/features/wallets/hooks/use-address.js.map +0 -1
  641. package/dist/features/wallets/hooks/use-address.mjs +0 -11
  642. package/dist/features/wallets/hooks/use-address.mjs.map +0 -1
  643. package/dist/features/wallets/hooks/use-connect.d.ts.map +0 -1
  644. package/dist/features/wallets/hooks/use-connect.js +0 -14
  645. package/dist/features/wallets/hooks/use-connect.js.map +0 -1
  646. package/dist/features/wallets/hooks/use-connect.mjs +0 -12
  647. package/dist/features/wallets/hooks/use-connect.mjs.map +0 -1
  648. package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +0 -1
  649. package/dist/features/wallets/hooks/use-connected-wallets.js +0 -23
  650. package/dist/features/wallets/hooks/use-connected-wallets.js.map +0 -1
  651. package/dist/features/wallets/hooks/use-connected-wallets.mjs +0 -21
  652. package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +0 -1
  653. package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +0 -1
  654. package/dist/features/wallets/hooks/use-connector-by-id.js +0 -23
  655. package/dist/features/wallets/hooks/use-connector-by-id.js.map +0 -1
  656. package/dist/features/wallets/hooks/use-connector-by-id.mjs +0 -21
  657. package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +0 -1
  658. package/dist/features/wallets/hooks/use-connectors.d.ts.map +0 -1
  659. package/dist/features/wallets/hooks/use-connectors.js +0 -23
  660. package/dist/features/wallets/hooks/use-connectors.js.map +0 -1
  661. package/dist/features/wallets/hooks/use-connectors.mjs +0 -21
  662. package/dist/features/wallets/hooks/use-connectors.mjs.map +0 -1
  663. package/dist/features/wallets/hooks/use-disconnect.d.ts.map +0 -1
  664. package/dist/features/wallets/hooks/use-disconnect.js +0 -14
  665. package/dist/features/wallets/hooks/use-disconnect.js.map +0 -1
  666. package/dist/features/wallets/hooks/use-disconnect.mjs +0 -12
  667. package/dist/features/wallets/hooks/use-disconnect.mjs.map +0 -1
  668. package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +0 -1
  669. package/dist/features/wallets/hooks/use-selected-wallet.js +0 -30
  670. package/dist/features/wallets/hooks/use-selected-wallet.js.map +0 -1
  671. package/dist/features/wallets/hooks/use-selected-wallet.mjs +0 -28
  672. package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +0 -1
  673. package/dist/features/wallets/index.d.ts.map +0 -1
  674. package/dist/features/wallets/index.js +0 -63
  675. package/dist/features/wallets/index.js.map +0 -1
  676. package/dist/features/wallets/index.mjs.map +0 -1
  677. package/dist/global.d.js +0 -4
  678. package/dist/global.d.js.map +0 -1
  679. package/dist/global.d.mjs +0 -3
  680. package/dist/global.d.mjs.map +0 -1
  681. package/dist/hooks/use-app-kit-theme.d.ts.map +0 -1
  682. package/dist/hooks/use-app-kit-theme.js +0 -16
  683. package/dist/hooks/use-app-kit-theme.js.map +0 -1
  684. package/dist/hooks/use-app-kit-theme.mjs +0 -14
  685. package/dist/hooks/use-app-kit-theme.mjs.map +0 -1
  686. package/dist/hooks/use-app-kit.d.ts.map +0 -1
  687. package/dist/hooks/use-app-kit.js +0 -16
  688. package/dist/hooks/use-app-kit.js.map +0 -1
  689. package/dist/hooks/use-app-kit.mjs +0 -14
  690. package/dist/hooks/use-app-kit.mjs.map +0 -1
  691. package/dist/hooks/use-i18n.d.ts.map +0 -1
  692. package/dist/hooks/use-i18n.js +0 -16
  693. package/dist/hooks/use-i18n.js.map +0 -1
  694. package/dist/hooks/use-i18n.mjs +0 -14
  695. package/dist/hooks/use-i18n.mjs.map +0 -1
  696. package/dist/index.d.ts.map +0 -1
  697. package/dist/index.js +0 -123
  698. package/dist/index.js.map +0 -1
  699. package/dist/index.mjs.map +0 -1
  700. package/dist/libs/i18n.d.ts.map +0 -1
  701. package/dist/libs/i18n.js +0 -22
  702. package/dist/libs/i18n.js.map +0 -1
  703. package/dist/libs/i18n.mjs +0 -11
  704. package/dist/libs/i18n.mjs.map +0 -1
  705. package/dist/libs/query.d.ts.map +0 -1
  706. package/dist/libs/query.js +0 -20
  707. package/dist/libs/query.js.map +0 -1
  708. package/dist/libs/query.mjs +0 -15
  709. package/dist/libs/query.mjs.map +0 -1
  710. package/dist/locales/en.d.ts.map +0 -1
  711. package/dist/locales/en.js +0 -30
  712. package/dist/locales/en.js.map +0 -1
  713. package/dist/locales/en.mjs +0 -28
  714. package/dist/locales/en.mjs.map +0 -1
  715. package/dist/providers/app-kit-provider.d.ts.map +0 -1
  716. package/dist/providers/app-kit-provider.js +0 -16
  717. package/dist/providers/app-kit-provider.js.map +0 -1
  718. package/dist/providers/app-kit-provider.mjs +0 -13
  719. package/dist/providers/app-kit-provider.mjs.map +0 -1
  720. package/dist/providers/i18n-provider.d.ts.map +0 -1
  721. package/dist/providers/i18n-provider.js +0 -55
  722. package/dist/providers/i18n-provider.js.map +0 -1
  723. package/dist/providers/i18n-provider.mjs +0 -52
  724. package/dist/providers/i18n-provider.mjs.map +0 -1
  725. package/dist/styles/index.css.map +0 -1
  726. package/dist/styles/typography.module.css.map +0 -1
  727. package/dist/tonconnect/tonconnect-bridge.d.ts.map +0 -1
  728. package/dist/tonconnect/tonconnect-bridge.js +0 -23
  729. package/dist/tonconnect/tonconnect-bridge.js.map +0 -1
  730. package/dist/tonconnect/tonconnect-bridge.mjs +0 -21
  731. package/dist/tonconnect/tonconnect-bridge.mjs.map +0 -1
  732. /package/dist/{components → types/components}/block/block.d.ts +0 -0
  733. /package/dist/{components → types/components}/block/index.d.ts +0 -0
  734. /package/dist/{components → types/components}/button/button.d.ts +0 -0
  735. /package/dist/{components → types/components}/button/index.d.ts +0 -0
  736. /package/dist/{components → types/components}/circle-icon/circle-icon.d.ts +0 -0
  737. /package/dist/{components → types/components}/circle-icon/index.d.ts +0 -0
  738. /package/dist/{components → types/components}/ton-icon/index.d.ts +0 -0
  739. /package/dist/{components → types/components}/ton-icon/ton-icon.d.ts +0 -0
  740. /package/dist/{features → types/features}/balances/components/balance-badge/balance-badge.d.ts +0 -0
  741. /package/dist/{features → types/features}/balances/components/balance-badge/index.d.ts +0 -0
  742. /package/dist/{features → types/features}/balances/components/currency-item/currency-item.d.ts +0 -0
  743. /package/dist/{features → types/features}/balances/components/currency-item/index.d.ts +0 -0
  744. /package/dist/{features → types/features}/balances/components/send-jetton-button/index.d.ts +0 -0
  745. /package/dist/{features → types/features}/balances/components/send-jetton-button/send-jetton-button.d.ts +0 -0
  746. /package/dist/{features → types/features}/balances/components/send-ton-button/index.d.ts +0 -0
  747. /package/dist/{features → types/features}/balances/components/send-ton-button/send-ton-button.d.ts +0 -0
  748. /package/dist/{features → types/features}/balances/hooks/use-balance-by-address.d.ts +0 -0
  749. /package/dist/{features → types/features}/balances/hooks/use-balance.d.ts +0 -0
  750. /package/dist/{features → types/features}/balances/index.d.ts +0 -0
  751. /package/dist/{features → types/features}/jettons/hooks/use-jetton-balance-by-address.d.ts +0 -0
  752. /package/dist/{features → types/features}/jettons/hooks/use-jetton-info.d.ts +0 -0
  753. /package/dist/{features → types/features}/jettons/hooks/use-jetton-wallet-address.d.ts +0 -0
  754. /package/dist/{features → types/features}/jettons/hooks/use-jettons-by-address.d.ts +0 -0
  755. /package/dist/{features → types/features}/jettons/hooks/use-jettons.d.ts +0 -0
  756. /package/dist/{features → types/features}/jettons/hooks/use-transfer-jetton.d.ts +0 -0
  757. /package/dist/{features → types/features}/jettons/index.d.ts +0 -0
  758. /package/dist/{features → types/features}/network/hooks/use-network.d.ts +0 -0
  759. /package/dist/{features → types/features}/network/hooks/use-networks.d.ts +0 -0
  760. /package/dist/{features → types/features}/network/index.d.ts +0 -0
  761. /package/dist/{features → types/features}/nft/components/nft-item/index.d.ts +0 -0
  762. /package/dist/{features → types/features}/nft/components/nft-item/nft-item.d.ts +0 -0
  763. /package/dist/{features → types/features}/nft/hooks/use-nft.d.ts +0 -0
  764. /package/dist/{features → types/features}/nft/hooks/use-nfts-by-address.d.ts +0 -0
  765. /package/dist/{features → types/features}/nft/hooks/use-nfts.d.ts +0 -0
  766. /package/dist/{features → types/features}/nft/hooks/use-transfer-nft.d.ts +0 -0
  767. /package/dist/{features → types/features}/nft/index.d.ts +0 -0
  768. /package/dist/{features → types/features}/signing/hooks/use-sign-binary.d.ts +0 -0
  769. /package/dist/{features → types/features}/signing/hooks/use-sign-cell.d.ts +0 -0
  770. /package/dist/{features → types/features}/signing/hooks/use-sign-text.d.ts +0 -0
  771. /package/dist/{features → types/features}/signing/index.d.ts +0 -0
  772. /package/dist/{features → types/features}/swap/hooks/use-build-swap-transaction.d.ts +0 -0
  773. /package/dist/{features → types/features}/swap/hooks/use-swap-quote.d.ts +0 -0
  774. /package/dist/{features → types/features}/swap/index.d.ts +0 -0
  775. /package/dist/{features → types/features}/transaction/components/transaction/index.d.ts +0 -0
  776. /package/dist/{features → types/features}/transaction/components/transaction/transaction.d.ts +0 -0
  777. /package/dist/{features → types/features}/transaction/components/transaction-provider/index.d.ts +0 -0
  778. /package/dist/{features → types/features}/transaction/components/transaction-provider/transaction-provider.d.ts +0 -0
  779. /package/dist/{features → types/features}/transaction/hooks/use-send-transaction.d.ts +0 -0
  780. /package/dist/{features → types/features}/transaction/hooks/use-transfer-ton.d.ts +0 -0
  781. /package/dist/{features → types/features}/wallets/components/connect-button/index.d.ts +0 -0
  782. /package/dist/{features → types/features}/wallets/hooks/use-address.d.ts +0 -0
  783. /package/dist/{features → types/features}/wallets/hooks/use-connect.d.ts +0 -0
  784. /package/dist/{features → types/features}/wallets/hooks/use-connected-wallets.d.ts +0 -0
  785. /package/dist/{features → types/features}/wallets/hooks/use-connector-by-id.d.ts +0 -0
  786. /package/dist/{features → types/features}/wallets/hooks/use-connectors.d.ts +0 -0
  787. /package/dist/{features → types/features}/wallets/hooks/use-disconnect.d.ts +0 -0
  788. /package/dist/{features → types/features}/wallets/hooks/use-selected-wallet.d.ts +0 -0
  789. /package/dist/{features → types/features}/wallets/index.d.ts +0 -0
  790. /package/dist/{hooks → types/hooks}/use-app-kit-theme.d.ts +0 -0
  791. /package/dist/{hooks → types/hooks}/use-app-kit.d.ts +0 -0
  792. /package/dist/{hooks → types/hooks}/use-i18n.d.ts +0 -0
  793. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
  794. /package/dist/{libs → types/libs}/query.d.ts +0 -0
  795. /package/dist/{providers → types/providers}/app-kit-provider.d.ts +0 -0
  796. /package/dist/{providers → types/providers}/i18n-provider.d.ts +0 -0
  797. /package/dist/{tonconnect → types/tonconnect}/tonconnect-bridge.d.ts +0 -0
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getJettonsByAddressQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get jettons
13
+ */
14
+ export const useJettonsByAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getJettonsByAddressQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-jettons-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jettons-by-address.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,aAAwD,EAAE,EACjB,EAAE;IAC3C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,+BAA+B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useAddress } from '../../wallets/hooks/use-address';
9
+ import { useJettonsByAddress } from './use-jettons-by-address';
10
+ /**
11
+ * Hook to get jettons of the selected wallet
12
+ */
13
+ export const useJettons = (parameters = {}) => {
14
+ const address = useAddress();
15
+ return useJettonsByAddress({ ...parameters, address });
16
+ };
17
+ //# sourceMappingURL=use-jettons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-jettons.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACtB,aAA+C,EAAE,EACjB,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,OAAO,mBAAmB,CAAC,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ 'use client';
9
+ import { transferJettonMutationOptions } from '@ton/appkit/queries';
10
+ import { useMutation } from '../../../libs/query';
11
+ import { useAppKit } from '../../../hooks/use-app-kit';
12
+ export const useTransferJetton = (parameters = {}) => {
13
+ const appKit = useAppKit();
14
+ return useMutation(transferJettonMutationOptions(appKit, parameters));
15
+ };
16
+ //# sourceMappingURL=use-transfer-jetton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transfer-jetton.js","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-transfer-jetton.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,CAAC;AASb,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAgBvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC7B,aAAmD,EAAE,EACjB,EAAE;IACtC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,6BAA6B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC1E,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './hooks/use-jetton-info';
9
+ export * from './hooks/use-jetton-wallet-address';
10
+ export * from './hooks/use-jetton-balance-by-address';
11
+ export * from './hooks/use-jettons';
12
+ export * from './hooks/use-jettons-by-address';
13
+ export * from './hooks/use-transfer-jetton';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/jettons/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useMemo } from 'react';
9
+ import { useSelectedWallet } from '../../wallets';
10
+ /**
11
+ * Hook to get network of the selected wallet
12
+ */
13
+ export const useNetwork = () => {
14
+ const [wallet] = useSelectedWallet();
15
+ return useMemo(() => wallet?.getNetwork(), [wallet]);
16
+ };
17
+ //# sourceMappingURL=use-network.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-network.js","sourceRoot":"","sources":["../../../../../src/features/network/hooks/use-network.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIlD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAyB,EAAE;IACjD,MAAM,CAAC,MAAM,CAAC,GAAG,iBAAiB,EAAE,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useSyncExternalStore, useCallback } from 'react';
9
+ import { getNetworks, watchNetworks } from '@ton/appkit';
10
+ import { useAppKit } from '../../../hooks/use-app-kit';
11
+ /**
12
+ * Hook to get all configured networks
13
+ */
14
+ export const useNetworks = () => {
15
+ const appKit = useAppKit();
16
+ const subscribe = useCallback((onChange) => {
17
+ return watchNetworks(appKit, { onChange });
18
+ }, [appKit]);
19
+ const getSnapshot = useCallback(() => {
20
+ return getNetworks(appKit);
21
+ }, [appKit]);
22
+ return useSyncExternalStore(subscribe, getSnapshot, () => []);
23
+ };
24
+ //# sourceMappingURL=use-networks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-networks.js","sourceRoot":"","sources":["../../../../../src/features/network/hooks/use-networks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAIvD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAA0B,EAAE;IACnD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,SAAS,GAAG,WAAW,CACzB,CAAC,QAAoB,EAAE,EAAE;QACrB,OAAO,aAAa,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC,EACD,CAAC,MAAM,CAAC,CACX,CAAC;IAEF,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACjC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,oBAAoB,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAClE,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ // Hooks
9
+ export { useNetworks } from './hooks/use-networks';
10
+ export { useNetwork } from './hooks/use-network';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/network/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,QAAQ;AACR,OAAO,EAAE,WAAW,EAA8B,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAA6B,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './nft-item';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/nft/components/nft-item/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo, useState } from 'react';
3
+ import { getFormattedNftInfo } from '@ton/appkit';
4
+ import clsx from 'clsx';
5
+ import { useI18n } from '../../../../hooks/use-i18n';
6
+ import styles from './nft-item.module.css';
7
+ const PlaceholderIcon = () => (_jsx("svg", { className: styles.placeholderIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }));
8
+ export const NftItem = ({ nft, className, ...props }) => {
9
+ const { t } = useI18n();
10
+ const { name, collectionName, image, isOnSale } = useMemo(() => getFormattedNftInfo(nft), [nft]);
11
+ const [imageError, setImageError] = useState(false);
12
+ const showImage = image && !imageError;
13
+ return (_jsxs("button", { className: clsx(styles.nftItem, className), ...props, children: [_jsxs("div", { className: styles.imageWrapper, children: [showImage ? (_jsx("img", { src: image, alt: name, className: styles.image, onError: () => setImageError(true) })) : (_jsx(PlaceholderIcon, {})), isOnSale && _jsx("span", { className: styles.saleBadge, children: t('nft.onSale') })] }), _jsxs("div", { className: styles.info, children: [_jsx("h4", { className: styles.name, children: name }), _jsx("p", { className: styles.collectionName, children: collectionName })] })] }));
14
+ };
15
+ //# sourceMappingURL=nft-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nft-item.js","sourceRoot":"","sources":["../../../../../../src/features/nft/components/nft-item/nft-item.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,MAAM,eAAe,GAAO,GAAG,EAAE,CAAC,CAC9B,cAAK,SAAS,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,YACzF,eACI,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,2JAA2J,GAC/J,GACA,CACT,CAAC;AAMF,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACtE,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;IACxB,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjG,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,MAAM,SAAS,GAAG,KAAK,IAAI,CAAC,UAAU,CAAC;IAEvC,OAAO,CACH,kBAAQ,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,KAAM,KAAK,aACzD,eAAK,SAAS,EAAE,MAAM,CAAC,YAAY,aAC9B,SAAS,CAAC,CAAC,CAAC,CACT,cAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GAAI,CAC9F,CAAC,CAAC,CAAC,CACA,KAAC,eAAe,KAAG,CACtB,EACA,QAAQ,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,YAAG,CAAC,CAAC,YAAY,CAAC,GAAQ,IACtE,EAEN,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACvB,aAAI,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAM,EACvC,YAAG,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,cAAc,GAAK,IACvD,IACD,CACZ,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,74 @@
1
+ .nftItem {
2
+ box-sizing: border-box;
3
+ width: 100%;
4
+ background-color: var(--ta-color-background-secondary);
5
+ border-radius: var(--ta-border-radius-l);
6
+ overflow: hidden;
7
+ cursor: pointer;
8
+ border: none;
9
+ outline: none;
10
+ padding: 0;
11
+ }
12
+
13
+ .imageWrapper {
14
+ position: relative;
15
+ aspect-ratio: 1 / 1;
16
+ background-color: var(--ta-color-background-secondary);
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ overflow: hidden;
21
+ }
22
+
23
+ .image {
24
+ width: 100%;
25
+ height: 100%;
26
+ object-fit: cover;
27
+ }
28
+
29
+ .placeholderIcon {
30
+ width: 32px;
31
+ height: 32px;
32
+ color: var(--ta-color-text-secondary);
33
+ }
34
+
35
+ .info {
36
+ padding: 8px;
37
+ text-align: left;
38
+ }
39
+
40
+ .name {
41
+ composes: bodySmall from "../../../../styles/typography.module.css";
42
+
43
+ color: var(--ta-color-text);
44
+ font-weight: var(--ta-body-medium-font-weight);
45
+ white-space: nowrap;
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+ margin: 0;
49
+ }
50
+
51
+ .collectionName {
52
+ composes: bodySmall from "../../../../styles/typography.module.css";
53
+
54
+ color: var(--ta-color-text-secondary);
55
+ white-space: nowrap;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ margin: 0;
59
+ }
60
+
61
+ .saleBadge {
62
+ composes: caption2 from "../../../../styles/typography.module.css";
63
+
64
+ position: absolute;
65
+ top: 8px;
66
+ left: 8px;
67
+ display: inline-flex;
68
+ align-items: center;
69
+ padding: 2px 6px;
70
+ border-radius: var(--ta-border-radius-s);
71
+ font-weight: var(--ta-body-medium-font-weight);
72
+ background-color: var(--ta-color-primary);
73
+ color: var(--ta-color-text-on-primary, #fff);
74
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getNftQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get a single NFT
13
+ */
14
+ export const useNft = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getNftQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-nft.js","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAO/C;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAClB,aAA2C,EAAE,EACjB,EAAE;IAC9B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC5D,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { getNFTsQueryOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useQuery } from '../../../libs/query';
11
+ /**
12
+ * Hook to get NFTs
13
+ */
14
+ export const useNFTsByAddress = (parameters = {}) => {
15
+ const appKit = useAppKit();
16
+ return useQuery(getNFTsQueryOptions(appKit, parameters));
17
+ };
18
+ //# sourceMappingURL=use-nfts-by-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-nfts-by-address.js","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-nfts-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAO/C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,aAAqD,EAAE,EACjB,EAAE;IACxC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { useAddress } from '../../wallets/hooks/use-address';
9
+ import { useNFTsByAddress } from './use-nfts-by-address';
10
+ /**
11
+ * Hook to get NFTs of the selected wallet
12
+ */
13
+ export const useNfts = (parameters = {}) => {
14
+ const address = useAddress();
15
+ return useNFTsByAddress({ ...parameters, address });
16
+ };
17
+ //# sourceMappingURL=use-nfts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-nfts.js","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-nfts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAOzD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACnB,aAA4C,EAAE,EACjB,EAAE;IAC/B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,OAAO,gBAAgB,CAAC,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AACxD,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ 'use client';
9
+ import { transferNftMutationOptions } from '@ton/appkit/queries';
10
+ import { useMutation } from '../../../libs/query';
11
+ import { useAppKit } from '../../../hooks/use-app-kit';
12
+ export const useTransferNft = (parameters = {}) => {
13
+ const appKit = useAppKit();
14
+ return useMutation(transferNftMutationOptions(appKit, parameters));
15
+ };
16
+ //# sourceMappingURL=use-transfer-nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transfer-nft.js","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-transfer-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,CAAC;AASb,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAgBvD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,aAAgD,EAAE,EACjB,EAAE;IACnC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,0BAA0B,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACvE,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './components/nft-item';
9
+ export * from './hooks/use-nfts';
10
+ export * from './hooks/use-nft';
11
+ export * from './hooks/use-nfts-by-address';
12
+ export * from './hooks/use-transfer-nft';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/nft/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AAEtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { signBinaryMutationOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useMutation } from '../../../libs/query';
11
+ /**
12
+ * Hook to sign binary data with the connected wallet.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * const { mutate: signBinary, isPending } = useSignBinary();
17
+ *
18
+ * const handleSign = () => {
19
+ * signBinary({ bytes: btoa("binary data") });
20
+ * };
21
+ * ```
22
+ */
23
+ export const useSignBinary = (parameters) => {
24
+ const appKit = useAppKit();
25
+ return useMutation(signBinaryMutationOptions(appKit, parameters));
26
+ };
27
+ //# sourceMappingURL=use-sign-binary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-sign-binary.js","sourceRoot":"","sources":["../../../../../src/features/signing/hooks/use-sign-binary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWlD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,UAA6C,EACb,EAAE;IAClC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,yBAAyB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { signCellMutationOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useMutation } from '../../../libs/query';
11
+ /**
12
+ * Hook to sign TON Cell data with the connected wallet.
13
+ * Used for on-chain signature verification.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { mutate: signCell, isPending } = useSignCell();
18
+ *
19
+ * const handleSign = () => {
20
+ * signCell({ cell: bocBase64, schema: "transfer#abc amount:uint64 = Transfer" });
21
+ * };
22
+ * ```
23
+ */
24
+ export const useSignCell = (parameters) => {
25
+ const appKit = useAppKit();
26
+ return useMutation(signCellMutationOptions(appKit, parameters));
27
+ };
28
+ //# sourceMappingURL=use-sign-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-sign-cell.js","sourceRoot":"","sources":["../../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWlD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACvB,UAA2C,EACb,EAAE;IAChC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { signTextMutationOptions } from '@ton/appkit/queries';
9
+ import { useAppKit } from '../../../hooks/use-app-kit';
10
+ import { useMutation } from '../../../libs/query';
11
+ /**
12
+ * Hook to sign text messages with the connected wallet.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * const { mutate: signText, isPending } = useSignText();
17
+ *
18
+ * const handleSign = () => {
19
+ * signText({ text: "Hello World" });
20
+ * };
21
+ * ```
22
+ */
23
+ export const useSignText = (parameters = {}) => {
24
+ const appKit = useAppKit();
25
+ return useMutation(signTextMutationOptions(appKit, parameters));
26
+ };
27
+ //# sourceMappingURL=use-sign-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-sign-text.js","sourceRoot":"","sources":["../../../../../src/features/signing/hooks/use-sign-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWlD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACvB,aAA6C,EAAE,EACjB,EAAE;IAChC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './hooks/use-sign-text';
9
+ export * from './hooks/use-sign-binary';
10
+ export * from './hooks/use-sign-cell';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/signing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ 'use client';
9
+ import { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';
10
+ import { useAppKit } from '../../../hooks/use-app-kit';
11
+ import { useMutation } from '../../../libs/query';
12
+ export const useBuildSwapTransaction = (parameters) => {
13
+ const appKit = useAppKit();
14
+ return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));
15
+ };
16
+ //# sourceMappingURL=use-build-swap-transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-build-swap-transaction.js","sourceRoot":"","sources":["../../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,CAAC;AAGb,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAQ1E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWlD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACnC,UAAuD,EACb,EAAE;IAC5C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,WAAW,CAAC,mCAAmC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAChF,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ 'use client';
9
+ import { getSwapQuoteQueryOptions } from '@ton/appkit/queries';
10
+ import { useAppKit } from '../../../hooks/use-app-kit';
11
+ import { useQuery } from '../../../libs/query';
12
+ export const useSwapQuote = (parameters = {}) => {
13
+ const appKit = useAppKit();
14
+ return useQuery(getSwapQuoteQueryOptions(appKit, parameters));
15
+ };
16
+ //# sourceMappingURL=use-swap-quote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-swap-quote.js","sourceRoot":"","sources":["../../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,CAAC;AAEb,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAU/C,MAAM,CAAC,MAAM,YAAY,GAAG,CACxB,aAAiD,EAAE,EACjB,EAAE;IACpC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,QAAQ,CAAC,wBAAwB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './hooks/use-swap-quote';
9
+ export * from './hooks/use-build-swap-transaction';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/swap/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export { Transaction } from './transaction';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) TonTech.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ *
8
+ */
9
+ import { useCallback, useMemo } from 'react';
10
+ import { TransactionProvider, useTransactionContext } from '../transaction-provider';
11
+ import { useI18n } from '../../../../hooks/use-i18n';
12
+ import { Button } from '../../../../components/button';
13
+ const TransactionContent = ({ text, children, ...props }) => {
14
+ const { isLoading, onSubmit, disabled } = useTransactionContext();
15
+ const { t } = useI18n();
16
+ const isDisabled = disabled || isLoading;
17
+ const handleSubmit = useCallback(() => {
18
+ if (!isDisabled) {
19
+ onSubmit();
20
+ }
21
+ }, [isDisabled, onSubmit]);
22
+ const buttonText = useMemo(() => {
23
+ if (isLoading) {
24
+ return t('transaction.processing');
25
+ }
26
+ return text ?? t('transaction.sendTransaction');
27
+ }, [isLoading, text, t]);
28
+ if (children) {
29
+ return (_jsx(_Fragment, { children: children({
30
+ isLoading,
31
+ onSubmit: handleSubmit,
32
+ disabled: isDisabled,
33
+ text: buttonText,
34
+ }) }));
35
+ }
36
+ return (_jsx(Button, { onClick: handleSubmit, disabled: isDisabled, ...props, children: buttonText }));
37
+ };
38
+ export const Transaction = ({ request, children, className, onError, onSuccess, disabled = false, text, ...props }) => {
39
+ return (_jsx(TransactionProvider, { request: request, onError: onError, onSuccess: onSuccess, disabled: disabled, children: _jsx(TransactionContent, { className: className, text: text, ...props, children: children }) }));
40
+ };
41
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/transaction.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAiCvD,MAAM,kBAAkB,GAAgC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACrF,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAClE,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;IAExB,MAAM,UAAU,GAAG,QAAQ,IAAI,SAAS,CAAC;IAEzC,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,QAAQ,EAAE,CAAC;QACf,CAAC;IACL,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,IAAI,SAAS,EAAE,CAAC;YACZ,OAAO,CAAC,CAAC,wBAAwB,CAAC,CAAC;QACvC,CAAC;QAED,OAAO,IAAI,IAAI,CAAC,CAAC,6BAA6B,CAAC,CAAC;IACpD,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzB,IAAI,QAAQ,EAAE,CAAC;QACX,OAAO,CACH,4BACK,QAAQ,CAAC;gBACN,SAAS;gBACT,QAAQ,EAAE,YAAY;gBACtB,QAAQ,EAAE,UAAU;gBACpB,IAAI,EAAE,UAAU;aACnB,CAAC,GACH,CACN,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,MAAM,IAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,KAAM,KAAK,YACzD,UAAU,GACN,CACZ,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAC9C,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,GAAG,KAAK,EACX,EAAE,EAAE;IACD,OAAO,CACH,KAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,YAC7F,KAAC,kBAAkB,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,KAAM,KAAK,YAC1D,QAAQ,GACQ,GACH,CACzB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) TonTech.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export * from './transaction-progress';
9
+ export * from './transaction-progress-provider';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-progress/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC"}