@dynamic-labs/wallet-book 0.0.18 → 0.0.19
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/dist/cjs/src/helpers/findWalletBookWallet.d.ts +1 -0
- package/dist/cjs/src/helpers/findWalletGroup.d.ts +43 -0
- package/dist/cjs/src/helpers/findWalletGroup.js +16 -0
- package/dist/cjs/src/helpers/findWalletGroup.js.map +1 -0
- package/dist/cjs/src/helpers/getWalletGroup.d.ts +2 -0
- package/dist/cjs/src/helpers/getWalletGroup.js +13 -0
- package/dist/cjs/src/helpers/getWalletGroup.js.map +1 -0
- package/dist/cjs/src/helpers/index.d.ts +2 -0
- package/dist/cjs/src/helpers/index.js +2 -0
- package/dist/cjs/src/helpers/index.js.map +1 -1
- package/dist/cjs/src/hooks/useWalletBookCdn.d.ts +44 -0
- package/dist/cjs/src/index.d.ts +1 -1
- package/dist/cjs/src/index.js +2 -1
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/schemas/walletBookSchema.d.ts +744 -0
- package/dist/cjs/src/schemas/walletBookSchema.js +4 -0
- package/dist/cjs/src/schemas/walletBookSchema.js.map +1 -1
- package/dist/cjs/src/schemas/walletGroup.d.ts +336 -0
- package/dist/cjs/src/schemas/walletGroup.js +29 -0
- package/dist/cjs/src/schemas/walletGroup.js.map +1 -0
- package/dist/cjs/src/schemas/walletSchema.d.ts +5 -0
- package/dist/cjs/src/schemas/walletSchema.js +1 -1
- package/dist/cjs/src/schemas/walletSchema.js.map +1 -1
- package/dist/esm/src/helpers/findWalletBookWallet.d.ts +1 -0
- package/dist/esm/src/helpers/findWalletGroup.d.ts +43 -0
- package/dist/esm/src/helpers/findWalletGroup.js +12 -0
- package/dist/esm/src/helpers/findWalletGroup.js.map +1 -0
- package/dist/esm/src/helpers/getWalletGroup.d.ts +2 -0
- package/dist/esm/src/helpers/getWalletGroup.js +9 -0
- package/dist/esm/src/helpers/getWalletGroup.js.map +1 -0
- package/dist/esm/src/helpers/index.d.ts +2 -0
- package/dist/esm/src/helpers/index.js +2 -0
- package/dist/esm/src/helpers/index.js.map +1 -1
- package/dist/esm/src/hooks/useWalletBookCdn.d.ts +44 -0
- package/dist/esm/src/index.d.ts +1 -1
- package/dist/esm/src/index.js +1 -1
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/schemas/walletBookSchema.d.ts +744 -0
- package/dist/esm/src/schemas/walletBookSchema.js +4 -0
- package/dist/esm/src/schemas/walletBookSchema.js.map +1 -1
- package/dist/esm/src/schemas/walletGroup.d.ts +336 -0
- package/dist/esm/src/schemas/walletGroup.js +26 -0
- package/dist/esm/src/schemas/walletGroup.js.map +1 -0
- package/dist/esm/src/schemas/walletSchema.d.ts +5 -0
- package/dist/esm/src/schemas/walletSchema.js +1 -1
- package/dist/esm/src/schemas/walletSchema.js.map +1 -1
- package/dist/wallet-book.json +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.walletBookSchema = exports.walletRecordsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const walletSchema_1 = require("./walletSchema");
|
|
6
|
+
const walletGroup_1 = require("./walletGroup");
|
|
6
7
|
exports.walletRecordsSchema = zod_1.z.record(zod_1.z.string(), walletSchema_1.walletSchema);
|
|
7
8
|
exports.walletBookSchema = zod_1.z.preprocess((val) => {
|
|
8
9
|
return val;
|
|
9
10
|
}, zod_1.z.object({
|
|
10
11
|
wallets: zod_1.z.record(zod_1.z.string(), walletSchema_1.walletSchema),
|
|
12
|
+
groups: zod_1.z.record(zod_1.z.string(), walletGroup_1.walletGroupSchema)
|
|
11
13
|
}));
|
|
14
|
+
const walletGroupSchemaWithoutWallets = walletGroup_1.walletGroupSchema.omit({ wallets: true });
|
|
15
|
+
const WalletGroupRecordSchema = zod_1.z.record(zod_1.z.string(), walletGroupSchemaWithoutWallets);
|
|
12
16
|
//# sourceMappingURL=walletBookSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletBookSchema.js","sourceRoot":"","sources":["../../../../src/schemas/walletBookSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA8C;
|
|
1
|
+
{"version":3,"file":"walletBookSchema.js","sourceRoot":"","sources":["../../../../src/schemas/walletBookSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA8C;AAC9C,+CAAkD;AAErC,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,2BAAY,CAAC,CAAC;AAEzD,QAAA,gBAAgB,GAAG,OAAC,CAAC,UAAU,CAC1C,CAAC,GAAQ,EAAE,EAAE;IACX,OAAO,GAAG,CAAC;AACb,CAAC,EACD,OAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,2BAAY,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,+BAAiB,CAAC;CAChD,CAAC,CACH,CAAC;AAKF,MAAM,+BAA+B,GAAG,+BAAiB,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAClF,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const walletGroupSchema: z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
6
|
+
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
7
|
+
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
8
|
+
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
spriteId?: string | undefined;
|
|
11
|
+
imageId?: string | undefined;
|
|
12
|
+
alt?: string | undefined;
|
|
13
|
+
primaryColor?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
spriteId?: unknown;
|
|
16
|
+
imageId?: unknown;
|
|
17
|
+
alt?: unknown;
|
|
18
|
+
primaryColor?: unknown;
|
|
19
|
+
}>>, {
|
|
20
|
+
spriteId?: string | undefined;
|
|
21
|
+
imageId?: string | undefined;
|
|
22
|
+
alt?: string | undefined;
|
|
23
|
+
primaryColor?: string | undefined;
|
|
24
|
+
} | undefined, {
|
|
25
|
+
spriteId?: unknown;
|
|
26
|
+
imageId?: unknown;
|
|
27
|
+
alt?: unknown;
|
|
28
|
+
primaryColor?: unknown;
|
|
29
|
+
} | undefined>;
|
|
30
|
+
wallets: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
31
|
+
brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
32
|
+
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
33
|
+
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
34
|
+
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
35
|
+
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
spriteId?: string | undefined;
|
|
38
|
+
imageId?: string | undefined;
|
|
39
|
+
alt?: string | undefined;
|
|
40
|
+
primaryColor?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
spriteId?: unknown;
|
|
43
|
+
imageId?: unknown;
|
|
44
|
+
alt?: unknown;
|
|
45
|
+
primaryColor?: unknown;
|
|
46
|
+
}>>, {
|
|
47
|
+
spriteId?: string | undefined;
|
|
48
|
+
imageId?: string | undefined;
|
|
49
|
+
alt?: string | undefined;
|
|
50
|
+
primaryColor?: string | undefined;
|
|
51
|
+
} | undefined, {
|
|
52
|
+
spriteId?: unknown;
|
|
53
|
+
imageId?: unknown;
|
|
54
|
+
alt?: unknown;
|
|
55
|
+
primaryColor?: unknown;
|
|
56
|
+
} | undefined>;
|
|
57
|
+
desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
58
|
+
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
59
|
+
universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
60
|
+
chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
61
|
+
firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
62
|
+
operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
63
|
+
edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
64
|
+
safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
native?: string | undefined;
|
|
67
|
+
universal?: string | undefined;
|
|
68
|
+
chromeId?: string | undefined;
|
|
69
|
+
firefoxId?: string | undefined;
|
|
70
|
+
operaId?: string | undefined;
|
|
71
|
+
edgeId?: string | undefined;
|
|
72
|
+
safariId?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
native?: unknown;
|
|
75
|
+
universal?: unknown;
|
|
76
|
+
chromeId?: unknown;
|
|
77
|
+
firefoxId?: unknown;
|
|
78
|
+
operaId?: unknown;
|
|
79
|
+
edgeId?: unknown;
|
|
80
|
+
safariId?: unknown;
|
|
81
|
+
}>>, {
|
|
82
|
+
native?: string | undefined;
|
|
83
|
+
universal?: string | undefined;
|
|
84
|
+
chromeId?: string | undefined;
|
|
85
|
+
firefoxId?: string | undefined;
|
|
86
|
+
operaId?: string | undefined;
|
|
87
|
+
edgeId?: string | undefined;
|
|
88
|
+
safariId?: string | undefined;
|
|
89
|
+
} | undefined, {
|
|
90
|
+
native?: unknown;
|
|
91
|
+
universal?: unknown;
|
|
92
|
+
chromeId?: unknown;
|
|
93
|
+
firefoxId?: unknown;
|
|
94
|
+
operaId?: unknown;
|
|
95
|
+
edgeId?: unknown;
|
|
96
|
+
safariId?: unknown;
|
|
97
|
+
} | undefined>;
|
|
98
|
+
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
99
|
+
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
100
|
+
universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
101
|
+
ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
104
|
+
androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
native?: string | undefined;
|
|
107
|
+
universal?: string | undefined;
|
|
108
|
+
ios?: string | null | undefined;
|
|
109
|
+
android?: string | null | undefined;
|
|
110
|
+
iosId?: string | undefined;
|
|
111
|
+
androidId?: string | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
native?: unknown;
|
|
114
|
+
universal?: unknown;
|
|
115
|
+
ios?: string | null | undefined;
|
|
116
|
+
android?: string | null | undefined;
|
|
117
|
+
iosId?: unknown;
|
|
118
|
+
androidId?: unknown;
|
|
119
|
+
}>>, {
|
|
120
|
+
native?: string | undefined;
|
|
121
|
+
universal?: string | undefined;
|
|
122
|
+
ios?: string | null | undefined;
|
|
123
|
+
android?: string | null | undefined;
|
|
124
|
+
iosId?: string | undefined;
|
|
125
|
+
androidId?: string | undefined;
|
|
126
|
+
} | undefined, {
|
|
127
|
+
native?: unknown;
|
|
128
|
+
universal?: unknown;
|
|
129
|
+
ios?: string | null | undefined;
|
|
130
|
+
android?: string | null | undefined;
|
|
131
|
+
iosId?: unknown;
|
|
132
|
+
androidId?: unknown;
|
|
133
|
+
} | undefined>;
|
|
134
|
+
chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
135
|
+
walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
136
|
+
sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
sdks?: string[] | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
sdks?: unknown;
|
|
141
|
+
}>>, {
|
|
142
|
+
sdks?: string[] | undefined;
|
|
143
|
+
} | undefined, {
|
|
144
|
+
sdks?: unknown;
|
|
145
|
+
} | undefined>;
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
150
|
+
group: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
name: string;
|
|
153
|
+
brand?: {
|
|
154
|
+
spriteId?: string | undefined;
|
|
155
|
+
imageId?: string | undefined;
|
|
156
|
+
alt?: string | undefined;
|
|
157
|
+
primaryColor?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
desktop?: {
|
|
160
|
+
native?: string | undefined;
|
|
161
|
+
universal?: string | undefined;
|
|
162
|
+
chromeId?: string | undefined;
|
|
163
|
+
firefoxId?: string | undefined;
|
|
164
|
+
operaId?: string | undefined;
|
|
165
|
+
edgeId?: string | undefined;
|
|
166
|
+
safariId?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
mobile?: {
|
|
169
|
+
native?: string | undefined;
|
|
170
|
+
universal?: string | undefined;
|
|
171
|
+
ios?: string | null | undefined;
|
|
172
|
+
android?: string | null | undefined;
|
|
173
|
+
iosId?: string | undefined;
|
|
174
|
+
androidId?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
chains?: string[] | undefined;
|
|
177
|
+
walletConnect?: {
|
|
178
|
+
sdks?: string[] | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
181
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
182
|
+
shortName?: string | undefined;
|
|
183
|
+
group?: string | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
name: string;
|
|
186
|
+
brand?: {
|
|
187
|
+
spriteId?: unknown;
|
|
188
|
+
imageId?: unknown;
|
|
189
|
+
alt?: unknown;
|
|
190
|
+
primaryColor?: unknown;
|
|
191
|
+
} | undefined;
|
|
192
|
+
desktop?: {
|
|
193
|
+
native?: unknown;
|
|
194
|
+
universal?: unknown;
|
|
195
|
+
chromeId?: unknown;
|
|
196
|
+
firefoxId?: unknown;
|
|
197
|
+
operaId?: unknown;
|
|
198
|
+
edgeId?: unknown;
|
|
199
|
+
safariId?: unknown;
|
|
200
|
+
} | undefined;
|
|
201
|
+
mobile?: {
|
|
202
|
+
native?: unknown;
|
|
203
|
+
universal?: unknown;
|
|
204
|
+
ios?: string | null | undefined;
|
|
205
|
+
android?: string | null | undefined;
|
|
206
|
+
iosId?: unknown;
|
|
207
|
+
androidId?: unknown;
|
|
208
|
+
} | undefined;
|
|
209
|
+
chains?: string[] | undefined;
|
|
210
|
+
walletConnect?: {
|
|
211
|
+
sdks?: unknown;
|
|
212
|
+
} | undefined;
|
|
213
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
214
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
215
|
+
shortName?: unknown;
|
|
216
|
+
group?: string | undefined;
|
|
217
|
+
}>, {
|
|
218
|
+
name: string;
|
|
219
|
+
brand?: {
|
|
220
|
+
spriteId?: string | undefined;
|
|
221
|
+
imageId?: string | undefined;
|
|
222
|
+
alt?: string | undefined;
|
|
223
|
+
primaryColor?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
desktop?: {
|
|
226
|
+
native?: string | undefined;
|
|
227
|
+
universal?: string | undefined;
|
|
228
|
+
chromeId?: string | undefined;
|
|
229
|
+
firefoxId?: string | undefined;
|
|
230
|
+
operaId?: string | undefined;
|
|
231
|
+
edgeId?: string | undefined;
|
|
232
|
+
safariId?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
mobile?: {
|
|
235
|
+
native?: string | undefined;
|
|
236
|
+
universal?: string | undefined;
|
|
237
|
+
ios?: string | null | undefined;
|
|
238
|
+
android?: string | null | undefined;
|
|
239
|
+
iosId?: string | undefined;
|
|
240
|
+
androidId?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
chains?: string[] | undefined;
|
|
243
|
+
walletConnect?: {
|
|
244
|
+
sdks?: string[] | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
247
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
248
|
+
shortName?: string | undefined;
|
|
249
|
+
group?: string | undefined;
|
|
250
|
+
}, unknown>, {
|
|
251
|
+
name: string;
|
|
252
|
+
brand?: {
|
|
253
|
+
spriteId?: string | undefined;
|
|
254
|
+
imageId?: string | undefined;
|
|
255
|
+
alt?: string | undefined;
|
|
256
|
+
primaryColor?: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
desktop?: {
|
|
259
|
+
native?: string | undefined;
|
|
260
|
+
universal?: string | undefined;
|
|
261
|
+
chromeId?: string | undefined;
|
|
262
|
+
firefoxId?: string | undefined;
|
|
263
|
+
operaId?: string | undefined;
|
|
264
|
+
edgeId?: string | undefined;
|
|
265
|
+
safariId?: string | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
mobile?: {
|
|
268
|
+
native?: string | undefined;
|
|
269
|
+
universal?: string | undefined;
|
|
270
|
+
ios?: string | null | undefined;
|
|
271
|
+
android?: string | null | undefined;
|
|
272
|
+
iosId?: string | undefined;
|
|
273
|
+
androidId?: string | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
chains?: string[] | undefined;
|
|
276
|
+
walletConnect?: {
|
|
277
|
+
sdks?: string[] | undefined;
|
|
278
|
+
} | undefined;
|
|
279
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
280
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
281
|
+
shortName?: string | undefined;
|
|
282
|
+
group?: string | undefined;
|
|
283
|
+
}, unknown>, "many">;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
key: string;
|
|
286
|
+
wallets: {
|
|
287
|
+
name: string;
|
|
288
|
+
brand?: {
|
|
289
|
+
spriteId?: string | undefined;
|
|
290
|
+
imageId?: string | undefined;
|
|
291
|
+
alt?: string | undefined;
|
|
292
|
+
primaryColor?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
desktop?: {
|
|
295
|
+
native?: string | undefined;
|
|
296
|
+
universal?: string | undefined;
|
|
297
|
+
chromeId?: string | undefined;
|
|
298
|
+
firefoxId?: string | undefined;
|
|
299
|
+
operaId?: string | undefined;
|
|
300
|
+
edgeId?: string | undefined;
|
|
301
|
+
safariId?: string | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
mobile?: {
|
|
304
|
+
native?: string | undefined;
|
|
305
|
+
universal?: string | undefined;
|
|
306
|
+
ios?: string | null | undefined;
|
|
307
|
+
android?: string | null | undefined;
|
|
308
|
+
iosId?: string | undefined;
|
|
309
|
+
androidId?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
chains?: string[] | undefined;
|
|
312
|
+
walletConnect?: {
|
|
313
|
+
sdks?: string[] | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
316
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
317
|
+
shortName?: string | undefined;
|
|
318
|
+
group?: string | undefined;
|
|
319
|
+
}[];
|
|
320
|
+
brand?: {
|
|
321
|
+
spriteId?: string | undefined;
|
|
322
|
+
imageId?: string | undefined;
|
|
323
|
+
alt?: string | undefined;
|
|
324
|
+
primaryColor?: string | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
key: string;
|
|
328
|
+
wallets: unknown[];
|
|
329
|
+
brand?: {
|
|
330
|
+
spriteId?: unknown;
|
|
331
|
+
imageId?: unknown;
|
|
332
|
+
alt?: unknown;
|
|
333
|
+
primaryColor?: unknown;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}>;
|
|
336
|
+
export type WalletGroupSchema = z.infer<typeof walletGroupSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.walletGroupSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const nonEmptyString_1 = require("./utils/nonEmptyString");
|
|
6
|
+
const walletSchema_1 = require("./walletSchema");
|
|
7
|
+
exports.walletGroupSchema = zod_1.z.object({
|
|
8
|
+
key: zod_1.z.string(),
|
|
9
|
+
brand: zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
spriteId: nonEmptyString_1.nonEmptyString,
|
|
12
|
+
imageId: nonEmptyString_1.nonEmptyString,
|
|
13
|
+
alt: nonEmptyString_1.nonEmptyString,
|
|
14
|
+
primaryColor: nonEmptyString_1.nonEmptyString,
|
|
15
|
+
})
|
|
16
|
+
.optional()
|
|
17
|
+
.refine((val) => {
|
|
18
|
+
if (!val)
|
|
19
|
+
return true;
|
|
20
|
+
if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
message: "Only one of spriteId or imageId can be defined",
|
|
25
|
+
path: ["brand"],
|
|
26
|
+
}),
|
|
27
|
+
wallets: zod_1.z.array(walletSchema_1.walletSchema),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=walletGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletGroup.js","sourceRoot":"","sources":["../../../../src/schemas/walletGroup.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2DAAwD;AACxD,iDAA8C;AAEjC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,+BAAc;QACxB,OAAO,EAAE,+BAAc;QACvB,GAAG,EAAE,+BAAc;QACnB,YAAY,EAAE,+BAAc;KAC7B,CAAC;SACD,QAAQ,EAAE;SACV,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;QACN,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtB,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE;YACnE,OAAO,IAAI,CAAC;SACb;IACH,CAAC,EACD;QACE,OAAO,EAAE,gDAAgD;QACzD,IAAI,EAAE,CAAC,OAAO,CAAC;KAChB,CACF;IACH,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,2BAAY,CAAC;CAC/B,CAAC,CAAC"}
|
|
@@ -119,6 +119,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
119
119
|
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
120
120
|
switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
|
|
121
121
|
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
122
|
+
group: z.ZodOptional<z.ZodString>;
|
|
122
123
|
}, "strip", z.ZodTypeAny, {
|
|
123
124
|
name: string;
|
|
124
125
|
brand?: {
|
|
@@ -151,6 +152,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
151
152
|
showOnlyIfInstalled?: boolean | undefined;
|
|
152
153
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
153
154
|
shortName?: string | undefined;
|
|
155
|
+
group?: string | undefined;
|
|
154
156
|
}, {
|
|
155
157
|
name: string;
|
|
156
158
|
brand?: {
|
|
@@ -183,6 +185,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
183
185
|
showOnlyIfInstalled?: boolean | undefined;
|
|
184
186
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
185
187
|
shortName?: unknown;
|
|
188
|
+
group?: string | undefined;
|
|
186
189
|
}>, {
|
|
187
190
|
name: string;
|
|
188
191
|
brand?: {
|
|
@@ -215,6 +218,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
215
218
|
showOnlyIfInstalled?: boolean | undefined;
|
|
216
219
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
217
220
|
shortName?: string | undefined;
|
|
221
|
+
group?: string | undefined;
|
|
218
222
|
}, unknown>, {
|
|
219
223
|
name: string;
|
|
220
224
|
brand?: {
|
|
@@ -247,5 +251,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
247
251
|
showOnlyIfInstalled?: boolean | undefined;
|
|
248
252
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
249
253
|
shortName?: string | undefined;
|
|
254
|
+
group?: string | undefined;
|
|
250
255
|
}, unknown>;
|
|
251
256
|
export type WalletSchema = z.infer<typeof walletSchema>;
|
|
@@ -29,7 +29,6 @@ exports.walletSchema = zod_1.z
|
|
|
29
29
|
(val.spriteId || val.imageId)) {
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
|
-
console.log(JSON.stringify(val, null, 2));
|
|
33
32
|
}, {
|
|
34
33
|
message: "Only one of spriteId or imageId can be defined",
|
|
35
34
|
path: ["brand"],
|
|
@@ -68,6 +67,7 @@ exports.walletSchema = zod_1.z
|
|
|
68
67
|
showOnlyIfInstalled: zod_1.z.boolean().optional(),
|
|
69
68
|
switchNetworkOnlyFromWallet: zod_1.z.boolean().optional(),
|
|
70
69
|
shortName: nonEmptyString_1.nonEmptyString,
|
|
70
|
+
group: zod_1.z.string().optional(),
|
|
71
71
|
}))
|
|
72
72
|
.transform((val) => {
|
|
73
73
|
if (val.mobile?.iosId || val.mobile?.ios == null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletSchema.js","sourceRoot":"","sources":["../../../../src/schemas/walletSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAgC;AAChC,2DAAwD;AACxD,mFAAgF;AAChF,+EAA4E;AAC5E,qFAAkF;AAClF,2DAAwD;AACxD,mEAAgE;AAChE,qEAAkE;AAClE,iEAA8D;AAEjD,QAAA,YAAY,GAAG,OAAC;KAC1B,UAAU,CACT,CAAC,GAAG,EAAE,EAAE;IACN,OAAO,GAAG,CAAC;AACb,CAAC,EACD,OAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,+BAAc;QACxB,OAAO,EAAE,+BAAc;QACvB,GAAG,EAAE,+BAAc;QACnB,YAAY,EAAE,+BAAc;KAC7B,CAAC;SACD,QAAQ,EAAE;SACV,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;QACN,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtB,IACE,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC;YAC9B,CAAC,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC,EAC7B;YACA,OAAO,IAAI,CAAC;SACb;
|
|
1
|
+
{"version":3,"file":"walletSchema.js","sourceRoot":"","sources":["../../../../src/schemas/walletSchema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const findWalletGroup: (walletGroup: string) => {
|
|
2
|
+
key: string;
|
|
3
|
+
wallets: {
|
|
4
|
+
name: string;
|
|
5
|
+
brand?: {
|
|
6
|
+
spriteId?: string | undefined;
|
|
7
|
+
imageId?: string | undefined;
|
|
8
|
+
alt?: string | undefined;
|
|
9
|
+
primaryColor?: string | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
desktop?: {
|
|
12
|
+
native?: string | undefined;
|
|
13
|
+
universal?: string | undefined;
|
|
14
|
+
chromeId?: string | undefined;
|
|
15
|
+
firefoxId?: string | undefined;
|
|
16
|
+
operaId?: string | undefined;
|
|
17
|
+
edgeId?: string | undefined;
|
|
18
|
+
safariId?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
mobile?: {
|
|
21
|
+
native?: string | undefined;
|
|
22
|
+
universal?: string | undefined;
|
|
23
|
+
ios?: string | null | undefined;
|
|
24
|
+
android?: string | null | undefined;
|
|
25
|
+
iosId?: string | undefined;
|
|
26
|
+
androidId?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
chains?: string[] | undefined;
|
|
29
|
+
walletConnect?: {
|
|
30
|
+
sdks?: string[] | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
33
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
34
|
+
shortName?: string | undefined;
|
|
35
|
+
group?: string | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
brand?: {
|
|
38
|
+
spriteId?: string | undefined;
|
|
39
|
+
imageId?: string | undefined;
|
|
40
|
+
alt?: string | undefined;
|
|
41
|
+
primaryColor?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getWalletGroup } from "./getWalletGroup";
|
|
2
|
+
import { logger } from "./logger";
|
|
3
|
+
export const findWalletGroup = (walletGroup) => {
|
|
4
|
+
try {
|
|
5
|
+
return getWalletGroup(walletGroup);
|
|
6
|
+
}
|
|
7
|
+
catch (err) {
|
|
8
|
+
logger.error(err);
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=findWalletGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findWalletGroup.js","sourceRoot":"","sources":["../../../../src/helpers/findWalletGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,EAAE;IACrD,IAAI;QACF,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC;KACpC;IAAC,OAAM,GAAG,EAAE;QACX,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClB,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useWalletBook } from "../hooks";
|
|
2
|
+
export const getWalletGroup = (key) => {
|
|
3
|
+
const walletBook = useWalletBook();
|
|
4
|
+
const group = walletBook.groups[key];
|
|
5
|
+
if (!group)
|
|
6
|
+
throw new Error(`Group ${key} not found in wallet book`);
|
|
7
|
+
return group;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=getWalletGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWalletGroup.js","sourceRoot":"","sources":["../../../../src/helpers/getWalletGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAqB,EAAE;IAC/D,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACrC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,SAAS,GAAG,2BAA2B,CAAC,CAAC;IACrE,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -31,5 +31,49 @@ export declare const useWalletBookCdn: () => {
|
|
|
31
31
|
showOnlyIfInstalled?: boolean | undefined;
|
|
32
32
|
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
33
33
|
shortName?: string | undefined;
|
|
34
|
+
group?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
groups: Record<string, {
|
|
37
|
+
key: string;
|
|
38
|
+
wallets: {
|
|
39
|
+
name: string;
|
|
40
|
+
brand?: {
|
|
41
|
+
spriteId?: string | undefined;
|
|
42
|
+
imageId?: string | undefined;
|
|
43
|
+
alt?: string | undefined;
|
|
44
|
+
primaryColor?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
desktop?: {
|
|
47
|
+
native?: string | undefined;
|
|
48
|
+
universal?: string | undefined;
|
|
49
|
+
chromeId?: string | undefined;
|
|
50
|
+
firefoxId?: string | undefined;
|
|
51
|
+
operaId?: string | undefined;
|
|
52
|
+
edgeId?: string | undefined;
|
|
53
|
+
safariId?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
mobile?: {
|
|
56
|
+
native?: string | undefined;
|
|
57
|
+
universal?: string | undefined;
|
|
58
|
+
ios?: string | null | undefined;
|
|
59
|
+
android?: string | null | undefined;
|
|
60
|
+
iosId?: string | undefined;
|
|
61
|
+
androidId?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
chains?: string[] | undefined;
|
|
64
|
+
walletConnect?: {
|
|
65
|
+
sdks?: string[] | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
68
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
69
|
+
shortName?: string | undefined;
|
|
70
|
+
group?: string | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
brand?: {
|
|
73
|
+
spriteId?: string | undefined;
|
|
74
|
+
imageId?: string | undefined;
|
|
75
|
+
alt?: string | undefined;
|
|
76
|
+
primaryColor?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
34
78
|
}>;
|
|
35
79
|
};
|
package/dist/esm/src/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { WalletLinks } from "./helpers";
|
|
|
7
7
|
/**
|
|
8
8
|
* HELPERS
|
|
9
9
|
*/
|
|
10
|
-
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, } from "./helpers";
|
|
10
|
+
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup } from "./helpers";
|
|
11
11
|
/**
|
|
12
12
|
* HOOKS
|
|
13
13
|
*/
|
package/dist/esm/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HELPERS
|
|
3
3
|
*/
|
|
4
|
-
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, } from "./helpers";
|
|
4
|
+
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup } from "./helpers";
|
|
5
5
|
/**
|
|
6
6
|
* HOOKS
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACf,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|