@dynamic-labs/wallet-book 3.0.0-alpha.23 → 3.0.0-alpha.25
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 +11 -0
- package/package.json +4 -4
- package/src/build/index.d.ts +1 -0
- package/src/build/sources/walletConnect/index.d.ts +11 -10
- package/src/helpers/findWalletBookWallet.d.ts +1 -0
- package/src/hooks/useWalletBookCdn.d.ts +1 -0
- package/src/schemas/walletBookSchema.d.ts +12 -0
- package/src/schemas/walletSchema.cjs +1 -0
- package/src/schemas/walletSchema.d.ts +5 -0
- package/src/schemas/walletSchema.js +1 -0
- package/wallet-book-fallbacks.cjs +1 -0
- package/wallet-book-fallbacks.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.24...v3.0.0-alpha.25) (2024-07-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add ability to specify mobileExperience on a wallet by wallet ([#6195](https://github.com/dynamic-labs/DynamicAuth/issues/6195)) ([947fd0a](https://github.com/dynamic-labs/DynamicAuth/commit/947fd0ab864d1995a1ef35a51c77a585649fd43f))
|
|
8
|
+
* global wallet new package ([#6385](https://github.com/dynamic-labs/DynamicAuth/issues/6385)) ([230a0f3](https://github.com/dynamic-labs/DynamicAuth/commit/230a0f380c2bc8c69619daed0c7f3280da8b8bb9))
|
|
9
|
+
* solana send balance modal for injected ([#6405](https://github.com/dynamic-labs/DynamicAuth/issues/6405)) ([b8aa84b](https://github.com/dynamic-labs/DynamicAuth/commit/b8aa84b58eb71791405bf68b6c46c40bebb170f8))
|
|
10
|
+
|
|
11
|
+
## [3.0.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.23...v3.0.0-alpha.24) (2024-07-20)
|
|
12
|
+
|
|
2
13
|
## [3.0.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.22...v3.0.0-alpha.23) (2024-07-19)
|
|
3
14
|
|
|
4
15
|
|
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.25",
|
|
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.25",
|
|
30
|
+
"@dynamic-labs/logger": "3.0.0-alpha.25",
|
|
31
|
+
"@dynamic-labs/utils": "3.0.0-alpha.25",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
package/src/build/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
|
|
|
55
55
|
native?: string | undefined;
|
|
56
56
|
universal?: string | undefined;
|
|
57
57
|
} | undefined;
|
|
58
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
58
59
|
shortName?: string | undefined;
|
|
59
60
|
showOnlyIfInstalled?: boolean | undefined;
|
|
60
61
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -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, {
|
|
@@ -107,6 +107,7 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
|
107
107
|
native?: string | undefined;
|
|
108
108
|
universal?: string | undefined;
|
|
109
109
|
} | undefined;
|
|
110
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
110
111
|
shortName?: string | undefined;
|
|
111
112
|
showOnlyIfInstalled?: boolean | undefined;
|
|
112
113
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -49,6 +49,7 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
|
|
|
49
49
|
native?: string | undefined;
|
|
50
50
|
universal?: string | undefined;
|
|
51
51
|
} | undefined;
|
|
52
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
52
53
|
shortName?: string | undefined;
|
|
53
54
|
showOnlyIfInstalled?: boolean | undefined;
|
|
54
55
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -66,6 +66,7 @@ export declare const useWalletBookCdn: () => {
|
|
|
66
66
|
native?: string | undefined;
|
|
67
67
|
universal?: string | undefined;
|
|
68
68
|
} | undefined;
|
|
69
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
69
70
|
shortName?: string | undefined;
|
|
70
71
|
showOnlyIfInstalled?: boolean | undefined;
|
|
71
72
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -174,6 +174,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
174
174
|
native?: unknown;
|
|
175
175
|
universal?: unknown;
|
|
176
176
|
} | undefined>;
|
|
177
|
+
mobileExperience: z.ZodOptional<z.ZodEnum<["in-app-browser", "redirect"]>>;
|
|
177
178
|
name: z.ZodString;
|
|
178
179
|
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
179
180
|
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -280,6 +281,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
280
281
|
native?: string | undefined;
|
|
281
282
|
universal?: string | undefined;
|
|
282
283
|
} | undefined;
|
|
284
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
283
285
|
shortName?: string | undefined;
|
|
284
286
|
showOnlyIfInstalled?: boolean | undefined;
|
|
285
287
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -347,6 +349,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
347
349
|
native?: unknown;
|
|
348
350
|
universal?: unknown;
|
|
349
351
|
} | undefined;
|
|
352
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
350
353
|
shortName?: unknown;
|
|
351
354
|
showOnlyIfInstalled?: boolean | undefined;
|
|
352
355
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -414,6 +417,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
414
417
|
native?: string | undefined;
|
|
415
418
|
universal?: string | undefined;
|
|
416
419
|
} | undefined;
|
|
420
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
417
421
|
shortName?: string | undefined;
|
|
418
422
|
showOnlyIfInstalled?: boolean | undefined;
|
|
419
423
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -481,6 +485,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
481
485
|
native?: string | undefined;
|
|
482
486
|
universal?: string | undefined;
|
|
483
487
|
} | undefined;
|
|
488
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
484
489
|
shortName?: string | undefined;
|
|
485
490
|
showOnlyIfInstalled?: boolean | undefined;
|
|
486
491
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -754,6 +759,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
754
759
|
native?: unknown;
|
|
755
760
|
universal?: unknown;
|
|
756
761
|
} | undefined>;
|
|
762
|
+
mobileExperience: z.ZodOptional<z.ZodEnum<["in-app-browser", "redirect"]>>;
|
|
757
763
|
name: z.ZodString;
|
|
758
764
|
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
759
765
|
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -860,6 +866,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
860
866
|
native?: string | undefined;
|
|
861
867
|
universal?: string | undefined;
|
|
862
868
|
} | undefined;
|
|
869
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
863
870
|
shortName?: string | undefined;
|
|
864
871
|
showOnlyIfInstalled?: boolean | undefined;
|
|
865
872
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -927,6 +934,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
927
934
|
native?: unknown;
|
|
928
935
|
universal?: unknown;
|
|
929
936
|
} | undefined;
|
|
937
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
930
938
|
shortName?: unknown;
|
|
931
939
|
showOnlyIfInstalled?: boolean | undefined;
|
|
932
940
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -994,6 +1002,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
994
1002
|
native?: string | undefined;
|
|
995
1003
|
universal?: string | undefined;
|
|
996
1004
|
} | undefined;
|
|
1005
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
997
1006
|
shortName?: string | undefined;
|
|
998
1007
|
showOnlyIfInstalled?: boolean | undefined;
|
|
999
1008
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -1061,6 +1070,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1061
1070
|
native?: string | undefined;
|
|
1062
1071
|
universal?: string | undefined;
|
|
1063
1072
|
} | undefined;
|
|
1073
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
1064
1074
|
shortName?: string | undefined;
|
|
1065
1075
|
showOnlyIfInstalled?: boolean | undefined;
|
|
1066
1076
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -1147,6 +1157,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1147
1157
|
native?: string | undefined;
|
|
1148
1158
|
universal?: string | undefined;
|
|
1149
1159
|
} | undefined;
|
|
1160
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
1150
1161
|
shortName?: string | undefined;
|
|
1151
1162
|
showOnlyIfInstalled?: boolean | undefined;
|
|
1152
1163
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -1252,6 +1263,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1252
1263
|
native?: string | undefined;
|
|
1253
1264
|
universal?: string | undefined;
|
|
1254
1265
|
} | undefined;
|
|
1266
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
1255
1267
|
shortName?: string | undefined;
|
|
1256
1268
|
showOnlyIfInstalled?: boolean | undefined;
|
|
1257
1269
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -91,6 +91,7 @@ const walletSchema = zod.z
|
|
|
91
91
|
})
|
|
92
92
|
.optional()
|
|
93
93
|
.transform(filterEmptyObject.filterEmptyObject),
|
|
94
|
+
mobileExperience: zod.z.enum(['in-app-browser', 'redirect']).optional(),
|
|
94
95
|
name: zod.z.string(),
|
|
95
96
|
shortName: nonEmptyString.nonEmptyString,
|
|
96
97
|
showOnlyIfInstalled: zod.z.boolean().optional(),
|
|
@@ -275,6 +275,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
275
275
|
native?: unknown;
|
|
276
276
|
universal?: unknown;
|
|
277
277
|
} | undefined>;
|
|
278
|
+
mobileExperience: z.ZodOptional<z.ZodEnum<["in-app-browser", "redirect"]>>;
|
|
278
279
|
name: z.ZodString;
|
|
279
280
|
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
280
281
|
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -384,6 +385,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
384
385
|
native?: string | undefined;
|
|
385
386
|
universal?: string | undefined;
|
|
386
387
|
} | undefined;
|
|
388
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
387
389
|
shortName?: string | undefined;
|
|
388
390
|
showOnlyIfInstalled?: boolean | undefined;
|
|
389
391
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -451,6 +453,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
451
453
|
native?: unknown;
|
|
452
454
|
universal?: unknown;
|
|
453
455
|
} | undefined;
|
|
456
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
454
457
|
shortName?: unknown;
|
|
455
458
|
showOnlyIfInstalled?: boolean | undefined;
|
|
456
459
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -518,6 +521,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
518
521
|
native?: string | undefined;
|
|
519
522
|
universal?: string | undefined;
|
|
520
523
|
} | undefined;
|
|
524
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
521
525
|
shortName?: string | undefined;
|
|
522
526
|
showOnlyIfInstalled?: boolean | undefined;
|
|
523
527
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
@@ -585,6 +589,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
585
589
|
native?: string | undefined;
|
|
586
590
|
universal?: string | undefined;
|
|
587
591
|
} | undefined;
|
|
592
|
+
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
588
593
|
shortName?: string | undefined;
|
|
589
594
|
showOnlyIfInstalled?: boolean | undefined;
|
|
590
595
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|