@matchain/matchid-sdk-react 0.1.42-alpha.5 → 0.1.42-alpha.6

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.
@@ -1880,7 +1880,10 @@ function WalletContent({
1880
1880
  try {
1881
1881
  setStatus("nonce");
1882
1882
  statusRef.current = "nonce";
1883
- const res = type == "bind" ? await getWalletInitApi({ address, type: "SOL" }) : await getWalletNonceApi({ address, type: "SOL" });
1883
+ const res = type == "bind" ? await getWalletInitApi({
1884
+ address,
1885
+ type: "SOL"
1886
+ }) : await getWalletNonceApi({ address, type: "SOL" });
1884
1887
  if (!isSuccess(res)) {
1885
1888
  throw new Error(res.message);
1886
1889
  }
@@ -1984,7 +1987,7 @@ var wallets = [
1984
1987
  new TrustWalletAdapter(),
1985
1988
  new XDEFIWalletAdapter()
1986
1989
  ];
1987
- function SOLModal({
1990
+ function SOLConnectModal({
1988
1991
  type = "login",
1989
1992
  onSuccess,
1990
1993
  ...props
@@ -1996,6 +1999,9 @@ function SOLModal({
1996
1999
  name: "SOL"
1997
2000
  }), children: /* @__PURE__ */ jsx21(ConnectionProvider, { endpoint: clusterApiUrl("devnet"), children: /* @__PURE__ */ jsx21(WalletProvider, { wallets, autoConnect: true, children: /* @__PURE__ */ jsx21(WalletModalProvider, { children: /* @__PURE__ */ jsx21(WalletContent, { onSuccess, type }) }) }) }) });
1998
2001
  }
2002
+ function SOLModal(props) {
2003
+ return props.isOpen && /* @__PURE__ */ jsx21(SOLConnectModal, { ...props });
2004
+ }
1999
2005
 
2000
2006
  // src/components/TRONModal/index.tsx
2001
2007
  import React5, { useEffect as useEffect11, useMemo as useMemo7, useState as useState15 } from "react";
@@ -2110,7 +2116,7 @@ var useTRONWallet = () => {
2110
2116
 
2111
2117
  // src/components/TRONModal/index.tsx
2112
2118
  import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
2113
- function TRONModal({
2119
+ function TRONConnectModal({
2114
2120
  type = "login",
2115
2121
  onSuccess,
2116
2122
  ...props
@@ -2261,6 +2267,9 @@ function TRONModal({
2261
2267
  })
2262
2268
  ] }) }) });
2263
2269
  }
2270
+ function TRONModal(props) {
2271
+ return props.isOpen && /* @__PURE__ */ jsx22(TRONConnectModal, { ...props, type: "" });
2272
+ }
2264
2273
 
2265
2274
  // src/components/TONModal/index.tsx
2266
2275
  import React6, { useEffect as useEffect12, useState as useState16 } from "react";
@@ -2425,7 +2434,7 @@ function WalletContent2({
2425
2434
  }
2426
2435
  );
2427
2436
  }
2428
- function TONModal({
2437
+ function TONConnectModal({
2429
2438
  type = "login",
2430
2439
  onSuccess,
2431
2440
  ...props
@@ -2445,6 +2454,9 @@ function TONModal({
2445
2454
  }
2446
2455
  ) });
2447
2456
  }
2457
+ function TONModal(props) {
2458
+ return props.isOpen && /* @__PURE__ */ jsx23(TONConnectModal, { ...props });
2459
+ }
2448
2460
 
2449
2461
  // src/components/BTCModal/index.tsx
2450
2462
  import React7, { useEffect as useEffect14, useMemo as useMemo8, useState as useState18 } from "react";
@@ -2638,7 +2650,7 @@ var useBTCWallet = () => {
2638
2650
 
2639
2651
  // src/components/BTCModal/index.tsx
2640
2652
  import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
2641
- function BTCModal({
2653
+ function BTCConnectModal({
2642
2654
  type = "login",
2643
2655
  onSuccess,
2644
2656
  ...props
@@ -2797,6 +2809,9 @@ function BTCModal({
2797
2809
  })
2798
2810
  ] }) }) });
2799
2811
  }
2812
+ function BTCModal(props) {
2813
+ return props.isOpen && /* @__PURE__ */ jsx24(BTCConnectModal, { ...props });
2814
+ }
2800
2815
 
2801
2816
  // src/components/CEXBindModal/index.tsx
2802
2817
  import { useEffect as useEffect15, useMemo as useMemo9, useState as useState19 } from "react";
@@ -4635,4 +4650,4 @@ export {
4635
4650
  MatchProvider,
4636
4651
  useMatch
4637
4652
  };
4638
- //# sourceMappingURL=chunk-GEM2V3W6.mjs.map
4653
+ //# sourceMappingURL=chunk-MRGV6YS3.mjs.map