@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.
Files changed (39) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-DWW3ZAJJ.mjs → chunk-UCIEZ3XI.mjs} +24 -21
  4. package/dist/chunk-UCIEZ3XI.mjs.map +1 -0
  5. package/dist/{chunk-A747P2WS.mjs → chunk-WCS3X2LC.mjs} +2 -2
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js +2 -1
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +1 -1
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +2 -2
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +8 -6
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +1 -1
  20. package/dist/{index-DnK10Gz7.d.mts → index-Bluim2ZP.d.mts} +1 -1
  21. package/dist/{index-DzVjb4K-.d.ts → index-BxS06a5O.d.ts} +1 -1
  22. package/dist/{index-x432SkFJ.d.ts → index-CLvQH5gM.d.ts} +1 -1
  23. package/dist/{index-BQDL8XkC.d.ts → index-Ca9nh_8s.d.ts} +1 -1
  24. package/dist/{index-Rb-jdkzE.d.mts → index-DFZpfAfc.d.mts} +1 -1
  25. package/dist/{index-C1NfMaCm.d.mts → index-DlhAHm_s.d.mts} +1 -1
  26. package/dist/{index-ivTptZeo.d.ts → index-EqksEEto.d.ts} +1 -1
  27. package/dist/{index-DAj3aVo6.d.mts → index-q5XDobUF.d.mts} +1 -1
  28. package/dist/index.d.mts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.js +4 -3
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +2 -2
  33. package/dist/types/index.d.mts +1 -1
  34. package/dist/types/index.d.ts +1 -1
  35. package/dist/{types-E2MeOwmE.d.mts → types-CVwZEgQ0.d.mts} +1 -1
  36. package/dist/{types-E2MeOwmE.d.ts → types-CVwZEgQ0.d.ts} +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-DWW3ZAJJ.mjs.map +0 -1
  39. /package/dist/{chunk-A747P2WS.mjs.map → chunk-WCS3X2LC.mjs.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  useMatchEvents,
5
5
  useUserInfo,
6
6
  useWallet
7
- } from "../chunk-DWW3ZAJJ.mjs";
7
+ } from "../chunk-UCIEZ3XI.mjs";
8
8
  import "../chunk-SQIJR7RA.mjs";
9
9
  import "../chunk-DPXMCLYK.mjs";
10
10
  import "../chunk-J5LGTIGS.mjs";
@@ -1,4 +1,4 @@
1
- import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-E2MeOwmE.mjs';
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, 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';
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, 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';
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-E2MeOwmE.js';
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-E2MeOwmE.mjs';
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, 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';
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 { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-E2MeOwmE.js';
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, 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';
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-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';
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-DAj3aVo6.mjs';
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-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';
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-DzVjb4K-.js';
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: 199
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
  };