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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (510) hide show
  1. package/dist/browser/classes/index.d.cts +1 -1
  2. package/dist/browser/classes/index.d.mts +1 -1
  3. package/dist/browser/classes/index.d.ts +1 -1
  4. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts +2 -1
  5. package/dist/browser/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  6. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts +2 -1
  7. package/dist/browser/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  8. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts +2 -1
  9. package/dist/browser/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  10. package/dist/browser/components/index.d.cts +2 -2
  11. package/dist/browser/components/index.d.cts.map +1 -1
  12. package/dist/browser/components/index.d.mts +2 -2
  13. package/dist/browser/components/index.d.mts.map +1 -1
  14. package/dist/browser/components/index.d.ts +2 -2
  15. package/dist/browser/components/index.d.ts.map +1 -1
  16. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  17. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  18. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  19. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  20. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  21. package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  22. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  23. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  24. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  25. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  26. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  27. package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  28. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  29. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  30. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  31. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  32. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  33. package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  34. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  35. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  36. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  37. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  38. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  39. package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  40. package/dist/browser/components/wallet/dialogs/connect/index.d.cts +2 -2
  41. package/dist/browser/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  42. package/dist/browser/components/wallet/dialogs/connect/index.d.mts +2 -2
  43. package/dist/browser/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  44. package/dist/browser/components/wallet/dialogs/connect/index.d.ts +2 -2
  45. package/dist/browser/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  46. package/dist/browser/components/wallet/dialogs/index.d.cts +2 -2
  47. package/dist/browser/components/wallet/dialogs/index.d.mts +2 -2
  48. package/dist/browser/components/wallet/dialogs/index.d.ts +2 -2
  49. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  50. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  51. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  52. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  53. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  54. package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  55. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts +1 -1
  56. package/dist/browser/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  57. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts +1 -1
  58. package/dist/browser/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  59. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts +1 -1
  60. package/dist/browser/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  61. package/dist/browser/components/wallet/index.d.cts +2 -2
  62. package/dist/browser/components/wallet/index.d.mts +2 -2
  63. package/dist/browser/components/wallet/index.d.ts +2 -2
  64. package/dist/browser/components/wallet/lib/index.d.cts +2 -2
  65. package/dist/browser/components/wallet/lib/index.d.mts +2 -2
  66. package/dist/browser/components/wallet/lib/index.d.ts +2 -2
  67. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  68. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  69. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  70. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  71. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  72. package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  73. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  74. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  75. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  76. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  77. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  78. package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  79. package/dist/browser/components/wallet/table/cells/Accounts.d.cts +2 -1
  80. package/dist/browser/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  81. package/dist/browser/components/wallet/table/cells/Accounts.d.mts +2 -1
  82. package/dist/browser/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  83. package/dist/browser/components/wallet/table/cells/Accounts.d.ts +2 -1
  84. package/dist/browser/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  85. package/dist/browser/components/wallet/table/cells/Actions.d.cts +2 -1
  86. package/dist/browser/components/wallet/table/cells/Actions.d.cts.map +1 -1
  87. package/dist/browser/components/wallet/table/cells/Actions.d.mts +2 -1
  88. package/dist/browser/components/wallet/table/cells/Actions.d.mts.map +1 -1
  89. package/dist/browser/components/wallet/table/cells/Actions.d.ts +2 -1
  90. package/dist/browser/components/wallet/table/cells/Actions.d.ts.map +1 -1
  91. package/dist/browser/components/wallet/table/cells/Cells.d.cts +1 -1
  92. package/dist/browser/components/wallet/table/cells/Cells.d.mts +1 -1
  93. package/dist/browser/components/wallet/table/cells/Cells.d.ts +1 -1
  94. package/dist/browser/components/wallet/table/cells/ChainName.d.cts +2 -1
  95. package/dist/browser/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  96. package/dist/browser/components/wallet/table/cells/ChainName.d.mts +2 -1
  97. package/dist/browser/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  98. package/dist/browser/components/wallet/table/cells/ChainName.d.ts +2 -1
  99. package/dist/browser/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  100. package/dist/browser/components/wallet/table/cells/State.d.cts +2 -1
  101. package/dist/browser/components/wallet/table/cells/State.d.cts.map +1 -1
  102. package/dist/browser/components/wallet/table/cells/State.d.mts +2 -1
  103. package/dist/browser/components/wallet/table/cells/State.d.mts.map +1 -1
  104. package/dist/browser/components/wallet/table/cells/State.d.ts +2 -1
  105. package/dist/browser/components/wallet/table/cells/State.d.ts.map +1 -1
  106. package/dist/browser/components/wallet/table/cells/Wallet.d.cts +2 -1
  107. package/dist/browser/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  108. package/dist/browser/components/wallet/table/cells/Wallet.d.mts +2 -1
  109. package/dist/browser/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  110. package/dist/browser/components/wallet/table/cells/Wallet.d.ts +2 -1
  111. package/dist/browser/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  112. package/dist/browser/components/wallet/table/cells/index.d.cts +6 -6
  113. package/dist/browser/components/wallet/table/cells/index.d.cts.map +1 -1
  114. package/dist/browser/components/wallet/table/cells/index.d.mts +6 -6
  115. package/dist/browser/components/wallet/table/cells/index.d.mts.map +1 -1
  116. package/dist/browser/components/wallet/table/cells/index.d.ts +6 -6
  117. package/dist/browser/components/wallet/table/cells/index.d.ts.map +1 -1
  118. package/dist/browser/components/wallet/table/cells/lib/index.d.cts +1 -1
  119. package/dist/browser/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  120. package/dist/browser/components/wallet/table/cells/lib/index.d.mts +1 -1
  121. package/dist/browser/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  122. package/dist/browser/components/wallet/table/cells/lib/index.d.ts +1 -1
  123. package/dist/browser/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  124. package/dist/browser/components/wallet/table/hooks/index.d.cts +1 -1
  125. package/dist/browser/components/wallet/table/hooks/index.d.cts.map +1 -1
  126. package/dist/browser/components/wallet/table/hooks/index.d.mts +1 -1
  127. package/dist/browser/components/wallet/table/hooks/index.d.mts.map +1 -1
  128. package/dist/browser/components/wallet/table/hooks/index.d.ts +1 -1
  129. package/dist/browser/components/wallet/table/hooks/index.d.ts.map +1 -1
  130. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  131. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  132. package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  133. package/dist/browser/components/wallet/table/index.d.cts +4 -4
  134. package/dist/browser/components/wallet/table/index.d.cts.map +1 -1
  135. package/dist/browser/components/wallet/table/index.d.mts +4 -4
  136. package/dist/browser/components/wallet/table/index.d.mts.map +1 -1
  137. package/dist/browser/components/wallet/table/index.d.ts +4 -4
  138. package/dist/browser/components/wallet/table/index.d.ts.map +1 -1
  139. package/dist/browser/hooks/index.d.cts +2 -2
  140. package/dist/browser/hooks/index.d.cts.map +1 -1
  141. package/dist/browser/hooks/index.d.mts +2 -2
  142. package/dist/browser/hooks/index.d.mts.map +1 -1
  143. package/dist/browser/hooks/index.d.ts +2 -2
  144. package/dist/browser/hooks/index.d.ts.map +1 -1
  145. package/dist/browser/hooks/useDetectWallets.d.cts.map +1 -1
  146. package/dist/browser/hooks/useDetectWallets.d.mts.map +1 -1
  147. package/dist/browser/hooks/useDetectWallets.d.ts.map +1 -1
  148. package/dist/browser/hooks/useEnabledWallets.d.cts +1 -1
  149. package/dist/browser/hooks/useEnabledWallets.d.mts +1 -1
  150. package/dist/browser/hooks/useEnabledWallets.d.ts +1 -1
  151. package/dist/browser/index.cjs +339 -260
  152. package/dist/browser/index.cjs.map +1 -1
  153. package/dist/browser/index.d.cts +3 -3
  154. package/dist/browser/index.d.mts +3 -3
  155. package/dist/browser/index.d.ts +3 -3
  156. package/dist/browser/index.mjs +623 -0
  157. package/dist/browser/index.mjs.map +1 -0
  158. package/dist/neutral/classes/index.d.cts +1 -1
  159. package/dist/neutral/classes/index.d.mts +1 -1
  160. package/dist/neutral/classes/index.d.ts +1 -1
  161. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts +2 -1
  162. package/dist/neutral/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  163. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts +2 -1
  164. package/dist/neutral/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  165. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts +2 -1
  166. package/dist/neutral/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  167. package/dist/neutral/components/index.d.cts +2 -2
  168. package/dist/neutral/components/index.d.cts.map +1 -1
  169. package/dist/neutral/components/index.d.mts +2 -2
  170. package/dist/neutral/components/index.d.mts.map +1 -1
  171. package/dist/neutral/components/index.d.ts +2 -2
  172. package/dist/neutral/components/index.d.ts.map +1 -1
  173. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  174. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  175. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  176. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  177. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  178. package/dist/neutral/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  179. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  180. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  181. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  182. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  183. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  184. package/dist/neutral/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  185. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  186. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  187. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  188. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  189. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  190. package/dist/neutral/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  191. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  192. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  193. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  194. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  195. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  196. package/dist/neutral/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  197. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts +2 -2
  198. package/dist/neutral/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  199. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts +2 -2
  200. package/dist/neutral/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  201. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts +2 -2
  202. package/dist/neutral/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  203. package/dist/neutral/components/wallet/dialogs/index.d.cts +2 -2
  204. package/dist/neutral/components/wallet/dialogs/index.d.mts +2 -2
  205. package/dist/neutral/components/wallet/dialogs/index.d.ts +2 -2
  206. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  207. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  208. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  209. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  210. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  211. package/dist/neutral/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  212. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts +1 -1
  213. package/dist/neutral/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  214. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts +1 -1
  215. package/dist/neutral/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  216. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts +1 -1
  217. package/dist/neutral/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  218. package/dist/neutral/components/wallet/index.d.cts +2 -2
  219. package/dist/neutral/components/wallet/index.d.mts +2 -2
  220. package/dist/neutral/components/wallet/index.d.ts +2 -2
  221. package/dist/neutral/components/wallet/lib/index.d.cts +2 -2
  222. package/dist/neutral/components/wallet/lib/index.d.mts +2 -2
  223. package/dist/neutral/components/wallet/lib/index.d.ts +2 -2
  224. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  225. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  226. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  227. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  228. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  229. package/dist/neutral/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  230. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  231. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  232. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  233. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  234. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  235. package/dist/neutral/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  236. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts +2 -1
  237. package/dist/neutral/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  238. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts +2 -1
  239. package/dist/neutral/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  240. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts +2 -1
  241. package/dist/neutral/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  242. package/dist/neutral/components/wallet/table/cells/Actions.d.cts +2 -1
  243. package/dist/neutral/components/wallet/table/cells/Actions.d.cts.map +1 -1
  244. package/dist/neutral/components/wallet/table/cells/Actions.d.mts +2 -1
  245. package/dist/neutral/components/wallet/table/cells/Actions.d.mts.map +1 -1
  246. package/dist/neutral/components/wallet/table/cells/Actions.d.ts +2 -1
  247. package/dist/neutral/components/wallet/table/cells/Actions.d.ts.map +1 -1
  248. package/dist/neutral/components/wallet/table/cells/Cells.d.cts +1 -1
  249. package/dist/neutral/components/wallet/table/cells/Cells.d.mts +1 -1
  250. package/dist/neutral/components/wallet/table/cells/Cells.d.ts +1 -1
  251. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts +2 -1
  252. package/dist/neutral/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  253. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts +2 -1
  254. package/dist/neutral/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  255. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts +2 -1
  256. package/dist/neutral/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  257. package/dist/neutral/components/wallet/table/cells/State.d.cts +2 -1
  258. package/dist/neutral/components/wallet/table/cells/State.d.cts.map +1 -1
  259. package/dist/neutral/components/wallet/table/cells/State.d.mts +2 -1
  260. package/dist/neutral/components/wallet/table/cells/State.d.mts.map +1 -1
  261. package/dist/neutral/components/wallet/table/cells/State.d.ts +2 -1
  262. package/dist/neutral/components/wallet/table/cells/State.d.ts.map +1 -1
  263. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts +2 -1
  264. package/dist/neutral/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  265. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts +2 -1
  266. package/dist/neutral/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  267. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts +2 -1
  268. package/dist/neutral/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  269. package/dist/neutral/components/wallet/table/cells/index.d.cts +6 -6
  270. package/dist/neutral/components/wallet/table/cells/index.d.cts.map +1 -1
  271. package/dist/neutral/components/wallet/table/cells/index.d.mts +6 -6
  272. package/dist/neutral/components/wallet/table/cells/index.d.mts.map +1 -1
  273. package/dist/neutral/components/wallet/table/cells/index.d.ts +6 -6
  274. package/dist/neutral/components/wallet/table/cells/index.d.ts.map +1 -1
  275. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts +1 -1
  276. package/dist/neutral/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  277. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts +1 -1
  278. package/dist/neutral/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  279. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts +1 -1
  280. package/dist/neutral/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  281. package/dist/neutral/components/wallet/table/hooks/index.d.cts +1 -1
  282. package/dist/neutral/components/wallet/table/hooks/index.d.cts.map +1 -1
  283. package/dist/neutral/components/wallet/table/hooks/index.d.mts +1 -1
  284. package/dist/neutral/components/wallet/table/hooks/index.d.mts.map +1 -1
  285. package/dist/neutral/components/wallet/table/hooks/index.d.ts +1 -1
  286. package/dist/neutral/components/wallet/table/hooks/index.d.ts.map +1 -1
  287. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  288. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  289. package/dist/neutral/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  290. package/dist/neutral/components/wallet/table/index.d.cts +4 -4
  291. package/dist/neutral/components/wallet/table/index.d.cts.map +1 -1
  292. package/dist/neutral/components/wallet/table/index.d.mts +4 -4
  293. package/dist/neutral/components/wallet/table/index.d.mts.map +1 -1
  294. package/dist/neutral/components/wallet/table/index.d.ts +4 -4
  295. package/dist/neutral/components/wallet/table/index.d.ts.map +1 -1
  296. package/dist/neutral/hooks/index.d.cts +2 -2
  297. package/dist/neutral/hooks/index.d.cts.map +1 -1
  298. package/dist/neutral/hooks/index.d.mts +2 -2
  299. package/dist/neutral/hooks/index.d.mts.map +1 -1
  300. package/dist/neutral/hooks/index.d.ts +2 -2
  301. package/dist/neutral/hooks/index.d.ts.map +1 -1
  302. package/dist/neutral/hooks/useDetectWallets.d.cts.map +1 -1
  303. package/dist/neutral/hooks/useDetectWallets.d.mts.map +1 -1
  304. package/dist/neutral/hooks/useDetectWallets.d.ts.map +1 -1
  305. package/dist/neutral/hooks/useEnabledWallets.d.cts +1 -1
  306. package/dist/neutral/hooks/useEnabledWallets.d.mts +1 -1
  307. package/dist/neutral/hooks/useEnabledWallets.d.ts +1 -1
  308. package/dist/neutral/index.cjs +339 -260
  309. package/dist/neutral/index.cjs.map +1 -1
  310. package/dist/neutral/index.d.cts +3 -3
  311. package/dist/neutral/index.d.mts +3 -3
  312. package/dist/neutral/index.d.ts +3 -3
  313. package/dist/neutral/index.mjs +623 -0
  314. package/dist/neutral/index.mjs.map +1 -0
  315. package/dist/node/classes/index.d.cts +1 -1
  316. package/dist/node/classes/index.d.mts +1 -1
  317. package/dist/node/classes/index.d.ts +1 -1
  318. package/dist/node/components/ConnectedAccountsFlexbox.d.cts +2 -1
  319. package/dist/node/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
  320. package/dist/node/components/ConnectedAccountsFlexbox.d.mts +2 -1
  321. package/dist/node/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
  322. package/dist/node/components/ConnectedAccountsFlexbox.d.ts +2 -1
  323. package/dist/node/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
  324. package/dist/node/components/index.d.cts +2 -2
  325. package/dist/node/components/index.d.cts.map +1 -1
  326. package/dist/node/components/index.d.mts +2 -2
  327. package/dist/node/components/index.d.mts.map +1 -1
  328. package/dist/node/components/index.d.ts +2 -2
  329. package/dist/node/components/index.d.ts.map +1 -1
  330. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +1 -0
  331. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -1
  332. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +1 -0
  333. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -1
  334. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +1 -0
  335. package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -1
  336. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts +2 -1
  337. package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -1
  338. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts +2 -1
  339. package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -1
  340. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts +2 -1
  341. package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -1
  342. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +1 -0
  343. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -1
  344. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +1 -0
  345. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -1
  346. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +1 -0
  347. package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -1
  348. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts +1 -0
  349. package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -1
  350. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts +1 -0
  351. package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -1
  352. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts +1 -0
  353. package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -1
  354. package/dist/node/components/wallet/dialogs/connect/index.d.cts +2 -2
  355. package/dist/node/components/wallet/dialogs/connect/index.d.cts.map +1 -1
  356. package/dist/node/components/wallet/dialogs/connect/index.d.mts +2 -2
  357. package/dist/node/components/wallet/dialogs/connect/index.d.mts.map +1 -1
  358. package/dist/node/components/wallet/dialogs/connect/index.d.ts +2 -2
  359. package/dist/node/components/wallet/dialogs/connect/index.d.ts.map +1 -1
  360. package/dist/node/components/wallet/dialogs/index.d.cts +2 -2
  361. package/dist/node/components/wallet/dialogs/index.d.mts +2 -2
  362. package/dist/node/components/wallet/dialogs/index.d.ts +2 -2
  363. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts +2 -1
  364. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -1
  365. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts +2 -1
  366. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -1
  367. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts +2 -1
  368. package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -1
  369. package/dist/node/components/wallet/dialogs/revoke/index.d.cts +1 -1
  370. package/dist/node/components/wallet/dialogs/revoke/index.d.cts.map +1 -1
  371. package/dist/node/components/wallet/dialogs/revoke/index.d.mts +1 -1
  372. package/dist/node/components/wallet/dialogs/revoke/index.d.mts.map +1 -1
  373. package/dist/node/components/wallet/dialogs/revoke/index.d.ts +1 -1
  374. package/dist/node/components/wallet/dialogs/revoke/index.d.ts.map +1 -1
  375. package/dist/node/components/wallet/index.d.cts +2 -2
  376. package/dist/node/components/wallet/index.d.mts +2 -2
  377. package/dist/node/components/wallet/index.d.ts +2 -2
  378. package/dist/node/components/wallet/lib/index.d.cts +2 -2
  379. package/dist/node/components/wallet/lib/index.d.mts +2 -2
  380. package/dist/node/components/wallet/lib/index.d.ts +2 -2
  381. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts +1 -0
  382. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
  383. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts +1 -0
  384. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
  385. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts +1 -0
  386. package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
  387. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts +2 -1
  388. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
  389. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts +2 -1
  390. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
  391. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts +2 -1
  392. package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
  393. package/dist/node/components/wallet/table/cells/Accounts.d.cts +2 -1
  394. package/dist/node/components/wallet/table/cells/Accounts.d.cts.map +1 -1
  395. package/dist/node/components/wallet/table/cells/Accounts.d.mts +2 -1
  396. package/dist/node/components/wallet/table/cells/Accounts.d.mts.map +1 -1
  397. package/dist/node/components/wallet/table/cells/Accounts.d.ts +2 -1
  398. package/dist/node/components/wallet/table/cells/Accounts.d.ts.map +1 -1
  399. package/dist/node/components/wallet/table/cells/Actions.d.cts +2 -1
  400. package/dist/node/components/wallet/table/cells/Actions.d.cts.map +1 -1
  401. package/dist/node/components/wallet/table/cells/Actions.d.mts +2 -1
  402. package/dist/node/components/wallet/table/cells/Actions.d.mts.map +1 -1
  403. package/dist/node/components/wallet/table/cells/Actions.d.ts +2 -1
  404. package/dist/node/components/wallet/table/cells/Actions.d.ts.map +1 -1
  405. package/dist/node/components/wallet/table/cells/Cells.d.cts +1 -1
  406. package/dist/node/components/wallet/table/cells/Cells.d.mts +1 -1
  407. package/dist/node/components/wallet/table/cells/Cells.d.ts +1 -1
  408. package/dist/node/components/wallet/table/cells/ChainName.d.cts +2 -1
  409. package/dist/node/components/wallet/table/cells/ChainName.d.cts.map +1 -1
  410. package/dist/node/components/wallet/table/cells/ChainName.d.mts +2 -1
  411. package/dist/node/components/wallet/table/cells/ChainName.d.mts.map +1 -1
  412. package/dist/node/components/wallet/table/cells/ChainName.d.ts +2 -1
  413. package/dist/node/components/wallet/table/cells/ChainName.d.ts.map +1 -1
  414. package/dist/node/components/wallet/table/cells/State.d.cts +2 -1
  415. package/dist/node/components/wallet/table/cells/State.d.cts.map +1 -1
  416. package/dist/node/components/wallet/table/cells/State.d.mts +2 -1
  417. package/dist/node/components/wallet/table/cells/State.d.mts.map +1 -1
  418. package/dist/node/components/wallet/table/cells/State.d.ts +2 -1
  419. package/dist/node/components/wallet/table/cells/State.d.ts.map +1 -1
  420. package/dist/node/components/wallet/table/cells/Wallet.d.cts +2 -1
  421. package/dist/node/components/wallet/table/cells/Wallet.d.cts.map +1 -1
  422. package/dist/node/components/wallet/table/cells/Wallet.d.mts +2 -1
  423. package/dist/node/components/wallet/table/cells/Wallet.d.mts.map +1 -1
  424. package/dist/node/components/wallet/table/cells/Wallet.d.ts +2 -1
  425. package/dist/node/components/wallet/table/cells/Wallet.d.ts.map +1 -1
  426. package/dist/node/components/wallet/table/cells/index.d.cts +6 -6
  427. package/dist/node/components/wallet/table/cells/index.d.cts.map +1 -1
  428. package/dist/node/components/wallet/table/cells/index.d.mts +6 -6
  429. package/dist/node/components/wallet/table/cells/index.d.mts.map +1 -1
  430. package/dist/node/components/wallet/table/cells/index.d.ts +6 -6
  431. package/dist/node/components/wallet/table/cells/index.d.ts.map +1 -1
  432. package/dist/node/components/wallet/table/cells/lib/index.d.cts +1 -1
  433. package/dist/node/components/wallet/table/cells/lib/index.d.cts.map +1 -1
  434. package/dist/node/components/wallet/table/cells/lib/index.d.mts +1 -1
  435. package/dist/node/components/wallet/table/cells/lib/index.d.mts.map +1 -1
  436. package/dist/node/components/wallet/table/cells/lib/index.d.ts +1 -1
  437. package/dist/node/components/wallet/table/cells/lib/index.d.ts.map +1 -1
  438. package/dist/node/components/wallet/table/hooks/index.d.cts +1 -1
  439. package/dist/node/components/wallet/table/hooks/index.d.cts.map +1 -1
  440. package/dist/node/components/wallet/table/hooks/index.d.mts +1 -1
  441. package/dist/node/components/wallet/table/hooks/index.d.mts.map +1 -1
  442. package/dist/node/components/wallet/table/hooks/index.d.ts +1 -1
  443. package/dist/node/components/wallet/table/hooks/index.d.ts.map +1 -1
  444. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +1 -1
  445. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +1 -1
  446. package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +1 -1
  447. package/dist/node/components/wallet/table/index.d.cts +4 -4
  448. package/dist/node/components/wallet/table/index.d.cts.map +1 -1
  449. package/dist/node/components/wallet/table/index.d.mts +4 -4
  450. package/dist/node/components/wallet/table/index.d.mts.map +1 -1
  451. package/dist/node/components/wallet/table/index.d.ts +4 -4
  452. package/dist/node/components/wallet/table/index.d.ts.map +1 -1
  453. package/dist/node/hooks/index.d.cts +2 -2
  454. package/dist/node/hooks/index.d.cts.map +1 -1
  455. package/dist/node/hooks/index.d.mts +2 -2
  456. package/dist/node/hooks/index.d.mts.map +1 -1
  457. package/dist/node/hooks/index.d.ts +2 -2
  458. package/dist/node/hooks/index.d.ts.map +1 -1
  459. package/dist/node/hooks/useDetectWallets.d.cts.map +1 -1
  460. package/dist/node/hooks/useDetectWallets.d.mts.map +1 -1
  461. package/dist/node/hooks/useDetectWallets.d.ts.map +1 -1
  462. package/dist/node/hooks/useEnabledWallets.d.cts +1 -1
  463. package/dist/node/hooks/useEnabledWallets.d.mts +1 -1
  464. package/dist/node/hooks/useEnabledWallets.d.ts +1 -1
  465. package/dist/node/index.cjs +346 -268
  466. package/dist/node/index.cjs.map +1 -1
  467. package/dist/node/index.d.cts +3 -3
  468. package/dist/node/index.d.mts +3 -3
  469. package/dist/node/index.d.ts +3 -3
  470. package/dist/node/index.mjs +633 -0
  471. package/dist/node/index.mjs.map +1 -0
  472. package/package.json +11 -11
  473. package/src/classes/EnabledWallets.ts +1 -1
  474. package/src/classes/index.ts +1 -1
  475. package/src/components/ConnectedAccountsFlexbox.stories.tsx +2 -4
  476. package/src/components/ConnectedAccountsFlexbox.tsx +13 -9
  477. package/src/components/index.ts +2 -2
  478. package/src/components/wallet/dialogs/connect/CheckboxFormControl.tsx +1 -0
  479. package/src/components/wallet/dialogs/connect/Dialog.tsx +5 -4
  480. package/src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx +4 -3
  481. package/src/components/wallet/dialogs/connect/Permissions.tsx +3 -1
  482. package/src/components/wallet/dialogs/connect/index.ts +2 -2
  483. package/src/components/wallet/dialogs/index.ts +2 -2
  484. package/src/components/wallet/dialogs/revoke/Dialog.tsx +13 -4
  485. package/src/components/wallet/dialogs/revoke/index.ts +1 -1
  486. package/src/components/wallet/index.ts +2 -2
  487. package/src/components/wallet/lib/index.ts +2 -2
  488. package/src/components/wallet/table/ConnectedWalletsTable.tsx +6 -6
  489. package/src/components/wallet/table/ConnectedWalletsTableRow.tsx +3 -3
  490. package/src/components/wallet/table/cells/Accounts.tsx +2 -1
  491. package/src/components/wallet/table/cells/Actions.tsx +21 -15
  492. package/src/components/wallet/table/cells/Cells.tsx +6 -6
  493. package/src/components/wallet/table/cells/ChainName.tsx +2 -1
  494. package/src/components/wallet/table/cells/State.tsx +4 -3
  495. package/src/components/wallet/table/cells/Wallet.tsx +2 -1
  496. package/src/components/wallet/table/cells/index.ts +6 -6
  497. package/src/components/wallet/table/cells/lib/index.ts +1 -1
  498. package/src/components/wallet/table/hooks/index.ts +1 -1
  499. package/src/components/wallet/table/hooks/useActiveProviderDialogState.tsx +1 -1
  500. package/src/components/wallet/table/index.ts +4 -4
  501. package/src/hooks/index.ts +2 -2
  502. package/src/hooks/useDetectWallets.tsx +2 -1
  503. package/src/hooks/useEnabledWallets.tsx +1 -1
  504. package/src/index.ts +3 -3
  505. package/dist/browser/index.js +0 -542
  506. package/dist/browser/index.js.map +0 -1
  507. package/dist/neutral/index.js +0 -542
  508. package/dist/neutral/index.js.map +0 -1
  509. package/dist/node/index.js +0 -553
  510. package/dist/node/index.js.map +0 -1
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
9
  var __export = (target, all) => {
9
10
  for (var name in all)
10
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -52,7 +53,7 @@ module.exports = __toCommonJS(src_exports);
52
53
 
53
54
  // src/classes/EnabledWallets.ts
54
55
  var DEFAULT_LOCAL_STORAGE_KEY = "XYO|EnabledWallets";
55
- var EnabledEthWalletConnections = class {
56
+ var _EnabledEthWalletConnections = class _EnabledEthWalletConnections {
56
57
  // control whether or not enabled/disabled preferences are persisted (i.e. in localStorage)
57
58
  persistPreferences = true;
58
59
  // Map of wallet names and their enabled/disabled state
@@ -77,23 +78,26 @@ var EnabledEthWalletConnections = class {
77
78
  this.toggleEnabledWallet(rdns, true);
78
79
  }
79
80
  /**
80
- * Given a new set of wallets, set their enabled state based off previous preferences
81
- */
81
+ * Given a new set of wallets, set their enabled state based off previous preferences
82
+ */
82
83
  resetWallets(wallets) {
83
84
  const newWallets = {};
84
- const addWallet = ([walletName, wallet]) => {
85
+ const addWallet = /* @__PURE__ */ __name(([walletName, wallet]) => {
85
86
  newWallets[walletName] = {
86
87
  // preserve the existing enabled state
87
88
  enabled: walletName in this.enabledWallets ? this.enabledWallets[walletName] : true,
88
89
  wallet
89
90
  };
90
- };
91
+ }, "addWallet");
91
92
  Object.entries(wallets).forEach(addWallet.bind(this));
92
93
  this.ethWalletsState = newWallets;
93
94
  this.emitChange();
94
95
  }
95
96
  subscribe(listener) {
96
- this.listeners = [...this.listeners, listener];
97
+ this.listeners = [
98
+ ...this.listeners,
99
+ listener
100
+ ];
97
101
  return () => {
98
102
  this.listeners = this.listeners.filter((existingListener) => existingListener !== listener);
99
103
  };
@@ -101,7 +105,9 @@ var EnabledEthWalletConnections = class {
101
105
  toggleEnabledWallet(rdns, enabled) {
102
106
  if (rdns && this.ethWalletsState[rdns]) {
103
107
  this.ethWalletsState[rdns].enabled = enabled;
104
- this.ethWalletsState = { ...this.ethWalletsState };
108
+ this.ethWalletsState = {
109
+ ...this.ethWalletsState
110
+ };
105
111
  this.emitChange();
106
112
  }
107
113
  }
@@ -137,151 +143,178 @@ var EnabledEthWalletConnections = class {
137
143
  });
138
144
  }
139
145
  };
146
+ __name(_EnabledEthWalletConnections, "EnabledEthWalletConnections");
147
+ var EnabledEthWalletConnections = _EnabledEthWalletConnections;
140
148
 
141
149
  // src/components/ConnectedAccountsFlexbox.tsx
142
150
  var import_material13 = require("@mui/material");
143
151
  var import_react_flexbox6 = require("@xylabs/react-flexbox");
144
- var import_react7 = require("react");
152
+ var import_react16 = __toESM(require("react"), 1);
145
153
 
146
154
  // src/hooks/useDetectWallets.tsx
147
155
  var import_react_crypto = require("@xylabs/react-crypto");
148
156
  var import_react = require("react");
149
- var sortWallets = (wallets) => (
157
+ var sortWallets = /* @__PURE__ */ __name((wallets) => (
150
158
  // eslint-disable-next-line unicorn/no-array-reduce
151
159
  Object.values(wallets).reduce((acc, wallet) => {
152
160
  wallet.allowedAccounts.length > 0 ? acc.unshift(wallet) : acc.push(wallet);
153
161
  return acc;
154
162
  }, [])
155
- );
156
- var useDetectedWallets = () => {
163
+ ), "sortWallets");
164
+ var useDetectedWallets = /* @__PURE__ */ __name(() => {
157
165
  const wallets = (0, import_react_crypto.useWalletDiscovery)();
158
166
  const [refresh, setRefresh] = (0, import_react.useState)(0);
159
167
  const [sortedWallets, setSortedWallets] = (0, import_react.useState)([]);
160
168
  (0, import_react.useEffect)(() => {
161
169
  setSortedWallets(sortWallets(wallets));
162
- }, [wallets, refresh]);
170
+ }, [
171
+ wallets,
172
+ refresh
173
+ ]);
163
174
  (0, import_react.useEffect)(() => {
164
- const listener = () => {
175
+ const listener = /* @__PURE__ */ __name(() => {
165
176
  setRefresh((refresh2) => refresh2 + 1);
166
- };
177
+ }, "listener");
167
178
  window.addEventListener(import_react_crypto.AccountsChangedEventName, listener);
168
179
  return () => {
169
180
  window.removeEventListener(import_react_crypto.AccountsChangedEventName, listener);
170
181
  };
171
- }, [wallets]);
172
- const totalConnectedAccounts = (0, import_react.useMemo)(
173
- () => Object.values(sortedWallets).reduce((acc, wallet) => acc + wallet.allowedAccounts.length, 0),
174
- [sortedWallets]
175
- );
176
- return { sortedWallets, totalConnectedAccounts };
177
- };
182
+ }, [
183
+ wallets
184
+ ]);
185
+ const totalConnectedAccounts = (0, import_react.useMemo)(() => Object.values(sortedWallets).reduce((acc, wallet) => acc + wallet.allowedAccounts.length, 0), [
186
+ sortedWallets
187
+ ]);
188
+ return {
189
+ sortedWallets,
190
+ totalConnectedAccounts
191
+ };
192
+ }, "useDetectedWallets");
178
193
 
179
194
  // src/hooks/useEnabledWallets.tsx
180
195
  var import_react_crypto2 = require("@xylabs/react-crypto");
181
196
  var import_react2 = require("react");
182
197
  var enabledEthWallets;
183
- var useEnabledWalletsInner = (enabledWalletsRdns) => {
198
+ var useEnabledWalletsInner = /* @__PURE__ */ __name((enabledWalletsRdns) => {
184
199
  const discoveredWallets = (0, import_react_crypto2.useWalletDiscovery)();
185
200
  const wallets = (0, import_react2.useMemo)(() => {
186
201
  if (enabledEthWallets === void 0) enabledEthWallets = new EnabledEthWalletConnections();
187
202
  enabledEthWallets.resetWallets(discoveredWallets);
188
203
  for (const [rdns, enabled] of Object.entries(enabledWalletsRdns ?? {})) enabledEthWallets == null ? void 0 : enabledEthWallets.toggleEnabledWallet(rdns, enabled);
189
204
  return enabledEthWallets;
190
- }, [discoveredWallets, enabledWalletsRdns]);
205
+ }, [
206
+ discoveredWallets,
207
+ enabledWalletsRdns
208
+ ]);
191
209
  return (0, import_react2.useSyncExternalStore)(wallets.subscribe.bind(wallets), () => wallets.wallets);
192
- };
193
- var useEnabledWallets = (enabledWalletsRdns) => {
210
+ }, "useEnabledWalletsInner");
211
+ var useEnabledWallets = /* @__PURE__ */ __name((enabledWalletsRdns) => {
194
212
  const wallets = useEnabledWalletsInner(enabledWalletsRdns);
195
- const enabledWallets = (0, import_react2.useMemo)(
196
- () => (
197
- // eslint-disable-next-line unicorn/no-array-reduce
198
- Object.entries(wallets).reduce((acc, [walletName, wallet]) => {
199
- if (wallet.enabled) acc[walletName] = wallet;
200
- return acc;
201
- }, {})
202
- ),
203
- [wallets]
204
- );
213
+ const enabledWallets = (0, import_react2.useMemo)(() => (
214
+ // eslint-disable-next-line unicorn/no-array-reduce
215
+ Object.entries(wallets).reduce((acc, [walletName, wallet]) => {
216
+ if (wallet.enabled) acc[walletName] = wallet;
217
+ return acc;
218
+ }, {})
219
+ ), [
220
+ wallets
221
+ ]);
205
222
  return {
206
223
  disableWallet: enabledEthWallets == null ? void 0 : enabledEthWallets.disableWallet.bind(enabledEthWallets),
207
224
  enableWallet: enabledEthWallets == null ? void 0 : enabledEthWallets.enableWallet.bind(enabledEthWallets),
208
225
  enabledWallets,
209
226
  wallets
210
227
  };
211
- };
228
+ }, "useEnabledWallets");
212
229
 
213
230
  // src/components/wallet/dialogs/connect/CheckboxFormControl.tsx
214
231
  var import_material = require("@mui/material");
215
- var import_jsx_runtime = require("react/jsx-runtime");
216
- var CheckboxFormControl = ({ onCheckChanged, ...props }) => {
217
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.FormControl, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormLabel, { children: [
218
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Checkbox, { onChange: (_, checked) => onCheckChanged == null ? void 0 : onCheckChanged(checked) }),
219
- "Do not show this again."
220
- ] }) });
221
- };
232
+ var import_react3 = __toESM(require("react"), 1);
233
+ var CheckboxFormControl = /* @__PURE__ */ __name(({ onCheckChanged, ...props }) => {
234
+ return /* @__PURE__ */ import_react3.default.createElement(import_material.FormControl, props, /* @__PURE__ */ import_react3.default.createElement(import_material.FormLabel, null, /* @__PURE__ */ import_react3.default.createElement(import_material.Checkbox, {
235
+ onChange: /* @__PURE__ */ __name((_, checked) => onCheckChanged == null ? void 0 : onCheckChanged(checked), "onChange")
236
+ }), "Do not show this again."));
237
+ }, "CheckboxFormControl");
222
238
 
223
239
  // src/components/wallet/dialogs/connect/Dialog.tsx
224
240
  var import_material4 = require("@mui/material");
241
+ var import_react6 = __toESM(require("react"), 1);
225
242
 
226
243
  // src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx
227
244
  var import_icons_material = require("@mui/icons-material");
228
245
  var import_material2 = require("@mui/material");
229
246
  var import_react_crypto3 = require("@xylabs/react-crypto");
230
247
  var import_react_flexbox = require("@xylabs/react-flexbox");
248
+ var import_react4 = __toESM(require("react"), 1);
231
249
 
232
250
  // src/img/index.ts
233
251
  var import_xyo_color_logo = __toESM(require("./xyo-color-logo-LHR2SMEM.svg"), 1);
234
252
  var import_xyo_color_logo_text_only = __toESM(require("./xyo-color-logo-text-only-QPAW5BSQ.svg"), 1);
235
253
 
236
254
  // src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx
237
- var import_jsx_runtime2 = require("react/jsx-runtime");
238
- var LinkedProvidersFlexbox = ({ icon, providerName, ...props }) => {
239
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexRow, { gap: 4, justifyContent: "space-evenly", ...props, children: [
240
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexCol, { gap: 0.5, children: [
241
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("img", { alt: "XYO Logo", src: import_xyo_color_logo.default, style: { height: "48px" } }),
242
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { variant: "subtitle1", children: "XYO App" })
243
- ] }),
244
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons_material.SyncAlt, { fontSize: "large" }),
245
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexCol, { gap: 0.5, children: [
246
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_crypto3.ConstrainedImage, { constrainedValue: "48px", src: icon, alt: providerName, style: { height: "48px", maxWidth: "48px" } }),
247
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { variant: "subtitle1", children: providerName })
248
- ] })
249
- ] });
250
- };
255
+ var LinkedProvidersFlexbox = /* @__PURE__ */ __name(({ icon, providerName, ...props }) => {
256
+ return /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox.FlexRow, {
257
+ gap: 4,
258
+ justifyContent: "space-evenly",
259
+ ...props
260
+ }, /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox.FlexCol, {
261
+ gap: 0.5
262
+ }, /* @__PURE__ */ import_react4.default.createElement("img", {
263
+ alt: "XYO Logo",
264
+ src: import_xyo_color_logo.default,
265
+ style: {
266
+ height: "48px"
267
+ }
268
+ }), /* @__PURE__ */ import_react4.default.createElement(import_material2.Typography, {
269
+ variant: "subtitle1"
270
+ }, "XYO App")), /* @__PURE__ */ import_react4.default.createElement(import_icons_material.SyncAlt, {
271
+ fontSize: "large"
272
+ }), /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox.FlexCol, {
273
+ gap: 0.5
274
+ }, /* @__PURE__ */ import_react4.default.createElement(import_react_crypto3.ConstrainedImage, {
275
+ constrainedValue: "48px",
276
+ src: icon,
277
+ alt: providerName,
278
+ style: {
279
+ height: "48px",
280
+ maxWidth: "48px"
281
+ }
282
+ }), /* @__PURE__ */ import_react4.default.createElement(import_material2.Typography, {
283
+ variant: "subtitle1"
284
+ }, providerName)));
285
+ }, "LinkedProvidersFlexbox");
251
286
 
252
287
  // src/components/wallet/dialogs/connect/Permissions.tsx
253
288
  var import_material3 = require("@mui/material");
254
289
  var import_react_flexbox2 = require("@xylabs/react-flexbox");
255
- var import_jsx_runtime3 = require("react/jsx-runtime");
256
- var WalletPermissionsFlexbox = (props) => {
257
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react_flexbox2.FlexCol, { gap: 4, ...props, children: [
258
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { fontWeight: "bold", sx: { textAlign: "center" }, children: "This will allow XYO to:" }),
259
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("ul", { children: [
260
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: "View your wallet account(s) and address(es)" }),
261
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: "Read-only access to browse the public blockchain(s) you select" })
262
- ] }),
263
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Typography, { variant: "subtitle1", sx: { textAlign: "center" }, children: [
264
- "You control what accounts to share and what blockchains to view. You can see or revoke access via your wallet's settings at anytime. View more on XYO's sovereign data philosophy",
265
- " ",
266
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
267
- import_material3.Link,
268
- {
269
- href: "https://cointelegraph.com/innovation-circle/decentralization-and-sovereignty-debunking-our-approach-to-digital-sovereignty",
270
- sx: { fontWeight: "bold" },
271
- target: "_blank",
272
- children: "here"
273
- }
274
- ),
275
- "."
276
- ] })
277
- ] });
278
- };
290
+ var import_react5 = __toESM(require("react"), 1);
291
+ var WalletPermissionsFlexbox = /* @__PURE__ */ __name((props) => {
292
+ return /* @__PURE__ */ import_react5.default.createElement(import_react_flexbox2.FlexCol, {
293
+ gap: 4,
294
+ ...props
295
+ }, /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, {
296
+ fontWeight: "bold",
297
+ sx: {
298
+ textAlign: "center"
299
+ }
300
+ }, "This will allow XYO to:"), /* @__PURE__ */ import_react5.default.createElement("ul", null, /* @__PURE__ */ import_react5.default.createElement("li", null, "View your wallet account(s) and address(es)"), /* @__PURE__ */ import_react5.default.createElement("li", null, "Read-only access to browse the public blockchain(s) you select")), /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, {
301
+ variant: "subtitle1",
302
+ sx: {
303
+ textAlign: "center"
304
+ }
305
+ }, "You control what accounts to share and what blockchains to view. You can see or revoke access via your wallet's settings at anytime. View more on XYO's sovereign data philosophy", " ", /* @__PURE__ */ import_react5.default.createElement(import_material3.Link, {
306
+ href: "https://cointelegraph.com/innovation-circle/decentralization-and-sovereignty-debunking-our-approach-to-digital-sovereignty",
307
+ sx: {
308
+ fontWeight: "bold"
309
+ },
310
+ target: "_blank"
311
+ }, "here"), "."));
312
+ }, "WalletPermissionsFlexbox");
279
313
 
280
314
  // src/components/wallet/dialogs/connect/Dialog.tsx
281
- var import_jsx_runtime4 = require("react/jsx-runtime");
282
- var ConnectWalletDialog = ({ activeProvider, onIgnoreConnectDialog, ...props }) => {
315
+ var ConnectWalletDialog = /* @__PURE__ */ __name(({ activeProvider, onIgnoreConnectDialog, ...props }) => {
283
316
  const { icon, providerName } = activeProvider ?? {};
284
- const onConnect = async () => {
317
+ const onConnect = /* @__PURE__ */ __name(async () => {
285
318
  var _a, _b;
286
319
  try {
287
320
  await ((_a = activeProvider == null ? void 0 : activeProvider.connectWallet) == null ? void 0 : _a.call(activeProvider));
@@ -289,124 +322,152 @@ var ConnectWalletDialog = ({ activeProvider, onIgnoreConnectDialog, ...props })
289
322
  } catch (e) {
290
323
  console.warn(`Error connecting to wallet: ${e.message}`);
291
324
  }
292
- };
293
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.Dialog, { PaperProps: { sx: { display: "flex", gap: 4 } }, ...props, children: [
294
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.DialogTitle, { sx: { textAlign: "center" }, children: "XYO Wants To Access The Blockchain on Your Behalf" }),
295
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.DialogContent, { sx: { display: "flex", flexDirection: "column", gap: 4 }, children: [
296
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LinkedProvidersFlexbox, { icon, providerName }),
297
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(WalletPermissionsFlexbox, {}),
298
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckboxFormControl, { onCheckChanged: onIgnoreConnectDialog })
299
- ] }),
300
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.DialogActions, { children: [
301
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Button, { variant: "outlined", onClick: () => {
302
- var _a;
303
- return (_a = props.onClose) == null ? void 0 : _a.call(props, {}, "escapeKeyDown");
304
- }, children: "Close" }),
305
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Button, { variant: "contained", onClick: onConnect, children: "Connect" })
306
- ] })
307
- ] });
308
- };
325
+ }, "onConnect");
326
+ return /* @__PURE__ */ import_react6.default.createElement(import_material4.Dialog, {
327
+ PaperProps: {
328
+ sx: {
329
+ display: "flex",
330
+ gap: 4
331
+ }
332
+ },
333
+ ...props
334
+ }, /* @__PURE__ */ import_react6.default.createElement(import_material4.DialogTitle, {
335
+ sx: {
336
+ textAlign: "center"
337
+ }
338
+ }, "XYO Wants To Access The Blockchain on Your Behalf"), /* @__PURE__ */ import_react6.default.createElement(import_material4.DialogContent, {
339
+ sx: {
340
+ display: "flex",
341
+ flexDirection: "column",
342
+ gap: 4
343
+ }
344
+ }, /* @__PURE__ */ import_react6.default.createElement(LinkedProvidersFlexbox, {
345
+ icon,
346
+ providerName
347
+ }), /* @__PURE__ */ import_react6.default.createElement(WalletPermissionsFlexbox, null), /* @__PURE__ */ import_react6.default.createElement(CheckboxFormControl, {
348
+ onCheckChanged: onIgnoreConnectDialog
349
+ })), /* @__PURE__ */ import_react6.default.createElement(import_material4.DialogActions, null, /* @__PURE__ */ import_react6.default.createElement(import_material4.Button, {
350
+ variant: "outlined",
351
+ onClick: /* @__PURE__ */ __name(() => {
352
+ var _a;
353
+ return (_a = props.onClose) == null ? void 0 : _a.call(props, {}, "escapeKeyDown");
354
+ }, "onClick")
355
+ }, "Close"), /* @__PURE__ */ import_react6.default.createElement(import_material4.Button, {
356
+ variant: "contained",
357
+ onClick: onConnect
358
+ }, "Connect")));
359
+ }, "ConnectWalletDialog");
309
360
 
310
361
  // src/components/wallet/dialogs/revoke/Dialog.tsx
311
362
  var import_material5 = require("@mui/material");
312
363
  var import_react_crypto4 = require("@xylabs/react-crypto");
313
364
  var import_react_flexbox3 = require("@xylabs/react-flexbox");
314
- var import_jsx_runtime5 = require("react/jsx-runtime");
315
- var RevokeWalletConnectionDialog = ({ activeProvider, ...props }) => {
316
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.Dialog, { ...props, children: [
317
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_flexbox3.FlexRow, { gap: 2, justifyContent: "start", pl: 2, children: [
318
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_crypto4.ConstrainedImage, { src: activeProvider == null ? void 0 : activeProvider.icon, constrainedValue: "24px" }),
319
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.DialogTitle, { sx: { pl: 0 }, children: [
320
- "Revoke ",
321
- activeProvider == null ? void 0 : activeProvider.providerName,
322
- " Access"
323
- ] })
324
- ] }),
325
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.DialogContent, { children: [
326
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.Typography, { children: [
327
- "Revoking access to your wallet must be done from the wallet's browser extension. Wallets grant access to specific domains please consult ",
328
- activeProvider == null ? void 0 : activeProvider.providerName,
329
- "'s documentation on how to revoke access to this website:"
330
- ] }),
331
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Typography, { children: window.location.origin })
332
- ] }),
333
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Button, { variant: "contained", onClick: () => {
365
+ var import_react7 = __toESM(require("react"), 1);
366
+ var RevokeWalletConnectionDialog = /* @__PURE__ */ __name(({ activeProvider, ...props }) => {
367
+ return /* @__PURE__ */ import_react7.default.createElement(import_material5.Dialog, props, /* @__PURE__ */ import_react7.default.createElement(import_react_flexbox3.FlexRow, {
368
+ gap: 2,
369
+ justifyContent: "start",
370
+ pl: 2
371
+ }, /* @__PURE__ */ import_react7.default.createElement(import_react_crypto4.ConstrainedImage, {
372
+ src: activeProvider == null ? void 0 : activeProvider.icon,
373
+ constrainedValue: "24px"
374
+ }), /* @__PURE__ */ import_react7.default.createElement(import_material5.DialogTitle, {
375
+ sx: {
376
+ pl: 0
377
+ }
378
+ }, "Revoke", activeProvider == null ? void 0 : activeProvider.providerName, " ", "Access")), /* @__PURE__ */ import_react7.default.createElement(import_material5.DialogContent, null, /* @__PURE__ */ import_react7.default.createElement(import_material5.Typography, null, "Revoking access to your wallet must be done from the wallet's browser extension. Wallets grant access to specific domains please consult", " ", activeProvider == null ? void 0 : activeProvider.providerName, "'s documentation on how to revoke access to this website:"), /* @__PURE__ */ import_react7.default.createElement(import_material5.Typography, null, window.location.origin)), /* @__PURE__ */ import_react7.default.createElement(import_material5.DialogActions, null, /* @__PURE__ */ import_react7.default.createElement(import_material5.Button, {
379
+ variant: "contained",
380
+ onClick: /* @__PURE__ */ __name(() => {
334
381
  var _a;
335
382
  return (_a = props.onClose) == null ? void 0 : _a.call(props, {}, "escapeKeyDown");
336
- }, children: "Close" }) })
337
- ] });
338
- };
383
+ }, "onClick")
384
+ }, "Close")));
385
+ }, "RevokeWalletConnectionDialog");
339
386
 
340
387
  // src/components/wallet/table/cells/Accounts.tsx
341
388
  var import_material6 = require("@mui/material");
342
- var import_jsx_runtime6 = require("react/jsx-runtime");
343
- var ConnectedWalletsAccountsTableCell = ({
344
- additionalAccounts,
345
- currentAccount,
346
- totalAccounts,
347
- tableCellProps
348
- }) => {
349
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.TableCell, { ...tableCellProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
350
- import_material6.Tooltip,
351
- {
352
- sx: { cursor: totalAccounts > 0 ? "pointer" : "auto" },
353
- title: [...currentAccount ?? [], ...additionalAccounts ?? []].map((address, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: address }, index)),
354
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.Typography, { children: totalAccounts })
355
- }
356
- ) });
357
- };
389
+ var import_react8 = __toESM(require("react"), 1);
390
+ var ConnectedWalletsAccountsTableCell = /* @__PURE__ */ __name(({ additionalAccounts, currentAccount, totalAccounts, tableCellProps }) => {
391
+ return /* @__PURE__ */ import_react8.default.createElement(import_material6.TableCell, tableCellProps, /* @__PURE__ */ import_react8.default.createElement(import_material6.Tooltip, {
392
+ sx: {
393
+ cursor: totalAccounts > 0 ? "pointer" : "auto"
394
+ },
395
+ title: [
396
+ ...currentAccount ?? [],
397
+ ...additionalAccounts ?? []
398
+ ].map((address, index) => /* @__PURE__ */ import_react8.default.createElement("p", {
399
+ key: index
400
+ }, address))
401
+ }, /* @__PURE__ */ import_react8.default.createElement(import_material6.Typography, null, totalAccounts)));
402
+ }, "ConnectedWalletsAccountsTableCell");
358
403
 
359
404
  // src/components/wallet/table/cells/Actions.tsx
360
405
  var import_icons_material2 = require("@mui/icons-material");
361
406
  var import_material7 = require("@mui/material");
362
407
  var import_react_flexbox4 = require("@xylabs/react-flexbox");
363
- var import_jsx_runtime7 = require("react/jsx-runtime");
364
- var ConnectedWalletsActionsTableCell = ({ connected, onConnect, onRevoke, tableCellProps }) => {
365
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.TableCell, { ...tableCellProps, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox4.FlexRow, { gap: 2, justifyContent: "start", children: [
366
- connected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_material7.Typography, { sx: { display: "inline-flex", gap: 0.5 }, children: [
367
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material2.Check, {}),
368
- "Connected"
369
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Button, { variant: "contained", onClick: onConnect, children: "Connect" }),
370
- connected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.IconButton, { onClick: onRevoke, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material2.InfoOutlined, {}) }) : null
371
- ] }) });
372
- };
408
+ var import_react9 = __toESM(require("react"), 1);
409
+ var ConnectedWalletsActionsTableCell = /* @__PURE__ */ __name(({ connected, onConnect, onRevoke, tableCellProps }) => {
410
+ return /* @__PURE__ */ import_react9.default.createElement(import_material7.TableCell, tableCellProps, /* @__PURE__ */ import_react9.default.createElement(import_react_flexbox4.FlexRow, {
411
+ gap: 2,
412
+ justifyContent: "start"
413
+ }, connected ? /* @__PURE__ */ import_react9.default.createElement(import_material7.Typography, {
414
+ sx: {
415
+ display: "inline-flex",
416
+ gap: 0.5
417
+ }
418
+ }, /* @__PURE__ */ import_react9.default.createElement(import_icons_material2.Check, null), "Connected") : /* @__PURE__ */ import_react9.default.createElement(import_material7.Button, {
419
+ variant: "contained",
420
+ onClick: onConnect
421
+ }, "Connect"), connected ? /* @__PURE__ */ import_react9.default.createElement(import_material7.IconButton, {
422
+ onClick: onRevoke
423
+ }, /* @__PURE__ */ import_react9.default.createElement(import_icons_material2.InfoOutlined, null)) : null));
424
+ }, "ConnectedWalletsActionsTableCell");
373
425
 
374
426
  // src/components/wallet/table/cells/ChainName.tsx
375
427
  var import_material8 = require("@mui/material");
376
- var import_jsx_runtime8 = require("react/jsx-runtime");
377
- var ConnectedWalletsChainNameTableCell = ({ chainName, tableCellProps }) => {
378
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.TableCell, { ...tableCellProps, children: chainName });
379
- };
428
+ var import_react10 = __toESM(require("react"), 1);
429
+ var ConnectedWalletsChainNameTableCell = /* @__PURE__ */ __name(({ chainName, tableCellProps }) => {
430
+ return /* @__PURE__ */ import_react10.default.createElement(import_material8.TableCell, tableCellProps, chainName);
431
+ }, "ConnectedWalletsChainNameTableCell");
380
432
 
381
433
  // src/components/wallet/table/cells/State.tsx
382
434
  var import_material9 = require("@mui/material");
383
- var import_react3 = require("react");
384
- var import_jsx_runtime9 = require("react/jsx-runtime");
385
- var ConnectedWalletState = ({ connected, walletRdns, tableCellProps }) => {
435
+ var import_react11 = __toESM(require("react"), 1);
436
+ var ConnectedWalletState = /* @__PURE__ */ __name(({ connected, walletRdns, tableCellProps }) => {
386
437
  const { disableWallet, enableWallet, wallets } = useEnabledWallets();
387
- const enabled = (0, import_react3.useMemo)(() => walletRdns ? wallets[walletRdns].enabled : false, [wallets, walletRdns]);
388
- const handleClick = (event) => {
438
+ const enabled = (0, import_react11.useMemo)(() => walletRdns ? wallets[walletRdns].enabled : false, [
439
+ wallets,
440
+ walletRdns
441
+ ]);
442
+ const handleClick = /* @__PURE__ */ __name((event) => {
389
443
  var _a;
390
444
  const checked = (_a = event.target) == null ? void 0 : _a.checked;
391
445
  if (walletRdns) {
392
446
  checked ? enableWallet == null ? void 0 : enableWallet(walletRdns) : disableWallet == null ? void 0 : disableWallet(walletRdns);
393
447
  }
394
- };
395
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.TableCell, { ...tableCellProps, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.Switch, { disabled: !connected, checked: connected && enabled, onChange: handleClick }) });
396
- };
448
+ }, "handleClick");
449
+ return /* @__PURE__ */ import_react11.default.createElement(import_material9.TableCell, tableCellProps, /* @__PURE__ */ import_react11.default.createElement(import_material9.Switch, {
450
+ disabled: !connected,
451
+ checked: connected && enabled,
452
+ onChange: handleClick
453
+ }));
454
+ }, "ConnectedWalletState");
397
455
 
398
456
  // src/components/wallet/table/cells/Wallet.tsx
399
457
  var import_material10 = require("@mui/material");
400
458
  var import_react_crypto5 = require("@xylabs/react-crypto");
401
459
  var import_react_flexbox5 = require("@xylabs/react-flexbox");
402
- var import_jsx_runtime10 = require("react/jsx-runtime");
403
- var ConnectedWalletsWalletTableCell = ({ icon, walletName, tableCellProps }) => {
460
+ var import_react12 = __toESM(require("react"), 1);
461
+ var ConnectedWalletsWalletTableCell = /* @__PURE__ */ __name(({ icon, walletName, tableCellProps }) => {
404
462
  const theme = (0, import_material10.useTheme)();
405
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material10.TableCell, { ...tableCellProps, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_flexbox5.FlexRow, { gap: 2, justifyContent: "start", children: [
406
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_crypto5.ConstrainedImage, { constrainedValue: theme.spacing(4), src: icon }),
407
- walletName
408
- ] }) });
409
- };
463
+ return /* @__PURE__ */ import_react12.default.createElement(import_material10.TableCell, tableCellProps, /* @__PURE__ */ import_react12.default.createElement(import_react_flexbox5.FlexRow, {
464
+ gap: 2,
465
+ justifyContent: "start"
466
+ }, /* @__PURE__ */ import_react12.default.createElement(import_react_crypto5.ConstrainedImage, {
467
+ constrainedValue: theme.spacing(4),
468
+ src: icon
469
+ }), walletName));
470
+ }, "ConnectedWalletsWalletTableCell");
410
471
 
411
472
  // src/components/wallet/table/cells/Cells.tsx
412
473
  var ConnectedWalletTableCells = [
@@ -419,7 +480,7 @@ var ConnectedWalletTableCells = [
419
480
 
420
481
  // src/components/wallet/table/ConnectedWalletsTable.tsx
421
482
  var import_material12 = require("@mui/material");
422
- var import_react6 = require("react");
483
+ var import_react15 = __toESM(require("react"), 1);
423
484
 
424
485
  // src/components/wallet/lib/TableHeadData.ts
425
486
  var WalletsTableHeadCells = [
@@ -463,125 +524,142 @@ var WalletsTableHeadCells = [
463
524
  // src/components/wallet/table/ConnectedWalletsTableRow.tsx
464
525
  var import_material11 = require("@mui/material");
465
526
  var import_react_crypto6 = require("@xylabs/react-crypto");
466
- var import_react4 = require("react");
467
- var import_jsx_runtime11 = require("react/jsx-runtime");
468
- var WalletConnectionsTableRow = ({
469
- ignoreConnectDialog,
470
- onConnectClick,
471
- onRevoke,
472
- wallet,
473
- ...props
474
- }) => {
527
+ var import_react13 = __toESM(require("react"), 1);
528
+ var WalletConnectionsTableRow = /* @__PURE__ */ __name(({ ignoreConnectDialog, onConnectClick, onRevoke, wallet, ...props }) => {
475
529
  const { currentAccount: currentAccountFromWallet, additionalAccounts, chainName, connectWallet, providerInfo } = (0, import_react_crypto6.useEthWallet)(wallet);
476
- const currentAccount = (currentAccountFromWallet == null ? void 0 : currentAccountFromWallet.toString()) ? [currentAccountFromWallet.toString()] : [];
530
+ const currentAccount = (currentAccountFromWallet == null ? void 0 : currentAccountFromWallet.toString()) ? [
531
+ currentAccountFromWallet.toString()
532
+ ] : [];
477
533
  const totalAccounts = ((additionalAccounts == null ? void 0 : additionalAccounts.length) ?? 0) + ((currentAccount == null ? void 0 : currentAccount.length) ?? 0);
478
534
  const connected = !!((currentAccount == null ? void 0 : currentAccount.length) ?? 0 > 0);
479
- const { icon, name, rdns } = (0, import_react4.useMemo)(() => providerInfo ?? { icon: void 0, name: void 0, rdns: void 0 }, [providerInfo]);
480
- const activeProvider = (0, import_react4.useMemo)(
481
- () => ({
482
- connectWallet,
483
- icon,
484
- providerName: name
485
- }),
486
- [connectWallet, icon, name]
487
- );
488
- const onRevokeLocal = (0, import_react4.useCallback)(() => {
535
+ const { icon, name, rdns } = (0, import_react13.useMemo)(() => providerInfo ?? {
536
+ icon: void 0,
537
+ name: void 0,
538
+ rdns: void 0
539
+ }, [
540
+ providerInfo
541
+ ]);
542
+ const activeProvider = (0, import_react13.useMemo)(() => ({
543
+ connectWallet,
544
+ icon,
545
+ providerName: name
546
+ }), [
547
+ connectWallet,
548
+ icon,
549
+ name
550
+ ]);
551
+ const onRevokeLocal = (0, import_react13.useCallback)(() => {
489
552
  onRevoke == null ? void 0 : onRevoke(activeProvider);
490
- }, [activeProvider, onRevoke]);
491
- const onConnectLocal = (0, import_react4.useCallback)(async () => {
553
+ }, [
554
+ activeProvider,
555
+ onRevoke
556
+ ]);
557
+ const onConnectLocal = (0, import_react13.useCallback)(async () => {
492
558
  if (ignoreConnectDialog) {
493
559
  await (connectWallet == null ? void 0 : connectWallet());
494
560
  } else {
495
561
  onConnectClick == null ? void 0 : onConnectClick(activeProvider);
496
562
  }
497
- }, [activeProvider, connectWallet, ignoreConnectDialog, onConnectClick]);
498
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material11.TableRow, { ...props, children: Object.values(ConnectedWalletTableCells).map((Cell, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
499
- Cell,
500
- {
501
- additionalAccounts,
502
- chainName,
503
- connected,
504
- currentAccount,
505
- icon,
506
- onConnect: onConnectLocal,
507
- onRevoke: onRevokeLocal,
508
- totalAccounts,
509
- walletName: name,
510
- walletRdns: rdns
511
- },
512
- index
513
- )) });
514
- };
563
+ }, [
564
+ activeProvider,
565
+ connectWallet,
566
+ ignoreConnectDialog,
567
+ onConnectClick
568
+ ]);
569
+ return /* @__PURE__ */ import_react13.default.createElement(import_material11.TableRow, props, Object.values(ConnectedWalletTableCells).map((Cell, index) => /* @__PURE__ */ import_react13.default.createElement(Cell, {
570
+ key: index,
571
+ additionalAccounts,
572
+ chainName,
573
+ connected,
574
+ currentAccount,
575
+ icon,
576
+ onConnect: onConnectLocal,
577
+ onRevoke: onRevokeLocal,
578
+ totalAccounts,
579
+ walletName: name,
580
+ walletRdns: rdns
581
+ })));
582
+ }, "WalletConnectionsTableRow");
515
583
 
516
584
  // src/components/wallet/table/hooks/useActiveProviderDialogState.tsx
517
- var import_react5 = require("react");
518
- var useActiveProviderDialogState = (setActiveProvider) => {
519
- const [show, setShow] = (0, import_react5.useState)(false);
520
- const onSetActiveProvider = (activeProvider) => {
585
+ var import_react14 = require("react");
586
+ var useActiveProviderDialogState = /* @__PURE__ */ __name((setActiveProvider) => {
587
+ const [show, setShow] = (0, import_react14.useState)(false);
588
+ const onSetActiveProvider = /* @__PURE__ */ __name((activeProvider) => {
521
589
  setShow(true);
522
590
  setActiveProvider(activeProvider);
523
- };
524
- const onClose = () => {
591
+ }, "onSetActiveProvider");
592
+ const onClose = /* @__PURE__ */ __name(() => {
525
593
  setShow(false);
526
594
  setActiveProvider({});
527
- };
528
- return [show, onSetActiveProvider, onClose];
529
- };
595
+ }, "onClose");
596
+ return [
597
+ show,
598
+ onSetActiveProvider,
599
+ onClose
600
+ ];
601
+ }, "useActiveProviderDialogState");
530
602
 
531
603
  // src/components/wallet/table/ConnectedWalletsTable.tsx
532
- var import_jsx_runtime12 = require("react/jsx-runtime");
533
- var ConnectedWalletsTable = ({ ignoreConnectDialog, onIgnoreConnectDialog, wallets, ...props }) => {
534
- const [activeProvider, setActiveProvider] = (0, import_react6.useState)();
604
+ var ConnectedWalletsTable = /* @__PURE__ */ __name(({ ignoreConnectDialog, onIgnoreConnectDialog, wallets, ...props }) => {
605
+ const [activeProvider, setActiveProvider] = (0, import_react15.useState)();
535
606
  const [showConnect, onSetActiveProviderConnect, onConnectClose] = useActiveProviderDialogState(setActiveProvider);
536
607
  const [showRevoke, onSetActiveProviderRevoke, onRevokeClose] = useActiveProviderDialogState(setActiveProvider);
537
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
538
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material12.Table, { ...props, children: [
539
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material12.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material12.TableRow, { children: WalletsTableHeadCells.map(({ disablePadding, id, label, align, width }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material12.TableCell, { align, padding: disablePadding ? "none" : "normal", width: width ?? "auto", children: label }, id)) }) }),
540
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material12.TableBody, { children: (wallets ?? []).map((wallet) => {
541
- var _a;
542
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
543
- WalletConnectionsTableRow,
544
- {
545
- ignoreConnectDialog,
546
- onConnectClick: onSetActiveProviderConnect,
547
- onRevoke: onSetActiveProviderRevoke,
548
- wallet
549
- },
550
- (_a = wallet.providerInfo) == null ? void 0 : _a.rdns
551
- );
552
- }) })
553
- ] }),
554
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RevokeWalletConnectionDialog, { open: showRevoke, onClose: onRevokeClose, activeProvider }),
555
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
556
- ConnectWalletDialog,
557
- {
558
- activeProvider,
559
- onClose: onConnectClose,
560
- open: showConnect,
561
- onIgnoreConnectDialog
562
- }
563
- )
564
- ] });
565
- };
608
+ return /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(import_material12.Table, props, /* @__PURE__ */ import_react15.default.createElement(import_material12.TableHead, null, /* @__PURE__ */ import_react15.default.createElement(import_material12.TableRow, null, WalletsTableHeadCells.map(({ disablePadding, id, label, align, width }) => /* @__PURE__ */ import_react15.default.createElement(import_material12.TableCell, {
609
+ align,
610
+ key: id,
611
+ padding: disablePadding ? "none" : "normal",
612
+ width: width ?? "auto"
613
+ }, label)))), /* @__PURE__ */ import_react15.default.createElement(import_material12.TableBody, null, (wallets ?? []).map((wallet) => {
614
+ var _a;
615
+ return /* @__PURE__ */ import_react15.default.createElement(WalletConnectionsTableRow, {
616
+ ignoreConnectDialog,
617
+ key: (_a = wallet.providerInfo) == null ? void 0 : _a.rdns,
618
+ onConnectClick: onSetActiveProviderConnect,
619
+ onRevoke: onSetActiveProviderRevoke,
620
+ wallet
621
+ });
622
+ }))), /* @__PURE__ */ import_react15.default.createElement(RevokeWalletConnectionDialog, {
623
+ open: showRevoke,
624
+ onClose: onRevokeClose,
625
+ activeProvider
626
+ }), /* @__PURE__ */ import_react15.default.createElement(ConnectWalletDialog, {
627
+ activeProvider,
628
+ onClose: onConnectClose,
629
+ open: showConnect,
630
+ onIgnoreConnectDialog
631
+ }));
632
+ }, "ConnectedWalletsTable");
566
633
 
567
634
  // src/components/ConnectedAccountsFlexbox.tsx
568
- var import_jsx_runtime13 = require("react/jsx-runtime");
569
- var ConnectedAccountsFlexbox = (0, import_react7.forwardRef)(
570
- ({ ignoreConnectDialog, onIgnoreConnectDialog, ...props }, ref) => {
571
- const theme = (0, import_material13.useTheme)();
572
- const { totalConnectedAccounts, sortedWallets } = useDetectedWallets();
573
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexCol, { alignItems: "stretch", justifyContent: "start", gap: 2, ref, ...props, children: [
574
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexCol, { alignItems: "start", children: [
575
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "h2", sx: { mb: 0.5 }, children: "Detected Web3 Wallets" }),
576
- totalConnectedAccounts ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Typography, { variant: "subtitle1", color: theme.palette.secondary.main, sx: { opacity: 0.5 }, children: [
577
- "Total Connected Accounts: ",
578
- totalConnectedAccounts
579
- ] }) : null
580
- ] }),
581
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ConnectedWalletsTable, { wallets: sortedWallets, ignoreConnectDialog, onIgnoreConnectDialog })
582
- ] });
583
- }
584
- );
635
+ var ConnectedAccountsFlexbox = /* @__PURE__ */ (0, import_react16.forwardRef)(({ ignoreConnectDialog, onIgnoreConnectDialog, ...props }, ref) => {
636
+ const theme = (0, import_material13.useTheme)();
637
+ const { totalConnectedAccounts, sortedWallets } = useDetectedWallets();
638
+ return /* @__PURE__ */ import_react16.default.createElement(import_react_flexbox6.FlexCol, {
639
+ alignItems: "stretch",
640
+ justifyContent: "start",
641
+ gap: 2,
642
+ ref,
643
+ ...props
644
+ }, /* @__PURE__ */ import_react16.default.createElement(import_react_flexbox6.FlexCol, {
645
+ alignItems: "start"
646
+ }, /* @__PURE__ */ import_react16.default.createElement(import_material13.Typography, {
647
+ variant: "h2",
648
+ sx: {
649
+ mb: 0.5
650
+ }
651
+ }, "Detected Web3 Wallets"), totalConnectedAccounts ? /* @__PURE__ */ import_react16.default.createElement(import_material13.Typography, {
652
+ variant: "subtitle1",
653
+ color: theme.palette.secondary.main,
654
+ sx: {
655
+ opacity: 0.5
656
+ }
657
+ }, "Total Connected Accounts:", " ", totalConnectedAccounts) : null), /* @__PURE__ */ import_react16.default.createElement(ConnectedWalletsTable, {
658
+ wallets: sortedWallets,
659
+ ignoreConnectDialog,
660
+ onIgnoreConnectDialog
661
+ }));
662
+ });
585
663
  ConnectedAccountsFlexbox.displayName = "ConnectedAccountsFlexbox";
586
664
  // Annotate the CommonJS export names for ESM import in node:
587
665
  0 && (module.exports = {