@dynamic-labs/sui 4.10.1 → 4.10.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,19 @@
1
1
 
2
+ ### [4.10.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.1...v4.10.2) (2025-04-02)
3
+
4
+
5
+ ### Features
6
+
7
+ * add walletTabSelected event ([#8430](https://github.com/dynamic-labs/dynamic-auth/issues/8430)) ([01ef815](https://github.com/dynamic-labs/dynamic-auth/commit/01ef815330e6c5433f7c135f561ed86621cc2bd9))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * disconect wallets on logout ([#8399](https://github.com/dynamic-labs/dynamic-auth/issues/8399)) ([148bc0d](https://github.com/dynamic-labs/dynamic-auth/commit/148bc0dd175048fa8a9a675383e8e6d93c7d16ac))
13
+ * ensure primary wallet is still a valid credential when calling resfreshUser ([#8439](https://github.com/dynamic-labs/dynamic-auth/issues/8439)) ([2e567e5](https://github.com/dynamic-labs/dynamic-auth/commit/2e567e53ea7738d4a42f3d54bb40a294403a1c36))
14
+ * **global-wallet-client:** ensure multiple global wallets can announce in same page ([#8421](https://github.com/dynamic-labs/dynamic-auth/issues/8421)) ([c55044a](https://github.com/dynamic-labs/dynamic-auth/commit/c55044a50f2d1c9417a3a2d85851c5522834a20a))
15
+ * **global-wallet-popup:** ensure popup icon can be viewed ([#8424](https://github.com/dynamic-labs/dynamic-auth/issues/8424)) ([f960eeb](https://github.com/dynamic-labs/dynamic-auth/commit/f960eebcdd875e1ff1779cd7be946d8342bea964))
16
+
2
17
  ### [4.10.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.0...v4.10.1) (2025-03-31)
3
18
 
4
19
  ## [4.10.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.10.0) (2025-03-30)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.10.1";
6
+ var version = "4.10.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.10.1";
2
+ var version = "4.10.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sui",
3
- "version": "4.10.1",
3
+ "version": "4.10.2",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "@mysten/wallet-standard": "0.13.29",
23
23
  "@mysten/sui": "1.24.0",
24
24
  "text-encoding": "0.7.0",
25
- "@dynamic-labs/assert-package-version": "4.10.1",
26
- "@dynamic-labs/logger": "4.10.1",
27
- "@dynamic-labs/rpc-providers": "4.10.1",
28
- "@dynamic-labs/types": "4.10.1",
29
- "@dynamic-labs/utils": "4.10.1",
30
- "@dynamic-labs/wallet-book": "4.10.1",
31
- "@dynamic-labs/wallet-connector-core": "4.10.1"
25
+ "@dynamic-labs/assert-package-version": "4.10.2",
26
+ "@dynamic-labs/logger": "4.10.2",
27
+ "@dynamic-labs/rpc-providers": "4.10.2",
28
+ "@dynamic-labs/types": "4.10.2",
29
+ "@dynamic-labs/utils": "4.10.2",
30
+ "@dynamic-labs/wallet-book": "4.10.2",
31
+ "@dynamic-labs/wallet-connector-core": "4.10.2"
32
32
  },
33
33
  "peerDependencies": {}
34
34
  }
@@ -11,9 +11,7 @@ var injected = require('./injected.cjs');
11
11
  const fetchSuiInjectedWalletConnectors = ({ walletBook, }) => {
12
12
  var _a;
13
13
  const walletStandardWallets = walletStandard.getWallets().get();
14
- // Wallet standard wallets don't always have injectedConfig from wallet book,
15
- // so we filter them by checking if they support critical sui features.
16
- const suiWalletStandardWallets = walletStandardWallets.filter((wallet) => { var _a; return (_a = wallet.features) === null || _a === void 0 ? void 0 : _a['sui:signPersonalMessage']; });
14
+ const suiWalletStandardWallets = walletStandardWallets.filter((wallet) => walletStandard.isWalletWithRequiredFeatureSet(wallet, ['sui:signPersonalMessage']));
17
15
  const suiWalletsByKey = Object.fromEntries(suiWalletStandardWallets.map((wallet) => [wallet.name, wallet]));
18
16
  const walletBookConnectors = Object.entries((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {})
19
17
  .filter(([, wallet]) => {
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- import { getWallets } from '@mysten/wallet-standard';
2
+ import { getWallets, isWalletWithRequiredFeatureSet } from '@mysten/wallet-standard';
3
3
  import { getWalletMetadataFromWalletBook } from '@dynamic-labs/wallet-connector-core';
4
4
  import { sanitizeName } from '@dynamic-labs/utils';
5
5
  import { Injected } from './injected.js';
@@ -7,9 +7,7 @@ import { Injected } from './injected.js';
7
7
  const fetchSuiInjectedWalletConnectors = ({ walletBook, }) => {
8
8
  var _a;
9
9
  const walletStandardWallets = getWallets().get();
10
- // Wallet standard wallets don't always have injectedConfig from wallet book,
11
- // so we filter them by checking if they support critical sui features.
12
- const suiWalletStandardWallets = walletStandardWallets.filter((wallet) => { var _a; return (_a = wallet.features) === null || _a === void 0 ? void 0 : _a['sui:signPersonalMessage']; });
10
+ const suiWalletStandardWallets = walletStandardWallets.filter((wallet) => isWalletWithRequiredFeatureSet(wallet, ['sui:signPersonalMessage']));
13
11
  const suiWalletsByKey = Object.fromEntries(suiWalletStandardWallets.map((wallet) => [wallet.name, wallet]));
14
12
  const walletBookConnectors = Object.entries((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {})
15
13
  .filter(([, wallet]) => {