@dynamic-labs/wallet-book 0.19.0-alpha.1 → 0.19.0-alpha.2

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,51 @@
1
1
 
2
+ ## [0.19.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.1...v0.19.0-alpha.2) (2023-08-21)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * useSocialAccounts: error type changed from string to SocialOAuthError:
8
+ export type SocialOAuthError = {
9
+ code: SocialOAuthErrorCode;
10
+ message: string;
11
+ };
12
+
13
+ ### Features
14
+
15
+ * add ErrorPage when user tries to transfer the last wallet out account when preventOrphanedAccounts is true ([#2919](https://github.com/dynamic-labs/DynamicAuth/issues/2919)) ([7144211](https://github.com/dynamic-labs/DynamicAuth/commit/71442116851ddb22911b7809b45f9c3a49989fdf)), closes [#2924](https://github.com/dynamic-labs/DynamicAuth/issues/2924) [#2956](https://github.com/dynamic-labs/DynamicAuth/issues/2956) [#2960](https://github.com/dynamic-labs/DynamicAuth/issues/2960)
16
+ * add onEmailVerificationX callbacks ([#2859](https://github.com/dynamic-labs/DynamicAuth/issues/2859)) ([1c1c66d](https://github.com/dynamic-labs/DynamicAuth/commit/1c1c66dc47fb1966a2ef8102957dd06b42c9f7dc))
17
+ * add UserFieldEditorView component ([#2873](https://github.com/dynamic-labs/DynamicAuth/issues/2873)) ([7a6d1d7](https://github.com/dynamic-labs/DynamicAuth/commit/7a6d1d7057422e4ff5f4efebbf8f08eb7398c51d))
18
+ * e2e refresh on unsupported network ([#2915](https://github.com/dynamic-labs/DynamicAuth/issues/2915)) ([8504c73](https://github.com/dynamic-labs/DynamicAuth/commit/8504c73d75a057c695fe86b25d8bf42ff071efb4))
19
+ * introduces updateUserWithModal ([#2972](https://github.com/dynamic-labs/DynamicAuth/issues/2972)) ([883f500](https://github.com/dynamic-labs/DynamicAuth/commit/883f500f35e5db9dcaf073e049f67672e0115670))
20
+ * update wallet locked view ([#2892](https://github.com/dynamic-labs/DynamicAuth/issues/2892)) ([e3aaaca](https://github.com/dynamic-labs/DynamicAuth/commit/e3aaaca50c6335498b9e3938674b37524a001b49))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * input's css hiding submit button and label on autocomplete ([#2916](https://github.com/dynamic-labs/DynamicAuth/issues/2916)) ([d07acfc](https://github.com/dynamic-labs/DynamicAuth/commit/d07acfc627dd72fea690c0492190c995be9e6b2c))
26
+ * always enable magic connectors when enabled ([#3014](https://github.com/dynamic-labs/DynamicAuth/issues/3014)) ([ce33b43](https://github.com/dynamic-labs/DynamicAuth/commit/ce33b4336397d5d77863ce32746dc4e975d16f6a))
27
+ * **captcha:** complete sign in with magic and blocto ([#2967](https://github.com/dynamic-labs/DynamicAuth/issues/2967)) ([07e4cf7](https://github.com/dynamic-labs/DynamicAuth/commit/07e4cf7d3f8158e04ed6f78d1cc11b499da50eea))
28
+ * ensure social sign in embedded wallets sync correctly with wagmi ([#3043](https://github.com/dynamic-labs/DynamicAuth/issues/3043)) ([e139d38](https://github.com/dynamic-labs/DynamicAuth/commit/e139d38056bc2f20adbeff458ff6a9731e44a677))
29
+ * fix twitter linking ([#2918](https://github.com/dynamic-labs/DynamicAuth/issues/2918)) ([1511924](https://github.com/dynamic-labs/DynamicAuth/commit/1511924c89bb3bc12a290695a43f5db9e7d475f4))
30
+ * guard against null or undefined provider value when logging in with magic ([#3021](https://github.com/dynamic-labs/DynamicAuth/issues/3021)) ([7c1580a](https://github.com/dynamic-labs/DynamicAuth/commit/7c1580a782f0d6b30931a7f9c84f96416a7236cf))
31
+ * **GVTY-195:** issues with mergeUserAccountsView ([#2943](https://github.com/dynamic-labs/DynamicAuth/issues/2943)) ([b290132](https://github.com/dynamic-labs/DynamicAuth/commit/b29013269df539b4901f1f5fc688905f0f50548e))
32
+ * issue where walletconnectors are instantiated without walletbook ([#3020](https://github.com/dynamic-labs/DynamicAuth/issues/3020)) ([bb91c24](https://github.com/dynamic-labs/DynamicAuth/commit/bb91c24d4f03966f96c960eb04891846807ed49d))
33
+ * **Magic:** improve gas estimate for transactions ([#2929](https://github.com/dynamic-labs/DynamicAuth/issues/2929)) ([13dcb7a](https://github.com/dynamic-labs/DynamicAuth/commit/13dcb7a40a75e088fea81d51865dddf5391bcf83))
34
+ * missing enable isVerificationInProgress ([#2893](https://github.com/dynamic-labs/DynamicAuth/issues/2893)) ([bcd76a5](https://github.com/dynamic-labs/DynamicAuth/commit/bcd76a5b55f9e85872ff3dd9f5353b39ca47053b))
35
+ * **networks:** merge custom network after API networks ([#2925](https://github.com/dynamic-labs/DynamicAuth/issues/2925)) ([c2f53ca](https://github.com/dynamic-labs/DynamicAuth/commit/c2f53ca9ee3485ed26be4e7d7d255dbdb5a952d4))
36
+ * onBeforeConnectSuccessConfirmation is being called multiple times on network change ([#2917](https://github.com/dynamic-labs/DynamicAuth/issues/2917)) ([f873ca4](https://github.com/dynamic-labs/DynamicAuth/commit/f873ca47118796f277e37f5decf810503ee740bd))
37
+ * only use the production api environment of magicLink ([#3022](https://github.com/dynamic-labs/DynamicAuth/issues/3022)) ([cd86753](https://github.com/dynamic-labs/DynamicAuth/commit/cd867534262b8f77f5fa37344182181a7ea8d3c2))
38
+ * **QNTM-249:** broken email update when user is authenticated ([#2931](https://github.com/dynamic-labs/DynamicAuth/issues/2931)) ([5471ab1](https://github.com/dynamic-labs/DynamicAuth/commit/5471ab1b51f9bffdf1e36e1c2fac1fb9af06a067))
39
+ * reformat social sign-in text ([#2956](https://github.com/dynamic-labs/DynamicAuth/issues/2956)) ([0e149db](https://github.com/dynamic-labs/DynamicAuth/commit/0e149db5b661347145928f4de6ce932604ed7184))
40
+ * remove unused provider variable from OKX.spec.ts ([#2959](https://github.com/dynamic-labs/DynamicAuth/issues/2959)) ([6bc9d4d](https://github.com/dynamic-labs/DynamicAuth/commit/6bc9d4d51795ff46779650d929d8e0df3179e0b1))
41
+ * set error if user closes oauth window or if it times out ([#3050](https://github.com/dynamic-labs/DynamicAuth/issues/3050)) ([ef2b189](https://github.com/dynamic-labs/DynamicAuth/commit/ef2b189cbf650bf82382e538e7ce653fb677a22f))
42
+ * switching network in connected state should update wallets to connect list ([#2989](https://github.com/dynamic-labs/DynamicAuth/issues/2989)) ([f0553fd](https://github.com/dynamic-labs/DynamicAuth/commit/f0553fd24c27204e9ec7b7c12d6589ce92910553))
43
+ * sync wagmi correctly in connect-only mode ([#2990](https://github.com/dynamic-labs/DynamicAuth/issues/2990)) ([d15b6d5](https://github.com/dynamic-labs/DynamicAuth/commit/d15b6d5eb7349e872138d4394a1a155fdb67e6b4))
44
+ * **transactions:** send transaction with auto nonce ([#3049](https://github.com/dynamic-labs/DynamicAuth/issues/3049)) ([769cdce](https://github.com/dynamic-labs/DynamicAuth/commit/769cdce50fba786c94ac139fc031073513bbec3a))
45
+ * use ETH currency symbol for STARK chains ([#3005](https://github.com/dynamic-labs/DynamicAuth/issues/3005)) ([a43f184](https://github.com/dynamic-labs/DynamicAuth/commit/a43f184121463844a0934189290c8251db36d3dc))
46
+ * useSyncPrimaryWallet overrides views with "wallet-locked-view" ([#2861](https://github.com/dynamic-labs/DynamicAuth/issues/2861)) ([a21d9e4](https://github.com/dynamic-labs/DynamicAuth/commit/a21d9e42a900201b8f4039038ced50d59c763e8a))
47
+ * **wallet-list:** update key to distinguish wallet and wallet group ([#2909](https://github.com/dynamic-labs/DynamicAuth/issues/2909)) ([ce5055f](https://github.com/dynamic-labs/DynamicAuth/commit/ce5055febab9b8a479505d3f21b1cdf2b5091fd7))
48
+
2
49
  ## [0.19.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.0...v0.19.0-alpha.1) (2023-08-10)
3
50
 
4
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "0.19.0-alpha.1",
3
+ "version": "0.19.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.21.4",
29
- "@dynamic-labs/logger": "0.19.0-alpha.1"
29
+ "@dynamic-labs/logger": "0.19.0-alpha.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^17.0.2 || ^18.0.0",
@@ -10,6 +10,13 @@ export declare const walletConnectSourceData: Record<string, {
10
10
  universal: string | null;
11
11
  };
12
12
  sdks: string[];
13
+ metadata: {
14
+ shortName: string | null;
15
+ colors: {
16
+ primary: string | null;
17
+ secondary: string | null;
18
+ };
19
+ };
13
20
  app: {
14
21
  android: string | null;
15
22
  ios: string | null;
@@ -37,19 +44,12 @@ export declare const walletConnectSourceData: Record<string, {
37
44
  injected_id: string;
38
45
  namespace: string;
39
46
  }[] | null;
40
- metadata: {
41
- shortName: string | null;
42
- colors: {
43
- primary: string | null;
44
- secondary: string | null;
45
- };
46
- };
47
47
  slug: string;
48
48
  supported_standards: {
49
+ title: string;
49
50
  id: string;
50
51
  standard_id: number;
51
52
  standard_prefix: string;
52
- title: string;
53
53
  url: string;
54
54
  }[];
55
55
  updatedAt: string;
@@ -14,6 +14,12 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
14
14
  };
15
15
  };
16
16
  };
17
+ exodus: {
18
+ group: {
19
+ action: string;
20
+ value: string;
21
+ };
22
+ };
17
23
  ledger: {
18
24
  switchNetworkOnlyFromWallet: {
19
25
  action: string;
@@ -42,6 +48,20 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
42
48
  };
43
49
  };
44
50
  };
51
+ okxwallet: {
52
+ desktop: {
53
+ action: string;
54
+ value: {
55
+ chromeId: string;
56
+ };
57
+ };
58
+ walletConnect: {
59
+ sdks: {
60
+ action: string;
61
+ value: string[];
62
+ };
63
+ };
64
+ };
45
65
  rainbow: {
46
66
  brand: {
47
67
  imageId: {
@@ -106,6 +126,12 @@ export declare const walletConnectOverrides: {
106
126
  };
107
127
  };
108
128
  };
129
+ exodus: {
130
+ group: {
131
+ action: string;
132
+ value: string;
133
+ };
134
+ };
109
135
  ledger: {
110
136
  switchNetworkOnlyFromWallet: {
111
137
  action: string;
@@ -134,6 +160,20 @@ export declare const walletConnectOverrides: {
134
160
  };
135
161
  };
136
162
  };
163
+ okxwallet: {
164
+ desktop: {
165
+ action: string;
166
+ value: {
167
+ chromeId: string;
168
+ };
169
+ };
170
+ walletConnect: {
171
+ sdks: {
172
+ action: string;
173
+ value: string[];
174
+ };
175
+ };
176
+ };
137
177
  rainbow: {
138
178
  brand: {
139
179
  imageId: {
@@ -0,0 +1 @@
1
+ export declare const processWalletConnectNativeUrl: (url: string) => string | undefined;
@@ -3,14 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var groups = {
6
- backpack: {
7
- brand: {
8
- alt: "Backpack Wallet",
9
- spriteId: "backpack"
10
- },
11
- key: "backpack",
12
- name: "Backpack"
13
- },
14
6
  blocto: {
15
7
  brand: {
16
8
  alt: "Blocto",
@@ -1,12 +1,4 @@
1
1
  var groups = {
2
- backpack: {
3
- brand: {
4
- alt: "Backpack Wallet",
5
- spriteId: "backpack"
6
- },
7
- key: "backpack",
8
- name: "Backpack"
9
- },
10
2
  blocto: {
11
3
  brand: {
12
4
  alt: "Blocto",