@xyo-network/react-connected-accounts 2.80.0 → 2.81.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (556) hide show
  1. package/dist/browser/classes/index.d.cts +1 -1
  2. package/dist/browser/classes/index.d.cts.map +1 -1
  3. package/dist/browser/classes/index.d.mts +1 -1
  4. package/dist/browser/classes/index.d.mts.map +1 -1
  5. package/dist/browser/classes/index.d.ts +1 -1
  6. package/dist/browser/classes/index.d.ts.map +1 -1
  7. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts +0 -1
  8. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  9. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts +0 -1
  10. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  11. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts +0 -1
  12. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  13. package/dist/browser/components/index.d.cts +2 -2
  14. package/dist/browser/components/index.d.cts.map +1 -1
  15. package/dist/browser/components/index.d.mts +2 -2
  16. package/dist/browser/components/index.d.mts.map +1 -1
  17. package/dist/browser/components/index.d.ts +2 -2
  18. package/dist/browser/components/index.d.ts.map +1 -1
  19. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +0 -1
  20. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  21. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +0 -1
  22. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  23. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +0 -1
  24. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  25. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts +1 -2
  26. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  27. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts +1 -2
  28. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  29. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts +1 -2
  30. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  31. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +0 -1
  32. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  33. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +0 -1
  34. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  35. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +0 -1
  36. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  37. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts +0 -1
  38. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  39. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts +0 -1
  40. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  41. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts +0 -1
  42. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  43. package/dist/browser/components/wallet/dialogs/connect/index.d.cts +2 -2
  44. package/dist/browser/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  45. package/dist/browser/components/wallet/dialogs/connect/index.d.mts +2 -2
  46. package/dist/browser/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  47. package/dist/browser/components/wallet/dialogs/connect/index.d.ts +2 -2
  48. package/dist/browser/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  49. package/dist/browser/components/wallet/dialogs/index.d.cts +2 -2
  50. package/dist/browser/components/wallet/dialogs/index.d.cts.map +1 -1
  51. package/dist/browser/components/wallet/dialogs/index.d.mts +2 -2
  52. package/dist/browser/components/wallet/dialogs/index.d.mts.map +1 -1
  53. package/dist/browser/components/wallet/dialogs/index.d.ts +2 -2
  54. package/dist/browser/components/wallet/dialogs/index.d.ts.map +1 -1
  55. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts +1 -2
  56. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  57. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts +1 -2
  58. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  59. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts +1 -2
  60. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  61. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts +1 -1
  62. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  63. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts +1 -1
  64. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  65. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts +1 -1
  66. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  67. package/dist/browser/components/wallet/index.d.cts +2 -2
  68. package/dist/browser/components/wallet/index.d.cts.map +1 -1
  69. package/dist/browser/components/wallet/index.d.mts +2 -2
  70. package/dist/browser/components/wallet/index.d.mts.map +1 -1
  71. package/dist/browser/components/wallet/index.d.ts +2 -2
  72. package/dist/browser/components/wallet/index.d.ts.map +1 -1
  73. package/dist/browser/components/wallet/lib/index.d.cts +2 -2
  74. package/dist/browser/components/wallet/lib/index.d.cts.map +1 -1
  75. package/dist/browser/components/wallet/lib/index.d.mts +2 -2
  76. package/dist/browser/components/wallet/lib/index.d.mts.map +1 -1
  77. package/dist/browser/components/wallet/lib/index.d.ts +2 -2
  78. package/dist/browser/components/wallet/lib/index.d.ts.map +1 -1
  79. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts +0 -1
  80. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  81. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts +0 -1
  82. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  83. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts +0 -1
  84. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  85. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts +1 -2
  86. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  87. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts +1 -2
  88. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  89. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts +1 -2
  90. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  91. package/dist/browser/components/wallet/table/cells/Accounts.d.cts +1 -2
  92. package/dist/browser/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  93. package/dist/browser/components/wallet/table/cells/Accounts.d.mts +1 -2
  94. package/dist/browser/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  95. package/dist/browser/components/wallet/table/cells/Accounts.d.ts +1 -2
  96. package/dist/browser/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  97. package/dist/browser/components/wallet/table/cells/Actions.d.cts +1 -2
  98. package/dist/browser/components/wallet/table/cells/Actions.d.cts.map +1 -1
  99. package/dist/browser/components/wallet/table/cells/Actions.d.mts +1 -2
  100. package/dist/browser/components/wallet/table/cells/Actions.d.mts.map +1 -1
  101. package/dist/browser/components/wallet/table/cells/Actions.d.ts +1 -2
  102. package/dist/browser/components/wallet/table/cells/Actions.d.ts.map +1 -1
  103. package/dist/browser/components/wallet/table/cells/Cells.d.cts +1 -1
  104. package/dist/browser/components/wallet/table/cells/Cells.d.cts.map +1 -1
  105. package/dist/browser/components/wallet/table/cells/Cells.d.mts +1 -1
  106. package/dist/browser/components/wallet/table/cells/Cells.d.mts.map +1 -1
  107. package/dist/browser/components/wallet/table/cells/Cells.d.ts +1 -1
  108. package/dist/browser/components/wallet/table/cells/Cells.d.ts.map +1 -1
  109. package/dist/browser/components/wallet/table/cells/ChainName.d.cts +1 -2
  110. package/dist/browser/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  111. package/dist/browser/components/wallet/table/cells/ChainName.d.mts +1 -2
  112. package/dist/browser/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  113. package/dist/browser/components/wallet/table/cells/ChainName.d.ts +1 -2
  114. package/dist/browser/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  115. package/dist/browser/components/wallet/table/cells/State.d.cts +1 -2
  116. package/dist/browser/components/wallet/table/cells/State.d.cts.map +1 -1
  117. package/dist/browser/components/wallet/table/cells/State.d.mts +1 -2
  118. package/dist/browser/components/wallet/table/cells/State.d.mts.map +1 -1
  119. package/dist/browser/components/wallet/table/cells/State.d.ts +1 -2
  120. package/dist/browser/components/wallet/table/cells/State.d.ts.map +1 -1
  121. package/dist/browser/components/wallet/table/cells/Wallet.d.cts +1 -2
  122. package/dist/browser/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  123. package/dist/browser/components/wallet/table/cells/Wallet.d.mts +1 -2
  124. package/dist/browser/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  125. package/dist/browser/components/wallet/table/cells/Wallet.d.ts +1 -2
  126. package/dist/browser/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  127. package/dist/browser/components/wallet/table/cells/index.d.cts +6 -6
  128. package/dist/browser/components/wallet/table/cells/index.d.cts.map +1 -1
  129. package/dist/browser/components/wallet/table/cells/index.d.mts +6 -6
  130. package/dist/browser/components/wallet/table/cells/index.d.mts.map +1 -1
  131. package/dist/browser/components/wallet/table/cells/index.d.ts +6 -6
  132. package/dist/browser/components/wallet/table/cells/index.d.ts.map +1 -1
  133. package/dist/browser/components/wallet/table/cells/lib/index.d.cts +1 -1
  134. package/dist/browser/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  135. package/dist/browser/components/wallet/table/cells/lib/index.d.mts +1 -1
  136. package/dist/browser/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  137. package/dist/browser/components/wallet/table/cells/lib/index.d.ts +1 -1
  138. package/dist/browser/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  139. package/dist/browser/components/wallet/table/hooks/index.d.cts +1 -1
  140. package/dist/browser/components/wallet/table/hooks/index.d.cts.map +1 -1
  141. package/dist/browser/components/wallet/table/hooks/index.d.mts +1 -1
  142. package/dist/browser/components/wallet/table/hooks/index.d.mts.map +1 -1
  143. package/dist/browser/components/wallet/table/hooks/index.d.ts +1 -1
  144. package/dist/browser/components/wallet/table/hooks/index.d.ts.map +1 -1
  145. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  146. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts.map +1 -1
  147. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  148. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts.map +1 -1
  149. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  150. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts.map +1 -1
  151. package/dist/browser/components/wallet/table/index.d.cts +4 -4
  152. package/dist/browser/components/wallet/table/index.d.cts.map +1 -1
  153. package/dist/browser/components/wallet/table/index.d.mts +4 -4
  154. package/dist/browser/components/wallet/table/index.d.mts.map +1 -1
  155. package/dist/browser/components/wallet/table/index.d.ts +4 -4
  156. package/dist/browser/components/wallet/table/index.d.ts.map +1 -1
  157. package/dist/browser/hooks/index.d.cts +2 -2
  158. package/dist/browser/hooks/index.d.cts.map +1 -1
  159. package/dist/browser/hooks/index.d.mts +2 -2
  160. package/dist/browser/hooks/index.d.mts.map +1 -1
  161. package/dist/browser/hooks/index.d.ts +2 -2
  162. package/dist/browser/hooks/index.d.ts.map +1 -1
  163. package/dist/browser/hooks/useEnabledWallets.d.cts +1 -1
  164. package/dist/browser/hooks/useEnabledWallets.d.cts.map +1 -1
  165. package/dist/browser/hooks/useEnabledWallets.d.mts +1 -1
  166. package/dist/browser/hooks/useEnabledWallets.d.mts.map +1 -1
  167. package/dist/browser/hooks/useEnabledWallets.d.ts +1 -1
  168. package/dist/browser/hooks/useEnabledWallets.d.ts.map +1 -1
  169. package/dist/browser/index.cjs.map +1 -1
  170. package/dist/browser/index.d.cts +3 -3
  171. package/dist/browser/index.d.cts.map +1 -1
  172. package/dist/browser/index.d.mts +3 -3
  173. package/dist/browser/index.d.mts.map +1 -1
  174. package/dist/browser/index.d.ts +3 -3
  175. package/dist/browser/index.d.ts.map +1 -1
  176. package/dist/browser/index.js.map +1 -1
  177. package/dist/neutral/classes/index.d.cts +1 -1
  178. package/dist/neutral/classes/index.d.cts.map +1 -1
  179. package/dist/neutral/classes/index.d.mts +1 -1
  180. package/dist/neutral/classes/index.d.mts.map +1 -1
  181. package/dist/neutral/classes/index.d.ts +1 -1
  182. package/dist/neutral/classes/index.d.ts.map +1 -1
  183. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts +0 -1
  184. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  185. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts +0 -1
  186. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  187. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts +0 -1
  188. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  189. package/dist/neutral/components/index.d.cts +2 -2
  190. package/dist/neutral/components/index.d.cts.map +1 -1
  191. package/dist/neutral/components/index.d.mts +2 -2
  192. package/dist/neutral/components/index.d.mts.map +1 -1
  193. package/dist/neutral/components/index.d.ts +2 -2
  194. package/dist/neutral/components/index.d.ts.map +1 -1
  195. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +0 -1
  196. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  197. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +0 -1
  198. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  199. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +0 -1
  200. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  201. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts +1 -2
  202. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  203. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts +1 -2
  204. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  205. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts +1 -2
  206. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  207. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +0 -1
  208. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  209. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +0 -1
  210. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  211. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +0 -1
  212. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  213. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts +0 -1
  214. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  215. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts +0 -1
  216. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  217. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts +0 -1
  218. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  219. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts +2 -2
  220. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  221. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts +2 -2
  222. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  223. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts +2 -2
  224. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  225. package/dist/neutral/components/wallet/dialogs/index.d.cts +2 -2
  226. package/dist/neutral/components/wallet/dialogs/index.d.cts.map +1 -1
  227. package/dist/neutral/components/wallet/dialogs/index.d.mts +2 -2
  228. package/dist/neutral/components/wallet/dialogs/index.d.mts.map +1 -1
  229. package/dist/neutral/components/wallet/dialogs/index.d.ts +2 -2
  230. package/dist/neutral/components/wallet/dialogs/index.d.ts.map +1 -1
  231. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts +1 -2
  232. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  233. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts +1 -2
  234. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  235. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts +1 -2
  236. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  237. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts +1 -1
  238. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  239. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts +1 -1
  240. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  241. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts +1 -1
  242. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  243. package/dist/neutral/components/wallet/index.d.cts +2 -2
  244. package/dist/neutral/components/wallet/index.d.cts.map +1 -1
  245. package/dist/neutral/components/wallet/index.d.mts +2 -2
  246. package/dist/neutral/components/wallet/index.d.mts.map +1 -1
  247. package/dist/neutral/components/wallet/index.d.ts +2 -2
  248. package/dist/neutral/components/wallet/index.d.ts.map +1 -1
  249. package/dist/neutral/components/wallet/lib/index.d.cts +2 -2
  250. package/dist/neutral/components/wallet/lib/index.d.cts.map +1 -1
  251. package/dist/neutral/components/wallet/lib/index.d.mts +2 -2
  252. package/dist/neutral/components/wallet/lib/index.d.mts.map +1 -1
  253. package/dist/neutral/components/wallet/lib/index.d.ts +2 -2
  254. package/dist/neutral/components/wallet/lib/index.d.ts.map +1 -1
  255. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts +0 -1
  256. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  257. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts +0 -1
  258. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  259. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts +0 -1
  260. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  261. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts +1 -2
  262. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  263. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts +1 -2
  264. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  265. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts +1 -2
  266. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  267. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts +1 -2
  268. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  269. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts +1 -2
  270. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  271. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts +1 -2
  272. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  273. package/dist/neutral/components/wallet/table/cells/Actions.d.cts +1 -2
  274. package/dist/neutral/components/wallet/table/cells/Actions.d.cts.map +1 -1
  275. package/dist/neutral/components/wallet/table/cells/Actions.d.mts +1 -2
  276. package/dist/neutral/components/wallet/table/cells/Actions.d.mts.map +1 -1
  277. package/dist/neutral/components/wallet/table/cells/Actions.d.ts +1 -2
  278. package/dist/neutral/components/wallet/table/cells/Actions.d.ts.map +1 -1
  279. package/dist/neutral/components/wallet/table/cells/Cells.d.cts +1 -1
  280. package/dist/neutral/components/wallet/table/cells/Cells.d.cts.map +1 -1
  281. package/dist/neutral/components/wallet/table/cells/Cells.d.mts +1 -1
  282. package/dist/neutral/components/wallet/table/cells/Cells.d.mts.map +1 -1
  283. package/dist/neutral/components/wallet/table/cells/Cells.d.ts +1 -1
  284. package/dist/neutral/components/wallet/table/cells/Cells.d.ts.map +1 -1
  285. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts +1 -2
  286. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  287. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts +1 -2
  288. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  289. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts +1 -2
  290. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  291. package/dist/neutral/components/wallet/table/cells/State.d.cts +1 -2
  292. package/dist/neutral/components/wallet/table/cells/State.d.cts.map +1 -1
  293. package/dist/neutral/components/wallet/table/cells/State.d.mts +1 -2
  294. package/dist/neutral/components/wallet/table/cells/State.d.mts.map +1 -1
  295. package/dist/neutral/components/wallet/table/cells/State.d.ts +1 -2
  296. package/dist/neutral/components/wallet/table/cells/State.d.ts.map +1 -1
  297. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts +1 -2
  298. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  299. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts +1 -2
  300. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  301. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts +1 -2
  302. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  303. package/dist/neutral/components/wallet/table/cells/index.d.cts +6 -6
  304. package/dist/neutral/components/wallet/table/cells/index.d.cts.map +1 -1
  305. package/dist/neutral/components/wallet/table/cells/index.d.mts +6 -6
  306. package/dist/neutral/components/wallet/table/cells/index.d.mts.map +1 -1
  307. package/dist/neutral/components/wallet/table/cells/index.d.ts +6 -6
  308. package/dist/neutral/components/wallet/table/cells/index.d.ts.map +1 -1
  309. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts +1 -1
  310. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  311. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts +1 -1
  312. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  313. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts +1 -1
  314. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  315. package/dist/neutral/components/wallet/table/hooks/index.d.cts +1 -1
  316. package/dist/neutral/components/wallet/table/hooks/index.d.cts.map +1 -1
  317. package/dist/neutral/components/wallet/table/hooks/index.d.mts +1 -1
  318. package/dist/neutral/components/wallet/table/hooks/index.d.mts.map +1 -1
  319. package/dist/neutral/components/wallet/table/hooks/index.d.ts +1 -1
  320. package/dist/neutral/components/wallet/table/hooks/index.d.ts.map +1 -1
  321. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  322. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.cts.map +1 -1
  323. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  324. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.mts.map +1 -1
  325. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  326. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.ts.map +1 -1
  327. package/dist/neutral/components/wallet/table/index.d.cts +4 -4
  328. package/dist/neutral/components/wallet/table/index.d.cts.map +1 -1
  329. package/dist/neutral/components/wallet/table/index.d.mts +4 -4
  330. package/dist/neutral/components/wallet/table/index.d.mts.map +1 -1
  331. package/dist/neutral/components/wallet/table/index.d.ts +4 -4
  332. package/dist/neutral/components/wallet/table/index.d.ts.map +1 -1
  333. package/dist/neutral/hooks/index.d.cts +2 -2
  334. package/dist/neutral/hooks/index.d.cts.map +1 -1
  335. package/dist/neutral/hooks/index.d.mts +2 -2
  336. package/dist/neutral/hooks/index.d.mts.map +1 -1
  337. package/dist/neutral/hooks/index.d.ts +2 -2
  338. package/dist/neutral/hooks/index.d.ts.map +1 -1
  339. package/dist/neutral/hooks/useEnabledWallets.d.cts +1 -1
  340. package/dist/neutral/hooks/useEnabledWallets.d.cts.map +1 -1
  341. package/dist/neutral/hooks/useEnabledWallets.d.mts +1 -1
  342. package/dist/neutral/hooks/useEnabledWallets.d.mts.map +1 -1
  343. package/dist/neutral/hooks/useEnabledWallets.d.ts +1 -1
  344. package/dist/neutral/hooks/useEnabledWallets.d.ts.map +1 -1
  345. package/dist/neutral/index.cjs.map +1 -1
  346. package/dist/neutral/index.d.cts +3 -3
  347. package/dist/neutral/index.d.cts.map +1 -1
  348. package/dist/neutral/index.d.mts +3 -3
  349. package/dist/neutral/index.d.mts.map +1 -1
  350. package/dist/neutral/index.d.ts +3 -3
  351. package/dist/neutral/index.d.ts.map +1 -1
  352. package/dist/neutral/index.js.map +1 -1
  353. package/dist/node/classes/index.d.cts +1 -1
  354. package/dist/node/classes/index.d.cts.map +1 -1
  355. package/dist/node/classes/index.d.mts +1 -1
  356. package/dist/node/classes/index.d.mts.map +1 -1
  357. package/dist/node/classes/index.d.ts +1 -1
  358. package/dist/node/classes/index.d.ts.map +1 -1
  359. package/dist/node/components/ConnectedAccountsFlexbox.d.cts +0 -1
  360. package/dist/node/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  361. package/dist/node/components/ConnectedAccountsFlexbox.d.mts +0 -1
  362. package/dist/node/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  363. package/dist/node/components/ConnectedAccountsFlexbox.d.ts +0 -1
  364. package/dist/node/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  365. package/dist/node/components/index.d.cts +2 -2
  366. package/dist/node/components/index.d.cts.map +1 -1
  367. package/dist/node/components/index.d.mts +2 -2
  368. package/dist/node/components/index.d.mts.map +1 -1
  369. package/dist/node/components/index.d.ts +2 -2
  370. package/dist/node/components/index.d.ts.map +1 -1
  371. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +0 -1
  372. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  373. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +0 -1
  374. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  375. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +0 -1
  376. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  377. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts +1 -2
  378. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  379. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts +1 -2
  380. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  381. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts +1 -2
  382. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  383. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +0 -1
  384. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  385. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +0 -1
  386. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  387. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +0 -1
  388. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  389. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts +0 -1
  390. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  391. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts +0 -1
  392. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  393. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts +0 -1
  394. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  395. package/dist/node/components/wallet/dialogs/connect/index.d.cts +2 -2
  396. package/dist/node/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  397. package/dist/node/components/wallet/dialogs/connect/index.d.mts +2 -2
  398. package/dist/node/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  399. package/dist/node/components/wallet/dialogs/connect/index.d.ts +2 -2
  400. package/dist/node/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  401. package/dist/node/components/wallet/dialogs/index.d.cts +2 -2
  402. package/dist/node/components/wallet/dialogs/index.d.cts.map +1 -1
  403. package/dist/node/components/wallet/dialogs/index.d.mts +2 -2
  404. package/dist/node/components/wallet/dialogs/index.d.mts.map +1 -1
  405. package/dist/node/components/wallet/dialogs/index.d.ts +2 -2
  406. package/dist/node/components/wallet/dialogs/index.d.ts.map +1 -1
  407. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts +1 -2
  408. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  409. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts +1 -2
  410. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  411. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts +1 -2
  412. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  413. package/dist/node/components/wallet/dialogs/revoke/index.d.cts +1 -1
  414. package/dist/node/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  415. package/dist/node/components/wallet/dialogs/revoke/index.d.mts +1 -1
  416. package/dist/node/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  417. package/dist/node/components/wallet/dialogs/revoke/index.d.ts +1 -1
  418. package/dist/node/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  419. package/dist/node/components/wallet/index.d.cts +2 -2
  420. package/dist/node/components/wallet/index.d.cts.map +1 -1
  421. package/dist/node/components/wallet/index.d.mts +2 -2
  422. package/dist/node/components/wallet/index.d.mts.map +1 -1
  423. package/dist/node/components/wallet/index.d.ts +2 -2
  424. package/dist/node/components/wallet/index.d.ts.map +1 -1
  425. package/dist/node/components/wallet/lib/index.d.cts +2 -2
  426. package/dist/node/components/wallet/lib/index.d.cts.map +1 -1
  427. package/dist/node/components/wallet/lib/index.d.mts +2 -2
  428. package/dist/node/components/wallet/lib/index.d.mts.map +1 -1
  429. package/dist/node/components/wallet/lib/index.d.ts +2 -2
  430. package/dist/node/components/wallet/lib/index.d.ts.map +1 -1
  431. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts +0 -1
  432. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  433. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts +0 -1
  434. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  435. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts +0 -1
  436. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  437. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts +1 -2
  438. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  439. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts +1 -2
  440. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  441. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts +1 -2
  442. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  443. package/dist/node/components/wallet/table/cells/Accounts.d.cts +1 -2
  444. package/dist/node/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  445. package/dist/node/components/wallet/table/cells/Accounts.d.mts +1 -2
  446. package/dist/node/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  447. package/dist/node/components/wallet/table/cells/Accounts.d.ts +1 -2
  448. package/dist/node/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  449. package/dist/node/components/wallet/table/cells/Actions.d.cts +1 -2
  450. package/dist/node/components/wallet/table/cells/Actions.d.cts.map +1 -1
  451. package/dist/node/components/wallet/table/cells/Actions.d.mts +1 -2
  452. package/dist/node/components/wallet/table/cells/Actions.d.mts.map +1 -1
  453. package/dist/node/components/wallet/table/cells/Actions.d.ts +1 -2
  454. package/dist/node/components/wallet/table/cells/Actions.d.ts.map +1 -1
  455. package/dist/node/components/wallet/table/cells/Cells.d.cts +1 -1
  456. package/dist/node/components/wallet/table/cells/Cells.d.cts.map +1 -1
  457. package/dist/node/components/wallet/table/cells/Cells.d.mts +1 -1
  458. package/dist/node/components/wallet/table/cells/Cells.d.mts.map +1 -1
  459. package/dist/node/components/wallet/table/cells/Cells.d.ts +1 -1
  460. package/dist/node/components/wallet/table/cells/Cells.d.ts.map +1 -1
  461. package/dist/node/components/wallet/table/cells/ChainName.d.cts +1 -2
  462. package/dist/node/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  463. package/dist/node/components/wallet/table/cells/ChainName.d.mts +1 -2
  464. package/dist/node/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  465. package/dist/node/components/wallet/table/cells/ChainName.d.ts +1 -2
  466. package/dist/node/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  467. package/dist/node/components/wallet/table/cells/State.d.cts +1 -2
  468. package/dist/node/components/wallet/table/cells/State.d.cts.map +1 -1
  469. package/dist/node/components/wallet/table/cells/State.d.mts +1 -2
  470. package/dist/node/components/wallet/table/cells/State.d.mts.map +1 -1
  471. package/dist/node/components/wallet/table/cells/State.d.ts +1 -2
  472. package/dist/node/components/wallet/table/cells/State.d.ts.map +1 -1
  473. package/dist/node/components/wallet/table/cells/Wallet.d.cts +1 -2
  474. package/dist/node/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  475. package/dist/node/components/wallet/table/cells/Wallet.d.mts +1 -2
  476. package/dist/node/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  477. package/dist/node/components/wallet/table/cells/Wallet.d.ts +1 -2
  478. package/dist/node/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  479. package/dist/node/components/wallet/table/cells/index.d.cts +6 -6
  480. package/dist/node/components/wallet/table/cells/index.d.cts.map +1 -1
  481. package/dist/node/components/wallet/table/cells/index.d.mts +6 -6
  482. package/dist/node/components/wallet/table/cells/index.d.mts.map +1 -1
  483. package/dist/node/components/wallet/table/cells/index.d.ts +6 -6
  484. package/dist/node/components/wallet/table/cells/index.d.ts.map +1 -1
  485. package/dist/node/components/wallet/table/cells/lib/index.d.cts +1 -1
  486. package/dist/node/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  487. package/dist/node/components/wallet/table/cells/lib/index.d.mts +1 -1
  488. package/dist/node/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  489. package/dist/node/components/wallet/table/cells/lib/index.d.ts +1 -1
  490. package/dist/node/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  491. package/dist/node/components/wallet/table/hooks/index.d.cts +1 -1
  492. package/dist/node/components/wallet/table/hooks/index.d.cts.map +1 -1
  493. package/dist/node/components/wallet/table/hooks/index.d.mts +1 -1
  494. package/dist/node/components/wallet/table/hooks/index.d.mts.map +1 -1
  495. package/dist/node/components/wallet/table/hooks/index.d.ts +1 -1
  496. package/dist/node/components/wallet/table/hooks/index.d.ts.map +1 -1
  497. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  498. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts.map +1 -1
  499. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  500. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts.map +1 -1
  501. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  502. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts.map +1 -1
  503. package/dist/node/components/wallet/table/index.d.cts +4 -4
  504. package/dist/node/components/wallet/table/index.d.cts.map +1 -1
  505. package/dist/node/components/wallet/table/index.d.mts +4 -4
  506. package/dist/node/components/wallet/table/index.d.mts.map +1 -1
  507. package/dist/node/components/wallet/table/index.d.ts +4 -4
  508. package/dist/node/components/wallet/table/index.d.ts.map +1 -1
  509. package/dist/node/hooks/index.d.cts +2 -2
  510. package/dist/node/hooks/index.d.cts.map +1 -1
  511. package/dist/node/hooks/index.d.mts +2 -2
  512. package/dist/node/hooks/index.d.mts.map +1 -1
  513. package/dist/node/hooks/index.d.ts +2 -2
  514. package/dist/node/hooks/index.d.ts.map +1 -1
  515. package/dist/node/hooks/useEnabledWallets.d.cts +1 -1
  516. package/dist/node/hooks/useEnabledWallets.d.cts.map +1 -1
  517. package/dist/node/hooks/useEnabledWallets.d.mts +1 -1
  518. package/dist/node/hooks/useEnabledWallets.d.mts.map +1 -1
  519. package/dist/node/hooks/useEnabledWallets.d.ts +1 -1
  520. package/dist/node/hooks/useEnabledWallets.d.ts.map +1 -1
  521. package/dist/node/index.cjs.map +1 -1
  522. package/dist/node/index.d.cts +3 -3
  523. package/dist/node/index.d.cts.map +1 -1
  524. package/dist/node/index.d.mts +3 -3
  525. package/dist/node/index.d.mts.map +1 -1
  526. package/dist/node/index.d.ts +3 -3
  527. package/dist/node/index.d.ts.map +1 -1
  528. package/dist/node/index.js.map +1 -1
  529. package/package.json +4 -4
  530. package/src/classes/index.ts +1 -1
  531. package/src/components/ConnectedAccountsFlexbox.tsx +2 -2
  532. package/src/components/index.ts +2 -2
  533. package/src/components/wallet/dialogs/connect/Dialog.tsx +4 -4
  534. package/src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx +1 -1
  535. package/src/components/wallet/dialogs/connect/index.ts +2 -2
  536. package/src/components/wallet/dialogs/index.ts +2 -2
  537. package/src/components/wallet/dialogs/revoke/Dialog.tsx +1 -1
  538. package/src/components/wallet/dialogs/revoke/index.ts +1 -1
  539. package/src/components/wallet/index.ts +2 -2
  540. package/src/components/wallet/lib/index.ts +2 -2
  541. package/src/components/wallet/table/ConnectedWalletsTable.tsx +4 -4
  542. package/src/components/wallet/table/ConnectedWalletsTableRow.tsx +2 -2
  543. package/src/components/wallet/table/cells/Accounts.tsx +1 -1
  544. package/src/components/wallet/table/cells/Actions.tsx +1 -1
  545. package/src/components/wallet/table/cells/Cells.tsx +6 -6
  546. package/src/components/wallet/table/cells/ChainName.tsx +1 -1
  547. package/src/components/wallet/table/cells/State.tsx +2 -2
  548. package/src/components/wallet/table/cells/Wallet.tsx +1 -1
  549. package/src/components/wallet/table/cells/index.ts +6 -6
  550. package/src/components/wallet/table/cells/lib/index.ts +1 -1
  551. package/src/components/wallet/table/hooks/index.ts +1 -1
  552. package/src/components/wallet/table/hooks/useActiveProviderDialogState.tsx +1 -1
  553. package/src/components/wallet/table/index.ts +4 -4
  554. package/src/hooks/index.ts +2 -2
  555. package/src/hooks/useEnabledWallets.tsx +1 -1
  556. package/src/index.ts +3 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../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":["export * from './classes'\nexport * from './components'\nexport * from './hooks'\n","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 { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks'\nimport { ConnectedWalletsTable } from './wallet'\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 <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\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 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'\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'\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'\n\nimport { ActiveProvider } from '../../lib'\nimport { CheckboxFormControl } from './CheckboxFormControl'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox'\nimport { WalletPermissionsFlexbox } from './Permissions'\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'\n\nimport { xyoColorLogo } from '../../../../img'\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'\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 <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'\n\nimport { ActiveProvider } from '../../lib'\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 }}>Revoke {activeProvider?.providerName} Access</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 {activeProvider?.providerName}&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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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 <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n : <Button variant={'contained'} onClick={onConnect}>\n Connect\n </Button>\n }\n {connected ?\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks'\nimport { ConnectedWalletTableCellProps } from './lib'\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 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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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'\nimport { ConnectedWalletsActionsTableCell } from './Actions'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName'\nimport { ConnectedWalletTableCellProps } from './lib'\nimport { ConnectedWalletState } from './State'\nimport { ConnectedWalletsWalletTableCell } from './Wallet'\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 { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow'\nimport { useActiveProviderDialogState } from './hooks'\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 { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib'\nimport { ConnectedWalletTableCells } from './cells'\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'\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 on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AChB,UAAU;AAAA,YACV;AAAA;AAAA,WAHK,YAAO,iBAAP,mBAAqB;AAAA,QAI5B;AAAA,OACD,GACH;AAAA,OACF;AAAA,IACA,8CAAC,gCAA6B,MAAM,YAAY,SAAS,eAAe,gBAAgC;AAAA,IACxG;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACT,MAAM;AAAA,QACN;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;;;Af/BU,IAAAC,uBAAA;AATH,IAAM,+BAA2B;AAAA,EACtC,CAAC,EAAE,qBAAqB,uBAAuB,GAAG,MAAM,GAAG,QAAQ;AACjE,UAAM,YAAQ,4BAAS;AAEvB,UAAM,EAAE,wBAAwB,cAAc,IAAI,mBAAmB;AAErE,WACE,+CAAC,iCAAQ,YAAW,WAAU,gBAAe,SAAQ,KAAK,GAAG,KAAW,GAAG,OACzE;AAAA,qDAAC,iCAAQ,YAAW,SAClB;AAAA,sDAAC,gCAAW,SAAS,MAAM,IAAI,EAAE,IAAI,IAAI,GAAG,mCAE5C;AAAA,QACC,yBACC,+CAAC,gCAAW,SAAS,aAAa,OAAO,MAAM,QAAQ,UAAU,MAAM,IAAI,EAAE,SAAS,IAAI,GAAG;AAAA;AAAA,UAChE;AAAA,WAC7B,IACA;AAAA,SACJ;AAAA,MACA,8CAAC,yBAAsB,SAAS,eAAe,qBAA0C,uBAA8C;AAAA,OACzI;AAAA,EAEJ;AACF;AAEA,yBAAyB,cAAc;","names":["import_material","import_react_flexbox","import_react","refresh","import_react_crypto","import_react","import_material","import_material","import_react_crypto","import_jsx_runtime","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime","import_material","import_react_crypto","import_react_flexbox","import_jsx_runtime","import_material","import_jsx_runtime","import_icons_material","import_material","import_react_flexbox","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_react","import_jsx_runtime","import_material","import_react_crypto","import_react_flexbox","import_jsx_runtime","import_material","import_react","import_material","import_react_crypto","import_react","import_jsx_runtime","import_react","import_jsx_runtime","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../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":["export * from './classes/index.js'\nexport * from './components/index.js'\nexport * from './hooks/index.js'\n","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 { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks/index.js'\nimport { ConnectedWalletsTable } from './wallet/index.js'\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 <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\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 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.js'\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'\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'\n\nimport { ActiveProvider } from '../../lib/index.js'\nimport { CheckboxFormControl } from './CheckboxFormControl.js'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox.js'\nimport { WalletPermissionsFlexbox } from './Permissions.js'\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'\n\nimport { xyoColorLogo } from '../../../../img/index.js'\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'\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 <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'\n\nimport { ActiveProvider } from '../../lib/index.js'\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 }}>Revoke {activeProvider?.providerName} Access</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 {activeProvider?.providerName}&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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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 <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n : <Button variant={'contained'} onClick={onConnect}>\n Connect\n </Button>\n }\n {connected ?\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks/index.js'\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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 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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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.js'\nimport { ConnectedWalletsActionsTableCell } from './Actions.js'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName.js'\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\nimport { ConnectedWalletState } from './State.js'\nimport { ConnectedWalletsWalletTableCell } from './Wallet.js'\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 { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs/index.js'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib/index.js'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow.js'\nimport { useActiveProviderDialogState } from './hooks/index.js'\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 { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib/index.js'\nimport { ConnectedWalletTableCells } from './cells/index.js'\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.js'\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAM,4BAA4B;AAqB3B,IAAM,8BAAN,MAAkC;AAAA;AAAA,EAEvC,qBAAqB;AAAA;AAAA,EAGb,iBAA2C,CAAC;AAAA;AAAA,EAG5C,kBAA0C,CAAC;AAAA;AAAA,EAG3C,YAA8B,CAAC;AAAA;AAAA,EAG/B,kBAAkB;AAAA,EAE1B,YAAY,kBAAkB,2BAA2B;AACvD,SAAK,kBAAkB;AACvB,SAAK,eAAe;AAAA,EACtB;AAAA,EAEA,IAAI,UAAU;AACZ,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,cAAc,MAAc;AAC1B,SAAK,oBAAoB,MAAM,KAAK;AAAA,EACtC;AAAA,EAEA,aAAa,MAAc;AACzB,SAAK,oBAAoB,MAAM,IAAI;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA,EAKA,aAAa,SAA4B;AACvC,UAAM,aAAqC,CAAC;AAE5C,UAAM,YAAY,CAAC,CAAC,YAAY,MAAM,MAAkC;AACtE,iB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0C,uBAA8C;AAAA,OACzI;AAAA,EAEJ;AACF;AAEA,yBAAyB,cAAc;","names":["import_material","import_react_flexbox","import_react","refresh","import_react_crypto","import_react","import_material","import_material","import_react_crypto","import_jsx_runtime","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime","import_material","import_react_crypto","import_react_flexbox","import_jsx_runtime","import_material","import_jsx_runtime","import_icons_material","import_material","import_react_flexbox","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_react","import_jsx_runtime","import_material","import_react_crypto","import_react_flexbox","import_jsx_runtime","import_material","import_react","import_material","import_react_crypto","import_react","import_jsx_runtime","import_react","import_jsx_runtime","import_jsx_runtime"]}
@@ -1,4 +1,4 @@
1
- export * from './classes';
2
- export * from './components';
3
- export * from './hooks';
1
+ export * from './classes/index.js';
2
+ export * from './components/index.js';
3
+ export * from './hooks/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
@@ -1,4 +1,4 @@
1
- export * from './classes';
2
- export * from './components';
3
- export * from './hooks';
1
+ export * from './classes/index.js';
2
+ export * from './components/index.js';
3
+ export * from './hooks/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
@@ -1,4 +1,4 @@
1
- export * from './classes';
2
- export * from './components';
3
- export * from './hooks';
1
+ export * from './classes/index.js';
2
+ export * from './components/index.js';
3
+ export * from './hooks/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
@@ -1 +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 { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks'\nimport { ConnectedWalletsTable } from './wallet'\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 <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\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 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'\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'\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'\n\nimport { ActiveProvider } from '../../lib'\nimport { CheckboxFormControl } from './CheckboxFormControl'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox'\nimport { WalletPermissionsFlexbox } from './Permissions'\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'\n\nimport { xyoColorLogo } from '../../../../img'\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'\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 <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'\n\nimport { ActiveProvider } from '../../lib'\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 }}>Revoke {activeProvider?.providerName} Access</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 {activeProvider?.providerName}&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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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 <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n : <Button variant={'contained'} onClick={onConnect}>\n Connect\n </Button>\n }\n {connected ?\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks'\nimport { ConnectedWalletTableCellProps } from './lib'\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 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'\n\nimport { ConnectedWalletTableCellProps } from './lib'\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'\nimport { ConnectedWalletsActionsTableCell } from './Actions'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName'\nimport { ConnectedWalletTableCellProps } from './lib'\nimport { ConnectedWalletState } from './State'\nimport { ConnectedWalletsWalletTableCell } from './Wallet'\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 { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow'\nimport { useActiveProviderDialogState } from './hooks'\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 { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib'\nimport { ConnectedWalletTableCells } from './cells'\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'\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,IAAM,4BAA4B;AAqB3B,IAAM,8BAAN,MAAkC;AAAA;AAAA,EAEvC,qBAAqB;AAAA;AAAA,EAGb,iBAA2C,CAAC;AAAA;AAAA,EAG5C,kBAA0C,CAAC;AAAA;AAAA,EAG3C,YAA8B,CAAC;AAAA;AAAA,EAG/B,kBAAkB;AAAA,EAE1B,YAAY,kBAAkB,2BAA2B;AACvD,SAAK,kBAAkB;AACvB,SAAK,eAAe;AAAA,EACtB;AAAA,EAEA,IAAI,UAAU;AACZ,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,cAAc,MAAc;AAC1B,SAAK,oBAAoB,MAAM,KAAK;AAAA,EACtC;AAAA,EAEA,aAAa,M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E,SAAS,IAAI,GAAG;AAAA;AAAA,UAChE;AAAA,WAC7B,IACA;AAAA,SACJ;AAAA,MACA,gBAAAJ,MAAC,yBAAsB,SAAS,eAAe,qBAA0C,uBAA8C;AAAA,OACzI;AAAA,EAEJ;AACF;AAEA,yBAAyB,cAAc;","names":["Typography","useTheme","FlexCol","refresh","useWalletDiscovery","useMemo","useWalletDiscovery","useMemo","default","jsx","jsxs","default","Typography","FlexCol","jsx","jsxs","jsx","jsxs","Button","Dialog","DialogActions","DialogContent","DialogTitle","Typography","ConstrainedImage","FlexRow","jsx","jsxs","Typography","jsx","Button","TableCell","Typography","FlexRow","jsx","jsxs","TableCell","jsx","TableCell","useMemo","jsx","useMemo","TableCell","TableCell","ConstrainedImage","FlexRow","jsx","jsxs","TableCell","TableRow","useState","useMemo","jsx","useMemo","useState","jsx","jsxs","useState","TableRow","TableCell","jsx","jsxs","useTheme","FlexCol","Typography"]}
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 { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks/index.js'\nimport { ConnectedWalletsTable } from './wallet/index.js'\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 <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\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 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.js'\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'\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'\n\nimport { ActiveProvider } from '../../lib/index.js'\nimport { CheckboxFormControl } from './CheckboxFormControl.js'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox.js'\nimport { WalletPermissionsFlexbox } from './Permissions.js'\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'\n\nimport { xyoColorLogo } from '../../../../img/index.js'\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'\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 <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'\n\nimport { ActiveProvider } from '../../lib/index.js'\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 }}>Revoke {activeProvider?.providerName} Access</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 {activeProvider?.providerName}&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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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 <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n : <Button variant={'contained'} onClick={onConnect}>\n Connect\n </Button>\n }\n {connected ?\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks/index.js'\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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 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'\n\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\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.js'\nimport { ConnectedWalletsActionsTableCell } from './Actions.js'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName.js'\nimport { ConnectedWalletTableCellProps } from './lib/index.js'\nimport { ConnectedWalletState } from './State.js'\nimport { ConnectedWalletsWalletTableCell } from './Wallet.js'\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 { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs/index.js'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib/index.js'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow.js'\nimport { useActiveProviderDialogState } from './hooks/index.js'\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 { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib/index.js'\nimport { ConnectedWalletTableCells } from './cells/index.js'\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.js'\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,IAAM,4BAA4B;AAqB3B,IAAM,8BAAN,MAAkC;AAAA;AAAA,EAEvC,qBAAqB;AAAA;AAAA,EAGb,iBAA2C,CAAC;AAAA;AAAA,EAG5C,kBAA0C,CAAC;AAAA;AAAA,EAG3C,YAA8B,CAAC;AAAA;AAAA,EAG/B,kBAAkB;AAAA,EAE1B,YAAY,kBAAkB,2BAA2B;AACvD,SAAK,kBAAkB;AACvB,SAAK,eAAe;AAAA,EACtB;AAA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AM,IAAI,EAAE,IAAI,IAAI,GAAG,mCAE5C;AAAA,QACC,yBACC,gBAAAH,MAACG,aAAA,EAAW,SAAS,aAAa,OAAO,MAAM,QAAQ,UAAU,MAAM,IAAI,EAAE,SAAS,IAAI,GAAG;AAAA;AAAA,UAChE;AAAA,WAC7B,IACA;AAAA,SACJ;AAAA,MACA,gBAAAJ,MAAC,yBAAsB,SAAS,eAAe,qBAA0C,uBAA8C;AAAA,OACzI;AAAA,EAEJ;AACF;AAEA,yBAAyB,cAAc;","names":["Typography","useTheme","FlexCol","refresh","useWalletDiscovery","useMemo","useWalletDiscovery","useMemo","default","jsx","jsxs","default","Typography","FlexCol","jsx","jsxs","jsx","jsxs","Button","Dialog","DialogActions","DialogContent","DialogTitle","Typography","ConstrainedImage","FlexRow","jsx","jsxs","Typography","jsx","Button","TableCell","Typography","FlexRow","jsx","jsxs","TableCell","jsx","TableCell","useMemo","jsx","useMemo","TableCell","TableCell","ConstrainedImage","FlexRow","jsx","jsxs","TableCell","TableRow","useState","useMemo","jsx","useMemo","useState","jsx","jsxs","useState","TableRow","TableCell","jsx","jsxs","useTheme","FlexCol","Typography"]}
package/package.json CHANGED
@@ -10,9 +10,9 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-crypto": "^3.1.7",
14
- "@xylabs/react-flexbox": "^3.1.7",
15
- "@xyo-network/react-table": "^2.80.0"
13
+ "@xylabs/react-crypto": "^3.4.0",
14
+ "@xylabs/react-flexbox": "^3.4.0",
15
+ "@xyo-network/react-table": "^2.81.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@storybook/react": "^7.6.20",
@@ -78,6 +78,6 @@
78
78
  },
79
79
  "sideEffects": false,
80
80
  "types": "dist/browser/index.d.ts",
81
- "version": "2.80.0",
81
+ "version": "2.81.1",
82
82
  "type": "module"
83
83
  }
@@ -1 +1 @@
1
- export * from './EnabledWallets'
1
+ export * from './EnabledWallets.js'
@@ -2,8 +2,8 @@ import { Typography, useTheme } from '@mui/material'
2
2
  import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
3
3
  import { forwardRef } from 'react'
4
4
 
5
- import { useDetectedWallets } from '../hooks'
6
- import { ConnectedWalletsTable } from './wallet'
5
+ import { useDetectedWallets } from '../hooks/index.js'
6
+ import { ConnectedWalletsTable } from './wallet/index.js'
7
7
 
8
8
  export interface ConnectedAccountsFlexboxProps extends FlexBoxProps {
9
9
  ignoreConnectDialog?: boolean
@@ -1,2 +1,2 @@
1
- export * from './ConnectedAccountsFlexbox'
2
- export * from './wallet'
1
+ export * from './ConnectedAccountsFlexbox.js'
2
+ export * from './wallet/index.js'
@@ -1,9 +1,9 @@
1
1
  import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle } from '@mui/material'
2
2
 
3
- import { ActiveProvider } from '../../lib'
4
- import { CheckboxFormControl } from './CheckboxFormControl'
5
- import { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox'
6
- import { WalletPermissionsFlexbox } from './Permissions'
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'
7
7
 
8
8
  export interface ConnectWalletDialogProps extends DialogProps {
9
9
  activeProvider?: ActiveProvider
@@ -3,7 +3,7 @@ import { Typography } from '@mui/material'
3
3
  import { ConstrainedImage } from '@xylabs/react-crypto'
4
4
  import { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'
5
5
 
6
- import { xyoColorLogo } from '../../../../img'
6
+ import { xyoColorLogo } from '../../../../img/index.js'
7
7
 
8
8
  export interface LinkedProvidersFlexboxProps extends FlexBoxProps {
9
9
  icon?: string
@@ -1,2 +1,2 @@
1
- export * from './CheckboxFormControl'
2
- export * from './Dialog'
1
+ export * from './CheckboxFormControl.js'
2
+ export * from './Dialog.js'
@@ -1,2 +1,2 @@
1
- export * from './connect'
2
- export * from './revoke'
1
+ export * from './connect/index.js'
2
+ export * from './revoke/index.js'
@@ -2,7 +2,7 @@ import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle,
2
2
  import { ConstrainedImage } from '@xylabs/react-crypto'
3
3
  import { FlexRow } from '@xylabs/react-flexbox'
4
4
 
5
- import { ActiveProvider } from '../../lib'
5
+ import { ActiveProvider } from '../../lib/index.js'
6
6
 
7
7
  export interface RevokeWalletConnectionDialogProps extends DialogProps {
8
8
  activeProvider?: ActiveProvider
@@ -1 +1 @@
1
- export * from './Dialog'
1
+ export * from './Dialog.js'
@@ -1,2 +1,2 @@
1
- export * from './dialogs'
2
- export * from './table'
1
+ export * from './dialogs/index.js'
2
+ export * from './table/index.js'
@@ -1,2 +1,2 @@
1
- export * from './ActiveProvider'
2
- export * from './TableHeadData'
1
+ export * from './ActiveProvider.js'
2
+ export * from './TableHeadData.js'
@@ -2,10 +2,10 @@ import { Table, TableBody, TableCell, TableHead, TableProps, TableRow } from '@m
2
2
  import { EIP6963Connector } from '@xylabs/react-crypto'
3
3
  import { useState } from 'react'
4
4
 
5
- import { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs'
6
- import { ActiveProvider, WalletsTableHeadCells } from '../lib'
7
- import { WalletConnectionsTableRow } from './ConnectedWalletsTableRow'
8
- import { useActiveProviderDialogState } from './hooks'
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'
9
9
 
10
10
  export interface ConnectedWalletsTableProps extends TableProps {
11
11
  ignoreConnectDialog?: boolean
@@ -2,8 +2,8 @@ import { TableRow, TableRowProps } from '@mui/material'
2
2
  import { EthWalletConnectorBase, useEthWallet } from '@xylabs/react-crypto'
3
3
  import { useCallback, useMemo } from 'react'
4
4
 
5
- import { ActiveProvider } from '../lib'
6
- import { ConnectedWalletTableCells } from './cells'
5
+ import { ActiveProvider } from '../lib/index.js'
6
+ import { ConnectedWalletTableCells } from './cells/index.js'
7
7
 
8
8
  export interface WalletConnectionsTableRowProps extends TableRowProps {
9
9
  ignoreConnectDialog?: boolean
@@ -1,6 +1,6 @@
1
1
  import { TableCell, Tooltip, Typography } from '@mui/material'
2
2
 
3
- import { ConnectedWalletTableCellProps } from './lib'
3
+ import { ConnectedWalletTableCellProps } from './lib/index.js'
4
4
 
5
5
  export const ConnectedWalletsAccountsTableCell: React.FC<ConnectedWalletTableCellProps> = ({
6
6
  additionalAccounts,