@matchain/matchid-sdk-react 0.1.40-alpha.2 → 0.1.40-alpha.4
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/{chunk-6RESIJXV.mjs → chunk-GYHBGOEC.mjs} +2 -2
- package/dist/{chunk-3CHFSRD3.mjs → chunk-HL5ODTAH.mjs} +5 -11
- package/dist/chunk-HL5ODTAH.mjs.map +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.d.mts +1 -1
- package/dist/hooks/api/index.d.ts +1 -1
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-mEK7Lcps.d.mts → index-CiM5L42f.d.mts} +2 -1
- package/dist/{index-DlrDrTMk.d.ts → index-DBscX8i6.d.ts} +2 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-3CHFSRD3.mjs.map +0 -1
- /package/dist/{chunk-6RESIJXV.mjs.map → chunk-GYHBGOEC.mjs.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
unBindWalletApi,
|
|
10
10
|
useUserInfo,
|
|
11
11
|
verifyPohApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HL5ODTAH.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
user_exports,
|
|
91
91
|
api_exports
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-GYHBGOEC.mjs.map
|
|
@@ -270,11 +270,11 @@ var getBindInfoApi = () => {
|
|
|
270
270
|
method: "GET"
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
|
-
var bindCexApi = (
|
|
273
|
+
var bindCexApi = (data) => {
|
|
274
274
|
return request_default({
|
|
275
275
|
url: `/api/v1/cex/subscribe`,
|
|
276
276
|
method: "POST",
|
|
277
|
-
data
|
|
277
|
+
data
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
var unBindApi = ({ type }) => {
|
|
@@ -2607,7 +2607,7 @@ function CEXBindModal({
|
|
|
2607
2607
|
) }),
|
|
2608
2608
|
/* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
|
|
2609
2609
|
id: "CEXBindApiSecretKey"
|
|
2610
|
-
}), error:
|
|
2610
|
+
}), error: !needPassphrase && error, children: /* @__PURE__ */ jsx23(
|
|
2611
2611
|
Input,
|
|
2612
2612
|
{
|
|
2613
2613
|
value: secret,
|
|
@@ -2885,17 +2885,11 @@ function useWalletInit({
|
|
|
2885
2885
|
document.body.insertBefore(iframe, document.body.firstChild);
|
|
2886
2886
|
window.sendMatchWalletMessage = (method, data, retry = 5, times = 0) => {
|
|
2887
2887
|
try {
|
|
2888
|
-
if (!iframeLoaded) {
|
|
2889
|
-
throw new Error("Wallet not ready");
|
|
2890
|
-
}
|
|
2891
|
-
if (!walletInited) {
|
|
2892
|
-
throw new Error("Wallet not inited");
|
|
2893
|
-
}
|
|
2894
2888
|
if (!document.getElementById("match-wallet")) {
|
|
2895
2889
|
throw new Error("Wallet not found");
|
|
2896
2890
|
}
|
|
2897
2891
|
} catch (error) {
|
|
2898
|
-
console.error(`wallet init[${
|
|
2892
|
+
console.error(`wallet init[${times}/${retry}]`, error);
|
|
2899
2893
|
if (times < retry) {
|
|
2900
2894
|
setTimeout(() => {
|
|
2901
2895
|
window.sendMatchWalletMessage(method, data, retry, times + 1);
|
|
@@ -3923,4 +3917,4 @@ export {
|
|
|
3923
3917
|
MatchProvider,
|
|
3924
3918
|
useMatch
|
|
3925
3919
|
};
|
|
3926
|
-
//# sourceMappingURL=chunk-
|
|
3920
|
+
//# sourceMappingURL=chunk-HL5ODTAH.mjs.map
|