@dynamic-labs/wallet-book 4.4.2 → 4.4.3
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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/helpers/findWalletBookWalletByNameAndChain.cjs +11 -0
- package/src/helpers/findWalletBookWalletByNameAndChain.d.ts +71 -0
- package/src/helpers/findWalletBookWalletByNameAndChain.js +7 -0
- package/src/helpers/index.d.ts +1 -0
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.4.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.2...v4.4.3) (2025-01-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* remove extra useOnClickOutside hook ([#7910](https://github.com/dynamic-labs/dynamic-auth/issues/7910)) ([42fce2e](https://github.com/dynamic-labs/dynamic-auth/commit/42fce2e91e814514a72c97b3ea06930db805a200))
|
|
8
|
+
|
|
2
9
|
### [4.4.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2) (2025-01-30)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"author": "Dynamic Labs, Inc.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./src/index.cjs",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "3.22.4",
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.4.
|
|
21
|
-
"@dynamic-labs/iconic": "4.4.
|
|
22
|
-
"@dynamic-labs/logger": "4.4.
|
|
23
|
-
"@dynamic-labs/utils": "4.4.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.4.3",
|
|
21
|
+
"@dynamic-labs/iconic": "4.4.3",
|
|
22
|
+
"@dynamic-labs/logger": "4.4.3",
|
|
23
|
+
"@dynamic-labs/utils": "4.4.3",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"util": "0.12.5"
|
|
26
26
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const findWalletBookWalletByNameAndChain = (walletBook, walletName, chain) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return Object.values((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {}).find((wallet) => { var _a, _b; return wallet.name === walletName && ((_b = (_a = wallet.injectedConfig) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.chain) === chain; });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.findWalletBookWalletByNameAndChain = findWalletBookWalletByNameAndChain;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { WalletBookSchema } from '../schemas';
|
|
2
|
+
export declare const findWalletBookWalletByNameAndChain: (walletBook: WalletBookSchema, walletName: string, chain: string) => {
|
|
3
|
+
name: string;
|
|
4
|
+
brand?: {
|
|
5
|
+
alt?: string | undefined;
|
|
6
|
+
primaryColor?: string | undefined;
|
|
7
|
+
spriteId?: string | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
chainGroup?: string | undefined;
|
|
10
|
+
chains?: string[] | undefined;
|
|
11
|
+
desktop?: {
|
|
12
|
+
chromeId?: string | undefined;
|
|
13
|
+
edgeId?: string | undefined;
|
|
14
|
+
firefoxId?: string | undefined;
|
|
15
|
+
native?: string | undefined;
|
|
16
|
+
operaId?: string | undefined;
|
|
17
|
+
safariId?: string | undefined;
|
|
18
|
+
universal?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
eip6963Config?: {
|
|
21
|
+
rdns: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
filterFromWalletConnect?: boolean | undefined;
|
|
24
|
+
group?: string | undefined;
|
|
25
|
+
hardwareWallets?: string[] | undefined;
|
|
26
|
+
injectedConfig?: {
|
|
27
|
+
chain: string;
|
|
28
|
+
extensionLocators: {
|
|
29
|
+
value: boolean;
|
|
30
|
+
flag: string;
|
|
31
|
+
}[];
|
|
32
|
+
providerInterface?: string | undefined;
|
|
33
|
+
walletStandard?: {
|
|
34
|
+
name: string;
|
|
35
|
+
features: string[];
|
|
36
|
+
providerId?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
walletStandardLocators?: {
|
|
39
|
+
name: string;
|
|
40
|
+
locator: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
windowLocations?: string[] | undefined;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
mobile?: {
|
|
45
|
+
android?: string | null | undefined;
|
|
46
|
+
androidId?: string | undefined;
|
|
47
|
+
inAppBrowser?: string | null | undefined;
|
|
48
|
+
ios?: string | null | undefined;
|
|
49
|
+
iosId?: string | undefined;
|
|
50
|
+
native?: string | undefined;
|
|
51
|
+
universal?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
54
|
+
shortName?: string | undefined;
|
|
55
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
56
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
57
|
+
walletConnect?: {
|
|
58
|
+
sdks?: string[] | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
walletGroup?: string | undefined;
|
|
61
|
+
walletLimitations?: {
|
|
62
|
+
browserExtension?: {
|
|
63
|
+
unsupportedEvents?: string[] | undefined;
|
|
64
|
+
unsupportedMethods?: string[] | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
mobile?: {
|
|
67
|
+
unsupportedEvents?: string[] | undefined;
|
|
68
|
+
unsupportedMethods?: string[] | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
} | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
const findWalletBookWalletByNameAndChain = (walletBook, walletName, chain) => {
|
|
3
|
+
var _a;
|
|
4
|
+
return Object.values((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {}).find((wallet) => { var _a, _b; return wallet.name === walletName && ((_b = (_a = wallet.injectedConfig) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.chain) === chain; });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { findWalletBookWalletByNameAndChain };
|
package/src/helpers/index.d.ts
CHANGED
package/src/index.cjs
CHANGED
|
@@ -17,6 +17,7 @@ var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
|
|
|
17
17
|
var getBrandIconUrl = require('./helpers/getBrandIconUrl.cjs');
|
|
18
18
|
var findWalletGroupOverride = require('./helpers/findWalletGroupOverride.cjs');
|
|
19
19
|
var isWalletBookPopulated = require('./helpers/isWalletBookPopulated.cjs');
|
|
20
|
+
var findWalletBookWalletByNameAndChain = require('./helpers/findWalletBookWalletByNameAndChain.cjs');
|
|
20
21
|
var useWalletBookCdn = require('./hooks/useWalletBookCdn.cjs');
|
|
21
22
|
var WalletIcon = require('./components/WalletIcon.cjs');
|
|
22
23
|
var WalletBookContextProvider = require('./components/WalletBookContextProvider.cjs');
|
|
@@ -36,6 +37,7 @@ exports.getWalletBookCdnUrl = getWalletBookCdnUrl.getWalletBookCdnUrl;
|
|
|
36
37
|
exports.getBrandIconUrl = getBrandIconUrl.getBrandIconUrl;
|
|
37
38
|
exports.findWalletGroupOverride = findWalletGroupOverride.findWalletGroupOverride;
|
|
38
39
|
exports.isWalletBookPopulated = isWalletBookPopulated.isWalletBookPopulated;
|
|
40
|
+
exports.findWalletBookWalletByNameAndChain = findWalletBookWalletByNameAndChain.findWalletBookWalletByNameAndChain;
|
|
39
41
|
exports.useWalletBookCdn = useWalletBookCdn.useWalletBookCdn;
|
|
40
42
|
exports.WalletIcon = WalletIcon.WalletIcon;
|
|
41
43
|
exports.WalletBookContextProvider = WalletBookContextProvider.WalletBookContextProvider;
|
package/src/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { useWalletBookContext } from './context/WalletBookContext';
|
|
|
10
10
|
/**
|
|
11
11
|
* HELPERS
|
|
12
12
|
*/
|
|
13
|
-
export { getWalletBookWallet, getWalletIconUrl, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, isWalletBookPopulated, logger, } from './helpers';
|
|
13
|
+
export { getWalletBookWallet, getWalletIconUrl, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, isWalletBookPopulated, findWalletBookWalletByNameAndChain, logger, } from './helpers';
|
|
14
14
|
/**
|
|
15
15
|
* HOOKS
|
|
16
16
|
*/
|
package/src/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
|
|
|
13
13
|
export { getBrandIconUrl } from './helpers/getBrandIconUrl.js';
|
|
14
14
|
export { findWalletGroupOverride } from './helpers/findWalletGroupOverride.js';
|
|
15
15
|
export { isWalletBookPopulated } from './helpers/isWalletBookPopulated.js';
|
|
16
|
+
export { findWalletBookWalletByNameAndChain } from './helpers/findWalletBookWalletByNameAndChain.js';
|
|
16
17
|
export { useWalletBookCdn } from './hooks/useWalletBookCdn.js';
|
|
17
18
|
export { WalletIcon } from './components/WalletIcon.js';
|
|
18
19
|
export { WalletBookContextProvider } from './components/WalletBookContextProvider.js';
|