@dynamic-labs/wallet-book 2.0.0-alpha.23 → 2.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 CHANGED
@@ -1,4 +1,37 @@
1
1
 
2
+ ## [2.0.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.24...v2.0.0-alpha.25) (2024-04-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * add in-app browser deeplink for metamask ([#5176](https://github.com/dynamic-labs/DynamicAuth/issues/5176)) ([02ce607](https://github.com/dynamic-labs/DynamicAuth/commit/02ce6077ed0deeaefc7a62ee91ff72f5bce2b327)), closes [#5123](https://github.com/dynamic-labs/DynamicAuth/issues/5123)
8
+
9
+ ## [2.0.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.23...v2.0.0-alpha.24) (2024-04-03)
10
+
11
+
12
+ ### ⚠ BREAKING CHANGES
13
+
14
+ * rename otp verification callbacks (#5180)
15
+ * remove deprecated isVerificationInProgress flag and setter (#5089)
16
+
17
+ ### Features
18
+
19
+ * allow creating embedded wallets even if user signs in with a wallet ([#5093](https://github.com/dynamic-labs/DynamicAuth/issues/5093)) ([ba2dd62](https://github.com/dynamic-labs/DynamicAuth/commit/ba2dd625e0a7bf35018cf8aac8e80bd23b4e3b0f))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * api unit test by removing api and sdk versions for assertion ([#5168](https://github.com/dynamic-labs/DynamicAuth/issues/5168)) ([6d3b8ad](https://github.com/dynamic-labs/DynamicAuth/commit/6d3b8adebe62a4f2a7878630384348b2c491d779))
25
+ * bug when phone input is empty ([#5139](https://github.com/dynamic-labs/DynamicAuth/issues/5139)) ([7155b63](https://github.com/dynamic-labs/DynamicAuth/commit/7155b63518d00ba807bc321c6740b341d0a8b82f))
26
+ * clear error message on otp resend for sms ([#5182](https://github.com/dynamic-labs/DynamicAuth/issues/5182)) ([f40b48c](https://github.com/dynamic-labs/DynamicAuth/commit/f40b48c7f58c8e3dfe73fb124d642c3b8f193cee))
27
+ * link farcaster account ([#5170](https://github.com/dynamic-labs/DynamicAuth/issues/5170)) ([10fe272](https://github.com/dynamic-labs/DynamicAuth/commit/10fe272247605b5f09385f063231e2c881399cc8))
28
+ * show correct otp message for sms verification failure ([#5177](https://github.com/dynamic-labs/DynamicAuth/issues/5177)) ([b3bcd76](https://github.com/dynamic-labs/DynamicAuth/commit/b3bcd7694047dac55ce37babb71684a418633f95))
29
+ * update wagmi connector id when wallet connector changes ([#5185](https://github.com/dynamic-labs/DynamicAuth/issues/5185)) ([14fb83a](https://github.com/dynamic-labs/DynamicAuth/commit/14fb83a22c8e39095b79cc9951cae3f00f4fca2f))
30
+
31
+
32
+ * remove deprecated isVerificationInProgress flag and setter ([#5089](https://github.com/dynamic-labs/DynamicAuth/issues/5089)) ([060fef7](https://github.com/dynamic-labs/DynamicAuth/commit/060fef70df0c497e7a9b6e67ad0bfafef52c2bbb))
33
+ * rename otp verification callbacks ([#5180](https://github.com/dynamic-labs/DynamicAuth/issues/5180)) ([a580eec](https://github.com/dynamic-labs/DynamicAuth/commit/a580eec02d15b46a25c01d5473e4db2db89937e2))
34
+
2
35
  ## [2.0.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.22...v2.0.0-alpha.23) (2024-04-01)
3
36
 
4
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.0.0-alpha.23",
3
+ "version": "2.0.0-alpha.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/iconic": "2.0.0-alpha.23",
30
- "@dynamic-labs/logger": "2.0.0-alpha.23",
31
- "@dynamic-labs/utils": "2.0.0-alpha.23",
29
+ "@dynamic-labs/iconic": "2.0.0-alpha.25",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.25",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.25",
32
32
  "util": "0.12.5"
33
33
  },
34
34
  "peerDependencies": {
@@ -45,6 +45,7 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
45
45
  mobile?: {
46
46
  android?: string | null | undefined;
47
47
  androidId?: string | undefined;
48
+ inAppBrowser?: string | null | undefined;
48
49
  ios?: string | null | undefined;
49
50
  iosId?: string | undefined;
50
51
  native?: string | undefined;
@@ -97,6 +97,7 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
97
97
  mobile?: {
98
98
  android?: string | null | undefined;
99
99
  androidId?: string | undefined;
100
+ inAppBrowser?: string | null | undefined;
100
101
  ios?: string | null | undefined;
101
102
  iosId?: string | undefined;
102
103
  native?: string | undefined;
@@ -79,6 +79,7 @@ const walletSchema = zod.z
79
79
  .object({
80
80
  android: zod.string().nullish(),
81
81
  androidId: nonEmptyString.nonEmptyString.transform(transformAndroidId.transformAndroidId),
82
+ inAppBrowser: zod.string().nullish(),
82
83
  ios: zod.string().nullish(),
83
84
  iosId: nonEmptyString.nonEmptyString.transform(transformIosId.transformIosId),
84
85
  native: nonEmptyString.nonEmptyString,
@@ -201,6 +201,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
201
201
  mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
202
202
  android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
203
  androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
204
+ inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
205
  ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
206
  iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
206
207
  native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
@@ -208,6 +209,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
208
209
  }, "strip", z.ZodTypeAny, {
209
210
  android?: string | null | undefined;
210
211
  androidId?: string | undefined;
212
+ inAppBrowser?: string | null | undefined;
211
213
  ios?: string | null | undefined;
212
214
  iosId?: string | undefined;
213
215
  native?: string | undefined;
@@ -215,6 +217,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
215
217
  }, {
216
218
  android?: string | null | undefined;
217
219
  androidId?: unknown;
220
+ inAppBrowser?: string | null | undefined;
218
221
  ios?: string | null | undefined;
219
222
  iosId?: unknown;
220
223
  native?: unknown;
@@ -222,6 +225,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
222
225
  }>>, {
223
226
  android?: string | null | undefined;
224
227
  androidId?: string | undefined;
228
+ inAppBrowser?: string | null | undefined;
225
229
  ios?: string | null | undefined;
226
230
  iosId?: string | undefined;
227
231
  native?: string | undefined;
@@ -229,6 +233,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
229
233
  } | undefined, {
230
234
  android?: string | null | undefined;
231
235
  androidId?: unknown;
236
+ inAppBrowser?: string | null | undefined;
232
237
  ios?: string | null | undefined;
233
238
  iosId?: unknown;
234
239
  native?: unknown;
@@ -290,6 +295,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
290
295
  mobile?: {
291
296
  android?: string | null | undefined;
292
297
  androidId?: string | undefined;
298
+ inAppBrowser?: string | null | undefined;
293
299
  ios?: string | null | undefined;
294
300
  iosId?: string | undefined;
295
301
  native?: string | undefined;
@@ -342,6 +348,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
342
348
  mobile?: {
343
349
  android?: string | null | undefined;
344
350
  androidId?: unknown;
351
+ inAppBrowser?: string | null | undefined;
345
352
  ios?: string | null | undefined;
346
353
  iosId?: unknown;
347
354
  native?: unknown;
@@ -394,6 +401,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
394
401
  mobile?: {
395
402
  android?: string | null | undefined;
396
403
  androidId?: string | undefined;
404
+ inAppBrowser?: string | null | undefined;
397
405
  ios?: string | null | undefined;
398
406
  iosId?: string | undefined;
399
407
  native?: string | undefined;
@@ -446,6 +454,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
446
454
  mobile?: {
447
455
  android?: string | null | undefined;
448
456
  androidId?: string | undefined;
457
+ inAppBrowser?: string | null | undefined;
449
458
  ios?: string | null | undefined;
450
459
  iosId?: string | undefined;
451
460
  native?: string | undefined;
@@ -75,6 +75,7 @@ const walletSchema = z
75
75
  .object({
76
76
  android: string().nullish(),
77
77
  androidId: nonEmptyString.transform(transformAndroidId),
78
+ inAppBrowser: string().nullish(),
78
79
  ios: string().nullish(),
79
80
  iosId: nonEmptyString.transform(transformIosId),
80
81
  native: nonEmptyString,
@@ -173,6 +173,7 @@ var wallets = {
173
173
  ],
174
174
  mobile: {
175
175
  androidId: "io.metamask",
176
+ inAppBrowser: "https://metamask.app.link/dapp",
176
177
  iosId: "id1438144202",
177
178
  native: "metamask://wc",
178
179
  universal: "https://metamask.app.link/wc"
@@ -713,7 +714,7 @@ var wallets = {
713
714
  "eip155:137",
714
715
  "eip155:43114",
715
716
  "eip155:56",
716
- "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
717
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
717
718
  ],
718
719
  desktop: {
719
720
  chromeId: "aholpfdialjgjfhomihkjbmgjidlcdno"
@@ -870,12 +871,17 @@ var wallets = {
870
871
  spriteId: "backpack"
871
872
  },
872
873
  chainGroup: "backpack",
874
+ chains: [
875
+ "eip155:1",
876
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
877
+ ],
873
878
  desktop: {
874
879
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
875
880
  },
876
881
  eip6963Config: {
877
882
  rdns: "app.backpack"
878
883
  },
884
+ filterFromWalletConnect: true,
879
885
  group: "backpack",
880
886
  injectedConfig: [
881
887
  {
@@ -890,7 +896,12 @@ var wallets = {
890
896
  ]
891
897
  }
892
898
  ],
893
- name: "Backpack"
899
+ name: "Backpack",
900
+ walletConnect: {
901
+ sdks: [
902
+ "sign_v1"
903
+ ]
904
+ }
894
905
  },
895
906
  okxwalletbtc: {
896
907
  brand: {
@@ -169,6 +169,7 @@ var wallets = {
169
169
  ],
170
170
  mobile: {
171
171
  androidId: "io.metamask",
172
+ inAppBrowser: "https://metamask.app.link/dapp",
172
173
  iosId: "id1438144202",
173
174
  native: "metamask://wc",
174
175
  universal: "https://metamask.app.link/wc"
@@ -709,7 +710,7 @@ var wallets = {
709
710
  "eip155:137",
710
711
  "eip155:43114",
711
712
  "eip155:56",
712
- "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
713
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
713
714
  ],
714
715
  desktop: {
715
716
  chromeId: "aholpfdialjgjfhomihkjbmgjidlcdno"
@@ -866,12 +867,17 @@ var wallets = {
866
867
  spriteId: "backpack"
867
868
  },
868
869
  chainGroup: "backpack",
870
+ chains: [
871
+ "eip155:1",
872
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
873
+ ],
869
874
  desktop: {
870
875
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
871
876
  },
872
877
  eip6963Config: {
873
878
  rdns: "app.backpack"
874
879
  },
880
+ filterFromWalletConnect: true,
875
881
  group: "backpack",
876
882
  injectedConfig: [
877
883
  {
@@ -886,7 +892,12 @@ var wallets = {
886
892
  ]
887
893
  }
888
894
  ],
889
- name: "Backpack"
895
+ name: "Backpack",
896
+ walletConnect: {
897
+ sdks: [
898
+ "sign_v1"
899
+ ]
900
+ }
890
901
  },
891
902
  okxwalletbtc: {
892
903
  brand: {