@matchain/matchid-sdk-react 0.1.42-alpha.14 → 0.1.42-alpha.16
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-DWW3ZAJJ.mjs → chunk-UCIEZ3XI.mjs} +24 -21
- package/dist/chunk-UCIEZ3XI.mjs.map +1 -0
- package/dist/{chunk-A747P2WS.mjs → chunk-WCS3X2LC.mjs} +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -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 +8 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-DnK10Gz7.d.mts → index-Bluim2ZP.d.mts} +1 -1
- package/dist/{index-DzVjb4K-.d.ts → index-BxS06a5O.d.ts} +1 -1
- package/dist/{index-x432SkFJ.d.ts → index-CLvQH5gM.d.ts} +1 -1
- package/dist/{index-BQDL8XkC.d.ts → index-Ca9nh_8s.d.ts} +1 -1
- package/dist/{index-Rb-jdkzE.d.mts → index-DFZpfAfc.d.mts} +1 -1
- package/dist/{index-C1NfMaCm.d.mts → index-DlhAHm_s.d.mts} +1 -1
- package/dist/{index-ivTptZeo.d.ts → index-EqksEEto.d.ts} +1 -1
- package/dist/{index-DAj3aVo6.d.mts → index-q5XDobUF.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -3
- 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-E2MeOwmE.d.mts → types-CVwZEgQ0.d.mts} +1 -1
- package/dist/{types-E2MeOwmE.d.ts → types-CVwZEgQ0.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-DWW3ZAJJ.mjs.map +0 -1
- /package/dist/{chunk-A747P2WS.mjs.map → chunk-WCS3X2LC.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CVwZEgQ0.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, 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,
|
|
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, j as ISocialLoginMethod, s as IconProps, b as InputProps, L as LocaleType, d as LoginBoxProps, l as LoginMethodType, i as LoginModalProps, h as LoginPanelProps, t as MessageType, M as ModalProps, c as ModalWithHeaderProps, O as OtherLoginMethodType, k as OverviewInfo, u as PohItemType, v as PohZkpassParams, f as PopoverPositionType, P as PopoverProps, g as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, e as WalletType } from './types-CVwZEgQ0.js';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps,
|
|
2
|
+
import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, e as WalletType, f as PopoverPositionType, g as PopoverTypeType, h as LoginPanelProps, i as LoginModalProps } from './types-CVwZEgQ0.js';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
5
5
|
|
|
@@ -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, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-
|
|
3
|
+
import { v as PohZkpassParams, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-CVwZEgQ0.js';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -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, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-
|
|
3
|
+
import { v as PohZkpassParams, n as BindItemType, m as BindInfoType, u as PohItemType } from './types-CVwZEgQ0.mjs';
|
|
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,
|
|
2
|
+
import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, e as WalletType, f as PopoverPositionType, g as PopoverTypeType, h as LoginPanelProps, i as LoginModalProps } from './types-CVwZEgQ0.mjs';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CVwZEgQ0.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 { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
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,
|
|
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, j as ISocialLoginMethod, s as IconProps, b as InputProps, L as LocaleType, d as LoginBoxProps, l as LoginMethodType, i as LoginModalProps, h as LoginPanelProps, t as MessageType, M as ModalProps, c as ModalWithHeaderProps, O as OtherLoginMethodType, k as OverviewInfo, u as PohItemType, v as PohZkpassParams, f as PopoverPositionType, P as PopoverProps, g as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, e as WalletType } from './types-CVwZEgQ0.mjs';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
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-CVwZEgQ0.mjs';
|
|
3
|
+
export { i as Components } from './index-DlhAHm_s.mjs';
|
|
4
|
+
export { i as Hooks } from './index-Bluim2ZP.mjs';
|
|
5
|
+
export { i as Api } from './index-DFZpfAfc.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-q5XDobUF.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-CVwZEgQ0.js';
|
|
3
|
+
export { i as Components } from './index-CLvQH5gM.js';
|
|
4
|
+
export { i as Hooks } from './index-EqksEEto.js';
|
|
5
|
+
export { i as Api } from './index-Ca9nh_8s.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-BxS06a5O.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './mpc-CTbBWHld.js';
|
|
10
10
|
import 'viem';
|
package/dist/index.js
CHANGED
|
@@ -2416,6 +2416,7 @@ function PasswordModal({
|
|
|
2416
2416
|
const [rePassword, setRePassword] = (0, import_react8.useState)("");
|
|
2417
2417
|
const [error, setError] = (0, import_react8.useState)("");
|
|
2418
2418
|
const { generateEmbeddedWallets, initCore } = useWallet();
|
|
2419
|
+
const { walletReady } = useStore_default();
|
|
2419
2420
|
const intl = (0, import_react_intl.useIntl)();
|
|
2420
2421
|
const passwordError = (0, import_react8.useMemo)(() => {
|
|
2421
2422
|
if (password.length < 6) return intl.formatMessage({
|
|
@@ -2497,7 +2498,7 @@ function PasswordModal({
|
|
|
2497
2498
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2498
2499
|
Button,
|
|
2499
2500
|
{
|
|
2500
|
-
disabled: password.length == 0 || !!passwordError || !!rePasswordError,
|
|
2501
|
+
disabled: password.length == 0 || !!passwordError || !!rePasswordError || !walletReady,
|
|
2501
2502
|
highlight: true,
|
|
2502
2503
|
block: true,
|
|
2503
2504
|
size: "lg",
|
|
@@ -4852,7 +4853,7 @@ function BusinessProvider({ children }) {
|
|
|
4852
4853
|
onClose: WalletModalStore.close,
|
|
4853
4854
|
type: WalletModalStore.type,
|
|
4854
4855
|
methods: WalletModalStore.methods,
|
|
4855
|
-
zIndex:
|
|
4856
|
+
zIndex: 150
|
|
4856
4857
|
}
|
|
4857
4858
|
),
|
|
4858
4859
|
children
|
|
@@ -5138,10 +5139,10 @@ function useInit({
|
|
|
5138
5139
|
token: res.data.token || `${res.data.token_type} ${res.data.access_token}`
|
|
5139
5140
|
});
|
|
5140
5141
|
} else if (res.event == "bind") {
|
|
5142
|
+
walletModalStore.close();
|
|
5141
5143
|
eventManager_default.emit("onBind", res.data);
|
|
5142
5144
|
if (events && events.onBind) {
|
|
5143
5145
|
events.onBind(res.data);
|
|
5144
|
-
walletModalStore.close();
|
|
5145
5146
|
}
|
|
5146
5147
|
}
|
|
5147
5148
|
};
|