@dynamic-labs/wallet-book 2.1.1 → 2.1.2-alpha.1
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.json +4 -4
- package/src/build/index.d.ts +4 -0
- package/src/build/sources/walletConnect/index.d.ts +4 -0
- package/src/schemas/walletSchema.cjs +3 -0
- package/src/schemas/walletSchema.d.ts +52 -0
- package/src/schemas/walletSchema.js +3 -0
- package/wallet-book-fallbacks.cjs +12 -0
- package/wallet-book-fallbacks.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
### [2.1.2-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.0...v2.1.2-alpha.1) (2024-06-07)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* find phantom solana provider when opening dapp on new tab ([#5902](https://github.com/dynamic-labs/DynamicAuth/issues/5902)) ([99daf87](https://github.com/dynamic-labs/DynamicAuth/commit/99daf87f17caed870a76e4f89a257a14da37c7ab)), closes [#5895](https://github.com/dynamic-labs/DynamicAuth/issues/5895) [#5896](https://github.com/dynamic-labs/DynamicAuth/issues/5896) [#5897](https://github.com/dynamic-labs/DynamicAuth/issues/5897)
|
|
8
|
+
|
|
9
|
+
### [2.1.2-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.1...v2.1.2-alpha.0) (2024-06-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* display enabled countries in phone number field ([#5825](https://github.com/dynamic-labs/DynamicAuth/issues/5825)) ([#5868](https://github.com/dynamic-labs/DynamicAuth/issues/5868)) ([640a4a7](https://github.com/dynamic-labs/DynamicAuth/commit/640a4a77c994390ceed759faf186717b38f393a4))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* btc getBalance should use ordinal address if payment not available ([#5883](https://github.com/dynamic-labs/DynamicAuth/issues/5883)) ([bc5ac55](https://github.com/dynamic-labs/DynamicAuth/commit/bc5ac5589e90193d41282d23ce037db360dd23e6))
|
|
20
|
+
* phone number in kyc step ([#5875](https://github.com/dynamic-labs/DynamicAuth/issues/5875)) ([#5879](https://github.com/dynamic-labs/DynamicAuth/issues/5879)) ([3d8a5be](https://github.com/dynamic-labs/DynamicAuth/commit/3d8a5bef35d4a13a1068aaf80d2c39e795b097cd))
|
|
21
|
+
|
|
2
22
|
### [2.1.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0...v2.1.1) (2024-06-04)
|
|
3
23
|
|
|
4
24
|
## [2.1.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.32...v2.1.0) (2024-06-04)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "2.1.1",
|
|
3
|
+
"version": "2.1.2-alpha.1",
|
|
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": "2.1.1",
|
|
30
|
-
"@dynamic-labs/logger": "2.1.1",
|
|
31
|
-
"@dynamic-labs/utils": "2.1.1",
|
|
29
|
+
"@dynamic-labs/iconic": "2.1.2-alpha.1",
|
|
30
|
+
"@dynamic-labs/logger": "2.1.2-alpha.1",
|
|
31
|
+
"@dynamic-labs/utils": "2.1.2-alpha.1",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
package/src/build/index.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
|
|
|
40
40
|
name: string;
|
|
41
41
|
features: string[];
|
|
42
42
|
} | undefined;
|
|
43
|
+
walletStandardLocators?: {
|
|
44
|
+
name: string;
|
|
45
|
+
locator: string;
|
|
46
|
+
}[] | undefined;
|
|
43
47
|
windowLocations?: string[] | undefined;
|
|
44
48
|
}[] | undefined;
|
|
45
49
|
mobile?: {
|
|
@@ -92,6 +92,10 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
|
92
92
|
name: string;
|
|
93
93
|
features: string[];
|
|
94
94
|
} | undefined;
|
|
95
|
+
walletStandardLocators?: {
|
|
96
|
+
name: string;
|
|
97
|
+
locator: string;
|
|
98
|
+
}[] | undefined;
|
|
95
99
|
windowLocations?: string[] | undefined;
|
|
96
100
|
}[] | undefined;
|
|
97
101
|
mobile?: {
|
|
@@ -32,6 +32,9 @@ const injectedConfigSchema = zod.z.object({
|
|
|
32
32
|
walletStandard: zod.z
|
|
33
33
|
.object({ features: zod.z.array(zod.z.string()), name: zod.z.string() })
|
|
34
34
|
.optional(),
|
|
35
|
+
walletStandardLocators: zod.z
|
|
36
|
+
.array(zod.z.object({ locator: zod.z.string(), name: zod.z.string() }))
|
|
37
|
+
.optional(),
|
|
35
38
|
windowLocations: zod.z
|
|
36
39
|
.array(zod.z.string())
|
|
37
40
|
.optional()
|
|
@@ -31,6 +31,16 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
31
31
|
features: string[];
|
|
32
32
|
name: string;
|
|
33
33
|
}>>;
|
|
34
|
+
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
locator: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
name: string;
|
|
39
|
+
locator: string;
|
|
40
|
+
}, {
|
|
41
|
+
name: string;
|
|
42
|
+
locator: string;
|
|
43
|
+
}>, "many">>;
|
|
34
44
|
windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
|
|
35
45
|
}, "strip", z.ZodTypeAny, {
|
|
36
46
|
chain: string;
|
|
@@ -43,6 +53,10 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
43
53
|
features: string[];
|
|
44
54
|
name: string;
|
|
45
55
|
} | undefined;
|
|
56
|
+
walletStandardLocators?: {
|
|
57
|
+
name: string;
|
|
58
|
+
locator: string;
|
|
59
|
+
}[] | undefined;
|
|
46
60
|
windowLocations?: string[] | undefined;
|
|
47
61
|
}, {
|
|
48
62
|
chain: string;
|
|
@@ -55,6 +69,10 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
55
69
|
features: string[];
|
|
56
70
|
name: string;
|
|
57
71
|
} | undefined;
|
|
72
|
+
walletStandardLocators?: {
|
|
73
|
+
name: string;
|
|
74
|
+
locator: string;
|
|
75
|
+
}[] | undefined;
|
|
58
76
|
windowLocations?: string[] | undefined;
|
|
59
77
|
}>;
|
|
60
78
|
export declare const brandSchema: z.ZodObject<{
|
|
@@ -172,6 +190,16 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
172
190
|
features: string[];
|
|
173
191
|
name: string;
|
|
174
192
|
}>>;
|
|
193
|
+
walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
|
+
locator: z.ZodString;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
name: string;
|
|
198
|
+
locator: string;
|
|
199
|
+
}, {
|
|
200
|
+
name: string;
|
|
201
|
+
locator: string;
|
|
202
|
+
}>, "many">>;
|
|
175
203
|
windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
|
|
176
204
|
}, "strip", z.ZodTypeAny, {
|
|
177
205
|
chain: string;
|
|
@@ -184,6 +212,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
184
212
|
features: string[];
|
|
185
213
|
name: string;
|
|
186
214
|
} | undefined;
|
|
215
|
+
walletStandardLocators?: {
|
|
216
|
+
name: string;
|
|
217
|
+
locator: string;
|
|
218
|
+
}[] | undefined;
|
|
187
219
|
windowLocations?: string[] | undefined;
|
|
188
220
|
}, {
|
|
189
221
|
chain: string;
|
|
@@ -196,6 +228,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
196
228
|
features: string[];
|
|
197
229
|
name: string;
|
|
198
230
|
} | undefined;
|
|
231
|
+
walletStandardLocators?: {
|
|
232
|
+
name: string;
|
|
233
|
+
locator: string;
|
|
234
|
+
}[] | undefined;
|
|
199
235
|
windowLocations?: string[] | undefined;
|
|
200
236
|
}>, "many">>;
|
|
201
237
|
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
@@ -290,6 +326,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
290
326
|
features: string[];
|
|
291
327
|
name: string;
|
|
292
328
|
} | undefined;
|
|
329
|
+
walletStandardLocators?: {
|
|
330
|
+
name: string;
|
|
331
|
+
locator: string;
|
|
332
|
+
}[] | undefined;
|
|
293
333
|
windowLocations?: string[] | undefined;
|
|
294
334
|
}[] | undefined;
|
|
295
335
|
mobile?: {
|
|
@@ -343,6 +383,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
343
383
|
features: string[];
|
|
344
384
|
name: string;
|
|
345
385
|
} | undefined;
|
|
386
|
+
walletStandardLocators?: {
|
|
387
|
+
name: string;
|
|
388
|
+
locator: string;
|
|
389
|
+
}[] | undefined;
|
|
346
390
|
windowLocations?: string[] | undefined;
|
|
347
391
|
}[] | undefined;
|
|
348
392
|
mobile?: {
|
|
@@ -396,6 +440,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
396
440
|
features: string[];
|
|
397
441
|
name: string;
|
|
398
442
|
} | undefined;
|
|
443
|
+
walletStandardLocators?: {
|
|
444
|
+
name: string;
|
|
445
|
+
locator: string;
|
|
446
|
+
}[] | undefined;
|
|
399
447
|
windowLocations?: string[] | undefined;
|
|
400
448
|
}[] | undefined;
|
|
401
449
|
mobile?: {
|
|
@@ -449,6 +497,10 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
449
497
|
features: string[];
|
|
450
498
|
name: string;
|
|
451
499
|
} | undefined;
|
|
500
|
+
walletStandardLocators?: {
|
|
501
|
+
name: string;
|
|
502
|
+
locator: string;
|
|
503
|
+
}[] | undefined;
|
|
452
504
|
windowLocations?: string[] | undefined;
|
|
453
505
|
}[] | undefined;
|
|
454
506
|
mobile?: {
|
|
@@ -28,6 +28,9 @@ const injectedConfigSchema = z.object({
|
|
|
28
28
|
walletStandard: z
|
|
29
29
|
.object({ features: z.array(z.string()), name: z.string() })
|
|
30
30
|
.optional(),
|
|
31
|
+
walletStandardLocators: z
|
|
32
|
+
.array(z.object({ locator: z.string(), name: z.string() }))
|
|
33
|
+
.optional(),
|
|
31
34
|
windowLocations: z
|
|
32
35
|
.array(z.string())
|
|
33
36
|
.optional()
|
|
@@ -304,6 +304,12 @@ var wallets = {
|
|
|
304
304
|
value: false
|
|
305
305
|
}
|
|
306
306
|
],
|
|
307
|
+
walletStandardLocators: [
|
|
308
|
+
{
|
|
309
|
+
locator: "features.phantom:.phantom",
|
|
310
|
+
name: "Phantom"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
307
313
|
windowLocations: [
|
|
308
314
|
"phantom.solana"
|
|
309
315
|
]
|
|
@@ -385,6 +391,12 @@ var wallets = {
|
|
|
385
391
|
value: false
|
|
386
392
|
}
|
|
387
393
|
],
|
|
394
|
+
walletStandardLocators: [
|
|
395
|
+
{
|
|
396
|
+
locator: "features.phantom:.phantom",
|
|
397
|
+
name: "Phantom"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
388
400
|
windowLocations: [
|
|
389
401
|
"phantom.solana"
|
|
390
402
|
]
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -300,6 +300,12 @@ var wallets = {
|
|
|
300
300
|
value: false
|
|
301
301
|
}
|
|
302
302
|
],
|
|
303
|
+
walletStandardLocators: [
|
|
304
|
+
{
|
|
305
|
+
locator: "features.phantom:.phantom",
|
|
306
|
+
name: "Phantom"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
303
309
|
windowLocations: [
|
|
304
310
|
"phantom.solana"
|
|
305
311
|
]
|
|
@@ -381,6 +387,12 @@ var wallets = {
|
|
|
381
387
|
value: false
|
|
382
388
|
}
|
|
383
389
|
],
|
|
390
|
+
walletStandardLocators: [
|
|
391
|
+
{
|
|
392
|
+
locator: "features.phantom:.phantom",
|
|
393
|
+
name: "Phantom"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
384
396
|
windowLocations: [
|
|
385
397
|
"phantom.solana"
|
|
386
398
|
]
|