@xyo-network/react-connected-accounts 2.66.3 → 2.66.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/classes/EnabledWallets.d.cts +39 -0
- package/dist/browser/classes/EnabledWallets.d.cts.map +1 -0
- package/dist/browser/classes/EnabledWallets.d.mts +39 -0
- package/dist/browser/classes/EnabledWallets.d.mts.map +1 -0
- package/dist/browser/classes/EnabledWallets.d.ts +39 -0
- package/dist/browser/classes/EnabledWallets.d.ts.map +1 -0
- package/dist/browser/classes/index.d.cts +2 -0
- package/dist/browser/classes/index.d.cts.map +1 -0
- package/dist/browser/classes/index.d.mts +2 -0
- package/dist/browser/classes/index.d.mts.map +1 -0
- package/dist/browser/classes/index.d.ts +2 -0
- package/dist/browser/classes/index.d.ts.map +1 -0
- package/dist/browser/components/ConnectedAccountsFlexbox.d.cts +5 -1
- package/dist/browser/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
- package/dist/browser/components/ConnectedAccountsFlexbox.d.mts +5 -1
- package/dist/browser/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
- package/dist/browser/components/ConnectedAccountsFlexbox.d.ts +5 -1
- package/dist/browser/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +7 -0
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +7 -0
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +7 -0
- package/dist/browser/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts +9 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts +9 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts +9 -0
- package/dist/browser/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +8 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +8 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +8 -0
- package/dist/browser/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts +6 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts +6 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts +6 -0
- package/dist/browser/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.cts +3 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.mts +3 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.ts +3 -0
- package/dist/browser/components/wallet/dialogs/connect/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/index.d.cts +3 -0
- package/dist/browser/components/wallet/dialogs/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/index.d.mts +3 -0
- package/dist/browser/components/wallet/dialogs/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/index.d.ts +3 -0
- package/dist/browser/components/wallet/dialogs/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts +8 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts +8 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts +8 -0
- package/dist/browser/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.cts +2 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.mts +2 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.ts +2 -0
- package/dist/browser/components/wallet/dialogs/revoke/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/index.d.cts +1 -0
- package/dist/browser/components/wallet/index.d.cts.map +1 -1
- package/dist/browser/components/wallet/index.d.mts +1 -0
- package/dist/browser/components/wallet/index.d.mts.map +1 -1
- package/dist/browser/components/wallet/index.d.ts +1 -0
- package/dist/browser/components/wallet/index.d.ts.map +1 -1
- package/dist/browser/components/wallet/lib/ActiveProvider.d.cts +7 -0
- package/dist/browser/components/wallet/lib/ActiveProvider.d.cts.map +1 -0
- package/dist/browser/components/wallet/lib/ActiveProvider.d.mts +7 -0
- package/dist/browser/components/wallet/lib/ActiveProvider.d.mts.map +1 -0
- package/dist/browser/components/wallet/lib/ActiveProvider.d.ts +7 -0
- package/dist/browser/components/wallet/lib/ActiveProvider.d.ts.map +1 -0
- package/dist/browser/components/wallet/lib/TableHeadData.d.cts.map +1 -1
- package/dist/browser/components/wallet/lib/TableHeadData.d.mts.map +1 -1
- package/dist/browser/components/wallet/lib/TableHeadData.d.ts.map +1 -1
- package/dist/browser/components/wallet/lib/index.d.cts +1 -0
- package/dist/browser/components/wallet/lib/index.d.cts.map +1 -1
- package/dist/browser/components/wallet/lib/index.d.mts +1 -0
- package/dist/browser/components/wallet/lib/index.d.mts.map +1 -1
- package/dist/browser/components/wallet/lib/index.d.ts +1 -0
- package/dist/browser/components/wallet/lib/index.d.ts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts +2 -0
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts +2 -0
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts +2 -0
- package/dist/browser/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts +6 -10
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts +6 -10
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts +6 -10
- package/dist/browser/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
- package/dist/browser/components/wallet/table/cells/Accounts.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/Accounts.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Accounts.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/Accounts.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Accounts.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/Accounts.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/Actions.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/Cells.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/ChainName.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/State.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/State.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/State.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/State.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/State.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/State.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.cts +4 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.mts +4 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.ts +4 -0
- package/dist/browser/components/wallet/table/cells/Wallet.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/index.d.cts +7 -0
- package/dist/browser/components/wallet/table/cells/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/index.d.mts +7 -0
- package/dist/browser/components/wallet/table/cells/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/index.d.ts +7 -0
- package/dist/browser/components/wallet/table/cells/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.cts +15 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.mts +15 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.ts +15 -0
- package/dist/browser/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.cts +2 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.mts +2 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.ts +2 -0
- package/dist/browser/components/wallet/table/cells/lib/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/index.d.cts +2 -0
- package/dist/browser/components/wallet/table/hooks/index.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/index.d.mts +2 -0
- package/dist/browser/components/wallet/table/hooks/index.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/index.d.ts +2 -0
- package/dist/browser/components/wallet/table/hooks/index.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +4 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.cts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +4 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.mts.map +1 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +4 -0
- package/dist/browser/components/wallet/table/hooks/useActiveProviderDialogState.d.ts.map +1 -0
- package/dist/browser/components/wallet/table/index.d.cts +2 -0
- package/dist/browser/components/wallet/table/index.d.cts.map +1 -1
- package/dist/browser/components/wallet/table/index.d.mts +2 -0
- package/dist/browser/components/wallet/table/index.d.mts.map +1 -1
- package/dist/browser/components/wallet/table/index.d.ts +2 -0
- package/dist/browser/components/wallet/table/index.d.ts.map +1 -1
- package/dist/browser/hooks/index.d.cts +1 -0
- package/dist/browser/hooks/index.d.cts.map +1 -1
- package/dist/browser/hooks/index.d.mts +1 -0
- package/dist/browser/hooks/index.d.mts.map +1 -1
- package/dist/browser/hooks/index.d.ts +1 -0
- package/dist/browser/hooks/index.d.ts.map +1 -1
- package/dist/browser/hooks/useEnabledWallets.d.cts +15 -0
- package/dist/browser/hooks/useEnabledWallets.d.cts.map +1 -0
- package/dist/browser/hooks/useEnabledWallets.d.mts +15 -0
- package/dist/browser/hooks/useEnabledWallets.d.mts.map +1 -0
- package/dist/browser/hooks/useEnabledWallets.d.ts +15 -0
- package/dist/browser/hooks/useEnabledWallets.d.ts.map +1 -0
- package/dist/browser/img/index.d.cts +4 -0
- package/dist/browser/img/index.d.cts.map +1 -0
- package/dist/browser/img/index.d.mts +4 -0
- package/dist/browser/img/index.d.mts.map +1 -0
- package/dist/browser/img/index.d.ts +4 -0
- package/dist/browser/img/index.d.ts.map +1 -0
- package/dist/browser/index.cjs +462 -79
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -0
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +1 -0
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +452 -79
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/xyo-color-logo-LHR2SMEM.svg +1 -0
- package/dist/browser/xyo-color-logo-text-only-QPAW5BSQ.svg +1 -0
- package/dist/node/classes/EnabledWallets.d.cts +39 -0
- package/dist/node/classes/EnabledWallets.d.cts.map +1 -0
- package/dist/node/classes/EnabledWallets.d.mts +39 -0
- package/dist/node/classes/EnabledWallets.d.mts.map +1 -0
- package/dist/node/classes/EnabledWallets.d.ts +39 -0
- package/dist/node/classes/EnabledWallets.d.ts.map +1 -0
- package/dist/node/classes/index.d.cts +2 -0
- package/dist/node/classes/index.d.cts.map +1 -0
- package/dist/node/classes/index.d.mts +2 -0
- package/dist/node/classes/index.d.mts.map +1 -0
- package/dist/node/classes/index.d.ts +2 -0
- package/dist/node/classes/index.d.ts.map +1 -0
- package/dist/node/components/ConnectedAccountsFlexbox.d.cts +5 -1
- package/dist/node/components/ConnectedAccountsFlexbox.d.cts.map +1 -1
- package/dist/node/components/ConnectedAccountsFlexbox.d.mts +5 -1
- package/dist/node/components/ConnectedAccountsFlexbox.d.mts.map +1 -1
- package/dist/node/components/ConnectedAccountsFlexbox.d.ts +5 -1
- package/dist/node/components/ConnectedAccountsFlexbox.d.ts.map +1 -1
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts +7 -0
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts +7 -0
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts +7 -0
- package/dist/node/components/wallet/dialogs/connect/CheckboxFormControl.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts +9 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts +9 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts +9 -0
- package/dist/node/components/wallet/dialogs/connect/Dialog.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts +8 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts +8 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts +8 -0
- package/dist/node/components/wallet/dialogs/connect/LinkedProvidersFlexbox.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts +6 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts +6 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts +6 -0
- package/dist/node/components/wallet/dialogs/connect/Permissions.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.cts +3 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.mts +3 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.ts +3 -0
- package/dist/node/components/wallet/dialogs/connect/index.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/index.d.cts +3 -0
- package/dist/node/components/wallet/dialogs/index.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/index.d.mts +3 -0
- package/dist/node/components/wallet/dialogs/index.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/index.d.ts +3 -0
- package/dist/node/components/wallet/dialogs/index.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts +8 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts +8 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts +8 -0
- package/dist/node/components/wallet/dialogs/revoke/Dialog.d.ts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.cts +2 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.cts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.mts +2 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.mts.map +1 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.ts +2 -0
- package/dist/node/components/wallet/dialogs/revoke/index.d.ts.map +1 -0
- package/dist/node/components/wallet/index.d.cts +1 -0
- package/dist/node/components/wallet/index.d.cts.map +1 -1
- package/dist/node/components/wallet/index.d.mts +1 -0
- package/dist/node/components/wallet/index.d.mts.map +1 -1
- package/dist/node/components/wallet/index.d.ts +1 -0
- package/dist/node/components/wallet/index.d.ts.map +1 -1
- package/dist/node/components/wallet/lib/ActiveProvider.d.cts +7 -0
- package/dist/node/components/wallet/lib/ActiveProvider.d.cts.map +1 -0
- package/dist/node/components/wallet/lib/ActiveProvider.d.mts +7 -0
- package/dist/node/components/wallet/lib/ActiveProvider.d.mts.map +1 -0
- package/dist/node/components/wallet/lib/ActiveProvider.d.ts +7 -0
- package/dist/node/components/wallet/lib/ActiveProvider.d.ts.map +1 -0
- package/dist/node/components/wallet/lib/TableHeadData.d.cts.map +1 -1
- package/dist/node/components/wallet/lib/TableHeadData.d.mts.map +1 -1
- package/dist/node/components/wallet/lib/TableHeadData.d.ts.map +1 -1
- package/dist/node/components/wallet/lib/index.d.cts +1 -0
- package/dist/node/components/wallet/lib/index.d.cts.map +1 -1
- package/dist/node/components/wallet/lib/index.d.mts +1 -0
- package/dist/node/components/wallet/lib/index.d.mts.map +1 -1
- package/dist/node/components/wallet/lib/index.d.ts +1 -0
- package/dist/node/components/wallet/lib/index.d.ts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts +2 -0
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.cts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts +2 -0
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.mts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts +2 -0
- package/dist/node/components/wallet/table/ConnectedWalletsTable.d.ts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts +6 -10
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.cts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts +6 -10
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.mts.map +1 -1
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts +6 -10
- package/dist/node/components/wallet/table/ConnectedWalletsTableRow.d.ts.map +1 -1
- package/dist/node/components/wallet/table/cells/Accounts.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/Accounts.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/Accounts.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/Accounts.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/Accounts.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/Accounts.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/Actions.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/Actions.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/Actions.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/Actions.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/Actions.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/Actions.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/Cells.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/Cells.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/Cells.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/Cells.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/Cells.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/Cells.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/ChainName.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/State.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/State.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/State.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/State.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/State.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/State.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.cts +4 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.mts +4 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.ts +4 -0
- package/dist/node/components/wallet/table/cells/Wallet.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/index.d.cts +7 -0
- package/dist/node/components/wallet/table/cells/index.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/index.d.mts +7 -0
- package/dist/node/components/wallet/table/cells/index.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/index.d.ts +7 -0
- package/dist/node/components/wallet/table/cells/index.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.cts +15 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.mts +15 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.ts +15 -0
- package/dist/node/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.d.ts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.cts +2 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.cts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.mts +2 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.mts.map +1 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.ts +2 -0
- package/dist/node/components/wallet/table/cells/lib/index.d.ts.map +1 -0
- package/dist/node/components/wallet/table/hooks/index.d.cts +2 -0
- package/dist/node/components/wallet/table/hooks/index.d.cts.map +1 -0
- package/dist/node/components/wallet/table/hooks/index.d.mts +2 -0
- package/dist/node/components/wallet/table/hooks/index.d.mts.map +1 -0
- package/dist/node/components/wallet/table/hooks/index.d.ts +2 -0
- package/dist/node/components/wallet/table/hooks/index.d.ts.map +1 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts +4 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.cts.map +1 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts +4 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.mts.map +1 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts +4 -0
- package/dist/node/components/wallet/table/hooks/useActiveProviderDialogState.d.ts.map +1 -0
- package/dist/node/components/wallet/table/index.d.cts +2 -0
- package/dist/node/components/wallet/table/index.d.cts.map +1 -1
- package/dist/node/components/wallet/table/index.d.mts +2 -0
- package/dist/node/components/wallet/table/index.d.mts.map +1 -1
- package/dist/node/components/wallet/table/index.d.ts +2 -0
- package/dist/node/components/wallet/table/index.d.ts.map +1 -1
- package/dist/node/hooks/index.d.cts +1 -0
- package/dist/node/hooks/index.d.cts.map +1 -1
- package/dist/node/hooks/index.d.mts +1 -0
- package/dist/node/hooks/index.d.mts.map +1 -1
- package/dist/node/hooks/index.d.ts +1 -0
- package/dist/node/hooks/index.d.ts.map +1 -1
- package/dist/node/hooks/useEnabledWallets.d.cts +15 -0
- package/dist/node/hooks/useEnabledWallets.d.cts.map +1 -0
- package/dist/node/hooks/useEnabledWallets.d.mts +15 -0
- package/dist/node/hooks/useEnabledWallets.d.mts.map +1 -0
- package/dist/node/hooks/useEnabledWallets.d.ts +15 -0
- package/dist/node/hooks/useEnabledWallets.d.ts.map +1 -0
- package/dist/node/img/index.d.cts +4 -0
- package/dist/node/img/index.d.cts.map +1 -0
- package/dist/node/img/index.d.mts +4 -0
- package/dist/node/img/index.d.mts.map +1 -0
- package/dist/node/img/index.d.ts +4 -0
- package/dist/node/img/index.d.ts.map +1 -0
- package/dist/node/index.cjs +487 -84
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -0
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +1 -0
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +463 -82
- package/dist/node/index.js.map +1 -1
- package/dist/node/xyo-color-logo-LHR2SMEM.svg +1 -0
- package/dist/node/xyo-color-logo-text-only-QPAW5BSQ.svg +1 -0
- package/package.json +2 -2
- package/src/classes/EnabledWallets.ts +128 -0
- package/src/classes/index.ts +1 -0
- package/src/components/ConnectedAccountsFlexbox.stories.tsx +11 -1
- package/src/components/ConnectedAccountsFlexbox.tsx +28 -17
- package/src/components/wallet/dialogs/connect/CheckboxFormControl.tsx +16 -0
- package/src/components/wallet/dialogs/connect/Dialog.tsx +43 -0
- package/src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx +27 -0
- package/src/components/wallet/dialogs/connect/Permissions.tsx +30 -0
- package/src/components/wallet/dialogs/connect/index.ts +2 -0
- package/src/components/wallet/dialogs/index.ts +2 -0
- package/src/components/wallet/dialogs/revoke/Dialog.tsx +32 -0
- package/src/components/wallet/dialogs/revoke/index.ts +1 -0
- package/src/components/wallet/index.ts +1 -0
- package/src/components/wallet/lib/ActiveProvider.ts +7 -0
- package/src/components/wallet/lib/TableHeadData.ts +7 -0
- package/src/components/wallet/lib/index.ts +1 -0
- package/src/components/wallet/table/ConnectedWalletsTable.tsx +41 -17
- package/src/components/wallet/table/ConnectedWalletsTableRow.tsx +56 -82
- package/src/components/wallet/table/cells/Accounts.tsx +23 -0
- package/src/components/wallet/table/cells/Actions.tsx +29 -0
- package/src/components/wallet/table/cells/Cells.tsx +16 -0
- package/src/components/wallet/table/cells/ChainName.tsx +7 -0
- package/src/components/wallet/table/cells/State.tsx +23 -0
- package/src/components/wallet/table/cells/Wallet.tsx +18 -0
- package/src/components/wallet/table/cells/index.ts +6 -0
- package/src/components/wallet/table/cells/lib/ConnectedWalletTableCellProps.tsx +17 -0
- package/src/components/wallet/table/cells/lib/index.ts +1 -0
- package/src/components/wallet/table/hooks/index.ts +1 -0
- package/src/components/wallet/table/hooks/useActiveProviderDialogState.tsx +20 -0
- package/src/components/wallet/table/index.ts +2 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useEnabledWallets.tsx +45 -0
- package/src/img/index.ts +4 -0
- package/src/img/xyo-color-logo-text-only.svg +1 -0
- package/src/img/xyo-color-logo.svg +1 -0
- package/src/index.ts +1 -0
- package/src/types/images.d.ts +5 -0
package/dist/node/index.cjs
CHANGED
@@ -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
|
-
|
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
|
33
|
-
var
|
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,249 @@ var useDetectedWallets = () => {
|
|
62
173
|
return { sortedWallets, totalConnectedAccounts };
|
63
174
|
};
|
64
175
|
|
65
|
-
// src/
|
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 == null ? void 0 : 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 == null ? void 0 : enabledEthWallets.disableWallet.bind(enabledEthWallets),
|
203
|
+
enableWallet: enabledEthWallets == null ? void 0 : 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 == null ? void 0 : 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
|
+
var _a, _b;
|
282
|
+
try {
|
283
|
+
await ((_a = activeProvider == null ? void 0 : activeProvider.connectWallet) == null ? void 0 : _a.call(activeProvider));
|
284
|
+
(_b = props.onClose) == null ? void 0 : _b.call(props, {}, "escapeKeyDown");
|
285
|
+
} catch (e) {
|
286
|
+
console.warn(`Error connecting to wallet: ${e.message}`);
|
287
|
+
}
|
288
|
+
};
|
289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.Dialog, { PaperProps: { sx: { display: "flex", gap: 4 } }, ...props, children: [
|
290
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.DialogTitle, { sx: { textAlign: "center" }, children: "XYO Wants To Access The Blockchain on Your Behalf" }),
|
291
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.DialogContent, { sx: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
292
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LinkedProvidersFlexbox, { icon, providerName }),
|
293
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(WalletPermissionsFlexbox, {}),
|
294
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckboxFormControl, { onCheckChanged: onIgnoreConnectDialog })
|
295
|
+
] }),
|
296
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.DialogActions, { children: [
|
297
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Button, { variant: "outlined", onClick: () => {
|
298
|
+
var _a;
|
299
|
+
return (_a = props.onClose) == null ? void 0 : _a.call(props, {}, "escapeKeyDown");
|
300
|
+
}, children: "Close" }),
|
301
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Button, { variant: "contained", onClick: onConnect, children: "Connect" })
|
302
|
+
] })
|
303
|
+
] });
|
304
|
+
};
|
305
|
+
|
306
|
+
// src/components/wallet/dialogs/revoke/Dialog.tsx
|
307
|
+
var import_material5 = require("@mui/material");
|
308
|
+
var import_react_crypto4 = require("@xylabs/react-crypto");
|
309
|
+
var import_react_flexbox3 = require("@xylabs/react-flexbox");
|
310
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
311
|
+
var RevokeWalletConnectionDialog = ({ activeProvider, ...props }) => {
|
312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.Dialog, { ...props, children: [
|
313
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_flexbox3.FlexRow, { gap: 2, justifyContent: "start", pl: 2, children: [
|
314
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_crypto4.ConstrainedImage, { src: activeProvider == null ? void 0 : activeProvider.icon, constrainedValue: "24px" }),
|
315
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.DialogTitle, { sx: { pl: 0 }, children: [
|
316
|
+
"Revoke ",
|
317
|
+
activeProvider == null ? void 0 : activeProvider.providerName,
|
318
|
+
" Access"
|
319
|
+
] })
|
320
|
+
] }),
|
321
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.DialogContent, { children: [
|
322
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.Typography, { children: [
|
323
|
+
"Revoking access to your wallet must be done from the wallet's browser extension. Wallets grant access to specific domains please consult ",
|
324
|
+
activeProvider == null ? void 0 : activeProvider.providerName,
|
325
|
+
"'s documentation on how to revoke access to this website:"
|
326
|
+
] }),
|
327
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Typography, { children: window.location.origin })
|
328
|
+
] }),
|
329
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Button, { variant: "contained", onClick: () => {
|
330
|
+
var _a;
|
331
|
+
return (_a = props.onClose) == null ? void 0 : _a.call(props, {}, "escapeKeyDown");
|
332
|
+
}, children: "Close" }) })
|
333
|
+
] });
|
334
|
+
};
|
335
|
+
|
336
|
+
// src/components/wallet/table/cells/Accounts.tsx
|
337
|
+
var import_material6 = require("@mui/material");
|
338
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
339
|
+
var ConnectedWalletsAccountsTableCell = ({
|
340
|
+
additionalAccounts,
|
341
|
+
currentAccount,
|
342
|
+
totalAccounts,
|
343
|
+
tableCellProps
|
344
|
+
}) => {
|
345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.TableCell, { ...tableCellProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
346
|
+
import_material6.Tooltip,
|
347
|
+
{
|
348
|
+
sx: { cursor: totalAccounts > 0 ? "pointer" : "auto" },
|
349
|
+
title: [...currentAccount ?? [], ...additionalAccounts ?? []].map((address, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: address }, index)),
|
350
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.Typography, { children: totalAccounts })
|
351
|
+
}
|
352
|
+
) });
|
353
|
+
};
|
354
|
+
|
355
|
+
// src/components/wallet/table/cells/Actions.tsx
|
356
|
+
var import_icons_material2 = require("@mui/icons-material");
|
357
|
+
var import_material7 = require("@mui/material");
|
358
|
+
var import_react_flexbox4 = require("@xylabs/react-flexbox");
|
359
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
360
|
+
var ConnectedWalletsActionsTableCell = ({ connected, onConnect, onRevoke, tableCellProps }) => {
|
361
|
+
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: [
|
362
|
+
connected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_material7.Typography, { sx: { display: "inline-flex", gap: 0.5 }, children: [
|
363
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material2.Check, {}),
|
364
|
+
"Connected"
|
365
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Button, { variant: "contained", onClick: onConnect, children: "Connect" }),
|
366
|
+
connected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.IconButton, { onClick: onRevoke, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material2.InfoOutlined, {}) }) : null
|
367
|
+
] }) });
|
368
|
+
};
|
369
|
+
|
370
|
+
// src/components/wallet/table/cells/ChainName.tsx
|
371
|
+
var import_material8 = require("@mui/material");
|
372
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
373
|
+
var ConnectedWalletsChainNameTableCell = ({ chainName, tableCellProps }) => {
|
374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.TableCell, { ...tableCellProps, children: chainName });
|
375
|
+
};
|
376
|
+
|
377
|
+
// src/components/wallet/table/cells/State.tsx
|
378
|
+
var import_material9 = require("@mui/material");
|
379
|
+
var import_react3 = require("react");
|
380
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
381
|
+
var ConnectedWalletState = ({ connected, walletRdns, tableCellProps }) => {
|
382
|
+
const { disableWallet, enableWallet, wallets } = useEnabledWallets();
|
383
|
+
const enabled = (0, import_react3.useMemo)(() => walletRdns ? wallets[walletRdns].enabled : false, [wallets, walletRdns]);
|
384
|
+
const handleClick = (event) => {
|
385
|
+
var _a;
|
386
|
+
const checked = (_a = event.target) == null ? void 0 : _a.checked;
|
387
|
+
if (walletRdns) {
|
388
|
+
checked ? enableWallet == null ? void 0 : enableWallet(walletRdns) : disableWallet == null ? void 0 : disableWallet(walletRdns);
|
389
|
+
}
|
390
|
+
};
|
391
|
+
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 }) });
|
392
|
+
};
|
393
|
+
|
394
|
+
// src/components/wallet/table/cells/Wallet.tsx
|
395
|
+
var import_material10 = require("@mui/material");
|
396
|
+
var import_react_crypto5 = require("@xylabs/react-crypto");
|
397
|
+
var import_react_flexbox5 = require("@xylabs/react-flexbox");
|
398
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
399
|
+
var ConnectedWalletsWalletTableCell = ({ icon, walletName, tableCellProps }) => {
|
400
|
+
const theme = (0, import_material10.useTheme)();
|
401
|
+
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: [
|
402
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_crypto5.ConstrainedImage, { constrainedValue: theme.spacing(4), src: icon }),
|
403
|
+
walletName
|
404
|
+
] }) });
|
405
|
+
};
|
406
|
+
|
407
|
+
// src/components/wallet/table/cells/Cells.tsx
|
408
|
+
var ConnectedWalletTableCells = [
|
409
|
+
ConnectedWalletsWalletTableCell,
|
410
|
+
ConnectedWalletsChainNameTableCell,
|
411
|
+
ConnectedWalletsAccountsTableCell,
|
412
|
+
ConnectedWalletsActionsTableCell,
|
413
|
+
ConnectedWalletState
|
414
|
+
];
|
415
|
+
|
416
|
+
// src/components/wallet/table/ConnectedWalletsTable.tsx
|
417
|
+
var import_material12 = require("@mui/material");
|
418
|
+
var import_react6 = require("react");
|
67
419
|
|
68
420
|
// src/components/wallet/lib/TableHeadData.ts
|
69
421
|
var WalletsTableHeadCells = [
|
@@ -94,106 +446,157 @@ var WalletsTableHeadCells = [
|
|
94
446
|
label: "Actions",
|
95
447
|
numeric: false,
|
96
448
|
showOnMobile: true
|
449
|
+
},
|
450
|
+
{
|
451
|
+
disablePadding: false,
|
452
|
+
id: "enabled",
|
453
|
+
label: "Enabled",
|
454
|
+
numeric: false,
|
455
|
+
showOnMobile: true
|
97
456
|
}
|
98
457
|
];
|
99
458
|
|
100
459
|
// src/components/wallet/table/ConnectedWalletsTableRow.tsx
|
101
|
-
var
|
102
|
-
var
|
103
|
-
var
|
104
|
-
var
|
105
|
-
var
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
chainName,
|
111
|
-
icon,
|
112
|
-
name,
|
460
|
+
var import_material11 = require("@mui/material");
|
461
|
+
var import_react_crypto6 = require("@xylabs/react-crypto");
|
462
|
+
var import_react4 = require("react");
|
463
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
464
|
+
var WalletConnectionsTableRow = ({
|
465
|
+
ignoreConnectDialog,
|
466
|
+
onConnectClick,
|
467
|
+
onRevoke,
|
468
|
+
wallet,
|
113
469
|
...props
|
114
470
|
}) => {
|
115
|
-
const
|
471
|
+
const { currentAccount: currentAccountFromWallet, additionalAccounts, chainName, connectWallet, providerInfo } = (0, import_react_crypto6.useEthWallet)(wallet);
|
472
|
+
const currentAccount = (currentAccountFromWallet == null ? void 0 : currentAccountFromWallet.toString()) ? [currentAccountFromWallet.toString()] : [];
|
116
473
|
const totalAccounts = ((additionalAccounts == null ? void 0 : additionalAccounts.length) ?? 0) + ((currentAccount == null ? void 0 : currentAccount.length) ?? 0);
|
117
|
-
const connected = (currentAccount == null ? void 0 : currentAccount.length) ?? 0 > 0;
|
118
|
-
const
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
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 == null ? void 0 : currentAccount.toString();
|
150
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
151
|
-
WalletConnectionsTableRowInner,
|
474
|
+
const connected = !!((currentAccount == null ? void 0 : currentAccount.length) ?? 0 > 0);
|
475
|
+
const { icon, name, rdns } = (0, import_react4.useMemo)(() => providerInfo ?? { icon: void 0, name: void 0, rdns: void 0 }, [providerInfo]);
|
476
|
+
const activeProvider = (0, import_react4.useMemo)(
|
477
|
+
() => ({
|
478
|
+
connectWallet,
|
479
|
+
icon,
|
480
|
+
providerName: name
|
481
|
+
}),
|
482
|
+
[connectWallet, icon, name]
|
483
|
+
);
|
484
|
+
const onRevokeLocal = (0, import_react4.useCallback)(() => {
|
485
|
+
onRevoke == null ? void 0 : onRevoke(activeProvider);
|
486
|
+
}, [activeProvider, onRevoke]);
|
487
|
+
const onConnectLocal = (0, import_react4.useCallback)(async () => {
|
488
|
+
if (ignoreConnectDialog) {
|
489
|
+
await (connectWallet == null ? void 0 : connectWallet());
|
490
|
+
} else {
|
491
|
+
onConnectClick == null ? void 0 : onConnectClick(activeProvider);
|
492
|
+
}
|
493
|
+
}, [activeProvider, connectWallet, ignoreConnectDialog, onConnectClick]);
|
494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material11.TableRow, { ...props, children: Object.values(ConnectedWalletTableCells).map((Cell, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
495
|
+
Cell,
|
152
496
|
{
|
153
497
|
additionalAccounts,
|
154
|
-
currentAccount: currentAccountString ? [currentAccountString] : [],
|
155
498
|
chainName,
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
499
|
+
connected,
|
500
|
+
currentAccount,
|
501
|
+
icon,
|
502
|
+
onConnect: onConnectLocal,
|
503
|
+
onRevoke: onRevokeLocal,
|
504
|
+
totalAccounts,
|
505
|
+
walletName: name,
|
506
|
+
walletRdns: rdns
|
507
|
+
},
|
508
|
+
index
|
509
|
+
)) });
|
161
510
|
};
|
162
511
|
|
163
|
-
// src/components/wallet/table/
|
164
|
-
var
|
165
|
-
var
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
512
|
+
// src/components/wallet/table/hooks/useActiveProviderDialogState.tsx
|
513
|
+
var import_react5 = require("react");
|
514
|
+
var useActiveProviderDialogState = (setActiveProvider) => {
|
515
|
+
const [show, setShow] = (0, import_react5.useState)(false);
|
516
|
+
const onSetActiveProvider = (activeProvider) => {
|
517
|
+
setShow(true);
|
518
|
+
setActiveProvider(activeProvider);
|
519
|
+
};
|
520
|
+
const onClose = () => {
|
521
|
+
setShow(false);
|
522
|
+
setActiveProvider({});
|
523
|
+
};
|
524
|
+
return [show, onSetActiveProvider, onClose];
|
173
525
|
};
|
174
526
|
|
175
|
-
// src/components/
|
176
|
-
var
|
177
|
-
var
|
178
|
-
const
|
179
|
-
const
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
527
|
+
// src/components/wallet/table/ConnectedWalletsTable.tsx
|
528
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
529
|
+
var ConnectedWalletsTable = ({ ignoreConnectDialog, onIgnoreConnectDialog, wallets, ...props }) => {
|
530
|
+
const [activeProvider, setActiveProvider] = (0, import_react6.useState)();
|
531
|
+
const [showConnect, onSetActiveProviderConnect, onConnectClose] = useActiveProviderDialogState(setActiveProvider);
|
532
|
+
const [showRevoke, onSetActiveProviderRevoke, onRevokeClose] = useActiveProviderDialogState(setActiveProvider);
|
533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
534
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material12.Table, { ...props, children: [
|
535
|
+
/* @__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)) }) }),
|
536
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material12.TableBody, { children: (wallets ?? []).map((wallet) => {
|
537
|
+
var _a;
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
539
|
+
WalletConnectionsTableRow,
|
540
|
+
{
|
541
|
+
ignoreConnectDialog,
|
542
|
+
onConnectClick: onSetActiveProviderConnect,
|
543
|
+
onRevoke: onSetActiveProviderRevoke,
|
544
|
+
wallet
|
545
|
+
},
|
546
|
+
(_a = wallet.providerInfo) == null ? void 0 : _a.rdns
|
547
|
+
);
|
548
|
+
}) })
|
187
549
|
] }),
|
188
|
-
/* @__PURE__ */ (0,
|
550
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RevokeWalletConnectionDialog, { open: showRevoke, onClose: onRevokeClose, activeProvider }),
|
551
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
552
|
+
ConnectWalletDialog,
|
553
|
+
{
|
554
|
+
activeProvider,
|
555
|
+
onClose: onConnectClose,
|
556
|
+
open: showConnect,
|
557
|
+
onIgnoreConnectDialog
|
558
|
+
}
|
559
|
+
)
|
189
560
|
] });
|
190
561
|
};
|
562
|
+
|
563
|
+
// src/components/ConnectedAccountsFlexbox.tsx
|
564
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
565
|
+
var ConnectedAccountsFlexbox = (0, import_react7.forwardRef)(
|
566
|
+
({ ignoreConnectDialog, onIgnoreConnectDialog, ...props }, ref) => {
|
567
|
+
const theme = (0, import_material13.useTheme)();
|
568
|
+
const { totalConnectedAccounts, sortedWallets } = useDetectedWallets();
|
569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexCol, { alignItems: "stretch", justifyContent: "start", gap: 2, ref, ...props, children: [
|
570
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexCol, { alignItems: "start", children: [
|
571
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material13.Typography, { variant: "h2", sx: { mb: 0.5 }, children: "Detected Web3 Wallets" }),
|
572
|
+
totalConnectedAccounts ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_material13.Typography, { variant: "subtitle1", color: theme.palette.secondary.main, sx: { opacity: 0.5 }, children: [
|
573
|
+
"Total Connected Accounts: ",
|
574
|
+
totalConnectedAccounts
|
575
|
+
] }) : null
|
576
|
+
] }),
|
577
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ConnectedWalletsTable, { wallets: sortedWallets, ignoreConnectDialog, onIgnoreConnectDialog })
|
578
|
+
] });
|
579
|
+
}
|
580
|
+
);
|
581
|
+
ConnectedAccountsFlexbox.displayName = "ConnectedAccountsFlexbox";
|
191
582
|
// Annotate the CommonJS export names for ESM import in node:
|
192
583
|
0 && (module.exports = {
|
584
|
+
CheckboxFormControl,
|
585
|
+
ConnectWalletDialog,
|
193
586
|
ConnectedAccountsFlexbox,
|
587
|
+
ConnectedWalletState,
|
588
|
+
ConnectedWalletTableCells,
|
589
|
+
ConnectedWalletsAccountsTableCell,
|
590
|
+
ConnectedWalletsActionsTableCell,
|
591
|
+
ConnectedWalletsChainNameTableCell,
|
194
592
|
ConnectedWalletsTable,
|
593
|
+
ConnectedWalletsWalletTableCell,
|
594
|
+
EnabledEthWalletConnections,
|
595
|
+
RevokeWalletConnectionDialog,
|
195
596
|
WalletConnectionsTableRow,
|
196
|
-
|
197
|
-
useDetectedWallets
|
597
|
+
useActiveProviderDialogState,
|
598
|
+
useDetectedWallets,
|
599
|
+
useEnabledWallets,
|
600
|
+
useEnabledWalletsInner
|
198
601
|
});
|
199
602
|
//# sourceMappingURL=index.cjs.map
|