@dynamic-labs/wallet-book 4.25.5 → 4.25.7
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 +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/build/index.d.ts +3 -3
- package/src/build/sources/walletConnect/index.d.ts +27 -27
- package/src/components/WalletIcon.d.ts +1 -1
- package/src/helpers/findWalletBookWallet.d.ts +3 -3
- package/src/helpers/findWalletBookWalletByNameAndChain.d.ts +3 -3
- package/src/hooks/fetchWalletBook/fetchWalletBook.d.ts +3 -3
- package/src/hooks/useWalletBookCdn.d.ts +3 -3
- package/src/schemas/utils/nonEmptyString.cjs +23 -2
- package/src/schemas/utils/nonEmptyString.d.ts +2 -2
- package/src/schemas/utils/nonEmptyString.js +3 -2
- package/src/schemas/utils/nonEmptyStringArray.cjs +23 -2
- package/src/schemas/utils/nonEmptyStringArray.d.ts +2 -2
- package/src/schemas/utils/nonEmptyStringArray.js +3 -2
- package/src/schemas/walletBookSchema.cjs +28 -7
- package/src/schemas/walletBookSchema.d.ts +204 -1067
- package/src/schemas/walletBookSchema.js +4 -3
- package/src/schemas/walletConnectSourceSchema.d.ts +119 -511
- package/src/schemas/walletGroup.cjs +30 -11
- package/src/schemas/walletGroup.d.ts +26 -110
- package/src/schemas/walletGroup.js +6 -7
- package/src/schemas/walletSchema.cjs +78 -81
- package/src/schemas/walletSchema.d.ts +108 -441
- package/src/schemas/walletSchema.js +50 -73
- package/wallet-book-fallbacks.cjs +1 -1
- package/wallet-book-fallbacks.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.6...v4.25.7) (2025-07-28)
|
|
3
|
+
|
|
4
|
+
### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* don't create a new user when linking a wallet to a user with no wallets ([#9252](https://github.com/dynamic-labs/dynamic-auth/issues/9252)) ([30f846e](https://github.com/dynamic-labs/dynamic-auth/commit/30f846e89f2dffd112e656201bfa1cc24b787f03))
|
|
10
|
+
* Nufi EVM wallet showing up twice in wallet list ([#9256](https://github.com/dynamic-labs/dynamic-auth/issues/9256)) ([213488e](https://github.com/dynamic-labs/dynamic-auth/commit/213488e2226ef55965e12a1a548845cb100e859f))
|
|
11
|
+
|
|
2
12
|
### [4.25.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.4...v4.25.5) (2025-07-27)
|
|
3
13
|
|
|
4
14
|
|
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.25.
|
|
3
|
+
"version": "4.25.7",
|
|
4
4
|
"author": "Dynamic Labs, Inc.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./src/index.cjs",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"zod": "
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
21
|
-
"@dynamic-labs/iconic": "4.25.
|
|
22
|
-
"@dynamic-labs/logger": "4.25.
|
|
23
|
-
"@dynamic-labs/utils": "4.25.
|
|
19
|
+
"zod": "4.0.5",
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.25.7",
|
|
21
|
+
"@dynamic-labs/iconic": "4.25.7",
|
|
22
|
+
"@dynamic-labs/logger": "4.25.7",
|
|
23
|
+
"@dynamic-labs/utils": "4.25.7",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"util": "0.12.5"
|
|
26
26
|
},
|
package/src/build/index.d.ts
CHANGED
|
@@ -32,18 +32,18 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
|
|
|
32
32
|
injectedConfig?: {
|
|
33
33
|
chain: string;
|
|
34
34
|
extensionLocators: {
|
|
35
|
-
value: boolean;
|
|
36
35
|
flag: string;
|
|
36
|
+
value: boolean;
|
|
37
37
|
}[];
|
|
38
38
|
providerInterface?: string | undefined;
|
|
39
39
|
walletStandard?: {
|
|
40
|
-
name: string;
|
|
41
40
|
features: string[];
|
|
41
|
+
name: string;
|
|
42
42
|
providerId?: string | undefined;
|
|
43
43
|
} | undefined;
|
|
44
44
|
walletStandardLocators?: {
|
|
45
|
-
name: string;
|
|
46
45
|
locator: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
windowLocations?: string[] | undefined;
|
|
49
49
|
}[] | undefined;
|
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
export declare const walletConnectSourceData: Record<string, {
|
|
2
|
-
id: string;
|
|
3
|
-
metadata: {
|
|
4
|
-
shortName: string | null;
|
|
5
|
-
colors: {
|
|
6
|
-
primary: string | null;
|
|
7
|
-
secondary: string | null;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
name: string;
|
|
11
|
-
chains: string[];
|
|
12
|
-
desktop: {
|
|
13
|
-
native: string | null;
|
|
14
|
-
universal: string | null;
|
|
15
|
-
};
|
|
16
|
-
rdns: string | null;
|
|
17
|
-
mobile: {
|
|
18
|
-
native: string | null;
|
|
19
|
-
universal: string | null;
|
|
20
|
-
};
|
|
21
|
-
sdks: string[];
|
|
22
2
|
app: {
|
|
23
3
|
android: string | null;
|
|
24
|
-
ios: string | null;
|
|
25
|
-
opera: string | null;
|
|
26
4
|
browser: string | null;
|
|
27
5
|
chrome: string | null;
|
|
28
6
|
edge: string | null;
|
|
29
7
|
firefox: string | null;
|
|
8
|
+
ios: string | null;
|
|
30
9
|
linux: string | null;
|
|
31
10
|
mac: string | null;
|
|
11
|
+
opera: string | null;
|
|
32
12
|
safari: string | null;
|
|
33
13
|
windows: string | null;
|
|
34
14
|
};
|
|
35
15
|
app_type: string;
|
|
36
16
|
category: string | null;
|
|
17
|
+
chains: string[];
|
|
37
18
|
description: string | null;
|
|
19
|
+
desktop: {
|
|
20
|
+
native: string | null;
|
|
21
|
+
universal: string | null;
|
|
22
|
+
};
|
|
38
23
|
homepage: string;
|
|
24
|
+
id: string;
|
|
39
25
|
image_id: string;
|
|
40
26
|
image_url: {
|
|
41
27
|
lg: string;
|
|
@@ -46,15 +32,29 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
46
32
|
injected_id: string;
|
|
47
33
|
namespace: string;
|
|
48
34
|
}[] | null;
|
|
35
|
+
metadata: {
|
|
36
|
+
colors: {
|
|
37
|
+
primary: string | null;
|
|
38
|
+
secondary: string | null;
|
|
39
|
+
};
|
|
40
|
+
shortName: string | null;
|
|
41
|
+
};
|
|
42
|
+
mobile: {
|
|
43
|
+
native: string | null;
|
|
44
|
+
universal: string | null;
|
|
45
|
+
};
|
|
46
|
+
name: string;
|
|
47
|
+
rdns: string | null;
|
|
48
|
+
sdks: string[];
|
|
49
49
|
slug: string;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
versions: string[];
|
|
52
52
|
supported_standards?: {
|
|
53
53
|
id: string;
|
|
54
|
-
title: string;
|
|
55
|
-
url: string;
|
|
56
54
|
standard_id: number;
|
|
57
55
|
standard_prefix: string;
|
|
56
|
+
title: string;
|
|
57
|
+
url: string;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
@@ -84,18 +84,18 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
|
84
84
|
injectedConfig?: {
|
|
85
85
|
chain: string;
|
|
86
86
|
extensionLocators: {
|
|
87
|
-
value: boolean;
|
|
88
87
|
flag: string;
|
|
88
|
+
value: boolean;
|
|
89
89
|
}[];
|
|
90
90
|
providerInterface?: string | undefined;
|
|
91
91
|
walletStandard?: {
|
|
92
|
-
name: string;
|
|
93
92
|
features: string[];
|
|
93
|
+
name: string;
|
|
94
94
|
providerId?: string | undefined;
|
|
95
95
|
} | undefined;
|
|
96
96
|
walletStandardLocators?: {
|
|
97
|
-
name: string;
|
|
98
97
|
locator: string;
|
|
98
|
+
name: string;
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
windowLocations?: string[] | undefined;
|
|
101
101
|
}[] | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const WalletIcon: ({ icon, walletKey, isGroup, children, ...props
|
|
|
14
14
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
15
15
|
decoding?: "async" | "auto" | "sync" | undefined;
|
|
16
16
|
height?: string | number | undefined;
|
|
17
|
-
loading?: "
|
|
17
|
+
loading?: "lazy" | "eager" | undefined;
|
|
18
18
|
referrerPolicy?: React.HTMLAttributeReferrerPolicy | undefined;
|
|
19
19
|
sizes?: string | undefined;
|
|
20
20
|
srcSet?: string | undefined;
|
|
@@ -26,18 +26,18 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
|
|
|
26
26
|
injectedConfig?: {
|
|
27
27
|
chain: string;
|
|
28
28
|
extensionLocators: {
|
|
29
|
-
value: boolean;
|
|
30
29
|
flag: string;
|
|
30
|
+
value: boolean;
|
|
31
31
|
}[];
|
|
32
32
|
providerInterface?: string | undefined;
|
|
33
33
|
walletStandard?: {
|
|
34
|
-
name: string;
|
|
35
34
|
features: string[];
|
|
35
|
+
name: string;
|
|
36
36
|
providerId?: string | undefined;
|
|
37
37
|
} | undefined;
|
|
38
38
|
walletStandardLocators?: {
|
|
39
|
-
name: string;
|
|
40
39
|
locator: string;
|
|
40
|
+
name: string;
|
|
41
41
|
}[] | undefined;
|
|
42
42
|
windowLocations?: string[] | undefined;
|
|
43
43
|
}[] | undefined;
|
|
@@ -26,18 +26,18 @@ export declare const findWalletBookWalletByNameAndChain: (walletBook: WalletBook
|
|
|
26
26
|
injectedConfig?: {
|
|
27
27
|
chain: string;
|
|
28
28
|
extensionLocators: {
|
|
29
|
-
value: boolean;
|
|
30
29
|
flag: string;
|
|
30
|
+
value: boolean;
|
|
31
31
|
}[];
|
|
32
32
|
providerInterface?: string | undefined;
|
|
33
33
|
walletStandard?: {
|
|
34
|
-
name: string;
|
|
35
34
|
features: string[];
|
|
35
|
+
name: string;
|
|
36
36
|
providerId?: string | undefined;
|
|
37
37
|
} | undefined;
|
|
38
38
|
walletStandardLocators?: {
|
|
39
|
-
name: string;
|
|
40
39
|
locator: string;
|
|
40
|
+
name: string;
|
|
41
41
|
}[] | undefined;
|
|
42
42
|
windowLocations?: string[] | undefined;
|
|
43
43
|
}[] | undefined;
|
|
@@ -46,18 +46,18 @@ export declare const walletBookCache: {
|
|
|
46
46
|
injectedConfig?: {
|
|
47
47
|
chain: string;
|
|
48
48
|
extensionLocators: {
|
|
49
|
-
value: boolean;
|
|
50
49
|
flag: string;
|
|
50
|
+
value: boolean;
|
|
51
51
|
}[];
|
|
52
52
|
providerInterface?: string | undefined;
|
|
53
53
|
walletStandard?: {
|
|
54
|
-
name: string;
|
|
55
54
|
features: string[];
|
|
55
|
+
name: string;
|
|
56
56
|
providerId?: string | undefined;
|
|
57
57
|
} | undefined;
|
|
58
58
|
walletStandardLocators?: {
|
|
59
|
-
name: string;
|
|
60
59
|
locator: string;
|
|
60
|
+
name: string;
|
|
61
61
|
}[] | undefined;
|
|
62
62
|
windowLocations?: string[] | undefined;
|
|
63
63
|
}[] | undefined;
|
|
@@ -43,18 +43,18 @@ export declare const useWalletBookCdn: () => {
|
|
|
43
43
|
injectedConfig?: {
|
|
44
44
|
chain: string;
|
|
45
45
|
extensionLocators: {
|
|
46
|
-
value: boolean;
|
|
47
46
|
flag: string;
|
|
47
|
+
value: boolean;
|
|
48
48
|
}[];
|
|
49
49
|
providerInterface?: string | undefined;
|
|
50
50
|
walletStandard?: {
|
|
51
|
-
name: string;
|
|
52
51
|
features: string[];
|
|
52
|
+
name: string;
|
|
53
53
|
providerId?: string | undefined;
|
|
54
54
|
} | undefined;
|
|
55
55
|
walletStandardLocators?: {
|
|
56
|
-
name: string;
|
|
57
56
|
locator: string;
|
|
57
|
+
name: string;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
windowLocations?: string[] | undefined;
|
|
60
60
|
}[] | undefined;
|
|
@@ -3,11 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var z = require('zod/mini');
|
|
7
7
|
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
8
29
|
/**
|
|
9
30
|
* A zod type to ensure a string is not empty
|
|
10
31
|
*/
|
|
11
|
-
const nonEmptyString =
|
|
32
|
+
const nonEmptyString = z__namespace.optional(z__namespace.pipe(z__namespace.transform((val) => (val ? val : undefined)), z__namespace.optional(z__namespace.string())));
|
|
12
33
|
|
|
13
34
|
exports.nonEmptyString = nonEmptyString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
2
|
/**
|
|
3
3
|
* A zod type to ensure a string is not empty
|
|
4
4
|
*/
|
|
5
|
-
export declare const nonEmptyString: z.
|
|
5
|
+
export declare const nonEmptyString: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod/mini';
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
4
5
|
/**
|
|
5
6
|
* A zod type to ensure a string is not empty
|
|
6
7
|
*/
|
|
7
|
-
const nonEmptyString = z.
|
|
8
|
+
const nonEmptyString = z.optional(z.pipe(z.transform((val) => (val ? val : undefined)), z.optional(z.string())));
|
|
8
9
|
|
|
9
10
|
export { nonEmptyString };
|
|
@@ -3,11 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var z = require('zod/mini');
|
|
7
7
|
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
8
29
|
/**
|
|
9
30
|
* A zod type to ensure an array is not empty
|
|
10
31
|
*/
|
|
11
|
-
const nonEmptyStringArray =
|
|
32
|
+
const nonEmptyStringArray = z__namespace.optional(z__namespace.pipe(z__namespace.transform((val) => Array.isArray(val) && val.length > 0 ? val : undefined), z__namespace.optional(z__namespace.array(z__namespace.string()))));
|
|
12
33
|
|
|
13
34
|
exports.nonEmptyStringArray = nonEmptyStringArray;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
2
|
/**
|
|
3
3
|
* A zod type to ensure an array is not empty
|
|
4
4
|
*/
|
|
5
|
-
export declare const nonEmptyStringArray: z.
|
|
5
|
+
export declare const nonEmptyStringArray: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<any[] | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod/mini';
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
4
5
|
/**
|
|
5
6
|
* A zod type to ensure an array is not empty
|
|
6
7
|
*/
|
|
7
|
-
const nonEmptyStringArray = z.
|
|
8
|
+
const nonEmptyStringArray = z.optional(z.pipe(z.transform((val) => Array.isArray(val) && val.length > 0 ? val : undefined), z.optional(z.array(z.string()))));
|
|
8
9
|
|
|
9
10
|
export { nonEmptyStringArray };
|
|
@@ -3,15 +3,36 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
var walletSchema = require('./walletSchema.cjs');
|
|
6
|
+
var z = require('zod/mini');
|
|
8
7
|
var walletGroup = require('./walletGroup.cjs');
|
|
8
|
+
var walletSchema = require('./walletSchema.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
9
29
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
31
|
+
z__namespace.record(z__namespace.string(), walletSchema.walletSchema);
|
|
32
|
+
const walletBookSchema = z__namespace.pipe(z__namespace.transform((val) => val), z__namespace.object({
|
|
33
|
+
groups: z__namespace.record(z__namespace.string(), walletGroup.walletGroupSchema),
|
|
34
|
+
wallets: z__namespace.record(z__namespace.string(), walletSchema.walletSchema),
|
|
14
35
|
}));
|
|
15
|
-
|
|
36
|
+
z__namespace.record(z__namespace.string(), walletGroup.walletGroupSchema);
|
|
16
37
|
|
|
17
38
|
exports.walletBookSchema = walletBookSchema;
|