@dynamic-labs/wallet-connector-core 3.4.5 → 3.5.0

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,30 @@
1
1
 
2
+ ## [3.5.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.6...v3.5.0) (2024-11-05)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for line social ([61b23fd](https://github.com/dynamic-labs/dynamic-auth/commit/61b23fde9f4b0bc56c1cdc2f7456784931bdb878))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * global connectivity transaction failures and confirmation modal ([#7355](https://github.com/dynamic-labs/DynamicAuth/issues/7355)) ([eb1c5d7](https://github.com/dynamic-labs/DynamicAuth/commit/eb1c5d794df972dfb2f84fdcaa6c581ba68285c0)), closes [#7347](https://github.com/dynamic-labs/DynamicAuth/issues/7347)
13
+
14
+ ### [3.4.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.5...v3.4.6) (2024-10-31)
15
+
16
+
17
+ ### Features
18
+
19
+ * add support for compass and leap wallets ([ab170c9](https://github.com/dynamic-labs/DynamicAuth/commit/ab170c962099ed6356d2f31c947b122f1aa7ec73))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * prevent use-wallet-options from reading empty wallet-book ([#7320](https://github.com/dynamic-labs/DynamicAuth/issues/7320)) ([24c6cb1](https://github.com/dynamic-labs/DynamicAuth/commit/24c6cb14ce324925b120d363e029e29b72560895))
25
+ * sats-connect wallets not prompting correctly to sync account when making a transaction ([#7311](https://github.com/dynamic-labs/DynamicAuth/issues/7311)) ([#7312](https://github.com/dynamic-labs/DynamicAuth/issues/7312)) ([2026be4](https://github.com/dynamic-labs/DynamicAuth/commit/2026be412edcbb7e98341a5a5b2a3bd75ffdb83f))
26
+ * update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/DynamicAuth/issues/7303)) ([#7304](https://github.com/dynamic-labs/DynamicAuth/issues/7304)) ([1e91c76](https://github.com/dynamic-labs/DynamicAuth/commit/1e91c767ebe078f63c27884e4a8e7729d49b2114))
27
+
2
28
  ### [3.4.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.4...v3.4.5) (2024-10-30)
3
29
 
4
30
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "3.4.5";
6
+ var version = "3.5.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "3.4.5";
2
+ var version = "3.5.0";
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": "3.4.5",
3
+ "version": "3.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -29,12 +29,12 @@
29
29
  "@dynamic-labs/sdk-api-core": "0.0.559"
30
30
  },
31
31
  "peerDependencies": {
32
- "@dynamic-labs/assert-package-version": "3.4.5",
33
- "@dynamic-labs/logger": "3.4.5",
34
- "@dynamic-labs/rpc-providers": "3.4.5",
35
- "@dynamic-labs/types": "3.4.5",
36
- "@dynamic-labs/utils": "3.4.5",
37
- "@dynamic-labs/wallet-book": "3.4.5",
32
+ "@dynamic-labs/assert-package-version": "3.5.0",
33
+ "@dynamic-labs/logger": "3.5.0",
34
+ "@dynamic-labs/rpc-providers": "3.5.0",
35
+ "@dynamic-labs/types": "3.5.0",
36
+ "@dynamic-labs/utils": "3.5.0",
37
+ "@dynamic-labs/wallet-book": "3.5.0",
38
38
  "eventemitter3": "5.0.1"
39
39
  }
40
40
  }
@@ -254,7 +254,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
254
254
  * Override key or the normalized wallet name if needed
255
255
  */
256
256
  get key(): string;
257
- get metadata(): WalletMetadata;
257
+ get metadata(): WalletMetadata | {
258
+ id: string;
259
+ };
258
260
  /**
259
261
  * Wallet name
260
262
  */
@@ -5,11 +5,47 @@ export type ChainInfo = {
5
5
  name: string;
6
6
  symbol: Chain;
7
7
  };
8
+ export type WalletEvent = 'accountChanged' | 'chainChanged';
9
+ export type WalletMethod = 'getConnectedAccounts';
10
+ export type WalletLimitations = {
11
+ browserExtension?: {
12
+ unsupportedEvents?: WalletEvent[];
13
+ unsupportedMethods?: WalletMethod[];
14
+ };
15
+ };
16
+ export type WalletDownloadLinks = {
17
+ chromeId?: string;
18
+ edgeId?: string;
19
+ firefoxId?: string;
20
+ operaId?: string;
21
+ safariId?: string;
22
+ androidId?: string;
23
+ iosId?: string;
24
+ };
25
+ export type WalletDeepLinks = {
26
+ native?: string;
27
+ universal?: string;
28
+ };
8
29
  /**
9
- * @property id - A key that can be used to identify the wallet/connector, based on the wallet name.
10
- * Example: 'metamask', 'magiceden', 'phantom', etc
30
+ * @property id - A key that can be used to identify the wallet/connector, based on the wallet name
31
+ * @property name - The wallet name
32
+ * @property icon - The url or data for the wallet icon
33
+ * @property brandColor - The hex valye for the wallet brand color
34
+ * @property groupKey - Key used to group wallets together, for example, by chain
35
+ * @property deepLinks - The mobile deep links of the wallet
36
+ * @property downloadLinks - The ids to download the wallet in the different browsers and mobile stores
37
+ * @property walletLimitations - The limitations of the wallet in regards to methods and events
38
+ * @property rdns - The wallet rdns if it supports EIP-6963
11
39
  */
12
40
  export type WalletMetadata = {
13
41
  id: string;
42
+ name: string;
43
+ icon: string;
44
+ brandColor?: `#${string}`;
45
+ groupKey?: string;
46
+ deepLinks?: WalletDeepLinks;
47
+ downloadLinks?: WalletDownloadLinks;
48
+ walletLimitations?: WalletLimitations;
49
+ rdns?: string;
14
50
  };
15
51
  export declare namespace WalletConnectorCore { }