@dynamic-labs/wallet-connector-core 4.0.0-alpha.40 → 4.0.0-alpha.42
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,23 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.42](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.41...v4.0.0-alpha.42) (2024-12-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* walletbook loading issues ([#7553](https://github.com/dynamic-labs/dynamic-auth/issues/7553)) ([684ecc3](https://github.com/dynamic-labs/dynamic-auth/commit/684ecc32960e34680088d6cf200318336647ab77))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.41](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.40...v4.0.0-alpha.41) (2024-12-05)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add shopify login ([04c6a9e](https://github.com/dynamic-labs/dynamic-auth/commit/04c6a9ee9d039d1480aa3b476ab382d7ea6dbaf2))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* wallet group icon not rendering properly when no wallets with that same id are found ([#7543](https://github.com/dynamic-labs/dynamic-auth/issues/7543)) ([a26a629](https://github.com/dynamic-labs/dynamic-auth/commit/a26a6294bbe845147245cccc60a7fded49196db6))
|
|
20
|
+
|
|
2
21
|
## [4.0.0-alpha.40](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.39...v4.0.0-alpha.40) (2024-12-03)
|
|
3
22
|
|
|
4
23
|
|
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.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.42",
|
|
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",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.570"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.42",
|
|
25
|
+
"@dynamic-labs/logger": "4.0.0-alpha.42",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.42",
|
|
27
|
+
"@dynamic-labs/types": "4.0.0-alpha.42",
|
|
28
|
+
"@dynamic-labs/utils": "4.0.0-alpha.42",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.42",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -15,7 +15,7 @@ var getWalletLimitations = require('./getWalletLimitations/getWalletLimitations.
|
|
|
15
15
|
|
|
16
16
|
const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBook: walletBook$1, walletFallback, }) => {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
18
|
-
if (!walletBook$1 && !walletFallback) {
|
|
18
|
+
if (!walletBook.isWalletBookPopulated(walletBook$1) && !walletFallback) {
|
|
19
19
|
logger.logger.warn('Wallet book is required');
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
2
|
+
import { isWalletBookPopulated, getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
3
|
import { logger } from '../logger.js';
|
|
4
4
|
import '@dynamic-labs/utils';
|
|
5
5
|
import '../../../_virtual/_tslib.js';
|
|
@@ -11,7 +11,7 @@ import { getWalletLimitations } from './getWalletLimitations/getWalletLimitation
|
|
|
11
11
|
|
|
12
12
|
const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBook, walletFallback, }) => {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
14
|
-
if (!walletBook && !walletFallback) {
|
|
14
|
+
if (!isWalletBookPopulated(walletBook) && !walletFallback) {
|
|
15
15
|
logger.warn('Wallet book is required');
|
|
16
16
|
return;
|
|
17
17
|
}
|