@mysten/dapp-kit-core 1.6.13 → 1.6.15

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,5 +1,9 @@
1
1
  # @mysten/dapp-kit-core
2
2
 
3
+ ## 1.6.15
4
+
5
+ ## 1.6.14
6
+
3
7
  ## 1.6.13
4
8
 
5
9
  ## 1.6.12
@@ -1,6 +1,6 @@
1
1
  # React
2
2
 
3
- > Set up dApp Kit in a React application.
3
+ > Set up dApp Kit in a React application
4
4
 
5
5
  This guide walks you through integrating dApp Kit into a React application.
6
6
 
@@ -147,7 +147,7 @@ function TransferButton() {
147
147
  | [`useCurrentAccount`](/dapp-kit/react/hooks/use-current-account) | Currently selected account |
148
148
  | [`useCurrentWallet`](/dapp-kit/react/hooks/use-current-wallet) | Currently connected wallet |
149
149
  | [`useCurrentNetwork`](/dapp-kit/react/hooks/use-current-network) | Current network |
150
- | [`useCurrentClient`](/dapp-kit/react/hooks/use-current-client) | SuiClient for current network |
150
+ | [`useCurrentClient`](/dapp-kit/react/hooks/use-current-client) | Current Sui client instance |
151
151
  | [`useWallets`](/dapp-kit/react/hooks/use-wallets) | List of available wallets |
152
152
 
153
153
  ## Components
@@ -1,6 +1,6 @@
1
1
  # Vue
2
2
 
3
- > Set up dApp Kit in a Vue application.
3
+ > Set up dApp Kit in a Vue application
4
4
 
5
5
  This guide walks you through integrating dApp Kit into a Vue application using Web Components and
6
6
  direct store access.
@@ -174,7 +174,7 @@ Access these stores through `dAppKit.stores`:
174
174
  | ----------------- | ------------------------------------------------- |
175
175
  | `$connection` | Connection state with wallet, account, and status |
176
176
  | `$currentNetwork` | Current network string |
177
- | `$currentClient` | SuiClient for current network |
177
+ | `$currentClient` | Current Sui client instance |
178
178
  | `$wallets` | List of available wallets |
179
179
 
180
180
  See [State Management](/dapp-kit/state) for full documentation.
@@ -3,11 +3,11 @@
3
3
 
4
4
  - [Sui dApp Kit](..md): Build Sui apps with framework-agnostic core and React bindings.
5
5
  - [@mysten/create-dapp](./getting-started/create-dapp.md): Create a Sui app with one command using the create-dapp CLI scaffolding tool.
6
- - [React](./getting-started/react.md): Set up dApp Kit in a React application.
6
+ - [React](./getting-started/react.md): Set up dApp Kit in a React application
7
7
  - [Next.js](./getting-started/next-js.md): Set up dApp Kit in a Next.js application.
8
- - [Vue](./getting-started/vue.md): Set up dApp Kit in a Vue application.
8
+ - [Vue](./getting-started/vue.md): Set up dApp Kit in a Vue application
9
9
  - [DApp Kit Instance](./dapp-kit-instance.md): Create and configure a DAppKit instance for wallet and client management
10
- - [State](./state.md): Access and subscribe to wallet connection state in dApp Kit.
10
+ - [State](./state.md): Access and subscribe to wallet connection state in dApp Kit
11
11
  - [Connect Wallet](./actions/connect-wallet.md): Programmatically connect to a Sui wallet using the dApp Kit connectWallet action.
12
12
  - [Disconnect Wallet](./actions/disconnect-wallet.md): Programmatically disconnect from a Sui wallet using the dApp Kit disconnectWallet action.
13
13
  - [Sign and Execute Transaction](./actions/sign-and-execute-transaction.md): Sign and execute a transaction on the Sui network using the connected wallet.
@@ -19,7 +19,7 @@
19
19
  - [React Hooks](./react/hooks.md): React hooks for accessing dApp Kit state and actions in Sui applications.
20
20
  - [useDAppKit](./react/hooks/use-dapp-kit.md): React hook to access the full dApp Kit instance for calling actions directly.
21
21
  - [useCurrentAccount](./react/hooks/use-current-account.md): React hook to get the currently selected wallet account in a Sui dApp.
22
- - [useCurrentClient](./react/hooks/use-current-client.md): React hook to get the current Sui client instance for the active network.
22
+ - [useCurrentClient](./react/hooks/use-current-client.md): React hook to get the current Sui client instance for the active network
23
23
  - [useCurrentNetwork](./react/hooks/use-current-network.md): React hook to get the currently selected Sui network in dApp Kit.
24
24
  - [useCurrentWallet](./react/hooks/use-current-wallet.md): React hook to get the currently connected wallet in a Sui dApp.
25
25
  - [useWalletConnection](./react/hooks/use-wallet-connection.md): React hook to manage wallet connection status and information in a Sui dApp.
@@ -1,13 +1,14 @@
1
1
  # useCurrentClient
2
2
 
3
- > React hook to get the current Sui client instance for the active network.
3
+ > React hook to get the current Sui client instance for the active network
4
4
 
5
5
  The `useCurrentClient` hook provides access to the blockchain client instance for the current
6
6
  network.
7
7
 
8
- > **Note:** By default, this returns a `SuiClient` instance when using the standard setup. However, the dApp
9
- > Kit supports any client that implements the Sui core API, making it flexible for different
10
- > blockchain implementations.
8
+ > **Note:** With the standard setup, this returns the `SuiGrpcClient` instance created by `createClient`. More
9
+ > generally, it returns whatever client type your dApp Kit instance creates, as long as that client
10
+ > implements the Sui Core API. Application code should call the concrete client's top-level methods
11
+ > directly.
11
12
 
12
13
  > **Warning:** All dApp Kit hooks must be used within components that are descendants of
13
14
  > [`DAppKitProvider`](../dapp-kit-provider). Using them outside will result in an error.
@@ -32,5 +33,5 @@ network.
32
33
  ## Return value
33
34
 
34
35
  ```tsx
35
- SuiClient;
36
+ ReturnType<typeof dAppKit.getClient>;
36
37
  ```
package/docs/state.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # State
2
2
 
3
- > Access and subscribe to wallet connection state in dApp Kit.
3
+ > Access and subscribe to wallet connection state in dApp Kit
4
4
 
5
5
  The Sui dApp Kit SDK uses [nanostores](https://github.com/nanostores/nanostores) for state
6
6
  management, providing a lightweight, framework-agnostic solution that works across React, Vue,
@@ -100,7 +100,7 @@ This store is read-only. Use `dAppKit.switchNetwork()` to change networks.
100
100
 
101
101
  ### Current client store (`$currentClient`)
102
102
 
103
- Contains the SuiClient instance for the current network:
103
+ Contains the Sui client instance for the current network:
104
104
 
105
105
  ```typescript
106
106
  const client = dAppKit.stores.$currentClient.get();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "Framework-agnostic toolkit for building decentralized applications on Sui.",
5
5
  "homepage": "https://sdk.mystenlabs.com/sui",
6
- "version": "1.6.13",
6
+ "version": "1.6.15",
7
7
  "license": "Apache-2.0",
8
8
  "files": [
9
9
  "CHANGELOG.md",
@@ -57,12 +57,12 @@
57
57
  "@webcomponents/scoped-custom-element-registry": "^0.0.10",
58
58
  "lit": "^3.3.3",
59
59
  "nanostores": "^1.3.0",
60
- "@mysten/slush-wallet": "^1.1.13",
60
+ "@mysten/wallet-standard": "^0.21.15",
61
61
  "@mysten/utils": "^0.4.0",
62
- "@mysten/wallet-standard": "^0.21.13"
62
+ "@mysten/slush-wallet": "^1.1.15"
63
63
  },
64
64
  "peerDependencies": {
65
- "@mysten/sui": "^2.23.2"
65
+ "@mysten/sui": "^2.25.0"
66
66
  },
67
67
  "scripts": {
68
68
  "clean": "rm -rf tsconfig.tsbuildinfo ./dist",