@dynamic-labs/wallet-connector-core 4.20.10 → 4.20.12
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/utils/getMobileExperience/getMobileExperience.cjs +9 -0
- package/src/utils/getMobileExperience/getMobileExperience.js +9 -0
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.cjs +5 -5
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.11...v4.20.12) (2025-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* bring back braavos mobile deeplink support ([#9041](https://github.com/dynamic-labs/dynamic-auth/issues/9041)) ([90a7eb6](https://github.com/dynamic-labs/dynamic-auth/commit/90a7eb620f6bd27d4560e88fe5542a121e586bed))
|
|
8
|
+
* start exchange funding errors should be logged as error ([#9056](https://github.com/dynamic-labs/dynamic-auth/issues/9056)) ([ba122af](https://github.com/dynamic-labs/dynamic-auth/commit/ba122afb68c462fe8627828bd20f9cc5f92803ff))
|
|
9
|
+
* WC redirect on mobile ([#9063](https://github.com/dynamic-labs/dynamic-auth/issues/9063)) ([f43aa4a](https://github.com/dynamic-labs/dynamic-auth/commit/f43aa4aedea20e3baf012f4778f5e6a47c27515c))
|
|
10
|
+
|
|
11
|
+
### [4.20.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.10...v4.20.11) (2025-07-01)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add signed typed data to waas ([#9050](https://github.com/dynamic-labs/dynamic-auth/issues/9050)) ([19c8fea](https://github.com/dynamic-labs/dynamic-auth/commit/19c8fea2e5448e027cbec2f6158d32247dfcd321))
|
|
17
|
+
* pass jwt to waas operations ([#8981](https://github.com/dynamic-labs/dynamic-auth/issues/8981)) ([6b63394](https://github.com/dynamic-labs/dynamic-auth/commit/6b63394a1a724c2a1499a3d1ff13078d2314b10e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 7702 signature for undeployed contracts ([#9052](https://github.com/dynamic-labs/dynamic-auth/issues/9052)) ([7052149](https://github.com/dynamic-labs/dynamic-auth/commit/7052149aae53524a0ac2bdad0b7ddf68e3c86189))
|
|
23
|
+
|
|
2
24
|
### [4.20.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.9...v4.20.10) (2025-06-30)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.12",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.699",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
23
|
-
"@dynamic-labs/logger": "4.20.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.20.
|
|
25
|
-
"@dynamic-labs/types": "4.20.
|
|
26
|
-
"@dynamic-labs/utils": "4.20.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.20.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.20.12",
|
|
23
|
+
"@dynamic-labs/logger": "4.20.12",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.20.12",
|
|
25
|
+
"@dynamic-labs/types": "4.20.12",
|
|
26
|
+
"@dynamic-labs/utils": "4.20.12",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.20.12",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
|
+
var logger = require('../logger.cjs');
|
|
7
8
|
|
|
8
9
|
const getMobileExperience = ({ mobileExperienceProp, walletBook: walletBook$1, walletKey, walletConnector, }) => {
|
|
10
|
+
logger.logger.logVerboseTroubleshootingMessage('[getMobileExperience]', {
|
|
11
|
+
mobileExperienceProp,
|
|
12
|
+
walletKey,
|
|
13
|
+
});
|
|
9
14
|
if (mobileExperienceProp) {
|
|
10
15
|
// if the legacy prop is set, use that
|
|
11
16
|
if (typeof mobileExperienceProp === 'string') {
|
|
@@ -19,6 +24,10 @@ const getMobileExperience = ({ mobileExperienceProp, walletBook: walletBook$1, w
|
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
const walletBookRecord = walletBook.findWalletBookWallet(walletBook$1, walletKey);
|
|
27
|
+
logger.logger.logVerboseTroubleshootingMessage('[getMobileExperience]', {
|
|
28
|
+
isWalletConnect: walletConnector.isWalletConnect,
|
|
29
|
+
walletBookRecord,
|
|
30
|
+
});
|
|
22
31
|
if (walletBookRecord === null || walletBookRecord === void 0 ? void 0 : walletBookRecord.mobileExperience) {
|
|
23
32
|
return walletBookRecord.mobileExperience;
|
|
24
33
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
|
+
import { logger } from '../logger.js';
|
|
3
4
|
|
|
4
5
|
const getMobileExperience = ({ mobileExperienceProp, walletBook, walletKey, walletConnector, }) => {
|
|
6
|
+
logger.logVerboseTroubleshootingMessage('[getMobileExperience]', {
|
|
7
|
+
mobileExperienceProp,
|
|
8
|
+
walletKey,
|
|
9
|
+
});
|
|
5
10
|
if (mobileExperienceProp) {
|
|
6
11
|
// if the legacy prop is set, use that
|
|
7
12
|
if (typeof mobileExperienceProp === 'string') {
|
|
@@ -15,6 +20,10 @@ const getMobileExperience = ({ mobileExperienceProp, walletBook, walletKey, wall
|
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
22
|
const walletBookRecord = findWalletBookWallet(walletBook, walletKey);
|
|
23
|
+
logger.logVerboseTroubleshootingMessage('[getMobileExperience]', {
|
|
24
|
+
isWalletConnect: walletConnector.isWalletConnect,
|
|
25
|
+
walletBookRecord,
|
|
26
|
+
});
|
|
18
27
|
if (walletBookRecord === null || walletBookRecord === void 0 ? void 0 : walletBookRecord.mobileExperience) {
|
|
19
28
|
return walletBookRecord.mobileExperience;
|
|
20
29
|
}
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
7
|
var logger = require('../logger.cjs');
|
|
8
|
-
var getIconUrl = require('./getIconUrl/getIconUrl.cjs');
|
|
9
|
-
var getValidHexColor = require('./getValidHexColor/getValidHexColor.cjs');
|
|
10
8
|
var getDeepLinks = require('./getDeepLinks/getDeepLinks.cjs');
|
|
11
9
|
var getDownloadLinks = require('./getDownloadLinks/getDownloadLinks.cjs');
|
|
10
|
+
var getIconUrl = require('./getIconUrl/getIconUrl.cjs');
|
|
11
|
+
var getValidHexColor = require('./getValidHexColor/getValidHexColor.cjs');
|
|
12
12
|
var getWalletLimitations = require('./getWalletLimitations/getWalletLimitations.cjs');
|
|
13
13
|
|
|
14
14
|
const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBook: walletBook$1, walletFallback, }) => {
|
|
15
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
16
16
|
if (!walletBook.isWalletBookPopulated(walletBook$1) && !walletFallback) {
|
|
17
17
|
logger.logger.warn('Wallet book is required');
|
|
18
18
|
return;
|
|
@@ -34,9 +34,9 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
34
34
|
groupKey: (_b = wallet === null || wallet === void 0 ? void 0 : wallet.chainGroup) !== null && _b !== void 0 ? _b : wallet === null || wallet === void 0 ? void 0 : wallet.walletGroup,
|
|
35
35
|
icon: (_d = getIconUrl.getIconUrl((_c = wallet === null || wallet === void 0 ? void 0 : wallet.brand) === null || _c === void 0 ? void 0 : _c.spriteId)) !== null && _d !== void 0 ? _d : '',
|
|
36
36
|
id: walletKey,
|
|
37
|
-
inAppBrowserUrl: (_f = (_e = wallet.mobile) === null || _e === void 0 ? void 0 : _e.
|
|
37
|
+
inAppBrowserUrl: (_h = (_f = (_e = wallet.mobile) === null || _e === void 0 ? void 0 : _e.inAppBrowserV2) !== null && _f !== void 0 ? _f : (_g = wallet.mobile) === null || _g === void 0 ? void 0 : _g.inAppBrowser) !== null && _h !== void 0 ? _h : undefined,
|
|
38
38
|
name: wallet.name,
|
|
39
|
-
rdns: (
|
|
39
|
+
rdns: (_j = wallet.eip6963Config) === null || _j === void 0 ? void 0 : _j.rdns,
|
|
40
40
|
supportedHardwareWallets: wallet.hardwareWallets,
|
|
41
41
|
walletLimitations: getWalletLimitations.getWalletLimitations(wallet.walletLimitations),
|
|
42
42
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { isWalletBookPopulated, getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
3
|
import { logger } from '../logger.js';
|
|
4
|
-
import { getIconUrl } from './getIconUrl/getIconUrl.js';
|
|
5
|
-
import { getValidHexColor } from './getValidHexColor/getValidHexColor.js';
|
|
6
4
|
import { getDeepLinks } from './getDeepLinks/getDeepLinks.js';
|
|
7
5
|
import { getDownloadLinks } from './getDownloadLinks/getDownloadLinks.js';
|
|
6
|
+
import { getIconUrl } from './getIconUrl/getIconUrl.js';
|
|
7
|
+
import { getValidHexColor } from './getValidHexColor/getValidHexColor.js';
|
|
8
8
|
import { getWalletLimitations } from './getWalletLimitations/getWalletLimitations.js';
|
|
9
9
|
|
|
10
10
|
const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBook, walletFallback, }) => {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
if (!isWalletBookPopulated(walletBook) && !walletFallback) {
|
|
13
13
|
logger.warn('Wallet book is required');
|
|
14
14
|
return;
|
|
@@ -30,9 +30,9 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
30
30
|
groupKey: (_b = wallet === null || wallet === void 0 ? void 0 : wallet.chainGroup) !== null && _b !== void 0 ? _b : wallet === null || wallet === void 0 ? void 0 : wallet.walletGroup,
|
|
31
31
|
icon: (_d = getIconUrl((_c = wallet === null || wallet === void 0 ? void 0 : wallet.brand) === null || _c === void 0 ? void 0 : _c.spriteId)) !== null && _d !== void 0 ? _d : '',
|
|
32
32
|
id: walletKey,
|
|
33
|
-
inAppBrowserUrl: (_f = (_e = wallet.mobile) === null || _e === void 0 ? void 0 : _e.
|
|
33
|
+
inAppBrowserUrl: (_h = (_f = (_e = wallet.mobile) === null || _e === void 0 ? void 0 : _e.inAppBrowserV2) !== null && _f !== void 0 ? _f : (_g = wallet.mobile) === null || _g === void 0 ? void 0 : _g.inAppBrowser) !== null && _h !== void 0 ? _h : undefined,
|
|
34
34
|
name: wallet.name,
|
|
35
|
-
rdns: (
|
|
35
|
+
rdns: (_j = wallet.eip6963Config) === null || _j === void 0 ? void 0 : _j.rdns,
|
|
36
36
|
supportedHardwareWallets: wallet.hardwareWallets,
|
|
37
37
|
walletLimitations: getWalletLimitations(wallet.walletLimitations),
|
|
38
38
|
};
|