@matchain/matchid-sdk-react 0.1.53-alpha.16 → 0.1.53-alpha.17

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 (46) hide show
  1. package/dist/assets/icon/index.d.mts +2 -2
  2. package/dist/assets/icon/index.d.ts +2 -2
  3. package/dist/{chunk-UOHVZWED.mjs → chunk-CNO5SYSQ.mjs} +38 -39
  4. package/dist/chunk-CNO5SYSQ.mjs.map +1 -0
  5. package/dist/components/index.d.mts +3 -3
  6. package/dist/components/index.d.ts +3 -3
  7. package/dist/components/index.js +99 -91
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +1 -1
  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 +93 -89
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +1 -1
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +95 -91
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +1 -1
  20. package/dist/{index-Na2Ub13l.d.mts → index-B1T3lcwo.d.mts} +1 -1
  21. package/dist/{index-ChklXND5.d.ts → index-B6Tmp2HR.d.ts} +2 -2
  22. package/dist/{index-_9VVEy7O.d.ts → index-B6pp5UQe.d.ts} +1 -1
  23. package/dist/{index-B16U2SHA.d.ts → index-BR3CyOOn.d.ts} +3 -2
  24. package/dist/{index-B2DkI1ML.d.mts → index-BeTS09HM.d.mts} +1 -1
  25. package/dist/{index-nMzH5qxx.d.mts → index-BxHKPC5n.d.mts} +1 -1
  26. package/dist/{index-C7vPCjcT.d.mts → index-CA7lhjpa.d.mts} +2 -2
  27. package/dist/{index-jQp1rITQ.d.ts → index-CRoZ0p2b.d.ts} +2 -2
  28. package/dist/{index-zJQVg2B1.d.mts → index-CXPCmoIu.d.mts} +3 -2
  29. package/dist/{index-ByjogbBx.d.mts → index-Ce3oCu6-.d.mts} +1 -1
  30. package/dist/{index-BxWVN7HQ.d.mts → index-Ci_ub_5y.d.mts} +2 -2
  31. package/dist/{index-Dfckd7XV.d.ts → index-DKV8v6s_.d.ts} +1 -1
  32. package/dist/{index-CYXjMyV_.d.ts → index-Dnjr-WPp.d.ts} +1 -1
  33. package/dist/{index-jG0evmQL.d.ts → index-IHigYscw.d.ts} +1 -1
  34. package/dist/index.d.mts +8 -8
  35. package/dist/index.d.ts +8 -8
  36. package/dist/index.js +134 -126
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/types/index.d.mts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/{types-B5QEZ2fv.d.mts → types-mRkAnXBf.d.mts} +8 -1
  42. package/dist/{types-B5QEZ2fv.d.ts → types-mRkAnXBf.d.ts} +8 -1
  43. package/dist/ui/index.d.mts +3 -3
  44. package/dist/ui/index.d.ts +3 -3
  45. package/package.json +1 -1
  46. package/dist/chunk-UOHVZWED.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
- export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-Na2Ub13l.mjs';
1
+ export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-B1T3lcwo.mjs';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
- import '../../types-B5QEZ2fv.mjs';
4
+ import '../../types-mRkAnXBf.mjs';
5
5
  import '@tanstack/react-query/src/types';
@@ -1,5 +1,5 @@
1
- export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-_9VVEy7O.js';
1
+ export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-B6pp5UQe.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
- import '../../types-B5QEZ2fv.js';
4
+ import '../../types-mRkAnXBf.js';
5
5
  import '@tanstack/react-query/src/types';
@@ -2331,23 +2331,8 @@ function WalletModalContentV2(props) {
2331
2331
  }
2332
2332
 
2333
2333
  // src/components/EVMModal/index.tsx
2334
- import {
2335
- mainnet,
2336
- polygon,
2337
- optimism,
2338
- arbitrum,
2339
- base,
2340
- bsc
2341
- } from "wagmi/chains";
2342
- import { getDefaultConfig, RainbowKitProvider, useConnectModal } from "@rainbow-me/rainbowkit";
2343
- import { useAccount, useChainId, useConfig, useDisconnect, WagmiProvider } from "wagmi";
2344
- import {
2345
- bitgetWallet,
2346
- injectedWallet,
2347
- metaMaskWallet,
2348
- okxWallet,
2349
- walletConnectWallet
2350
- } from "@rainbow-me/rainbowkit/wallets";
2334
+ import { useConnectModal } from "@rainbow-me/rainbowkit";
2335
+ import { useAccount, useChainId, useConfig, useDisconnect } from "wagmi";
2351
2336
 
2352
2337
  // src/hooks/useWalletBox.ts
2353
2338
  import { useEffect as useEffect9, useRef as useRef2, useState as useState14 } from "react";
@@ -2778,23 +2763,6 @@ function WalletContent({
2778
2763
  }
2779
2764
  );
2780
2765
  }
2781
- var wagmiConfig = getDefaultConfig({
2782
- appName: "MatchID",
2783
- projectId: "9ac6ea7e07860f04616fb311b447dee9",
2784
- wallets: [
2785
- {
2786
- groupName: "Recommended",
2787
- wallets: [
2788
- metaMaskWallet,
2789
- walletConnectWallet,
2790
- okxWallet,
2791
- bitgetWallet,
2792
- injectedWallet
2793
- ]
2794
- }
2795
- ],
2796
- chains: [mainnet, polygon, optimism, arbitrum, base, matchMain, matchTest, bsc]
2797
- });
2798
2766
  function EVMConnectModal({
2799
2767
  type = "login",
2800
2768
  onSuccess,
@@ -2805,7 +2773,7 @@ function EVMConnectModal({
2805
2773
  id: type == "bind" ? "bindWith" : "loginWith"
2806
2774
  }, {
2807
2775
  name: "EVM"
2808
- }), children: /* @__PURE__ */ jsx17(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx17(RainbowKitProvider, { children: /* @__PURE__ */ jsx17(WalletContent, { onSuccess, type }) }) }) });
2776
+ }), children: /* @__PURE__ */ jsx17(WalletContent, { onSuccess, type }) });
2809
2777
  }
2810
2778
  function EVMModal(props) {
2811
2779
  return props.isOpen && /* @__PURE__ */ jsx17(EVMConnectModal, { ...props });
@@ -4358,7 +4326,7 @@ function ContactCard({
4358
4326
  /* @__PURE__ */ jsx28("div", { className: "matchid-contact-item-address", children: /* @__PURE__ */ jsx28(Skeleton_default, { width: 80, height: isDownMd ? 12 : 16, loading, children: truncateAddress(data?.address || "", 6, 6) }) })
4359
4327
  ] })
4360
4328
  ] }),
4361
- action && /* @__PURE__ */ jsx28("div", { className: "matchid-contact-item-action", children: /* @__PURE__ */ jsx28(Skeleton_default, { width: 20, height: isDownMd ? 16 : 20, loading, children: action() }) })
4329
+ action && /* @__PURE__ */ jsx28("div", { className: "matchid-contact-item-action", children: /* @__PURE__ */ jsx28(Skeleton_default, { width: 20, height: 20, loading, children: action() }) })
4362
4330
  ] });
4363
4331
  }
4364
4332
  function RequestAction({ data, onSuccess }) {
@@ -4413,6 +4381,7 @@ function ContactList({
4413
4381
  }) {
4414
4382
  const { loading, totalCount, data, onLoadMore } = contact_exports.useContactList(limit, type);
4415
4383
  const [hiddenList, setHiddenList] = useState25([]);
4384
+ const { address } = useWallet();
4416
4385
  useEffect19(() => {
4417
4386
  setHiddenList([]);
4418
4387
  }, [type]);
@@ -4432,6 +4401,9 @@ function ContactList({
4432
4401
  }
4433
4402
  const item = data[index];
4434
4403
  return /* @__PURE__ */ jsx28(ContactCard, { data: item, action: () => {
4404
+ if (address == item.address) {
4405
+ return /* @__PURE__ */ jsx28(Fragment3, {});
4406
+ }
4435
4407
  if (type == "Requests") {
4436
4408
  return /* @__PURE__ */ jsx28(RequestAction, { data: item, onSuccess: (data2) => {
4437
4409
  setHiddenList([...hiddenList, data2.limit_id || 0]);
@@ -6774,8 +6746,35 @@ var messages = {
6774
6746
  };
6775
6747
 
6776
6748
  // src/MatchContext.tsx
6749
+ import { getDefaultConfig as getDefaultConfig2, RainbowKitProvider as RainbowKitProvider2 } from "@rainbow-me/rainbowkit";
6750
+ import {
6751
+ bitgetWallet,
6752
+ injectedWallet,
6753
+ metaMaskWallet,
6754
+ okxWallet,
6755
+ walletConnectWallet
6756
+ } from "@rainbow-me/rainbowkit/wallets";
6757
+ import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
6758
+ import { WagmiProvider as WagmiProvider2 } from "wagmi";
6777
6759
  import { jsx as jsx34 } from "react/jsx-runtime";
6778
6760
  var queryClient = new QueryClient();
6761
+ var wagmiConfig = getDefaultConfig2({
6762
+ appName: "MatchID",
6763
+ projectId: "9ac6ea7e07860f04616fb311b447dee9",
6764
+ wallets: [
6765
+ {
6766
+ groupName: "Recommended",
6767
+ wallets: [
6768
+ metaMaskWallet,
6769
+ walletConnectWallet,
6770
+ okxWallet,
6771
+ bitgetWallet,
6772
+ injectedWallet
6773
+ ]
6774
+ }
6775
+ ],
6776
+ chains: [mainnet, polygon, optimism, arbitrum, base, matchMain, matchTest, bsc]
6777
+ });
6779
6778
  var MatchContext = createContext3(void 0);
6780
6779
  var MatchProvider = ({
6781
6780
  children,
@@ -6796,7 +6795,7 @@ var MatchProvider = ({
6796
6795
  useWalletInit({
6797
6796
  config: wallet
6798
6797
  });
6799
- return /* @__PURE__ */ jsx34(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx34(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx34(
6798
+ return /* @__PURE__ */ jsx34(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx34(WagmiProvider2, { config: wagmiConfig, children: /* @__PURE__ */ jsx34(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx34(RainbowKitProvider2, { children: /* @__PURE__ */ jsx34(
6800
6799
  MatchContext.Provider,
6801
6800
  {
6802
6801
  value: {
@@ -6809,7 +6808,7 @@ var MatchProvider = ({
6809
6808
  },
6810
6809
  children: /* @__PURE__ */ jsx34(context_default, { children })
6811
6810
  }
6812
- ) }) });
6811
+ ) }) }) }) });
6813
6812
  };
6814
6813
  var useMatch = () => {
6815
6814
  const context = useContext3(MatchContext);
@@ -7337,4 +7336,4 @@ export {
7337
7336
  MatchProvider,
7338
7337
  useMatch
7339
7338
  };
7340
- //# sourceMappingURL=chunk-UOHVZWED.mjs.map
7339
+ //# sourceMappingURL=chunk-CNO5SYSQ.mjs.map