@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.
- 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 +4 -4
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/components/ConnectedAccountsFlexbox.tsx","../../src/hooks/useDetectWallets.tsx","../../src/components/wallet/table/ConnectedWalletsTable.tsx","../../src/components/wallet/lib/TableHeadData.ts","../../src/components/wallet/table/ConnectedWalletsTableRow.tsx"],"sourcesContent":["import { Typography, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\n\nimport { useDetectedWallets } from '../hooks'\nimport { ConnectedWalletsTable } from './wallet'\n\nexport const ConnectedAccountsFlexbox: React.FC<FlexBoxProps> = (props) => {\n const theme = useTheme()\n\n const { totalConnectedAccounts, sortedWallets } = useDetectedWallets()\n\n return (\n <FlexCol alignItems=\"stretch\" justifyContent=\"start\" gap={2} {...props}>\n <FlexCol alignItems=\"start\">\n <Typography variant={'h2'} sx={{ mb: 0.5 }}>\n Detected Web3 Wallets\n </Typography>\n {totalConnectedAccounts ? (\n <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\n ) : null}\n </FlexCol>\n <ConnectedWalletsTable wallets={sortedWallets} />\n </FlexCol>\n )\n}\n","import { AccountsChangedEventName, DiscoveredWallets, EIP6963Connector, useWalletDiscovery } from '@xylabs/react-crypto'\nimport { useEffect, useMemo, useState } from 'react'\n\nconst sortWallets = (wallets: DiscoveredWallets) =>\n Object.values(wallets).reduce((acc, wallet) => {\n wallet.allowedAccounts.length > 0 ? acc.unshift(wallet) : acc.push(wallet)\n return acc\n }, [] as EIP6963Connector[])\n\nexport const useDetectedWallets = () => {\n const wallets = useWalletDiscovery()\n const [refresh, setRefresh] = useState(0)\n const [sortedWallets, setSortedWallets] = useState<EIP6963Connector[]>([])\n\n useEffect(() => {\n setSortedWallets(sortWallets(wallets))\n }, [wallets, refresh])\n\n /**\n * Rely on custom events from the wallet base class to know when accounts are changed.\n * This approach prevents the need to loop through all wallets and set up individual listeners.\n */\n useEffect(() => {\n const listener: (event: CustomEventInit) => void = () => {\n setRefresh((refresh) => refresh + 1)\n }\n window.addEventListener(AccountsChangedEventName, listener)\n\n return () => {\n window.removeEventListener(AccountsChangedEventName, listener)\n }\n }, [wallets])\n\n const totalConnectedAccounts = useMemo(\n () => Object.values(sortedWallets).reduce((acc, wallet) => acc + wallet.allowedAccounts.length, 0),\n [sortedWallets],\n )\n\n return { sortedWallets, totalConnectedAccounts }\n}\n","import { Table, TableBody, TableCell, TableHead, TableProps, TableRow } from '@mui/material'\nimport { EIP6963Connector } from '@xylabs/react-crypto'\n\nimport { WalletsTableHeadCells } from '../lib'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow'\n\nexport interface ConnectedWalletsTableProps extends TableProps {\n wallets?: EIP6963Connector[]\n}\n\nexport const ConnectedWalletsTable: React.FC<ConnectedWalletsTableProps> = ({ wallets, ...props }) => {\n return (\n <Table {...props}>\n <TableHead>\n <TableRow>\n {WalletsTableHeadCells.map(({ disablePadding, id, label, align, width }) => (\n <TableCell align={align} key={id} padding={disablePadding ? 'none' : 'normal'} width={width ?? 'auto'}>\n {label}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {(wallets ?? []).map((wallet) => (\n <WalletConnectionsTableRow wallet={wallet} key={wallet.providerInfo?.rdns} />\n ))}\n </TableBody>\n </Table>\n )\n}\n","import { TableHeadCell } from '@xyo-network/react-table'\n\nexport const WalletsTableHeadCells: TableHeadCell[] = [\n {\n disablePadding: false,\n id: 'wallet',\n label: 'Wallet',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'chain',\n label: 'Chain',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'accounts',\n label: 'Accounts',\n numeric: true,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'actions',\n label: 'Actions',\n numeric: false,\n showOnMobile: true,\n },\n]\n","import { Check } from '@mui/icons-material'\nimport { Button, TableCell, TableRow, TableRowProps, Tooltip, Typography, useTheme } from '@mui/material'\nimport { ConstrainedImage, EthWalletConnectorBase, useEthWallet } from '@xylabs/react-crypto'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { ReactNode, useMemo } from 'react'\n\nexport interface WalletConnectionsTableRowInnerProps extends TableRowProps {\n additionalAccounts?: string[]\n chainName?: string\n currentAccount?: string[]\n icon?: string\n name?: string\n}\n\nexport const WalletConnectionsTableRowInner: React.FC<WalletConnectionsTableRowInnerProps> = ({\n additionalAccounts,\n currentAccount,\n chainName,\n icon,\n name,\n ...props\n}) => {\n const theme = useTheme()\n\n const totalAccounts = (additionalAccounts?.length ?? 0) + (currentAccount?.length ?? 0)\n const connected = currentAccount?.length ?? 0 > 0\n\n const Cells = useMemo(() => {\n const TableCells: Record<string, ReactNode> = {\n wallet: (\n <TableCell key={1}>\n <FlexRow gap={2} justifyContent=\"start\">\n <ConstrainedImage constrainedValue={theme.spacing(4)} src={icon} />\n {name}\n </FlexRow>\n </TableCell>\n ),\n // eslint-disable-next-line sort-keys-fix/sort-keys-fix\n chain: <TableCell key={2}>{chainName}</TableCell>,\n // eslint-disable-next-line sort-keys-fix/sort-keys-fix\n accounts: (\n <TableCell key={3}>\n <Tooltip\n sx={{ cursor: totalAccounts > 0 ? 'pointer' : 'auto' }}\n title={[...(currentAccount ?? []), ...(additionalAccounts ?? [])].map((address, index) => (\n <p key={index}>{address}</p>\n ))}\n >\n <Typography>{totalAccounts}</Typography>\n </Tooltip>\n </TableCell>\n ),\n actions: (\n <TableCell key={4}>\n <FlexRow gap={2} justifyContent=\"start\">\n {connected ? (\n <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n ) : (\n <Button variant={'contained'}>Connect</Button>\n )}\n {connected ? (\n <Button variant={'outlined'} color={'error'}>\n Revoke\n </Button>\n ) : null}\n </FlexRow>\n </TableCell>\n ),\n }\n return TableCells\n }, [additionalAccounts, chainName, connected, currentAccount, icon, name, theme, totalAccounts])\n\n return <TableRow {...props}>{Object.values(Cells).map((cell) => cell)}</TableRow>\n}\n\nexport interface WalletConnectionsTableRow extends TableRowProps {\n wallet: EthWalletConnectorBase\n}\nexport const WalletConnectionsTableRow: React.FC<WalletConnectionsTableRow> = ({ wallet, ...props }) => {\n const { currentAccount, additionalAccounts, chainName, providerInfo, providerName } = useEthWallet(wallet)\n const currentAccountString = currentAccount?.toString()\n return (\n <WalletConnectionsTableRowInner\n additionalAccounts={additionalAccounts}\n currentAccount={currentAccountString ? [currentAccountString] : []}\n chainName={chainName}\n icon={providerInfo?.icon}\n name={providerName}\n {...props}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,cAAAA,aAAY,YAAAC,i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SAAS,QAC5F,mBAD2B,EAE9B,CACD,GACH,GACF;AAAA,IACA,gBAAAH,KAAC,aACG,sBAAW,CAAC,GAAG,IAAI,CAAC,WACpB,gBAAAA,KAAC,6BAA0B,UAAqB,OAAO,cAAc,IAAM,CAC5E,GACH;AAAA,KACF;AAEJ;;;AFfQ,gBAAAI,MAIE,QAAAC,aAJF;AARD,IAAM,2BAAmD,CAAC,UAAU;AACzE,QAAM,QAAQC,UAAS;AAEvB,QAAM,EAAE,wBAAwB,cAAc,IAAI,mBAAmB;AAErE,SACE,gBAAAD,MAAC,WAAQ,YAAW,WAAU,gBAAe,SAAQ,KAAK,GAAI,GAAG,OAC/D;AAAA,oBAAAA,MAAC,WAAQ,YAAW,SAClB;AAAA,sBAAAD,KAACG,aAAA,EAAW,SAAS,MAAM,IAAI,EAAE,IAAI,IAAI,GAAG,mCAE5C;AAAA,MACC,yBACC,gBAAAF,MAACE,aAAA,EAAW,SAAS,aAAa,OAAO,MAAM,QAAQ,UAAU,MAAM,IAAI,EAAE,SAAS,IAAI,GAAG;AAAA;AAAA,QAChE;AAAA,SAC7B,IACE;AAAA,OACN;AAAA,IACA,gBAAAH,KAAC,yBAAsB,SAAS,eAAe;AAAA,KACjD;AAEJ;","names":["Typography","useTheme","refresh","TableCell","TableRow","useMemo","jsx","jsxs","TableRow","TableCell","jsx","jsxs","useTheme","Typography"]}
|
1
|
+
{"version":3,"sources":["../../src/classes/EnabledWallets.ts","../../src/components/ConnectedAccountsFlexbox.tsx","../../src/hooks/useDetectWallets.tsx","../../src/hooks/useEnabledWallets.tsx","../../src/components/wallet/dialogs/connect/CheckboxFormControl.tsx","../../src/components/wallet/dialogs/connect/Dialog.tsx","../../src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx","../../src/img/index.ts","../../src/components/wallet/dialogs/connect/Permissions.tsx","../../src/components/wallet/dialogs/revoke/Dialog.tsx","../../src/components/wallet/table/cells/Accounts.tsx","../../src/components/wallet/table/cells/Actions.tsx","../../src/components/wallet/table/cells/ChainName.tsx","../../src/components/wallet/table/cells/State.tsx","../../src/components/wallet/table/cells/Wallet.tsx","../../src/components/wallet/table/cells/Cells.tsx","../../src/components/wallet/table/ConnectedWalletsTable.tsx","../../src/components/wallet/lib/TableHeadData.ts","../../src/components/wallet/table/ConnectedWalletsTableRow.tsx","../../src/components/wallet/table/hooks/useActiveProviderDialogState.tsx"],"sourcesContent":["import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto'\n\nconst DEFAULT_LOCAL_STORAGE_KEY = 'XYO|EnabledWallets'\n\n/**\n * State for storing wallets and their enabled/disabled status by name\n */\nexport interface EnabledEthWalletsState {\n [rdns: string]: {\n enabled: boolean\n wallet: EIP6963Connector\n }\n}\n\n/**\n * State for storing only enabled/disabled status of a wallet by name\n */\nexport interface EnabledWalletsSavedState {\n [rdns: string]: boolean\n}\n\nexport type WalletListener = () => void\n\nexport class EnabledEthWalletConnections {\n // control whether or not enabled/disabled preferences are persisted (i.e. in localStorage)\n public persistPreferences = true\n\n // Map of wallet names and their enabled/disabled state\n private enabledWallets: EnabledWalletsSavedState = {}\n\n // Map of wallet names, their enabled/disabled state, and their wallet class\n private ethWalletsState: EnabledEthWalletsState = {}\n\n // list of listeners that want to be notified on wallet changes\n private listeners: WalletListener[] = []\n\n // key to use in localStorage when persisting preferences\n private localStorageKey = DEFAULT_LOCAL_STORAGE_KEY\n\n constructor(localStorageKey = DEFAULT_LOCAL_STORAGE_KEY) {\n this.localStorageKey = localStorageKey\n this.reviveSettings()\n }\n\n get wallets() {\n return this.ethWalletsState\n }\n\n disableWallet(rdns: string) {\n this.toggleEnabledWallet(rdns, false)\n }\n\n enableWallet(rdns: string) {\n this.toggleEnabledWallet(rdns, true)\n }\n\n /**\n * Given a new set of wallets, set their enabled state based off previous preferences\n */\n resetWallets(wallets: DiscoveredWallets) {\n const newWallets: EnabledEthWalletsState = {}\n\n const addWallet = ([walletName, wallet]: [string, EIP6963Connector]) => {\n newWallets[walletName] = {\n // preserve the existing enabled state\n enabled: walletName in this.enabledWallets ? this.enabledWallets[walletName] : true,\n wallet,\n }\n }\n\n Object.entries(wallets).forEach(addWallet.bind(this))\n this.ethWalletsState = newWallets\n this.emitChange()\n }\n\n subscribe(listener: WalletListener) {\n this.listeners = [...this.listeners, listener]\n return () => {\n this.listeners = this.listeners.filter((existingListener) => existingListener !== listener)\n }\n }\n\n toggleEnabledWallet(rdns: string, enabled: boolean) {\n if (rdns && this.ethWalletsState[rdns]) {\n this.ethWalletsState[rdns].enabled = enabled\n this.ethWalletsState = { ...this.ethWalletsState }\n this.emitChange()\n }\n }\n\n private emitChange() {\n for (const listener of this.listeners) {\n listener()\n }\n\n this.persistSettings()\n }\n\n private isPersistance(method: () => void) {\n if (this.persistPreferences) {\n method()\n }\n }\n\n private persistSettings() {\n this.isPersistance(() => {\n // convert wallet enabled selections into serializable state\n const enabledWallets = Object.entries(this.ethWalletsState).reduce((acc, [rdns, { enabled }]) => {\n acc[rdns] = enabled\n return acc\n }, {} as EnabledWalletsSavedState)\n\n localStorage.setItem(this.localStorageKey, JSON.stringify(enabledWallets))\n })\n }\n\n private reviveSettings() {\n this.isPersistance(() => {\n const existingEntries = localStorage.getItem(this.localStorageKey)\n try {\n const entries = existingEntries ? JSON.parse(existingEntries) : {}\n this.enabledWallets = entries\n } catch (e) {\n console.warn(`Error parsing saved enabled wallet entries: ${(e as Error).message}`)\n }\n })\n }\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { forwardRef } from 'react'\n\nimport { useDetectedWallets } from '../hooks'\nimport { ConnectedWalletsTable } from './wallet'\n\nexport interface ConnectedAccountsFlexboxProps extends FlexBoxProps {\n ignoreConnectDialog?: boolean\n // A callback that is invoked when the option to ignore the dialog is checked\n onIgnoreConnectDialog?: (checked: boolean) => void\n}\n\nexport const ConnectedAccountsFlexbox = forwardRef<HTMLDivElement, ConnectedAccountsFlexboxProps>(\n ({ ignoreConnectDialog, onIgnoreConnectDialog, ...props }, ref) => {\n const theme = useTheme()\n\n const { totalConnectedAccounts, sortedWallets } = useDetectedWallets()\n\n return (\n <FlexCol alignItems=\"stretch\" justifyContent=\"start\" gap={2} ref={ref} {...props}>\n <FlexCol alignItems=\"start\">\n <Typography variant={'h2'} sx={{ mb: 0.5 }}>\n Detected Web3 Wallets\n </Typography>\n {totalConnectedAccounts ? (\n <Typography variant={'subtitle1'} color={theme.palette.secondary.main} sx={{ opacity: 0.5 }}>\n Total Connected Accounts: {totalConnectedAccounts}\n </Typography>\n ) : null}\n </FlexCol>\n <ConnectedWalletsTable wallets={sortedWallets} ignoreConnectDialog={ignoreConnectDialog} onIgnoreConnectDialog={onIgnoreConnectDialog} />\n </FlexCol>\n )\n },\n)\n\nConnectedAccountsFlexbox.displayName = 'ConnectedAccountsFlexbox'\n","import { AccountsChangedEventName, DiscoveredWallets, EIP6963Connector, useWalletDiscovery } from '@xylabs/react-crypto'\nimport { useEffect, useMemo, useState } from 'react'\n\nconst sortWallets = (wallets: DiscoveredWallets) =>\n Object.values(wallets).reduce((acc, wallet) => {\n wallet.allowedAccounts.length > 0 ? acc.unshift(wallet) : acc.push(wallet)\n return acc\n }, [] as EIP6963Connector[])\n\nexport const useDetectedWallets = () => {\n const wallets = useWalletDiscovery()\n const [refresh, setRefresh] = useState(0)\n const [sortedWallets, setSortedWallets] = useState<EIP6963Connector[]>([])\n\n useEffect(() => {\n setSortedWallets(sortWallets(wallets))\n }, [wallets, refresh])\n\n /**\n * Rely on custom events from the wallet base class to know when accounts are changed.\n * This approach prevents the need to loop through all wallets and set up individual listeners.\n */\n useEffect(() => {\n const listener: (event: CustomEventInit) => void = () => {\n setRefresh((refresh) => refresh + 1)\n }\n window.addEventListener(AccountsChangedEventName, listener)\n\n return () => {\n window.removeEventListener(AccountsChangedEventName, listener)\n }\n }, [wallets])\n\n const totalConnectedAccounts = useMemo(\n () => Object.values(sortedWallets).reduce((acc, wallet) => acc + wallet.allowedAccounts.length, 0),\n [sortedWallets],\n )\n\n return { sortedWallets, totalConnectedAccounts }\n}\n","import { useWalletDiscovery } from '@xylabs/react-crypto'\nimport { useMemo, useSyncExternalStore } from 'react'\n\nimport { EnabledEthWalletConnections, EnabledEthWalletsState, EnabledWalletsSavedState } from '../classes'\n\nlet enabledEthWallets: EnabledEthWalletConnections | undefined\n\n/**\n * Takes the discovered wallets and tracks their enabled state globally\n */\nexport const useEnabledWalletsInner = (enabledWalletsRdns?: EnabledWalletsSavedState) => {\n const discoveredWallets = useWalletDiscovery()\n\n // when we discover new wallets, build their enabled state\n const wallets = useMemo(() => {\n if (enabledEthWallets === undefined) enabledEthWallets = new EnabledEthWalletConnections()\n enabledEthWallets.resetWallets(discoveredWallets)\n Object.entries(enabledWalletsRdns ?? {}).forEach(([rdns, enabled]) => enabledEthWallets?.toggleEnabledWallet(rdns, enabled))\n return enabledEthWallets\n }, [discoveredWallets, enabledWalletsRdns])\n\n return useSyncExternalStore(wallets.subscribe.bind(wallets), () => wallets.wallets)\n}\n\n/**\n * Expose an interface for enabling and disabling wallets\n */\nexport const useEnabledWallets = (enabledWalletsRdns?: EnabledWalletsSavedState) => {\n const wallets = useEnabledWalletsInner(enabledWalletsRdns)\n const enabledWallets = useMemo(\n () =>\n Object.entries(wallets).reduce((acc, [walletName, wallet]) => {\n if (wallet.enabled) acc[walletName] = wallet\n return acc\n }, {} as EnabledEthWalletsState),\n [wallets],\n )\n\n return {\n disableWallet: enabledEthWallets?.disableWallet.bind(enabledEthWallets),\n enableWallet: enabledEthWallets?.enableWallet.bind(enabledEthWallets),\n enabledWallets,\n wallets,\n }\n}\n","import { Checkbox, FormControl, FormControlProps, FormLabel } from '@mui/material'\n\nexport interface CheckboxFormControlProps extends FormControlProps {\n onCheckChanged?: (checked: boolean) => void\n}\n\nexport const CheckboxFormControl: React.FC<CheckboxFormControlProps> = ({ onCheckChanged, ...props }) => {\n return (\n <FormControl {...props}>\n <FormLabel>\n <Checkbox onChange={(_, checked) => onCheckChanged?.(checked)} />\n Do not show this again.\n </FormLabel>\n </FormControl>\n )\n}\n","import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle } from '@mui/material'\n\nimport { ActiveProvider } from '../../lib'\nimport { CheckboxFormControl } from './CheckboxFormControl'\nimport { LinkedProvidersFlexbox } from './LinkedProvidersFlexbox'\nimport { WalletPermissionsFlexbox } from './Permissions'\n\nexport interface ConnectWalletDialogProps extends DialogProps {\n activeProvider?: ActiveProvider\n onIgnoreConnectDialog?: (checked: boolean) => void\n}\n\nexport const ConnectWalletDialog: React.FC<ConnectWalletDialogProps> = ({ activeProvider, onIgnoreConnectDialog, ...props }) => {\n const { icon, providerName } = activeProvider ?? {}\n\n const onConnect = async () => {\n try {\n await activeProvider?.connectWallet?.()\n props.onClose?.({}, 'escapeKeyDown')\n } catch (e) {\n console.warn(`Error connecting to wallet: ${(e as Error).message}`)\n }\n }\n\n return (\n <Dialog PaperProps={{ sx: { display: 'flex', gap: 4 } }} {...props}>\n <DialogTitle sx={{ textAlign: 'center' }}>XYO Wants To Access The Blockchain on Your Behalf</DialogTitle>\n <DialogContent sx={{ display: 'flex', flexDirection: 'column', gap: 4 }}>\n <LinkedProvidersFlexbox icon={icon} providerName={providerName} />\n <WalletPermissionsFlexbox />\n <CheckboxFormControl onCheckChanged={onIgnoreConnectDialog} />\n </DialogContent>\n <DialogActions>\n <Button variant=\"outlined\" onClick={() => props.onClose?.({}, 'escapeKeyDown')}>\n Close\n </Button>\n <Button variant=\"contained\" onClick={onConnect}>\n Connect\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n","import { SyncAlt } from '@mui/icons-material'\nimport { Typography } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\n\nimport { xyoColorLogo } from '../../../../img'\n\nexport interface LinkedProvidersFlexboxProps extends FlexBoxProps {\n icon?: string\n providerName?: string\n}\n\nexport const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps> = ({ icon, providerName, ...props }) => {\n return (\n <FlexRow gap={4} justifyContent=\"space-evenly\" {...props}>\n <FlexCol gap={0.5}>\n <img alt=\"XYO Logo\" src={xyoColorLogo} style={{ height: '48px' }} />\n <Typography variant=\"subtitle1\">XYO App</Typography>\n </FlexCol>\n <SyncAlt fontSize={'large'} />\n <FlexCol gap={0.5}>\n <ConstrainedImage constrainedValue={'48px'} src={icon} alt={providerName} style={{ height: '48px', maxWidth: '48px' }} />\n <Typography variant=\"subtitle1\">{providerName}</Typography>\n </FlexCol>\n </FlexRow>\n )\n}\n","import xyoColorLogo from './xyo-color-logo.svg'\nimport xyoColorLogoText from './xyo-color-logo-text-only.svg'\n\nexport { xyoColorLogo, xyoColorLogoText }\n","import { Link, Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\n\nexport interface WalletPermissionsFlexBoxProps extends FlexBoxProps {}\n\nexport const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps> = (props) => {\n return (\n <FlexCol gap={4} {...props}>\n <Typography fontWeight=\"bold\" sx={{ textAlign: 'center' }}>\n This will allow XYO to:\n </Typography>\n <ul>\n <li>View your wallet account(s) and address(es)</li>\n <li>Read-only access to browse the public blockchain(s) you select</li>\n </ul>\n <Typography variant=\"subtitle1\" sx={{ textAlign: 'center' }}>\n You control what accounts to share and what blockchains to view. You can see or revoke access via your wallet's settings at anytime. View\n more on XYO's sovereign data philosophy{' '}\n <Link\n href=\"https://cointelegraph.com/innovation-circle/decentralization-and-sovereignty-debunking-our-approach-to-digital-sovereignty\"\n sx={{ fontWeight: 'bold' }}\n target=\"_blank\"\n >\n here\n </Link>\n .\n </Typography>\n </FlexCol>\n )\n}\n","import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle, Typography } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { ActiveProvider } from '../../lib'\n\nexport interface RevokeWalletConnectionDialogProps extends DialogProps {\n activeProvider?: ActiveProvider\n}\n\nexport const RevokeWalletConnectionDialog: React.FC<RevokeWalletConnectionDialogProps> = ({ activeProvider, ...props }) => {\n return (\n <Dialog {...props}>\n <FlexRow gap={2} justifyContent=\"start\" pl={2}>\n <ConstrainedImage src={activeProvider?.icon} constrainedValue={'24px'} />\n <DialogTitle sx={{ pl: 0 }}>Revoke {activeProvider?.providerName} Access</DialogTitle>\n </FlexRow>\n <DialogContent>\n <Typography>\n Revoking access to your wallet must be done from the wallet's browser extension. Wallets grant access to specific domains please\n consult {activeProvider?.providerName}'s documentation on how to revoke access to this website:\n </Typography>\n <Typography>{window.location.origin}</Typography>\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => props.onClose?.({}, 'escapeKeyDown')}>\n Close\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n","import { TableCell, Tooltip, Typography } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsAccountsTableCell: React.FC<ConnectedWalletTableCellProps> = ({\n additionalAccounts,\n currentAccount,\n totalAccounts,\n tableCellProps,\n}) => {\n return (\n <TableCell {...tableCellProps}>\n <Tooltip\n sx={{ cursor: totalAccounts > 0 ? 'pointer' : 'auto' }}\n title={[...(currentAccount ?? []), ...(additionalAccounts ?? [])].map((address, index) => (\n <p key={index}>{address}</p>\n ))}\n >\n <Typography>{totalAccounts}</Typography>\n </Tooltip>\n </TableCell>\n )\n}\n","import { Check, InfoOutlined } from '@mui/icons-material'\nimport { Button, IconButton, TableCell, Typography } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsActionsTableCell: React.FC<ConnectedWalletTableCellProps> = ({ connected, onConnect, onRevoke, tableCellProps }) => {\n return (\n <TableCell {...tableCellProps}>\n <FlexRow gap={2} justifyContent=\"start\">\n {connected ? (\n <Typography sx={{ display: 'inline-flex', gap: 0.5 }}>\n <Check />\n Connected\n </Typography>\n ) : (\n <Button variant={'contained'} onClick={onConnect}>\n Connect\n </Button>\n )}\n {connected ? (\n <IconButton onClick={onRevoke}>\n <InfoOutlined />\n </IconButton>\n ) : null}\n </FlexRow>\n </TableCell>\n )\n}\n","import { TableCell } from '@mui/material'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsChainNameTableCell: React.FC<ConnectedWalletTableCellProps> = ({ chainName, tableCellProps }) => {\n return <TableCell {...tableCellProps}>{chainName}</TableCell>\n}\n","import { Switch, TableCell } from '@mui/material'\nimport { ChangeEvent, useMemo } from 'react'\n\nimport { useEnabledWallets } from '../../../../hooks'\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletState: React.FC<ConnectedWalletTableCellProps> = ({ connected, walletRdns, tableCellProps }) => {\n const { disableWallet, enableWallet, wallets } = useEnabledWallets()\n\n const enabled = useMemo(() => (walletRdns ? wallets[walletRdns].enabled : false), [wallets, walletRdns])\n\n const handleClick = (event: ChangeEvent<HTMLInputElement>) => {\n const checked = event.target?.checked\n if (walletRdns) {\n checked ? enableWallet?.(walletRdns) : disableWallet?.(walletRdns)\n }\n }\n return (\n <TableCell {...tableCellProps}>\n <Switch disabled={!connected} checked={connected && enabled} onChange={handleClick} />\n </TableCell>\n )\n}\n","import { TableCell, useTheme } from '@mui/material'\nimport { ConstrainedImage } from '@xylabs/react-crypto'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { ConnectedWalletTableCellProps } from './lib'\n\nexport const ConnectedWalletsWalletTableCell: React.FC<ConnectedWalletTableCellProps> = ({ icon, walletName, tableCellProps }) => {\n const theme = useTheme()\n\n return (\n <TableCell {...tableCellProps}>\n <FlexRow gap={2} justifyContent=\"start\">\n <ConstrainedImage constrainedValue={theme.spacing(4)} src={icon} />\n {walletName}\n </FlexRow>\n </TableCell>\n )\n}\n","import { ComponentType } from 'react'\n\nimport { ConnectedWalletsAccountsTableCell } from './Accounts'\nimport { ConnectedWalletsActionsTableCell } from './Actions'\nimport { ConnectedWalletsChainNameTableCell } from './ChainName'\nimport { ConnectedWalletTableCellProps } from './lib'\nimport { ConnectedWalletState } from './State'\nimport { ConnectedWalletsWalletTableCell } from './Wallet'\n\nexport const ConnectedWalletTableCells: ComponentType<ConnectedWalletTableCellProps>[] = [\n ConnectedWalletsWalletTableCell,\n ConnectedWalletsChainNameTableCell,\n ConnectedWalletsAccountsTableCell,\n ConnectedWalletsActionsTableCell,\n ConnectedWalletState,\n]\n","import { Table, TableBody, TableCell, TableHead, TableProps, TableRow } from '@mui/material'\nimport { EIP6963Connector } from '@xylabs/react-crypto'\nimport { useState } from 'react'\n\nimport { ConnectWalletDialog, RevokeWalletConnectionDialog } from '../dialogs'\nimport { ActiveProvider, WalletsTableHeadCells } from '../lib'\nimport { WalletConnectionsTableRow } from './ConnectedWalletsTableRow'\nimport { useActiveProviderDialogState } from './hooks'\n\nexport interface ConnectedWalletsTableProps extends TableProps {\n ignoreConnectDialog?: boolean\n onIgnoreConnectDialog?: (checked: boolean) => void\n wallets?: EIP6963Connector[]\n}\n\nexport const ConnectedWalletsTable: React.FC<ConnectedWalletsTableProps> = ({ ignoreConnectDialog, onIgnoreConnectDialog, wallets, ...props }) => {\n const [activeProvider, setActiveProvider] = useState<ActiveProvider>()\n const [showConnect, onSetActiveProviderConnect, onConnectClose] = useActiveProviderDialogState(setActiveProvider)\n const [showRevoke, onSetActiveProviderRevoke, onRevokeClose] = useActiveProviderDialogState(setActiveProvider)\n\n return (\n <>\n <Table {...props}>\n <TableHead>\n <TableRow>\n {WalletsTableHeadCells.map(({ disablePadding, id, label, align, width }) => (\n <TableCell align={align} key={id} padding={disablePadding ? 'none' : 'normal'} width={width ?? 'auto'}>\n {label}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {(wallets ?? []).map((wallet) => (\n <WalletConnectionsTableRow\n ignoreConnectDialog={ignoreConnectDialog}\n key={wallet.providerInfo?.rdns}\n onConnectClick={onSetActiveProviderConnect}\n onRevoke={onSetActiveProviderRevoke}\n wallet={wallet}\n />\n ))}\n </TableBody>\n </Table>\n <RevokeWalletConnectionDialog open={showRevoke} onClose={onRevokeClose} activeProvider={activeProvider} />\n <ConnectWalletDialog\n activeProvider={activeProvider}\n onClose={onConnectClose}\n open={showConnect}\n onIgnoreConnectDialog={onIgnoreConnectDialog}\n />\n </>\n )\n}\n","import { TableHeadCell } from '@xyo-network/react-table'\n\nexport const WalletsTableHeadCells: TableHeadCell[] = [\n {\n disablePadding: false,\n id: 'wallet',\n label: 'Wallet',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'chain',\n label: 'Chain',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'accounts',\n label: 'Accounts',\n numeric: true,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'actions',\n label: 'Actions',\n numeric: false,\n showOnMobile: true,\n },\n {\n disablePadding: false,\n id: 'enabled',\n label: 'Enabled',\n numeric: false,\n showOnMobile: true,\n },\n]\n","import { TableRow, TableRowProps } from '@mui/material'\nimport { EthWalletConnectorBase, useEthWallet } from '@xylabs/react-crypto'\nimport { useCallback, useMemo } from 'react'\n\nimport { ActiveProvider } from '../lib'\nimport { ConnectedWalletTableCells } from './cells'\n\nexport interface WalletConnectionsTableRowProps extends TableRowProps {\n ignoreConnectDialog?: boolean\n onConnectClick?: (activeProvider: ActiveProvider) => void\n onRevoke?: (activeProvider: ActiveProvider) => void\n wallet: EthWalletConnectorBase\n}\n\nexport const WalletConnectionsTableRow: React.FC<WalletConnectionsTableRowProps> = ({\n ignoreConnectDialog,\n onConnectClick,\n onRevoke,\n wallet,\n ...props\n}) => {\n const { currentAccount: currentAccountFromWallet, additionalAccounts, chainName, connectWallet, providerInfo } = useEthWallet(wallet)\n\n const currentAccount = currentAccountFromWallet?.toString() ? [currentAccountFromWallet.toString()] : []\n const totalAccounts = (additionalAccounts?.length ?? 0) + (currentAccount?.length ?? 0)\n const connected = !!(currentAccount?.length ?? 0 > 0)\n const { icon, name, rdns } = useMemo(() => providerInfo ?? { icon: undefined, name: undefined, rdns: undefined }, [providerInfo])\n\n const activeProvider = useMemo<ActiveProvider>(\n () => ({\n connectWallet,\n icon,\n providerName: name,\n }),\n [connectWallet, icon, name],\n )\n\n const onRevokeLocal = useCallback(() => {\n onRevoke?.(activeProvider)\n }, [activeProvider, onRevoke])\n\n const onConnectLocal = useCallback(async () => {\n if (ignoreConnectDialog) {\n await connectWallet?.()\n } else {\n onConnectClick?.(activeProvider)\n }\n }, [activeProvider, connectWallet, ignoreConnectDialog, onConnectClick])\n\n return (\n <TableRow {...props}>\n {Object.values(ConnectedWalletTableCells).map((Cell, index) => (\n <Cell\n key={index}\n additionalAccounts={additionalAccounts}\n chainName={chainName}\n connected={connected}\n currentAccount={currentAccount}\n icon={icon}\n onConnect={onConnectLocal}\n onRevoke={onRevokeLocal}\n totalAccounts={totalAccounts}\n walletName={name}\n walletRdns={rdns}\n />\n ))}\n </TableRow>\n )\n}\n","import { Dispatch, SetStateAction, useState } from 'react'\n\nimport { ActiveProvider } from '../../lib'\n\nexport const useActiveProviderDialogState = (\n setActiveProvider: Dispatch<SetStateAction<ActiveProvider | undefined>>,\n): [boolean, (activeProvider: ActiveProvider) => void, () => void] => {\n const [show, setShow] = useState(false)\n const onSetActiveProvider = (activeProvider: ActiveProvider) => {\n setShow(true)\n setActiveProvider(activeProvider)\n }\n\n const onClose = () => {\n setShow(false)\n setActiveProvider({})\n }\n\n return [show, onSetActiveProvider, onClose]\n}\n"],"mappings":";AAEA,IAAM,4BAA4B;AAqB3B,IAAM,8BAAN,MAAkC;AAAA;AAAA,EAEhC,qBAAqB;AAAA;AAAA,EAGpB,iBAA2C,CAAC;AAAA;AAAA,EAG5C,kBAA0C,CAAC;AAAA;AAAA,EAG3C,YAA8B,CAAC;AAAA;AAAA,EAG/B,kBAAkB;AAAA,EAE1B,YA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E,IAAI,IAAI,GAAG,mCAE5C;AAAA,QACC,yBACC,gBAAAH,MAACG,aAAA,EAAW,SAAS,aAAa,OAAO,MAAM,QAAQ,UAAU,MAAM,IAAI,EAAE,SAAS,IAAI,GAAG;AAAA;AAAA,UAChE;AAAA,WAC7B,IACE;AAAA,SACN;AAAA,MACA,gBAAAJ,MAAC,yBAAsB,SAAS,eAAe,qBAA0C,uBAA8C;AAAA,OACzI;AAAA,EAEJ;AACF;AAEA,yBAAyB,cAAc;","names":["Typography","useTheme","FlexCol","refresh","useWalletDiscovery","useMemo","useWalletDiscovery","useMemo","jsx","jsxs","Typography","FlexCol","jsx","jsxs","jsx","jsxs","Button","Dialog","DialogActions","DialogContent","DialogTitle","Typography","ConstrainedImage","FlexRow","jsx","jsxs","Typography","jsx","Button","TableCell","Typography","FlexRow","jsx","jsxs","TableCell","jsx","TableCell","useMemo","jsx","useMemo","TableCell","TableCell","ConstrainedImage","FlexRow","jsx","jsxs","TableCell","TableRow","useState","useMemo","jsx","useMemo","useState","jsx","jsxs","useState","TableRow","TableCell","jsx","jsxs","useTheme","FlexCol","Typography"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 238"><defs><style>.cls-1{fill:#8d8fc6;}.cls-2{fill:#579fd6;}.cls-3{fill:#f27046;}.cls-4{fill:#eb407a;}</style></defs><path class="cls-1" d="M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z"/><path class="cls-2" d="M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z"/><path class="cls-3" d="M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z"/><path class="cls-4" d="M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="250 0 451 238"><defs><style>.cls-1{fill:#8d8fc6;}.cls-2{fill:#579fd6;}.cls-3{fill:#f27046;}.cls-4{fill:#eb407a;}</style></defs><path class="cls-1" d="M570,55.35a61.13,61.13,0,1,0,61.11,61.1A61.21,61.21,0,0,0,570,55.35Zm-266.4.1-8.2,8.14,53,52.91-53,52.91,8.2,8.2,52.91-53,44.77,44.77,8.14,8.2,114-114-8.14-8.14-52.91,52.91-53-52.91-8.14,8.14-44.77,44.77ZM570,66.84a49.61,49.61,0,1,1-49.61,49.61A49.54,49.54,0,0,1,570,66.84ZM409.45,71.73l44.77,44.77-44.77,44.77L364.68,116.5Z"/></svg>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
+
/**
|
3
|
+
* State for storing wallets and their enabled/disabled status by name
|
4
|
+
*/
|
5
|
+
export interface EnabledEthWalletsState {
|
6
|
+
[rdns: string]: {
|
7
|
+
enabled: boolean;
|
8
|
+
wallet: EIP6963Connector;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* State for storing only enabled/disabled status of a wallet by name
|
13
|
+
*/
|
14
|
+
export interface EnabledWalletsSavedState {
|
15
|
+
[rdns: string]: boolean;
|
16
|
+
}
|
17
|
+
export type WalletListener = () => void;
|
18
|
+
export declare class EnabledEthWalletConnections {
|
19
|
+
persistPreferences: boolean;
|
20
|
+
private enabledWallets;
|
21
|
+
private ethWalletsState;
|
22
|
+
private listeners;
|
23
|
+
private localStorageKey;
|
24
|
+
constructor(localStorageKey?: string);
|
25
|
+
get wallets(): EnabledEthWalletsState;
|
26
|
+
disableWallet(rdns: string): void;
|
27
|
+
enableWallet(rdns: string): void;
|
28
|
+
/**
|
29
|
+
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
+
*/
|
31
|
+
resetWallets(wallets: DiscoveredWallets): void;
|
32
|
+
subscribe(listener: WalletListener): () => void;
|
33
|
+
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
34
|
+
private emitChange;
|
35
|
+
private isPersistance;
|
36
|
+
private persistSettings;
|
37
|
+
private reviveSettings;
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=EnabledWallets.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI1E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAE/B,kBAAkB,UAAO;IAGhC,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAIzB;;OAEG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAgBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
+
/**
|
3
|
+
* State for storing wallets and their enabled/disabled status by name
|
4
|
+
*/
|
5
|
+
export interface EnabledEthWalletsState {
|
6
|
+
[rdns: string]: {
|
7
|
+
enabled: boolean;
|
8
|
+
wallet: EIP6963Connector;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* State for storing only enabled/disabled status of a wallet by name
|
13
|
+
*/
|
14
|
+
export interface EnabledWalletsSavedState {
|
15
|
+
[rdns: string]: boolean;
|
16
|
+
}
|
17
|
+
export type WalletListener = () => void;
|
18
|
+
export declare class EnabledEthWalletConnections {
|
19
|
+
persistPreferences: boolean;
|
20
|
+
private enabledWallets;
|
21
|
+
private ethWalletsState;
|
22
|
+
private listeners;
|
23
|
+
private localStorageKey;
|
24
|
+
constructor(localStorageKey?: string);
|
25
|
+
get wallets(): EnabledEthWalletsState;
|
26
|
+
disableWallet(rdns: string): void;
|
27
|
+
enableWallet(rdns: string): void;
|
28
|
+
/**
|
29
|
+
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
+
*/
|
31
|
+
resetWallets(wallets: DiscoveredWallets): void;
|
32
|
+
subscribe(listener: WalletListener): () => void;
|
33
|
+
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
34
|
+
private emitChange;
|
35
|
+
private isPersistance;
|
36
|
+
private persistSettings;
|
37
|
+
private reviveSettings;
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=EnabledWallets.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI1E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAE/B,kBAAkB,UAAO;IAGhC,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAIzB;;OAEG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAgBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { DiscoveredWallets, EIP6963Connector } from '@xylabs/react-crypto';
|
2
|
+
/**
|
3
|
+
* State for storing wallets and their enabled/disabled status by name
|
4
|
+
*/
|
5
|
+
export interface EnabledEthWalletsState {
|
6
|
+
[rdns: string]: {
|
7
|
+
enabled: boolean;
|
8
|
+
wallet: EIP6963Connector;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* State for storing only enabled/disabled status of a wallet by name
|
13
|
+
*/
|
14
|
+
export interface EnabledWalletsSavedState {
|
15
|
+
[rdns: string]: boolean;
|
16
|
+
}
|
17
|
+
export type WalletListener = () => void;
|
18
|
+
export declare class EnabledEthWalletConnections {
|
19
|
+
persistPreferences: boolean;
|
20
|
+
private enabledWallets;
|
21
|
+
private ethWalletsState;
|
22
|
+
private listeners;
|
23
|
+
private localStorageKey;
|
24
|
+
constructor(localStorageKey?: string);
|
25
|
+
get wallets(): EnabledEthWalletsState;
|
26
|
+
disableWallet(rdns: string): void;
|
27
|
+
enableWallet(rdns: string): void;
|
28
|
+
/**
|
29
|
+
* Given a new set of wallets, set their enabled state based off previous preferences
|
30
|
+
*/
|
31
|
+
resetWallets(wallets: DiscoveredWallets): void;
|
32
|
+
subscribe(listener: WalletListener): () => void;
|
33
|
+
toggleEnabledWallet(rdns: string, enabled: boolean): void;
|
34
|
+
private emitChange;
|
35
|
+
private isPersistance;
|
36
|
+
private persistSettings;
|
37
|
+
private reviveSettings;
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=EnabledWallets.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EnabledWallets.d.ts","sourceRoot":"","sources":["../../../src/classes/EnabledWallets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI1E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG;QACd,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,gBAAgB,CAAA;KACzB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,IAAI,CAAA;AAEvC,qBAAa,2BAA2B;IAE/B,kBAAkB,UAAO;IAGhC,OAAO,CAAC,cAAc,CAA+B;IAGrD,OAAO,CAAC,eAAe,CAA6B;IAGpD,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,eAAe,CAA4B;gBAEvC,eAAe,SAA4B;IAKvD,IAAI,OAAO,2BAEV;IAED,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,YAAY,CAAC,IAAI,EAAE,MAAM;IAIzB;;OAEG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB;IAgBvC,SAAS,CAAC,QAAQ,EAAE,cAAc;IAOlC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAQlD,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,cAAc;CAWvB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -1,4 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
-
export
|
3
|
+
export interface ConnectedAccountsFlexboxProps extends FlexBoxProps {
|
4
|
+
ignoreConnectDialog?: boolean;
|
5
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
6
|
+
}
|
7
|
+
export declare const ConnectedAccountsFlexbox: import("react").ForwardRefExoticComponent<ConnectedAccountsFlexboxProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
8
|
//# sourceMappingURL=ConnectedAccountsFlexbox.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;
|
1
|
+
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAM7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,wBAAwB,0HAsBpC,CAAA"}
|
@@ -1,4 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
-
export
|
3
|
+
export interface ConnectedAccountsFlexboxProps extends FlexBoxProps {
|
4
|
+
ignoreConnectDialog?: boolean;
|
5
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
6
|
+
}
|
7
|
+
export declare const ConnectedAccountsFlexbox: import("react").ForwardRefExoticComponent<ConnectedAccountsFlexboxProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
8
|
//# sourceMappingURL=ConnectedAccountsFlexbox.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;
|
1
|
+
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAM7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,wBAAwB,0HAsBpC,CAAA"}
|
@@ -1,4 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
-
export
|
3
|
+
export interface ConnectedAccountsFlexboxProps extends FlexBoxProps {
|
4
|
+
ignoreConnectDialog?: boolean;
|
5
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
6
|
+
}
|
7
|
+
export declare const ConnectedAccountsFlexbox: import("react").ForwardRefExoticComponent<ConnectedAccountsFlexboxProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
8
|
//# sourceMappingURL=ConnectedAccountsFlexbox.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;
|
1
|
+
{"version":3,"file":"ConnectedAccountsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedAccountsFlexbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAM7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,wBAAwB,0HAsBpC,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormControlProps } from '@mui/material';
|
3
|
+
export interface CheckboxFormControlProps extends FormControlProps {
|
4
|
+
onCheckChanged?: (checked: boolean) => void;
|
5
|
+
}
|
6
|
+
export declare const CheckboxFormControl: React.FC<CheckboxFormControlProps>;
|
7
|
+
//# sourceMappingURL=CheckboxFormControl.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CheckboxFormControl.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/CheckboxFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,gBAAgB,EAAa,MAAM,eAAe,CAAA;AAElF,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CASlE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormControlProps } from '@mui/material';
|
3
|
+
export interface CheckboxFormControlProps extends FormControlProps {
|
4
|
+
onCheckChanged?: (checked: boolean) => void;
|
5
|
+
}
|
6
|
+
export declare const CheckboxFormControl: React.FC<CheckboxFormControlProps>;
|
7
|
+
//# sourceMappingURL=CheckboxFormControl.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CheckboxFormControl.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/CheckboxFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,gBAAgB,EAAa,MAAM,eAAe,CAAA;AAElF,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CASlE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormControlProps } from '@mui/material';
|
3
|
+
export interface CheckboxFormControlProps extends FormControlProps {
|
4
|
+
onCheckChanged?: (checked: boolean) => void;
|
5
|
+
}
|
6
|
+
export declare const CheckboxFormControl: React.FC<CheckboxFormControlProps>;
|
7
|
+
//# sourceMappingURL=CheckboxFormControl.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CheckboxFormControl.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/CheckboxFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,gBAAgB,EAAa,MAAM,eAAe,CAAA;AAElF,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CASlE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DialogProps } from '@mui/material';
|
3
|
+
import { ActiveProvider } from '../../lib';
|
4
|
+
export interface ConnectWalletDialogProps extends DialogProps {
|
5
|
+
activeProvider?: ActiveProvider;
|
6
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
7
|
+
}
|
8
|
+
export declare const ConnectWalletDialog: React.FC<ConnectWalletDialogProps>;
|
9
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAAe,MAAM,eAAe,CAAA;AAEtG,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAK1C,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8BlE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DialogProps } from '@mui/material';
|
3
|
+
import { ActiveProvider } from '../../lib';
|
4
|
+
export interface ConnectWalletDialogProps extends DialogProps {
|
5
|
+
activeProvider?: ActiveProvider;
|
6
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
7
|
+
}
|
8
|
+
export declare const ConnectWalletDialog: React.FC<ConnectWalletDialogProps>;
|
9
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAAe,MAAM,eAAe,CAAA;AAEtG,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAK1C,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8BlE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DialogProps } from '@mui/material';
|
3
|
+
import { ActiveProvider } from '../../lib';
|
4
|
+
export interface ConnectWalletDialogProps extends DialogProps {
|
5
|
+
activeProvider?: ActiveProvider;
|
6
|
+
onIgnoreConnectDialog?: (checked: boolean) => void;
|
7
|
+
}
|
8
|
+
export declare const ConnectWalletDialog: React.FC<ConnectWalletDialogProps>;
|
9
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAAe,MAAM,eAAe,CAAA;AAEtG,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAK1C,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACnD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8BlE,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface LinkedProvidersFlexboxProps extends FlexBoxProps {
|
4
|
+
icon?: string;
|
5
|
+
providerName?: string;
|
6
|
+
}
|
7
|
+
export declare const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps>;
|
8
|
+
//# sourceMappingURL=LinkedProvidersFlexbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LinkedProvidersFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAItE,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAcxE,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface LinkedProvidersFlexboxProps extends FlexBoxProps {
|
4
|
+
icon?: string;
|
5
|
+
providerName?: string;
|
6
|
+
}
|
7
|
+
export declare const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps>;
|
8
|
+
//# sourceMappingURL=LinkedProvidersFlexbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LinkedProvidersFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAItE,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAcxE,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface LinkedProvidersFlexboxProps extends FlexBoxProps {
|
4
|
+
icon?: string;
|
5
|
+
providerName?: string;
|
6
|
+
}
|
7
|
+
export declare const LinkedProvidersFlexbox: React.FC<LinkedProvidersFlexboxProps>;
|
8
|
+
//# sourceMappingURL=LinkedProvidersFlexbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LinkedProvidersFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/LinkedProvidersFlexbox.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAItE,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAcxE,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface WalletPermissionsFlexBoxProps extends FlexBoxProps {
|
4
|
+
}
|
5
|
+
export declare const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps>;
|
6
|
+
//# sourceMappingURL=Permissions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Permissions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;CAAG;AAEtE,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAwB5E,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface WalletPermissionsFlexBoxProps extends FlexBoxProps {
|
4
|
+
}
|
5
|
+
export declare const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps>;
|
6
|
+
//# sourceMappingURL=Permissions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Permissions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;CAAG;AAEtE,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAwB5E,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
export interface WalletPermissionsFlexBoxProps extends FlexBoxProps {
|
4
|
+
}
|
5
|
+
export declare const WalletPermissionsFlexbox: React.FC<WalletPermissionsFlexBoxProps>;
|
6
|
+
//# sourceMappingURL=Permissions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/Permissions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,YAAY;CAAG;AAEtE,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAwB5E,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/wallet/dialogs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/wallet/dialogs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/wallet/dialogs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DialogProps } from '@mui/material';
|
3
|
+
import { ActiveProvider } from '../../lib';
|
4
|
+
export interface RevokeWalletConnectionDialogProps extends DialogProps {
|
5
|
+
activeProvider?: ActiveProvider;
|
6
|
+
}
|
7
|
+
export declare const RevokeWalletConnectionDialog: React.FC<RevokeWalletConnectionDialogProps>;
|
8
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet/dialogs/revoke/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAA2B,MAAM,eAAe,CAAA;AAIlH,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,WAAW,iCAAkC,SAAQ,WAAW;IACpE,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAqBpF,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DialogProps } from '@mui/material';
|
3
|
+
import { ActiveProvider } from '../../lib';
|
4
|
+
export interface RevokeWalletConnectionDialogProps extends DialogProps {
|
5
|
+
activeProvider?: ActiveProvider;
|
6
|
+
}
|
7
|
+
export declare const RevokeWalletConnectionDialog: React.FC<RevokeWalletConnectionDialogProps>;
|
8
|
+
//# sourceMappingURL=Dialog.d.ts.map
|