@mysten/dapp-kit-react 2.1.9 → 2.1.11
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 +9 -9
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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<
|
|
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>):
|
|
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 = RegisteredDAppKi
|
|
|
42
42
|
readonly isReconnecting: false;
|
|
43
43
|
readonly isDisconnected: true;
|
|
44
44
|
} | {
|
|
45
|
-
readonly wallet:
|
|
46
|
-
readonly account:
|
|
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 = RegisteredDAppKi
|
|
|
69
69
|
readonly isReconnecting: true;
|
|
70
70
|
readonly isDisconnected: false;
|
|
71
71
|
} | {
|
|
72
|
-
readonly wallet:
|
|
73
|
-
readonly account:
|
|
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>):
|
|
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>):
|
|
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/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.
|
|
5
|
+
"version": "2.1.11",
|
|
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.3.0",
|
|
47
|
-
"@mysten/dapp-kit-core": "^1.6.
|
|
47
|
+
"@mysten/dapp-kit-core": "^1.6.9"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@types/react": ">=17.0.0",
|