@matchain/matchid-sdk-react 0.1.42-alpha.13 → 0.1.42-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.
Files changed (37) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-FNCYUW2N.mjs → chunk-A747P2WS.mjs} +2 -2
  4. package/dist/{chunk-EZHR56PJ.mjs → chunk-DWW3ZAJJ.mjs} +11 -13
  5. package/dist/chunk-DWW3ZAJJ.mjs.map +1 -0
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +2 -2
  10. package/dist/hooks/api/index.d.mts +2 -2
  11. package/dist/hooks/api/index.d.ts +2 -2
  12. package/dist/hooks/api/index.js.map +1 -1
  13. package/dist/hooks/api/index.mjs +3 -3
  14. package/dist/hooks/index.d.mts +2 -2
  15. package/dist/hooks/index.d.ts +2 -2
  16. package/dist/hooks/index.js.map +1 -1
  17. package/dist/hooks/index.mjs +2 -2
  18. package/dist/{index-Bm1VurYT.d.ts → index-BQDL8XkC.d.ts} +1 -1
  19. package/dist/{index-Cf6kfHOs.d.mts → index-C1NfMaCm.d.mts} +1 -1
  20. package/dist/{index-DEwNjx57.d.mts → index-DAj3aVo6.d.mts} +1 -1
  21. package/dist/{index-vnxEmUFX.d.mts → index-DnK10Gz7.d.mts} +1 -1
  22. package/dist/{index-B1MrvbwC.d.ts → index-DzVjb4K-.d.ts} +1 -1
  23. package/dist/{index-Bmq8JOtv.d.mts → index-Rb-jdkzE.d.mts} +1 -1
  24. package/dist/{index-oiyw9mSV.d.ts → index-ivTptZeo.d.ts} +1 -1
  25. package/dist/{index-FtmjKzbF.d.ts → index-x432SkFJ.d.ts} +1 -1
  26. package/dist/index.d.mts +5 -5
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +10 -12
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +6 -6
  31. package/dist/types/index.d.mts +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/{types-DHfZWETj.d.mts → types-E2MeOwmE.d.mts} +1 -1
  34. package/dist/{types-DHfZWETj.d.ts → types-E2MeOwmE.d.ts} +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-EZHR56PJ.mjs.map +0 -1
  37. /package/dist/{chunk-FNCYUW2N.mjs.map → chunk-A747P2WS.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { CSSProperties } from 'react';
3
- import { m as IconProps$1 } from '../../types-DHfZWETj.mjs';
3
+ import { s as IconProps$1 } from '../../types-E2MeOwmE.mjs';
4
4
 
5
5
  declare function BackIcon({ color, size, className, style }: {
6
6
  color?: string;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { CSSProperties } from 'react';
3
- import { m as IconProps$1 } from '../../types-DHfZWETj.js';
3
+ import { s as IconProps$1 } from '../../types-E2MeOwmE.js';
4
4
 
5
5
  declare function BackIcon({ color, size, className, style }: {
6
6
  color?: string;
@@ -9,7 +9,7 @@ import {
9
9
  unBindWalletApi,
10
10
  useUserInfo,
11
11
  verifyPohApi
12
- } from "./chunk-EZHR56PJ.mjs";
12
+ } from "./chunk-DWW3ZAJJ.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-FNCYUW2N.mjs.map
93
+ //# sourceMappingURL=chunk-A747P2WS.mjs.map
@@ -3169,6 +3169,10 @@ function BusinessProvider({ children }) {
3169
3169
  onGenerate();
3170
3170
  }
3171
3171
  }, [token, overview, walletConfig]);
3172
+ const walletModalClose = (func) => {
3173
+ WalletModalStore.close();
3174
+ func();
3175
+ };
3172
3176
  return /* @__PURE__ */ jsxs22(Fragment5, { children: [
3173
3177
  /* @__PURE__ */ jsx31(
3174
3178
  PasswordModal,
@@ -3193,7 +3197,7 @@ function BusinessProvider({ children }) {
3193
3197
  isOpen: SOLIsOpen && (SOLType == "login" && !overview && !token || SOLType == "bind" && !!token && !!overview),
3194
3198
  onClose: SOLClose,
3195
3199
  type: SOLType,
3196
- onSuccess: SOLClose,
3200
+ onSuccess: () => walletModalClose(SOLClose),
3197
3201
  zIndex: 199
3198
3202
  }
3199
3203
  ),
@@ -3203,7 +3207,7 @@ function BusinessProvider({ children }) {
3203
3207
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
3204
3208
  onClose: TRONClose,
3205
3209
  type: TRONType,
3206
- onSuccess: TRONClose,
3210
+ onSuccess: () => walletModalClose(TRONClose),
3207
3211
  zIndex: 199
3208
3212
  }
3209
3213
  ),
@@ -3213,7 +3217,7 @@ function BusinessProvider({ children }) {
3213
3217
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
3214
3218
  onClose: TONClose,
3215
3219
  type: TONType,
3216
- onSuccess: TONClose,
3220
+ onSuccess: () => walletModalClose(TONClose),
3217
3221
  zIndex: 199
3218
3222
  }
3219
3223
  ),
@@ -3223,7 +3227,7 @@ function BusinessProvider({ children }) {
3223
3227
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
3224
3228
  onClose: BTCClose,
3225
3229
  type: BTCType,
3226
- onSuccess: BTCClose,
3230
+ onSuccess: () => walletModalClose(BTCClose),
3227
3231
  zIndex: 199
3228
3232
  }
3229
3233
  ),
@@ -3781,6 +3785,7 @@ function useInit({
3781
3785
  setLocale,
3782
3786
  locale: realLocale
3783
3787
  } = useLocalStore_default();
3788
+ const walletModalStore = useWalletModalStore();
3784
3789
  const overviewLoadingRef = useRef3(false);
3785
3790
  const searchParams = new URLSearchParams(window.location.search);
3786
3791
  const matchToken = searchParams.get("matchToken");
@@ -3820,6 +3825,7 @@ function useInit({
3820
3825
  eventManager_default.emit("onBind", res.data);
3821
3826
  if (events && events.onBind) {
3822
3827
  events.onBind(res.data);
3828
+ walletModalStore.close();
3823
3829
  }
3824
3830
  }
3825
3831
  };
@@ -4370,14 +4376,6 @@ var MatchProvider = ({
4370
4376
  endpoints,
4371
4377
  locale
4372
4378
  });
4373
- matchlog_default.log("config", {
4374
- appid,
4375
- events,
4376
- theme,
4377
- endpoints,
4378
- locale,
4379
- wallet
4380
- });
4381
4379
  useWalletInit({
4382
4380
  config: wallet
4383
4381
  });
@@ -4743,4 +4741,4 @@ export {
4743
4741
  MatchProvider,
4744
4742
  useMatch
4745
4743
  };
4746
- //# sourceMappingURL=chunk-EZHR56PJ.mjs.map
4744
+ //# sourceMappingURL=chunk-DWW3ZAJJ.mjs.map