@dynamic-labs/wallet-connector-core 4.18.3 → 4.18.5

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
+ ### [4.18.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.4...v4.18.5) (2025-05-15)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for external wallet login in global wallet ([#8673](https://github.com/dynamic-labs/dynamic-auth/issues/8673)) ([098b87e](https://github.com/dynamic-labs/dynamic-auth/commit/098b87ea2d588c1808a587fb831b31f47d34c990))
8
+
9
+ ### [4.18.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.3...v4.18.4) (2025-05-15)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * global connectivity confirmation UI should be forced ([#8658](https://github.com/dynamic-labs/dynamic-auth/issues/8658)) ([b1f437b](https://github.com/dynamic-labs/dynamic-auth/commit/b1f437b40ef748db765dac76687abd8d2668a79d))
15
+ * onekey typo ([#8698](https://github.com/dynamic-labs/dynamic-auth/issues/8698)) ([b1f21bf](https://github.com/dynamic-labs/dynamic-auth/commit/b1f21bfacdb42ccbb68bff5e2dd398308fc3d4c3))
16
+ * use correct chain kernel client for AA SIWE ([#8657](https://github.com/dynamic-labs/dynamic-auth/issues/8657)) ([6dfd677](https://github.com/dynamic-labs/dynamic-auth/commit/6dfd677d804fc40994a5be6b696e6e199ada82d4))
17
+
2
18
  ### [4.18.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.2...v4.18.3) (2025-05-12)
3
19
 
4
20
  ### [4.18.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.1...v4.18.2) (2025-05-09)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.18.3";
6
+ var version = "4.18.5";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.18.3";
2
+ var version = "4.18.5";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "4.18.3",
3
+ "version": "4.18.5",
4
4
  "description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.663",
22
- "@dynamic-labs/assert-package-version": "4.18.3",
23
- "@dynamic-labs/logger": "4.18.3",
24
- "@dynamic-labs/rpc-providers": "4.18.3",
25
- "@dynamic-labs/types": "4.18.3",
26
- "@dynamic-labs/utils": "4.18.3",
27
- "@dynamic-labs/wallet-book": "4.18.3",
21
+ "@dynamic-labs/sdk-api-core": "0.0.667",
22
+ "@dynamic-labs/assert-package-version": "4.18.5",
23
+ "@dynamic-labs/logger": "4.18.5",
24
+ "@dynamic-labs/rpc-providers": "4.18.5",
25
+ "@dynamic-labs/types": "4.18.5",
26
+ "@dynamic-labs/utils": "4.18.5",
27
+ "@dynamic-labs/wallet-book": "4.18.5",
28
28
  "eventemitter3": "5.0.1"
29
29
  },
30
30
  "peerDependencies": {}
@@ -169,8 +169,11 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
169
169
  }
170
170
  /**
171
171
  * Generic function to close the wallet connection
172
+ *
172
173
  * Originally implemented for WalletConnect, but it is used
173
- * for anything that needs to be "logged out" or cleaned up
174
+ * for anything that needs to be "logged out" or cleaned up.
175
+ *
176
+ * Remember to call teardownEventListeners() in the implementation.
174
177
  *
175
178
  * @default Promise<undefined>
176
179
  */
@@ -231,6 +234,11 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
231
234
  /**
232
235
  * Get the address silently
233
236
  *
237
+ * This is used to check which accounts are already connected and
238
+ * should silently attempt to reconnect. If the user refreshes their
239
+ * page and gets disconnected, there's likely an issue with the
240
+ * implementation of this method.
241
+ *
234
242
  * @default Promise<[]>
235
243
  */
236
244
  getConnectedAccounts() {
@@ -458,7 +466,12 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
458
466
  });
459
467
  }
460
468
  /**
461
- * Get the enabled networks for the wallet
469
+ * Get the enabled networks for the wallet.
470
+ *
471
+ * These are normally set in the opts prop of the wallet connector constructor. The
472
+ * network values are passed from project settings and can require an update to
473
+ * [getWalletConnectorConstructorOptions] for new chains.
474
+ *
462
475
  * @returns {GenericNetwork[]} The enabled networks
463
476
  */
464
477
  getEnabledNetworks() {
@@ -95,8 +95,11 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
95
95
  abstract connectedChain: Chain;
96
96
  /**
97
97
  * Generic function to close the wallet connection
98
+ *
98
99
  * Originally implemented for WalletConnect, but it is used
99
- * for anything that needs to be "logged out" or cleaned up
100
+ * for anything that needs to be "logged out" or cleaned up.
101
+ *
102
+ * Remember to call teardownEventListeners() in the implementation.
100
103
  *
101
104
  * @default Promise<undefined>
102
105
  */
@@ -143,6 +146,11 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
143
146
  /**
144
147
  * Get the address silently
145
148
  *
149
+ * This is used to check which accounts are already connected and
150
+ * should silently attempt to reconnect. If the user refreshes their
151
+ * page and gets disconnected, there's likely an issue with the
152
+ * implementation of this method.
153
+ *
146
154
  * @default Promise<[]>
147
155
  */
148
156
  getConnectedAccounts(): Promise<string[]>;
@@ -342,7 +350,12 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
342
350
  */
343
351
  validateActiveWallet(expectedAddress: string): Promise<void>;
344
352
  /**
345
- * Get the enabled networks for the wallet
353
+ * Get the enabled networks for the wallet.
354
+ *
355
+ * These are normally set in the opts prop of the wallet connector constructor. The
356
+ * network values are passed from project settings and can require an update to
357
+ * [getWalletConnectorConstructorOptions] for new chains.
358
+ *
346
359
  * @returns {GenericNetwork[]} The enabled networks
347
360
  */
348
361
  getEnabledNetworks(): GenericNetwork[];
@@ -161,8 +161,11 @@ class WalletConnectorBase extends EventEmitter {
161
161
  }
162
162
  /**
163
163
  * Generic function to close the wallet connection
164
+ *
164
165
  * Originally implemented for WalletConnect, but it is used
165
- * for anything that needs to be "logged out" or cleaned up
166
+ * for anything that needs to be "logged out" or cleaned up.
167
+ *
168
+ * Remember to call teardownEventListeners() in the implementation.
166
169
  *
167
170
  * @default Promise<undefined>
168
171
  */
@@ -223,6 +226,11 @@ class WalletConnectorBase extends EventEmitter {
223
226
  /**
224
227
  * Get the address silently
225
228
  *
229
+ * This is used to check which accounts are already connected and
230
+ * should silently attempt to reconnect. If the user refreshes their
231
+ * page and gets disconnected, there's likely an issue with the
232
+ * implementation of this method.
233
+ *
226
234
  * @default Promise<[]>
227
235
  */
228
236
  getConnectedAccounts() {
@@ -450,7 +458,12 @@ class WalletConnectorBase extends EventEmitter {
450
458
  });
451
459
  }
452
460
  /**
453
- * Get the enabled networks for the wallet
461
+ * Get the enabled networks for the wallet.
462
+ *
463
+ * These are normally set in the opts prop of the wallet connector constructor. The
464
+ * network values are passed from project settings and can require an update to
465
+ * [getWalletConnectorConstructorOptions] for new chains.
466
+ *
454
467
  * @returns {GenericNetwork[]} The enabled networks
455
468
  */
456
469
  getEnabledNetworks() {