@dynamic-labs/wallet-book 3.0.0-alpha.64 → 3.0.0-alpha.65
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.json +4 -4
- package/src/build/index.d.ts +1 -0
- package/src/build/sources/walletConnect/index.d.ts +1 -0
- package/src/helpers/findWalletBookWallet.d.ts +1 -0
- package/src/hooks/useWalletBookCdn.d.ts +1 -0
- package/src/schemas/walletBookSchema.d.ts +20 -0
- package/src/schemas/walletSchema.cjs +5 -1
- package/src/schemas/walletSchema.d.ts +14 -0
- package/src/schemas/walletSchema.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.65](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.64...v3.0.0-alpha.65) (2024-09-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* gracefully handle errors when trying to find solana tx destination ([#6847](https://github.com/dynamic-labs/DynamicAuth/issues/6847)) ([19359ad](https://github.com/dynamic-labs/DynamicAuth/commit/19359ad40b16af0edb822d1fc6643fecdbc89adf))
|
|
8
|
+
|
|
2
9
|
## [3.0.0-alpha.64](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.63...v3.0.0-alpha.64) (2024-09-10)
|
|
3
10
|
|
|
4
11
|
|
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.65",
|
|
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.65",
|
|
30
|
+
"@dynamic-labs/logger": "3.0.0-alpha.65",
|
|
31
|
+
"@dynamic-labs/utils": "3.0.0-alpha.65",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
package/src/build/index.d.ts
CHANGED
|
@@ -82,12 +82,15 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
82
82
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
features: z.ZodArray<z.ZodString, "many">;
|
|
84
84
|
name: z.ZodString;
|
|
85
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
85
86
|
}, "strip", z.ZodTypeAny, {
|
|
86
87
|
features: string[];
|
|
87
88
|
name: string;
|
|
89
|
+
providerId?: string | undefined;
|
|
88
90
|
}, {
|
|
89
91
|
features: string[];
|
|
90
92
|
name: string;
|
|
93
|
+
providerId?: string | undefined;
|
|
91
94
|
}>>;
|
|
92
95
|
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
96
|
locator: z.ZodString;
|
|
@@ -110,6 +113,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
110
113
|
walletStandard?: {
|
|
111
114
|
features: string[];
|
|
112
115
|
name: string;
|
|
116
|
+
providerId?: string | undefined;
|
|
113
117
|
} | undefined;
|
|
114
118
|
walletStandardLocators?: {
|
|
115
119
|
name: string;
|
|
@@ -126,6 +130,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
126
130
|
walletStandard?: {
|
|
127
131
|
features: string[];
|
|
128
132
|
name: string;
|
|
133
|
+
providerId?: string | undefined;
|
|
129
134
|
} | undefined;
|
|
130
135
|
walletStandardLocators?: {
|
|
131
136
|
name: string;
|
|
@@ -265,6 +270,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
265
270
|
walletStandard?: {
|
|
266
271
|
features: string[];
|
|
267
272
|
name: string;
|
|
273
|
+
providerId?: string | undefined;
|
|
268
274
|
} | undefined;
|
|
269
275
|
walletStandardLocators?: {
|
|
270
276
|
name: string;
|
|
@@ -333,6 +339,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
333
339
|
walletStandard?: {
|
|
334
340
|
features: string[];
|
|
335
341
|
name: string;
|
|
342
|
+
providerId?: string | undefined;
|
|
336
343
|
} | undefined;
|
|
337
344
|
walletStandardLocators?: {
|
|
338
345
|
name: string;
|
|
@@ -401,6 +408,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
401
408
|
walletStandard?: {
|
|
402
409
|
features: string[];
|
|
403
410
|
name: string;
|
|
411
|
+
providerId?: string | undefined;
|
|
404
412
|
} | undefined;
|
|
405
413
|
walletStandardLocators?: {
|
|
406
414
|
name: string;
|
|
@@ -469,6 +477,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
469
477
|
walletStandard?: {
|
|
470
478
|
features: string[];
|
|
471
479
|
name: string;
|
|
480
|
+
providerId?: string | undefined;
|
|
472
481
|
} | undefined;
|
|
473
482
|
walletStandardLocators?: {
|
|
474
483
|
name: string;
|
|
@@ -667,12 +676,15 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
667
676
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
668
677
|
features: z.ZodArray<z.ZodString, "many">;
|
|
669
678
|
name: z.ZodString;
|
|
679
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
670
680
|
}, "strip", z.ZodTypeAny, {
|
|
671
681
|
features: string[];
|
|
672
682
|
name: string;
|
|
683
|
+
providerId?: string | undefined;
|
|
673
684
|
}, {
|
|
674
685
|
features: string[];
|
|
675
686
|
name: string;
|
|
687
|
+
providerId?: string | undefined;
|
|
676
688
|
}>>;
|
|
677
689
|
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
690
|
locator: z.ZodString;
|
|
@@ -695,6 +707,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
695
707
|
walletStandard?: {
|
|
696
708
|
features: string[];
|
|
697
709
|
name: string;
|
|
710
|
+
providerId?: string | undefined;
|
|
698
711
|
} | undefined;
|
|
699
712
|
walletStandardLocators?: {
|
|
700
713
|
name: string;
|
|
@@ -711,6 +724,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
711
724
|
walletStandard?: {
|
|
712
725
|
features: string[];
|
|
713
726
|
name: string;
|
|
727
|
+
providerId?: string | undefined;
|
|
714
728
|
} | undefined;
|
|
715
729
|
walletStandardLocators?: {
|
|
716
730
|
name: string;
|
|
@@ -850,6 +864,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
850
864
|
walletStandard?: {
|
|
851
865
|
features: string[];
|
|
852
866
|
name: string;
|
|
867
|
+
providerId?: string | undefined;
|
|
853
868
|
} | undefined;
|
|
854
869
|
walletStandardLocators?: {
|
|
855
870
|
name: string;
|
|
@@ -918,6 +933,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
918
933
|
walletStandard?: {
|
|
919
934
|
features: string[];
|
|
920
935
|
name: string;
|
|
936
|
+
providerId?: string | undefined;
|
|
921
937
|
} | undefined;
|
|
922
938
|
walletStandardLocators?: {
|
|
923
939
|
name: string;
|
|
@@ -986,6 +1002,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
986
1002
|
walletStandard?: {
|
|
987
1003
|
features: string[];
|
|
988
1004
|
name: string;
|
|
1005
|
+
providerId?: string | undefined;
|
|
989
1006
|
} | undefined;
|
|
990
1007
|
walletStandardLocators?: {
|
|
991
1008
|
name: string;
|
|
@@ -1054,6 +1071,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1054
1071
|
walletStandard?: {
|
|
1055
1072
|
features: string[];
|
|
1056
1073
|
name: string;
|
|
1074
|
+
providerId?: string | undefined;
|
|
1057
1075
|
} | undefined;
|
|
1058
1076
|
walletStandardLocators?: {
|
|
1059
1077
|
name: string;
|
|
@@ -1141,6 +1159,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1141
1159
|
walletStandard?: {
|
|
1142
1160
|
features: string[];
|
|
1143
1161
|
name: string;
|
|
1162
|
+
providerId?: string | undefined;
|
|
1144
1163
|
} | undefined;
|
|
1145
1164
|
walletStandardLocators?: {
|
|
1146
1165
|
name: string;
|
|
@@ -1247,6 +1266,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1247
1266
|
walletStandard?: {
|
|
1248
1267
|
features: string[];
|
|
1249
1268
|
name: string;
|
|
1269
|
+
providerId?: string | undefined;
|
|
1250
1270
|
} | undefined;
|
|
1251
1271
|
walletStandardLocators?: {
|
|
1252
1272
|
name: string;
|
|
@@ -30,7 +30,11 @@ const injectedConfigSchema = zod.z.object({
|
|
|
30
30
|
* Also allows ignoring wallets that don't support the provided features
|
|
31
31
|
*/
|
|
32
32
|
walletStandard: zod.z
|
|
33
|
-
.object({
|
|
33
|
+
.object({
|
|
34
|
+
features: zod.z.array(zod.z.string()),
|
|
35
|
+
name: zod.z.string(),
|
|
36
|
+
providerId: zod.z.string().optional(),
|
|
37
|
+
})
|
|
34
38
|
.optional(),
|
|
35
39
|
walletStandardLocators: zod.z
|
|
36
40
|
.array(zod.z.object({ locator: zod.z.string(), name: zod.z.string() }))
|
|
@@ -24,12 +24,15 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
24
24
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
features: z.ZodArray<z.ZodString, "many">;
|
|
26
26
|
name: z.ZodString;
|
|
27
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
27
28
|
}, "strip", z.ZodTypeAny, {
|
|
28
29
|
features: string[];
|
|
29
30
|
name: string;
|
|
31
|
+
providerId?: string | undefined;
|
|
30
32
|
}, {
|
|
31
33
|
features: string[];
|
|
32
34
|
name: string;
|
|
35
|
+
providerId?: string | undefined;
|
|
33
36
|
}>>;
|
|
34
37
|
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
38
|
locator: z.ZodString;
|
|
@@ -52,6 +55,7 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
52
55
|
walletStandard?: {
|
|
53
56
|
features: string[];
|
|
54
57
|
name: string;
|
|
58
|
+
providerId?: string | undefined;
|
|
55
59
|
} | undefined;
|
|
56
60
|
walletStandardLocators?: {
|
|
57
61
|
name: string;
|
|
@@ -68,6 +72,7 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
68
72
|
walletStandard?: {
|
|
69
73
|
features: string[];
|
|
70
74
|
name: string;
|
|
75
|
+
providerId?: string | undefined;
|
|
71
76
|
} | undefined;
|
|
72
77
|
walletStandardLocators?: {
|
|
73
78
|
name: string;
|
|
@@ -183,12 +188,15 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
183
188
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
184
189
|
features: z.ZodArray<z.ZodString, "many">;
|
|
185
190
|
name: z.ZodString;
|
|
191
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
186
192
|
}, "strip", z.ZodTypeAny, {
|
|
187
193
|
features: string[];
|
|
188
194
|
name: string;
|
|
195
|
+
providerId?: string | undefined;
|
|
189
196
|
}, {
|
|
190
197
|
features: string[];
|
|
191
198
|
name: string;
|
|
199
|
+
providerId?: string | undefined;
|
|
192
200
|
}>>;
|
|
193
201
|
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
202
|
locator: z.ZodString;
|
|
@@ -211,6 +219,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
211
219
|
walletStandard?: {
|
|
212
220
|
features: string[];
|
|
213
221
|
name: string;
|
|
222
|
+
providerId?: string | undefined;
|
|
214
223
|
} | undefined;
|
|
215
224
|
walletStandardLocators?: {
|
|
216
225
|
name: string;
|
|
@@ -227,6 +236,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
227
236
|
walletStandard?: {
|
|
228
237
|
features: string[];
|
|
229
238
|
name: string;
|
|
239
|
+
providerId?: string | undefined;
|
|
230
240
|
} | undefined;
|
|
231
241
|
walletStandardLocators?: {
|
|
232
242
|
name: string;
|
|
@@ -369,6 +379,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
369
379
|
walletStandard?: {
|
|
370
380
|
features: string[];
|
|
371
381
|
name: string;
|
|
382
|
+
providerId?: string | undefined;
|
|
372
383
|
} | undefined;
|
|
373
384
|
walletStandardLocators?: {
|
|
374
385
|
name: string;
|
|
@@ -437,6 +448,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
437
448
|
walletStandard?: {
|
|
438
449
|
features: string[];
|
|
439
450
|
name: string;
|
|
451
|
+
providerId?: string | undefined;
|
|
440
452
|
} | undefined;
|
|
441
453
|
walletStandardLocators?: {
|
|
442
454
|
name: string;
|
|
@@ -505,6 +517,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
505
517
|
walletStandard?: {
|
|
506
518
|
features: string[];
|
|
507
519
|
name: string;
|
|
520
|
+
providerId?: string | undefined;
|
|
508
521
|
} | undefined;
|
|
509
522
|
walletStandardLocators?: {
|
|
510
523
|
name: string;
|
|
@@ -573,6 +586,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
573
586
|
walletStandard?: {
|
|
574
587
|
features: string[];
|
|
575
588
|
name: string;
|
|
589
|
+
providerId?: string | undefined;
|
|
576
590
|
} | undefined;
|
|
577
591
|
walletStandardLocators?: {
|
|
578
592
|
name: string;
|
|
@@ -26,7 +26,11 @@ const injectedConfigSchema = z.object({
|
|
|
26
26
|
* Also allows ignoring wallets that don't support the provided features
|
|
27
27
|
*/
|
|
28
28
|
walletStandard: z
|
|
29
|
-
.object({
|
|
29
|
+
.object({
|
|
30
|
+
features: z.array(z.string()),
|
|
31
|
+
name: z.string(),
|
|
32
|
+
providerId: z.string().optional(),
|
|
33
|
+
})
|
|
30
34
|
.optional(),
|
|
31
35
|
walletStandardLocators: z
|
|
32
36
|
.array(z.object({ locator: z.string(), name: z.string() }))
|