@dynamic-labs/wallet-book 4.4.2 → 4.4.4
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 +20 -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,24 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* coinbase connect only signature request message flicker ([#7950](https://github.com/dynamic-labs/dynamic-auth/issues/7950)) ([e7bc2b8](https://github.com/dynamic-labs/dynamic-auth/commit/e7bc2b82f611612936521838b0fe01a5115446c3))
|
|
8
|
+
* decouple show menu from click event ([#7951](https://github.com/dynamic-labs/dynamic-auth/issues/7951)) ([b1132f9](https://github.com/dynamic-labs/dynamic-auth/commit/b1132f96bda15a9cbea30c3040f6bf9cd7be5e05))
|
|
9
|
+
* ensure correct dependencies are listed in packages ([#7949](https://github.com/dynamic-labs/dynamic-auth/issues/7949)) ([a84f39f](https://github.com/dynamic-labs/dynamic-auth/commit/a84f39fcb289b17c6b17b51977b685ea66b4b16d))
|
|
10
|
+
* in-app browser coinbase evm wallet ([#7957](https://github.com/dynamic-labs/dynamic-auth/issues/7957)) ([a85f556](https://github.com/dynamic-labs/dynamic-auth/commit/a85f556d4c44bf331718f9d04ec64a68f492240b))
|
|
11
|
+
* mfa and external wallet funding back button ([#7930](https://github.com/dynamic-labs/dynamic-auth/issues/7930)) ([7f65dc6](https://github.com/dynamic-labs/dynamic-auth/commit/7f65dc66f4d121ac5ee1b34638f52543e53476db))
|
|
12
|
+
* **sdk-react-core:** logout user when SDK is upgraded ([#7940](https://github.com/dynamic-labs/dynamic-auth/issues/7940)) ([e20b113](https://github.com/dynamic-labs/dynamic-auth/commit/e20b113d5dc182df499b34080893da9fc98568f6))
|
|
13
|
+
* set sms verified to always true ([#7929](https://github.com/dynamic-labs/dynamic-auth/issues/7929)) ([9bfbc99](https://github.com/dynamic-labs/dynamic-auth/commit/9bfbc999da04ee9ebf1f4f4dff8c70c1cac18131))
|
|
14
|
+
|
|
15
|
+
### [4.4.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.2...v4.4.3) (2025-01-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* remove extra useOnClickOutside hook ([#7910](https://github.com/dynamic-labs/dynamic-auth/issues/7910)) ([42fce2e](https://github.com/dynamic-labs/dynamic-auth/commit/42fce2e91e814514a72c97b3ea06930db805a200))
|
|
21
|
+
|
|
2
22
|
### [4.4.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2) (2025-01-30)
|
|
3
23
|
|
|
4
24
|
|
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.4",
|
|
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.4",
|
|
21
|
+
"@dynamic-labs/iconic": "4.4.4",
|
|
22
|
+
"@dynamic-labs/logger": "4.4.4",
|
|
23
|
+
"@dynamic-labs/utils": "4.4.4",
|
|
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';
|