@matchain/matchid-sdk-react 0.1.56-alpha.13 → 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.
- package/dist/api.js +1 -0
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +2 -2
- package/dist/{chunk-RPATABCS.mjs → chunk-A47WTLYD.mjs} +13 -5
- package/dist/chunk-A47WTLYD.mjs.map +1 -0
- package/dist/{chunk-7K4E64WH.mjs → chunk-FZHJNSAP.mjs} +2 -2
- package/dist/components.js +11 -3
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +1 -0
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/{index-CPnKc6o4.d.ts → index-BINNnZNA.d.ts} +1 -0
- package/dist/{index-Bjb30oE3.d.mts → index-BIVGhRja.d.mts} +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -1
- package/example/src/App.tsx +1 -1
- package/package.json +1 -1
- package/dist/chunk-RPATABCS.mjs.map +0 -1
- /package/dist/{chunk-7K4E64WH.mjs.map → chunk-FZHJNSAP.mjs.map} +0 -0
package/dist/api.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FZHJNSAP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A47WTLYD.mjs";
|
|
10
10
|
import "./chunk-UA6XHZHX.mjs";
|
|
11
11
|
import "./chunk-IZOOVZAD.mjs";
|
|
12
12
|
import "./chunk-FQ6PYZPD.mjs";
|
|
@@ -3219,7 +3219,7 @@ function BusinessProvider({ children }) {
|
|
|
3219
3219
|
{
|
|
3220
3220
|
isOpen: EmailModalStore.isOpen && (EmailModalStore.type == "login" && !overview && !token || EmailModalStore.type == "bind" && !!token && !!overview),
|
|
3221
3221
|
onClose: EmailModalStore.close,
|
|
3222
|
-
onLogin:
|
|
3222
|
+
onLogin: EmailModalStore.close,
|
|
3223
3223
|
type: EmailModalStore.type,
|
|
3224
3224
|
zIndex: 199
|
|
3225
3225
|
}
|
|
@@ -4840,6 +4840,7 @@ function useUserInfo() {
|
|
|
4840
4840
|
auth,
|
|
4841
4841
|
login: loginMethod,
|
|
4842
4842
|
bind,
|
|
4843
|
+
getBindEmailCode: getLoginEmailCode,
|
|
4843
4844
|
bindByEmail,
|
|
4844
4845
|
getAuthInfo,
|
|
4845
4846
|
invite
|
|
@@ -4992,6 +4993,13 @@ function EmailModal({
|
|
|
4992
4993
|
setEmailVal("");
|
|
4993
4994
|
}
|
|
4994
4995
|
}, [isOpen]);
|
|
4996
|
+
const verifySuccess = () => {
|
|
4997
|
+
if (onLogin) {
|
|
4998
|
+
onLogin();
|
|
4999
|
+
} else {
|
|
5000
|
+
onClose && onClose();
|
|
5001
|
+
}
|
|
5002
|
+
};
|
|
4995
5003
|
return /* @__PURE__ */ jsx29(
|
|
4996
5004
|
ModalWithHeader,
|
|
4997
5005
|
{
|
|
@@ -5005,7 +5013,7 @@ function EmailModal({
|
|
|
5005
5013
|
children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
5006
5014
|
setEmailVal(email);
|
|
5007
5015
|
setStep("verify");
|
|
5008
|
-
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess:
|
|
5016
|
+
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess: verifySuccess })
|
|
5009
5017
|
}
|
|
5010
5018
|
);
|
|
5011
5019
|
}
|
|
@@ -5124,7 +5132,7 @@ function LoginBox({
|
|
|
5124
5132
|
walletMethods: walletMethodList
|
|
5125
5133
|
};
|
|
5126
5134
|
}, [config.platform, recommendMethods, methods, walletMethods]);
|
|
5127
|
-
const { open: emailOpen } = useEmailModalStore();
|
|
5135
|
+
const { isOpen: emailIsOpen, open: emailOpen } = useEmailModalStore();
|
|
5128
5136
|
const { login } = useUserInfo();
|
|
5129
5137
|
const [showWallet, setShowWallet] = useState20(false);
|
|
5130
5138
|
const intl = useIntl9();
|
|
@@ -5190,7 +5198,7 @@ function LoginBox({
|
|
|
5190
5198
|
}
|
|
5191
5199
|
};
|
|
5192
5200
|
const { walletMap } = useWalletConfig();
|
|
5193
|
-
return /* @__PURE__ */ jsx30(Fragment5, { children: (!inModal || !
|
|
5201
|
+
return /* @__PURE__ */ jsx30(Fragment5, { children: (!inModal || !emailIsOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
|
|
5194
5202
|
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
5195
5203
|
return /* @__PURE__ */ jsx30(
|
|
5196
5204
|
RecommendItem,
|
|
@@ -7765,4 +7773,4 @@ export {
|
|
|
7765
7773
|
MatchProvider,
|
|
7766
7774
|
useMatch
|
|
7767
7775
|
};
|
|
7768
|
-
//# sourceMappingURL=chunk-
|
|
7776
|
+
//# sourceMappingURL=chunk-A47WTLYD.mjs.map
|