@mysten/dapp-kit
Advanced tools
Comparing version 0.0.0-experimental-20231117210618 to 0.0.0-experimental-20231120005751
# @mysten/dapp-kit | ||
## 0.0.0-experimental-20231117210618 | ||
## 0.0.0-experimental-20231120005751 | ||
@@ -9,4 +9,4 @@ ### Patch Changes | ||
- Updated dependencies [64d45ba27] | ||
- @mysten/sui.js@0.0.0-experimental-20231117210618 | ||
- @mysten/wallet-standard@0.0.0-experimental-20231117210618 | ||
- @mysten/sui.js@0.0.0-experimental-20231120005751 | ||
- @mysten/wallet-standard@0.0.0-experimental-20231120005751 | ||
@@ -13,0 +13,0 @@ ## 0.9.0 |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sui-typescript-docs.vercel.app/typescript", | ||
"version": "0.0.0-experimental-20231117210618", | ||
"version": "0.0.0-experimental-20231120005751", | ||
"license": "Apache-2.0", | ||
@@ -75,4 +75,4 @@ "files": [ | ||
"zustand": "^4.4.1", | ||
"@mysten/sui.js": "0.0.0-experimental-20231117210618", | ||
"@mysten/wallet-standard": "0.0.0-experimental-20231117210618" | ||
"@mysten/sui.js": "0.0.0-experimental-20231120005751", | ||
"@mysten/wallet-standard": "0.0.0-experimental-20231120005751" | ||
}, | ||
@@ -79,0 +79,0 @@ "peerDependencies": { |
@@ -30,3 +30,3 @@ # Sui dApp Kit | ||
## Setting up Providers | ||
## Setting up providers | ||
@@ -62,7 +62,22 @@ To be able to use the hooks and components in the dApp Kit, you need to wrap your app with a couple | ||
## using hooks to make rpc calls | ||
## Using UI components to connect to a wallet | ||
The dApp Kit provides a set of hooks for making rpc calls to the Sui blockchain. The hooks are thin | ||
The dApp Kit provides a set of flexible UI components that can be used to connect and manage wallet | ||
accounts from your dApp. The components are built on top of [Radix UI](radix-ui.com/primitives) and | ||
are customizable so you can quickly get your dApp up and running. | ||
To use our provided UI components, you will need to import the dApp Kit's CSS stylesheet into your | ||
dApp as shown below. For more information regarding customization options, check out the respective | ||
documentation pages for the components and | ||
[themes](https://sui-typescript-docs.vercel.app/dapp-kit/themes). | ||
```tsx | ||
import '@mysten/dapp-kit/dist/index.css'; | ||
``` | ||
## Using hooks to make RPC calls | ||
The dApp Kit provides a set of hooks for making RPC calls to the Sui blockchain. The hooks are thin | ||
wrappers around `useQuery` from `@tanstack/react-query`. For more comprehensive documentation on how | ||
these query hooks checkout the | ||
these query hooks can be used, check out the | ||
[react-query docs](https://tanstack.com/query/latest/docs/react/overview). | ||
@@ -69,0 +84,0 @@ |
2843123
98
9
+ Added@mysten/sui.js@0.0.0-experimental-20231120005751(transitive)
+ Added@mysten/wallet-standard@0.0.0-experimental-20231120005751(transitive)
- Removed@mysten/sui.js@0.0.0-experimental-20231117210618(transitive)
- Removed@mysten/wallet-standard@0.0.0-experimental-20231117210618(transitive)
Updated@mysten/wallet-standard@0.0.0-experimental-20231120005751