@matchain/matchid-sdk-react 0.1.42-alpha.13 → 0.1.42-alpha.14
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-FNCYUW2N.mjs → chunk-A747P2WS.mjs} +2 -2
- package/dist/{chunk-EZHR56PJ.mjs → chunk-DWW3ZAJJ.mjs} +11 -13
- package/dist/chunk-DWW3ZAJJ.mjs.map +1 -0
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- 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.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-Bm1VurYT.d.ts → index-BQDL8XkC.d.ts} +1 -1
- package/dist/{index-Cf6kfHOs.d.mts → index-C1NfMaCm.d.mts} +1 -1
- package/dist/{index-DEwNjx57.d.mts → index-DAj3aVo6.d.mts} +1 -1
- package/dist/{index-vnxEmUFX.d.mts → index-DnK10Gz7.d.mts} +1 -1
- package/dist/{index-B1MrvbwC.d.ts → index-DzVjb4K-.d.ts} +1 -1
- package/dist/{index-Bmq8JOtv.d.mts → index-Rb-jdkzE.d.mts} +1 -1
- package/dist/{index-oiyw9mSV.d.ts → index-ivTptZeo.d.ts} +1 -1
- package/dist/{index-FtmjKzbF.d.ts → index-x432SkFJ.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-DHfZWETj.d.mts → types-E2MeOwmE.d.mts} +1 -1
- package/dist/{types-DHfZWETj.d.ts → types-E2MeOwmE.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-EZHR56PJ.mjs.map +0 -1
- /package/dist/{chunk-FNCYUW2N.mjs.map → chunk-A747P2WS.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
useMatchEvents,
|
|
5
5
|
useUserInfo,
|
|
6
6
|
useWallet
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-DPXMCLYK.mjs";
|
|
7
|
+
} from "../chunk-DWW3ZAJJ.mjs";
|
|
9
8
|
import "../chunk-SQIJR7RA.mjs";
|
|
9
|
+
import "../chunk-DPXMCLYK.mjs";
|
|
10
10
|
import "../chunk-J5LGTIGS.mjs";
|
|
11
11
|
export {
|
|
12
12
|
useCopyClipboard,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import { v as PohZkpassParams,
|
|
3
|
+
import { v as PohZkpassParams, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-E2MeOwmE.js';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-
|
|
2
|
+
import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-E2MeOwmE.mjs';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
2
|
-
import { A as AnyObject,
|
|
2
|
+
import { A as AnyObject, m as BindInfoType, n as BindItemType, o as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, p as DrawerProps, E as EmailModalProps, a as IEnvConfigType, q as IEnvName, r as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, s as IconProps, d as InputProps, L as LocaleType, f as LoginBoxProps, c as LoginMethodType, l as LoginModalProps, k as LoginPanelProps, t as MessageType, M as ModalProps, e as ModalWithHeaderProps, g as OtherLoginMethodType, O as OverviewInfo, u as PohItemType, v as PohZkpassParams, i as PopoverPositionType, P as PopoverProps, j as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, h as WalletType } from './types-E2MeOwmE.mjs';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-
|
|
1
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-E2MeOwmE.mjs';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
2
|
-
import { A as AnyObject,
|
|
2
|
+
import { A as AnyObject, m as BindInfoType, n as BindItemType, o as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, p as DrawerProps, E as EmailModalProps, a as IEnvConfigType, q as IEnvName, r as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, s as IconProps, d as InputProps, L as LocaleType, f as LoginBoxProps, c as LoginMethodType, l as LoginModalProps, k as LoginPanelProps, t as MessageType, M as ModalProps, e as ModalWithHeaderProps, g as OtherLoginMethodType, O as OverviewInfo, u as PohItemType, v as PohZkpassParams, i as PopoverPositionType, P as PopoverProps, j as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, h as WalletType } from './types-E2MeOwmE.js';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import { v as PohZkpassParams,
|
|
3
|
+
import { v as PohZkpassParams, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-E2MeOwmE.mjs';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-
|
|
1
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-E2MeOwmE.js';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-
|
|
2
|
+
import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-E2MeOwmE.js';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
5
5
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-E2MeOwmE.mjs';
|
|
3
|
+
export { i as Components } from './index-C1NfMaCm.mjs';
|
|
4
|
+
export { i as Hooks } from './index-DnK10Gz7.mjs';
|
|
5
|
+
export { i as Api } from './index-Rb-jdkzE.mjs';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
7
|
-
export { i as Types } from './index-
|
|
7
|
+
export { i as Types } from './index-DAj3aVo6.mjs';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './mpc-CTbBWHld.mjs';
|
|
10
10
|
import 'viem';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-E2MeOwmE.js';
|
|
3
|
+
export { i as Components } from './index-x432SkFJ.js';
|
|
4
|
+
export { i as Hooks } from './index-ivTptZeo.js';
|
|
5
|
+
export { i as Api } from './index-BQDL8XkC.js';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
7
|
-
export { i as Types } from './index-
|
|
7
|
+
export { i as Types } from './index-DzVjb4K-.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './mpc-CTbBWHld.js';
|
|
10
10
|
import 'viem';
|
package/dist/index.js
CHANGED
|
@@ -4773,6 +4773,10 @@ function BusinessProvider({ children }) {
|
|
|
4773
4773
|
onGenerate();
|
|
4774
4774
|
}
|
|
4775
4775
|
}, [token, overview, walletConfig]);
|
|
4776
|
+
const walletModalClose = (func) => {
|
|
4777
|
+
WalletModalStore.close();
|
|
4778
|
+
func();
|
|
4779
|
+
};
|
|
4776
4780
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
|
|
4777
4781
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4778
4782
|
PasswordModal,
|
|
@@ -4797,7 +4801,7 @@ function BusinessProvider({ children }) {
|
|
|
4797
4801
|
isOpen: SOLIsOpen && (SOLType == "login" && !overview && !token || SOLType == "bind" && !!token && !!overview),
|
|
4798
4802
|
onClose: SOLClose,
|
|
4799
4803
|
type: SOLType,
|
|
4800
|
-
onSuccess: SOLClose,
|
|
4804
|
+
onSuccess: () => walletModalClose(SOLClose),
|
|
4801
4805
|
zIndex: 199
|
|
4802
4806
|
}
|
|
4803
4807
|
),
|
|
@@ -4807,7 +4811,7 @@ function BusinessProvider({ children }) {
|
|
|
4807
4811
|
isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
|
|
4808
4812
|
onClose: TRONClose,
|
|
4809
4813
|
type: TRONType,
|
|
4810
|
-
onSuccess: TRONClose,
|
|
4814
|
+
onSuccess: () => walletModalClose(TRONClose),
|
|
4811
4815
|
zIndex: 199
|
|
4812
4816
|
}
|
|
4813
4817
|
),
|
|
@@ -4817,7 +4821,7 @@ function BusinessProvider({ children }) {
|
|
|
4817
4821
|
isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
|
|
4818
4822
|
onClose: TONClose,
|
|
4819
4823
|
type: TONType,
|
|
4820
|
-
onSuccess: TONClose,
|
|
4824
|
+
onSuccess: () => walletModalClose(TONClose),
|
|
4821
4825
|
zIndex: 199
|
|
4822
4826
|
}
|
|
4823
4827
|
),
|
|
@@ -4827,7 +4831,7 @@ function BusinessProvider({ children }) {
|
|
|
4827
4831
|
isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
|
|
4828
4832
|
onClose: BTCClose,
|
|
4829
4833
|
type: BTCType,
|
|
4830
|
-
onSuccess: BTCClose,
|
|
4834
|
+
onSuccess: () => walletModalClose(BTCClose),
|
|
4831
4835
|
zIndex: 199
|
|
4832
4836
|
}
|
|
4833
4837
|
),
|
|
@@ -5097,6 +5101,7 @@ function useInit({
|
|
|
5097
5101
|
setLocale,
|
|
5098
5102
|
locale: realLocale
|
|
5099
5103
|
} = useLocalStore_default();
|
|
5104
|
+
const walletModalStore = useWalletModalStore();
|
|
5100
5105
|
const overviewLoadingRef = (0, import_react29.useRef)(false);
|
|
5101
5106
|
const searchParams = new URLSearchParams(window.location.search);
|
|
5102
5107
|
const matchToken = searchParams.get("matchToken");
|
|
@@ -5136,6 +5141,7 @@ function useInit({
|
|
|
5136
5141
|
eventManager_default.emit("onBind", res.data);
|
|
5137
5142
|
if (events && events.onBind) {
|
|
5138
5143
|
events.onBind(res.data);
|
|
5144
|
+
walletModalStore.close();
|
|
5139
5145
|
}
|
|
5140
5146
|
}
|
|
5141
5147
|
};
|
|
@@ -5686,14 +5692,6 @@ var MatchProvider = ({
|
|
|
5686
5692
|
endpoints,
|
|
5687
5693
|
locale
|
|
5688
5694
|
});
|
|
5689
|
-
matchlog_default.log("config", {
|
|
5690
|
-
appid,
|
|
5691
|
-
events,
|
|
5692
|
-
theme,
|
|
5693
|
-
endpoints,
|
|
5694
|
-
locale,
|
|
5695
|
-
wallet
|
|
5696
|
-
});
|
|
5697
5695
|
useWalletInit({
|
|
5698
5696
|
config: wallet
|
|
5699
5697
|
});
|