@matchain/matchid-sdk-react 0.1.48-alpha.23 → 0.1.48-alpha.24
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/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-SB54XHCJ.mjs → chunk-EOT6XIVG.mjs} +2 -2
- package/dist/{chunk-FYW4P7HS.mjs → chunk-TSPOB4DT.mjs} +20 -21
- package/dist/chunk-TSPOB4DT.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +8 -9
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-Ca30Hgn7.d.mts → index-BMfaixEx.d.mts} +1 -1
- package/dist/{index-CN2jy6bb.d.ts → index-BMsj8hJv.d.ts} +2 -2
- package/dist/{index-BOsoQSmx.d.ts → index-BcEreCxd.d.ts} +1 -1
- package/dist/{index-BFSCCmlU.d.ts → index-Bpmrd7mh.d.ts} +1 -1
- package/dist/{index-DTYp8DRd.d.ts → index-Bvc8cjpN.d.ts} +2 -2
- package/dist/{index-Bk_dqXKp.d.mts → index-C9F6f2iz.d.mts} +2 -2
- package/dist/{index-B4gKj0ro.d.mts → index-C9qYyRgt.d.mts} +2 -2
- package/dist/{index-CdM22eod.d.mts → index-Cou96DpL.d.mts} +1 -1
- package/dist/{index-BHXlpUg5.d.ts → index-Cy3K-Yao.d.ts} +1 -1
- package/dist/{index-D3GBq1P1.d.mts → index-D4ju2J_e.d.mts} +1 -1
- package/dist/{index-BObJQar4.d.mts → index-DUHkH5t-.d.mts} +11 -1
- package/dist/{index-CSTyna62.d.ts → index-DcQm2dkr.d.ts} +11 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Dc15ure7.d.mts → types-DzVVzMYU.d.mts} +1 -1
- package/dist/{types-Dc15ure7.d.ts → types-DzVVzMYU.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/example/src/pages/Wallet/components/MatchWallet.tsx +24 -2
- package/package.json +1 -1
- package/dist/chunk-FYW4P7HS.mjs.map +0 -1
- /package/dist/{chunk-SB54XHCJ.mjs.map → chunk-EOT6XIVG.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, S as SOLModal, d as TONModal, T as TRONModal, f as TokenDetail, g as TokenSend, h as TokenSendList, j as TransactionList, U as UsernameModal, e as WalletAsset, W as WalletModal } from '../index-
|
|
2
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-
|
|
1
|
+
export { B as BTCModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, S as SOLModal, d as TONModal, T as TRONModal, f as TokenDetail, g as TokenSend, h as TokenSendList, j as TransactionList, U as UsernameModal, e as WalletAsset, W as WalletModal } from '../index-C9qYyRgt.mjs';
|
|
2
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-Cou96DpL.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DzVVzMYU.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, S as SOLModal, d as TONModal, T as TRONModal, f as TokenDetail, g as TokenSend, h as TokenSendList, j as TransactionList, U as UsernameModal, e as WalletAsset, W as WalletModal } from '../index-
|
|
2
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-
|
|
1
|
+
export { B as BTCModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, S as SOLModal, d as TONModal, T as TRONModal, f as TokenDetail, g as TokenSend, h as TokenSendList, j as TransactionList, U as UsernameModal, e as WalletAsset, W as WalletModal } from '../index-Bvc8cjpN.js';
|
|
2
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BcEreCxd.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DzVVzMYU.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
package/dist/components/index.js
CHANGED
|
@@ -2937,7 +2937,7 @@ function useMatchWalletAssetList({
|
|
|
2937
2937
|
}
|
|
2938
2938
|
return balances;
|
|
2939
2939
|
},
|
|
2940
|
-
enabled:
|
|
2940
|
+
enabled: !!publicClient,
|
|
2941
2941
|
refetchInterval: 15e3,
|
|
2942
2942
|
// Refresh every 15 seconds
|
|
2943
2943
|
retry: 3
|
|
@@ -2980,6 +2980,8 @@ function useMatchWalletAssetList({
|
|
|
2980
2980
|
list: assets,
|
|
2981
2981
|
isLoading: nativeBalanceQuery.isLoading || erc20BalanceQuery.isLoading,
|
|
2982
2982
|
isFetched: nativeBalanceQuery.isFetched && erc20BalanceQuery.isFetched,
|
|
2983
|
+
nativeBalanceQuery,
|
|
2984
|
+
erc20BalanceQuery,
|
|
2983
2985
|
nativeBalance: nativeBalanceQuery.data,
|
|
2984
2986
|
erc20Balances: erc20BalanceQuery.data
|
|
2985
2987
|
};
|
|
@@ -5651,7 +5653,7 @@ var import_react_intl21 = require("react-intl");
|
|
|
5651
5653
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
5652
5654
|
var Item = ({ data }) => {
|
|
5653
5655
|
const { address } = useWallet();
|
|
5654
|
-
const isOut = data.from == address;
|
|
5656
|
+
const isOut = data.from.toLowerCase() == address.toLowerCase();
|
|
5655
5657
|
const { chain, chainId, explorerLink, formatUnits: chainFormatUnits } = useMatchChain();
|
|
5656
5658
|
const { getContract } = useContractStore_default();
|
|
5657
5659
|
const [shouldRefetch, setShouldRefetch] = (0, import_react40.useState)(true);
|
|
@@ -5686,11 +5688,6 @@ var Item = ({ data }) => {
|
|
|
5686
5688
|
}
|
|
5687
5689
|
return chainFormatUnits(BigInt(data.value));
|
|
5688
5690
|
}, [data.input, transferType, data.value, getContract, chainId, data.to]);
|
|
5689
|
-
(0, import_react40.useEffect)(() => {
|
|
5690
|
-
if (data.hash) {
|
|
5691
|
-
setShouldRefetch(true);
|
|
5692
|
-
}
|
|
5693
|
-
}, [data.hash]);
|
|
5694
5691
|
const hashQuery = useHash({
|
|
5695
5692
|
hash: data.hash,
|
|
5696
5693
|
//@ts-ignore
|
|
@@ -5726,8 +5723,10 @@ var Item = ({ data }) => {
|
|
|
5726
5723
|
return "loading";
|
|
5727
5724
|
}, [data.extra?.status, data.source, hashQuery.data]);
|
|
5728
5725
|
(0, import_react40.useEffect)(() => {
|
|
5729
|
-
|
|
5730
|
-
|
|
5726
|
+
if (data.hash) {
|
|
5727
|
+
setShouldRefetch(status == "loading");
|
|
5728
|
+
}
|
|
5729
|
+
}, [status, data.hash]);
|
|
5731
5730
|
const symbol = (0, import_react40.useMemo)(() => {
|
|
5732
5731
|
if (transferType == "erc20_transfer") {
|
|
5733
5732
|
return getContract(chainId || 0, data.to)?.symbol || getContract(chainId || 0, data.to)?.name || "unknown";
|