@dynamic-labs/wallet-book 2.0.0-alpha.22 → 2.0.0-alpha.24

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,57 @@
1
1
 
2
+ ## [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)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename otp verification callbacks (#5180)
8
+ * remove deprecated isVerificationInProgress flag and setter (#5089)
9
+
10
+ ### Features
11
+
12
+ * 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))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 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))
18
+ * bug when phone input is empty ([#5139](https://github.com/dynamic-labs/DynamicAuth/issues/5139)) ([7155b63](https://github.com/dynamic-labs/DynamicAuth/commit/7155b63518d00ba807bc321c6740b341d0a8b82f))
19
+ * 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))
20
+ * link farcaster account ([#5170](https://github.com/dynamic-labs/DynamicAuth/issues/5170)) ([10fe272](https://github.com/dynamic-labs/DynamicAuth/commit/10fe272247605b5f09385f063231e2c881399cc8))
21
+ * 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))
22
+ * 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))
23
+
24
+
25
+ * remove deprecated isVerificationInProgress flag and setter ([#5089](https://github.com/dynamic-labs/DynamicAuth/issues/5089)) ([060fef7](https://github.com/dynamic-labs/DynamicAuth/commit/060fef70df0c497e7a9b6e67ad0bfafef52c2bbb))
26
+ * rename otp verification callbacks ([#5180](https://github.com/dynamic-labs/DynamicAuth/issues/5180)) ([a580eec](https://github.com/dynamic-labs/DynamicAuth/commit/a580eec02d15b46a25c01d5473e4db2db89937e2))
27
+
28
+ ## [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)
29
+
30
+
31
+ ### ⚠ BREAKING CHANGES
32
+
33
+ * implement proper solana embedded wallet signer (#5092)
34
+ * prevent adding temporary wallet connection to userWallets (#5104)
35
+
36
+ ### Bug Fixes
37
+
38
+ * Multiple WC bug fixes ([#5142](https://github.com/dynamic-labs/DynamicAuth/issues/5142)) ([92236e6](https://github.com/dynamic-labs/DynamicAuth/commit/92236e6d74c28516403f6df79c539406ece3d6d0)) ([#5132](https://github.com/dynamic-labs/DynamicAuth/issues/5132)) ([99f564a](https://github.com/dynamic-labs/DynamicAuth/commit/99f564a39e35e28af0be2a03617f12aa19cbeb7f))
39
+
40
+ * Better handling of empty callback queue([#5147](https://github.com/dynamic-labs/DynamicAuth/issues/5147)) ([e2d6bf2](https://github.com/dynamic-labs/DynamicAuth/commit/e2d6bf2444ca01199796ead4136f34b81b6c9b61))
41
+
42
+ * multiple improvements to the wallet list ([#5112](https://github.com/dynamic-labs/DynamicAuth/issues/5112)) ([00eec5f](https://github.com/dynamic-labs/DynamicAuth/commit/00eec5fde70548c3d771260f3d86e5365e73878d))
43
+
44
+ * Improved scroll experience on ios ([#5152](https://github.com/dynamic-labs/DynamicAuth/issues/5152)) ([341704f](https://github.com/dynamic-labs/DynamicAuth/commit/341704f99cb6e06f253309f3a8afb1684bb8ae2a))
45
+
46
+ * better handling of multiwallet state([#5146](https://github.com/dynamic-labs/DynamicAuth/issues/5146)) ([403267b](https://github.com/dynamic-labs/DynamicAuth/commit/403267b3c268d648aba155e0b6fea31d7fdc1b56))
47
+
48
+ * show correct OTP error message ([#5135](https://github.com/dynamic-labs/DynamicAuth/issues/5135)) ([e7494ce](https://github.com/dynamic-labs/DynamicAuth/commit/e7494cee4a1b5132af91058cbcb2dae0b7eac44b))
49
+
50
+ * implement proper solana embedded wallet signer ([#5092](https://github.com/dynamic-labs/DynamicAuth/issues/5092)) ([7749b97](https://github.com/dynamic-labs/DynamicAuth/commit/7749b97db49fb9af8ae0668172f478e1f0c29665))
51
+
52
+ * prevent adding temporary wallet connection to userWallets ([#5104](https://github.com/dynamic-labs/DynamicAuth/issues/5104)) ([3c02b78](https://github.com/dynamic-labs/DynamicAuth/commit/3c02b781c997c63ff11a7f1c255b92d10962327f))
53
+
54
+
2
55
  ## [2.0.0-alpha.22](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2024-03-27)
3
56
 
4
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.0.0-alpha.22",
3
+ "version": "2.0.0-alpha.24",
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.22",
30
- "@dynamic-labs/logger": "2.0.0-alpha.22",
31
- "@dynamic-labs/utils": "2.0.0-alpha.22",
29
+ "@dynamic-labs/iconic": "2.0.0-alpha.24",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.24",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.24",
32
32
  "util": "0.12.5"
33
33
  },
34
34
  "peerDependencies": {
@@ -1,12 +1,4 @@
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
- };
10
2
  name: string;
11
3
  chains: string[];
12
4
  desktop: {
@@ -36,6 +28,7 @@ export declare const walletConnectSourceData: Record<string, {
36
28
  category: string | null;
37
29
  description: string | null;
38
30
  homepage: string;
31
+ id: string;
39
32
  image_id: string;
40
33
  image_url: {
41
34
  lg: string;
@@ -46,15 +39,22 @@ export declare const walletConnectSourceData: Record<string, {
46
39
  injected_id: string;
47
40
  namespace: string;
48
41
  }[] | 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
- title: string;
55
- url: string;
56
54
  standard_id: number;
57
55
  standard_prefix: string;
56
+ title: string;
57
+ url: string;
58
58
  }[] | undefined;
59
59
  }>;
60
60
  export declare const walletConnectTransformedData: Promise<Record<string, {
@@ -1,147 +1,5 @@
1
1
  export declare const WALLET_CONNECT_ENTRIES_TO_REMOVE: string[];
2
- export declare const applyOverrides: (sourceData: any, overrides?: {
3
- cryptocom: {
4
- eip6963Config: {
5
- action: string;
6
- value: {
7
- rdns: string;
8
- };
9
- };
10
- mobile: {
11
- action: string;
12
- value: null;
13
- };
14
- };
15
- exodus: {
16
- group: {
17
- action: string;
18
- value: string;
19
- };
20
- };
21
- exodusevm: {
22
- chains: {
23
- action: string;
24
- value: string[];
25
- };
26
- mobile: {
27
- action: string;
28
- value: {
29
- androidId: string;
30
- iosId: string;
31
- native: string;
32
- };
33
- };
34
- walletConnect: {
35
- action: string;
36
- value: {
37
- sdks: string[];
38
- };
39
- };
40
- };
41
- ledger: {
42
- mobile: {
43
- action: string;
44
- value: {
45
- androidId: string;
46
- iosId: string;
47
- native: string;
48
- universal: string;
49
- };
50
- };
51
- switchNetworkOnlyFromWallet: {
52
- action: string;
53
- value: boolean;
54
- };
55
- };
56
- metamask: {
57
- walletConnect: {
58
- sdks: {
59
- action: string;
60
- value: string[];
61
- };
62
- };
63
- };
64
- okxwallet: {
65
- desktop: {
66
- action: string;
67
- value: {
68
- chromeId: string;
69
- };
70
- };
71
- walletConnect: {
72
- sdks: {
73
- action: string;
74
- value: string[];
75
- };
76
- };
77
- };
78
- rainbow: {
79
- brand: {
80
- spriteId: {
81
- action: string;
82
- value: string;
83
- };
84
- };
85
- };
86
- safe: {
87
- mobile: {
88
- native: {
89
- action: string;
90
- value: null;
91
- };
92
- universal: {
93
- action: string;
94
- value: null;
95
- };
96
- };
97
- };
98
- safepal: {
99
- eip6963Config: {
100
- action: string;
101
- value: {
102
- rdns: string;
103
- };
104
- };
105
- switchNetworkOnlyFromWallet: {
106
- action: string;
107
- value: boolean;
108
- };
109
- };
110
- sequence: {
111
- eip6963Config: {
112
- action: string;
113
- value: {
114
- rdns: string;
115
- };
116
- };
117
- };
118
- trust: {
119
- chains: {
120
- action: string;
121
- value: string[];
122
- };
123
- };
124
- zengo: {
125
- brand: {
126
- primaryColor: {
127
- action: string;
128
- value: string;
129
- };
130
- spriteId: {
131
- action: string;
132
- value: string;
133
- };
134
- };
135
- };
136
- zerion: {
137
- brand: {
138
- primaryColor: {
139
- action: string;
140
- value: string;
141
- };
142
- };
143
- };
144
- }) => void;
2
+ export declare const applyOverrides: (sourceData: any, overrides?: any) => void;
145
3
  export declare const walletConnectOverrides: {
146
4
  cryptocom: {
147
5
  eip6963Config: {
@@ -264,6 +122,10 @@ export declare const walletConnectOverrides: {
264
122
  value: string[];
265
123
  };
266
124
  };
125
+ wallet: {
126
+ action: string;
127
+ value: string;
128
+ };
267
129
  zengo: {
268
130
  brand: {
269
131
  primaryColor: {
@@ -713,7 +713,7 @@ var wallets = {
713
713
  "eip155:137",
714
714
  "eip155:43114",
715
715
  "eip155:56",
716
- "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
716
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
717
717
  ],
718
718
  desktop: {
719
719
  chromeId: "aholpfdialjgjfhomihkjbmgjidlcdno"
@@ -870,12 +870,17 @@ var wallets = {
870
870
  spriteId: "backpack"
871
871
  },
872
872
  chainGroup: "backpack",
873
+ chains: [
874
+ "eip155:1",
875
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
876
+ ],
873
877
  desktop: {
874
878
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
875
879
  },
876
880
  eip6963Config: {
877
881
  rdns: "app.backpack"
878
882
  },
883
+ filterFromWalletConnect: true,
879
884
  group: "backpack",
880
885
  injectedConfig: [
881
886
  {
@@ -890,7 +895,12 @@ var wallets = {
890
895
  ]
891
896
  }
892
897
  ],
893
- name: "Backpack"
898
+ name: "Backpack",
899
+ walletConnect: {
900
+ sdks: [
901
+ "sign_v1"
902
+ ]
903
+ }
894
904
  },
895
905
  okxwalletbtc: {
896
906
  brand: {
@@ -709,7 +709,7 @@ var wallets = {
709
709
  "eip155:137",
710
710
  "eip155:43114",
711
711
  "eip155:56",
712
- "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
712
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
713
713
  ],
714
714
  desktop: {
715
715
  chromeId: "aholpfdialjgjfhomihkjbmgjidlcdno"
@@ -866,12 +866,17 @@ var wallets = {
866
866
  spriteId: "backpack"
867
867
  },
868
868
  chainGroup: "backpack",
869
+ chains: [
870
+ "eip155:1",
871
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
872
+ ],
869
873
  desktop: {
870
874
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
871
875
  },
872
876
  eip6963Config: {
873
877
  rdns: "app.backpack"
874
878
  },
879
+ filterFromWalletConnect: true,
875
880
  group: "backpack",
876
881
  injectedConfig: [
877
882
  {
@@ -886,7 +891,12 @@ var wallets = {
886
891
  ]
887
892
  }
888
893
  ],
889
- name: "Backpack"
894
+ name: "Backpack",
895
+ walletConnect: {
896
+ sdks: [
897
+ "sign_v1"
898
+ ]
899
+ }
890
900
  },
891
901
  okxwalletbtc: {
892
902
  brand: {