@dynamic-labs/wallet-book 2.2.5 → 2.2.7

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 CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ### [2.2.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.6...v2.2.7) (2024-06-28)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * coinbase smart wallet better handling in iframes ([#6190](https://github.com/dynamic-labs/DynamicAuth/issues/6190)) ([26530e6](https://github.com/dynamic-labs/DynamicAuth/commit/26530e6e7e368c83ade97ae4edd0de01944825b9))
8
+ * show user wallet in profile view on single wallet mode even if it's not primary ([#6194](https://github.com/dynamic-labs/DynamicAuth/issues/6194)) ([070db58](https://github.com/dynamic-labs/DynamicAuth/commit/070db581f487b0e9a308d99497f63679f61fba7b))
9
+
10
+ ### [2.2.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.5...v2.2.6) (2024-06-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * prevent unneccessary magiceden solana popups ([#6158](https://github.com/dynamic-labs/DynamicAuth/issues/6158)) ([#6171](https://github.com/dynamic-labs/DynamicAuth/issues/6171)) ([cc24d13](https://github.com/dynamic-labs/DynamicAuth/commit/cc24d135b059b4a235752f57a9d25ac0e5b2e307))
16
+ * expose gas sponsorship kernel client from zerodev connector
17
+
2
18
  ### [2.2.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.4...v2.2.5) (2024-06-24)
3
19
 
4
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
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.2.5",
30
- "@dynamic-labs/logger": "2.2.5",
31
- "@dynamic-labs/utils": "2.2.5",
29
+ "@dynamic-labs/iconic": "2.2.7",
30
+ "@dynamic-labs/logger": "2.2.7",
31
+ "@dynamic-labs/utils": "2.2.7",
32
32
  "util": "0.12.5"
33
33
  },
34
34
  "peerDependencies": {
@@ -62,4 +62,14 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
62
62
  sdks?: string[] | undefined;
63
63
  } | undefined;
64
64
  walletGroup?: string | undefined;
65
+ walletLimitations?: {
66
+ browserExtension?: {
67
+ unsupportedEvents?: string[] | undefined;
68
+ unsupportedMethods?: string[] | undefined;
69
+ } | undefined;
70
+ mobile?: {
71
+ unsupportedEvents?: string[] | undefined;
72
+ unsupportedMethods?: string[] | undefined;
73
+ } | undefined;
74
+ } | undefined;
65
75
  }>;
@@ -114,4 +114,14 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
114
114
  sdks?: string[] | undefined;
115
115
  } | undefined;
116
116
  walletGroup?: string | undefined;
117
+ walletLimitations?: {
118
+ browserExtension?: {
119
+ unsupportedEvents?: string[] | undefined;
120
+ unsupportedMethods?: string[] | undefined;
121
+ } | undefined;
122
+ mobile?: {
123
+ unsupportedEvents?: string[] | undefined;
124
+ unsupportedMethods?: string[] | undefined;
125
+ } | undefined;
126
+ } | undefined;
117
127
  }>>;
@@ -56,4 +56,14 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
56
56
  sdks?: string[] | undefined;
57
57
  } | undefined;
58
58
  walletGroup?: string | undefined;
59
+ walletLimitations?: {
60
+ browserExtension?: {
61
+ unsupportedEvents?: string[] | undefined;
62
+ unsupportedMethods?: string[] | undefined;
63
+ } | undefined;
64
+ mobile?: {
65
+ unsupportedEvents?: string[] | undefined;
66
+ unsupportedMethods?: string[] | undefined;
67
+ } | undefined;
68
+ } | undefined;
59
69
  } | undefined;
@@ -10,3 +10,5 @@ export * from './findWalletGroup';
10
10
  export * from './getWalletBookCdnUrl';
11
11
  export * from './getBrandIconUrl';
12
12
  export * from './findWalletGroupOverride';
13
+ export * from './isWalletMethodSupported';
14
+ export * from './isWalletEventSupported';
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ const isWalletEventSupported = (wallet, event, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedEvents) === null || _c === void 0 ? void 0 : _c.includes(event)); };
7
+
8
+ exports.isWalletEventSupported = isWalletEventSupported;
@@ -0,0 +1,2 @@
1
+ import { WalletSchema } from '../schemas';
2
+ export declare const isWalletEventSupported: (wallet: WalletSchema | undefined, event: string, platform: keyof NonNullable<WalletSchema['walletLimitations']>) => boolean;
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ const isWalletEventSupported = (wallet, event, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedEvents) === null || _c === void 0 ? void 0 : _c.includes(event)); };
3
+
4
+ export { isWalletEventSupported };
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ const isWalletMethodSupported = (wallet, method, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedMethods) === null || _c === void 0 ? void 0 : _c.includes(method)); };
7
+
8
+ exports.isWalletMethodSupported = isWalletMethodSupported;
@@ -0,0 +1,2 @@
1
+ import { WalletSchema } from '../schemas';
2
+ export declare const isWalletMethodSupported: (wallet: WalletSchema | undefined, method: string, platform: keyof NonNullable<WalletSchema['walletLimitations']>) => boolean;
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ const isWalletMethodSupported = (wallet, method, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedMethods) === null || _c === void 0 ? void 0 : _c.includes(method)); };
3
+
4
+ export { isWalletMethodSupported };
@@ -73,5 +73,15 @@ export declare const useWalletBookCdn: () => {
73
73
  sdks?: string[] | undefined;
74
74
  } | undefined;
75
75
  walletGroup?: string | undefined;
76
+ walletLimitations?: {
77
+ browserExtension?: {
78
+ unsupportedEvents?: string[] | undefined;
79
+ unsupportedMethods?: string[] | undefined;
80
+ } | undefined;
81
+ mobile?: {
82
+ unsupportedEvents?: string[] | undefined;
83
+ unsupportedMethods?: string[] | undefined;
84
+ } | undefined;
85
+ } | undefined;
76
86
  }>;
77
87
  };
package/src/index.cjs CHANGED
@@ -15,6 +15,8 @@ var findWalletGroup = require('./helpers/findWalletGroup.cjs');
15
15
  var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
16
16
  var getBrandIconUrl = require('./helpers/getBrandIconUrl.cjs');
17
17
  var findWalletGroupOverride = require('./helpers/findWalletGroupOverride.cjs');
18
+ var isWalletMethodSupported = require('./helpers/isWalletMethodSupported.cjs');
19
+ var isWalletEventSupported = require('./helpers/isWalletEventSupported.cjs');
18
20
  var useWalletBookCdn = require('./hooks/useWalletBookCdn.cjs');
19
21
  var useWalletBookContext = require('./hooks/useWalletBookContext.cjs');
20
22
  var WalletIcon = require('./components/WalletIcon.cjs');
@@ -33,6 +35,8 @@ exports.findWalletGroup = findWalletGroup.findWalletGroup;
33
35
  exports.getWalletBookCdnUrl = getWalletBookCdnUrl.getWalletBookCdnUrl;
34
36
  exports.getBrandIconUrl = getBrandIconUrl.getBrandIconUrl;
35
37
  exports.findWalletGroupOverride = findWalletGroupOverride.findWalletGroupOverride;
38
+ exports.isWalletMethodSupported = isWalletMethodSupported.isWalletMethodSupported;
39
+ exports.isWalletEventSupported = isWalletEventSupported.isWalletEventSupported;
36
40
  exports.useWalletBookCdn = useWalletBookCdn.useWalletBookCdn;
37
41
  exports.useWalletBookContext = useWalletBookContext.useWalletBookContext;
38
42
  exports.WalletIcon = WalletIcon.WalletIcon;
package/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, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, } from './helpers';
10
+ export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, isWalletMethodSupported, isWalletEventSupported, } from './helpers';
11
11
  /**
12
12
  * HOOKS
13
13
  */
package/src/index.js CHANGED
@@ -11,6 +11,8 @@ export { findWalletGroup } from './helpers/findWalletGroup.js';
11
11
  export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
12
12
  export { getBrandIconUrl } from './helpers/getBrandIconUrl.js';
13
13
  export { findWalletGroupOverride } from './helpers/findWalletGroupOverride.js';
14
+ export { isWalletMethodSupported } from './helpers/isWalletMethodSupported.js';
15
+ export { isWalletEventSupported } from './helpers/isWalletEventSupported.js';
14
16
  export { useWalletBookCdn } from './hooks/useWalletBookCdn.js';
15
17
  export { useWalletBookContext } from './hooks/useWalletBookContext.js';
16
18
  export { WalletIcon } from './components/WalletIcon.js';
@@ -190,6 +190,46 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
190
190
  sdks?: unknown;
191
191
  } | undefined>;
192
192
  walletGroup: z.ZodOptional<z.ZodString>;
193
+ walletLimitations: z.ZodOptional<z.ZodObject<{
194
+ browserExtension: z.ZodOptional<z.ZodObject<{
195
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
196
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ unsupportedEvents?: string[] | undefined;
199
+ unsupportedMethods?: string[] | undefined;
200
+ }, {
201
+ unsupportedEvents?: string[] | undefined;
202
+ unsupportedMethods?: string[] | undefined;
203
+ }>>;
204
+ mobile: z.ZodOptional<z.ZodObject<{
205
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
206
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ unsupportedEvents?: string[] | undefined;
209
+ unsupportedMethods?: string[] | undefined;
210
+ }, {
211
+ unsupportedEvents?: string[] | undefined;
212
+ unsupportedMethods?: string[] | undefined;
213
+ }>>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ browserExtension?: {
216
+ unsupportedEvents?: string[] | undefined;
217
+ unsupportedMethods?: string[] | undefined;
218
+ } | undefined;
219
+ mobile?: {
220
+ unsupportedEvents?: string[] | undefined;
221
+ unsupportedMethods?: string[] | undefined;
222
+ } | undefined;
223
+ }, {
224
+ browserExtension?: {
225
+ unsupportedEvents?: string[] | undefined;
226
+ unsupportedMethods?: string[] | undefined;
227
+ } | undefined;
228
+ mobile?: {
229
+ unsupportedEvents?: string[] | undefined;
230
+ unsupportedMethods?: string[] | undefined;
231
+ } | undefined;
232
+ }>>;
193
233
  }, "strip", z.ZodTypeAny, {
194
234
  name: string;
195
235
  brand?: {
@@ -247,6 +287,16 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
247
287
  sdks?: string[] | undefined;
248
288
  } | undefined;
249
289
  walletGroup?: string | undefined;
290
+ walletLimitations?: {
291
+ browserExtension?: {
292
+ unsupportedEvents?: string[] | undefined;
293
+ unsupportedMethods?: string[] | undefined;
294
+ } | undefined;
295
+ mobile?: {
296
+ unsupportedEvents?: string[] | undefined;
297
+ unsupportedMethods?: string[] | undefined;
298
+ } | undefined;
299
+ } | undefined;
250
300
  }, {
251
301
  name: string;
252
302
  brand?: {
@@ -304,6 +354,16 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
304
354
  sdks?: unknown;
305
355
  } | undefined;
306
356
  walletGroup?: string | undefined;
357
+ walletLimitations?: {
358
+ browserExtension?: {
359
+ unsupportedEvents?: string[] | undefined;
360
+ unsupportedMethods?: string[] | undefined;
361
+ } | undefined;
362
+ mobile?: {
363
+ unsupportedEvents?: string[] | undefined;
364
+ unsupportedMethods?: string[] | undefined;
365
+ } | undefined;
366
+ } | undefined;
307
367
  }>, {
308
368
  name: string;
309
369
  brand?: {
@@ -361,6 +421,16 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
361
421
  sdks?: string[] | undefined;
362
422
  } | undefined;
363
423
  walletGroup?: string | undefined;
424
+ walletLimitations?: {
425
+ browserExtension?: {
426
+ unsupportedEvents?: string[] | undefined;
427
+ unsupportedMethods?: string[] | undefined;
428
+ } | undefined;
429
+ mobile?: {
430
+ unsupportedEvents?: string[] | undefined;
431
+ unsupportedMethods?: string[] | undefined;
432
+ } | undefined;
433
+ } | undefined;
364
434
  }, unknown>, {
365
435
  name: string;
366
436
  brand?: {
@@ -418,6 +488,16 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
418
488
  sdks?: string[] | undefined;
419
489
  } | undefined;
420
490
  walletGroup?: string | undefined;
491
+ walletLimitations?: {
492
+ browserExtension?: {
493
+ unsupportedEvents?: string[] | undefined;
494
+ unsupportedMethods?: string[] | undefined;
495
+ } | undefined;
496
+ mobile?: {
497
+ unsupportedEvents?: string[] | undefined;
498
+ unsupportedMethods?: string[] | undefined;
499
+ } | undefined;
500
+ } | undefined;
421
501
  }, unknown>>;
422
502
  export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
423
503
  groups: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -690,6 +770,46 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
690
770
  sdks?: unknown;
691
771
  } | undefined>;
692
772
  walletGroup: z.ZodOptional<z.ZodString>;
773
+ walletLimitations: z.ZodOptional<z.ZodObject<{
774
+ browserExtension: z.ZodOptional<z.ZodObject<{
775
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
776
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ unsupportedEvents?: string[] | undefined;
779
+ unsupportedMethods?: string[] | undefined;
780
+ }, {
781
+ unsupportedEvents?: string[] | undefined;
782
+ unsupportedMethods?: string[] | undefined;
783
+ }>>;
784
+ mobile: z.ZodOptional<z.ZodObject<{
785
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
786
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
787
+ }, "strip", z.ZodTypeAny, {
788
+ unsupportedEvents?: string[] | undefined;
789
+ unsupportedMethods?: string[] | undefined;
790
+ }, {
791
+ unsupportedEvents?: string[] | undefined;
792
+ unsupportedMethods?: string[] | undefined;
793
+ }>>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ browserExtension?: {
796
+ unsupportedEvents?: string[] | undefined;
797
+ unsupportedMethods?: string[] | undefined;
798
+ } | undefined;
799
+ mobile?: {
800
+ unsupportedEvents?: string[] | undefined;
801
+ unsupportedMethods?: string[] | undefined;
802
+ } | undefined;
803
+ }, {
804
+ browserExtension?: {
805
+ unsupportedEvents?: string[] | undefined;
806
+ unsupportedMethods?: string[] | undefined;
807
+ } | undefined;
808
+ mobile?: {
809
+ unsupportedEvents?: string[] | undefined;
810
+ unsupportedMethods?: string[] | undefined;
811
+ } | undefined;
812
+ }>>;
693
813
  }, "strip", z.ZodTypeAny, {
694
814
  name: string;
695
815
  brand?: {
@@ -747,6 +867,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
747
867
  sdks?: string[] | undefined;
748
868
  } | undefined;
749
869
  walletGroup?: string | undefined;
870
+ walletLimitations?: {
871
+ browserExtension?: {
872
+ unsupportedEvents?: string[] | undefined;
873
+ unsupportedMethods?: string[] | undefined;
874
+ } | undefined;
875
+ mobile?: {
876
+ unsupportedEvents?: string[] | undefined;
877
+ unsupportedMethods?: string[] | undefined;
878
+ } | undefined;
879
+ } | undefined;
750
880
  }, {
751
881
  name: string;
752
882
  brand?: {
@@ -804,6 +934,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
804
934
  sdks?: unknown;
805
935
  } | undefined;
806
936
  walletGroup?: string | undefined;
937
+ walletLimitations?: {
938
+ browserExtension?: {
939
+ unsupportedEvents?: string[] | undefined;
940
+ unsupportedMethods?: string[] | undefined;
941
+ } | undefined;
942
+ mobile?: {
943
+ unsupportedEvents?: string[] | undefined;
944
+ unsupportedMethods?: string[] | undefined;
945
+ } | undefined;
946
+ } | undefined;
807
947
  }>, {
808
948
  name: string;
809
949
  brand?: {
@@ -861,6 +1001,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
861
1001
  sdks?: string[] | undefined;
862
1002
  } | undefined;
863
1003
  walletGroup?: string | undefined;
1004
+ walletLimitations?: {
1005
+ browserExtension?: {
1006
+ unsupportedEvents?: string[] | undefined;
1007
+ unsupportedMethods?: string[] | undefined;
1008
+ } | undefined;
1009
+ mobile?: {
1010
+ unsupportedEvents?: string[] | undefined;
1011
+ unsupportedMethods?: string[] | undefined;
1012
+ } | undefined;
1013
+ } | undefined;
864
1014
  }, unknown>, {
865
1015
  name: string;
866
1016
  brand?: {
@@ -918,6 +1068,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
918
1068
  sdks?: string[] | undefined;
919
1069
  } | undefined;
920
1070
  walletGroup?: string | undefined;
1071
+ walletLimitations?: {
1072
+ browserExtension?: {
1073
+ unsupportedEvents?: string[] | undefined;
1074
+ unsupportedMethods?: string[] | undefined;
1075
+ } | undefined;
1076
+ mobile?: {
1077
+ unsupportedEvents?: string[] | undefined;
1078
+ unsupportedMethods?: string[] | undefined;
1079
+ } | undefined;
1080
+ } | undefined;
921
1081
  }, unknown>>;
922
1082
  }, "strip", z.ZodTypeAny, {
923
1083
  groups: Record<string, {
@@ -994,6 +1154,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
994
1154
  sdks?: string[] | undefined;
995
1155
  } | undefined;
996
1156
  walletGroup?: string | undefined;
1157
+ walletLimitations?: {
1158
+ browserExtension?: {
1159
+ unsupportedEvents?: string[] | undefined;
1160
+ unsupportedMethods?: string[] | undefined;
1161
+ } | undefined;
1162
+ mobile?: {
1163
+ unsupportedEvents?: string[] | undefined;
1164
+ unsupportedMethods?: string[] | undefined;
1165
+ } | undefined;
1166
+ } | undefined;
997
1167
  }>;
998
1168
  }, {
999
1169
  groups: Record<string, {
@@ -1089,6 +1259,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1089
1259
  sdks?: string[] | undefined;
1090
1260
  } | undefined;
1091
1261
  walletGroup?: string | undefined;
1262
+ walletLimitations?: {
1263
+ browserExtension?: {
1264
+ unsupportedEvents?: string[] | undefined;
1265
+ unsupportedMethods?: string[] | undefined;
1266
+ } | undefined;
1267
+ mobile?: {
1268
+ unsupportedEvents?: string[] | undefined;
1269
+ unsupportedMethods?: string[] | undefined;
1270
+ } | undefined;
1271
+ } | undefined;
1092
1272
  }>;
1093
1273
  }, unknown>;
1094
1274
  export type WalletBookSchema = z.infer<typeof walletBookSchema>;
@@ -102,6 +102,25 @@ const walletSchema = zod.z
102
102
  .optional()
103
103
  .transform(filterEmptyObject.filterEmptyObject),
104
104
  walletGroup: zod.z.string().optional(),
105
+ /**
106
+ * Indicates which connector methods/events are not supported, keyed by wallet type
107
+ */
108
+ walletLimitations: zod.z
109
+ .object({
110
+ browserExtension: zod.z
111
+ .object({
112
+ unsupportedEvents: zod.z.array(zod.z.string()).optional(),
113
+ unsupportedMethods: zod.z.array(zod.z.string()).optional(),
114
+ })
115
+ .optional(),
116
+ mobile: zod.z
117
+ .object({
118
+ unsupportedEvents: zod.z.array(zod.z.string()).optional(),
119
+ unsupportedMethods: zod.z.array(zod.z.string()).optional(),
120
+ })
121
+ .optional(),
122
+ })
123
+ .optional(),
105
124
  }))
106
125
  .transform((val) => {
107
126
  var _a, _b, _c, _d, _e, _f;
@@ -291,6 +291,49 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
291
291
  sdks?: unknown;
292
292
  } | undefined>;
293
293
  walletGroup: z.ZodOptional<z.ZodString>;
294
+ /**
295
+ * Indicates which connector methods/events are not supported, keyed by wallet type
296
+ */
297
+ walletLimitations: z.ZodOptional<z.ZodObject<{
298
+ browserExtension: z.ZodOptional<z.ZodObject<{
299
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
300
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ unsupportedEvents?: string[] | undefined;
303
+ unsupportedMethods?: string[] | undefined;
304
+ }, {
305
+ unsupportedEvents?: string[] | undefined;
306
+ unsupportedMethods?: string[] | undefined;
307
+ }>>;
308
+ mobile: z.ZodOptional<z.ZodObject<{
309
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ unsupportedEvents?: string[] | undefined;
313
+ unsupportedMethods?: string[] | undefined;
314
+ }, {
315
+ unsupportedEvents?: string[] | undefined;
316
+ unsupportedMethods?: string[] | undefined;
317
+ }>>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ browserExtension?: {
320
+ unsupportedEvents?: string[] | undefined;
321
+ unsupportedMethods?: string[] | undefined;
322
+ } | undefined;
323
+ mobile?: {
324
+ unsupportedEvents?: string[] | undefined;
325
+ unsupportedMethods?: string[] | undefined;
326
+ } | undefined;
327
+ }, {
328
+ browserExtension?: {
329
+ unsupportedEvents?: string[] | undefined;
330
+ unsupportedMethods?: string[] | undefined;
331
+ } | undefined;
332
+ mobile?: {
333
+ unsupportedEvents?: string[] | undefined;
334
+ unsupportedMethods?: string[] | undefined;
335
+ } | undefined;
336
+ }>>;
294
337
  }, "strip", z.ZodTypeAny, {
295
338
  name: string;
296
339
  brand?: {
@@ -348,6 +391,16 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
348
391
  sdks?: string[] | undefined;
349
392
  } | undefined;
350
393
  walletGroup?: string | undefined;
394
+ walletLimitations?: {
395
+ browserExtension?: {
396
+ unsupportedEvents?: string[] | undefined;
397
+ unsupportedMethods?: string[] | undefined;
398
+ } | undefined;
399
+ mobile?: {
400
+ unsupportedEvents?: string[] | undefined;
401
+ unsupportedMethods?: string[] | undefined;
402
+ } | undefined;
403
+ } | undefined;
351
404
  }, {
352
405
  name: string;
353
406
  brand?: {
@@ -405,6 +458,16 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
405
458
  sdks?: unknown;
406
459
  } | undefined;
407
460
  walletGroup?: string | undefined;
461
+ walletLimitations?: {
462
+ browserExtension?: {
463
+ unsupportedEvents?: string[] | undefined;
464
+ unsupportedMethods?: string[] | undefined;
465
+ } | undefined;
466
+ mobile?: {
467
+ unsupportedEvents?: string[] | undefined;
468
+ unsupportedMethods?: string[] | undefined;
469
+ } | undefined;
470
+ } | undefined;
408
471
  }>, {
409
472
  name: string;
410
473
  brand?: {
@@ -462,6 +525,16 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
462
525
  sdks?: string[] | undefined;
463
526
  } | undefined;
464
527
  walletGroup?: string | undefined;
528
+ walletLimitations?: {
529
+ browserExtension?: {
530
+ unsupportedEvents?: string[] | undefined;
531
+ unsupportedMethods?: string[] | undefined;
532
+ } | undefined;
533
+ mobile?: {
534
+ unsupportedEvents?: string[] | undefined;
535
+ unsupportedMethods?: string[] | undefined;
536
+ } | undefined;
537
+ } | undefined;
465
538
  }, unknown>, {
466
539
  name: string;
467
540
  brand?: {
@@ -519,6 +592,16 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
519
592
  sdks?: string[] | undefined;
520
593
  } | undefined;
521
594
  walletGroup?: string | undefined;
595
+ walletLimitations?: {
596
+ browserExtension?: {
597
+ unsupportedEvents?: string[] | undefined;
598
+ unsupportedMethods?: string[] | undefined;
599
+ } | undefined;
600
+ mobile?: {
601
+ unsupportedEvents?: string[] | undefined;
602
+ unsupportedMethods?: string[] | undefined;
603
+ } | undefined;
604
+ } | undefined;
522
605
  }, unknown>;
523
606
  export type WalletSchema = z.infer<typeof walletSchema>;
524
607
  export type WalletInjectedConfigSchema = z.infer<typeof injectedConfigSchema>;
@@ -98,6 +98,25 @@ const walletSchema = z
98
98
  .optional()
99
99
  .transform(filterEmptyObject),
100
100
  walletGroup: z.string().optional(),
101
+ /**
102
+ * Indicates which connector methods/events are not supported, keyed by wallet type
103
+ */
104
+ walletLimitations: z
105
+ .object({
106
+ browserExtension: z
107
+ .object({
108
+ unsupportedEvents: z.array(z.string()).optional(),
109
+ unsupportedMethods: z.array(z.string()).optional(),
110
+ })
111
+ .optional(),
112
+ mobile: z
113
+ .object({
114
+ unsupportedEvents: z.array(z.string()).optional(),
115
+ unsupportedMethods: z.array(z.string()).optional(),
116
+ })
117
+ .optional(),
118
+ })
119
+ .optional(),
101
120
  }))
102
121
  .transform((val) => {
103
122
  var _a, _b, _c, _d, _e, _f;