@matchain/matchid-sdk-react 0.1.56-alpha.13 → 0.1.56-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/hooks.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  useTransaction,
15
15
  useUserInfo,
16
16
  useWallet
17
- } from "./chunk-RPATABCS.mjs";
17
+ } from "./chunk-EMSBFHPM.mjs";
18
18
  import "./chunk-UA6XHZHX.mjs";
19
19
  import "./chunk-IZOOVZAD.mjs";
20
20
  import "./chunk-FQ6PYZPD.mjs";
package/dist/index.css CHANGED
@@ -395,7 +395,7 @@ body {
395
395
  }
396
396
 
397
397
  .matchid-login-panel-box {
398
- max-height: 683px;
398
+ max-height: 500px;
399
399
  overflow-y: auto;
400
400
 
401
401
  &::-webkit-scrollbar {
package/dist/index.js CHANGED
@@ -2999,6 +2999,16 @@ function EmailModal({
2999
2999
  setEmailVal("");
3000
3000
  }
3001
3001
  }, [isOpen]);
3002
+ const verifySuccess = () => {
3003
+ console.log("verifySuccess", onLogin);
3004
+ if (onLogin) {
3005
+ console.log("verifySuccess to login");
3006
+ onLogin();
3007
+ } else {
3008
+ console.log("verifySuccess to close");
3009
+ onClose && onClose();
3010
+ }
3011
+ };
3002
3012
  return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3003
3013
  ModalWithHeader,
3004
3014
  {
@@ -3012,7 +3022,7 @@ function EmailModal({
3012
3022
  children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3013
3023
  setEmailVal(email);
3014
3024
  setStep("verify");
3015
- } }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepVerify, { email: emailVal, type, onSuccess: onLogin })
3025
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepVerify, { email: emailVal, type, onSuccess: verifySuccess })
3016
3026
  }
3017
3027
  );
3018
3028
  }
@@ -7890,7 +7900,7 @@ function BusinessProvider({ children }) {
7890
7900
  {
7891
7901
  isOpen: EmailModalStore.isOpen && (EmailModalStore.type == "login" && !overview && !token || EmailModalStore.type == "bind" && !!token && !!overview),
7892
7902
  onClose: EmailModalStore.close,
7893
- onLogin: () => EmailModalStore.close,
7903
+ onLogin: EmailModalStore.close,
7894
7904
  type: EmailModalStore.type,
7895
7905
  zIndex: 199
7896
7906
  }