@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.
@@ -9,7 +9,7 @@ import {
9
9
  unBindWalletApi,
10
10
  useUserInfo,
11
11
  verifyPohApi
12
- } from "./chunk-3CHFSRD3.mjs";
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-6RESIJXV.mjs.map
93
+ //# sourceMappingURL=chunk-GYHBGOEC.mjs.map
@@ -270,11 +270,11 @@ var getBindInfoApi = () => {
270
270
  method: "GET"
271
271
  });
272
272
  };
273
- var bindCexApi = ({ cex, api_key, api_secret }) => {
273
+ var bindCexApi = (data) => {
274
274
  return request_default({
275
275
  url: `/api/v1/cex/subscribe`,
276
276
  method: "POST",
277
- data: { cex, api_key, api_secret }
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: type != "OKX" && error, children: /* @__PURE__ */ jsx23(
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[${retry}/${times}]`, error);
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-3CHFSRD3.mjs.map
3920
+ //# sourceMappingURL=chunk-HL5ODTAH.mjs.map