@dynamic-labs/wallet-book 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +41 -0
- package/package.json +4 -4
- package/src/build/sources/walletConnect/index.d.ts +10 -10
- package/src/build/sources/walletConnectOverrides/index.d.ts +8 -0
- package/src/helpers/findWalletBookWallet.d.ts +4 -0
- package/src/hooks/useWalletBookCdn.d.ts +4 -0
- package/src/schemas/walletBookSchema.d.ts +76 -0
- package/wallet-book-fallbacks.cjs +11 -0
- package/wallet-book-fallbacks.js +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2024-06-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* implement useExternalAuth hook to signin using external jwt auth ([#6039](https://github.com/dynamic-labs/DynamicAuth/issues/6039)) ([ba90908](https://github.com/dynamic-labs/DynamicAuth/commit/ba90908509ec21f708a4a0782a7f94861fc3b484))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* allow sign-in with different ME BTC wallet after initial connection ([a527b46](https://github.com/dynamic-labs/DynamicAuth/commit/a527b464f321b4fc27730f57c3812e996b5ed878))
|
|
13
|
+
* close sign modal when signing in with a wallet when embedded wallet is enabled ([#6013](https://github.com/dynamic-labs/DynamicAuth/issues/6013)) ([0f4f3c8](https://github.com/dynamic-labs/DynamicAuth/commit/0f4f3c83db162f7a1794a3549b60bbad6b03e2c0))
|
|
14
|
+
* custom network without a valid icon should still display its name in network picker ([#6018](https://github.com/dynamic-labs/DynamicAuth/issues/6018)) ([0b10df6](https://github.com/dynamic-labs/DynamicAuth/commit/0b10df68950bfc9b8492443158a6bb030dc1122c))
|
|
15
|
+
* e2e: remove page pause ([#6045](https://github.com/dynamic-labs/DynamicAuth/issues/6045)) ([55bba00](https://github.com/dynamic-labs/DynamicAuth/commit/55bba0034255055d6ae266b1296542f47ed48e2b))
|
|
16
|
+
* more fixes for connect starknet button ([#6046](https://github.com/dynamic-labs/DynamicAuth/issues/6046)) ([0fb570a](https://github.com/dynamic-labs/DynamicAuth/commit/0fb570a44e65f8dd6d4d2bf5edb2ee54985ec9d4))
|
|
17
|
+
* set verified credentials on embedded wallet creation ([#6044](https://github.com/dynamic-labs/DynamicAuth/issues/6044)) ([b52a96d](https://github.com/dynamic-labs/DynamicAuth/commit/b52a96d321e7efdb30dce9cdb3f6f176c24ceb81))
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2024-06-14)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ⚠ BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* remove viem dependency from non-evm packages (#5508)
|
|
25
|
+
* move rpc providers into their own packages (#5981)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add in-app browser navigation support for sats-connect ([#5988](https://github.com/dynamic-labs/DynamicAuth/issues/5988)) ([be27d2d](https://github.com/dynamic-labs/DynamicAuth/commit/be27d2d4030bbe2157e879497d8e6a00b4a3e404))
|
|
30
|
+
* move rpc providers into their own packages ([#5981](https://github.com/dynamic-labs/DynamicAuth/issues/5981)) ([d7a62d6](https://github.com/dynamic-labs/DynamicAuth/commit/d7a62d60e79dfa6d6651b0fa103e90b6f8a9ccf3))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* embedded solana wallets can send SPL tokens and estimate gas ([#5982](https://github.com/dynamic-labs/DynamicAuth/issues/5982)) ([36623eb](https://github.com/dynamic-labs/DynamicAuth/commit/36623eb99d1d1dfebfd8b6f3194eeff31e7de2bf))
|
|
36
|
+
* improve logic related to turnkey and emailVerifcation ([#5946](https://github.com/dynamic-labs/DynamicAuth/issues/5946)) ([dd0b2dc](https://github.com/dynamic-labs/DynamicAuth/commit/dd0b2dc6d93a8bbbcb6eef88732e62b747005bb3))
|
|
37
|
+
* show linked wallets with unavailable providers in user wallets list ([#5992](https://github.com/dynamic-labs/DynamicAuth/issues/5992)) ([996079c](https://github.com/dynamic-labs/DynamicAuth/commit/996079ced360651c7b1eb5273548e0548f6f9f3a))
|
|
38
|
+
* switch network modal not closing after switching to a supported network ([#5979](https://github.com/dynamic-labs/DynamicAuth/issues/5979)) ([f239952](https://github.com/dynamic-labs/DynamicAuth/commit/f2399523dd82bb28046992cac4582688b688bdc0))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
* remove viem dependency from non-evm packages ([#5508](https://github.com/dynamic-labs/DynamicAuth/issues/5508)) ([0299dc3](https://github.com/dynamic-labs/DynamicAuth/commit/0299dc3cbb611182d763e9a89d1270c2e2f32df5))
|
|
42
|
+
|
|
2
43
|
## [3.0.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.3...v3.0.0-alpha.4) (2024-06-12)
|
|
3
44
|
|
|
4
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "3.22.4",
|
|
29
|
-
"@dynamic-labs/iconic": "3.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
29
|
+
"@dynamic-labs/iconic": "3.0.0-alpha.6",
|
|
30
|
+
"@dynamic-labs/logger": "3.0.0-alpha.6",
|
|
31
|
+
"@dynamic-labs/utils": "3.0.0-alpha.6",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -1,4 +1,12 @@
|
|
|
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
|
+
};
|
|
2
10
|
name: string;
|
|
3
11
|
chains: string[];
|
|
4
12
|
desktop: {
|
|
@@ -28,7 +36,6 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
28
36
|
category: string | null;
|
|
29
37
|
description: string | null;
|
|
30
38
|
homepage: string;
|
|
31
|
-
id: string;
|
|
32
39
|
image_id: string;
|
|
33
40
|
image_url: {
|
|
34
41
|
lg: string;
|
|
@@ -39,22 +46,15 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
39
46
|
injected_id: string;
|
|
40
47
|
namespace: string;
|
|
41
48
|
}[] | null;
|
|
42
|
-
metadata: {
|
|
43
|
-
shortName: string | null;
|
|
44
|
-
colors: {
|
|
45
|
-
primary: string | null;
|
|
46
|
-
secondary: string | null;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
49
|
slug: string;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
versions: string[];
|
|
52
52
|
supported_standards?: {
|
|
53
53
|
id: string;
|
|
54
|
-
standard_id: number;
|
|
55
|
-
standard_prefix: string;
|
|
56
54
|
title: string;
|
|
57
55
|
url: string;
|
|
56
|
+
standard_id: number;
|
|
57
|
+
standard_prefix: string;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
@@ -34,6 +34,10 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
|
|
|
34
34
|
name: string;
|
|
35
35
|
features: string[];
|
|
36
36
|
} | undefined;
|
|
37
|
+
walletStandardLocators?: {
|
|
38
|
+
name: string;
|
|
39
|
+
locator: string;
|
|
40
|
+
}[] | undefined;
|
|
37
41
|
windowLocations?: string[] | undefined;
|
|
38
42
|
}[] | undefined;
|
|
39
43
|
mobile?: {
|
|
@@ -51,6 +51,10 @@ export declare const useWalletBookCdn: () => {
|
|
|
51
51
|
name: string;
|
|
52
52
|
features: string[];
|
|
53
53
|
} | undefined;
|
|
54
|
+
walletStandardLocators?: {
|
|
55
|
+
name: string;
|
|
56
|
+
locator: string;
|
|
57
|
+
}[] | undefined;
|
|
54
58
|
windowLocations?: string[] | undefined;
|
|
55
59
|
}[] | undefined;
|
|
56
60
|
mobile?: {
|
|
@@ -89,6 +89,16 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
89
89
|
features: string[];
|
|
90
90
|
name: string;
|
|
91
91
|
}>>;
|
|
92
|
+
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
|
+
locator: z.ZodString;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
name: string;
|
|
97
|
+
locator: string;
|
|
98
|
+
}, {
|
|
99
|
+
name: string;
|
|
100
|
+
locator: string;
|
|
101
|
+
}>, "many">>;
|
|
92
102
|
windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
|
|
93
103
|
}, "strip", z.ZodTypeAny, {
|
|
94
104
|
chain: string;
|
|
@@ -101,6 +111,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
101
111
|
features: string[];
|
|
102
112
|
name: string;
|
|
103
113
|
} | undefined;
|
|
114
|
+
walletStandardLocators?: {
|
|
115
|
+
name: string;
|
|
116
|
+
locator: string;
|
|
117
|
+
}[] | undefined;
|
|
104
118
|
windowLocations?: string[] | undefined;
|
|
105
119
|
}, {
|
|
106
120
|
chain: string;
|
|
@@ -113,6 +127,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
113
127
|
features: string[];
|
|
114
128
|
name: string;
|
|
115
129
|
} | undefined;
|
|
130
|
+
walletStandardLocators?: {
|
|
131
|
+
name: string;
|
|
132
|
+
locator: string;
|
|
133
|
+
}[] | undefined;
|
|
116
134
|
windowLocations?: string[] | undefined;
|
|
117
135
|
}>, "many">>;
|
|
118
136
|
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
@@ -207,6 +225,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
207
225
|
features: string[];
|
|
208
226
|
name: string;
|
|
209
227
|
} | undefined;
|
|
228
|
+
walletStandardLocators?: {
|
|
229
|
+
name: string;
|
|
230
|
+
locator: string;
|
|
231
|
+
}[] | undefined;
|
|
210
232
|
windowLocations?: string[] | undefined;
|
|
211
233
|
}[] | undefined;
|
|
212
234
|
mobile?: {
|
|
@@ -260,6 +282,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
260
282
|
features: string[];
|
|
261
283
|
name: string;
|
|
262
284
|
} | undefined;
|
|
285
|
+
walletStandardLocators?: {
|
|
286
|
+
name: string;
|
|
287
|
+
locator: string;
|
|
288
|
+
}[] | undefined;
|
|
263
289
|
windowLocations?: string[] | undefined;
|
|
264
290
|
}[] | undefined;
|
|
265
291
|
mobile?: {
|
|
@@ -313,6 +339,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
313
339
|
features: string[];
|
|
314
340
|
name: string;
|
|
315
341
|
} | undefined;
|
|
342
|
+
walletStandardLocators?: {
|
|
343
|
+
name: string;
|
|
344
|
+
locator: string;
|
|
345
|
+
}[] | undefined;
|
|
316
346
|
windowLocations?: string[] | undefined;
|
|
317
347
|
}[] | undefined;
|
|
318
348
|
mobile?: {
|
|
@@ -366,6 +396,10 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
366
396
|
features: string[];
|
|
367
397
|
name: string;
|
|
368
398
|
} | undefined;
|
|
399
|
+
walletStandardLocators?: {
|
|
400
|
+
name: string;
|
|
401
|
+
locator: string;
|
|
402
|
+
}[] | undefined;
|
|
369
403
|
windowLocations?: string[] | undefined;
|
|
370
404
|
}[] | undefined;
|
|
371
405
|
mobile?: {
|
|
@@ -555,6 +589,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
555
589
|
features: string[];
|
|
556
590
|
name: string;
|
|
557
591
|
}>>;
|
|
592
|
+
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
593
|
+
locator: z.ZodString;
|
|
594
|
+
name: z.ZodString;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
name: string;
|
|
597
|
+
locator: string;
|
|
598
|
+
}, {
|
|
599
|
+
name: string;
|
|
600
|
+
locator: string;
|
|
601
|
+
}>, "many">>;
|
|
558
602
|
windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
|
|
559
603
|
}, "strip", z.ZodTypeAny, {
|
|
560
604
|
chain: string;
|
|
@@ -567,6 +611,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
567
611
|
features: string[];
|
|
568
612
|
name: string;
|
|
569
613
|
} | undefined;
|
|
614
|
+
walletStandardLocators?: {
|
|
615
|
+
name: string;
|
|
616
|
+
locator: string;
|
|
617
|
+
}[] | undefined;
|
|
570
618
|
windowLocations?: string[] | undefined;
|
|
571
619
|
}, {
|
|
572
620
|
chain: string;
|
|
@@ -579,6 +627,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
579
627
|
features: string[];
|
|
580
628
|
name: string;
|
|
581
629
|
} | undefined;
|
|
630
|
+
walletStandardLocators?: {
|
|
631
|
+
name: string;
|
|
632
|
+
locator: string;
|
|
633
|
+
}[] | undefined;
|
|
582
634
|
windowLocations?: string[] | undefined;
|
|
583
635
|
}>, "many">>;
|
|
584
636
|
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
@@ -673,6 +725,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
673
725
|
features: string[];
|
|
674
726
|
name: string;
|
|
675
727
|
} | undefined;
|
|
728
|
+
walletStandardLocators?: {
|
|
729
|
+
name: string;
|
|
730
|
+
locator: string;
|
|
731
|
+
}[] | undefined;
|
|
676
732
|
windowLocations?: string[] | undefined;
|
|
677
733
|
}[] | undefined;
|
|
678
734
|
mobile?: {
|
|
@@ -726,6 +782,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
726
782
|
features: string[];
|
|
727
783
|
name: string;
|
|
728
784
|
} | undefined;
|
|
785
|
+
walletStandardLocators?: {
|
|
786
|
+
name: string;
|
|
787
|
+
locator: string;
|
|
788
|
+
}[] | undefined;
|
|
729
789
|
windowLocations?: string[] | undefined;
|
|
730
790
|
}[] | undefined;
|
|
731
791
|
mobile?: {
|
|
@@ -779,6 +839,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
779
839
|
features: string[];
|
|
780
840
|
name: string;
|
|
781
841
|
} | undefined;
|
|
842
|
+
walletStandardLocators?: {
|
|
843
|
+
name: string;
|
|
844
|
+
locator: string;
|
|
845
|
+
}[] | undefined;
|
|
782
846
|
windowLocations?: string[] | undefined;
|
|
783
847
|
}[] | undefined;
|
|
784
848
|
mobile?: {
|
|
@@ -832,6 +896,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
832
896
|
features: string[];
|
|
833
897
|
name: string;
|
|
834
898
|
} | undefined;
|
|
899
|
+
walletStandardLocators?: {
|
|
900
|
+
name: string;
|
|
901
|
+
locator: string;
|
|
902
|
+
}[] | undefined;
|
|
835
903
|
windowLocations?: string[] | undefined;
|
|
836
904
|
}[] | undefined;
|
|
837
905
|
mobile?: {
|
|
@@ -904,6 +972,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
904
972
|
features: string[];
|
|
905
973
|
name: string;
|
|
906
974
|
} | undefined;
|
|
975
|
+
walletStandardLocators?: {
|
|
976
|
+
name: string;
|
|
977
|
+
locator: string;
|
|
978
|
+
}[] | undefined;
|
|
907
979
|
windowLocations?: string[] | undefined;
|
|
908
980
|
}[] | undefined;
|
|
909
981
|
mobile?: {
|
|
@@ -995,6 +1067,10 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
995
1067
|
features: string[];
|
|
996
1068
|
name: string;
|
|
997
1069
|
} | undefined;
|
|
1070
|
+
walletStandardLocators?: {
|
|
1071
|
+
name: string;
|
|
1072
|
+
locator: string;
|
|
1073
|
+
}[] | undefined;
|
|
998
1074
|
windowLocations?: string[] | undefined;
|
|
999
1075
|
}[] | undefined;
|
|
1000
1076
|
mobile?: {
|
|
@@ -89,6 +89,15 @@ var groups = {
|
|
|
89
89
|
key: "mathwallet",
|
|
90
90
|
name: "Math Wallet"
|
|
91
91
|
},
|
|
92
|
+
metamask: {
|
|
93
|
+
brand: {
|
|
94
|
+
alt: "MetaMask",
|
|
95
|
+
primaryColor: "#E2761B",
|
|
96
|
+
spriteId: "metamask"
|
|
97
|
+
},
|
|
98
|
+
key: "metamask",
|
|
99
|
+
name: "MetaMask"
|
|
100
|
+
},
|
|
92
101
|
okxwallet: {
|
|
93
102
|
brand: {
|
|
94
103
|
alt: "OKX Wallet",
|
|
@@ -114,6 +123,7 @@ var wallets = {
|
|
|
114
123
|
primaryColor: "#E8831D",
|
|
115
124
|
spriteId: "metamask"
|
|
116
125
|
},
|
|
126
|
+
chainGroup: "metamask",
|
|
117
127
|
chains: [
|
|
118
128
|
"eip155:1"
|
|
119
129
|
],
|
|
@@ -126,6 +136,7 @@ var wallets = {
|
|
|
126
136
|
rdns: "io.metamask"
|
|
127
137
|
},
|
|
128
138
|
filterFromWalletConnect: true,
|
|
139
|
+
group: "metamask",
|
|
129
140
|
injectedConfig: [
|
|
130
141
|
{
|
|
131
142
|
chain: "evm",
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -85,6 +85,15 @@ var groups = {
|
|
|
85
85
|
key: "mathwallet",
|
|
86
86
|
name: "Math Wallet"
|
|
87
87
|
},
|
|
88
|
+
metamask: {
|
|
89
|
+
brand: {
|
|
90
|
+
alt: "MetaMask",
|
|
91
|
+
primaryColor: "#E2761B",
|
|
92
|
+
spriteId: "metamask"
|
|
93
|
+
},
|
|
94
|
+
key: "metamask",
|
|
95
|
+
name: "MetaMask"
|
|
96
|
+
},
|
|
88
97
|
okxwallet: {
|
|
89
98
|
brand: {
|
|
90
99
|
alt: "OKX Wallet",
|
|
@@ -110,6 +119,7 @@ var wallets = {
|
|
|
110
119
|
primaryColor: "#E8831D",
|
|
111
120
|
spriteId: "metamask"
|
|
112
121
|
},
|
|
122
|
+
chainGroup: "metamask",
|
|
113
123
|
chains: [
|
|
114
124
|
"eip155:1"
|
|
115
125
|
],
|
|
@@ -122,6 +132,7 @@ var wallets = {
|
|
|
122
132
|
rdns: "io.metamask"
|
|
123
133
|
},
|
|
124
134
|
filterFromWalletConnect: true,
|
|
135
|
+
group: "metamask",
|
|
125
136
|
injectedConfig: [
|
|
126
137
|
{
|
|
127
138
|
chain: "evm",
|