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