@solana/react-hooks 1.4.0 → 1.4.1
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/types/hooks.d.ts +2 -2
- package/package.json +3 -2
package/dist/types/hooks.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare function useWalletSession(): WalletSession | undefined;
|
|
|
68
68
|
* @example
|
|
69
69
|
* ```ts
|
|
70
70
|
* const actions = useWalletActions();
|
|
71
|
-
* await actions.connectWallet('phantom');
|
|
71
|
+
* await actions.connectWallet('wallet-standard:phantom');
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
74
|
export declare function useWalletActions(): Readonly<{
|
|
@@ -89,7 +89,7 @@ export declare function useWalletActions(): Readonly<{
|
|
|
89
89
|
* @example
|
|
90
90
|
* ```ts
|
|
91
91
|
* const connect = useConnectWallet();
|
|
92
|
-
* await connect('phantom', { autoConnect: true });
|
|
92
|
+
* await connect('wallet-standard:phantom', { autoConnect: true });
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
95
|
export declare function useConnectWallet(): (connectorId: string, options?: Readonly<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/react-hooks",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "React hooks for the @solana/client Solana client",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": "./dist/index.browser.mjs",
|
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
"@solana/kit": "^5.0.0",
|
|
45
45
|
"swr": "^2.3.6",
|
|
46
46
|
"zustand": "^5.0.0",
|
|
47
|
-
"@solana/client": "1.
|
|
47
|
+
"@solana/client": "1.7.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@solana/connector": "^0.2.3",
|
|
50
51
|
"@types/react": "^19.0.0",
|
|
51
52
|
"react": "^19.2.3"
|
|
52
53
|
},
|