@xyo-network/react-connected-accounts 2.81.9 → 2.82.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (510) hide show
  1. package/dist/browser/classes/index.d.cts +1 -1
  2. package/dist/browser/classes/index.d.mts +1 -1
  3. package/dist/browser/classes/index.d.ts +1 -1
  4. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts +2 -1
  5. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  6. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts +2 -1
  7. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  8. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts +2 -1
  9. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  10. package/dist/browser/components/index.d.cts +2 -2
  11. package/dist/browser/components/index.d.cts.map +1 -1
  12. package/dist/browser/components/index.d.mts +2 -2
  13. package/dist/browser/components/index.d.mts.map +1 -1
  14. package/dist/browser/components/index.d.ts +2 -2
  15. package/dist/browser/components/index.d.ts.map +1 -1
  16. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  17. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  18. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  19. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  20. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  21. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  22. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  23. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  24. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  25. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  26. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  27. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  28. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  29. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  30. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  31. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  32. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  33. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  34. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  35. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  36. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  37. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  38. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  39. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  40. package/dist/browser/components/wallet/dialogs/connect/index.d.cts +2 -2
  41. package/dist/browser/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  42. package/dist/browser/components/wallet/dialogs/connect/index.d.mts +2 -2
  43. package/dist/browser/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  44. package/dist/browser/components/wallet/dialogs/connect/index.d.ts +2 -2
  45. package/dist/browser/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  46. package/dist/browser/components/wallet/dialogs/index.d.cts +2 -2
  47. package/dist/browser/components/wallet/dialogs/index.d.mts +2 -2
  48. package/dist/browser/components/wallet/dialogs/index.d.ts +2 -2
  49. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  50. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  51. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  52. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  53. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  54. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  55. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts +1 -1
  56. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  57. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts +1 -1
  58. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  59. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts +1 -1
  60. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  61. package/dist/browser/components/wallet/index.d.cts +2 -2
  62. package/dist/browser/components/wallet/index.d.mts +2 -2
  63. package/dist/browser/components/wallet/index.d.ts +2 -2
  64. package/dist/browser/components/wallet/lib/index.d.cts +2 -2
  65. package/dist/browser/components/wallet/lib/index.d.mts +2 -2
  66. package/dist/browser/components/wallet/lib/index.d.ts +2 -2
  67. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  68. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  69. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  70. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  71. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  72. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  73. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  74. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  75. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  76. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  77. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  78. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  79. package/dist/browser/components/wallet/table/cells/Accounts.d.cts +2 -1
  80. package/dist/browser/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  81. package/dist/browser/components/wallet/table/cells/Accounts.d.mts +2 -1
  82. package/dist/browser/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  83. package/dist/browser/components/wallet/table/cells/Accounts.d.ts +2 -1
  84. package/dist/browser/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  85. package/dist/browser/components/wallet/table/cells/Actions.d.cts +2 -1
  86. package/dist/browser/components/wallet/table/cells/Actions.d.cts.map +1 -1
  87. package/dist/browser/components/wallet/table/cells/Actions.d.mts +2 -1
  88. package/dist/browser/components/wallet/table/cells/Actions.d.mts.map +1 -1
  89. package/dist/browser/components/wallet/table/cells/Actions.d.ts +2 -1
  90. package/dist/browser/components/wallet/table/cells/Actions.d.ts.map +1 -1
  91. package/dist/browser/components/wallet/table/cells/Cells.d.cts +1 -1
  92. package/dist/browser/components/wallet/table/cells/Cells.d.mts +1 -1
  93. package/dist/browser/components/wallet/table/cells/Cells.d.ts +1 -1
  94. package/dist/browser/components/wallet/table/cells/ChainName.d.cts +2 -1
  95. package/dist/browser/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  96. package/dist/browser/components/wallet/table/cells/ChainName.d.mts +2 -1
  97. package/dist/browser/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  98. package/dist/browser/components/wallet/table/cells/ChainName.d.ts +2 -1
  99. package/dist/browser/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  100. package/dist/browser/components/wallet/table/cells/State.d.cts +2 -1
  101. package/dist/browser/components/wallet/table/cells/State.d.cts.map +1 -1
  102. package/dist/browser/components/wallet/table/cells/State.d.mts +2 -1
  103. package/dist/browser/components/wallet/table/cells/State.d.mts.map +1 -1
  104. package/dist/browser/components/wallet/table/cells/State.d.ts +2 -1
  105. package/dist/browser/components/wallet/table/cells/State.d.ts.map +1 -1
  106. package/dist/browser/components/wallet/table/cells/Wallet.d.cts +2 -1
  107. package/dist/browser/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  108. package/dist/browser/components/wallet/table/cells/Wallet.d.mts +2 -1
  109. package/dist/browser/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  110. package/dist/browser/components/wallet/table/cells/Wallet.d.ts +2 -1
  111. package/dist/browser/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  112. package/dist/browser/components/wallet/table/cells/index.d.cts +6 -6
  113. package/dist/browser/components/wallet/table/cells/index.d.cts.map +1 -1
  114. package/dist/browser/components/wallet/table/cells/index.d.mts +6 -6
  115. package/dist/browser/components/wallet/table/cells/index.d.mts.map +1 -1
  116. package/dist/browser/components/wallet/table/cells/index.d.ts +6 -6
  117. package/dist/browser/components/wallet/table/cells/index.d.ts.map +1 -1
  118. package/dist/browser/components/wallet/table/cells/lib/index.d.cts +1 -1
  119. package/dist/browser/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  120. package/dist/browser/components/wallet/table/cells/lib/index.d.mts +1 -1
  121. package/dist/browser/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  122. package/dist/browser/components/wallet/table/cells/lib/index.d.ts +1 -1
  123. package/dist/browser/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  124. package/dist/browser/components/wallet/table/hooks/index.d.cts +1 -1
  125. package/dist/browser/components/wallet/table/hooks/index.d.cts.map +1 -1
  126. package/dist/browser/components/wallet/table/hooks/index.d.mts +1 -1
  127. package/dist/browser/components/wallet/table/hooks/index.d.mts.map +1 -1
  128. package/dist/browser/components/wallet/table/hooks/index.d.ts +1 -1
  129. package/dist/browser/components/wallet/table/hooks/index.d.ts.map +1 -1
  130. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  131. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  132. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  133. package/dist/browser/components/wallet/table/index.d.cts +4 -4
  134. package/dist/browser/components/wallet/table/index.d.cts.map +1 -1
  135. package/dist/browser/components/wallet/table/index.d.mts +4 -4
  136. package/dist/browser/components/wallet/table/index.d.mts.map +1 -1
  137. package/dist/browser/components/wallet/table/index.d.ts +4 -4
  138. package/dist/browser/components/wallet/table/index.d.ts.map +1 -1
  139. package/dist/browser/hooks/index.d.cts +2 -2
  140. package/dist/browser/hooks/index.d.cts.map +1 -1
  141. package/dist/browser/hooks/index.d.mts +2 -2
  142. package/dist/browser/hooks/index.d.mts.map +1 -1
  143. package/dist/browser/hooks/index.d.ts +2 -2
  144. package/dist/browser/hooks/index.d.ts.map +1 -1
  145. package/dist/browser/hooks/useDetectWallets.d.cts.map +1 -1
  146. package/dist/browser/hooks/useDetectWallets.d.mts.map +1 -1
  147. package/dist/browser/hooks/useDetectWallets.d.ts.map +1 -1
  148. package/dist/browser/hooks/useEnabledWallets.d.cts +1 -1
  149. package/dist/browser/hooks/useEnabledWallets.d.mts +1 -1
  150. package/dist/browser/hooks/useEnabledWallets.d.ts +1 -1
  151. package/dist/browser/index.cjs +339 -260
  152. package/dist/browser/index.cjs.map +1 -1
  153. package/dist/browser/index.d.cts +3 -3
  154. package/dist/browser/index.d.mts +3 -3
  155. package/dist/browser/index.d.ts +3 -3
  156. package/dist/browser/index.mjs +623 -0
  157. package/dist/browser/index.mjs.map +1 -0
  158. package/dist/neutral/classes/index.d.cts +1 -1
  159. package/dist/neutral/classes/index.d.mts +1 -1
  160. package/dist/neutral/classes/index.d.ts +1 -1
  161. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts +2 -1
  162. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  163. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts +2 -1
  164. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  165. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts +2 -1
  166. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  167. package/dist/neutral/components/index.d.cts +2 -2
  168. package/dist/neutral/components/index.d.cts.map +1 -1
  169. package/dist/neutral/components/index.d.mts +2 -2
  170. package/dist/neutral/components/index.d.mts.map +1 -1
  171. package/dist/neutral/components/index.d.ts +2 -2
  172. package/dist/neutral/components/index.d.ts.map +1 -1
  173. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  174. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  175. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  176. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  177. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  178. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  179. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  180. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  181. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  182. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  183. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  184. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  185. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  186. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  187. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  188. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  189. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  190. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  191. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  192. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  193. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  194. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  195. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  196. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  197. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts +2 -2
  198. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  199. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts +2 -2
  200. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  201. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts +2 -2
  202. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  203. package/dist/neutral/components/wallet/dialogs/index.d.cts +2 -2
  204. package/dist/neutral/components/wallet/dialogs/index.d.mts +2 -2
  205. package/dist/neutral/components/wallet/dialogs/index.d.ts +2 -2
  206. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  207. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  208. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  209. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  210. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  211. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  212. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts +1 -1
  213. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  214. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts +1 -1
  215. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  216. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts +1 -1
  217. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  218. package/dist/neutral/components/wallet/index.d.cts +2 -2
  219. package/dist/neutral/components/wallet/index.d.mts +2 -2
  220. package/dist/neutral/components/wallet/index.d.ts +2 -2
  221. package/dist/neutral/components/wallet/lib/index.d.cts +2 -2
  222. package/dist/neutral/components/wallet/lib/index.d.mts +2 -2
  223. package/dist/neutral/components/wallet/lib/index.d.ts +2 -2
  224. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  225. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  226. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  227. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  228. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  229. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  230. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  231. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  232. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  233. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  234. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  235. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  236. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts +2 -1
  237. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  238. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts +2 -1
  239. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  240. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts +2 -1
  241. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  242. package/dist/neutral/components/wallet/table/cells/Actions.d.cts +2 -1
  243. package/dist/neutral/components/wallet/table/cells/Actions.d.cts.map +1 -1
  244. package/dist/neutral/components/wallet/table/cells/Actions.d.mts +2 -1
  245. package/dist/neutral/components/wallet/table/cells/Actions.d.mts.map +1 -1
  246. package/dist/neutral/components/wallet/table/cells/Actions.d.ts +2 -1
  247. package/dist/neutral/components/wallet/table/cells/Actions.d.ts.map +1 -1
  248. package/dist/neutral/components/wallet/table/cells/Cells.d.cts +1 -1
  249. package/dist/neutral/components/wallet/table/cells/Cells.d.mts +1 -1
  250. package/dist/neutral/components/wallet/table/cells/Cells.d.ts +1 -1
  251. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts +2 -1
  252. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  253. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts +2 -1
  254. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  255. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts +2 -1
  256. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  257. package/dist/neutral/components/wallet/table/cells/State.d.cts +2 -1
  258. package/dist/neutral/components/wallet/table/cells/State.d.cts.map +1 -1
  259. package/dist/neutral/components/wallet/table/cells/State.d.mts +2 -1
  260. package/dist/neutral/components/wallet/table/cells/State.d.mts.map +1 -1
  261. package/dist/neutral/components/wallet/table/cells/State.d.ts +2 -1
  262. package/dist/neutral/components/wallet/table/cells/State.d.ts.map +1 -1
  263. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts +2 -1
  264. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  265. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts +2 -1
  266. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  267. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts +2 -1
  268. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  269. package/dist/neutral/components/wallet/table/cells/index.d.cts +6 -6
  270. package/dist/neutral/components/wallet/table/cells/index.d.cts.map +1 -1
  271. package/dist/neutral/components/wallet/table/cells/index.d.mts +6 -6
  272. package/dist/neutral/components/wallet/table/cells/index.d.mts.map +1 -1
  273. package/dist/neutral/components/wallet/table/cells/index.d.ts +6 -6
  274. package/dist/neutral/components/wallet/table/cells/index.d.ts.map +1 -1
  275. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts +1 -1
  276. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  277. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts +1 -1
  278. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  279. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts +1 -1
  280. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  281. package/dist/neutral/components/wallet/table/hooks/index.d.cts +1 -1
  282. package/dist/neutral/components/wallet/table/hooks/index.d.cts.map +1 -1
  283. package/dist/neutral/components/wallet/table/hooks/index.d.mts +1 -1
  284. package/dist/neutral/components/wallet/table/hooks/index.d.mts.map +1 -1
  285. package/dist/neutral/components/wallet/table/hooks/index.d.ts +1 -1
  286. package/dist/neutral/components/wallet/table/hooks/index.d.ts.map +1 -1
  287. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  288. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  289. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  290. package/dist/neutral/components/wallet/table/index.d.cts +4 -4
  291. package/dist/neutral/components/wallet/table/index.d.cts.map +1 -1
  292. package/dist/neutral/components/wallet/table/index.d.mts +4 -4
  293. package/dist/neutral/components/wallet/table/index.d.mts.map +1 -1
  294. package/dist/neutral/components/wallet/table/index.d.ts +4 -4
  295. package/dist/neutral/components/wallet/table/index.d.ts.map +1 -1
  296. package/dist/neutral/hooks/index.d.cts +2 -2
  297. package/dist/neutral/hooks/index.d.cts.map +1 -1
  298. package/dist/neutral/hooks/index.d.mts +2 -2
  299. package/dist/neutral/hooks/index.d.mts.map +1 -1
  300. package/dist/neutral/hooks/index.d.ts +2 -2
  301. package/dist/neutral/hooks/index.d.ts.map +1 -1
  302. package/dist/neutral/hooks/useDetectWallets.d.cts.map +1 -1
  303. package/dist/neutral/hooks/useDetectWallets.d.mts.map +1 -1
  304. package/dist/neutral/hooks/useDetectWallets.d.ts.map +1 -1
  305. package/dist/neutral/hooks/useEnabledWallets.d.cts +1 -1
  306. package/dist/neutral/hooks/useEnabledWallets.d.mts +1 -1
  307. package/dist/neutral/hooks/useEnabledWallets.d.ts +1 -1
  308. package/dist/neutral/index.cjs +339 -260
  309. package/dist/neutral/index.cjs.map +1 -1
  310. package/dist/neutral/index.d.cts +3 -3
  311. package/dist/neutral/index.d.mts +3 -3
  312. package/dist/neutral/index.d.ts +3 -3
  313. package/dist/neutral/index.mjs +623 -0
  314. package/dist/neutral/index.mjs.map +1 -0
  315. package/dist/node/classes/index.d.cts +1 -1
  316. package/dist/node/classes/index.d.mts +1 -1
  317. package/dist/node/classes/index.d.ts +1 -1
  318. package/dist/node/components/ConnectedAccountsFlexbox.d.cts +2 -1
  319. package/dist/node/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  320. package/dist/node/components/ConnectedAccountsFlexbox.d.mts +2 -1
  321. package/dist/node/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  322. package/dist/node/components/ConnectedAccountsFlexbox.d.ts +2 -1
  323. package/dist/node/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  324. package/dist/node/components/index.d.cts +2 -2
  325. package/dist/node/components/index.d.cts.map +1 -1
  326. package/dist/node/components/index.d.mts +2 -2
  327. package/dist/node/components/index.d.mts.map +1 -1
  328. package/dist/node/components/index.d.ts +2 -2
  329. package/dist/node/components/index.d.ts.map +1 -1
  330. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  331. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  332. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  333. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  334. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  335. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  336. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  337. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  338. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  339. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  340. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  341. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  342. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  343. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  344. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  345. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  346. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  347. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  348. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  349. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  350. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  351. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  352. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  353. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  354. package/dist/node/components/wallet/dialogs/connect/index.d.cts +2 -2
  355. package/dist/node/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  356. package/dist/node/components/wallet/dialogs/connect/index.d.mts +2 -2
  357. package/dist/node/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  358. package/dist/node/components/wallet/dialogs/connect/index.d.ts +2 -2
  359. package/dist/node/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  360. package/dist/node/components/wallet/dialogs/index.d.cts +2 -2
  361. package/dist/node/components/wallet/dialogs/index.d.mts +2 -2
  362. package/dist/node/components/wallet/dialogs/index.d.ts +2 -2
  363. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  364. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  365. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  366. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  367. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  368. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  369. package/dist/node/components/wallet/dialogs/revoke/index.d.cts +1 -1
  370. package/dist/node/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  371. package/dist/node/components/wallet/dialogs/revoke/index.d.mts +1 -1
  372. package/dist/node/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  373. package/dist/node/components/wallet/dialogs/revoke/index.d.ts +1 -1
  374. package/dist/node/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  375. package/dist/node/components/wallet/index.d.cts +2 -2
  376. package/dist/node/components/wallet/index.d.mts +2 -2
  377. package/dist/node/components/wallet/index.d.ts +2 -2
  378. package/dist/node/components/wallet/lib/index.d.cts +2 -2
  379. package/dist/node/components/wallet/lib/index.d.mts +2 -2
  380. package/dist/node/components/wallet/lib/index.d.ts +2 -2
  381. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  382. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  383. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  384. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  385. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  386. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  387. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  388. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  389. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  390. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  391. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  392. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  393. package/dist/node/components/wallet/table/cells/Accounts.d.cts +2 -1
  394. package/dist/node/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  395. package/dist/node/components/wallet/table/cells/Accounts.d.mts +2 -1
  396. package/dist/node/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  397. package/dist/node/components/wallet/table/cells/Accounts.d.ts +2 -1
  398. package/dist/node/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  399. package/dist/node/components/wallet/table/cells/Actions.d.cts +2 -1
  400. package/dist/node/components/wallet/table/cells/Actions.d.cts.map +1 -1
  401. package/dist/node/components/wallet/table/cells/Actions.d.mts +2 -1
  402. package/dist/node/components/wallet/table/cells/Actions.d.mts.map +1 -1
  403. package/dist/node/components/wallet/table/cells/Actions.d.ts +2 -1
  404. package/dist/node/components/wallet/table/cells/Actions.d.ts.map +1 -1
  405. package/dist/node/components/wallet/table/cells/Cells.d.cts +1 -1
  406. package/dist/node/components/wallet/table/cells/Cells.d.mts +1 -1
  407. package/dist/node/components/wallet/table/cells/Cells.d.ts +1 -1
  408. package/dist/node/components/wallet/table/cells/ChainName.d.cts +2 -1
  409. package/dist/node/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  410. package/dist/node/components/wallet/table/cells/ChainName.d.mts +2 -1
  411. package/dist/node/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  412. package/dist/node/components/wallet/table/cells/ChainName.d.ts +2 -1
  413. package/dist/node/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  414. package/dist/node/components/wallet/table/cells/State.d.cts +2 -1
  415. package/dist/node/components/wallet/table/cells/State.d.cts.map +1 -1
  416. package/dist/node/components/wallet/table/cells/State.d.mts +2 -1
  417. package/dist/node/components/wallet/table/cells/State.d.mts.map +1 -1
  418. package/dist/node/components/wallet/table/cells/State.d.ts +2 -1
  419. package/dist/node/components/wallet/table/cells/State.d.ts.map +1 -1
  420. package/dist/node/components/wallet/table/cells/Wallet.d.cts +2 -1
  421. package/dist/node/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  422. package/dist/node/components/wallet/table/cells/Wallet.d.mts +2 -1
  423. package/dist/node/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  424. package/dist/node/components/wallet/table/cells/Wallet.d.ts +2 -1
  425. package/dist/node/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  426. package/dist/node/components/wallet/table/cells/index.d.cts +6 -6
  427. package/dist/node/components/wallet/table/cells/index.d.cts.map +1 -1
  428. package/dist/node/components/wallet/table/cells/index.d.mts +6 -6
  429. package/dist/node/components/wallet/table/cells/index.d.mts.map +1 -1
  430. package/dist/node/components/wallet/table/cells/index.d.ts +6 -6
  431. package/dist/node/components/wallet/table/cells/index.d.ts.map +1 -1
  432. package/dist/node/components/wallet/table/cells/lib/index.d.cts +1 -1
  433. package/dist/node/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  434. package/dist/node/components/wallet/table/cells/lib/index.d.mts +1 -1
  435. package/dist/node/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  436. package/dist/node/components/wallet/table/cells/lib/index.d.ts +1 -1
  437. package/dist/node/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  438. package/dist/node/components/wallet/table/hooks/index.d.cts +1 -1
  439. package/dist/node/components/wallet/table/hooks/index.d.cts.map +1 -1
  440. package/dist/node/components/wallet/table/hooks/index.d.mts +1 -1
  441. package/dist/node/components/wallet/table/hooks/index.d.mts.map +1 -1
  442. package/dist/node/components/wallet/table/hooks/index.d.ts +1 -1
  443. package/dist/node/components/wallet/table/hooks/index.d.ts.map +1 -1
  444. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  445. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  446. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  447. package/dist/node/components/wallet/table/index.d.cts +4 -4
  448. package/dist/node/components/wallet/table/index.d.cts.map +1 -1
  449. package/dist/node/components/wallet/table/index.d.mts +4 -4
  450. package/dist/node/components/wallet/table/index.d.mts.map +1 -1
  451. package/dist/node/components/wallet/table/index.d.ts +4 -4
  452. package/dist/node/components/wallet/table/index.d.ts.map +1 -1
  453. package/dist/node/hooks/index.d.cts +2 -2
  454. package/dist/node/hooks/index.d.cts.map +1 -1
  455. package/dist/node/hooks/index.d.mts +2 -2
  456. package/dist/node/hooks/index.d.mts.map +1 -1
  457. package/dist/node/hooks/index.d.ts +2 -2
  458. package/dist/node/hooks/index.d.ts.map +1 -1
  459. package/dist/node/hooks/useDetectWallets.d.cts.map +1 -1
  460. package/dist/node/hooks/useDetectWallets.d.mts.map +1 -1
  461. package/dist/node/hooks/useDetectWallets.d.ts.map +1 -1
  462. package/dist/node/hooks/useEnabledWallets.d.cts +1 -1
  463. package/dist/node/hooks/useEnabledWallets.d.mts +1 -1
  464. package/dist/node/hooks/useEnabledWallets.d.ts +1 -1
  465. package/dist/node/index.cjs +346 -268
  466. package/dist/node/index.cjs.map +1 -1
  467. package/dist/node/index.d.cts +3 -3
  468. package/dist/node/index.d.mts +3 -3
  469. package/dist/node/index.d.ts +3 -3
  470. package/dist/node/index.mjs +633 -0
  471. package/dist/node/index.mjs.map +1 -0
  472. package/package.json +11 -11
  473. package/src/classes/EnabledWallets.ts +1 -1
  474. package/src/classes/index.ts +1 -1
  475. package/src/components/ConnectedAccountsFlexbox.stories.tsx +2 -4
  476. package/src/components/ConnectedAccountsFlexbox.tsx +13 -9
  477. package/src/components/index.ts +2 -2
  478. package/src/components/wallet/dialogs/connect/CheckboxFormControl.tsx +1 -0
  479. package/src/components/wallet/dialogs/connect/Dialog.tsx +5 -4
  480. package/src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx +4 -3
  481. package/src/components/wallet/dialogs/connect/Permissions.tsx +3 -1
  482. package/src/components/wallet/dialogs/connect/index.ts +2 -2
  483. package/src/components/wallet/dialogs/index.ts +2 -2
  484. package/src/components/wallet/dialogs/revoke/Dialog.tsx +13 -4
  485. package/src/components/wallet/dialogs/revoke/index.ts +1 -1
  486. package/src/components/wallet/index.ts +2 -2
  487. package/src/components/wallet/lib/index.ts +2 -2
  488. package/src/components/wallet/table/ConnectedWalletsTable.tsx +6 -6
  489. package/src/components/wallet/table/ConnectedWalletsTableRow.tsx +3 -3
  490. package/src/components/wallet/table/cells/Accounts.tsx +2 -1
  491. package/src/components/wallet/table/cells/Actions.tsx +21 -15
  492. package/src/components/wallet/table/cells/Cells.tsx +6 -6
  493. package/src/components/wallet/table/cells/ChainName.tsx +2 -1
  494. package/src/components/wallet/table/cells/State.tsx +4 -3
  495. package/src/components/wallet/table/cells/Wallet.tsx +2 -1
  496. package/src/components/wallet/table/cells/index.ts +6 -6
  497. package/src/components/wallet/table/cells/lib/index.ts +1 -1
  498. package/src/components/wallet/table/hooks/index.ts +1 -1
  499. package/src/components/wallet/table/hooks/useActiveProviderDialogState.tsx +1 -1
  500. package/src/components/wallet/table/index.ts +4 -4
  501. package/src/hooks/index.ts +2 -2
  502. package/src/hooks/useDetectWallets.tsx +2 -1
  503. package/src/hooks/useEnabledWallets.tsx +1 -1
  504. package/src/index.ts +3 -3
  505. package/dist/browser/index.js +0 -542
  506. package/dist/browser/index.js.map +0 -1
  507. package/dist/neutral/index.js +0 -542
  508. package/dist/neutral/index.js.map +0 -1
  509. package/dist/node/index.js +0 -553
  510. package/dist/node/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/classes/EnabledWallets.ts","../../src/components/ConnectedAccountsFlexbox.tsx","../../src/hooks/useDetectWallets.tsx","../../src/hooks/useEnabledWallets.tsx","../../src/components/wallet/dialogs/connect/CheckboxFormControl.tsx","../../src/components/wallet/dialogs/connect/Dialog.tsx","../../src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx","../../src/img/index.ts","../../src/components/wallet/dialogs/connect/Permissions.tsx","../../src/components/wallet/dialogs/revoke/Dialog.tsx","../../src/components/wallet/table/cells/Accounts.tsx","../../src/components/wallet/table/cells/Actions.tsx","../../src/components/wallet/table/cells/ChainName.tsx","../../src/components/wallet/table/cells/State.tsx","../../src/components/wallet/table/cells/Wallet.tsx","../../src/components/wallet/table/cells/Cells.tsx","../../src/components/wallet/table/ConnectedWalletsTable.tsx","../../src/components/wallet/lib/TableHeadData.ts","../../src/components/wallet/table/ConnectedWalletsTableRow.tsx","../../src/components/wallet/table/hooks/useActiveProviderDialogState.tsx"],"sourcesContent":["import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto'\n\nconst DEFAULT_LOCAL_STORAGE_KEY = 'XYO|EnabledWallets'\n\n/**\n * State for storing wallets and their enabled/disabled status by name\n */\nexport interface EnabledEthWalletsState {\n [rdns: string]: {\n enabled: boolean\n wallet: EIP6963Connector\n }\n}\n\n/**\n * State for storing only enabled/disabled status of a wallet by name\n */\nexport interface EnabledWalletsSavedState {\n [rdns: string]: boolean\n}\n\nexport type WalletListener = () => void\n\nexport class EnabledEthWalletConnections {\n // control whether or not enabled/disabled preferences are persisted (i.e. in localStorage)\n persistPreferences = true\n\n // Map of wallet names and their enabled/disabled state\n private enabledWallets: EnabledWalletsSavedState = {}\n\n // Map of wallet names, their enabled/disabled state, and their wallet class\n private ethWalletsState: EnabledEthWalletsState = {}\n\n // list of listeners that want to be notified on wallet changes\n private listeners: WalletListener[] = []\n\n // key to use in localStorage when persisting preferences\n private localStorageKey = DEFAULT_LOCAL_STORAGE_KEY\n\n constructor(localStorageKey = DEFAULT_LOCAL_STORAGE_KEY) {\n this.localStorageKey = localStorageKey\n this.reviveSettings()\n }\n\n get wallets() {\n return this.ethWalletsState\n }\n\n disableWallet(rdns: string) {\n this.toggleEnabledWallet(rdns, false)\n }\n\n enableWallet(rdns: string) {\n this.toggleEnabledWallet(rdns, true)\n }\n\n /**\n * Given a new set of wallets, set their enabled state based off previous preferences\n */\n resetWallets(wallets: DiscoveredWallets) {\n const newWallets: EnabledEthWalletsState = {}\n\n const addWallet = ([walletName, wallet]: [string, EIP6963Connector]) => {\n newWallets[walletName] = {\n // preserve the existing enabled state\n enabled: walletName in this.enabledWallets ? this.enabledWallets[walletName] : true,\n wallet,\n }\n }\n\n // eslint-disable-next-line unicorn/no-array-for-each\n Object.entries(wallets).forEach(addWallet.bind(this))\n this.ethWalletsState = newWallets\n this.emitChange()\n }\n\n subscribe(listener: WalletListener) {\n this.listeners = [...this.listeners, listener]\n return () => {\n this.listeners = this.listeners.filter(existingListener => existingListener !== listener)\n }\n }\n\n toggleEnabledWallet(rdns: string, enabled: boolean) {\n if (rdns && this.ethWalletsState[rdns]) {\n this.ethWalletsState[rdns].enabled = enabled\n this.ethWalletsState = { ...this.ethWalletsState }\n this.emitChange()\n }\n }\n\n private emitChange() {\n for (const listener of this.listeners) {\n listener()\n }\n\n this.persistSettings()\n }\n\n private isPersistance(method: () => void) {\n if (this.persistPreferences) {\n method()\n }\n }\n\n private persistSettings() {\n this.isPersistance(() => {\n // convert wallet enabled selections into serializable state\n // eslint-disable-next-line unicorn/no-array-reduce\n const enabledWallets = Object.entries(this.ethWalletsState).reduce((acc, [rdns, { enabled }]) => {\n acc[rdns] = enabled\n return acc\n }, {} as EnabledWalletsSavedState)\n\n localStorage.setItem(this.localStorageKey, JSON.stringify(enabledWallets))\n })\n }\n\n private reviveSettings() {\n this.isPersistance(() => {\n const existingEntries = localStorage.getItem(this.localStorageKey)\n try {\n const entries = existingEntries ? JSON.parse(existingEntries) : {}\n this.enabledWallets = entries\n } catch (e) {\n console.warn(`Error parsing saved enabled wallet entries: ${(e as Error).message}`)\n }\n })\n }\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport React, { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks/index.ts'\nimport { ConnectedWalletsTable } from './wallet/index.ts'\n\nexport interface ConnectedAccountsFlexboxProps extends FlexBoxProps {\n ignoreConnectDialog?: boolean\n // A callback that is invoked when the option to ignore the dialog is checked\n onIgnoreConnectDialog?: (checked: boolean) => void\n}\n\nexport const ConnectedAccountsFlexbox = forwardRef<HTMLDivElement, ConnectedAccountsFlexboxProps>(\n ({ ignoreConnectDialog, onIgnoreConnectDialog, ...props }, ref) => {\n const theme = useTheme()\n\n const { totalConnectedAccounts, sortedWallets } = useDetectedWallets()\n\n return (\n <FlexCol alignItems=\"stretch\" justifyContent=\"start\" gap={2} ref={ref} {...props}>\n <FlexCol alignItems=\"start\">\n <Typography variant=\"h2\" sx={{ mb: 0.5 }}>\n Detected Web3 Wallets\n </Typography>\n {totalConnectedAccounts\n ? (\n <Typography variant=\"subtitle1\" color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts:\n {' '}\n {totalConnectedAccounts}\n </Typography>\n )\n : null}\n </FlexCol>\n <ConnectedWalletsTable wallets={sortedWallets} ignoreConnectDialog={ignoreConnectDialog} onIgnoreConnectDialog={onIgnoreConnectDialog} />\n </FlexCol>\n )\n },\n)\n\nConnectedAccountsFlexbox.displayName = 'ConnectedAccountsFlexbox'\n","import { AccountsChangedEventName, DiscoveredWallets, EIP6963Connector, useWalletDiscovery } from '@xylabs/react-crypto'\nimport { useEffect, useMemo, useState } from 'react'\n\nconst sortWallets = (wallets: DiscoveredWallets) =>\n // eslint-disable-next-line unicorn/no-array-reduce\n Object.values(wallets).reduce((acc, wallet) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n wallet.allowedAccounts.length > 0 ? acc.unshift(wallet) : acc.push(wallet)\n return acc\n }, [] as EIP6963Connector[])\n\nexport const useDetectedWallets = () => {\n const wallets = useWalletDiscovery()\n const [refresh, setRefresh] = useState(0)\n const [sortedWallets, setSortedWallets] = useState<EIP6963Connector[]>([])\n\n useEffect(() => {\n setSortedWallets(sortWallets(wallets))\n }, [wallets, refresh])\n\n /**\n * Rely on custom events from the wallet base class to know when accounts are changed.\n * This approach prevents the need to loop through all wallets and set up individual listeners.\n */\n useEffect(() => {\n const listener: (event: CustomEventInit) => void = () => {\n setRefresh(refresh => refresh + 1)\n }\n window.addEventListener(AccountsChangedEventName, listener)\n\n return () => {\n window.removeEventListener(AccountsChangedEventName, listener)\n }\n }, [wallets])\n\n const totalConnectedAccounts = useMemo(\n () => Object.values(sortedWallets).reduce((acc, wallet) => acc + wallet.allowedAccounts.length, 0),\n [sortedWallets],\n )\n\n return { sortedWallets, totalConnectedAccounts }\n}\n","import { useWalletDiscovery } from '@xylabs/react-crypto'\nimport { useMemo, useSyncExternalStore } from 'react'\n\nimport { EnabledEthWalletConnections, EnabledEthWalletsState, EnabledWalletsSavedState } from '../classes/index.ts'\n\nlet enabledEthWallets: EnabledEthWalletConnections | undefined\n\n/**\n * Takes the discovered wallets and tracks their enabled state globally\n */\nexport const useEnabledWalletsInner = (enabledWalletsRdns?: EnabledWalletsSavedState) => {\n const discoveredWallets = useWalletDiscovery()\n\n // when we discover new wallets, build their enabled state\n const wallets = useMemo(() => {\n if (enabledEthWallets === undefined) enabledEthWallets = new EnabledEthWalletConnections()\n enabledEthWallets.resetWallets(discoveredWallets)\n for (const [rdns, enabled] of Object.entries(enabledWalletsRdns ?? {})) enabledEthWallets?.toggleEnabledWallet(rdns, enabled)\n return enabledEthWallets\n }, [discoveredWallets, enabledWalletsRdns])\n\n return useSyncExternalStore(wallets.subscribe.bind(wallets), () => wallets.wallets)\n}\n\n/**\n * Expose an interface for enabling and disabling wallets\n */\nexport const useEnabledWallets = (enabledWalletsRdns?: EnabledWalletsSavedState) => {\n const wallets = useEnabledWalletsInner(enabledWalletsRdns)\n const enabledWallets = useMemo(\n () =>\n // eslint-disable-next-line unicorn/no-array-reduce\n Object.entries(wallets).reduce((acc, [walletName, wallet]) => {\n if (wallet.enabled) acc[walletName] = wallet\n return acc\n }, {} as EnabledEthWalletsState),\n [wallets],\n )\n\n return {\n disableWallet: enabledEthWallets?.disableWallet.bind(enabledEthWallets),\n enableWallet: enabledEthWallets?.enableWallet.bind(enabledEthWallets),\n enabledWallets,\n wallets,\n }\n}\n","import { Checkbox, FormControl, FormControlProps, FormLabel } from '@mui/material'\nimport React from 'react'\n\nexport interface CheckboxFormControlProps extends FormControlProps {\n onCheckChanged?: (checked: boolean) => void\n}\n\nexport const CheckboxFormControl: React.FC<CheckboxFormControlProps> = ({ onCheckChanged, ...props }) => {\n return (\n <FormControl {...props}>\n <FormLabel>\n <Checkbox onChange={(_, checked) => onCheckChanged?.(checked)} />\n Do not show this again.\n </FormLabel>\n </FormControl>\n )\n}\n","import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle } from '@mui/material'\nimport React from 'react'\n\nimport { ActiveProvider } from '../../lib/index.ts'\nimport { CheckboxFormControl } from './CheckboxFormControl.tsx'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox.tsx'\nimport { WalletPermissionsFlexbox } from './Permissions.tsx'\n\nexport interface ConnectWalletDialogProps extends DialogProps {\n activeProvider?: ActiveProvider\n onIgnoreConnectDialog?: (checked: boolean) => void\n}\n\nexport const ConnectWalletDialog: React.FC<ConnectWalletDialogProps> = ({ activeProvider, onIgnoreConnectDialog, ...props }) => {\n const { icon, providerName } = activeProvider ?? {}\n\n const onConnect = async () => {\n try {\n await activeProvider?.connectWallet?.()\n props.onClose?.({}, 'escapeKeyDown')\n } catch (e) {\n console.warn(`Error connecting to wallet: ${(e as Error).message}`)\n }\n }\n\n return (\n <Dialog PaperProps={{ sx: { display: 'flex', gap: 4 } }} {...props}>\n <DialogTitle sx={{ textAlign: 'center' }}>XYO Wants To Access The Blockchain on Your Behalf</DialogTitle>\n <DialogContent sx={{ display: 'flex', flexDirection: 'column', gap: 4 }}>\n <LinkedProvidersFlexbox icon={icon} providerName={providerName} />\n <WalletPermissionsFlexbox />\n <CheckboxFormControl onCheckChanged={onIgnoreConnectDialog} />\n </DialogContent>\n <DialogActions>\n <Button variant=\"outlined\" onClick={() => props.onClose?.({}, 'escapeKeyDown')}>\n Close\n </Button>\n <Button variant=\"contained\" onClick={onConnect}>\n Connect\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n","import { SyncAlt } from '@mui/icons-material'\nimport { Typography } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { xyoColorLogo } from '../../../../img/index.ts'\n\nexport interface LinkedProvidersFlexboxProps extends FlexBoxProps {\n icon?: string\n providerName?: string\n}\n\nexport const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps> = ({ icon, providerName, ...props }) => {\n return (\n <FlexRow gap={4} justifyContent=\"space-evenly\" {...props}>\n <FlexCol gap={0.5}>\n <img alt=\"XYO Logo\" src={xyoColorLogo} style={{ height: '48px' }} />\n <Typography variant=\"subtitle1\">XYO App</Typography>\n </FlexCol>\n <SyncAlt fontSize=\"large\" />\n <FlexCol gap={0.5}>\n <ConstrainedImage constrainedValue=\"48px\" src={icon} alt={providerName} style={{ height: '48px', maxWidth: '48px' }} />\n <Typography variant=\"subtitle1\">{providerName}</Typography>\n </FlexCol>\n </FlexRow>\n )\n}\n","export { default as xyoColorLogo } from './xyo-color-logo.svg'\nexport { default as xyoColorLogoText } from './xyo-color-logo-text-only.svg'\n","import { Link, Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface WalletPermissionsFlexBoxProps extends FlexBoxProps {}\n\nexport const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps> = (props) => {\n return (\n <FlexCol gap={4} {...props}>\n <Typography fontWeight=\"bold\" sx={{ textAlign: 'center' }}>\n This will allow XYO to:\n </Typography>\n <ul>\n <li>View your wallet account(s) and address(es)</li>\n <li>Read-only access to browse the public blockchain(s) you select</li>\n </ul>\n <Typography variant=\"subtitle1\" sx={{ textAlign: 'center' }}>\n You control what accounts to share and what blockchains to view. You can see or revoke access via your wallet&apos;s settings at anytime. View\n more on XYO&apos;s sovereign data philosophy\n {' '}\n <Link\n href=\"https://cointelegraph.com/innovation-circle/decentralization-and-sovereignty-debunking-our-approach-to-digital-sovereignty\"\n sx={{ fontWeight: 'bold' }}\n target=\"_blank\"\n >\n here\n </Link>\n .\n </Typography>\n </FlexCol>\n )\n}\n","import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle, Typography } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { ActiveProvider } from '../../lib/index.ts'\n\nexport interface RevokeWalletConnectionDialogProps extends DialogProps {\n activeProvider?: ActiveProvider\n}\n\nexport const RevokeWalletConnectionDialog: React.FC<RevokeWalletConnectionDialogProps> = ({ activeProvider, ...props }) => {\n return (\n <Dialog {...props}>\n <FlexRow gap={2} justifyContent=\"start\" pl={2}>\n <ConstrainedImage src={activeProvider?.icon} constrainedValue=\"24px\" />\n <DialogTitle sx={{ pl: 0 }}>\n Revoke\n {activeProvider?.providerName}\n {' '}\n Access\n </DialogTitle>\n </FlexRow>\n <DialogContent>\n <Typography>\n Revoking access to your wallet must be done from the wallet&apos;s browser extension. Wallets grant access to specific domains please\n consult\n {' '}\n {activeProvider?.providerName}\n &apos;s documentation on how to revoke access to this website:\n </Typography>\n <Typography>{window.location.origin}</Typography>\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => props.onClose?.({}, 'escapeKeyDown')}>\n Close\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n","import { TableCell, Tooltip, Typography } from '@mui/material'\nimport React from 'react'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\n\nexport const ConnectedWalletsAccountsTableCell: React.FC<ConnectedWalletTableCellProps> = ({\n additionalAccounts,\n currentAccount,\n totalAccounts,\n tableCellProps,\n}) => {\n return (\n <TableCell {...tableCellProps}>\n <Tooltip\n sx={{ cursor: totalAccounts > 0 ? 'pointer' : 'auto' }}\n title={[...(currentAccount ?? []), ...(additionalAccounts ?? [])].map((address, index) => (\n <p key={index}>{address}</p>\n ))}\n >\n <Typography>{totalAccounts}</Typography>\n </Tooltip>\n </TableCell>\n )\n}\n","import { Check, InfoOutlined } from '@mui/icons-material'\nimport { Button, IconButton, TableCell, Typography } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\n\nexport const ConnectedWalletsActionsTableCell: React.FC<ConnectedWalletTableCellProps> = ({ connected, onConnect, onRevoke, tableCellProps }) => {\n return (\n <TableCell {...tableCellProps}>\n <FlexRow gap={2} justifyContent=\"start\">\n {connected\n ? (\n <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n )\n : (\n <Button variant=\"contained\" onClick={onConnect}>\n Connect\n </Button>\n )}\n {connected\n ? (\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n )\n : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\nimport React from 'react'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport React, { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks/index.ts'\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\n\nexport const ConnectedWalletState: React.FC<ConnectedWalletTableCellProps> = ({ connected, walletRdns, tableCellProps }) => {\n const { disableWallet, enableWallet, wallets } = useEnabledWallets()\n\n const enabled = useMemo(() => (walletRdns ? wallets[walletRdns].enabled : false), [wallets, walletRdns])\n\n const handleClick = (event: ChangeEvent<HTMLInputElement>) => {\n const checked = event.target?.checked\n if (walletRdns) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n checked ? enableWallet?.(walletRdns) : disableWallet?.(walletRdns)\n }\n }\n return (\n <TableCell {...tableCellProps}>\n <Switch disabled={!connected} checked={connected && enabled} onChange={handleClick} />\n </TableCell>\n )\n}\n","import { TableCell, useTheme } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\n\nexport const ConnectedWalletsWalletTableCell: React.FC<ConnectedWalletTableCellProps> = ({ icon, walletName, tableCellProps }) => {\n const theme = useTheme()\n\n return (\n <TableCell {...tableCellProps}>\n <FlexRow gap={2} justifyContent=\"start\">\n <ConstrainedImage constrainedValue={theme.spacing(4)} src={icon} />\n {walletName}\n </FlexRow>\n </TableCell>\n )\n}\n","import { ComponentType } from 'react'\n\nimport { ConnectedWalletsAccountsTableCell } from './Accounts.tsx'\nimport { ConnectedWalletsActionsTableCell } from './Actions.tsx'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName.tsx'\nimport { ConnectedWalletTableCellProps } from './lib/index.ts'\nimport { ConnectedWalletState } from './State.tsx'\nimport { ConnectedWalletsWalletTableCell } from './Wallet.tsx'\n\nexport const ConnectedWalletTableCells: ComponentType<ConnectedWalletTableCellProps>[] = [\n ConnectedWalletsWalletTableCell,\n ConnectedWalletsChainNameTableCell,\n ConnectedWalletsAccountsTableCell,\n ConnectedWalletsActionsTableCell,\n ConnectedWalletState,\n]\n","import { Table, TableBody, TableCell, TableHead, TableProps, TableRow } from '@mui/material'\nimport { EIP6963Connector } from '@xylabs/react-crypto'\nimport React, { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs/index.ts'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib/index.ts'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow.tsx'\nimport { useActiveProviderDialogState } from './hooks/index.ts'\n\nexport interface ConnectedWalletsTableProps extends TableProps {\n ignoreConnectDialog?: boolean\n onIgnoreConnectDialog?: (checked: boolean) => void\n wallets?: EIP6963Connector[]\n}\n\nexport const ConnectedWalletsTable: React.FC<ConnectedWalletsTableProps> = ({ ignoreConnectDialog, onIgnoreConnectDialog, wallets, ...props }) => {\n const [activeProvider, setActiveProvider] = useState<ActiveProvider>()\n const [showConnect, onSetActiveProviderConnect, onConnectClose] = useActiveProviderDialogState(setActiveProvider)\n const [showRevoke, onSetActiveProviderRevoke, onRevokeClose] = useActiveProviderDialogState(setActiveProvider)\n\n return (\n <>\n <Table {...props}>\n <TableHead>\n <TableRow>\n {WalletsTableHeadCells.map(({ disablePadding, id, label, align, width }) => (\n <TableCell align={align} key={id} padding={disablePadding ? 'none' : 'normal'} width={width ?? 'auto'}>\n {label}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {(wallets ?? []).map(wallet => (\n <WalletConnectionsTableRow\n ignoreConnectDialog={ignoreConnectDialog}\n key={wallet.providerInfo?.rdns}\n onConnectClick={onSetActiveProviderConnect}\n onRevoke={onSetActiveProviderRevoke}\n wallet={wallet}\n />\n ))}\n </TableBody>\n </Table>\n <RevokeWalletConnectionDialog open={showRevoke} onClose={onRevokeClose} activeProvider={activeProvider} />\n <ConnectWalletDialog\n activeProvider={activeProvider}\n onClose={onConnectClose}\n open={showConnect}\n onIgnoreConnectDialog={onIgnoreConnectDialog}\n />\n </>\n )\n}\n","import { TableHeadCell } from '@xyo-network/react-table'\n\nexport const WalletsTableHeadCells: TableHeadCell[] = [\n {\n disablePadding: false,\n id: 'wallet',\n label: 'Wallet',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'chain',\n label: 'Chain',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'accounts',\n label: 'Accounts',\n numeric: true,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'actions',\n label: 'Actions',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'enabled',\n label: 'Enabled',\n numeric: false,\n showOnMobile: true,\n },\n]\n","import { TableRow, TableRowProps } from '@mui/material'\nimport { EthWalletConnectorBase, useEthWallet } from '@xylabs/react-crypto'\nimport React, { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib/index.ts'\nimport { ConnectedWalletTableCells } from './cells/index.ts'\n\nexport interface WalletConnectionsTableRowProps extends TableRowProps {\n ignoreConnectDialog?: boolean\n onConnectClick?: (activeProvider: ActiveProvider) => void\n onRevoke?: (activeProvider: ActiveProvider) => void\n wallet: EthWalletConnectorBase\n}\n\nexport const WalletConnectionsTableRow: React.FC<WalletConnectionsTableRowProps> = ({\n ignoreConnectDialog,\n onConnectClick,\n onRevoke,\n wallet,\n ...props\n}) => {\n const { currentAccount: currentAccountFromWallet, additionalAccounts, chainName, connectWallet, providerInfo } = useEthWallet(wallet)\n\n const currentAccount = currentAccountFromWallet?.toString() ? [currentAccountFromWallet.toString()] : []\n const totalAccounts = (additionalAccounts?.length ?? 0) + (currentAccount?.length ?? 0)\n const connected = !!(currentAccount?.length ?? 0 > 0)\n const { icon, name, rdns } = useMemo(() => providerInfo ?? { icon: undefined, name: undefined, rdns: undefined }, [providerInfo])\n\n const activeProvider = useMemo<ActiveProvider>(\n () => ({\n connectWallet,\n icon,\n providerName: name,\n }),\n [connectWallet, icon, name],\n )\n\n const onRevokeLocal = useCallback(() => {\n onRevoke?.(activeProvider)\n }, [activeProvider, onRevoke])\n\n const onConnectLocal = useCallback(async () => {\n if (ignoreConnectDialog) {\n await connectWallet?.()\n } else {\n onConnectClick?.(activeProvider)\n }\n }, [activeProvider, connectWallet, ignoreConnectDialog, onConnectClick])\n\n return (\n <TableRow {...props}>\n {Object.values(ConnectedWalletTableCells).map((Cell, index) => (\n <Cell\n key={index}\n additionalAccounts={additionalAccounts}\n chainName={chainName}\n connected={connected}\n currentAccount={currentAccount}\n icon={icon}\n onConnect={onConnectLocal}\n onRevoke={onRevokeLocal}\n totalAccounts={totalAccounts}\n walletName={name}\n walletRdns={rdns}\n />\n ))}\n </TableRow>\n )\n}\n","import { Dispatch, SetStateAction, useState } from 'react'\n\nimport { ActiveProvider } from '../../lib/index.ts'\n\nexport const useActiveProviderDialogState = (\n setActiveProvider: Dispatch<SetStateAction<ActiveProvider | undefined>>,\n): [boolean, (activeProvider: ActiveProvider) => void, () => void] => {\n const [show, setShow] = useState(false)\n const onSetActiveProvider = (activeProvider: ActiveProvider) => {\n setShow(true)\n setActiveProvider(activeProvider)\n }\n\n const onClose = () => {\n setShow(false)\n setActiveProvider({})\n }\n\n return [show, onSetActiveProvider, onClose]\n}\n"],"mappings":";;;;AAEA,IAAMA,4BAA4B;AAqB3B,IAAMC,+BAAN,MAAMA,6BAAAA;;EAEXC,qBAAqB;;EAGbC,iBAA2C,CAAC;;EAG5CC,kBAA0C,CAAC;;EAG3CC,YAA8B,CAAA;;EAG9BC,kBAAkBN;EAE1BO,YAAYD,kBAAkBN,2BAA2B;AACvD,SAAKM,kBAAkBA;AACvB,SAAKE,eAAc;EACrB;EAEA,IAAIC,UAAU;AACZ,WAAO,KAAKL;EACd;EAEAM,cAAcC,MAAc;AAC1B,SAAKC,oBAAoBD,MAAM,KAAA;EACjC;EAEAE,aAAaF,MAAc;AACzB,SAAKC,oBAAoBD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gBAAAG,QAAA,cAACc,uBAAAA;IAAsBC,SAASjB;IAAeP;IAA0CC;;AAG/F,CAAA;AAGFH,yBAAyB2B,cAAc;","names":["DEFAULT_LOCAL_STORAGE_KEY","EnabledEthWalletConnections","persistPreferences","enabledWallets","ethWalletsState","listeners","localStorageKey","constructor","reviveSettings","wallets","disableWallet","rdns","toggleEnabledWallet","enableWallet","resetWallets","newWallets","addWallet","walletName","wallet","enabled","Object","entries","forEach","bind","emitChange","subscribe","listener","filter","existingListener","persistSettings","isPersistance","method","reduce","acc","localStorage","setItem","JSON","stringify","existingEntries","getItem","parse","e","console","warn","message","Typography","useTheme","FlexCol","React","forwardRef","AccountsChangedEventName","useWalletDiscovery","useEffect","useMemo","useState","sortWallets","wallets","Object","values","reduce","acc","wallet","allowedAccounts","length","unshift","push","useDetectedWallets","useWalletDiscovery","refresh","setRefresh","useState","sortedWallets","setSortedWallets","useEffect","listener","window","addEventListener","AccountsChangedEventName","removeEventListener","totalConnectedAccounts","useMemo","useWalletDiscovery","useMemo","useSyncExternalStore","enabledEthWallets","useEnabledWalletsInner","enabledWalletsRdns","discoveredWallets","useWalletDiscovery","wallets","useMemo","undefined","EnabledEthWalletConnections","resetWallets","rdns","enabled","Object","entries","toggleEnabledWallet","useSyncExternalStore","subscribe","bind","useEnabledWallets","enabledWallets","reduce","acc","walletName","wallet","disableWallet","enableWallet","Checkbox","FormControl","FormLabel","React","CheckboxFormControl","onCheckChanged","props","FormControl","FormLabel","Checkbox","onChange","_","checked","Button","Dialog","DialogActions","DialogContent","DialogTitle","React","SyncAlt","Typography","ConstrainedImage","FlexCol","FlexRow","React","xyoColorLogo","default","xyoColorLogoText","LinkedProvidersFlexbox","icon","providerName","props","React","FlexRow","gap","justifyContent","FlexCol","img","alt","src","xyoColorLogo","style","height","Typography","variant","SyncAlt","fontSize","ConstrainedImage","constrainedValue","maxWidth","Link","Typography","FlexCol","React","WalletPermissionsFlexbox","props","React","FlexCol","gap","Typography","fontWeight","sx","textAlign","ul","li","variant","Link","href","target","ConnectWalletDialog","activeProvider","onIgnoreConnectDialog","props","icon","providerName","onConnect","connectWallet","onClose","e","console","warn","message","React","Dialog","PaperProps","sx","display","gap","DialogTitle","textAlign","DialogContent","flexDirection","LinkedProvidersFlexbox","WalletPermissionsFlexbox","CheckboxFormControl","onCheckChanged","DialogActions","Button","variant","onClick","Button","Dialog","DialogActions","DialogContent","DialogTitle","Typography","ConstrainedImage","FlexRow","React","RevokeWalletConnectionDialog","activeProvider","props","React","Dialog","FlexRow","gap","justifyContent","pl","ConstrainedImage","src","icon","constrainedValue","DialogTitle","sx","providerName","DialogContent","Typography","window","location","origin","DialogActions","Button","variant","onClick","onClose","TableCell","Tooltip","Typography","React","ConnectedWalletsAccountsTableCell","additionalAccounts","currentAccount","totalAccounts","tableCellProps","React","TableCell","Tooltip","sx","cursor","title","map","address","index","p","key","Typography","Check","InfoOutlined","Button","IconButton","TableCell","Typography","FlexRow","React","ConnectedWalletsActionsTableCell","connected","onConnect","onRevoke","tableCellProps","React","TableCell","FlexRow","gap","justifyContent","Typography","sx","display","Check","Button","variant","onClick","IconButton","InfoOutlined","TableCell","React","ConnectedWalletsChainNameTableCell","chainName","tableCellProps","React","TableCell","Switch","TableCell","React","useMemo","ConnectedWalletState","connected","walletRdns","tableCellProps","disableWallet","enableWallet","wallets","useEnabledWallets","enabled","useMemo","handleClick","event","checked","target","React","TableCell","Switch","disabled","onChange","TableCell","useTheme","ConstrainedImage","FlexRow","React","ConnectedWalletsWalletTableCell","icon","walletName","tableCellProps","theme","useTheme","React","TableCell","FlexRow","gap","justifyContent","ConstrainedImage","constrainedValue","spacing","src","ConnectedWalletTableCells","ConnectedWalletsWalletTableCell","ConnectedWalletsChainNameTableCell","ConnectedWalletsAccountsTableCell","ConnectedWalletsActionsTableCell","ConnectedWalletState","Table","TableBody","TableCell","TableHead","TableRow","React","useState","WalletsTableHeadCells","disablePadding","id","label","numeric","showOnMobile","TableRow","useEthWallet","React","useCallback","useMemo","WalletConnectionsTableRow","ignoreConnectDialog","onConnectClick","onRevoke","wallet","props","currentAccount","currentAccountFromWallet","additionalAccounts","chainName","connectWallet","providerInfo","useEthWallet","toString","totalAccounts","length","connected","icon","name","rdns","useMemo","undefined","activeProvider","providerName","onRevokeLocal","useCallback","onConnectLocal","React","TableRow","Object","values","ConnectedWalletTableCells","map","Cell","index","key","onConnect","walletName","walletRdns","useState","useActiveProviderDialogState","setActiveProvider","show","setShow","useState","onSetActiveProvider","activeProvider","onClose","ConnectedWalletsTable","ignoreConnectDialog","onIgnoreConnectDialog","wallets","props","activeProvider","setActiveProvider","useState","showConnect","onSetActiveProviderConnect","onConnectClose","useActiveProviderDialogState","showRevoke","onSetActiveProviderRevoke","onRevokeClose","React","Table","TableHead","TableRow","WalletsTableHeadCells","map","disablePadding","id","label","align","width","TableCell","key","padding","TableBody","wallet","WalletConnectionsTableRow","providerInfo","rdns","onConnectClick","onRevoke","RevokeWalletConnectionDialog","open","onClose","ConnectWalletDialog","ConnectedAccountsFlexbox","forwardRef","ignoreConnectDialog","onIgnoreConnectDialog","props","ref","theme","useTheme","totalConnectedAccounts","sortedWallets","useDetectedWallets","React","FlexCol","alignItems","justifyContent","gap","Typography","variant","sx","mb","color","palette","secondary","main","opacity","ConnectedWalletsTable","wallets","displayName"]}
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-crypto": "^3.4.1",
14
- "@xylabs/react-flexbox": "^3.4.1",
15
- "@xyo-network/react-table": "^2.81.9"
13
+ "@xylabs/react-crypto": "^3.4.2",
14
+ "@xylabs/react-flexbox": "^3.4.2",
15
+ "@xyo-network/react-table": "^2.82.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@storybook/react": "^7.6.20",
19
- "@xylabs/ts-scripts-yarn3": "^3.12.4",
20
- "@xylabs/tsconfig-react": "^3.12.4",
18
+ "@storybook/react": "^8.2.7",
19
+ "@xylabs/ts-scripts-yarn3": "^3.15.16",
20
+ "@xylabs/tsconfig-react": "^3.15.16",
21
21
  "typescript": "^5.5.4"
22
22
  },
23
23
  "peerDependencies": {
@@ -34,7 +34,7 @@
34
34
  "node": {
35
35
  "import": {
36
36
  "types": "./dist/node/index.d.mts",
37
- "default": "./dist/node/index.js"
37
+ "default": "./dist/node/index.mjs"
38
38
  },
39
39
  "require": {
40
40
  "types": "./dist/node/index.d.cts",
@@ -44,19 +44,19 @@
44
44
  "browser": {
45
45
  "import": {
46
46
  "types": "./dist/browser/index.d.mts",
47
- "default": "./dist/browser/index.js"
47
+ "default": "./dist/browser/index.mjs"
48
48
  },
49
49
  "require": {
50
50
  "types": "./dist/browser/index.d.cts",
51
51
  "default": "./dist/browser/index.cjs"
52
52
  }
53
53
  },
54
- "default": "./dist/browser/index.js"
54
+ "default": "./dist/browser/index.mjs"
55
55
  },
56
56
  "./package.json": "./package.json"
57
57
  },
58
58
  "main": "dist/browser/index.cjs",
59
- "module": "dist/browser/index.js",
59
+ "module": "dist/browser/index.mjs",
60
60
  "homepage": "https://xyo.network",
61
61
  "keywords": [
62
62
  "xyo",
@@ -78,6 +78,6 @@
78
78
  },
79
79
  "sideEffects": false,
80
80
  "types": "dist/browser/index.d.ts",
81
- "version": "2.81.9",
81
+ "version": "2.82.0",
82
82
  "type": "module"
83
83
  }
@@ -77,7 +77,7 @@ export class EnabledEthWalletConnections {
77
77
  subscribe(listener: WalletListener) {
78
78
  this.listeners = [...this.listeners, listener]
79
79
  return () => {
80
- this.listeners = this.listeners.filter((existingListener) => existingListener !== listener)
80
+ this.listeners = this.listeners.filter(existingListener => existingListener !== listener)
81
81
  }
82
82
  }
83
83
 
@@ -1 +1 @@
1
- export * from './EnabledWallets.js'
1
+ export * from './EnabledWallets.ts'
@@ -1,8 +1,7 @@
1
- /* eslint-disable import/no-internal-modules */
2
1
  import { Meta, StoryFn } from '@storybook/react'
3
- import { useState } from 'react'
2
+ import React, { useState } from 'react'
4
3
 
5
- import { ConnectedAccountsFlexbox } from './ConnectedAccountsFlexbox.js'
4
+ import { ConnectedAccountsFlexbox } from './ConnectedAccountsFlexbox.tsx'
6
5
 
7
6
  const StorybookEntry: Meta = {
8
7
  argTypes: {},
@@ -32,5 +31,4 @@ const WithIgnoreDialog = TemplateWithIgnoreDialog.bind({})
32
31
 
33
32
  export { Default, WithIgnoreDialog }
34
33
 
35
- // eslint-disable-next-line import/no-default-export
36
34
  export default StorybookEntry
@@ -1,9 +1,9 @@
1
1
  import { Typography, useTheme } from '@mui/material'
2
2
  import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
3
- import { forwardRef } from 'react'
3
+ import React, { forwardRef } from 'react'
4
4
 
5
- import { useDetectedWallets } from '../hooks/index.js'
6
- import { ConnectedWalletsTable } from './wallet/index.js'
5
+ import { useDetectedWallets } from '../hooks/index.ts'
6
+ import { ConnectedWalletsTable } from './wallet/index.ts'
7
7
 
8
8
  export interface ConnectedAccountsFlexboxProps extends FlexBoxProps {
9
9
  ignoreConnectDialog?: boolean
@@ -20,14 +20,18 @@ export const ConnectedAccountsFlexbox = forwardRef<HTMLDivElement, ConnectedAcco
20
20
  return (
21
21
  <FlexCol alignItems="stretch" justifyContent="start" gap={2} ref={ref} {...props}>
22
22
  <FlexCol alignItems="start">
23
- <Typography variant={'h2'} sx={{ mb: 0.5 }}>
23
+ <Typography variant="h2" sx={{ mb: 0.5 }}>
24
24
  Detected Web3 Wallets
25
25
  </Typography>
26
- {totalConnectedAccounts ?
27
- <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>
28
- Total Connected Accounts: {totalConnectedAccounts}
29
- </Typography>
30
- : null}
26
+ {totalConnectedAccounts
27
+ ? (
28
+ <Typography variant="subtitle1" color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>
29
+ Total Connected Accounts:
30
+ {' '}
31
+ {totalConnectedAccounts}
32
+ </Typography>
33
+ )
34
+ : null}
31
35
  </FlexCol>
32
36
  <ConnectedWalletsTable wallets={sortedWallets} ignoreConnectDialog={ignoreConnectDialog} onIgnoreConnectDialog={onIgnoreConnectDialog} />
33
37
  </FlexCol>
@@ -1,2 +1,2 @@
1
- export * from './ConnectedAccountsFlexbox.js'
2
- export * from './wallet/index.js'
1
+ export * from './ConnectedAccountsFlexbox.tsx'
2
+ export * from './wallet/index.ts'
@@ -1,4 +1,5 @@
1
1
  import { Checkbox, FormControl, FormControlProps, FormLabel } from '@mui/material'
2
+ import React from 'react'
2
3
 
3
4
  export interface CheckboxFormControlProps extends FormControlProps {
4
5
  onCheckChanged?: (checked: boolean) => void
@@ -1,9 +1,10 @@
1
1
  import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle } from '@mui/material'
2
+ import React from 'react'
2
3
 
3
- import { ActiveProvider } from '../../lib/index.js'
4
- import { CheckboxFormControl } from './CheckboxFormControl.js'
5
- import { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox.js'
6
- import { WalletPermissionsFlexbox } from './Permissions.js'
4
+ import { ActiveProvider } from '../../lib/index.ts'
5
+ import { CheckboxFormControl } from './CheckboxFormControl.tsx'
6
+ import { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox.tsx'
7
+ import { WalletPermissionsFlexbox } from './Permissions.tsx'
7
8
 
8
9
  export interface ConnectWalletDialogProps extends DialogProps {
9
10
  activeProvider?: ActiveProvider
@@ -2,8 +2,9 @@ import { SyncAlt } from '@mui/icons-material'
2
2
  import { Typography } from '@mui/material'
3
3
  import { ConstrainedImage } from '@xylabs/react-crypto'
4
4
  import { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'
5
+ import React from 'react'
5
6
 
6
- import { xyoColorLogo } from '../../../../img/index.js'
7
+ import { xyoColorLogo } from '../../../../img/index.ts'
7
8
 
8
9
  export interface LinkedProvidersFlexboxProps extends FlexBoxProps {
9
10
  icon?: string
@@ -17,9 +18,9 @@ export const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps> = ({
17
18
  <img alt="XYO Logo" src={xyoColorLogo} style={{ height: '48px' }} />
18
19
  <Typography variant="subtitle1">XYO App</Typography>
19
20
  </FlexCol>
20
- <SyncAlt fontSize={'large'} />
21
+ <SyncAlt fontSize="large" />
21
22
  <FlexCol gap={0.5}>
22
- <ConstrainedImage constrainedValue={'48px'} src={icon} alt={providerName} style={{ height: '48px', maxWidth: '48px' }} />
23
+ <ConstrainedImage constrainedValue="48px" src={icon} alt={providerName} style={{ height: '48px', maxWidth: '48px' }} />
23
24
  <Typography variant="subtitle1">{providerName}</Typography>
24
25
  </FlexCol>
25
26
  </FlexRow>
@@ -1,5 +1,6 @@
1
1
  import { Link, Typography } from '@mui/material'
2
2
  import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
3
+ import React from 'react'
3
4
 
4
5
  export interface WalletPermissionsFlexBoxProps extends FlexBoxProps {}
5
6
 
@@ -15,7 +16,8 @@ export const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps> =
15
16
  </ul>
16
17
  <Typography variant="subtitle1" sx={{ textAlign: 'center' }}>
17
18
  You control what accounts to share and what blockchains to view. You can see or revoke access via your wallet&apos;s settings at anytime. View
18
- more on XYO&apos;s sovereign data philosophy{' '}
19
+ more on XYO&apos;s sovereign data philosophy
20
+ {' '}
19
21
  <Link
20
22
  href="https://cointelegraph.com/innovation-circle/decentralization-and-sovereignty-debunking-our-approach-to-digital-sovereignty"
21
23
  sx={{ fontWeight: 'bold' }}
@@ -1,2 +1,2 @@
1
- export * from './CheckboxFormControl.js'
2
- export * from './Dialog.js'
1
+ export * from './CheckboxFormControl.tsx'
2
+ export * from './Dialog.tsx'
@@ -1,2 +1,2 @@
1
- export * from './connect/index.js'
2
- export * from './revoke/index.js'
1
+ export * from './connect/index.ts'
2
+ export * from './revoke/index.ts'
@@ -1,8 +1,9 @@
1
1
  import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle, Typography } from '@mui/material'
2
2
  import { ConstrainedImage } from '@xylabs/react-crypto'
3
3
  import { FlexRow } from '@xylabs/react-flexbox'
4
+ import React from 'react'
4
5
 
5
- import { ActiveProvider } from '../../lib/index.js'
6
+ import { ActiveProvider } from '../../lib/index.ts'
6
7
 
7
8
  export interface RevokeWalletConnectionDialogProps extends DialogProps {
8
9
  activeProvider?: ActiveProvider
@@ -12,13 +13,21 @@ export const RevokeWalletConnectionDialog: React.FC<RevokeWalletConnectionDialog
12
13
  return (
13
14
  <Dialog {...props}>
14
15
  <FlexRow gap={2} justifyContent="start" pl={2}>
15
- <ConstrainedImage src={activeProvider?.icon} constrainedValue={'24px'} />
16
- <DialogTitle sx={{ pl: 0 }}>Revoke {activeProvider?.providerName} Access</DialogTitle>
16
+ <ConstrainedImage src={activeProvider?.icon} constrainedValue="24px" />
17
+ <DialogTitle sx={{ pl: 0 }}>
18
+ Revoke
19
+ {activeProvider?.providerName}
20
+ {' '}
21
+ Access
22
+ </DialogTitle>
17
23
  </FlexRow>
18
24
  <DialogContent>
19
25
  <Typography>
20
26
  Revoking access to your wallet must be done from the wallet&apos;s browser extension. Wallets grant access to specific domains please
21
- consult {activeProvider?.providerName}&apos;s documentation on how to revoke access to this website:
27
+ consult
28
+ {' '}
29
+ {activeProvider?.providerName}
30
+ &apos;s documentation on how to revoke access to this website:
22
31
  </Typography>
23
32
  <Typography>{window.location.origin}</Typography>
24
33
  </DialogContent>
@@ -1 +1 @@
1
- export * from './Dialog.js'
1
+ export * from './Dialog.tsx'
@@ -1,2 +1,2 @@
1
- export * from './dialogs/index.js'
2
- export * from './table/index.js'
1
+ export * from './dialogs/index.ts'
2
+ export * from './table/index.ts'
@@ -1,2 +1,2 @@
1
- export * from './ActiveProvider.js'
2
- export * from './TableHeadData.js'
1
+ export * from './ActiveProvider.ts'
2
+ export * from './TableHeadData.ts'
@@ -1,11 +1,11 @@
1
1
  import { Table, TableBody, TableCell, TableHead, TableProps, TableRow } from '@mui/material'
2
2
  import { EIP6963Connector } from '@xylabs/react-crypto'
3
- import { useState } from 'react'
3
+ import React, { useState } from 'react'
4
4
 
5
- import { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs/index.js'
6
- import { ActiveProvider, WalletsTableHeadCells } from '../lib/index.js'
7
- import { WalletConnectionsTableRow } from './ConnectedWalletsTableRow.js'
8
- import { useActiveProviderDialogState } from './hooks/index.js'
5
+ import { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs/index.ts'
6
+ import { ActiveProvider, WalletsTableHeadCells } from '../lib/index.ts'
7
+ import { WalletConnectionsTableRow } from './ConnectedWalletsTableRow.tsx'
8
+ import { useActiveProviderDialogState } from './hooks/index.ts'
9
9
 
10
10
  export interface ConnectedWalletsTableProps extends TableProps {
11
11
  ignoreConnectDialog?: boolean
@@ -31,7 +31,7 @@ export const ConnectedWalletsTable: React.FC<ConnectedWalletsTableProps> = ({ ig
31
31
  </TableRow>
32
32
  </TableHead>
33
33
  <TableBody>
34
- {(wallets ?? []).map((wallet) => (
34
+ {(wallets ?? []).map(wallet => (
35
35
  <WalletConnectionsTableRow
36
36
  ignoreConnectDialog={ignoreConnectDialog}
37
37
  key={wallet.providerInfo?.rdns}
@@ -1,9 +1,9 @@
1
1
  import { TableRow, TableRowProps } from '@mui/material'
2
2
  import { EthWalletConnectorBase, useEthWallet } from '@xylabs/react-crypto'
3
- import { useCallback, useMemo } from 'react'
3
+ import React, { useCallback, useMemo } from 'react'
4
4
 
5
- import { ActiveProvider } from '../lib/index.js'
6
- import { ConnectedWalletTableCells } from './cells/index.js'
5
+ import { ActiveProvider } from '../lib/index.ts'
6
+ import { ConnectedWalletTableCells } from './cells/index.ts'
7
7
 
8
8
  export interface WalletConnectionsTableRowProps extends TableRowProps {
9
9
  ignoreConnectDialog?: boolean
@@ -1,6 +1,7 @@
1
1
  import { TableCell, Tooltip, Typography } from '@mui/material'
2
+ import React from 'react'
2
3
 
3
- import { ConnectedWalletTableCellProps } from './lib/index.js'
4
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
4
5
 
5
6
  export const ConnectedWalletsAccountsTableCell: React.FC<ConnectedWalletTableCellProps> = ({
6
7
  additionalAccounts,
@@ -1,27 +1,33 @@
1
1
  import { Check, InfoOutlined } from '@mui/icons-material'
2
2
  import { Button, IconButton, TableCell, Typography } from '@mui/material'
3
3
  import { FlexRow } from '@xylabs/react-flexbox'
4
+ import React from 'react'
4
5
 
5
- import { ConnectedWalletTableCellProps } from './lib/index.js'
6
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
6
7
 
7
8
  export const ConnectedWalletsActionsTableCell: React.FC<ConnectedWalletTableCellProps> = ({ connected, onConnect, onRevoke, tableCellProps }) => {
8
9
  return (
9
10
  <TableCell {...tableCellProps}>
10
11
  <FlexRow gap={2} justifyContent="start">
11
- {connected ?
12
- <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>
13
- <Check />
14
- Connected
15
- </Typography>
16
- : <Button variant={'contained'} onClick={onConnect}>
17
- Connect
18
- </Button>
19
- }
20
- {connected ?
21
- <IconButton onClick={onRevoke}>
22
- <InfoOutlined />
23
- </IconButton>
24
- : null}
12
+ {connected
13
+ ? (
14
+ <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>
15
+ <Check />
16
+ Connected
17
+ </Typography>
18
+ )
19
+ : (
20
+ <Button variant="contained" onClick={onConnect}>
21
+ Connect
22
+ </Button>
23
+ )}
24
+ {connected
25
+ ? (
26
+ <IconButton onClick={onRevoke}>
27
+ <InfoOutlined />
28
+ </IconButton>
29
+ )
30
+ : null}
25
31
  </FlexRow>
26
32
  </TableCell>
27
33
  )
@@ -1,11 +1,11 @@
1
1
  import { ComponentType } from 'react'
2
2
 
3
- import { ConnectedWalletsAccountsTableCell } from './Accounts.js'
4
- import { ConnectedWalletsActionsTableCell } from './Actions.js'
5
- import { ConnectedWalletsChainNameTableCell } from './ChainName.js'
6
- import { ConnectedWalletTableCellProps } from './lib/index.js'
7
- import { ConnectedWalletState } from './State.js'
8
- import { ConnectedWalletsWalletTableCell } from './Wallet.js'
3
+ import { ConnectedWalletsAccountsTableCell } from './Accounts.tsx'
4
+ import { ConnectedWalletsActionsTableCell } from './Actions.tsx'
5
+ import { ConnectedWalletsChainNameTableCell } from './ChainName.tsx'
6
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
7
+ import { ConnectedWalletState } from './State.tsx'
8
+ import { ConnectedWalletsWalletTableCell } from './Wallet.tsx'
9
9
 
10
10
  export const ConnectedWalletTableCells: ComponentType<ConnectedWalletTableCellProps>[] = [
11
11
  ConnectedWalletsWalletTableCell,
@@ -1,6 +1,7 @@
1
1
  import { TableCell } from '@mui/material'
2
+ import React from 'react'
2
3
 
3
- import { ConnectedWalletTableCellProps } from './lib/index.js'
4
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
4
5
 
5
6
  export const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {
6
7
  return <TableCell {...tableCellProps}>{chainName}</TableCell>
@@ -1,8 +1,8 @@
1
1
  import { Switch, TableCell } from '@mui/material'
2
- import { ChangeEvent, useMemo } from 'react'
2
+ import React, { ChangeEvent, useMemo } from 'react'
3
3
 
4
- import { useEnabledWallets } from '../../../../hooks/index.js'
5
- import { ConnectedWalletTableCellProps } from './lib/index.js'
4
+ import { useEnabledWallets } from '../../../../hooks/index.ts'
5
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
6
6
 
7
7
  export const ConnectedWalletState: React.FC<ConnectedWalletTableCellProps> = ({ connected, walletRdns, tableCellProps }) => {
8
8
  const { disableWallet, enableWallet, wallets } = useEnabledWallets()
@@ -12,6 +12,7 @@ export const ConnectedWalletState: React.FC<ConnectedWalletTableCellProps> = ({
12
12
  const handleClick = (event: ChangeEvent<HTMLInputElement>) => {
13
13
  const checked = event.target?.checked
14
14
  if (walletRdns) {
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
15
16
  checked ? enableWallet?.(walletRdns) : disableWallet?.(walletRdns)
16
17
  }
17
18
  }
@@ -1,8 +1,9 @@
1
1
  import { TableCell, useTheme } from '@mui/material'
2
2
  import { ConstrainedImage } from '@xylabs/react-crypto'
3
3
  import { FlexRow } from '@xylabs/react-flexbox'
4
+ import React from 'react'
4
5
 
5
- import { ConnectedWalletTableCellProps } from './lib/index.js'
6
+ import { ConnectedWalletTableCellProps } from './lib/index.ts'
6
7
 
7
8
  export const ConnectedWalletsWalletTableCell: React.FC<ConnectedWalletTableCellProps> = ({ icon, walletName, tableCellProps }) => {
8
9
  const theme = useTheme()
@@ -1,6 +1,6 @@
1
- export * from './Accounts.js'
2
- export * from './Actions.js'
3
- export * from './Cells.js'
4
- export * from './ChainName.js'
5
- export * from './State.js'
6
- export * from './Wallet.js'
1
+ export * from './Accounts.tsx'
2
+ export * from './Actions.tsx'
3
+ export * from './Cells.tsx'
4
+ export * from './ChainName.tsx'
5
+ export * from './State.tsx'
6
+ export * from './Wallet.tsx'
@@ -1 +1 @@
1
- export * from './ConnectedWalletTableCellProps.js'
1
+ export * from './ConnectedWalletTableCellProps.tsx'
@@ -1 +1 @@
1
- export * from './useActiveProviderDialogState.js'
1
+ export * from './useActiveProviderDialogState.tsx'
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction, useState } from 'react'
2
2
 
3
- import { ActiveProvider } from '../../lib/index.js'
3
+ import { ActiveProvider } from '../../lib/index.ts'
4
4
 
5
5
  export const useActiveProviderDialogState = (
6
6
  setActiveProvider: Dispatch<SetStateAction<ActiveProvider | undefined>>,
@@ -1,4 +1,4 @@
1
- export * from './cells/index.js'
2
- export * from './ConnectedWalletsTable.js'
3
- export * from './ConnectedWalletsTableRow.js'
4
- export * from './hooks/index.js'
1
+ export * from './cells/index.ts'
2
+ export * from './ConnectedWalletsTable.tsx'
3
+ export * from './ConnectedWalletsTableRow.tsx'
4
+ export * from './hooks/index.ts'
@@ -1,2 +1,2 @@
1
- export * from './useDetectWallets.js'
2
- export * from './useEnabledWallets.js'
1
+ export * from './useDetectWallets.tsx'
2
+ export * from './useEnabledWallets.tsx'