@interchain-kit/react 0.0.1-beta.25 → 0.0.1-beta.26
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/esm/hooks/useCurrentWallet.js +0 -2
- package/esm/provider.js +1 -0
- package/hooks/useCurrentWallet.js +0 -2
- package/package.json +3 -3
- package/provider.d.ts +1 -0
- package/provider.js +1 -0
|
@@ -6,9 +6,7 @@ export const useCurrentWallet = () => {
|
|
|
6
6
|
const walletManager = useWalletManager();
|
|
7
7
|
const { open } = useWalletModal();
|
|
8
8
|
useEffect(() => {
|
|
9
|
-
console.log(walletManager.currentWalletName, walletManager.state);
|
|
10
9
|
if (!walletManager.currentWalletName && walletManager.state === WalletManagerState.Initialized) {
|
|
11
|
-
console.log('do i open this ?');
|
|
12
10
|
open();
|
|
13
11
|
}
|
|
14
12
|
}, [walletManager.currentWalletName, walletManager.state]);
|
package/esm/provider.js
CHANGED
|
@@ -3,6 +3,7 @@ import { useEffect, useMemo, useState } from "react";
|
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { WalletManager, } from "@interchain-kit/core";
|
|
5
5
|
import { WalletModalProvider } from "./modal";
|
|
6
|
+
import "@interchain-ui/react/styles";
|
|
6
7
|
const InterchainWalletContext = createContext(null);
|
|
7
8
|
export const ChainProvider = ({ chains, assetLists, wallets, signerOptions, endpointOptions, children, }) => {
|
|
8
9
|
const [_, forceRender] = useState({});
|
|
@@ -9,9 +9,7 @@ const useCurrentWallet = () => {
|
|
|
9
9
|
const walletManager = (0, useWalletManager_1.useWalletManager)();
|
|
10
10
|
const { open } = (0, modal_1.useWalletModal)();
|
|
11
11
|
(0, react_1.useEffect)(() => {
|
|
12
|
-
console.log(walletManager.currentWalletName, walletManager.state);
|
|
13
12
|
if (!walletManager.currentWalletName && walletManager.state === core_1.WalletManagerState.Initialized) {
|
|
14
|
-
console.log('do i open this ?');
|
|
15
13
|
open();
|
|
16
14
|
}
|
|
17
15
|
}, [walletManager.currentWalletName, walletManager.state]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interchain-kit/react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.26",
|
|
4
4
|
"author": "cosmology-tech <developers@cosmology.zone>",
|
|
5
5
|
"description": "interchain-kit wallet connector react package",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"keywords": [],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@chain-registry/v2-types": "^0.49.6",
|
|
36
|
-
"@interchain-kit/core": "0.0.1-beta.
|
|
36
|
+
"@interchain-kit/core": "0.0.1-beta.26",
|
|
37
37
|
"@interchain-ui/react": "1.24.0",
|
|
38
38
|
"@interchainjs/cosmos-types": "0.0.1-beta.9",
|
|
39
39
|
"@interchainjs/injective": "0.0.1-beta.13",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"react": "^18.3.1",
|
|
44
44
|
"react-dom": "^18.3.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3f531ca46617882f4c3c8f0ea431155223236570"
|
|
47
47
|
}
|
package/provider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BaseWallet, SignerOptions, WalletManager, EndpointOptions } from "@interchain-kit/core";
|
|
3
3
|
import { AssetList, Chain } from "@chain-registry/v2-types";
|
|
4
|
+
import "@interchain-ui/react/styles";
|
|
4
5
|
type InterchainWalletContextType = {
|
|
5
6
|
walletManager: WalletManager;
|
|
6
7
|
};
|
package/provider.js
CHANGED
|
@@ -6,6 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const react_2 = require("react");
|
|
7
7
|
const core_1 = require("@interchain-kit/core");
|
|
8
8
|
const modal_1 = require("./modal");
|
|
9
|
+
require("@interchain-ui/react/styles");
|
|
9
10
|
const InterchainWalletContext = (0, react_2.createContext)(null);
|
|
10
11
|
const ChainProvider = ({ chains, assetLists, wallets, signerOptions, endpointOptions, children, }) => {
|
|
11
12
|
const [_, forceRender] = (0, react_1.useState)({});
|