@matchain/matchid-sdk-react 0.1.55-alpha.2 → 0.1.55-alpha.4
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 +2 -2
- package/dist/assets/icon/index.d.ts +2 -2
- package/dist/{chunk-BQERJULN.mjs → chunk-E4FPSWA5.mjs} +2 -2
- package/dist/{chunk-WZQ56L5F.mjs → chunk-FZHWSL7D.mjs} +11 -2
- package/dist/chunk-FZHWSL7D.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 +10 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- 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 +2 -2
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +10 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-DbQn4z1l.d.ts → index--nlDB8VK.d.ts} +1 -1
- package/dist/{index-a_Qt7NXk.d.mts → index-8HIlfTvH.d.mts} +2 -2
- package/dist/{index-D0Psl8Ue.d.mts → index-B81tXGI5.d.mts} +1 -1
- package/dist/{index-CMH6Jesl.d.ts → index-BDljOvDd.d.ts} +1 -1
- package/dist/{index-Y5WRoqzn.d.ts → index-BST_yuES.d.ts} +1 -1
- package/dist/{index-6-oVBXRP.d.mts → index-BSgC4cJ0.d.mts} +1 -1
- package/dist/{index-agAVLGF5.d.ts → index-BXbyqSzw.d.ts} +1 -1
- package/dist/{index-CNH7a3bx.d.ts → index-C5SqtsGS.d.ts} +2 -2
- package/dist/{index-6kXyNEXB.d.ts → index-CYuesWgK.d.ts} +2 -2
- package/dist/{index-CBQXIlWu.d.mts → index-CpiO8xr3.d.mts} +1 -1
- package/dist/{index-G15A08DI.d.mts → index-D-dey6vu.d.mts} +1 -1
- package/dist/{index-CB6ZNvzn.d.mts → index-DHXT-zfU.d.mts} +2 -2
- package/dist/{index-CPPDmmz8.d.ts → index-J3gEuYby.d.ts} +2 -1
- package/dist/{index-CqKohtvj.d.mts → index-zIc7ghhJ.d.mts} +2 -1
- package/dist/index.css +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CXzZS0eM.d.mts → types-BKeVa_0l.d.mts} +1 -1
- package/dist/{types-CXzZS0eM.d.ts → types-BKeVa_0l.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +1 -1
- package/example/src/pages/Wallet/index.tsx +6 -1
- package/package.json +1 -1
- package/dist/chunk-WZQ56L5F.mjs.map +0 -1
- /package/dist/{chunk-BQERJULN.mjs.map → chunk-E4FPSWA5.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f 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, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-8HIlfTvH.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-CpiO8xr3.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-BKeVa_0l.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f 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, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-C5SqtsGS.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-BXbyqSzw.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-BKeVa_0l.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
package/dist/components/index.js
CHANGED
|
@@ -2374,6 +2374,14 @@ function useWallet() {
|
|
|
2374
2374
|
(0, import_react11.useEffect)(() => {
|
|
2375
2375
|
matchlog_default.log("qwe-evmAccount", evmAccount);
|
|
2376
2376
|
}, [evmAccount]);
|
|
2377
|
+
const exportWallet = async () => {
|
|
2378
|
+
await window.matchProvider.waitUntilWalletMessage({
|
|
2379
|
+
method: "exportWallet",
|
|
2380
|
+
data: {
|
|
2381
|
+
address
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
};
|
|
2377
2385
|
const realCreateWalletClient = (parameters) => {
|
|
2378
2386
|
if (!evmAccount) {
|
|
2379
2387
|
return;
|
|
@@ -2507,7 +2515,8 @@ function useWallet() {
|
|
|
2507
2515
|
signMessage: signMessage2,
|
|
2508
2516
|
signTransaction,
|
|
2509
2517
|
isRecovered,
|
|
2510
|
-
createWalletClient: realCreateWalletClient
|
|
2518
|
+
createWalletClient: realCreateWalletClient,
|
|
2519
|
+
exportWallet
|
|
2511
2520
|
};
|
|
2512
2521
|
}
|
|
2513
2522
|
|