@xyo-network/react-connected-accounts 2.66.3 → 2.66.5

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