@dynamic-labs/multi-wallet 4.0.0-alpha.17 → 4.0.0-alpha.19
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
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.19](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2024-10-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* ensure the client js will emit a change event after the value update ([#7284](https://github.com/dynamic-labs/dynamic-auth/issues/7284)) ([930d2e9](https://github.com/dynamic-labs/dynamic-auth/commit/930d2e9fdc75fd4a38da8ef6efc9d3e29152285b))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.18](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2024-10-29)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **web-extension:** add color scheme style to prevent broken style ([#7247](https://github.com/dynamic-labs/dynamic-auth/issues/7247)) ([c525c50](https://github.com/dynamic-labs/dynamic-auth/commit/c525c50ac02997f3baf220fd2e67c6c4b3d10903))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.17](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2024-10-28)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.19",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.559",
|
|
6
6
|
"tslib": "2.4.1",
|
|
7
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
8
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
9
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
10
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
11
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
12
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
7
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.19",
|
|
8
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.19",
|
|
9
|
+
"@dynamic-labs/types": "4.0.0-alpha.19",
|
|
10
|
+
"@dynamic-labs/utils": "4.0.0-alpha.19",
|
|
11
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.19",
|
|
12
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.19"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@walletconnect/types": "2.10.6"
|
|
@@ -11,6 +11,7 @@ var applyLinksOverrides = require('./applyLinksOverrides/applyLinksOverrides.cjs
|
|
|
11
11
|
var _const = require('./const.cjs');
|
|
12
12
|
|
|
13
13
|
const getSupportedWallets = (args) => {
|
|
14
|
+
var _a;
|
|
14
15
|
const { appLogoUrl = '', appName = '', coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience = 'in-app-browser', networkConfigurations = {
|
|
15
16
|
cosmos: [],
|
|
16
17
|
eclipse: [],
|
|
@@ -28,6 +29,7 @@ const getSupportedWallets = (args) => {
|
|
|
28
29
|
const cosmosNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.cosmos) || [];
|
|
29
30
|
const starknetNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.starknet) || [];
|
|
30
31
|
const apiProviders = getApiProviders.getApiProviders(getEnabledProviders.getEnabledProviders(settings.providers));
|
|
32
|
+
const disabledConnectors = (_a = settings.sdk.disabledWalletConnectors) !== null && _a !== void 0 ? _a : [];
|
|
31
33
|
const opts = {
|
|
32
34
|
apiProviders,
|
|
33
35
|
appLogoUrl,
|
|
@@ -52,6 +54,12 @@ const getSupportedWallets = (args) => {
|
|
|
52
54
|
const allWallets = walletConnectorsProp
|
|
53
55
|
.map((walletConnector) => walletConnector(opts))
|
|
54
56
|
.flat()
|
|
57
|
+
// filter out disabled connectors before instantiating them
|
|
58
|
+
.filter((walletConnector) => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return !((_a = walletConnector.metadata) === null || _a === void 0 ? void 0 : _a.id) ||
|
|
61
|
+
!disabledConnectors.includes((_b = walletConnector.metadata) === null || _b === void 0 ? void 0 : _b.id);
|
|
62
|
+
})
|
|
55
63
|
.map((wallet) => {
|
|
56
64
|
try {
|
|
57
65
|
// This may contain third party code so we must be ready for anything
|
|
@@ -7,6 +7,7 @@ import { applyLinksOverrides } from './applyLinksOverrides/applyLinksOverrides.j
|
|
|
7
7
|
import { defaultWalletUiUtils } from './const.js';
|
|
8
8
|
|
|
9
9
|
const getSupportedWallets = (args) => {
|
|
10
|
+
var _a;
|
|
10
11
|
const { appLogoUrl = '', appName = '', coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience = 'in-app-browser', networkConfigurations = {
|
|
11
12
|
cosmos: [],
|
|
12
13
|
eclipse: [],
|
|
@@ -24,6 +25,7 @@ const getSupportedWallets = (args) => {
|
|
|
24
25
|
const cosmosNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.cosmos) || [];
|
|
25
26
|
const starknetNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.starknet) || [];
|
|
26
27
|
const apiProviders = getApiProviders(getEnabledProviders(settings.providers));
|
|
28
|
+
const disabledConnectors = (_a = settings.sdk.disabledWalletConnectors) !== null && _a !== void 0 ? _a : [];
|
|
27
29
|
const opts = {
|
|
28
30
|
apiProviders,
|
|
29
31
|
appLogoUrl,
|
|
@@ -48,6 +50,12 @@ const getSupportedWallets = (args) => {
|
|
|
48
50
|
const allWallets = walletConnectorsProp
|
|
49
51
|
.map((walletConnector) => walletConnector(opts))
|
|
50
52
|
.flat()
|
|
53
|
+
// filter out disabled connectors before instantiating them
|
|
54
|
+
.filter((walletConnector) => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
return !((_a = walletConnector.metadata) === null || _a === void 0 ? void 0 : _a.id) ||
|
|
57
|
+
!disabledConnectors.includes((_b = walletConnector.metadata) === null || _b === void 0 ? void 0 : _b.id);
|
|
58
|
+
})
|
|
51
59
|
.map((wallet) => {
|
|
52
60
|
try {
|
|
53
61
|
// This may contain third party code so we must be ready for anything
|