@dynamic-labs/multi-wallet 0.18.16 → 0.18.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/package.json +6 -6
- package/src/multi-wallet.cjs +1 -3
- package/src/multi-wallet.d.ts +0 -1
- package/src/multi-wallet.js +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.18.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.17...v0.18.18) (2023-09-20)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* show default wallet icon when no image is available ([#3291](https://github.com/dynamic-labs/DynamicAuth/issues/3289)) ([b541d00](https://github.com/dynamic-labs/DynamicAuth/commit/3f7249997f0f0f20a449b94cfa307305a0684052))
|
|
8
|
+
* display user profile when closing send balance ([#3333](https://github.com/dynamic-labs/DynamicAuth/issues/3333)) ([#3336](https://github.com/dynamic-labs/DynamicAuth/issues/3336)) ([6966aee](https://github.com/dynamic-labs/DynamicAuth/commit/6966aee9480c630fc83a07b7eff69fde15fe0a05))
|
|
9
|
+
* display sign typed data message for confirmation ([#3316](https://github.com/dynamic-labs/DynamicAuth/issues/3316)) ([4b93151](https://github.com/dynamic-labs/DynamicAuth/commit/4b9315178711b4c86fdd2af403b271276ca9d4be))
|
|
10
|
+
* remove async from getWeb3Provider method in Magic connector ([#3280](https://github.com/dynamic-labs/DynamicAuth/issues/3280)) ([bffe17c](https://github.com/dynamic-labs/DynamicAuth/commit/bffe17c690076d77296f847628cca0cdeae4e529))
|
|
11
|
+
* fixes unlinking oauth account from multi wallet panel ([#3343](https://github.com/dynamic-labs/DynamicAuth/issues/3343)) ([f46c9ab](https://github.com/dynamic-labs/DynamicAuth/commit/f46c9ab521665be875e65c78e6d235e5fdb697a0))
|
|
12
|
+
* prevent wallet connect v2 from redirect user to last known wallet after logout ([#3353](https://github.com/dynamic-labs/DynamicAuth/issues/3353)) ([55b01b6](https://github.com/dynamic-labs/DynamicAuth/commit/55b01b6d0e7f0f7c3d9fce461bb09bb61602e60f))
|
|
13
|
+
|
|
14
|
+
### [0.18.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.16...v0.18.17) (2023-09-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* remove react component props from sending to sdk api v18 ([#3286](https://github.com/dynamic-labs/DynamicAuth/issues/3286)) ([af699f7](https://github.com/dynamic-labs/DynamicAuth/commit/af699f7efc42603a0ade890c622ea64ff219ee30)), closes [#3282](https://github.com/dynamic-labs/DynamicAuth/issues/3282)
|
|
20
|
+
|
|
2
21
|
### [0.18.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.15...v0.18.16) (2023-09-11)
|
|
3
22
|
|
|
4
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.18",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"@dynamic-labs/sdk-api": "0.0.270",
|
|
11
11
|
"ethers": "5.7.2",
|
|
12
12
|
"tslib": "2.4.1",
|
|
13
|
-
"@dynamic-labs/rpc-providers": "0.18.
|
|
14
|
-
"@dynamic-labs/types": "0.18.
|
|
15
|
-
"@dynamic-labs/utils": "0.18.
|
|
16
|
-
"@dynamic-labs/wallet-book": "0.18.
|
|
17
|
-
"@dynamic-labs/wallet-connector-core": "0.18.
|
|
13
|
+
"@dynamic-labs/rpc-providers": "0.18.18",
|
|
14
|
+
"@dynamic-labs/types": "0.18.18",
|
|
15
|
+
"@dynamic-labs/utils": "0.18.18",
|
|
16
|
+
"@dynamic-labs/wallet-book": "0.18.18",
|
|
17
|
+
"@dynamic-labs/wallet-connector-core": "0.18.18"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@walletconnect/types": "2.4.2"
|
package/src/multi-wallet.cjs
CHANGED
|
@@ -137,9 +137,7 @@ const getSupportedChainsForWalletConnector = (walletBook$1, walletConnector) =>
|
|
|
137
137
|
};
|
|
138
138
|
const getEnabledWallets = (props) => {
|
|
139
139
|
const supportedWallets = getSupportedWallets(props.getSupportedWalletOpts);
|
|
140
|
-
const allEnabledWallets = supportedWallets.filter((wallet) =>
|
|
141
|
-
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
142
|
-
wallet.key === 'magiclink');
|
|
140
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(props.getSupportedWalletOpts.walletBook, wallet).includes(chain)) || wallet.key === 'magiclink');
|
|
143
141
|
return allEnabledWallets;
|
|
144
142
|
};
|
|
145
143
|
|
package/src/multi-wallet.d.ts
CHANGED
package/src/multi-wallet.js
CHANGED
|
@@ -133,9 +133,7 @@ const getSupportedChainsForWalletConnector = (walletBook, walletConnector) => {
|
|
|
133
133
|
};
|
|
134
134
|
const getEnabledWallets = (props) => {
|
|
135
135
|
const supportedWallets = getSupportedWallets(props.getSupportedWalletOpts);
|
|
136
|
-
const allEnabledWallets = supportedWallets.filter((wallet) =>
|
|
137
|
-
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
138
|
-
wallet.key === 'magiclink');
|
|
136
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(props.getSupportedWalletOpts.walletBook, wallet).includes(chain)) || wallet.key === 'magiclink');
|
|
139
137
|
return allEnabledWallets;
|
|
140
138
|
};
|
|
141
139
|
|