@matchain/matchid-sdk-react 0.1.56-alpha.14 → 0.1.56-alpha.15

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.
@@ -11,7 +11,7 @@ import {
11
11
  useUserInfo,
12
12
  verifyPohApi,
13
13
  wallet_exports
14
- } from "./chunk-EMSBFHPM.mjs";
14
+ } from "./chunk-A47WTLYD.mjs";
15
15
  import {
16
16
  __export
17
17
  } from "./chunk-J5LGTIGS.mjs";
@@ -94,4 +94,4 @@ export {
94
94
  user_exports,
95
95
  api_exports
96
96
  };
97
- //# sourceMappingURL=chunk-SEACJPL6.mjs.map
97
+ //# sourceMappingURL=chunk-FZHJNSAP.mjs.map
@@ -3670,6 +3670,7 @@ function useUserInfo() {
3670
3670
  auth,
3671
3671
  login: loginMethod,
3672
3672
  bind,
3673
+ getBindEmailCode: getLoginEmailCode,
3673
3674
  bindByEmail,
3674
3675
  getAuthInfo,
3675
3676
  invite
@@ -3823,12 +3824,9 @@ function EmailModal({
3823
3824
  }
3824
3825
  }, [isOpen]);
3825
3826
  const verifySuccess = () => {
3826
- console.log("verifySuccess", onLogin);
3827
3827
  if (onLogin) {
3828
- console.log("verifySuccess to login");
3829
3828
  onLogin();
3830
3829
  } else {
3831
- console.log("verifySuccess to close");
3832
3830
  onClose && onClose();
3833
3831
  }
3834
3832
  };
@@ -3964,7 +3962,7 @@ function LoginBox({
3964
3962
  walletMethods: walletMethodList
3965
3963
  };
3966
3964
  }, [config.platform, recommendMethods, methods, walletMethods]);
3967
- const { open: emailOpen } = useEmailModalStore();
3965
+ const { isOpen: emailIsOpen, open: emailOpen } = useEmailModalStore();
3968
3966
  const { login } = useUserInfo();
3969
3967
  const [showWallet, setShowWallet] = (0, import_react26.useState)(false);
3970
3968
  const intl = (0, import_react_intl10.useIntl)();
@@ -4030,7 +4028,7 @@ function LoginBox({
4030
4028
  }
4031
4029
  };
4032
4030
  const { walletMap } = useWalletConfig();
4033
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, { children: (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-box", children: [
4031
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, { children: (!inModal || !emailIsOpen) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-box", children: [
4034
4032
  /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
4035
4033
  return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4036
4034
  RecommendItem,