@funkit/connect 3.0.0-next.1 → 3.0.0-next.2

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 (27) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/components/ChainModal/Chain.d.ts +1 -5
  3. package/dist/components/FunToast/FunShortToast.d.ts +1 -1
  4. package/dist/index.js +122 -131
  5. package/dist/wallets/groupedWallets.d.ts +1 -1
  6. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  7. package/dist/wallets/walletConnectors/chunk-2EMZOYQI.js +101 -0
  8. package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +95 -0
  9. package/dist/wallets/walletConnectors/chunk-5K4DIMYR.js +95 -0
  10. package/dist/wallets/walletConnectors/chunk-AUVBWDIK.js +102 -0
  11. package/dist/wallets/walletConnectors/chunk-AXPQHNUI.js +71 -0
  12. package/dist/wallets/walletConnectors/chunk-B7FHT3CB.js +94 -0
  13. package/dist/wallets/walletConnectors/chunk-EFIENLEE.js +98 -0
  14. package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +27 -0
  15. package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +98 -0
  16. package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +103 -0
  17. package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +87 -0
  18. package/dist/wallets/walletConnectors/chunk-L7QI6PBN.js +108 -0
  19. package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +66 -0
  20. package/dist/wallets/walletConnectors/chunk-QP2BIVXD.js +73 -0
  21. package/dist/wallets/walletConnectors/chunk-UWZQZY4S.js +149 -0
  22. package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +96 -0
  23. package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +96 -0
  24. package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +110 -0
  25. package/dist/wallets/walletConnectors/index.js +50 -50
  26. package/package.json +4 -4
  27. package/dist/components/FunTransactionSummary/FunTxSummaryHistory.d.ts +0 -1
package/dist/index.js CHANGED
@@ -414,7 +414,7 @@ function Avatar({ address, imageUrl, loading, size }) {
414
414
  }
415
415
 
416
416
  // src/components/ConnectButton/ConnectButton.tsx
417
- import React155, { useContext as useContext20, useEffect as useEffect37, useState as useState46 } from "react";
417
+ import React155, { useContext as useContext20, useEffect as useEffect38, useState as useState46 } from "react";
418
418
 
419
419
  // src/css/touchableStyles.css.ts
420
420
  var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
@@ -521,7 +521,7 @@ import React152, {
521
521
  createContext as createContext16,
522
522
  useCallback as useCallback29,
523
523
  useContext as useContext18,
524
- useEffect as useEffect35,
524
+ useEffect as useEffect36,
525
525
  useMemo as useMemo32,
526
526
  useState as useState43
527
527
  } from "react";
@@ -1781,7 +1781,7 @@ import React151, {
1781
1781
  createContext as createContext15,
1782
1782
  useCallback as useCallback28,
1783
1783
  useContext as useContext17,
1784
- useEffect as useEffect34,
1784
+ useEffect as useEffect35,
1785
1785
  useMemo as useMemo31,
1786
1786
  useState as useState42
1787
1787
  } from "react";
@@ -2380,8 +2380,7 @@ var backgroundRing = "_1rsrm2fxl";
2380
2380
  var counterRing = "_1rsrm2fzy";
2381
2381
 
2382
2382
  // src/components/FunCountdown/FunCountdown.tsx
2383
- var NOOP = () => {
2384
- };
2383
+ var NOOP = () => void 0;
2385
2384
  var FunCountdown = ({
2386
2385
  countdownSeconds,
2387
2386
  initialRemainingSeconds = countdownSeconds,
@@ -2748,7 +2747,6 @@ var typeDisplay = "_1btry8h5";
2748
2747
  var ShortFunToast = ({
2749
2748
  type = 1 /* ERROR */,
2750
2749
  title,
2751
- description,
2752
2750
  closing = false
2753
2751
  }) => {
2754
2752
  return /* @__PURE__ */ React28.createElement(Box, { position: "absolute", className: shortToastContainer }, /* @__PURE__ */ React28.createElement(
@@ -4031,8 +4029,7 @@ function formatNumberAndStringify(number, options = FORMAT_NUMBER_DEFAULT, numbe
4031
4029
  maxBeforeUseSuffix,
4032
4030
  decimalPrecisionForSuffix,
4033
4031
  maxSuffixSize,
4034
- maxNumberPartSizeForSuffix,
4035
- minimumSignificantDigits
4032
+ maxNumberPartSizeForSuffix
4036
4033
  } = { ...FORMAT_NUMBER_DEFAULT, ...options };
4037
4034
  if (number === 0) {
4038
4035
  return number.toLocaleString("en", { ...numberFormatOptions });
@@ -5840,8 +5837,8 @@ async function loadAsyncImage(asyncImage) {
5840
5837
  cachedUrls.set(asyncImage, url);
5841
5838
  return url;
5842
5839
  });
5843
- const requestPromise = load().catch((_err) => {
5844
- return load().catch((_err2) => {
5840
+ const requestPromise = load().catch(() => {
5841
+ return load().catch(() => {
5845
5842
  cachedRequestPromises.delete(asyncImage);
5846
5843
  });
5847
5844
  });
@@ -6303,9 +6300,6 @@ var Chain3 = ({
6303
6300
  switchChain,
6304
6301
  chainIconSize,
6305
6302
  isLoading,
6306
- src: src3,
6307
- name,
6308
- iconBackground,
6309
6303
  idx
6310
6304
  }) => {
6311
6305
  const mobile = isMobile();
@@ -6868,7 +6862,7 @@ function FunCheckoutHistoryDetail({
6868
6862
 
6869
6863
  // src/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.tsx
6870
6864
  import { sendSupportMessage } from "@funkit/api-base";
6871
- import React58, { useMemo as useMemo11, useState as useState16 } from "react";
6865
+ import React58, { useEffect as useEffect17, useMemo as useMemo11, useRef as useRef9, useState as useState16 } from "react";
6872
6866
  import { createPortal as createPortal2 } from "react-dom";
6873
6867
 
6874
6868
  // src/components/FunInput/FunInput.tsx
@@ -7498,6 +7492,8 @@ function FunCheckoutHistoryHelp({
7498
7492
  const [processStage, setProcessStage] = useState16(
7499
7493
  0 /* INPUT */
7500
7494
  );
7495
+ const wrapperRef = useRef9(null);
7496
+ useEffect17(() => wrapperRef.current?.scrollIntoView(), []);
7501
7497
  const handleShowErrorMessage = (message, timeMs = FIVE_SECONDS_MS) => {
7502
7498
  setErrorMessage(message);
7503
7499
  if (timeMs !== void 0) {
@@ -7587,7 +7583,7 @@ function FunCheckoutHistoryHelp({
7587
7583
  )), /* @__PURE__ */ React58.createElement(FunButton, { title: "Close", onClick: onBackFromHelpPage }));
7588
7584
  }
7589
7585
  const bottomSectionRef = document.getElementById(HELP_SCREEN_BOTTOM_BAR_ID);
7590
- return /* @__PURE__ */ React58.createElement(Box, null, /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, /* @__PURE__ */ React58.createElement(Text, { color: "primaryText", size: "20", weight: "medium" }, "Tell us more"), /* @__PURE__ */ React58.createElement(Text, { color: "secondaryText", size: "10" }, "If you're experiencing an issue or have a question, please fill out the form below and our support team will get back to you as soon as possible.")), /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "12", position: "relative" }, /* @__PURE__ */ React58.createElement(
7586
+ return /* @__PURE__ */ React58.createElement(Box, { ref: wrapperRef }, /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, /* @__PURE__ */ React58.createElement(Text, { color: "primaryText", size: "20", weight: "medium" }, "Tell us more"), /* @__PURE__ */ React58.createElement(Text, { color: "secondaryText", size: "10" }, "If you're experiencing an issue or have a question, please fill out the form below and our support team will get back to you as soon as possible.")), /* @__PURE__ */ React58.createElement(Box, { display: "flex", flexDirection: "column", gap: "12", position: "relative" }, /* @__PURE__ */ React58.createElement(
7591
7587
  FunInput,
7592
7588
  {
7593
7589
  label: "Email*",
@@ -7683,7 +7679,7 @@ function FunCheckoutHistoryContent({
7683
7679
 
7684
7680
  // src/components/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.tsx
7685
7681
  import { CheckoutState as CheckoutState5 } from "@funkit/api-base";
7686
- import React64, { useEffect as useEffect17, useMemo as useMemo14, useState as useState17 } from "react";
7682
+ import React64, { useEffect as useEffect18, useMemo as useMemo14, useState as useState17 } from "react";
7687
7683
 
7688
7684
  // src/components/FunNotification/FunCheckoutNotification.tsx
7689
7685
  import React63, { useMemo as useMemo13 } from "react";
@@ -8075,7 +8071,7 @@ function ActivityHistory({
8075
8071
  const triggerScrollToTop = (scrollPosition) => {
8076
8072
  document.getElementById(SCROLL_DIV_ID)?.scrollTo({ top: scrollPosition, behavior: "auto" });
8077
8073
  };
8078
- useEffect17(() => {
8074
+ useEffect18(() => {
8079
8075
  const presetScrollPos = returnViewPresets?.scrollPosition;
8080
8076
  if (presetScrollPos) {
8081
8077
  triggerScrollToTop(presetScrollPos);
@@ -8158,7 +8154,7 @@ function ActivityHistory({
8158
8154
 
8159
8155
  // src/components/ProfileDetails/FunProfileViews/Home/index.tsx
8160
8156
  import clsx6 from "clsx";
8161
- import React72, { useEffect as useEffect18, useMemo as useMemo15, useState as useState19 } from "react";
8157
+ import React72, { useEffect as useEffect19, useMemo as useMemo15, useState as useState19 } from "react";
8162
8158
  import { useAccount as useAccount4 } from "wagmi";
8163
8159
 
8164
8160
  // src/css/scrollStyles.css.ts
@@ -8666,7 +8662,7 @@ function Home({
8666
8662
  const triggerScrollToTop = (scrollPosition) => {
8667
8663
  document.getElementById(CHECKOUT_SCROLL_DIV_ID)?.scrollTo({ top: scrollPosition, behavior: "auto" });
8668
8664
  };
8669
- useEffect18(() => {
8665
+ useEffect19(() => {
8670
8666
  const presetScrollPos = returnViewPresets?.scrollPosition;
8671
8667
  if (presetScrollPos) {
8672
8668
  triggerScrollToTop(presetScrollPos);
@@ -8927,7 +8923,7 @@ function Home({
8927
8923
  import React76 from "react";
8928
8924
 
8929
8925
  // src/components/CopyAddress/CopyAddress.tsx
8930
- import React75, { useCallback as useCallback10, useEffect as useEffect19, useState as useState20 } from "react";
8926
+ import React75, { useCallback as useCallback10, useEffect as useEffect20, useState as useState20 } from "react";
8931
8927
 
8932
8928
  // src/components/FunKeyValue/FunKeyValue.tsx
8933
8929
  import React73 from "react";
@@ -9077,7 +9073,7 @@ function CopyAddress({
9077
9073
  setCopiedAddress(true);
9078
9074
  }
9079
9075
  }, [address]);
9080
- useEffect19(() => {
9076
+ useEffect20(() => {
9081
9077
  if (copiedAddress) {
9082
9078
  const timer = setTimeout(() => {
9083
9079
  setCopiedAddress(false);
@@ -9354,25 +9350,20 @@ function ChainModal({ onClose, open }) {
9354
9350
  padding: "2",
9355
9351
  paddingBottom: "16"
9356
9352
  },
9357
- funkitConnectChains.map(
9358
- ({ iconBackground, iconUrl, id, name }, idx) => {
9359
- return /* @__PURE__ */ React80.createElement(
9360
- Chain_default,
9361
- {
9362
- key: id,
9363
- chainId: id,
9364
- currentChainId: chainId,
9365
- switchChain,
9366
- chainIconSize,
9367
- isLoading: pendingChainId === id,
9368
- src: iconUrl,
9369
- name,
9370
- iconBackground,
9371
- idx
9372
- }
9373
- );
9374
- }
9375
- ),
9353
+ funkitConnectChains.map(({ id }, idx) => {
9354
+ return /* @__PURE__ */ React80.createElement(
9355
+ Chain_default,
9356
+ {
9357
+ key: id,
9358
+ chainId: id,
9359
+ currentChainId: chainId,
9360
+ switchChain,
9361
+ chainIconSize,
9362
+ isLoading: pendingChainId === id,
9363
+ idx
9364
+ }
9365
+ );
9366
+ }),
9376
9367
  !isCurrentChainSupported && /* @__PURE__ */ React80.createElement(React80.Fragment, null, /* @__PURE__ */ React80.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React80.createElement(
9377
9368
  MenuButton,
9378
9369
  {
@@ -9432,7 +9423,7 @@ import { useAccount as useAccount6 } from "wagmi";
9432
9423
  import React97, { useCallback as useCallback16, useState as useState25 } from "react";
9433
9424
 
9434
9425
  // src/components/FunConnectOptions/FunConnectResultStep.tsx
9435
- import React82, { useEffect as useEffect20 } from "react";
9426
+ import React82, { useEffect as useEffect21 } from "react";
9436
9427
 
9437
9428
  // src/components/QRCode/QRCode.tsx
9438
9429
  import QRCodeUtil from "qrcode";
@@ -9592,7 +9583,7 @@ var FunConnectResultStep = ({
9592
9583
  qrCodeUri
9593
9584
  }) => {
9594
9585
  const hasAutoclose = type === "success";
9595
- useEffect20(() => {
9586
+ useEffect21(() => {
9596
9587
  if (!hasAutoclose) return;
9597
9588
  const timer = setTimeout(onClose, AUTO_CLOSE);
9598
9589
  return () => clearTimeout(timer);
@@ -9641,7 +9632,7 @@ var FunConnectResultStep = ({
9641
9632
  };
9642
9633
 
9643
9634
  // src/components/FunConnectOptions/FunFarcasterConnectingStep.tsx
9644
- import React83, { useCallback as useCallback12, useEffect as useEffect21, useMemo as useMemo17 } from "react";
9635
+ import React83, { useCallback as useCallback12, useEffect as useEffect22, useMemo as useMemo17 } from "react";
9645
9636
 
9646
9637
  // src/utils/browsers.ts
9647
9638
  function isSafari() {
@@ -9685,7 +9676,7 @@ function FunFarcasterConnectingStep({
9685
9676
  }) {
9686
9677
  const mobile = isMobile();
9687
9678
  const safari = isSafari();
9688
- useEffect21(() => {
9679
+ useEffect22(() => {
9689
9680
  if (farcasterUri && mobile && !safari) {
9690
9681
  redirectInMobile(farcasterUri);
9691
9682
  }
@@ -10435,13 +10426,13 @@ function FunSignInStep({
10435
10426
  }
10436
10427
 
10437
10428
  // src/components/FunConnectOptions/FunWeb2ConnectingStep.tsx
10438
- import React93, { useCallback as useCallback15, useEffect as useEffect23 } from "react";
10429
+ import React93, { useCallback as useCallback15, useEffect as useEffect24 } from "react";
10439
10430
 
10440
10431
  // src/components/FunInput/FunTwoFaInput.tsx
10441
10432
  import React91, {
10442
10433
  useCallback as useCallback14,
10443
- useEffect as useEffect22,
10444
- useRef as useRef9,
10434
+ useEffect as useEffect23,
10435
+ useRef as useRef10,
10445
10436
  useState as useState24
10446
10437
  } from "react";
10447
10438
  var FunTwoFaInput = ({
@@ -10454,7 +10445,7 @@ var FunTwoFaInput = ({
10454
10445
  onResend,
10455
10446
  hasResent = false
10456
10447
  }) => {
10457
- const inputRefs = useRef9([]);
10448
+ const inputRefs = useRef10([]);
10458
10449
  inputRefs.current = Array(inputLength).fill(null);
10459
10450
  const [focusIndex, setFocusIndex] = useState24(0);
10460
10451
  const handleBackspace = useCallback14(
@@ -10520,7 +10511,7 @@ var FunTwoFaInput = ({
10520
10511
  inputRefs.current[focusIndex]?.setSelectionRange(1, 1);
10521
10512
  }, 10);
10522
10513
  };
10523
- useEffect22(() => {
10514
+ useEffect23(() => {
10524
10515
  inputRefs.current[0]?.focus();
10525
10516
  }, []);
10526
10517
  return /* @__PURE__ */ React91.createElement(Box, null, /* @__PURE__ */ React91.createElement(Box, { display: "flex", wrap: "nowrap", width: "full", gap: "8" }, Array.from({ length: inputLength }).map((_, i) => {
@@ -10596,7 +10587,7 @@ var FunWeb2ConnectingStep = ({
10596
10587
  loginErrorMessage,
10597
10588
  clearLoginError
10598
10589
  } = useFunkitWeb2Login();
10599
- useEffect23(() => {
10590
+ useEffect24(() => {
10600
10591
  setOtpInput("");
10601
10592
  clearLoginError();
10602
10593
  }, []);
@@ -10649,7 +10640,7 @@ var FunWeb2ConnectingStep = ({
10649
10640
  import React96 from "react";
10650
10641
 
10651
10642
  // src/components/FunConnectOptions/ConnectDetails.tsx
10652
- import React95, { useEffect as useEffect24 } from "react";
10643
+ import React95, { useEffect as useEffect25 } from "react";
10653
10644
 
10654
10645
  // src/utils/platforms.ts
10655
10646
  import { UAParser } from "ua-parser-js";
@@ -10662,6 +10653,7 @@ function isMacOS() {
10662
10653
  return os.name === "Mac OS";
10663
10654
  }
10664
10655
  function isLinux() {
10656
+ if (os.name === void 0) return false;
10665
10657
  return ["Ubuntu", "Mint", "Fedora", "Debian", "Arch", "Linux"].includes(
10666
10658
  os.name
10667
10659
  );
@@ -10737,7 +10729,7 @@ var preloadPlatformIcon = () => loadImages(getPlatformSrc);
10737
10729
  var ConnectDetail = ({ qrCodeUri, wallet }) => {
10738
10730
  const { iconBackground, iconUrl, name, qrCode, ready } = wallet;
10739
10731
  const hasQrCode = qrCode && qrCodeUri;
10740
- useEffect24(() => {
10732
+ useEffect25(() => {
10741
10733
  preloadBrowserIcon();
10742
10734
  preloadPlatformIcon();
10743
10735
  }, []);
@@ -11061,7 +11053,7 @@ import {
11061
11053
  FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8,
11062
11054
  getTokenInfo as getTokenInfo2
11063
11055
  } from "@funkit/core";
11064
- import React150, { useCallback as useCallback27, useEffect as useEffect33, useMemo as useMemo30, useRef as useRef12, useState as useState41 } from "react";
11056
+ import React150, { useCallback as useCallback27, useEffect as useEffect34, useMemo as useMemo30, useRef as useRef13, useState as useState41 } from "react";
11065
11057
  import { arbitrum, mainnet as mainnet5, mantle as mantle2, zkSync as zkSync3 } from "viem/chains";
11066
11058
 
11067
11059
  // src/hooks/useCheckoutAccountBalanceTransfer.ts
@@ -11146,7 +11138,7 @@ function useCheckoutQuoteNotification(checkoutId) {
11146
11138
  }
11147
11139
 
11148
11140
  // src/hooks/useMesh.tsx
11149
- import React113, { useCallback as useCallback20, useMemo as useMemo20, useRef as useRef10, useState as useState28 } from "react";
11141
+ import React113, { useCallback as useCallback20, useMemo as useMemo20, useRef as useRef11, useState as useState28 } from "react";
11150
11142
  import { useAccount as useAccount7 } from "wagmi";
11151
11143
 
11152
11144
  // src/components/FunkitProvider/FunkitMeshProvider.tsx
@@ -11908,7 +11900,7 @@ var useMeshExchanges = ({
11908
11900
  };
11909
11901
  };
11910
11902
  function useEqualMeshNetworkSupportedTokens(array, clearCache) {
11911
- const previousArray = useRef10(array);
11903
+ const previousArray = useRef11(array);
11912
11904
  if (!clearCache && array.length === previousArray.current.length) {
11913
11905
  return previousArray.current;
11914
11906
  }
@@ -11931,7 +11923,7 @@ var useMeshActiveNetworkInfo = (exchange) => {
11931
11923
  const { chain: activeChain } = useAccount7();
11932
11924
  const [meshNetworkId, setMeshNetworkId] = useState28(null);
11933
11925
  const [meshSupportedTokens, setMeshSupportedTokens] = useState28([]);
11934
- const networkandExchange = useRef10(`${exchange}${meshNetworkId}`);
11926
+ const networkandExchange = useRef11(`${exchange}${meshNetworkId}`);
11935
11927
  const meshSupportedTokensEqualLength = useEqualMeshNetworkSupportedTokens(
11936
11928
  meshSupportedTokens,
11937
11929
  networkandExchange.current !== `${exchange}${meshNetworkId}`
@@ -11981,7 +11973,7 @@ var useMeshActiveNetworkInfo = (exchange) => {
11981
11973
  };
11982
11974
 
11983
11975
  // src/components/FunkitProvider/FunkitMoonpayProvider.tsx
11984
- import React114, { createContext as createContext14, useContext as useContext16, useEffect as useEffect25, useState as useState29 } from "react";
11976
+ import React114, { createContext as createContext14, useContext as useContext16, useEffect as useEffect26, useState as useState29 } from "react";
11985
11977
 
11986
11978
  // src/components/FunkitProvider/FunkitSandboxContext.tsx
11987
11979
  import { createContext as createContext13, useContext as useContext15 } from "react";
@@ -11991,7 +11983,7 @@ var useIsFunkitSandboxMode = () => useContext15(FunkitSandboxContext);
11991
11983
  // src/components/FunkitProvider/FunkitMoonpayProvider.tsx
11992
11984
  var MoonPayOriginalProvider = (props) => {
11993
11985
  const [MoonPayProviderInner, setMoonPayProviderInner] = useState29(null);
11994
- useEffect25(() => {
11986
+ useEffect26(() => {
11995
11987
  const loadMoonPayProviderInner = async () => {
11996
11988
  try {
11997
11989
  const module = await import("@moonpay/moonpay-react");
@@ -12021,18 +12013,18 @@ function useFunkitMoonpayUserIp() {
12021
12013
  null
12022
12014
  );
12023
12015
  const { moonpayApiKey } = useContext16(FunkitMoonpayContext);
12024
- const getUserIpViaMoonpay = async () => {
12025
- const response = await fetch(
12026
- `https://api.moonpay.com/v3/ip_address?apiKey=${moonpayApiKey}`
12027
- );
12028
- const responseJson = await response.json();
12029
- setUserIpInfo(responseJson);
12030
- };
12031
- useEffect25(() => {
12016
+ useEffect26(() => {
12017
+ const getUserIpViaMoonpay = async () => {
12018
+ const response = await fetch(
12019
+ `https://api.moonpay.com/v3/ip_address?apiKey=${moonpayApiKey}`
12020
+ );
12021
+ const responseJson = await response.json();
12022
+ setUserIpInfo(responseJson);
12023
+ };
12032
12024
  getUserIpViaMoonpay().catch(
12033
12025
  (err) => logger.error("getUserIpViaMoonpay:error", err)
12034
12026
  );
12035
- }, []);
12027
+ }, [moonpayApiKey]);
12036
12028
  return userIpInfo;
12037
12029
  }
12038
12030
 
@@ -12042,10 +12034,11 @@ import {
12042
12034
  MeshExecuteTransferMfaType,
12043
12035
  MeshExecuteTransferStatus
12044
12036
  } from "@funkit/api-base";
12045
- import React115, { useCallback as useCallback21, useEffect as useEffect26, useMemo as useMemo21, useState as useState30 } from "react";
12037
+ import React115, { useCallback as useCallback21, useEffect as useEffect27, useMemo as useMemo21, useState as useState30 } from "react";
12046
12038
  function FunMeshVerificationStep({
12047
12039
  previewId,
12048
12040
  // TODO: Handle showing mesh expiration
12041
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
12049
12042
  previewExpirationMs,
12050
12043
  transferToAddress,
12051
12044
  onSuccess,
@@ -12076,7 +12069,7 @@ function FunMeshVerificationStep({
12076
12069
  screen,
12077
12070
  twoFactorCode.length
12078
12071
  ]);
12079
- useEffect26(() => {
12072
+ useEffect27(() => {
12080
12073
  handleCompletion();
12081
12074
  return () => {
12082
12075
  setScreen(0 /* INITIAL */);
@@ -12350,7 +12343,7 @@ function FunOptionBox({
12350
12343
  return /* @__PURE__ */ React118.createElement(
12351
12344
  Box,
12352
12345
  {
12353
- as: isClickable ? "button" : "div",
12346
+ as: "button",
12354
12347
  tabIndex: isClickable ? 0 : void 0,
12355
12348
  borderStyle: "solid",
12356
12349
  borderWidth: "2",
@@ -12363,6 +12356,7 @@ function FunOptionBox({
12363
12356
  paddingX,
12364
12357
  alignItems: "center",
12365
12358
  cursor: isClickable ? "pointer" : isDisabled ? "not-allowed" : "default",
12359
+ disabled: isDisabled,
12366
12360
  style: {
12367
12361
  opacity: isDisabled ? 0.5 : 1
12368
12362
  },
@@ -12475,7 +12469,7 @@ function FunPaymentMeshType({
12475
12469
 
12476
12470
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
12477
12471
  import { getMoonpayUrlSignature } from "@funkit/api-base";
12478
- import React121, { memo, useEffect as useEffect27, useMemo as useMemo23, useState as useState32 } from "react";
12472
+ import React121, { memo, useEffect as useEffect28, useMemo as useMemo23, useState as useState32 } from "react";
12479
12473
 
12480
12474
  // src/components/FunPayments/FunPaymentMoonpayType.css.ts
12481
12475
  var mpClass = "_1kmpeyf0";
@@ -12483,7 +12477,7 @@ var mpClass = "_1kmpeyf0";
12483
12477
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
12484
12478
  var MoonPayBuyWidget = memo(function Widget(props) {
12485
12479
  const [MoonPayBuyWidgetInner, setMoonPayBuyWidgetInner] = React121.useState(null);
12486
- useEffect27(() => {
12480
+ useEffect28(() => {
12487
12481
  const loadMoonPayBuyWidgetInner = async () => {
12488
12482
  try {
12489
12483
  const module = await import("@moonpay/moonpay-react");
@@ -12800,7 +12794,7 @@ function generateInsufficientAmountForMoonpayError(paymentFlow, isShortened) {
12800
12794
 
12801
12795
  // src/components/FunPayments/FunPaymentMethods.tsx
12802
12796
  import { getAssetPriceInfo as getAssetPriceInfo3 } from "@funkit/api-base";
12803
- import React129, { useCallback as useCallback22, useEffect as useEffect28, useMemo as useMemo24, useState as useState33 } from "react";
12797
+ import React129, { useCallback as useCallback22, useEffect as useEffect29, useMemo as useMemo24, useState as useState33 } from "react";
12804
12798
  import { createPortal as createPortal4 } from "react-dom";
12805
12799
 
12806
12800
  // src/components/FunPaymentMethodItem/FunPaymentMethodItem.tsx
@@ -12948,7 +12942,7 @@ var PAYMENT_METHOD_CONFIG = {
12948
12942
  isEnabledForOnramp: true,
12949
12943
  // TODO: Deprecate
12950
12944
  isEnabledForCheckout: true,
12951
- disclaimerTextFn: (_) => "$10,000 limit \u2022 2min"
12945
+ disclaimerTextFn: () => "$10,000 limit \u2022 2min"
12952
12946
  },
12953
12947
  ["brokerage" /* BROKERAGE */]: {
12954
12948
  label: DEFAULT_TEXT_CUSTOMIZATIONS.brokerageOrExchange,
@@ -12963,7 +12957,7 @@ var PAYMENT_METHOD_CONFIG = {
12963
12957
  isEnabledForOnramp: true,
12964
12958
  // TODO: Deprecate
12965
12959
  isEnabledForCheckout: true,
12966
- disclaimerTextFn: (_) => "No limit \u2022 3 mins"
12960
+ disclaimerTextFn: () => "No limit \u2022 3 mins"
12967
12961
  },
12968
12962
  ["transfer" /* TRANSFER */]: {
12969
12963
  label: DEFAULT_TEXT_CUSTOMIZATIONS.transferCrypto,
@@ -12973,7 +12967,7 @@ var PAYMENT_METHOD_CONFIG = {
12973
12967
  isEnabledForOnramp: true,
12974
12968
  // TODO: Deprecate
12975
12969
  isEnabledForCheckout: false,
12976
- disclaimerTextFn: (_) => void 0
12970
+ disclaimerTextFn: () => void 0
12977
12971
  },
12978
12972
  ["otc" /* OTC */]: {
12979
12973
  label: DEFAULT_TEXT_CUSTOMIZATIONS.otc,
@@ -12983,7 +12977,7 @@ var PAYMENT_METHOD_CONFIG = {
12983
12977
  isEnabledForOnramp: true,
12984
12978
  // TODO: Deprecate
12985
12979
  isEnabledForCheckout: true,
12986
- disclaimerTextFn: (_) => void 0
12980
+ disclaimerTextFn: () => void 0
12987
12981
  }
12988
12982
  };
12989
12983
  function AddPaymentMethodItem({
@@ -13140,7 +13134,7 @@ function FunPaymentMethods({
13140
13134
  getCheckoutDraftDollarValue
13141
13135
  } = useFunkitPreCheckoutInternal(checkoutId || "");
13142
13136
  const { isCheckoutCrFlow } = useCheckoutType(checkoutItem);
13143
- useEffect28(() => {
13137
+ useEffect29(() => {
13144
13138
  if (paymentFlow === 1 /* CHECKOUT */ && isCheckoutCrFlow) {
13145
13139
  setSelectedOption(paymentsConfig.defaultPaymentMethod || null);
13146
13140
  }
@@ -13781,7 +13775,7 @@ var FunInfoIcon = ({ size = 14 }) => /* @__PURE__ */ React135.createElement(
13781
13775
  );
13782
13776
 
13783
13777
  // src/components/FunCheckoutModal/FunCheckoutPrimaryInfo.tsx
13784
- import React136, { useEffect as useEffect29, useMemo as useMemo26, useState as useState35 } from "react";
13778
+ import React136, { useEffect as useEffect30, useMemo as useMemo26, useState as useState35 } from "react";
13785
13779
  function CheckoutPrimaryInfoSnapshot({
13786
13780
  checkoutItem,
13787
13781
  isLoading,
@@ -13829,7 +13823,7 @@ function CheckoutPrimaryInfo({
13829
13823
  }) {
13830
13824
  const { checkoutItem, getCheckoutDraftDollarValue } = useFunkitPreCheckoutInternal(checkoutId);
13831
13825
  const [isForceRefresh, setIsForceRefresh] = useState35(false);
13832
- useEffect29(() => {
13826
+ useEffect30(() => {
13833
13827
  if (isForceRefresh || !isNotNullish(checkoutItem?.draftDollarValue)) {
13834
13828
  setIsForceRefresh(false);
13835
13829
  getCheckoutDraftDollarValue().catch(
@@ -13917,6 +13911,7 @@ function useWeb3AccountBalancePostCheckout(checkoutItem, setPostCheckoutStepMess
13917
13911
  checkoutItem?.selectedSourceAssetInfo?.address,
13918
13912
  checkoutItem?.selectedSourceAssetInfo.symbol,
13919
13913
  connector,
13914
+ setPostCheckoutStepMessage,
13920
13915
  switchChainAsync,
13921
13916
  sendTransactionAsync,
13922
13917
  writeContractAsync
@@ -14463,20 +14458,20 @@ var FunCheckoutConnectExchangeStep = ({
14463
14458
 
14464
14459
  // src/components/FunCheckoutModal/FunCheckoutInputAmountStep.tsx
14465
14460
  import { getAssetPriceInfo as getAssetPriceInfo4 } from "@funkit/api-base";
14466
- import React145, { useCallback as useCallback25, useEffect as useEffect31, useMemo as useMemo28, useState as useState39 } from "react";
14461
+ import React145, { useCallback as useCallback25, useEffect as useEffect32, useMemo as useMemo28, useState as useState39 } from "react";
14467
14462
  import { createPortal as createPortal7 } from "react-dom";
14468
14463
 
14469
14464
  // src/hooks/useDynamicFont.ts
14470
- import { useEffect as useEffect30, useRef as useRef11, useState as useState38 } from "react";
14465
+ import { useEffect as useEffect31, useRef as useRef12, useState as useState38 } from "react";
14471
14466
  var SIZE_STEP = 1;
14472
14467
  var MIN_WIDTH = 60;
14473
14468
  var ALLOWANCE = 20;
14474
14469
  var useDynamicFont = (inputValue, max, min = 16) => {
14475
14470
  const [textWidth, setTextWidth] = useState38(MIN_WIDTH);
14476
14471
  const [fontSize, setFontSize] = useState38(max);
14477
- const inputRef = useRef11(null);
14478
- const canvasRef = useRef11(document.createElement("canvas"));
14479
- useEffect30(() => {
14472
+ const inputRef = useRef12(null);
14473
+ const canvasRef = useRef12(document.createElement("canvas"));
14474
+ useEffect31(() => {
14480
14475
  const measureTextWidth = (text) => {
14481
14476
  if (!inputRef.current) return void 0;
14482
14477
  const context = canvasRef.current.getContext("2d");
@@ -14553,7 +14548,7 @@ var FunCheckoutInputAmountStep = ({
14553
14548
  inputValue,
14554
14549
  BASE_FONT_SIZE
14555
14550
  );
14556
- useEffect31(() => {
14551
+ useEffect32(() => {
14557
14552
  const fetchPrice = async () => {
14558
14553
  try {
14559
14554
  if (checkoutItem?.initSettings?.config?.targetChain && checkoutItem?.initSettings.config.targetAsset) {
@@ -14574,7 +14569,7 @@ var FunCheckoutInputAmountStep = ({
14574
14569
  const id = setInterval(fetchPrice, 1e4);
14575
14570
  return () => clearInterval(id);
14576
14571
  }, []);
14577
- useEffect31(() => {
14572
+ useEffect32(() => {
14578
14573
  if (unitPrice == null || isInited) return;
14579
14574
  if (isAmountInAbsolute) {
14580
14575
  setAmountInput(
@@ -14791,7 +14786,7 @@ import {
14791
14786
  FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3,
14792
14787
  FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7
14793
14788
  } from "@funkit/core";
14794
- import React148, { useCallback as useCallback26, useEffect as useEffect32, useMemo as useMemo29, useState as useState40 } from "react";
14789
+ import React148, { useCallback as useCallback26, useEffect as useEffect33, useMemo as useMemo29, useState as useState40 } from "react";
14795
14790
  import { createPortal as createPortal8 } from "react-dom";
14796
14791
 
14797
14792
  // src/components/FunAsset/FunAssetItem.tsx
@@ -15046,7 +15041,7 @@ function MeshOrAccountSelectAsset({
15046
15041
  });
15047
15042
  return itemMap;
15048
15043
  }, [checkoutItem?.initSettings.config.targetChain, walletAssets]);
15049
- useEffect32(() => {
15044
+ useEffect33(() => {
15050
15045
  async function fetchAccountHoldings() {
15051
15046
  const isMapInited = Object.keys(accountHoldingsMap).length > 0;
15052
15047
  setIsLoadingAssets(!isMapInited);
@@ -15189,13 +15184,13 @@ function MeshOrAccountSelectAsset({
15189
15184
  checkoutItem?.selectedPaymentMethodInfo?.meta?.accessToken?.brokerName,
15190
15185
  onBack
15191
15186
  ]);
15192
- useEffect32(() => {
15187
+ useEffect33(() => {
15193
15188
  if (checkoutItem?.isDrafting) {
15194
15189
  setSelectedChainTokenSymbol("");
15195
15190
  setInsufficientAssetError("");
15196
15191
  }
15197
15192
  }, [checkoutItem?.isDrafting]);
15198
- useEffect32(() => {
15193
+ useEffect33(() => {
15199
15194
  if (checkoutItem?.draftDollarValue && !selectedChainTokenSymbol) {
15200
15195
  setRecommendedAsset(
15201
15196
  getRecommendedAsset(
@@ -15213,13 +15208,14 @@ function MeshOrAccountSelectAsset({
15213
15208
  selectedChainTokenSymbol,
15214
15209
  isWeb3Login
15215
15210
  ]);
15216
- useEffect32(() => {
15211
+ useEffect33(() => {
15217
15212
  if (recommendedAsset) {
15218
15213
  setSelectedChainTokenSymbol(recommendedAsset.symbol);
15219
15214
  }
15220
15215
  }, [recommendedAsset, setSelectedChainTokenSymbol]);
15221
15216
  const bottomSectionRef = document.getElementById(CHECKOUT_MODAL_BOTTOM_BAR_ID);
15222
- return /* @__PURE__ */ React148.createElement(Box, null, isLoadingAssets ? /* @__PURE__ */ React148.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, Array.from({ length: 3 }).map((_, index) => /* @__PURE__ */ React148.createElement(FunAssetItemSkeleton, { key: index }))) : /* @__PURE__ */ React148.createElement(
15217
+ const walletAssetCount = walletAssets ? Object.keys(walletAssets).length : void 0;
15218
+ return /* @__PURE__ */ React148.createElement(Box, null, isLoadingAssets ? /* @__PURE__ */ React148.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, Array.from({ length: walletAssetCount ?? 3 }).map((_, index) => /* @__PURE__ */ React148.createElement(FunAssetItemSkeleton, { key: index }))) : /* @__PURE__ */ React148.createElement(
15223
15219
  Box,
15224
15220
  {
15225
15221
  width: "full",
@@ -15377,7 +15373,7 @@ function FunCheckoutModal({
15377
15373
  if (open && !checkoutId) {
15378
15374
  throw new Error("Unable to open checkout modal without a checkoutId");
15379
15375
  }
15380
- const intervalRef = useRef12(void 0);
15376
+ const intervalRef = useRef13(void 0);
15381
15377
  const [countdown, setCountdownSeconds] = useState41(0);
15382
15378
  const [countdownKey, setCountdownKey] = useState41(1);
15383
15379
  const [isRegeneratingQuote, setIsRegeneratingQuote] = useState41(false);
@@ -15404,12 +15400,12 @@ function FunCheckoutModal({
15404
15400
  );
15405
15401
  const { meshBrokerDataMap, hasActiveConnectionCheck } = useFunkitMesh({});
15406
15402
  const { preparePaymentInfo } = useMeshExchanges({ fullInfo: false });
15407
- useEffect33(() => {
15403
+ useEffect34(() => {
15408
15404
  return () => {
15409
15405
  setCheckoutStep("select_payment" /* SELECT_PAYMENT_METHOD */);
15410
15406
  };
15411
15407
  }, []);
15412
- useEffect33(() => {
15408
+ useEffect34(() => {
15413
15409
  clearCheckoutQuoteMessages();
15414
15410
  }, [checkoutStep]);
15415
15411
  const { generateCheckoutTransferOpItems } = useCheckoutAccountBalanceTransfer(checkoutId);
@@ -15608,10 +15604,10 @@ function FunCheckoutModal({
15608
15604
  ]
15609
15605
  );
15610
15606
  const [triggerSymbol, triggerSourceAssetConfirmedFn] = useSymbolRefresh_default();
15611
- useEffect33(() => {
15607
+ useEffect34(() => {
15612
15608
  onSourceAssetConfirmed();
15613
15609
  }, [triggerSymbol]);
15614
- useEffect33(() => {
15610
+ useEffect34(() => {
15615
15611
  if (checkoutItem && isCheckoutCrFlow && checkoutStep === "confirmation" /* CONFIRMATION */) {
15616
15612
  onSourceAssetConfirmed();
15617
15613
  }
@@ -15699,7 +15695,7 @@ function FunCheckoutModal({
15699
15695
  updateSourceAsset
15700
15696
  ]
15701
15697
  );
15702
- useEffect33(() => {
15698
+ useEffect34(() => {
15703
15699
  if (checkoutStep !== "confirmation" /* CONFIRMATION */) return;
15704
15700
  intervalRef.current = setInterval(() => {
15705
15701
  setTimeout(() => {
@@ -15891,8 +15887,7 @@ var ModalContext = createContext15({
15891
15887
  chainModalOpen: false,
15892
15888
  connectModalOpen: false,
15893
15889
  isWalletConnectModalOpen: false,
15894
- setIsWalletConnectModalOpen: () => {
15895
- },
15890
+ setIsWalletConnectModalOpen: () => void 0,
15896
15891
  funCheckoutModalOpen: false,
15897
15892
  funCheckoutHistoryModalOpen: false,
15898
15893
  funDevTestModalOpen: false
@@ -15935,9 +15930,7 @@ function ModalProvider({ children }) {
15935
15930
  const { chainId } = useAccount9();
15936
15931
  const { chains } = useConfig4();
15937
15932
  const isCurrentChainSupported = chains.some((chain) => chain.id === chainId);
15938
- function closeModals({
15939
- keepConnectModalOpen = false
15940
- } = {}) {
15933
+ function closeModals(keepConnectModalOpen = false) {
15941
15934
  if (!keepConnectModalOpen) {
15942
15935
  closeConnectModal();
15943
15936
  }
@@ -15948,10 +15941,10 @@ function ModalProvider({ children }) {
15948
15941
  }
15949
15942
  const isUnauthenticated = useAuthenticationStatus() === "unauthenticated";
15950
15943
  useAccountEffect2({
15951
- onConnect: () => closeModals({ keepConnectModalOpen: isUnauthenticated }),
15952
- onDisconnect: () => closeModals()
15944
+ onConnect: () => closeModals(isUnauthenticated),
15945
+ onDisconnect: closeModals
15953
15946
  });
15954
- useEffect34(() => {
15947
+ useEffect35(() => {
15955
15948
  if (isUnauthenticated) closeModals();
15956
15949
  }, [isUnauthenticated]);
15957
15950
  return /* @__PURE__ */ React151.createElement(
@@ -16121,7 +16114,7 @@ var isEIP6963Connector = (wallet) => {
16121
16114
  return !!(!wallet.isFunkitSdkConnector && wallet.icon?.replace(/\n/g, "").startsWith("data:image") && wallet.uid && wallet.name);
16122
16115
  };
16123
16116
  var rainbowKitConnectorWithWalletConnect = (wallet, walletConnectModalConnector) => {
16124
- const shouldUseWalletConnectModal = wallet.id === "walletConnect" && walletConnectModalConnector;
16117
+ const shouldUseWalletConnectModal = wallet.id === "walletConnect" && walletConnectModalConnector !== void 0;
16125
16118
  return shouldUseWalletConnectModal ? { ...wallet, walletConnectModalConnector } : wallet;
16126
16119
  };
16127
16120
  var connectorsWithRecentWallets = ({
@@ -16234,10 +16227,7 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
16234
16227
  );
16235
16228
  return !existsInEIP6963Connectors;
16236
16229
  }).map(
16237
- (wallet) => rainbowKitConnectorWithWalletConnect(
16238
- wallet,
16239
- walletConnectModalConnector
16240
- )
16230
+ (wallet) => rainbowKitConnectorWithWalletConnect(wallet, walletConnectModalConnector)
16241
16231
  );
16242
16232
  const combinedConnectors = [...eip6963Connectors, ...rainbowKitConnectors];
16243
16233
  const walletInstanceById = indexBy(
@@ -16258,7 +16248,7 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
16258
16248
  if (eip6963) {
16259
16249
  walletConnectors.push({
16260
16250
  ...wallet,
16261
- iconUrl: wallet.icon,
16251
+ iconUrl: wallet.icon ?? "",
16262
16252
  ready: true,
16263
16253
  connect: () => connectWallet(wallet),
16264
16254
  groupName: "Installed",
@@ -16266,6 +16256,9 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
16266
16256
  });
16267
16257
  continue;
16268
16258
  }
16259
+ const { walletConnectModalConnector: walletConnectModalConnector2, qrCode } = wallet;
16260
+ const getDesktopUri = wallet.desktop?.getUri;
16261
+ const getMobileUri = wallet.mobile?.getUri;
16269
16262
  walletConnectors.push({
16270
16263
  ...wallet,
16271
16264
  ready: wallet.installed ?? true,
@@ -16274,11 +16267,11 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
16274
16267
  extensionDownloadUrl: getExtensionDownloadUrl(wallet),
16275
16268
  groupName: wallet.groupName,
16276
16269
  mobileDownloadUrl: getMobileDownloadUrl(wallet),
16277
- getQrCodeUri: wallet.qrCode?.getUri ? () => getWalletConnectUri(wallet, wallet.qrCode.getUri) : void 0,
16278
- getDesktopUri: wallet.desktop?.getUri ? () => getWalletConnectUri(wallet, wallet.desktop.getUri) : void 0,
16279
- getMobileUri: wallet.mobile?.getUri ? () => getWalletConnectUri(wallet, wallet.mobile?.getUri) : void 0,
16270
+ getQrCodeUri: qrCode?.getUri ? () => getWalletConnectUri(wallet, qrCode.getUri) : void 0,
16271
+ getDesktopUri: getDesktopUri ? () => getWalletConnectUri(wallet, getDesktopUri) : void 0,
16272
+ getMobileUri: getMobileUri ? () => getWalletConnectUri(wallet, getMobileUri) : void 0,
16280
16273
  recent,
16281
- showWalletConnectModal: wallet.walletConnectModalConnector ? () => connectToWalletConnectModal(wallet.walletConnectModalConnector) : void 0
16274
+ showWalletConnectModal: walletConnectModalConnector2 ? () => connectToWalletConnectModal(walletConnectModalConnector2) : void 0
16282
16275
  });
16283
16276
  }
16284
16277
  return walletConnectors;
@@ -16355,7 +16348,6 @@ var getLoginMethodFromCache = () => {
16355
16348
  var FunkitWeb2Provider = ({
16356
16349
  children
16357
16350
  }) => {
16358
- const funkitConfig = useFunkitConfig();
16359
16351
  const { connectAsync } = useConnect2();
16360
16352
  const { chains } = useConfig5();
16361
16353
  const { connectors, disconnectAsync } = useDisconnect2();
@@ -16383,7 +16375,7 @@ var FunkitWeb2Provider = ({
16383
16375
  },
16384
16376
  []
16385
16377
  );
16386
- useEffect35(() => {
16378
+ useEffect36(() => {
16387
16379
  const newPrivy = new PrivyJS({
16388
16380
  appId: DEFAULT_PRIVY_APP_ID,
16389
16381
  storage: new LocalStorage(),
@@ -16531,7 +16523,7 @@ var FunkitWeb2Provider = ({
16531
16523
  provider,
16532
16524
  index: DEFAULT_FUNWALLET_INDEX
16533
16525
  });
16534
- const result = await connectAsync({
16526
+ await connectAsync({
16535
16527
  chainId,
16536
16528
  connector: funkitConnectWallet2
16537
16529
  });
@@ -16586,7 +16578,7 @@ var FunkitWeb2Provider = ({
16586
16578
  }
16587
16579
  }
16588
16580
  }, [handleFunkitWeb2Login, initChainId, loginMethod]);
16589
- useEffect35(() => {
16581
+ useEffect36(() => {
16590
16582
  if (privy && privyIframeUrl && isNotNullish(initChainId)) {
16591
16583
  const iframe = document.getElementById(
16592
16584
  PRIVY_IFRAME_ID
@@ -16815,10 +16807,10 @@ import React154 from "react";
16815
16807
  import { useAccount as useAccount11, useBalance, useConfig as useConfig6 } from "wagmi";
16816
16808
 
16817
16809
  // src/hooks/useIsMounted.ts
16818
- import { useCallback as useCallback30, useEffect as useEffect36, useState as useState45 } from "react";
16810
+ import { useCallback as useCallback30, useEffect as useEffect37, useState as useState45 } from "react";
16819
16811
  function useIsMounted() {
16820
16812
  const [isMounted, setIsMounted] = useState45(false);
16821
- useEffect36(() => {
16813
+ useEffect37(() => {
16822
16814
  setIsMounted(true);
16823
16815
  return () => {
16824
16816
  setIsMounted(false);
@@ -16854,8 +16846,7 @@ function abbreviateETHBalance(number) {
16854
16846
  }
16855
16847
 
16856
16848
  // src/components/ConnectButton/ConnectButtonRenderer.tsx
16857
- var noop = () => {
16858
- };
16849
+ var noop = () => void 0;
16859
16850
  function ConnectButtonRenderer({
16860
16851
  children
16861
16852
  }) {
@@ -17098,7 +17089,7 @@ function ConnectButton({
17098
17089
  const { setShowBalance } = useShowBalance();
17099
17090
  const [ready, setReady] = useState46(false);
17100
17091
  const { i18n: i18n2 } = useContext20(I18nContext);
17101
- useEffect37(() => {
17092
+ useEffect38(() => {
17102
17093
  setShowBalance(showBalance);
17103
17094
  if (!ready) setReady(true);
17104
17095
  }, [showBalance, setShowBalance, ready]);
@@ -17977,25 +17968,25 @@ var defaultAppInfo = {
17977
17968
  var AppContext = createContext18(defaultAppInfo);
17978
17969
 
17979
17970
  // src/components/FunkitProvider/useFingerprint.ts
17980
- import { useCallback as useCallback31, useEffect as useEffect38 } from "react";
17971
+ import { useCallback as useCallback31, useEffect as useEffect39 } from "react";
17981
17972
  var storageKey5 = "funkit-connect-version";
17982
17973
  function setFunkitConnectVersion({ version }) {
17983
17974
  localStorage.setItem(storageKey5, version);
17984
17975
  }
17985
17976
  function getCurrentSdkVersion() {
17986
- return "3.0.0-next.1";
17977
+ return "3.0.0-next.2";
17987
17978
  }
17988
17979
  function useFingerprint() {
17989
17980
  const fingerprint = useCallback31(() => {
17990
17981
  setFunkitConnectVersion({ version: getCurrentSdkVersion() });
17991
17982
  }, []);
17992
- useEffect38(() => {
17983
+ useEffect39(() => {
17993
17984
  fingerprint();
17994
17985
  }, [fingerprint]);
17995
17986
  }
17996
17987
 
17997
17988
  // src/components/FunkitProvider/usePreloadImages.ts
17998
- import { useCallback as useCallback32, useEffect as useEffect39 } from "react";
17989
+ import { useCallback as useCallback32, useEffect as useEffect40 } from "react";
17999
17990
 
18000
17991
  // src/components/Icons/Assets.tsx
18001
17992
  import React157 from "react";
@@ -18021,7 +18012,7 @@ function usePreloadImages() {
18021
18012
  preloadLoginIcon();
18022
18013
  }
18023
18014
  }, [walletConnectors, funkitConnectChains]);
18024
- useEffect39(() => {
18015
+ useEffect40(() => {
18025
18016
  preloadImages();
18026
18017
  }, [preloadImages]);
18027
18018
  }