@mysten/dapp-kit-react 1.0.1 → 1.0.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/README.md +2 -2
- package/dist/index.d.mts +8 -8
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dapp-kit-react
|
|
2
2
|
|
|
3
|
-
React hooks and components for building decentralized applications on the
|
|
4
|
-
|
|
3
|
+
React hooks and components for building decentralized applications on the [Sui](https://sui.io)
|
|
4
|
+
blockchain. Built on top of
|
|
5
5
|
[`@mysten/dapp-kit-core`](https://www.npmjs.com/package/@mysten/dapp-kit-core).
|
|
6
6
|
|
|
7
7
|
Provides a `DAppKitProvider`, ready-to-use `ConnectButton` and `ConnectModal` components, and hooks
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mysten_dapp_kit_core1 from "@mysten/dapp-kit-core";
|
|
2
2
|
import { DAppKit, DefaultExpectedDppKit, RegisteredDAppKit } from "@mysten/dapp-kit-core";
|
|
3
3
|
import { ComponentProps, PropsWithChildren } from "react";
|
|
4
4
|
import * as _lit_react0 from "@lit/react";
|
|
@@ -41,7 +41,7 @@ type UseWalletsOptions<TDAppKit extends DAppKit> = {
|
|
|
41
41
|
};
|
|
42
42
|
declare function useWallets<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
|
|
43
43
|
dAppKit
|
|
44
|
-
}?: UseWalletsOptions<TDAppKit>):
|
|
44
|
+
}?: UseWalletsOptions<TDAppKit>): _mysten_dapp_kit_core1.UiWallet[];
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/hooks/useWalletConnection.d.ts
|
|
47
47
|
type UseWalletConnectionOptions<TDAppKit extends DAppKit<any>> = {
|
|
@@ -50,8 +50,8 @@ type UseWalletConnectionOptions<TDAppKit extends DAppKit<any>> = {
|
|
|
50
50
|
declare function useWalletConnection<TDAppKit extends DAppKit = RegisteredDAppKit>({
|
|
51
51
|
dAppKit
|
|
52
52
|
}?: UseWalletConnectionOptions<TDAppKit>): {
|
|
53
|
-
readonly wallet:
|
|
54
|
-
readonly account:
|
|
53
|
+
readonly wallet: _mysten_dapp_kit_core1.UiWallet;
|
|
54
|
+
readonly account: _mysten_dapp_kit_core1.UiWalletAccount;
|
|
55
55
|
readonly status: "connected";
|
|
56
56
|
readonly supportedIntents: string[];
|
|
57
57
|
readonly isConnected: true;
|
|
@@ -68,8 +68,8 @@ declare function useWalletConnection<TDAppKit extends DAppKit = RegisteredDAppKi
|
|
|
68
68
|
readonly isReconnecting: false;
|
|
69
69
|
readonly isDisconnected: false;
|
|
70
70
|
} | {
|
|
71
|
-
readonly wallet:
|
|
72
|
-
readonly account:
|
|
71
|
+
readonly wallet: _mysten_dapp_kit_core1.UiWallet;
|
|
72
|
+
readonly account: _mysten_dapp_kit_core1.UiWalletAccount;
|
|
73
73
|
readonly status: "reconnecting";
|
|
74
74
|
readonly supportedIntents: string[];
|
|
75
75
|
readonly isConnected: false;
|
|
@@ -93,7 +93,7 @@ type UseCurrentAccountOptions<TDAppKit extends DAppKit> = {
|
|
|
93
93
|
};
|
|
94
94
|
declare function useCurrentAccount<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
|
|
95
95
|
dAppKit
|
|
96
|
-
}?: UseCurrentAccountOptions<TDAppKit>):
|
|
96
|
+
}?: UseCurrentAccountOptions<TDAppKit>): _mysten_dapp_kit_core1.UiWalletAccount | null;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/hooks/useCurrentWallet.d.ts
|
|
99
99
|
type UseCurrentWalletOptions<TDAppKit extends DAppKit> = {
|
|
@@ -101,7 +101,7 @@ type UseCurrentWalletOptions<TDAppKit extends DAppKit> = {
|
|
|
101
101
|
};
|
|
102
102
|
declare function useCurrentWallet<TDAppKit extends DAppKit<any> = RegisteredDAppKit>({
|
|
103
103
|
dAppKit
|
|
104
|
-
}?: UseCurrentWalletOptions<TDAppKit>):
|
|
104
|
+
}?: UseCurrentWalletOptions<TDAppKit>): _mysten_dapp_kit_core1.UiWallet | null;
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/hooks/useCurrentClient.d.ts
|
|
107
107
|
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": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"LICENSE",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
18
|
"types": "./dist/index.d.mts",
|
|
19
|
-
"import": "./dist/index.mjs"
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"repository": {
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@lit/react": "^1.0.8",
|
|
40
41
|
"@nanostores/react": "^1.0.0",
|
|
41
42
|
"nanostores": "^1.1.0",
|
|
42
|
-
"@mysten/dapp-kit-core": "^1.0.
|
|
43
|
+
"@mysten/dapp-kit-core": "^1.0.4"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"@types/react": ">=17.0.0",
|