@funkit/connect 6.14.3 → 6.14.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/consts/customers.d.ts +0 -1
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +178 -163
  5. package/dist/utils/flags/config.d.ts +5 -5
  6. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  8. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  11. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/index.js +61 -61
  16. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  25. package/package.json +4 -4
  26. package/dist/hooks/useGooeyFilter.d.ts +0 -21
  27. package/dist/hooks/useIsFunkitCheckoutActivated.d.ts +0 -7
  28. package/dist/hooks/useMountEffect.d.ts +0 -8
  29. package/dist/hooks/usePathMorph.d.ts +0 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 6.14.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ad3b4e: remove kalshi
8
+ - 27e5782: Refactor withdrawal address validation to fix variable declaration order
9
+ - 5ae15d3: feat(connect): change qr min text order
10
+ - aa6d856: chore: deprecate unused hooks and exports
11
+ - 27e5782: Extract withdrawal amount input into separate component to reduce complexity
12
+ - Updated dependencies [3ad3b4e]
13
+ - @funkit/api-base@1.12.5
14
+ - @funkit/core@2.3.50
15
+ - @funkit/wagmi-tools@3.0.73
16
+
3
17
  ## 6.14.3
4
18
 
5
19
  ### Patch Changes
@@ -7,4 +7,3 @@ export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9P
7
7
  export declare function isHyperbeatCustomer(apiKey: string): apiKey is "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau";
8
8
  export declare function isMonkeyTiltCustomer(apiKey: string): apiKey is "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX";
9
9
  export declare function isBasedCustomer(apiKey: string): apiKey is "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e";
10
- export declare function isKalshiCustomer(apiKey: string): apiKey is "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86";
package/dist/index.d.ts CHANGED
@@ -11,7 +11,6 @@ export type { ThemeVars } from './css/sprinkles.css';
11
11
  export { PaymentMethod } from './domains/paymentMethods';
12
12
  export { useConnectionStatus } from './hooks/useConnectionStatus';
13
13
  export type { ConnectionStatus } from './hooks/useConnectionStatus';
14
- export { useIsFunkitCheckoutActivated } from './hooks/useIsFunkitCheckoutActivated';
15
14
  export { useFunkitMaxCheckoutUsdInfo } from './hooks/useFunkitMaxCheckoutUsdInfo';
16
15
  export { useUpdateActiveFunkitCheckout } from './hooks/useUpdateActiveFunkitCheckout';
17
16
  export type { Locale } from './locales/';
package/dist/index.js CHANGED
@@ -2177,7 +2177,6 @@ import {
2177
2177
  HYPERBEAT_API_KEY,
2178
2178
  HYPERDASH_API_KEY,
2179
2179
  HYPERSWAP_API_KEY,
2180
- KALSHI_API_KEY,
2181
2180
  KATANA_API_KEY,
2182
2181
  MONKEY_TILT_API_KEY,
2183
2182
  OSTIUM_API_KEY,
@@ -2243,7 +2242,7 @@ var QR_CODE_EVM = {
2243
2242
  // abstract
2244
2243
  2741: ["USDC.e", "ETH", "WETH", "USDT"],
2245
2244
  // hyperevm. TODO: Consider adding UETH, hbHYPE, stHYPE once their icons are in assets.ts. Also holding back as they are lower mkt cap tokens and would overcrowd our UI.
2246
- 999: ["HYPE", "WETH", "USDT", "UBTC", "USDe"]
2245
+ 999: ["USDC", "HYPE", "WETH", "USDT", "UBTC", "USDe"]
2247
2246
  };
2248
2247
  var QR_CODE_WITH_SOLANA = {
2249
2248
  ...QR_CODE_EVM,
@@ -2284,10 +2283,10 @@ var flagConfig = {
2284
2283
  {
2285
2284
  key: "apiKey",
2286
2285
  type: "isAnyOf",
2287
- values: [POLYMARKET_API_KEY, KATANA_API_KEY, KALSHI_API_KEY]
2286
+ values: [POLYMARKET_API_KEY, KATANA_API_KEY]
2288
2287
  }
2289
2288
  ],
2290
- // Turn off geoblock for PM / Katana / Kalshi on our end.
2289
+ // Turn off geoblock for PM / Katana on our end.
2291
2290
  // These clients will handle the conditional display of the Deposit button.
2292
2291
  value: ""
2293
2292
  }
@@ -2338,8 +2337,7 @@ var flagConfig = {
2338
2337
  HYPERSWAP_API_KEY,
2339
2338
  HYPERDASH_API_KEY,
2340
2339
  MONKEY_TILT_API_KEY,
2341
- VENTUALS_API_KEY,
2342
- KALSHI_API_KEY
2340
+ VENTUALS_API_KEY
2343
2341
  ]
2344
2342
  }
2345
2343
  ],
@@ -2390,7 +2388,6 @@ var flagConfig = {
2390
2388
  // HYPERDASH_API_KEY,
2391
2389
  // BASED_API_KEY,
2392
2390
  // VENTUALS_API_KEY
2393
- // KALSHI_API_KEY
2394
2391
  ]
2395
2392
  }
2396
2393
  ],
@@ -2481,7 +2478,7 @@ var flagConfig = {
2481
2478
  {
2482
2479
  key: "apiKey",
2483
2480
  type: "isAnyOf",
2484
- values: [BANKR_API_KEY, KALSHI_API_KEY]
2481
+ values: [BANKR_API_KEY]
2485
2482
  }
2486
2483
  ],
2487
2484
  value: base3.id.toString()
@@ -2508,7 +2505,7 @@ var flagConfig = {
2508
2505
  }
2509
2506
  ],
2510
2507
  value: JSON.stringify({
2511
- message: "Deposits on BSC are delayed and may take longer to process."
2508
+ message: ""
2512
2509
  })
2513
2510
  }
2514
2511
  ]
@@ -2622,7 +2619,7 @@ var flagConfig = {
2622
2619
  {
2623
2620
  key: "apiKey",
2624
2621
  type: "isAnyOf",
2625
- values: [KATANA_API_KEY, KALSHI_API_KEY]
2622
+ values: [KATANA_API_KEY]
2626
2623
  }
2627
2624
  ],
2628
2625
  value: false
@@ -2711,8 +2708,7 @@ var flagConfig = {
2711
2708
  BASED_API_KEY,
2712
2709
  OSTIUM_API_KEY,
2713
2710
  POLYMARKET_API_KEY,
2714
- VENTUALS_API_KEY,
2715
- KALSHI_API_KEY
2711
+ VENTUALS_API_KEY
2716
2712
  ]
2717
2713
  }
2718
2714
  ],
@@ -2970,7 +2966,6 @@ import {
2970
2966
  BSX_API_KEY,
2971
2967
  ETHEREAL_API_KEY,
2972
2968
  HYPERBEAT_API_KEY as HYPERBEAT_API_KEY2,
2973
- KALSHI_API_KEY as KALSHI_API_KEY2,
2974
2969
  KATANA_API_KEY as KATANA_API_KEY2,
2975
2970
  MONKEY_TILT_API_KEY as MONKEY_TILT_API_KEY2,
2976
2971
  OSTIUM_API_KEY as OSTIUM_API_KEY2,
@@ -2997,9 +2992,6 @@ function isHyperbeatCustomer(apiKey) {
2997
2992
  function isBasedCustomer(apiKey) {
2998
2993
  return apiKey === BASED_API_KEY2;
2999
2994
  }
3000
- function isKalshiCustomer(apiKey) {
3001
- return apiKey === KALSHI_API_KEY2;
3002
- }
3003
2995
 
3004
2996
  // src/providers/FunkitSandboxContext.tsx
3005
2997
  import { createContext as createContext6, useContext as useContext6 } from "react";
@@ -3078,7 +3070,6 @@ function useFunkitUserIp() {
3078
3070
  const { apiKey } = useFunkitConfig();
3079
3071
  const isPolymarket = isPolymarketCustomer(apiKey);
3080
3072
  const isHyperbeat = isHyperbeatCustomer(apiKey);
3081
- const isKalshi = isKalshiCustomer(apiKey);
3082
3073
  const { data: userIpInfo, isLoading: isLoadingGeoCheck } = useQuery({
3083
3074
  queryKey: ["getUserIpInfo"],
3084
3075
  queryFn: async () => {
@@ -3109,7 +3100,7 @@ function useFunkitUserIp() {
3109
3100
  refetchOnWindowFocus: false
3110
3101
  });
3111
3102
  const isUserGeoblocked = useMemo5(() => {
3112
- if (isLoadingFlags || isLoadingGeoCheck || isPolymarket || isHyperbeat || isKalshi) {
3103
+ if (isLoadingFlags || isLoadingGeoCheck || isPolymarket || isHyperbeat) {
3113
3104
  return false;
3114
3105
  }
3115
3106
  if (!userIpInfo) {
@@ -3123,8 +3114,7 @@ function useFunkitUserIp() {
3123
3114
  isLoadingGeoCheck,
3124
3115
  userIpInfo,
3125
3116
  isPolymarket,
3126
- isHyperbeat,
3127
- isKalshi
3117
+ isHyperbeat
3128
3118
  ]);
3129
3119
  return {
3130
3120
  isLoadingGeoCheck: isLoadingFlags || isLoadingGeoCheck,
@@ -11743,16 +11733,9 @@ var WithdrawContent = ({
11743
11733
  const token = config.sourceTokenSymbol;
11744
11734
  const [confirmingQuote, setConfirmingQuote] = useState26(false);
11745
11735
  const [recipientAddress, setRecipientAddress] = useState26("");
11746
- const [withdrawalUSD, setAmount] = useState26("");
11736
+ const [withdrawalUSD, setWithdrawalUSD] = useState26("");
11747
11737
  const [debouncedUSD] = useDebounce(withdrawalUSD, 500);
11748
- const [addressInputTouched, setAddressInputTouched] = useState26(false);
11749
- const [amountInputTouched, setAmountInputTouched] = useState26(false);
11750
- const {
11751
- updateCustomRecipient,
11752
- updateTargetAsset,
11753
- updateWithdrawalSourceAssetAmount,
11754
- updateTargetAssetAmount
11755
- } = useCheckoutContext();
11738
+ const { updateTargetAsset, updateTargetAssetAmount } = useCheckoutContext();
11756
11739
  const {
11757
11740
  assets,
11758
11741
  selectedChainId,
@@ -11803,7 +11786,6 @@ var WithdrawContent = ({
11803
11786
  symbol: selectedToken,
11804
11787
  targetAsset: targetAssetInfo?.address
11805
11788
  });
11806
- const { connector, address: connectedWalletAddress } = useAccount3();
11807
11789
  const { handleWithdrawal, isWithdrawing, withdrawalError } = useWithdrawal({
11808
11790
  config,
11809
11791
  withdrawalItem,
@@ -11818,20 +11800,15 @@ var WithdrawContent = ({
11818
11800
  }, 150);
11819
11801
  }
11820
11802
  }, [isPlaceholderData, confirmingQuote, isQuoteLoading, isInstantQuoting]);
11821
- const showCheckAddressAlert = false;
11822
- const wallets = usePreparedWalletConnectors();
11823
11803
  const { apiKey } = useFunkitConfig();
11824
- const connectedWalletIconUrl = wallets.find(
11825
- (wallet) => wallet.id === connector?.id
11826
- )?.iconUrl;
11827
11804
  const normalizedSelectedToken = selectedToken.toUpperCase();
11828
11805
  const { checkoutItem } = useCheckoutContext();
11829
11806
  const checkoutConfig = checkoutItem?.initSettings.config;
11830
11807
  const {
11831
11808
  isValidAddress,
11832
11809
  isValidAddressAndChain,
11833
- isWithdrawAmountTooLow,
11834
11810
  isWithdrawAmountValid,
11811
+ isWithdrawAmountTooLow,
11835
11812
  minWithdrawalUsd
11836
11813
  } = isValidWithdrawal({
11837
11814
  config,
@@ -11841,37 +11818,6 @@ var WithdrawContent = ({
11841
11818
  recipientAddress,
11842
11819
  selectedChainId
11843
11820
  });
11844
- const showUseConnected = useShowConnectWallet({
11845
- config
11846
- });
11847
- const handleUseConnectedClick = () => {
11848
- if (!connectedWalletAddress) {
11849
- return;
11850
- }
11851
- setRecipientAddress(connectedWalletAddress);
11852
- updateCustomRecipient(connectedWalletAddress);
11853
- };
11854
- const handleAddressChange = (e) => {
11855
- setRecipientAddress(e.target.value);
11856
- updateCustomRecipient(e.target.value);
11857
- };
11858
- const handleAddressBlur = () => {
11859
- if (!isValidAddress && recipientAddress !== "") {
11860
- setAddressInputTouched(true);
11861
- }
11862
- };
11863
- const handleAmountChange = (e) => {
11864
- if (!amountInputTouched) {
11865
- setAmountInputTouched(true);
11866
- }
11867
- setAmount(e.target.value);
11868
- const withdrawalUSD2 = Number.parseFloat(e.target.value);
11869
- updateWithdrawalSourceAssetAmount(withdrawalUSD2);
11870
- };
11871
- const setMaxAmount = () => {
11872
- setAmount(sourceTokenBalance.toString());
11873
- updateWithdrawalSourceAssetAmount(sourceTokenBalance);
11874
- };
11875
11821
  const handleSubmit = () => {
11876
11822
  if (isPlaceholderData || isQuoteLoading && isInstantQuoting) {
11877
11823
  setConfirmingQuote(true);
@@ -11895,13 +11841,16 @@ var WithdrawContent = ({
11895
11841
  quote: quote.finalEstimation
11896
11842
  });
11897
11843
  };
11898
- const { data: addressAssessment, isLoading: isCheckingAddressRisk } = useWithdrawalRisk(apiKey, recipientAddress);
11844
+ const { data: isRisky, isLoading: isCheckingAddressRisk } = useWithdrawalRisk(
11845
+ apiKey,
11846
+ recipientAddress
11847
+ );
11899
11848
  const isReceipentBlacklisted = isBlacklistedWithdrawAddress(recipientAddress);
11900
11849
  const bottomSectionRef = useBottomSectionRef("withdrawal");
11901
- const showAddressError = addressInputTouched && !isValidAddress && recipientAddress !== "";
11902
- const showAmountError = amountInputTouched && withdrawalUSD !== "" && !isWithdrawAmountValid;
11850
+ const hasAddressError = !isValidAddress && recipientAddress !== "";
11851
+ const hasAmountError = withdrawalUSD !== "" && !isWithdrawAmountValid;
11903
11852
  function computeCanContinue() {
11904
- return recipientAddress && withdrawalUSD && token && selectedChainId && (quote || isPlaceholderData || isQuoteLoading && isInstantQuoting) && !showAmountError && !showAddressError && !isCheckingAddressRisk && !addressAssessment && !isReceipentBlacklisted && isValidAddressAndChain && withdrawalUSD === debouncedUSD;
11853
+ return recipientAddress && withdrawalUSD && token && selectedChainId && (quote || isPlaceholderData || isQuoteLoading && isInstantQuoting) && !hasAmountError && !hasAddressError && !isCheckingAddressRisk && !isRisky && !isReceipentBlacklisted && isValidAddressAndChain && withdrawalUSD === debouncedUSD;
11905
11854
  }
11906
11855
  const canContinue = computeCanContinue();
11907
11856
  const { totalImpactUsd, gasUsd } = extractRelayFeeInfo(
@@ -11928,7 +11877,129 @@ var WithdrawContent = ({
11928
11877
  ),
11929
11878
  [quoteErrorObject, targetAssetFetchError, withdrawalError]
11930
11879
  );
11931
- return /* @__PURE__ */ React67.createElement(Box, { id: "withdrawal-flow", display: "flex", flexDirection: "column", gap: "18" }, /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, "Recipient address"), /* @__PURE__ */ React67.createElement(
11880
+ const isRiskyAddress = !!isRisky && !isCheckingAddressRisk;
11881
+ return /* @__PURE__ */ React67.createElement(Box, { id: "withdrawal-flow", display: "flex", flexDirection: "column", gap: "18" }, /* @__PURE__ */ React67.createElement(
11882
+ WithdrawRecipientAddress,
11883
+ {
11884
+ recipientAddress,
11885
+ config,
11886
+ setRecipientAddress,
11887
+ selectedToken,
11888
+ selectedChainId,
11889
+ isRiskyAddress
11890
+ }
11891
+ ), /* @__PURE__ */ React67.createElement(
11892
+ WithdrawAmountInput,
11893
+ {
11894
+ config,
11895
+ withdrawalUSD,
11896
+ setWithdrawalUSD,
11897
+ isWithdrawAmountTooLow,
11898
+ isWithdrawAmountValid,
11899
+ minWithdrawalUsd,
11900
+ sourceTokenBalance
11901
+ }
11902
+ ), /* @__PURE__ */ React67.createElement(
11903
+ TokenAndChainDropdown,
11904
+ {
11905
+ isLoading: false,
11906
+ assets,
11907
+ selectedToken,
11908
+ onTokenSelected: handleTokenChange,
11909
+ selectedChainId,
11910
+ onChainSelected: handleChainChange,
11911
+ tokenLabel: "Receive token",
11912
+ chainLabel: "Receive chain",
11913
+ alwaysOpenToTop: true,
11914
+ maxTokenDropdownHeight: 195,
11915
+ hideNewTokenBadge: true
11916
+ }
11917
+ ), /* @__PURE__ */ React67.createElement(Box, { display: "flex", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React67.createElement(Text, { size: "12" }, "You will receive"), isQuoteLoading && !isInstantQuoting ? /* @__PURE__ */ React67.createElement(FunSkeletonBlock, { height: "14", width: "54" }) : /* @__PURE__ */ React67.createElement(
11918
+ Box,
11919
+ {
11920
+ display: "flex",
11921
+ alignItems: "center",
11922
+ justifyContent: "center",
11923
+ gap: "8"
11924
+ },
11925
+ quoteEnabled ? /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, formatCryptoAndStringify2(receiveAmountCrypto, selectedToken)), /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, formatCurrencyAndStringify3(receiveAmountFiatTotal))) : /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, NO_DATA_VALUE)
11926
+ )), /* @__PURE__ */ React67.createElement(
11927
+ PaymentFeesSummary,
11928
+ {
11929
+ fallbackFees: FALLBACK_FEES,
11930
+ isLoading: isQuoteLoading && !isInstantQuoting,
11931
+ quote: quote?.finalEstimation,
11932
+ key: `${isQuoteLoading}`,
11933
+ valuesNotAvailable: !quoteEnabled
11934
+ }
11935
+ ), normalizedSelectedToken === "USDC.E" && /* @__PURE__ */ React67.createElement(
11936
+ InfoBanner,
11937
+ {
11938
+ message: "<strong>USDCe is not widely supported by most exchanges.</strong><br />Sending USDCe to an unsupported platform may result in a permanent loss of funds. Always double-check token compatibility before transferring.",
11939
+ type: "warning"
11940
+ }
11941
+ ), bottomSectionRef && createPortal2(
11942
+ /* @__PURE__ */ React67.createElement(
11943
+ Dialog.BottomBar,
11944
+ {
11945
+ topSection: /* @__PURE__ */ React67.createElement(
11946
+ FunNotification,
11947
+ {
11948
+ description: errorNotification?.message,
11949
+ type: errorNotification?.type,
11950
+ isVisible: !!errorNotification
11951
+ }
11952
+ ),
11953
+ actionButtonProps: {
11954
+ title: withdrawButtonText,
11955
+ isDisabled: !canContinue || isWithdrawing,
11956
+ isLoading: isWithdrawing || confirmingQuote,
11957
+ onClick: handleSubmit
11958
+ }
11959
+ }
11960
+ ),
11961
+ bottomSectionRef
11962
+ ));
11963
+ };
11964
+ function WithdrawRecipientAddress({
11965
+ config,
11966
+ recipientAddress,
11967
+ setRecipientAddress,
11968
+ selectedChainId,
11969
+ selectedToken,
11970
+ isRiskyAddress
11971
+ }) {
11972
+ const isValidAddress = isAddressSupported(recipientAddress);
11973
+ const hasAddressError = !isValidAddress && recipientAddress !== "";
11974
+ const [addressInputTouched, setAddressInputTouched] = useState26(false);
11975
+ const { updateCustomRecipient } = useCheckoutContext();
11976
+ const { connector, address: connectedWalletAddress } = useAccount3();
11977
+ const wallets = usePreparedWalletConnectors();
11978
+ const showCheckAddressAlert = false;
11979
+ const connectedWalletIconUrl = wallets.find(
11980
+ (wallet) => wallet.id === connector?.id
11981
+ )?.iconUrl;
11982
+ const showUseConnected = useShowConnectWallet({
11983
+ config
11984
+ });
11985
+ const handleUseConnectedClick = () => {
11986
+ if (!connectedWalletAddress) {
11987
+ return;
11988
+ }
11989
+ setRecipientAddress(connectedWalletAddress);
11990
+ updateCustomRecipient(connectedWalletAddress);
11991
+ };
11992
+ const handleAddressChange = (e) => {
11993
+ setRecipientAddress(e.target.value);
11994
+ updateCustomRecipient(e.target.value);
11995
+ };
11996
+ const handleAddressBlur = () => {
11997
+ if (hasAddressError) {
11998
+ setAddressInputTouched(true);
11999
+ }
12000
+ };
12001
+ const showAddressError = addressInputTouched && hasAddressError;
12002
+ return /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, "Recipient address"), /* @__PURE__ */ React67.createElement(
11932
12003
  FunInput,
11933
12004
  {
11934
12005
  allowMultiline: true,
@@ -11975,7 +12046,7 @@ var WithdrawContent = ({
11975
12046
  )
11976
12047
  ) : void 0
11977
12048
  }
11978
- )), /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, addressAssessment && !isCheckingAddressRisk && /* @__PURE__ */ React67.createElement(
12049
+ )), /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, isRiskyAddress && /* @__PURE__ */ React67.createElement(
11979
12050
  InfoBanner,
11980
12051
  {
11981
12052
  message: "This wallet address cannot be used due to restrictions.",
@@ -11987,7 +12058,33 @@ var WithdrawContent = ({
11987
12058
  message: getAlertMessage(selectedChainId, selectedToken),
11988
12059
  type: "alert"
11989
12060
  }
11990
- ))), /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, "Amount"), /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(
12061
+ )));
12062
+ }
12063
+ function WithdrawAmountInput({
12064
+ withdrawalUSD,
12065
+ setWithdrawalUSD,
12066
+ sourceTokenBalance,
12067
+ isWithdrawAmountTooLow,
12068
+ isWithdrawAmountValid,
12069
+ minWithdrawalUsd,
12070
+ config
12071
+ }) {
12072
+ const { updateWithdrawalSourceAssetAmount } = useCheckoutContext();
12073
+ const [amountInputTouched, setAmountInputTouched] = useState26(false);
12074
+ const handleAmountChange = (e) => {
12075
+ if (!amountInputTouched) {
12076
+ setAmountInputTouched(true);
12077
+ }
12078
+ setWithdrawalUSD(e.target.value);
12079
+ const withdrawalUSD2 = Number.parseFloat(e.target.value);
12080
+ updateWithdrawalSourceAssetAmount(withdrawalUSD2);
12081
+ };
12082
+ const setMaxAmount = () => {
12083
+ setWithdrawalUSD(sourceTokenBalance.toString());
12084
+ updateWithdrawalSourceAssetAmount(sourceTokenBalance);
12085
+ };
12086
+ const showAmountError = amountInputTouched && withdrawalUSD !== "" && !isWithdrawAmountValid;
12087
+ return /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, "Amount"), /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React67.createElement(
11991
12088
  FunInput,
11992
12089
  {
11993
12090
  value: withdrawalUSD,
@@ -12021,80 +12118,8 @@ var WithdrawContent = ({
12021
12118
  )
12022
12119
  )
12023
12120
  }
12024
- ), /* @__PURE__ */ React67.createElement(
12025
- Box,
12026
- {
12027
- display: "flex",
12028
- alignItems: "center",
12029
- justifyContent: "space-between"
12030
- },
12031
- /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, formatCurrencyAndStringify3(Number(withdrawalUSD))),
12032
- sourceTokenBalance && /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, "Balance:", " ", formatCurrencyAndStringify3(sourceTokenBalance).replace(
12033
- "$",
12034
- ""
12035
- ), " ", config.sourceTokenSymbol)
12036
- ))), /* @__PURE__ */ React67.createElement(
12037
- TokenAndChainDropdown,
12038
- {
12039
- isLoading: false,
12040
- assets,
12041
- selectedToken,
12042
- onTokenSelected: handleTokenChange,
12043
- selectedChainId,
12044
- onChainSelected: handleChainChange,
12045
- tokenLabel: "Receive token",
12046
- chainLabel: "Receive chain",
12047
- alwaysOpenToTop: true,
12048
- maxTokenDropdownHeight: 195,
12049
- hideNewTokenBadge: true
12050
- }
12051
- ), /* @__PURE__ */ React67.createElement(Box, { display: "flex", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React67.createElement(Text, { size: "12" }, "You will receive"), isQuoteLoading && !isInstantQuoting ? /* @__PURE__ */ React67.createElement(FunSkeletonBlock, { height: "14", width: "54" }) : /* @__PURE__ */ React67.createElement(
12052
- Box,
12053
- {
12054
- display: "flex",
12055
- alignItems: "center",
12056
- justifyContent: "center",
12057
- gap: "8"
12058
- },
12059
- quoteEnabled ? /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement(Text, { size: "12", weight: "medium" }, formatCryptoAndStringify2(receiveAmountCrypto, selectedToken)), /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, formatCurrencyAndStringify3(receiveAmountFiatTotal))) : /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, NO_DATA_VALUE)
12060
- )), /* @__PURE__ */ React67.createElement(
12061
- PaymentFeesSummary,
12062
- {
12063
- fallbackFees: FALLBACK_FEES,
12064
- isLoading: isQuoteLoading && !isInstantQuoting,
12065
- quote: quote?.finalEstimation,
12066
- key: `${isQuoteLoading}`,
12067
- valuesNotAvailable: !quoteEnabled
12068
- }
12069
- ), normalizedSelectedToken === "USDC.E" && /* @__PURE__ */ React67.createElement(
12070
- InfoBanner,
12071
- {
12072
- message: "<strong>USDCe is not widely supported by most exchanges.</strong><br />Sending USDCe to an unsupported platform may result in a permanent loss of funds. Always double-check token compatibility before transferring.",
12073
- type: "warning"
12074
- }
12075
- ), bottomSectionRef && createPortal2(
12076
- /* @__PURE__ */ React67.createElement(
12077
- Dialog.BottomBar,
12078
- {
12079
- topSection: /* @__PURE__ */ React67.createElement(
12080
- FunNotification,
12081
- {
12082
- description: errorNotification?.message,
12083
- type: errorNotification?.type,
12084
- isVisible: !!errorNotification
12085
- }
12086
- ),
12087
- actionButtonProps: {
12088
- title: withdrawButtonText,
12089
- isDisabled: !canContinue || isWithdrawing,
12090
- isLoading: isWithdrawing || confirmingQuote,
12091
- onClick: handleSubmit
12092
- }
12093
- }
12094
- ),
12095
- bottomSectionRef
12096
- ));
12097
- };
12121
+ ), /* @__PURE__ */ React67.createElement(Box, { display: "flex", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, formatCurrencyAndStringify3(Number(withdrawalUSD))), sourceTokenBalance && /* @__PURE__ */ React67.createElement(Text, { size: "12", color: "secondaryText" }, "Balance:", " ", formatCurrencyAndStringify3(sourceTokenBalance).replace("$", ""), " ", config.sourceTokenSymbol))));
12122
+ }
12098
12123
 
12099
12124
  // src/modals/WithdrwalModal/WithdrawalNotification.tsx
12100
12125
  import React202 from "react";
@@ -24801,7 +24826,7 @@ function TransferToken({
24801
24826
  color: "secondaryText",
24802
24827
  style: { whiteSpace: "nowrap", marginRight: -8 }
24803
24828
  },
24804
- `$${minTransferUsdPerChain[value]} min`
24829
+ `Min $${minTransferUsdPerChain[value]}`
24805
24830
  );
24806
24831
  };
24807
24832
  return (
@@ -24893,6 +24918,7 @@ function TransferToken({
24893
24918
  fontSize: "12",
24894
24919
  height: "14"
24895
24920
  },
24921
+ /* @__PURE__ */ React172.createElement(Text, { size: "12", color: "secondaryText" }, "Min"),
24896
24922
  /* @__PURE__ */ React172.createElement(
24897
24923
  AnimatedDollarValue,
24898
24924
  {
@@ -24900,7 +24926,6 @@ function TransferToken({
24900
24926
  dynamicMinFractionDigits: true
24901
24927
  }
24902
24928
  ),
24903
- /* @__PURE__ */ React172.createElement(Text, { size: "12", color: "secondaryText" }, "min"),
24904
24929
  /* @__PURE__ */ React172.createElement(
24905
24930
  FunTooltip,
24906
24931
  {
@@ -31660,19 +31685,10 @@ function cssStringFromTheme(theme, options = {}) {
31660
31685
  return Object.entries(cssObjectFromTheme(theme, options)).map(([key, value]) => `${key}:${value.replace(/[:;{}</>]/g, "")};`).join("");
31661
31686
  }
31662
31687
 
31663
- // src/hooks/useIsFunkitCheckoutActivated.ts
31664
- import { FlagKey as FlagKey29 } from "@funkit/utils";
31665
- var useIsFunkitCheckoutActivated = () => {
31666
- const isCheckoutActivated = useFlag(FlagKey29.IsCheckoutActivated);
31667
- return {
31668
- isActivated: isCheckoutActivated
31669
- };
31670
- };
31671
-
31672
31688
  // src/hooks/useFunkitMaxCheckoutUsdInfo.ts
31673
- import { FlagKey as FlagKey30, formatCurrencyAndStringify as formatCurrencyAndStringify16 } from "@funkit/utils";
31689
+ import { FlagKey as FlagKey29, formatCurrencyAndStringify as formatCurrencyAndStringify16 } from "@funkit/utils";
31674
31690
  var useFunkitMaxCheckoutUsdInfo = () => {
31675
- const maxCheckoutUsd = Number(useFlag(FlagKey30.MaxCheckoutUsd));
31691
+ const maxCheckoutUsd = Number(useFlag(FlagKey29.MaxCheckoutUsd));
31676
31692
  const limitText = maxCheckoutUsd === Number.MAX_VALUE ? "no" : formatCurrencyAndStringify16(maxCheckoutUsd, {
31677
31693
  decimalPrecisionForSuffix: 0,
31678
31694
  minimumSignificantDigits: 0,
@@ -31711,7 +31727,7 @@ function setFunkitConnectVersion({ version }) {
31711
31727
  localStorage.setItem(storageKey5, version);
31712
31728
  }
31713
31729
  function getCurrentSdkVersion() {
31714
- return "6.14.3";
31730
+ return "6.14.4";
31715
31731
  }
31716
31732
  function useFingerprint() {
31717
31733
  const fingerprint = useCallback51(() => {
@@ -31883,6 +31899,5 @@ export {
31883
31899
  useFunkitReconnect,
31884
31900
  useFunkitSwitchChains,
31885
31901
  useFunkitUserInfo,
31886
- useIsFunkitCheckoutActivated,
31887
31902
  useUpdateActiveFunkitCheckout
31888
31903
  };
@@ -17,7 +17,7 @@ export declare const flagConfig: {
17
17
  readonly if_any: [{
18
18
  readonly key: "apiKey";
19
19
  readonly type: "isAnyOf";
20
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
20
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
21
21
  }];
22
22
  readonly value: "";
23
23
  }];
@@ -45,7 +45,7 @@ export declare const flagConfig: {
45
45
  readonly if_any: [{
46
46
  readonly key: "apiKey";
47
47
  readonly type: "isAnyOf";
48
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
48
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
49
49
  }];
50
50
  readonly value: true;
51
51
  }];
@@ -123,7 +123,7 @@ export declare const flagConfig: {
123
123
  readonly if_any: [{
124
124
  readonly key: "apiKey";
125
125
  readonly type: "isAnyOf";
126
- readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
126
+ readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ"];
127
127
  }];
128
128
  readonly value: string;
129
129
  }];
@@ -187,7 +187,7 @@ export declare const flagConfig: {
187
187
  readonly if_any: [{
188
188
  readonly key: "apiKey";
189
189
  readonly type: "isAnyOf";
190
- readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
190
+ readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
191
191
  }];
192
192
  readonly value: false;
193
193
  }];
@@ -210,7 +210,7 @@ export declare const flagConfig: {
210
210
  readonly if_any: [{
211
211
  readonly key: "apiKey";
212
212
  readonly type: "isAnyOf";
213
- readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
213
+ readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
214
214
  }];
215
215
  readonly value: true;
216
216
  }, {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-UIASLGLV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-A5N6B5UW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-5W7VDOCL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDAVGY5F.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-LNEC5RNX.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2STUC6QL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-2GJQ4XZQ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-M3NZ6R2E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KIDC67XJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-OBOVHCEI.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JCHN6A47.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VR4TBQ6S.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-CNPKISHN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-7QONTUXT.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-VWCLFMWJ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TCAGNB4B.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-CJGUM55H.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-FKJJQNKX.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,85 +1,85 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-BOU4WKRZ.js";
3
+ uniswapWallet
4
+ } from "./chunk-LH7BMNFZ.js";
5
+ import {
6
+ zerionWallet
7
+ } from "./chunk-SULRQO27.js";
5
8
  import {
6
9
  zealWallet
7
10
  } from "./chunk-RNBEDQHF.js";
8
11
  import {
9
- zerionWallet
10
- } from "./chunk-Q3H3TRBS.js";
12
+ talismanWallet
13
+ } from "./chunk-DRO6WYMM.js";
11
14
  import {
12
- roninWallet
13
- } from "./chunk-QLVVUKYB.js";
15
+ subWallet
16
+ } from "./chunk-JWFF4AAL.js";
14
17
  import {
15
18
  tahoWallet
16
19
  } from "./chunk-ZZZRUXZE.js";
17
- import {
18
- talismanWallet
19
- } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-J3LI3FYZ.js";
22
+ } from "./chunk-2L43XSW3.js";
23
23
  import {
24
24
  tokenaryWallet
25
25
  } from "./chunk-D6AOOO5F.js";
26
- import {
27
- uniswapWallet
28
- } from "./chunk-LH7BMNFZ.js";
29
26
  import {
30
27
  trustWallet
31
- } from "./chunk-RKPCWHXL.js";
28
+ } from "./chunk-VYBAYMP3.js";
29
+ import {
30
+ xdefiWallet
31
+ } from "./chunk-BOU4WKRZ.js";
32
32
  import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-NP5QGWNL.js";
35
35
  import {
36
- oneKeyWallet
37
- } from "./chunk-SHBUZ7U7.js";
38
- import {
39
- rainbowWallet
40
- } from "./chunk-3CICVJUN.js";
36
+ phantomWallet
37
+ } from "./chunk-362NXNTM.js";
41
38
  import {
42
39
  rabbyWallet
43
40
  } from "./chunk-BBOM42DL.js";
41
+ import {
42
+ rainbowWallet
43
+ } from "./chunk-2KUBG3S6.js";
44
+ import {
45
+ roninWallet
46
+ } from "./chunk-NWIQNBJU.js";
44
47
  import {
45
48
  safeWallet
46
49
  } from "./chunk-BQQQL6UD.js";
50
+ import {
51
+ safepalWallet
52
+ } from "./chunk-NT2HYJKW.js";
47
53
  import {
48
54
  safeheronWallet
49
55
  } from "./chunk-RZIO5TFF.js";
50
- import {
51
- safepalWallet
52
- } from "./chunk-EC6CHBSZ.js";
53
56
  import {
54
57
  ramperWallet
55
58
  } from "./chunk-BYXPFMI7.js";
56
59
  import {
57
- subWallet
58
- } from "./chunk-ZSI5N4VV.js";
60
+ ledgerWallet
61
+ } from "./chunk-BRBKM4PW.js";
62
+ import {
63
+ kresusWallet
64
+ } from "./chunk-MJXPRJZT.js";
59
65
  import {
60
66
  mewWallet
61
67
  } from "./chunk-OL5ZO7E4.js";
62
68
  import {
63
69
  oktoWallet
64
70
  } from "./chunk-ADIXAKUL.js";
65
- import {
66
- kresusWallet
67
- } from "./chunk-MJXPRJZT.js";
68
- import {
69
- metaMaskWallet
70
- } from "./chunk-UYGJO62F.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-AFXHGWBH.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-7CUY5G6R.js";
73
+ } from "./chunk-TDIEHTMB.js";
77
74
  import {
78
75
  oneInchWallet
79
76
  } from "./chunk-OESTDX6I.js";
80
77
  import {
81
- phantomWallet
82
- } from "./chunk-362NXNTM.js";
78
+ omniWallet
79
+ } from "./chunk-7CUY5G6R.js";
80
+ import {
81
+ oneKeyWallet
82
+ } from "./chunk-SHBUZ7U7.js";
83
83
  import {
84
84
  enkryptWallet
85
85
  } from "./chunk-OLOIXTYS.js";
@@ -88,66 +88,66 @@ import {
88
88
  } from "./chunk-IFON7E6U.js";
89
89
  import {
90
90
  frontierWallet
91
- } from "./chunk-VWCLFMWJ.js";
91
+ } from "./chunk-TCAGNB4B.js";
92
+ import {
93
+ gateWallet
94
+ } from "./chunk-FKJJQNKX.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-COZ7MIQS.js";
95
- import {
96
- gateWallet
97
- } from "./chunk-CJGUM55H.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-XWUJE7MW.js";
101
101
  import {
102
- ledgerWallet
103
- } from "./chunk-BRBKM4PW.js";
102
+ metaMaskWallet
103
+ } from "./chunk-2HYNUNAS.js";
104
104
  import {
105
- braveWallet
106
- } from "./chunk-BPZ2XJO2.js";
105
+ bitskiWallet
106
+ } from "./chunk-HS3C7OQV.js";
107
107
  import {
108
- coinbaseWallet
109
- } from "./chunk-H4IRCEZN.js";
108
+ bybitWallet
109
+ } from "./chunk-2STUC6QL.js";
110
110
  import {
111
111
  coin98Wallet
112
- } from "./chunk-KIDC67XJ.js";
112
+ } from "./chunk-OBOVHCEI.js";
113
+ import {
114
+ coinbaseWallet
115
+ } from "./chunk-H4IRCEZN.js";
113
116
  import {
114
117
  coreWallet
115
- } from "./chunk-JCHN6A47.js";
118
+ } from "./chunk-VR4TBQ6S.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-HWPKCIBE.js";
119
- import {
120
- bybitWallet
121
- } from "./chunk-LNEC5RNX.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-OPAZMNA7.js";
125
125
  import {
126
126
  foxWallet
127
- } from "./chunk-CNPKISHN.js";
127
+ } from "./chunk-7QONTUXT.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-UIASLGLV.js";
133
+ } from "./chunk-A5N6B5UW.js";
134
+ import {
135
+ bloomWallet
136
+ } from "./chunk-S27IADFU.js";
134
137
  import {
135
138
  bitgetWallet
136
- } from "./chunk-5W7VDOCL.js";
139
+ } from "./chunk-TDAVGY5F.js";
137
140
  import {
138
141
  bitverseWallet
139
142
  } from "./chunk-3HZRRP4Y.js";
140
143
  import {
141
- bitskiWallet
142
- } from "./chunk-HS3C7OQV.js";
143
- import {
144
- bloomWallet
145
- } from "./chunk-S27IADFU.js";
144
+ braveWallet
145
+ } from "./chunk-BPZ2XJO2.js";
146
146
  import {
147
147
  clvWallet
148
- } from "./chunk-2GJQ4XZQ.js";
149
- import "./chunk-DNSG5Q7V.js";
148
+ } from "./chunk-M3NZ6R2E.js";
150
149
  import "./chunk-23WIEY36.js";
150
+ import "./chunk-DNSG5Q7V.js";
151
151
  export {
152
152
  argentWallet,
153
153
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-UYGJO62F.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2HYNUNAS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-AFXHGWBH.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDIEHTMB.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-3CICVJUN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2KUBG3S6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-QLVVUKYB.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NWIQNBJU.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-EC6CHBSZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NT2HYJKW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-ZSI5N4VV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-JWFF4AAL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-J3LI3FYZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2L43XSW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-RKPCWHXL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VYBAYMP3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-Q3H3TRBS.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-SULRQO27.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.3",
3
+ "version": "6.14.4",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -92,11 +92,11 @@
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "use-debounce": "^10.0.5",
94
94
  "uuid": "^9.0.1",
95
- "@funkit/api-base": "1.12.4",
95
+ "@funkit/core": "2.3.50",
96
+ "@funkit/api-base": "1.12.5",
97
+ "@funkit/wagmi-tools": "3.0.73",
96
98
  "@funkit/chains": "0.4.1",
97
99
  "@funkit/fun-relay": "2.0.4",
98
- "@funkit/core": "2.3.49",
99
- "@funkit/wagmi-tools": "3.0.72",
100
100
  "@funkit/utils": "1.1.12"
101
101
  },
102
102
  "repository": {
@@ -1,21 +0,0 @@
1
- export type GooeyFilterOptions = {
2
- intensity?: number;
3
- blur?: number;
4
- contrast?: number;
5
- mode?: 'standard' | 'soft' | 'heavy';
6
- };
7
- export type AnimateGooeyOptions = GooeyFilterOptions & {
8
- duration?: number;
9
- easing?: string;
10
- onComplete?: () => void;
11
- };
12
- type SetGooeyFunction = (options: GooeyFilterOptions) => void;
13
- type AnimateGooeyFunction = (options: AnimateGooeyOptions) => Promise<void>;
14
- type UseGooeyFilterReturn = {
15
- scope: React.RefObject<HTMLDivElement>;
16
- filterId: string;
17
- setGooey: SetGooeyFunction;
18
- animateGooey: AnimateGooeyFunction;
19
- };
20
- export declare const useGooeyFilter: (options?: GooeyFilterOptions) => UseGooeyFilterReturn;
21
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * @external
3
- * Retrieves the activation status of Funkit checkout for the underlying user.
4
- */
5
- export declare const useIsFunkitCheckoutActivated: () => {
6
- isActivated: boolean;
7
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Run an effect only on the first render, EXACTLY ONCE.
3
- * regardless of the dependencies, regardless of the strict mode
4
- * React team thinks that it is antithetical to the React model that
5
- * an effect cannot be canceled or cannot be replayed. Yet the reality
6
- * isn't ideal and especially external 3rd party API cannot be controlled.
7
- */
8
- export declare function useMountEffect(effect: () => void): void;
@@ -1,16 +0,0 @@
1
- export type EasingInput = `cubic-bezier(${number}, ${number}, ${number}, ${number})` | 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
2
- export type UseAnimateOptions = {
3
- duration?: number;
4
- easing?: EasingInput;
5
- onComplete?: () => void;
6
- };
7
- export type AnimateParams = {
8
- d?: string;
9
- } & UseAnimateOptions;
10
- type AnimateFunction = (args?: AnimateParams | string) => Promise<void>;
11
- export declare const usePathMorph: (options?: UseAnimateOptions) => {
12
- animate: AnimateFunction;
13
- ref: (node: SVGPathElement | null) => void;
14
- clear: () => void;
15
- };
16
- export {};