@mysten/dapp-kit-react 2.1.44 → 3.0.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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _mysten_dapp_kit_core5 from "@mysten/dapp-kit-core";
1
+ import * as _mysten_dapp_kit_core0 from "@mysten/dapp-kit-core";
2
2
  import { DAppKit, DefaultExpectedDppKit, RegisteredDAppKit } from "@mysten/dapp-kit-core";
3
3
  import * as react0 from "react";
4
4
  import { PropsWithChildren } from "react";
@@ -6,7 +6,7 @@ import * as nanostores0 from "nanostores";
6
6
  export * from "@mysten/dapp-kit-core";
7
7
 
8
8
  //#region src/components/DAppKitProvider.d.ts
9
- declare const DAppKitContext: react0.Context<_mysten_dapp_kit_core5.DAppKit<any, _mysten_dapp_kit_core5.ClientWithCoreApi> | null>;
9
+ declare const DAppKitContext: react0.Context<_mysten_dapp_kit_core0.DAppKit<any, _mysten_dapp_kit_core0.ClientWithCoreApi> | null>;
10
10
  type DAppKitProviderProps = PropsWithChildren<{
11
11
  dAppKit: DefaultExpectedDppKit;
12
12
  }>;
@@ -24,7 +24,7 @@ type UseWalletsOptions<TDAppKit extends DAppKit> = {
24
24
  };
25
25
  declare function useWallets<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
26
26
  dAppKit
27
- }?: UseWalletsOptions<TDAppKit>): _mysten_dapp_kit_core5.UiWallet[];
27
+ }?: UseWalletsOptions<TDAppKit>): _mysten_dapp_kit_core0.UiWallet[];
28
28
  //#endregion
29
29
  //#region src/hooks/useWalletConnection.d.ts
30
30
  type UseWalletConnectionOptions<TDAppKit extends DAppKit<any>> = {
@@ -42,8 +42,8 @@ declare function useWalletConnection<TDAppKit extends DAppKit<any> = RegisteredD
42
42
  readonly isReconnecting: false;
43
43
  readonly isDisconnected: true;
44
44
  } | {
45
- readonly wallet: _mysten_dapp_kit_core5.UiWallet;
46
- readonly account: _mysten_dapp_kit_core5.UiWalletAccount;
45
+ readonly wallet: _mysten_dapp_kit_core0.UiWallet;
46
+ readonly account: _mysten_dapp_kit_core0.UiWalletAccount;
47
47
  readonly status: "connected";
48
48
  readonly supportedIntents: string[];
49
49
  readonly isConnected: true;
@@ -69,8 +69,8 @@ declare function useWalletConnection<TDAppKit extends DAppKit<any> = RegisteredD
69
69
  readonly isReconnecting: true;
70
70
  readonly isDisconnected: false;
71
71
  } | {
72
- readonly wallet: _mysten_dapp_kit_core5.UiWallet;
73
- readonly account: _mysten_dapp_kit_core5.UiWalletAccount;
72
+ readonly wallet: _mysten_dapp_kit_core0.UiWallet;
73
+ readonly account: _mysten_dapp_kit_core0.UiWalletAccount;
74
74
  readonly status: "reconnecting";
75
75
  readonly supportedIntents: string[];
76
76
  readonly isConnected: false;
@@ -85,7 +85,7 @@ type UseCurrentAccountOptions<TDAppKit extends DAppKit> = {
85
85
  };
86
86
  declare function useCurrentAccount<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
87
87
  dAppKit
88
- }?: UseCurrentAccountOptions<TDAppKit>): _mysten_dapp_kit_core5.UiWalletAccount | null;
88
+ }?: UseCurrentAccountOptions<TDAppKit>): _mysten_dapp_kit_core0.UiWalletAccount | null;
89
89
  //#endregion
90
90
  //#region src/hooks/useCurrentWallet.d.ts
91
91
  type UseCurrentWalletOptions<TDAppKit extends DAppKit> = {
@@ -93,7 +93,7 @@ type UseCurrentWalletOptions<TDAppKit extends DAppKit> = {
93
93
  };
94
94
  declare function useCurrentWallet<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
95
95
  dAppKit
96
- }?: UseCurrentWalletOptions<TDAppKit>): _mysten_dapp_kit_core5.UiWallet | null;
96
+ }?: UseCurrentWalletOptions<TDAppKit>): _mysten_dapp_kit_core0.UiWallet | null;
97
97
  //#endregion
98
98
  //#region src/hooks/useCurrentClient.d.ts
99
99
  type UseCurrentClientOptions<TDAppKit extends DAppKit<any>> = {
package/docs/index.md CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  > Build Sui apps with framework-agnostic core and React bindings.
4
4
 
5
- > **Note:** **Migrating from @mysten/dapp-kit?** If you're currently using the legacy `@mysten/dapp-kit`
6
- > package, check out our [Migration Guide](/sui/migrations/sui-2.0/dapp-kit) to upgrade to the new
7
- > packages with gRPC and GraphQL support.
5
+ > **Note:** Coming from the original `@mysten/dapp-kit` package? Follow the [migration
6
+ > guide](/sui/migrations/sui-2.0/dapp-kit).
8
7
 
9
8
  The Sui dApp Kit provides tools and components for building decentralized applications on the Sui
10
9
  network. The SDK consists of two packages that work together:
@@ -50,9 +49,4 @@ Check the framework-specific guides:
50
49
 
51
50
  - [React](/dapp-kit/getting-started/react)
52
51
  - [Next.js](/dapp-kit/getting-started/next-js)
53
- - [Vue](/dapp-kit/getting-started/vue)
54
-
55
- > **Warning:** **Deprecated JSON RPC Only**: The legacy `@mysten/dapp-kit` package only works with the deprecated
56
- > JSON RPC API and will not receive further updates. Follow the [migration
57
- > guide](/sui/migrations/sui-2.0/dapp-kit) to move to `@mysten/dapp-kit-core` and
58
- > `@mysten/dapp-kit-react`.
52
+ - [Vue](/dapp-kit/getting-started/vue)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mysten/dapp-kit-react",
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "React bindings for @mysten/dapp-kit-core",
5
- "version": "2.1.44",
5
+ "version": "3.0.0",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
8
8
  "LICENSE",
@@ -44,7 +44,7 @@
44
44
  "@lit/react": "^1.0.8",
45
45
  "@nanostores/react": "^1.0.0",
46
46
  "nanostores": "^1.4.2",
47
- "@mysten/dapp-kit-core": "^1.6.42"
47
+ "@mysten/dapp-kit-core": "^2.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@types/react": ">=17.0.0",