@ton/appkit-react 0.0.1-alpha.2 → 0.0.1

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 (496) hide show
  1. package/README.md +211 -1
  2. package/dist/components/block/block.d.ts +13 -0
  3. package/dist/components/block/block.d.ts.map +1 -0
  4. package/dist/components/block/block.js +18 -0
  5. package/dist/components/block/block.js.map +1 -0
  6. package/dist/components/block/block.mjs +11 -0
  7. package/dist/components/block/block.mjs.map +1 -0
  8. package/dist/components/block/block.module.css +13 -0
  9. package/dist/components/block/block.module.css.map +1 -0
  10. package/dist/components/block/block.stories.d.ts +15 -0
  11. package/dist/components/block/block.stories.d.ts.map +1 -0
  12. package/dist/components/block/block.stories.js +45 -0
  13. package/dist/components/block/block.stories.js.map +1 -0
  14. package/dist/components/block/block.stories.mjs +39 -0
  15. package/dist/components/block/block.stories.mjs.map +1 -0
  16. package/dist/components/block/index.d.ts +9 -0
  17. package/dist/components/block/index.d.ts.map +1 -0
  18. package/dist/components/block/index.js +14 -0
  19. package/dist/components/block/index.js.map +1 -0
  20. package/dist/components/block/index.mjs +3 -0
  21. package/dist/components/block/index.mjs.map +1 -0
  22. package/dist/components/button/button.d.ts +10 -0
  23. package/dist/components/button/button.d.ts.map +1 -0
  24. package/dist/components/button/button.js +18 -0
  25. package/dist/components/button/button.js.map +1 -0
  26. package/dist/components/button/button.mjs +11 -0
  27. package/dist/components/button/button.mjs.map +1 -0
  28. package/dist/components/button/button.module.css +33 -0
  29. package/dist/components/button/button.module.css.map +1 -0
  30. package/dist/components/button/button.stories.d.ts +16 -0
  31. package/dist/components/button/button.stories.d.ts.map +1 -0
  32. package/dist/components/button/button.stories.js +53 -0
  33. package/dist/components/button/button.stories.js.map +1 -0
  34. package/dist/components/button/button.stories.mjs +46 -0
  35. package/dist/components/button/button.stories.mjs.map +1 -0
  36. package/dist/components/button/index.d.ts +9 -0
  37. package/dist/components/button/index.d.ts.map +1 -0
  38. package/dist/components/button/index.js +12 -0
  39. package/dist/components/button/index.js.map +1 -0
  40. package/dist/components/button/index.mjs +3 -0
  41. package/dist/components/button/index.mjs.map +1 -0
  42. package/dist/components/circle-icon/circle-icon.d.ts +16 -0
  43. package/dist/components/circle-icon/circle-icon.d.ts.map +1 -0
  44. package/dist/components/circle-icon/circle-icon.js +22 -0
  45. package/dist/components/circle-icon/circle-icon.js.map +1 -0
  46. package/dist/components/circle-icon/circle-icon.mjs +15 -0
  47. package/dist/components/circle-icon/circle-icon.mjs.map +1 -0
  48. package/dist/components/circle-icon/circle-icon.module.css +31 -0
  49. package/dist/components/circle-icon/circle-icon.module.css.map +1 -0
  50. package/dist/components/circle-icon/circle-icon.stories.d.ts +18 -0
  51. package/dist/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
  52. package/dist/components/circle-icon/circle-icon.stories.js +62 -0
  53. package/dist/components/circle-icon/circle-icon.stories.js.map +1 -0
  54. package/dist/components/circle-icon/circle-icon.stories.mjs +53 -0
  55. package/dist/components/circle-icon/circle-icon.stories.mjs.map +1 -0
  56. package/dist/components/circle-icon/index.d.ts +9 -0
  57. package/dist/components/circle-icon/index.d.ts.map +1 -0
  58. package/dist/components/circle-icon/index.js +14 -0
  59. package/dist/components/circle-icon/index.js.map +1 -0
  60. package/dist/components/circle-icon/index.mjs +3 -0
  61. package/dist/components/circle-icon/index.mjs.map +1 -0
  62. package/dist/components/ton-icon/index.d.ts +9 -0
  63. package/dist/components/ton-icon/index.d.ts.map +1 -0
  64. package/dist/components/ton-icon/index.js +16 -0
  65. package/dist/components/ton-icon/index.js.map +1 -0
  66. package/dist/components/ton-icon/index.mjs +3 -0
  67. package/dist/components/ton-icon/index.mjs.map +1 -0
  68. package/dist/components/ton-icon/ton-icon.d.ts +14 -0
  69. package/dist/components/ton-icon/ton-icon.d.ts.map +1 -0
  70. package/dist/components/ton-icon/ton-icon.js +39 -0
  71. package/dist/components/ton-icon/ton-icon.js.map +1 -0
  72. package/dist/components/ton-icon/ton-icon.mjs +36 -0
  73. package/dist/components/ton-icon/ton-icon.mjs.map +1 -0
  74. package/dist/components/ton-icon/ton-icon.stories.d.ts +20 -0
  75. package/dist/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
  76. package/dist/components/ton-icon/ton-icon.stories.js +71 -0
  77. package/dist/components/ton-icon/ton-icon.stories.js.map +1 -0
  78. package/dist/components/ton-icon/ton-icon.stories.mjs +60 -0
  79. package/dist/components/ton-icon/ton-icon.stories.mjs.map +1 -0
  80. package/dist/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
  81. package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
  82. package/dist/features/balances/components/balance-badge/balance-badge.js +41 -0
  83. package/dist/features/balances/components/balance-badge/balance-badge.js.map +1 -0
  84. package/dist/features/balances/components/balance-badge/balance-badge.mjs +34 -0
  85. package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +1 -0
  86. package/dist/features/balances/components/balance-badge/balance-badge.module.css +19 -0
  87. package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +1 -0
  88. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
  89. package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
  90. package/dist/features/balances/components/balance-badge/balance-badge.stories.js +59 -0
  91. package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
  92. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +51 -0
  93. package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +1 -0
  94. package/dist/features/balances/components/balance-badge/index.d.ts +9 -0
  95. package/dist/features/balances/components/balance-badge/index.d.ts.map +1 -0
  96. package/dist/features/balances/components/balance-badge/index.js +12 -0
  97. package/dist/features/balances/components/balance-badge/index.js.map +1 -0
  98. package/dist/features/balances/components/balance-badge/index.mjs +3 -0
  99. package/dist/features/balances/components/balance-badge/index.mjs.map +1 -0
  100. package/dist/features/balances/components/currency-item/currency-item.d.ts +17 -0
  101. package/dist/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
  102. package/dist/features/balances/components/currency-item/currency-item.js +44 -0
  103. package/dist/features/balances/components/currency-item/currency-item.js.map +1 -0
  104. package/dist/features/balances/components/currency-item/currency-item.mjs +37 -0
  105. package/dist/features/balances/components/currency-item/currency-item.mjs.map +1 -0
  106. package/dist/features/balances/components/currency-item/currency-item.module.css +69 -0
  107. package/dist/features/balances/components/currency-item/currency-item.module.css.map +1 -0
  108. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
  109. package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
  110. package/dist/features/balances/components/currency-item/currency-item.stories.js +89 -0
  111. package/dist/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
  112. package/dist/features/balances/components/currency-item/currency-item.stories.mjs +79 -0
  113. package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +1 -0
  114. package/dist/features/balances/components/currency-item/index.d.ts +9 -0
  115. package/dist/features/balances/components/currency-item/index.d.ts.map +1 -0
  116. package/dist/features/balances/components/currency-item/index.js +14 -0
  117. package/dist/features/balances/components/currency-item/index.js.map +1 -0
  118. package/dist/features/balances/components/currency-item/index.mjs +3 -0
  119. package/dist/features/balances/components/currency-item/index.mjs.map +1 -0
  120. package/dist/features/balances/components/send-jetton-button/index.d.ts +9 -0
  121. package/dist/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
  122. package/dist/features/balances/components/send-jetton-button/index.js +14 -0
  123. package/dist/features/balances/components/send-jetton-button/index.js.map +1 -0
  124. package/dist/features/balances/components/send-jetton-button/index.mjs +3 -0
  125. package/dist/features/balances/components/send-jetton-button/index.mjs.map +1 -0
  126. package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
  127. package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
  128. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +56 -0
  129. package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
  130. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +54 -0
  131. package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +1 -0
  132. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
  133. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
  134. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +58 -0
  135. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
  136. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +49 -0
  137. package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +1 -0
  138. package/dist/features/balances/components/send-ton-button/index.d.ts +9 -0
  139. package/dist/features/balances/components/send-ton-button/index.d.ts.map +1 -0
  140. package/dist/features/balances/components/send-ton-button/index.js +14 -0
  141. package/dist/features/balances/components/send-ton-button/index.js.map +1 -0
  142. package/dist/features/balances/components/send-ton-button/index.mjs +3 -0
  143. package/dist/features/balances/components/send-ton-button/index.mjs.map +1 -0
  144. package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
  145. package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
  146. package/dist/features/balances/components/send-ton-button/send-ton-button.js +33 -0
  147. package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
  148. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +31 -0
  149. package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +1 -0
  150. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
  151. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
  152. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +52 -0
  153. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
  154. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +44 -0
  155. package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +1 -0
  156. package/dist/features/balances/hooks/use-balance-by-address.d.ts +16 -0
  157. package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
  158. package/dist/features/balances/hooks/use-balance-by-address.js +14 -0
  159. package/dist/features/balances/hooks/use-balance-by-address.js.map +1 -0
  160. package/dist/features/balances/hooks/use-balance-by-address.mjs +12 -0
  161. package/dist/features/balances/hooks/use-balance-by-address.mjs.map +1 -0
  162. package/dist/features/balances/hooks/use-balance.d.ts +16 -0
  163. package/dist/features/balances/hooks/use-balance.d.ts.map +1 -0
  164. package/dist/features/balances/hooks/use-balance.js +13 -0
  165. package/dist/features/balances/hooks/use-balance.js.map +1 -0
  166. package/dist/features/balances/hooks/use-balance.mjs +11 -0
  167. package/dist/features/balances/hooks/use-balance.mjs.map +1 -0
  168. package/dist/features/balances/index.d.ts +14 -0
  169. package/dist/features/balances/index.d.ts.map +1 -0
  170. package/dist/features/balances/index.js +49 -0
  171. package/dist/features/balances/index.js.map +1 -0
  172. package/dist/features/balances/index.mjs +8 -0
  173. package/dist/features/balances/index.mjs.map +1 -0
  174. package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
  175. package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
  176. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +14 -0
  177. package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
  178. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +12 -0
  179. package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +1 -0
  180. package/dist/features/jettons/hooks/use-jetton-info.d.ts +16 -0
  181. package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
  182. package/dist/features/jettons/hooks/use-jetton-info.js +14 -0
  183. package/dist/features/jettons/hooks/use-jetton-info.js.map +1 -0
  184. package/dist/features/jettons/hooks/use-jetton-info.mjs +12 -0
  185. package/dist/features/jettons/hooks/use-jetton-info.mjs.map +1 -0
  186. package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
  187. package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
  188. package/dist/features/jettons/hooks/use-jetton-wallet-address.js +14 -0
  189. package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
  190. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +12 -0
  191. package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +1 -0
  192. package/dist/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
  193. package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
  194. package/dist/features/jettons/hooks/use-jettons-by-address.js +14 -0
  195. package/dist/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
  196. package/dist/features/jettons/hooks/use-jettons-by-address.mjs +12 -0
  197. package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +1 -0
  198. package/dist/features/jettons/hooks/use-jettons.d.ts +16 -0
  199. package/dist/features/jettons/hooks/use-jettons.d.ts.map +1 -0
  200. package/dist/features/jettons/hooks/use-jettons.js +13 -0
  201. package/dist/features/jettons/hooks/use-jettons.js.map +1 -0
  202. package/dist/features/jettons/hooks/use-jettons.mjs +11 -0
  203. package/dist/features/jettons/hooks/use-jettons.mjs.map +1 -0
  204. package/dist/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
  205. package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
  206. package/dist/features/jettons/hooks/use-transfer-jetton.js +14 -0
  207. package/dist/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
  208. package/dist/features/jettons/hooks/use-transfer-jetton.mjs +12 -0
  209. package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +1 -0
  210. package/dist/features/jettons/index.d.ts +14 -0
  211. package/dist/features/jettons/index.d.ts.map +1 -0
  212. package/dist/features/jettons/index.js +49 -0
  213. package/dist/features/jettons/index.js.map +1 -0
  214. package/dist/features/jettons/index.mjs +8 -0
  215. package/dist/features/jettons/index.mjs.map +1 -0
  216. package/dist/features/network/hooks/use-network.d.ts +14 -0
  217. package/dist/features/network/hooks/use-network.d.ts.map +1 -0
  218. package/dist/features/network/hooks/use-network.js +13 -0
  219. package/dist/features/network/hooks/use-network.js.map +1 -0
  220. package/dist/features/network/hooks/use-network.mjs +11 -0
  221. package/dist/features/network/hooks/use-network.mjs.map +1 -0
  222. package/dist/features/network/hooks/use-networks.d.ts +14 -0
  223. package/dist/features/network/hooks/use-networks.d.ts.map +1 -0
  224. package/dist/features/network/hooks/use-networks.js +23 -0
  225. package/dist/features/network/hooks/use-networks.js.map +1 -0
  226. package/dist/features/network/hooks/use-networks.mjs +21 -0
  227. package/dist/features/network/hooks/use-networks.mjs.map +1 -0
  228. package/dist/features/network/index.d.ts +10 -0
  229. package/dist/features/network/index.d.ts.map +1 -0
  230. package/dist/features/network/index.js +17 -0
  231. package/dist/features/network/index.js.map +1 -0
  232. package/dist/features/network/index.mjs +4 -0
  233. package/dist/features/network/index.mjs.map +1 -0
  234. package/dist/features/nft/components/nft-item/index.d.ts +9 -0
  235. package/dist/features/nft/components/nft-item/index.d.ts.map +1 -0
  236. package/dist/features/nft/components/nft-item/index.js +14 -0
  237. package/dist/features/nft/components/nft-item/index.js.map +1 -0
  238. package/dist/features/nft/components/nft-item/index.mjs +3 -0
  239. package/dist/features/nft/components/nft-item/index.mjs.map +1 -0
  240. package/dist/features/nft/components/nft-item/nft-item.d.ts +14 -0
  241. package/dist/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
  242. package/dist/features/nft/components/nft-item/nft-item.js +43 -0
  243. package/dist/features/nft/components/nft-item/nft-item.js.map +1 -0
  244. package/dist/features/nft/components/nft-item/nft-item.mjs +36 -0
  245. package/dist/features/nft/components/nft-item/nft-item.mjs.map +1 -0
  246. package/dist/features/nft/components/nft-item/nft-item.module.css +65 -0
  247. package/dist/features/nft/components/nft-item/nft-item.module.css.map +1 -0
  248. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
  249. package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
  250. package/dist/features/nft/components/nft-item/nft-item.stories.js +124 -0
  251. package/dist/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
  252. package/dist/features/nft/components/nft-item/nft-item.stories.mjs +110 -0
  253. package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +1 -0
  254. package/dist/features/nft/hooks/use-nft.d.ts +16 -0
  255. package/dist/features/nft/hooks/use-nft.d.ts.map +1 -0
  256. package/dist/features/nft/hooks/use-nft.js +14 -0
  257. package/dist/features/nft/hooks/use-nft.js.map +1 -0
  258. package/dist/features/nft/hooks/use-nft.mjs +12 -0
  259. package/dist/features/nft/hooks/use-nft.mjs.map +1 -0
  260. package/dist/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
  261. package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
  262. package/dist/features/nft/hooks/use-nfts-by-address.js +14 -0
  263. package/dist/features/nft/hooks/use-nfts-by-address.js.map +1 -0
  264. package/dist/features/nft/hooks/use-nfts-by-address.mjs +12 -0
  265. package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +1 -0
  266. package/dist/features/nft/hooks/use-nfts.d.ts +16 -0
  267. package/dist/features/nft/hooks/use-nfts.d.ts.map +1 -0
  268. package/dist/features/nft/hooks/use-nfts.js +13 -0
  269. package/dist/features/nft/hooks/use-nfts.js.map +1 -0
  270. package/dist/features/nft/hooks/use-nfts.mjs +11 -0
  271. package/dist/features/nft/hooks/use-nfts.mjs.map +1 -0
  272. package/dist/features/nft/hooks/use-transfer-nft.d.ts +14 -0
  273. package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
  274. package/dist/features/nft/hooks/use-transfer-nft.js +14 -0
  275. package/dist/features/nft/hooks/use-transfer-nft.js.map +1 -0
  276. package/dist/features/nft/hooks/use-transfer-nft.mjs +12 -0
  277. package/dist/features/nft/hooks/use-transfer-nft.mjs.map +1 -0
  278. package/dist/features/nft/index.d.ts +13 -0
  279. package/dist/features/nft/index.d.ts.map +1 -0
  280. package/dist/features/nft/index.js +42 -0
  281. package/dist/features/nft/index.js.map +1 -0
  282. package/dist/features/nft/index.mjs +7 -0
  283. package/dist/features/nft/index.mjs.map +1 -0
  284. package/dist/features/signing/hooks/use-sign-binary.d.ts +25 -0
  285. package/dist/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
  286. package/dist/features/signing/hooks/use-sign-binary.js +14 -0
  287. package/dist/features/signing/hooks/use-sign-binary.js.map +1 -0
  288. package/dist/features/signing/hooks/use-sign-binary.mjs +12 -0
  289. package/dist/features/signing/hooks/use-sign-binary.mjs.map +1 -0
  290. package/dist/features/signing/hooks/use-sign-cell.d.ts +26 -0
  291. package/dist/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
  292. package/dist/features/signing/hooks/use-sign-cell.js +14 -0
  293. package/dist/features/signing/hooks/use-sign-cell.js.map +1 -0
  294. package/dist/features/signing/hooks/use-sign-cell.mjs +12 -0
  295. package/dist/features/signing/hooks/use-sign-cell.mjs.map +1 -0
  296. package/dist/features/signing/hooks/use-sign-text.d.ts +25 -0
  297. package/dist/features/signing/hooks/use-sign-text.d.ts.map +1 -0
  298. package/dist/features/signing/hooks/use-sign-text.js +14 -0
  299. package/dist/features/signing/hooks/use-sign-text.js.map +1 -0
  300. package/dist/features/signing/hooks/use-sign-text.mjs +12 -0
  301. package/dist/features/signing/hooks/use-sign-text.mjs.map +1 -0
  302. package/dist/features/signing/index.d.ts +11 -0
  303. package/dist/features/signing/index.d.ts.map +1 -0
  304. package/dist/features/signing/index.js +28 -0
  305. package/dist/features/signing/index.js.map +1 -0
  306. package/dist/features/signing/index.mjs +5 -0
  307. package/dist/features/signing/index.mjs.map +1 -0
  308. package/dist/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
  309. package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
  310. package/dist/features/swap/hooks/use-build-swap-transaction.js +14 -0
  311. package/dist/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
  312. package/dist/features/swap/hooks/use-build-swap-transaction.mjs +12 -0
  313. package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +1 -0
  314. package/dist/features/swap/hooks/use-swap-quote.d.ts +13 -0
  315. package/dist/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
  316. package/dist/features/swap/hooks/use-swap-quote.js +14 -0
  317. package/dist/features/swap/hooks/use-swap-quote.js.map +1 -0
  318. package/dist/features/swap/hooks/use-swap-quote.mjs +12 -0
  319. package/dist/features/swap/hooks/use-swap-quote.mjs.map +1 -0
  320. package/dist/features/swap/index.d.ts +10 -0
  321. package/dist/features/swap/index.d.ts.map +1 -0
  322. package/dist/features/swap/index.js +21 -0
  323. package/dist/features/swap/index.js.map +1 -0
  324. package/dist/features/swap/index.mjs +4 -0
  325. package/dist/features/swap/index.mjs.map +1 -0
  326. package/dist/features/transaction/components/transaction/index.d.ts +10 -0
  327. package/dist/features/transaction/components/transaction/index.d.ts.map +1 -0
  328. package/dist/features/transaction/components/transaction/index.js +12 -0
  329. package/dist/features/transaction/components/transaction/index.js.map +1 -0
  330. package/dist/features/transaction/components/transaction/index.mjs +3 -0
  331. package/dist/features/transaction/components/transaction/index.mjs.map +1 -0
  332. package/dist/features/transaction/components/transaction/transaction.d.ts +30 -0
  333. package/dist/features/transaction/components/transaction/transaction.d.ts.map +1 -0
  334. package/dist/features/transaction/components/transaction/transaction.js +49 -0
  335. package/dist/features/transaction/components/transaction/transaction.js.map +1 -0
  336. package/dist/features/transaction/components/transaction/transaction.mjs +47 -0
  337. package/dist/features/transaction/components/transaction/transaction.mjs.map +1 -0
  338. package/dist/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
  339. package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
  340. package/dist/features/transaction/components/transaction/transaction.stories.js +64 -0
  341. package/dist/features/transaction/components/transaction/transaction.stories.js.map +1 -0
  342. package/dist/features/transaction/components/transaction/transaction.stories.mjs +54 -0
  343. package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +1 -0
  344. package/dist/features/transaction/components/transaction-provider/index.d.ts +10 -0
  345. package/dist/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
  346. package/dist/features/transaction/components/transaction-provider/index.js +20 -0
  347. package/dist/features/transaction/components/transaction-provider/index.js.map +1 -0
  348. package/dist/features/transaction/components/transaction-provider/index.mjs +3 -0
  349. package/dist/features/transaction/components/transaction-provider/index.mjs.map +1 -0
  350. package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
  351. package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
  352. package/dist/features/transaction/components/transaction-provider/transaction-provider.js +76 -0
  353. package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
  354. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +72 -0
  355. package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +1 -0
  356. package/dist/features/transaction/hooks/use-send-transaction.d.ts +14 -0
  357. package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
  358. package/dist/features/transaction/hooks/use-send-transaction.js +14 -0
  359. package/dist/features/transaction/hooks/use-send-transaction.js.map +1 -0
  360. package/dist/features/transaction/hooks/use-send-transaction.mjs +12 -0
  361. package/dist/features/transaction/hooks/use-send-transaction.mjs.map +1 -0
  362. package/dist/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
  363. package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
  364. package/dist/features/transaction/hooks/use-transfer-ton.js +14 -0
  365. package/dist/features/transaction/hooks/use-transfer-ton.js.map +1 -0
  366. package/dist/features/transaction/hooks/use-transfer-ton.mjs +12 -0
  367. package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +1 -0
  368. package/dist/features/transaction/index.d.ts +11 -0
  369. package/dist/features/transaction/index.d.ts.map +1 -0
  370. package/dist/features/transaction/index.js +28 -0
  371. package/dist/features/transaction/index.js.map +1 -0
  372. package/dist/features/transaction/index.mjs +5 -0
  373. package/dist/features/transaction/index.mjs.map +1 -0
  374. package/dist/features/wallets/components/connect-button/index.d.ts +9 -0
  375. package/dist/features/wallets/components/connect-button/index.d.ts.map +1 -0
  376. package/dist/features/wallets/components/connect-button/index.js +12 -0
  377. package/dist/features/wallets/components/connect-button/index.js.map +1 -0
  378. package/dist/features/wallets/components/connect-button/index.mjs +3 -0
  379. package/dist/features/wallets/components/connect-button/index.mjs.map +1 -0
  380. package/dist/features/wallets/hooks/use-address.d.ts +13 -0
  381. package/dist/features/wallets/hooks/use-address.d.ts.map +1 -0
  382. package/dist/features/wallets/hooks/use-address.js +13 -0
  383. package/dist/features/wallets/hooks/use-address.js.map +1 -0
  384. package/dist/features/wallets/hooks/use-address.mjs +11 -0
  385. package/dist/features/wallets/hooks/use-address.mjs.map +1 -0
  386. package/dist/features/wallets/hooks/use-connect.d.ts +14 -0
  387. package/dist/features/wallets/hooks/use-connect.d.ts.map +1 -0
  388. package/dist/features/wallets/hooks/use-connect.js +14 -0
  389. package/dist/features/wallets/hooks/use-connect.js.map +1 -0
  390. package/dist/features/wallets/hooks/use-connect.mjs +12 -0
  391. package/dist/features/wallets/hooks/use-connect.mjs.map +1 -0
  392. package/dist/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
  393. package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
  394. package/dist/features/wallets/hooks/use-connected-wallets.js +23 -0
  395. package/dist/features/wallets/hooks/use-connected-wallets.js.map +1 -0
  396. package/dist/features/wallets/hooks/use-connected-wallets.mjs +21 -0
  397. package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +1 -0
  398. package/dist/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
  399. package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
  400. package/dist/features/wallets/hooks/use-connector-by-id.js +23 -0
  401. package/dist/features/wallets/hooks/use-connector-by-id.js.map +1 -0
  402. package/dist/features/wallets/hooks/use-connector-by-id.mjs +21 -0
  403. package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +1 -0
  404. package/dist/features/wallets/hooks/use-connectors.d.ts +11 -0
  405. package/dist/features/wallets/hooks/use-connectors.d.ts.map +1 -0
  406. package/dist/features/wallets/hooks/use-connectors.js +23 -0
  407. package/dist/features/wallets/hooks/use-connectors.js.map +1 -0
  408. package/dist/features/wallets/hooks/use-connectors.mjs +21 -0
  409. package/dist/features/wallets/hooks/use-connectors.mjs.map +1 -0
  410. package/dist/features/wallets/hooks/use-disconnect.d.ts +14 -0
  411. package/dist/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
  412. package/dist/features/wallets/hooks/use-disconnect.js +14 -0
  413. package/dist/features/wallets/hooks/use-disconnect.js.map +1 -0
  414. package/dist/features/wallets/hooks/use-disconnect.mjs +12 -0
  415. package/dist/features/wallets/hooks/use-disconnect.mjs.map +1 -0
  416. package/dist/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
  417. package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
  418. package/dist/features/wallets/hooks/use-selected-wallet.js +30 -0
  419. package/dist/features/wallets/hooks/use-selected-wallet.js.map +1 -0
  420. package/dist/features/wallets/hooks/use-selected-wallet.mjs +28 -0
  421. package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +1 -0
  422. package/dist/features/wallets/index.d.ts +16 -0
  423. package/dist/features/wallets/index.d.ts.map +1 -0
  424. package/dist/features/wallets/index.js +63 -0
  425. package/dist/features/wallets/index.js.map +1 -0
  426. package/dist/features/wallets/index.mjs +10 -0
  427. package/dist/features/wallets/index.mjs.map +1 -0
  428. package/dist/global.d.js +4 -0
  429. package/dist/global.d.js.map +1 -0
  430. package/dist/global.d.mjs +3 -0
  431. package/dist/global.d.mjs.map +1 -0
  432. package/dist/hooks/use-app-kit-theme.d.ts +10 -0
  433. package/dist/hooks/use-app-kit-theme.d.ts.map +1 -0
  434. package/dist/hooks/use-app-kit-theme.js +16 -0
  435. package/dist/hooks/use-app-kit-theme.js.map +1 -0
  436. package/dist/hooks/use-app-kit-theme.mjs +14 -0
  437. package/dist/hooks/use-app-kit-theme.mjs.map +1 -0
  438. package/dist/hooks/use-app-kit.d.ts +9 -0
  439. package/dist/hooks/use-app-kit.d.ts.map +1 -0
  440. package/dist/hooks/use-app-kit.js +16 -0
  441. package/dist/hooks/use-app-kit.js.map +1 -0
  442. package/dist/hooks/use-app-kit.mjs +14 -0
  443. package/dist/hooks/use-app-kit.mjs.map +1 -0
  444. package/dist/hooks/use-i18n.d.ts +9 -0
  445. package/dist/hooks/use-i18n.d.ts.map +1 -0
  446. package/dist/hooks/use-i18n.js +16 -0
  447. package/dist/hooks/use-i18n.js.map +1 -0
  448. package/dist/hooks/use-i18n.mjs +14 -0
  449. package/dist/hooks/use-i18n.mjs.map +1 -0
  450. package/dist/index.d.ts +26 -0
  451. package/dist/index.d.ts.map +1 -0
  452. package/dist/index.js +123 -0
  453. package/dist/index.js.map +1 -0
  454. package/dist/index.mjs +20 -0
  455. package/dist/index.mjs.map +1 -0
  456. package/dist/libs/i18n.d.ts +34 -0
  457. package/dist/libs/i18n.d.ts.map +1 -0
  458. package/dist/libs/i18n.js +22 -0
  459. package/dist/libs/i18n.js.map +1 -0
  460. package/dist/libs/i18n.mjs +11 -0
  461. package/dist/libs/i18n.mjs.map +1 -0
  462. package/dist/libs/query.d.ts +26 -0
  463. package/dist/libs/query.d.ts.map +1 -0
  464. package/dist/libs/query.js +20 -0
  465. package/dist/libs/query.js.map +1 -0
  466. package/dist/libs/query.mjs +15 -0
  467. package/dist/libs/query.mjs.map +1 -0
  468. package/dist/locales/en.d.ts +29 -0
  469. package/dist/locales/en.d.ts.map +1 -0
  470. package/dist/locales/en.js +30 -0
  471. package/dist/locales/en.js.map +1 -0
  472. package/dist/locales/en.mjs +28 -0
  473. package/dist/locales/en.mjs.map +1 -0
  474. package/dist/providers/app-kit-provider.d.ts +15 -0
  475. package/dist/providers/app-kit-provider.d.ts.map +1 -0
  476. package/dist/providers/app-kit-provider.js +16 -0
  477. package/dist/providers/app-kit-provider.js.map +1 -0
  478. package/dist/providers/app-kit-provider.mjs +13 -0
  479. package/dist/providers/app-kit-provider.mjs.map +1 -0
  480. package/dist/providers/i18n-provider.d.ts +22 -0
  481. package/dist/providers/i18n-provider.d.ts.map +1 -0
  482. package/dist/providers/i18n-provider.js +55 -0
  483. package/dist/providers/i18n-provider.js.map +1 -0
  484. package/dist/providers/i18n-provider.mjs +52 -0
  485. package/dist/providers/i18n-provider.mjs.map +1 -0
  486. package/dist/styles/index.css +73 -0
  487. package/dist/styles/index.css.map +1 -0
  488. package/dist/styles/typography.module.css +79 -0
  489. package/dist/styles/typography.module.css.map +1 -0
  490. package/dist/tonconnect/tonconnect-bridge.d.ts +19 -0
  491. package/dist/tonconnect/tonconnect-bridge.d.ts.map +1 -0
  492. package/dist/tonconnect/tonconnect-bridge.js +23 -0
  493. package/dist/tonconnect/tonconnect-bridge.js.map +1 -0
  494. package/dist/tonconnect/tonconnect-bridge.mjs +21 -0
  495. package/dist/tonconnect/tonconnect-bridge.mjs.map +1 -0
  496. package/package.json +63 -7
package/dist/index.js ADDED
@@ -0,0 +1,123 @@
1
+ 'use strict';
2
+
3
+ var appKitProvider = require('./providers/app-kit-provider');
4
+ var useAppKit = require('./hooks/use-app-kit');
5
+ var useAppKitTheme = require('./hooks/use-app-kit-theme');
6
+ var i18nProvider = require('./providers/i18n-provider');
7
+ var useI18n = require('./hooks/use-i18n');
8
+ var appkit = require('@ton/appkit');
9
+ var block = require('./components/block');
10
+ var button = require('./components/button');
11
+ var circleIcon = require('./components/circle-icon');
12
+ var tonIcon = require('./components/ton-icon');
13
+ var balances = require('./features/balances');
14
+ var jettons = require('./features/jettons');
15
+ var network = require('./features/network');
16
+ var nft = require('./features/nft');
17
+ var transaction = require('./features/transaction');
18
+ var wallets = require('./features/wallets');
19
+ var swap = require('./features/swap');
20
+ var signing = require('./features/signing');
21
+
22
+
23
+
24
+ Object.defineProperty(exports, "AppKitProvider", {
25
+ enumerable: true,
26
+ get: function () { return appKitProvider.AppKitProvider; }
27
+ });
28
+ Object.defineProperty(exports, "useAppKit", {
29
+ enumerable: true,
30
+ get: function () { return useAppKit.useAppKit; }
31
+ });
32
+ Object.defineProperty(exports, "useAppKitTheme", {
33
+ enumerable: true,
34
+ get: function () { return useAppKitTheme.useAppKitTheme; }
35
+ });
36
+ Object.defineProperty(exports, "I18nProvider", {
37
+ enumerable: true,
38
+ get: function () { return i18nProvider.I18nProvider; }
39
+ });
40
+ Object.defineProperty(exports, "useI18n", {
41
+ enumerable: true,
42
+ get: function () { return useI18n.useI18n; }
43
+ });
44
+ Object.keys(appkit).forEach(function (k) {
45
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
46
+ enumerable: true,
47
+ get: function () { return appkit[k]; }
48
+ });
49
+ });
50
+ Object.keys(block).forEach(function (k) {
51
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
52
+ enumerable: true,
53
+ get: function () { return block[k]; }
54
+ });
55
+ });
56
+ Object.keys(button).forEach(function (k) {
57
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
58
+ enumerable: true,
59
+ get: function () { return button[k]; }
60
+ });
61
+ });
62
+ Object.keys(circleIcon).forEach(function (k) {
63
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
64
+ enumerable: true,
65
+ get: function () { return circleIcon[k]; }
66
+ });
67
+ });
68
+ Object.keys(tonIcon).forEach(function (k) {
69
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
70
+ enumerable: true,
71
+ get: function () { return tonIcon[k]; }
72
+ });
73
+ });
74
+ Object.keys(balances).forEach(function (k) {
75
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
76
+ enumerable: true,
77
+ get: function () { return balances[k]; }
78
+ });
79
+ });
80
+ Object.keys(jettons).forEach(function (k) {
81
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
82
+ enumerable: true,
83
+ get: function () { return jettons[k]; }
84
+ });
85
+ });
86
+ Object.keys(network).forEach(function (k) {
87
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
88
+ enumerable: true,
89
+ get: function () { return network[k]; }
90
+ });
91
+ });
92
+ Object.keys(nft).forEach(function (k) {
93
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
94
+ enumerable: true,
95
+ get: function () { return nft[k]; }
96
+ });
97
+ });
98
+ Object.keys(transaction).forEach(function (k) {
99
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
100
+ enumerable: true,
101
+ get: function () { return transaction[k]; }
102
+ });
103
+ });
104
+ Object.keys(wallets).forEach(function (k) {
105
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
106
+ enumerable: true,
107
+ get: function () { return wallets[k]; }
108
+ });
109
+ });
110
+ Object.keys(swap).forEach(function (k) {
111
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
112
+ enumerable: true,
113
+ get: function () { return swap[k]; }
114
+ });
115
+ });
116
+ Object.keys(signing).forEach(function (k) {
117
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
118
+ enumerable: true,
119
+ get: function () { return signing[k]; }
120
+ });
121
+ });
122
+ //# sourceMappingURL=index.js.map
123
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,20 @@
1
+ export { AppKitProvider } from './providers/app-kit-provider';
2
+ export { useAppKit } from './hooks/use-app-kit';
3
+ export { useAppKitTheme } from './hooks/use-app-kit-theme';
4
+ export { I18nProvider } from './providers/i18n-provider';
5
+ export { useI18n } from './hooks/use-i18n';
6
+ export * from '@ton/appkit';
7
+ export * from './components/block';
8
+ export * from './components/button';
9
+ export * from './components/circle-icon';
10
+ export * from './components/ton-icon';
11
+ export * from './features/balances';
12
+ export * from './features/jettons';
13
+ export * from './features/network';
14
+ export * from './features/nft';
15
+ export * from './features/transaction';
16
+ export * from './features/wallets';
17
+ export * from './features/swap';
18
+ export * from './features/signing';
19
+ //# sourceMappingURL=index.mjs.map
20
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
@@ -0,0 +1,34 @@
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 rosetta from 'rosetta';
9
+ import en from '../locales/en';
10
+ export declare const i18n: rosetta.Rosetta<{
11
+ readonly wallet: {
12
+ readonly connect: "Connect";
13
+ readonly disconnect: "Disconnect";
14
+ readonly connectWallet: "Connect Wallet";
15
+ readonly noWalletsFound: "No wallets found";
16
+ };
17
+ readonly transaction: {
18
+ readonly sendTransaction: "Send Transaction";
19
+ readonly processing: "Processing...";
20
+ };
21
+ readonly balances: {
22
+ readonly sendTon: "Send {{ amount }} TON";
23
+ readonly sendJetton: "Send {{ amount }} TON";
24
+ readonly sendJettonWithAmount: "Send {{ amount }} {{ symbol }}";
25
+ };
26
+ readonly nft: {
27
+ readonly onSale: "On Sale";
28
+ };
29
+ }>;
30
+ export { en };
31
+ export declare const defaultLanguage = "en";
32
+ export type I18n = typeof i18n;
33
+ export type Dict = typeof en;
34
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/libs/i18n.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;EAAkB,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,CAAC;AACd,eAAO,MAAM,eAAe,OAAO,CAAC;AAIpC,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC;AAC/B,MAAM,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var rosetta = require('rosetta');
4
+ var en = require('../locales/en');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var rosetta__default = /*#__PURE__*/_interopDefault(rosetta);
9
+ var en__default = /*#__PURE__*/_interopDefault(en);
10
+
11
+ const i18n = rosetta__default.default({ en: en__default.default });
12
+ const defaultLanguage = "en";
13
+ i18n.locale(defaultLanguage);
14
+
15
+ Object.defineProperty(exports, "en", {
16
+ enumerable: true,
17
+ get: function () { return en__default.default; }
18
+ });
19
+ exports.defaultLanguage = defaultLanguage;
20
+ exports.i18n = i18n;
21
+ //# sourceMappingURL=i18n.js.map
22
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/libs/i18n.ts"],"names":["rosetta","en"],"mappings":";;;;;;;;;;AAYO,MAAM,IAAA,GAAOA,wBAAA,CAAQ,MAAEC,mBAAA,EAAI;AAE3B,MAAM,eAAA,GAAkB;AAE/B,IAAA,CAAK,OAAO,eAAe,CAAA","file":"i18n.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport rosetta from 'rosetta';\n\nimport en from '../locales/en';\n\nexport const i18n = rosetta({ en });\nexport { en };\nexport const defaultLanguage = 'en';\n\ni18n.locale(defaultLanguage);\n\nexport type I18n = typeof i18n;\nexport type Dict = typeof en;\n"]}
@@ -0,0 +1,11 @@
1
+ import rosetta from 'rosetta';
2
+ import en from '../locales/en';
3
+ export { default as en } from '../locales/en';
4
+
5
+ const i18n = rosetta({ en });
6
+ const defaultLanguage = "en";
7
+ i18n.locale(defaultLanguage);
8
+
9
+ export { defaultLanguage, i18n };
10
+ //# sourceMappingURL=i18n.mjs.map
11
+ //# sourceMappingURL=i18n.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/libs/i18n.ts"],"names":[],"mappings":";;;;AAYO,MAAM,IAAA,GAAO,OAAA,CAAQ,EAAE,EAAA,EAAI;AAE3B,MAAM,eAAA,GAAkB;AAE/B,IAAA,CAAK,OAAO,eAAe,CAAA","file":"i18n.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport rosetta from 'rosetta';\n\nimport en from '../locales/en';\n\nexport const i18n = rosetta({ en });\nexport { en };\nexport const defaultLanguage = 'en';\n\ni18n.locale(defaultLanguage);\n\nexport type I18n = typeof i18n;\nexport type Dict = typeof en;\n"]}
@@ -0,0 +1,26 @@
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 { useMutation } from '@tanstack/react-query';
9
+ import type { DefaultError, MutateFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
10
+ import type { Compute, ExactPartial, UnionStrictOmit } from '@ton/appkit';
11
+ export { useMutation };
12
+ export type UseMutationParameters<data = unknown, error = Error, variables = void, context = unknown> = Compute<Omit<UseMutationOptions<data, error, Compute<variables>, context>, 'mutationFn' | 'mutationKey' | 'throwOnError'>>;
13
+ export type UseMutationReturnType<data = unknown, error = Error, variables = void, context = unknown, mutate = MutateFunction, mutateAsync = MutateFunction> = Compute<UnionStrictOmit<UseMutationResult<data, error, variables, context>, 'mutate' | 'mutateAsync'> & {
14
+ mutate: mutate;
15
+ mutateAsync: mutateAsync;
16
+ }>;
17
+ export declare function useQuery<queryFnData, error, data, queryKey extends QueryKey>(parameters: UseQueryParameters<queryFnData, error, data, queryKey> & {
18
+ queryKey: QueryKey;
19
+ }): UseQueryReturnType<data, error>;
20
+ export type UseQueryParameters<queryFnData = unknown, error = DefaultError, data = queryFnData, queryKey extends QueryKey = QueryKey> = Compute<ExactPartial<Omit<UseQueryOptions<queryFnData, error, data, queryKey>, 'initialData'>> & {
21
+ initialData?: UseQueryOptions<queryFnData, error, data, queryKey>['initialData'] | undefined;
22
+ }>;
23
+ export type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<UseQueryResult<data, error> & {
24
+ queryKey: QueryKey;
25
+ }>;
26
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/libs/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiC,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EACR,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,MAAM,MAAM,qBAAqB,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,KAAK,EAAE,SAAS,GAAG,IAAI,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAC3G,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC,CACpH,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAC7B,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,KAAK,EACb,SAAS,GAAG,IAAI,EAChB,OAAO,GAAG,OAAO,EACjB,MAAM,GAAG,cAAc,EACvB,WAAW,GAAG,cAAc,IAC5B,OAAO,CACP,eAAe,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC,GAAG;IAC5F,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC5B,CACJ,CAAC;AAEF,wBAAgB,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,SAAS,QAAQ,EACxE,UAAU,EAAE,kBAAkB,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG;IACjE,QAAQ,EAAE,QAAQ,CAAC;CACtB,GACF,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAOjC;AAED,MAAM,MAAM,kBAAkB,CAC1B,WAAW,GAAG,OAAO,EACrB,KAAK,GAAG,YAAY,EACpB,IAAI,GAAG,WAAW,EAClB,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACpC,OAAO,CACP,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,GAAG;IACrF,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;CAChG,CACJ,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,YAAY,IAAI,OAAO,CAC1E,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACtB,CACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var reactQuery = require('@tanstack/react-query');
4
+
5
+ function useQuery(parameters) {
6
+ const result = reactQuery.useQuery({
7
+ ...parameters
8
+ // queryKeyHashFn: hashFn, // for bigint support
9
+ });
10
+ result.queryKey = parameters.queryKey;
11
+ return result;
12
+ }
13
+
14
+ Object.defineProperty(exports, "useMutation", {
15
+ enumerable: true,
16
+ get: function () { return reactQuery.useMutation; }
17
+ });
18
+ exports.useQuery = useQuery;
19
+ //# sourceMappingURL=query.js.map
20
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/libs/query.ts"],"names":["tanstack_useQuery"],"mappings":";;;;AAwCO,SAAS,SACZ,UAAA,EAG+B;AAC/B,EAAA,MAAM,SAASA,mBAAA,CAAkB;AAAA,IAC7B,GAAG;AAAA;AAAA,GAEN,CAAA;AACD,EAAA,MAAA,CAAO,WAAW,UAAA,CAAW,QAAA;AAC7B,EAAA,OAAO,MAAA;AACX","file":"query.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useQuery as tanstack_useQuery, useMutation } from '@tanstack/react-query';\nimport type {\n DefaultError,\n MutateFunction,\n QueryKey,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport type { Compute, ExactPartial, UnionStrictOmit } from '@ton/appkit';\n\nexport { useMutation };\n\nexport type UseMutationParameters<data = unknown, error = Error, variables = void, context = unknown> = Compute<\n Omit<UseMutationOptions<data, error, Compute<variables>, context>, 'mutationFn' | 'mutationKey' | 'throwOnError'>\n>;\n\nexport type UseMutationReturnType<\n data = unknown,\n error = Error,\n variables = void,\n context = unknown,\n mutate = MutateFunction,\n mutateAsync = MutateFunction,\n> = Compute<\n UnionStrictOmit<UseMutationResult<data, error, variables, context>, 'mutate' | 'mutateAsync'> & {\n mutate: mutate;\n mutateAsync: mutateAsync;\n }\n>;\n\nexport function useQuery<queryFnData, error, data, queryKey extends QueryKey>(\n parameters: UseQueryParameters<queryFnData, error, data, queryKey> & {\n queryKey: QueryKey;\n },\n): UseQueryReturnType<data, error> {\n const result = tanstack_useQuery({\n ...parameters,\n // queryKeyHashFn: hashFn, // for bigint support\n }) as UseQueryReturnType<data, error>;\n result.queryKey = parameters.queryKey;\n return result;\n}\n\nexport type UseQueryParameters<\n queryFnData = unknown,\n error = DefaultError,\n data = queryFnData,\n queryKey extends QueryKey = QueryKey,\n> = Compute<\n ExactPartial<Omit<UseQueryOptions<queryFnData, error, data, queryKey>, 'initialData'>> & {\n initialData?: UseQueryOptions<queryFnData, error, data, queryKey>['initialData'] | undefined;\n }\n>;\n\nexport type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<\n UseQueryResult<data, error> & {\n queryKey: QueryKey;\n }\n>;\n"]}
@@ -0,0 +1,15 @@
1
+ import { useQuery as useQuery$1 } from '@tanstack/react-query';
2
+ export { useMutation } from '@tanstack/react-query';
3
+
4
+ function useQuery(parameters) {
5
+ const result = useQuery$1({
6
+ ...parameters
7
+ // queryKeyHashFn: hashFn, // for bigint support
8
+ });
9
+ result.queryKey = parameters.queryKey;
10
+ return result;
11
+ }
12
+
13
+ export { useQuery };
14
+ //# sourceMappingURL=query.mjs.map
15
+ //# sourceMappingURL=query.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/libs/query.ts"],"names":["tanstack_useQuery"],"mappings":";;;AAwCO,SAAS,SACZ,UAAA,EAG+B;AAC/B,EAAA,MAAM,SAASA,UAAA,CAAkB;AAAA,IAC7B,GAAG;AAAA;AAAA,GAEN,CAAA;AACD,EAAA,MAAA,CAAO,WAAW,UAAA,CAAW,QAAA;AAC7B,EAAA,OAAO,MAAA;AACX","file":"query.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useQuery as tanstack_useQuery, useMutation } from '@tanstack/react-query';\nimport type {\n DefaultError,\n MutateFunction,\n QueryKey,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport type { Compute, ExactPartial, UnionStrictOmit } from '@ton/appkit';\n\nexport { useMutation };\n\nexport type UseMutationParameters<data = unknown, error = Error, variables = void, context = unknown> = Compute<\n Omit<UseMutationOptions<data, error, Compute<variables>, context>, 'mutationFn' | 'mutationKey' | 'throwOnError'>\n>;\n\nexport type UseMutationReturnType<\n data = unknown,\n error = Error,\n variables = void,\n context = unknown,\n mutate = MutateFunction,\n mutateAsync = MutateFunction,\n> = Compute<\n UnionStrictOmit<UseMutationResult<data, error, variables, context>, 'mutate' | 'mutateAsync'> & {\n mutate: mutate;\n mutateAsync: mutateAsync;\n }\n>;\n\nexport function useQuery<queryFnData, error, data, queryKey extends QueryKey>(\n parameters: UseQueryParameters<queryFnData, error, data, queryKey> & {\n queryKey: QueryKey;\n },\n): UseQueryReturnType<data, error> {\n const result = tanstack_useQuery({\n ...parameters,\n // queryKeyHashFn: hashFn, // for bigint support\n }) as UseQueryReturnType<data, error>;\n result.queryKey = parameters.queryKey;\n return result;\n}\n\nexport type UseQueryParameters<\n queryFnData = unknown,\n error = DefaultError,\n data = queryFnData,\n queryKey extends QueryKey = QueryKey,\n> = Compute<\n ExactPartial<Omit<UseQueryOptions<queryFnData, error, data, queryKey>, 'initialData'>> & {\n initialData?: UseQueryOptions<queryFnData, error, data, queryKey>['initialData'] | undefined;\n }\n>;\n\nexport type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<\n UseQueryResult<data, error> & {\n queryKey: QueryKey;\n }\n>;\n"]}
@@ -0,0 +1,29 @@
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
+ declare const _default: {
9
+ readonly wallet: {
10
+ readonly connect: "Connect";
11
+ readonly disconnect: "Disconnect";
12
+ readonly connectWallet: "Connect Wallet";
13
+ readonly noWalletsFound: "No wallets found";
14
+ };
15
+ readonly transaction: {
16
+ readonly sendTransaction: "Send Transaction";
17
+ readonly processing: "Processing...";
18
+ };
19
+ readonly balances: {
20
+ readonly sendTon: "Send {{ amount }} TON";
21
+ readonly sendJetton: "Send {{ amount }} TON";
22
+ readonly sendJettonWithAmount: "Send {{ amount }} {{ symbol }}";
23
+ };
24
+ readonly nft: {
25
+ readonly onSale: "On Sale";
26
+ };
27
+ };
28
+ export default _default;
29
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;AAEH,wBA0BW"}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var en_default = {
4
+ // Wallet connection
5
+ wallet: {
6
+ connect: "Connect",
7
+ disconnect: "Disconnect",
8
+ connectWallet: "Connect Wallet",
9
+ noWalletsFound: "No wallets found"
10
+ },
11
+ // Transaction
12
+ transaction: {
13
+ sendTransaction: "Send Transaction",
14
+ processing: "Processing..."
15
+ },
16
+ // Balances
17
+ balances: {
18
+ sendTon: "Send {{ amount }} TON",
19
+ sendJetton: "Send {{ amount }} TON",
20
+ sendJettonWithAmount: "Send {{ amount }} {{ symbol }}"
21
+ },
22
+ // NFT
23
+ nft: {
24
+ onSale: "On Sale"
25
+ }
26
+ };
27
+
28
+ module.exports = en_default;
29
+ //# sourceMappingURL=en.js.map
30
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/locales/en.ts"],"names":[],"mappings":";;AAQA,IAAO,UAAA,GAAQ;AAAA;AAAA,EAEX,MAAA,EAAQ;AAAA,IACJ,OAAA,EAAS,SAAA;AAAA,IACT,UAAA,EAAY,YAAA;AAAA,IACZ,aAAA,EAAe,gBAAA;AAAA,IACf,cAAA,EAAgB;AAAA,GACpB;AAAA;AAAA,EAGA,WAAA,EAAa;AAAA,IACT,eAAA,EAAiB,kBAAA;AAAA,IACjB,UAAA,EAAY;AAAA,GAChB;AAAA;AAAA,EAGA,QAAA,EAAU;AAAA,IACN,OAAA,EAAS,uBAAA;AAAA,IACT,UAAA,EAAY,uBAAA;AAAA,IACZ,oBAAA,EAAsB;AAAA,GAC1B;AAAA;AAAA,EAGA,GAAA,EAAK;AAAA,IACD,MAAA,EAAQ;AAAA;AAEhB","file":"en.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport default {\n // Wallet connection\n wallet: {\n connect: 'Connect',\n disconnect: 'Disconnect',\n connectWallet: 'Connect Wallet',\n noWalletsFound: 'No wallets found',\n },\n\n // Transaction\n transaction: {\n sendTransaction: 'Send Transaction',\n processing: 'Processing...',\n },\n\n // Balances\n balances: {\n sendTon: 'Send {{ amount }} TON',\n sendJetton: 'Send {{ amount }} TON',\n sendJettonWithAmount: 'Send {{ amount }} {{ symbol }}',\n },\n\n // NFT\n nft: {\n onSale: 'On Sale',\n },\n} as const;\n"]}
@@ -0,0 +1,28 @@
1
+ var en_default = {
2
+ // Wallet connection
3
+ wallet: {
4
+ connect: "Connect",
5
+ disconnect: "Disconnect",
6
+ connectWallet: "Connect Wallet",
7
+ noWalletsFound: "No wallets found"
8
+ },
9
+ // Transaction
10
+ transaction: {
11
+ sendTransaction: "Send Transaction",
12
+ processing: "Processing..."
13
+ },
14
+ // Balances
15
+ balances: {
16
+ sendTon: "Send {{ amount }} TON",
17
+ sendJetton: "Send {{ amount }} TON",
18
+ sendJettonWithAmount: "Send {{ amount }} {{ symbol }}"
19
+ },
20
+ // NFT
21
+ nft: {
22
+ onSale: "On Sale"
23
+ }
24
+ };
25
+
26
+ export { en_default as default };
27
+ //# sourceMappingURL=en.mjs.map
28
+ //# sourceMappingURL=en.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAQA,IAAO,UAAA,GAAQ;AAAA;AAAA,EAEX,MAAA,EAAQ;AAAA,IACJ,OAAA,EAAS,SAAA;AAAA,IACT,UAAA,EAAY,YAAA;AAAA,IACZ,aAAA,EAAe,gBAAA;AAAA,IACf,cAAA,EAAgB;AAAA,GACpB;AAAA;AAAA,EAGA,WAAA,EAAa;AAAA,IACT,eAAA,EAAiB,kBAAA;AAAA,IACjB,UAAA,EAAY;AAAA,GAChB;AAAA;AAAA,EAGA,QAAA,EAAU;AAAA,IACN,OAAA,EAAS,uBAAA;AAAA,IACT,UAAA,EAAY,uBAAA;AAAA,IACZ,oBAAA,EAAsB;AAAA,GAC1B;AAAA;AAAA,EAGA,GAAA,EAAK;AAAA,IACD,MAAA,EAAQ;AAAA;AAEhB","file":"en.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nexport default {\n // Wallet connection\n wallet: {\n connect: 'Connect',\n disconnect: 'Disconnect',\n connectWallet: 'Connect Wallet',\n noWalletsFound: 'No wallets found',\n },\n\n // Transaction\n transaction: {\n sendTransaction: 'Send Transaction',\n processing: 'Processing...',\n },\n\n // Balances\n balances: {\n sendTon: 'Send {{ amount }} TON',\n sendJetton: 'Send {{ amount }} TON',\n sendJettonWithAmount: 'Send {{ amount }} {{ symbol }}',\n },\n\n // NFT\n nft: {\n onSale: 'On Sale',\n },\n} as const;\n"]}
@@ -0,0 +1,15 @@
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 type { PropsWithChildren } from 'react';
9
+ import type { AppKit } from '@ton/appkit';
10
+ export declare const AppKitContext: import("react").Context<AppKit | undefined>;
11
+ export interface AppKitProviderProps extends PropsWithChildren {
12
+ appKit: AppKit;
13
+ }
14
+ export declare function AppKitProvider({ appKit, children }: AppKitProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=app-kit-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-kit-provider.d.ts","sourceRoot":"","sources":["../../src/providers/app-kit-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAK1C,eAAO,MAAM,aAAa,6CAA+C,CAAC;AAE1E,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAQvE"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ var i18nProvider = require('./i18n-provider');
6
+ var tonconnectBridge = require('../tonconnect/tonconnect-bridge');
7
+
8
+ const AppKitContext = react.createContext(void 0);
9
+ function AppKitProvider({ appKit, children }) {
10
+ return /* @__PURE__ */ jsxRuntime.jsx(AppKitContext.Provider, { value: appKit, children: /* @__PURE__ */ jsxRuntime.jsx(tonconnectBridge.TonConnectBridge, { children: /* @__PURE__ */ jsxRuntime.jsx(i18nProvider.I18nProvider, { children }) }) });
11
+ }
12
+
13
+ exports.AppKitContext = AppKitContext;
14
+ exports.AppKitProvider = AppKitProvider;
15
+ //# sourceMappingURL=app-kit-provider.js.map
16
+ //# sourceMappingURL=app-kit-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/providers/app-kit-provider.tsx"],"names":["createContext","jsx","TonConnectBridge","I18nProvider"],"mappings":";;;;;;;AAeO,MAAM,aAAA,GAAgBA,oBAAkC,MAAS;AAMjE,SAAS,cAAA,CAAe,EAAE,MAAA,EAAQ,QAAA,EAAS,EAAwB;AACtE,EAAA,uBACIC,cAAA,CAAC,aAAA,CAAc,QAAA,EAAd,EAAuB,KAAA,EAAO,MAAA,EAC3B,QAAA,kBAAAA,cAAA,CAACC,iCAAA,EAAA,EACG,QAAA,kBAAAD,cAAA,CAACE,yBAAA,EAAA,EAAc,QAAA,EAAS,CAAA,EAC5B,CAAA,EACJ,CAAA;AAER","file":"app-kit-provider.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { PropsWithChildren } from 'react';\nimport { createContext } from 'react';\nimport type { AppKit } from '@ton/appkit';\n\nimport { I18nProvider } from './i18n-provider';\nimport { TonConnectBridge } from '../tonconnect/tonconnect-bridge';\n\nexport const AppKitContext = createContext<AppKit | undefined>(undefined);\n\nexport interface AppKitProviderProps extends PropsWithChildren {\n appKit: AppKit;\n}\n\nexport function AppKitProvider({ appKit, children }: AppKitProviderProps) {\n return (\n <AppKitContext.Provider value={appKit}>\n <TonConnectBridge>\n <I18nProvider>{children}</I18nProvider>\n </TonConnectBridge>\n </AppKitContext.Provider>\n );\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { createContext } from 'react';
3
+ import { I18nProvider } from './i18n-provider';
4
+ import { TonConnectBridge } from '../tonconnect/tonconnect-bridge';
5
+
6
+ const AppKitContext = createContext(void 0);
7
+ function AppKitProvider({ appKit, children }) {
8
+ return /* @__PURE__ */ jsx(AppKitContext.Provider, { value: appKit, children: /* @__PURE__ */ jsx(TonConnectBridge, { children: /* @__PURE__ */ jsx(I18nProvider, { children }) }) });
9
+ }
10
+
11
+ export { AppKitContext, AppKitProvider };
12
+ //# sourceMappingURL=app-kit-provider.mjs.map
13
+ //# sourceMappingURL=app-kit-provider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/providers/app-kit-provider.tsx"],"names":[],"mappings":";;;;;AAeO,MAAM,aAAA,GAAgB,cAAkC,MAAS;AAMjE,SAAS,cAAA,CAAe,EAAE,MAAA,EAAQ,QAAA,EAAS,EAAwB;AACtE,EAAA,uBACI,GAAA,CAAC,aAAA,CAAc,QAAA,EAAd,EAAuB,KAAA,EAAO,MAAA,EAC3B,QAAA,kBAAA,GAAA,CAAC,gBAAA,EAAA,EACG,QAAA,kBAAA,GAAA,CAAC,YAAA,EAAA,EAAc,QAAA,EAAS,CAAA,EAC5B,CAAA,EACJ,CAAA;AAER","file":"app-kit-provider.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { PropsWithChildren } from 'react';\nimport { createContext } from 'react';\nimport type { AppKit } from '@ton/appkit';\n\nimport { I18nProvider } from './i18n-provider';\nimport { TonConnectBridge } from '../tonconnect/tonconnect-bridge';\n\nexport const AppKitContext = createContext<AppKit | undefined>(undefined);\n\nexport interface AppKitProviderProps extends PropsWithChildren {\n appKit: AppKit;\n}\n\nexport function AppKitProvider({ appKit, children }: AppKitProviderProps) {\n return (\n <AppKitContext.Provider value={appKit}>\n <TonConnectBridge>\n <I18nProvider>{children}</I18nProvider>\n </TonConnectBridge>\n </AppKitContext.Provider>\n );\n}\n"]}
@@ -0,0 +1,22 @@
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 type { PropsWithChildren } from 'react';
9
+ import type { Dict, I18n } from '../libs/i18n';
10
+ export interface I18nContextType {
11
+ activeLocale: string;
12
+ t: I18n['t'];
13
+ locale: (lang: string, dict?: Dict) => void;
14
+ addDict: (lang: string, dict: Dict) => void;
15
+ }
16
+ export declare const I18nContext: import("react").Context<I18nContextType | null>;
17
+ export interface I18nProviderProps extends PropsWithChildren {
18
+ locale?: string;
19
+ lngDicts?: Record<string, Dict>;
20
+ }
21
+ export declare const I18nProvider: ({ children, locale, lngDicts }: I18nProviderProps) => import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=i18n-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-provider.d.ts","sourceRoot":"","sources":["../../src/providers/i18n-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,WAAW,iDAA8C,CAAC;AAEvE,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,YAAY,GAAI,gCAAgC,iBAAiB,4CAsD7E,CAAC"}
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ var i18n = require('../libs/i18n');
6
+
7
+ const I18nContext = react.createContext(null);
8
+ const I18nProvider = ({ children, locale, lngDicts }) => {
9
+ const activeLocaleRef = react.useRef(locale || i18n.defaultLanguage);
10
+ const [, setTick] = react.useState(0);
11
+ const firstRender = react.useRef(true);
12
+ const i18nWrapper = {
13
+ activeLocale: activeLocaleRef.current,
14
+ t: (...args) => i18n.i18n.t(...args),
15
+ locale: (l, dict) => {
16
+ i18n.i18n.locale(l);
17
+ activeLocaleRef.current = l;
18
+ if (dict) {
19
+ i18n.i18n.set(l, dict);
20
+ }
21
+ setTick((tick) => tick + 1);
22
+ },
23
+ addDict: (l, dict) => {
24
+ i18n.i18n.set(l, dict);
25
+ setTick((tick) => tick + 1);
26
+ }
27
+ };
28
+ if (locale && firstRender.current === true) {
29
+ firstRender.current = false;
30
+ const dict = lngDicts?.[locale];
31
+ i18nWrapper.locale(locale, dict);
32
+ const restDicts = Object.entries(lngDicts || {}).filter(([l]) => l !== locale);
33
+ restDicts.forEach(([l, dict2]) => {
34
+ i18nWrapper.addDict(l, dict2);
35
+ });
36
+ }
37
+ react.useEffect(() => {
38
+ if (lngDicts) {
39
+ Object.entries(lngDicts).forEach(([l, dict]) => {
40
+ i18nWrapper.addDict(l, dict);
41
+ });
42
+ }
43
+ }, [lngDicts]);
44
+ react.useEffect(() => {
45
+ if (locale) {
46
+ i18nWrapper.locale(locale);
47
+ }
48
+ }, [locale]);
49
+ return /* @__PURE__ */ jsxRuntime.jsx(I18nContext.Provider, { value: i18nWrapper, children });
50
+ };
51
+
52
+ exports.I18nContext = I18nContext;
53
+ exports.I18nProvider = I18nProvider;
54
+ //# sourceMappingURL=i18n-provider.js.map
55
+ //# sourceMappingURL=i18n-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/providers/i18n-provider.tsx"],"names":["createContext","useRef","defaultLanguage","useState","i18n","dict","useEffect"],"mappings":";;;;;;AAqBO,MAAM,WAAA,GAAcA,oBAAsC,IAAI;AAO9D,MAAM,eAAe,CAAC,EAAE,QAAA,EAAU,MAAA,EAAQ,UAAS,KAAyB;AAC/E,EAAA,MAAM,eAAA,GAAkBC,YAAA,CAAO,MAAA,IAAUC,oBAAe,CAAA;AACxD,EAAA,MAAM,GAAG,OAAO,CAAA,GAAIC,eAAS,CAAC,CAAA;AAC9B,EAAA,MAAM,WAAA,GAAcF,aAAO,IAAI,CAAA;AAE/B,EAAA,MAAM,WAAA,GAA+B;AAAA,IACjC,cAAc,eAAA,CAAgB,OAAA;AAAA,IAC9B,GAAG,CAAA,GAAI,IAAA,KAASG,SAAA,CAAK,CAAA,CAAE,GAAG,IAAI,CAAA;AAAA,IAC9B,MAAA,EAAQ,CAAC,CAAA,EAAG,IAAA,KAAS;AACjB,MAAAA,SAAA,CAAK,OAAO,CAAC,CAAA;AACb,MAAA,eAAA,CAAgB,OAAA,GAAU,CAAA;AAE1B,MAAA,IAAI,IAAA,EAAM;AACN,QAAAA,SAAA,CAAK,GAAA,CAAI,GAAG,IAAI,CAAA;AAAA,MACpB;AAGA,MAAA,OAAA,CAAQ,CAAC,IAAA,KAAS,IAAA,GAAO,CAAC,CAAA;AAAA,IAC9B,CAAA;AAAA,IACA,OAAA,EAAS,CAAC,CAAA,EAAG,IAAA,KAAS;AAClB,MAAAA,SAAA,CAAK,GAAA,CAAI,GAAG,IAAI,CAAA;AAGhB,MAAA,OAAA,CAAQ,CAAC,IAAA,KAAS,IAAA,GAAO,CAAC,CAAA;AAAA,IAC9B;AAAA,GACJ;AAGA,EAAA,IAAI,MAAA,IAAU,WAAA,CAAY,OAAA,KAAY,IAAA,EAAM;AACxC,IAAA,WAAA,CAAY,OAAA,GAAU,KAAA;AACtB,IAAA,MAAM,IAAA,GAAO,WAAW,MAAM,CAAA;AAC9B,IAAA,WAAA,CAAY,MAAA,CAAO,QAAQ,IAAI,CAAA;AAE/B,IAAA,MAAM,SAAA,GAAY,MAAA,CAAO,OAAA,CAAQ,QAAA,IAAY,EAAE,CAAA,CAAE,MAAA,CAAO,CAAC,CAAC,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AAC7E,IAAA,SAAA,CAAU,OAAA,CAAQ,CAAC,CAAC,CAAA,EAAGC,KAAI,CAAA,KAAM;AAC7B,MAAA,WAAA,CAAY,OAAA,CAAQ,GAAGA,KAAI,CAAA;AAAA,IAC/B,CAAC,CAAA;AAAA,EACL;AAEA,EAAAC,eAAA,CAAU,MAAM;AACZ,IAAA,IAAI,QAAA,EAAU;AACV,MAAA,MAAA,CAAO,OAAA,CAAQ,QAAQ,CAAA,CAAE,OAAA,CAAQ,CAAC,CAAC,CAAA,EAAG,IAAI,CAAA,KAAM;AAC5C,QAAA,WAAA,CAAY,OAAA,CAAQ,GAAG,IAAI,CAAA;AAAA,MAC/B,CAAC,CAAA;AAAA,IACL;AAAA,EACJ,CAAA,EAAG,CAAC,QAAQ,CAAC,CAAA;AAEb,EAAAA,eAAA,CAAU,MAAM;AACZ,IAAA,IAAI,MAAA,EAAQ;AACR,MAAA,WAAA,CAAY,OAAO,MAAM,CAAA;AAAA,IAC7B;AAAA,EACJ,CAAA,EAAG,CAAC,MAAM,CAAC,CAAA;AAEX,EAAA,sCAAQ,WAAA,CAAY,QAAA,EAAZ,EAAqB,KAAA,EAAO,aAAc,QAAA,EAAS,CAAA;AAC/D","file":"i18n-provider.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { PropsWithChildren } from 'react';\nimport { createContext, useState, useRef, useEffect } from 'react';\n\nimport type { Dict, I18n } from '../libs/i18n';\nimport { i18n, defaultLanguage } from '../libs/i18n';\n\nexport interface I18nContextType {\n activeLocale: string;\n t: I18n['t'];\n locale: (lang: string, dict?: Dict) => void;\n addDict: (lang: string, dict: Dict) => void;\n}\n\nexport const I18nContext = createContext<I18nContextType | null>(null);\n\nexport interface I18nProviderProps extends PropsWithChildren {\n locale?: string;\n lngDicts?: Record<string, Dict>;\n}\n\nexport const I18nProvider = ({ children, locale, lngDicts }: I18nProviderProps) => {\n const activeLocaleRef = useRef(locale || defaultLanguage);\n const [, setTick] = useState(0);\n const firstRender = useRef(true);\n\n const i18nWrapper: I18nContextType = {\n activeLocale: activeLocaleRef.current,\n t: (...args) => i18n.t(...args),\n locale: (l, dict) => {\n i18n.locale(l);\n activeLocaleRef.current = l;\n\n if (dict) {\n i18n.set(l, dict);\n }\n\n // force rerender to update view\n setTick((tick) => tick + 1);\n },\n addDict: (l, dict) => {\n i18n.set(l, dict);\n\n // force rerender to update view\n setTick((tick) => tick + 1);\n },\n };\n\n // for initial SSR render\n if (locale && firstRender.current === true) {\n firstRender.current = false;\n const dict = lngDicts?.[locale];\n i18nWrapper.locale(locale, dict);\n\n const restDicts = Object.entries(lngDicts || {}).filter(([l]) => l !== locale);\n restDicts.forEach(([l, dict]) => {\n i18nWrapper.addDict(l, dict);\n });\n }\n\n useEffect(() => {\n if (lngDicts) {\n Object.entries(lngDicts).forEach(([l, dict]) => {\n i18nWrapper.addDict(l, dict);\n });\n }\n }, [lngDicts]);\n\n useEffect(() => {\n if (locale) {\n i18nWrapper.locale(locale);\n }\n }, [locale]);\n\n return <I18nContext.Provider value={i18nWrapper}>{children}</I18nContext.Provider>;\n};\n"]}
@@ -0,0 +1,52 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { createContext, useRef, useState, useEffect } from 'react';
3
+ import { defaultLanguage, i18n } from '../libs/i18n';
4
+
5
+ const I18nContext = createContext(null);
6
+ const I18nProvider = ({ children, locale, lngDicts }) => {
7
+ const activeLocaleRef = useRef(locale || defaultLanguage);
8
+ const [, setTick] = useState(0);
9
+ const firstRender = useRef(true);
10
+ const i18nWrapper = {
11
+ activeLocale: activeLocaleRef.current,
12
+ t: (...args) => i18n.t(...args),
13
+ locale: (l, dict) => {
14
+ i18n.locale(l);
15
+ activeLocaleRef.current = l;
16
+ if (dict) {
17
+ i18n.set(l, dict);
18
+ }
19
+ setTick((tick) => tick + 1);
20
+ },
21
+ addDict: (l, dict) => {
22
+ i18n.set(l, dict);
23
+ setTick((tick) => tick + 1);
24
+ }
25
+ };
26
+ if (locale && firstRender.current === true) {
27
+ firstRender.current = false;
28
+ const dict = lngDicts?.[locale];
29
+ i18nWrapper.locale(locale, dict);
30
+ const restDicts = Object.entries(lngDicts || {}).filter(([l]) => l !== locale);
31
+ restDicts.forEach(([l, dict2]) => {
32
+ i18nWrapper.addDict(l, dict2);
33
+ });
34
+ }
35
+ useEffect(() => {
36
+ if (lngDicts) {
37
+ Object.entries(lngDicts).forEach(([l, dict]) => {
38
+ i18nWrapper.addDict(l, dict);
39
+ });
40
+ }
41
+ }, [lngDicts]);
42
+ useEffect(() => {
43
+ if (locale) {
44
+ i18nWrapper.locale(locale);
45
+ }
46
+ }, [locale]);
47
+ return /* @__PURE__ */ jsx(I18nContext.Provider, { value: i18nWrapper, children });
48
+ };
49
+
50
+ export { I18nContext, I18nProvider };
51
+ //# sourceMappingURL=i18n-provider.mjs.map
52
+ //# sourceMappingURL=i18n-provider.mjs.map