@web3-onboard/dcent
Advanced tools
Comparing version 2.2.3-alpha.2 to 2.2.3-alpha.3
import type { WalletInit, Platform } from '@web3-onboard/common'; | ||
import type { CustomNetwork } from '@web3-onboard/hw-common'; | ||
declare function dcent({ customNetwork, filter }?: { | ||
declare function dcent({ customNetwork, filter, containerElement }?: { | ||
customNetwork?: CustomNetwork; | ||
filter?: Platform[]; | ||
containerElement?: string; | ||
}): WalletInit; | ||
export default dcent; |
@@ -28,3 +28,3 @@ const DEFAULT_BASE_PATH = "m/44'/60'/0'/0/0"; | ||
}; | ||
function dcent({ customNetwork, filter } = {}) { | ||
function dcent({ customNetwork, filter, containerElement } = {}) { | ||
const getIcon = async () => (await import('./icon.js')).default; | ||
@@ -73,3 +73,4 @@ return ({ device }) => { | ||
scanAccounts, | ||
supportsCustomPath: false | ||
supportsCustomPath: false, | ||
containerElement | ||
}); | ||
@@ -76,0 +77,0 @@ if (accounts.length) { |
{ | ||
"name": "@web3-onboard/dcent", | ||
"version": "2.2.3-alpha.2", | ||
"version": "2.2.3-alpha.3", | ||
"description": "D'CENT wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", | ||
@@ -60,3 +60,3 @@ "keywords": [ | ||
"@web3-onboard/common": "^2.2.3", | ||
"@web3-onboard/hw-common": "^2.1.0-alpha.1", | ||
"@web3-onboard/hw-common": "^2.1.0-alpha.2", | ||
"@ethereumjs/tx": "^3.4.0", | ||
@@ -63,0 +63,0 @@ "@ethersproject/providers": "^5.5.0", |
@@ -51,5 +51,16 @@ # @web3-onboard/dcent | ||
Initialization options: | ||
```typescript | ||
type dcentInitOptions = { | ||
customNetwork?: CustomNetwork | ||
filter?: Platform[] | ||
containerElement?: string | ||
} | ||
``` | ||
The following is a list of the platforms that can be filtered: | ||
```typescript | ||
type Platform = DeviceOSName | DeviceBrowserName | DeviceType | 'all'; | ||
type Platform = | ||
@@ -56,0 +67,0 @@ | 'Windows Phone' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16107
238
84