@funkit/connect 1.0.8 → 1.0.10

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 17a1f0d: feat: checkout pre and post intermediate messages
8
+ fix: max out inner widths and height
9
+ - fd16517: feat: moonpay additional conditional conversion text
10
+ - 20678a1: refactor: remove tilde on fees for eoa checkouts
11
+ - 82bbc1e: fix: history listener does not start/stop properly in some cases
12
+
13
+ ## 1.0.9
14
+
15
+ ### Patch Changes
16
+
17
+ - 4e59a88: fix: default payment method
18
+
3
19
  ## 1.0.8
4
20
 
5
21
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Address } from 'viem';
3
3
  import { PaymentFlow } from '../../consts/payment';
4
- export declare function FunPaymentMoonpayType({ paymentFlow, paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, onBackToHome, backAnimation, redirectToCheckoutHistory, }: {
4
+ export declare function FunPaymentMoonpayType({ paymentFlow, paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, onBackToHome, backAnimation, redirectToCheckoutHistory, finalConvertedAssetName, }: {
5
5
  paymentFlow: PaymentFlow;
6
6
  paymentAddress: Address;
7
7
  depositToken: string;
@@ -10,4 +10,5 @@ export declare function FunPaymentMoonpayType({ paymentFlow, paymentAddress, dep
10
10
  onBackToHome: () => void;
11
11
  backAnimation?: boolean;
12
12
  redirectToCheckoutHistory?: (depositAddress: string) => void;
13
+ finalConvertedAssetName: string;
13
14
  }): React.JSX.Element;
@@ -14,6 +14,7 @@ interface FunPaymentSetupProps {
14
14
  backAnimation?: boolean;
15
15
  redirectToCheckoutHistory?: (depositAddress: string) => void;
16
16
  isParentLoading: boolean;
17
+ finalConvertedAssetName?: string;
17
18
  }
18
- export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onSetup, onSoftHide, onBackToHome, token, tokenChainId, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, isParentLoading, }: FunPaymentSetupProps): React.JSX.Element;
19
+ export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onSetup, onSoftHide, onBackToHome, token, tokenChainId, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, isParentLoading, finalConvertedAssetName, }: FunPaymentSetupProps): React.JSX.Element;
19
20
  export {};
@@ -8,7 +8,7 @@ export type FeesItem = null | {
8
8
  platformFeesTokenAmount?: string | number | null;
9
9
  platformFeesTokenSymbol?: string | null;
10
10
  };
11
- export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, isEstimatedNetworkFees, }: {
11
+ export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, }: {
12
12
  estFees: FeesItem;
13
13
  estTime: string | number | null;
14
14
  isLoading?: boolean;
@@ -19,5 +19,4 @@ export declare function FunTransactionSummary({ estFees, estTime, isLoading, has
19
19
  total?: string | number | null;
20
20
  suffixComponent?: ReactNode;
21
21
  errorMessage?: string;
22
- isEstimatedNetworkFees: boolean;
23
22
  }): React.JSX.Element;
@@ -1,3 +1,8 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
4
+ /// <reference types="node" />
5
+ /// <reference types="node" />
1
6
  import { CheckoutCoreQuoteResponse, CheckoutHistoryItem } from '@funkit/core';
2
7
  import React, { ReactNode } from 'react';
3
8
  import { Abi, Address } from 'viem';
@@ -127,7 +132,7 @@ interface useFunkitPreCheckoutInternalReturn {
127
132
  updateSourceAsset: (newSourceAsset: Address, newSourceAssetSymbol: string, newSourceAssetChainId: string) => void;
128
133
  updateTargetAssetAmount: (newTargetAssetAmount: number, isCheckoutCrFlow: boolean) => void;
129
134
  updateSelectedPaymentMethodInfo: (newPaymentMethodInfo: PaymentMethodInfo) => void;
130
- confirmCheckout: (shouldBatchOpBypassInit: boolean) => Promise<Address>;
135
+ confirmCheckout: (shouldBatchOpBypassInit: boolean, stepMessageSetter: (m: string) => void) => Promise<Address>;
131
136
  getCheckoutDraftDollarValue: () => Promise<void>;
132
137
  clearCheckoutQuoteMessages: () => void;
133
138
  getCheckoutQuote: (sponsorInitialTransferGasLimit: number, newPaymentMethodInfo: PaymentMethodInfo) => Promise<boolean>;
@@ -151,8 +156,8 @@ export declare const useFunkitAllPostCheckoutsInternal: () => {
151
156
  checkoutHistoryStateMap: CheckoutHistoryStateMap;
152
157
  isCheckoutHistoryInited: boolean;
153
158
  isRefreshingCheckoutHistory: boolean;
154
- startCheckoutHistoryListener: (recipientAddr?: Address | undefined) => void;
155
- stopCheckoutHistoryListener: () => void;
159
+ startCheckoutHistoryListener: (recipientAddr?: Address | undefined) => NodeJS.Timeout;
160
+ stopCheckoutHistoryListener: (cancelIntervalId?: NodeJS.Timeout) => void;
156
161
  };
157
162
  /**
158
163
  * External hook for user to kickstart a checkout in their app
@@ -0,0 +1,18 @@
1
+ export declare enum CheckoutInitStepMessage {
2
+ CONFIRMING = 0,
3
+ PREPARING_DATA = 1
4
+ }
5
+ export declare const CHECKOUT_STEP_MESSAGE_GENERATOR: {
6
+ 1: () => string;
7
+ 0: () => string;
8
+ };
9
+ export declare enum Web3AccountBalanceMessage {
10
+ SIGN_TX = 0,
11
+ SWITCH_CHAIN = 1,
12
+ APPROVE_TRANSFER = 2
13
+ }
14
+ export declare const WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR: {
15
+ 0: () => string;
16
+ 1: (newChainName: string) => string;
17
+ 2: (tokenSymbol: string) => string;
18
+ };
@@ -1,6 +1,7 @@
1
1
  import { Address } from 'viem';
2
2
  /**
3
3
  * Handles the starting and stopping of checkout history listeners based on the calling component's mount/unmount status
4
+ * Each hook will store and track its own intervalId
4
5
  */
5
6
  export declare function useCheckoutHistoryListener(activate?: boolean, singleDepositAddr?: Address | undefined): void;
6
7
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { ConnectButton } from './components/ConnectButton/ConnectButton';
2
2
  export { useFunkitCheckout } from './components/FunkitProvider/FunkitCheckoutContext';
3
+ export type { FunkitConfig } from './components/FunkitProvider/FunkitConfigContext';
3
4
  export { FunkitProvider } from './components/FunkitProvider/FunkitProvider';
4
5
  export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
5
6
  export { WalletButton } from './components/WalletButton/WalletButton';
package/dist/index.js CHANGED
@@ -160,7 +160,8 @@ var TO_PROGRESS_CHECKOUT_STATES = [
160
160
  CheckoutState.TO_UNFUNDED,
161
161
  CheckoutState.TO_FUNDED,
162
162
  CheckoutState.TO_POOLED,
163
- CheckoutState.TO_READY
163
+ CheckoutState.TO_READY,
164
+ CheckoutState.PENDING_RECEIVAL
164
165
  ];
165
166
  var IN_PROGRESS_CHECKOUT_STATES = [
166
167
  ...TO_PROGRESS_CHECKOUT_STATES,
@@ -1537,7 +1538,7 @@ var animateContentInClass = "stgjxl2";
1537
1538
  var animateContentOutClass = "stgjxl3";
1538
1539
 
1539
1540
  // src/hooks/useFunListeners.ts
1540
- import { useEffect as useEffect8 } from "react";
1541
+ import { useEffect as useEffect8, useRef as useRef4 } from "react";
1541
1542
 
1542
1543
  // src/components/FunkitProvider/FunkitCheckoutContext.tsx
1543
1544
  import {
@@ -1576,6 +1577,17 @@ import {
1576
1577
  } from "viem";
1577
1578
  import { useConfig as useConfig2 } from "wagmi";
1578
1579
 
1580
+ // src/consts/checkout.ts
1581
+ var CHECKOUT_STEP_MESSAGE_GENERATOR = {
1582
+ [1 /* PREPARING_DATA */]: () => "Preparing order data...",
1583
+ [0 /* CONFIRMING */]: () => "Confirming your order..."
1584
+ };
1585
+ var WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR = {
1586
+ [0 /* SIGN_TX */]: () => `Sign the message request in your wallet.`,
1587
+ [1 /* SWITCH_CHAIN */]: (newChainName) => `Accept the network switch request to ${newChainName} in your wallet.`,
1588
+ [2 /* APPROVE_TRANSFER */]: (tokenSymbol) => `Accept the ${tokenSymbol} transfer request in your wallet.`
1589
+ };
1590
+
1579
1591
  // src/consts/quote.ts
1580
1592
  var PENDING_QUOTE_MESSAGE_GENERATOR = {
1581
1593
  [0 /* PREPARING */]: () => "Preparing your quote...",
@@ -1592,9 +1604,13 @@ var QUOTE_API_ERROR_STRING_INFO = {
1592
1604
  check: "try to increase the amount",
1593
1605
  display: "Checkout amount is too low. Please try again with a higher amount."
1594
1606
  },
1595
- [2 /* INSUFFICIENT_AMOUNT_FOR_BRDIGE */]: {
1607
+ [2 /* INSUFFICIENT_AMOUNT_FOR_BRDIGE_1 */]: {
1596
1608
  check: "target token must be at least",
1597
1609
  display: "Checkout amount is too low. Please try again with a higher amount."
1610
+ },
1611
+ [3 /* INSUFFICIENT_AMOUNT_FOR_BRDIGE_2 */]: {
1612
+ check: "Bridge min amount not met",
1613
+ display: "Checkout amount is too low. Please try again with a higher amount."
1598
1614
  }
1599
1615
  };
1600
1616
  function generateQuoteApiErrorForDisplay(errorMessage = "") {
@@ -2119,7 +2135,7 @@ var FunkitCheckoutContext = createContext9({
2119
2135
  isCheckoutHistoryInited: false,
2120
2136
  isRefreshingCheckoutHistory: true,
2121
2137
  reDraftSymbol: Symbol(),
2122
- _startCheckoutHistoryListener: () => void 0,
2138
+ _startCheckoutHistoryListener: () => setTimeout(() => void 0, 0),
2123
2139
  _stopCheckoutHistoryListener: () => void 0,
2124
2140
  _initNewCheckout: () => "",
2125
2141
  _updateSelectedSourceAsset: () => void 0,
@@ -2228,15 +2244,23 @@ function FunkitCheckoutProvider({ children }) {
2228
2244
  setHistoryDepositAddress(singleDepositAddr);
2229
2245
  clearInterval(intervalRef.current);
2230
2246
  triggerRefreshSymbol();
2231
- intervalRef.current = setInterval(() => {
2247
+ const newIntervalId = setInterval(() => {
2232
2248
  triggerRefreshSymbol();
2233
2249
  }, CHECKOUT_HISTORY_REFETCH_INTERVAL_MS);
2250
+ intervalRef.current = newIntervalId;
2251
+ return newIntervalId;
2234
2252
  },
2235
2253
  [triggerRefreshSymbol]
2236
2254
  );
2237
- const _stopCheckoutHistoryListener = useCallback6(() => {
2238
- clearInterval(intervalRef.current);
2239
- }, []);
2255
+ const _stopCheckoutHistoryListener = useCallback6(
2256
+ (cancelIntervalId) => {
2257
+ clearInterval(cancelIntervalId);
2258
+ if (cancelIntervalId === intervalRef.current) {
2259
+ intervalRef.current = void 0;
2260
+ }
2261
+ },
2262
+ []
2263
+ );
2240
2264
  const _initNewCheckout = useCallback6(
2241
2265
  (initSettings, hasSufficientBalance, sourceSymbol) => {
2242
2266
  const newCheckoutId = uuid();
@@ -2642,11 +2666,14 @@ function FunkitCheckoutProvider({ children }) {
2642
2666
  ]
2643
2667
  );
2644
2668
  const _generateSignedBatchOperation = useCallback6(
2645
- async (actionsParams, assetChainId, bypassWalletInit) => {
2669
+ async (actionsParams, assetChainId, bypassWalletInit, stepMessageSetter) => {
2646
2670
  if (!funWallet || !funWalletAuth) {
2647
2671
  throw new Error("Funwallet or auth not defined");
2648
2672
  }
2649
2673
  try {
2674
+ stepMessageSetter(
2675
+ CHECKOUT_STEP_MESSAGE_GENERATOR[1 /* PREPARING_DATA */]()
2676
+ );
2650
2677
  let txParamsList = [];
2651
2678
  actionsParams.forEach((actionParam) => {
2652
2679
  const tokenInterface = new ContractInterface(actionParam.contractAbi);
@@ -2697,6 +2724,11 @@ function FunkitCheckoutProvider({ children }) {
2697
2724
  bypassWalletInit
2698
2725
  });
2699
2726
  const userId = await (funWalletAuth == null ? void 0 : funWalletAuth.getUserId());
2727
+ if (isWeb3Login) {
2728
+ stepMessageSetter(
2729
+ WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR[0 /* SIGN_TX */]()
2730
+ );
2731
+ }
2700
2732
  const batchOperation = await funWallet.createBatchOperation(
2701
2733
  funWalletAuth,
2702
2734
  userId,
@@ -2734,7 +2766,7 @@ function FunkitCheckoutProvider({ children }) {
2734
2766
  [_getAndValidateCheckoutItemByCheckoutId]
2735
2767
  );
2736
2768
  const _confirmCheckout = useCallback6(
2737
- async (checkoutId, shouldbatchOpBypassInit) => {
2769
+ async (checkoutId, shouldbatchOpBypassInit, stepMessageSetter) => {
2738
2770
  var _a, _b, _c;
2739
2771
  if (!(funkitConfig == null ? void 0 : funkitConfig.apiKey)) {
2740
2772
  throw new Error(
@@ -2759,10 +2791,14 @@ function FunkitCheckoutProvider({ children }) {
2759
2791
  const signedBatchOperation = await _generateSignedBatchOperation(
2760
2792
  checkoutItem.initSettings.config.actionsParams,
2761
2793
  checkoutItem.initSettings.config.targetChain,
2762
- shouldbatchOpBypassInit
2794
+ shouldbatchOpBypassInit,
2795
+ stepMessageSetter
2763
2796
  );
2764
2797
  batchUserOp = signedBatchOperation.userOp;
2765
2798
  }
2799
+ stepMessageSetter(
2800
+ CHECKOUT_STEP_MESSAGE_GENERATOR[0 /* CONFIRMING */]()
2801
+ );
2766
2802
  const depositAddress = await postApiInitializeCheckout({
2767
2803
  userOp: batchUserOp,
2768
2804
  quoteId: checkoutItem.latestQuote.baseQuote.quoteId,
@@ -2857,7 +2893,11 @@ var useFunkitPreCheckoutInternal = (checkoutId) => {
2857
2893
  isCheckoutCrFlow
2858
2894
  ),
2859
2895
  updateSelectedPaymentMethodInfo: (newPaymentMethodInfo) => _updateSelectedPaymentMethodInfo(checkoutId, newPaymentMethodInfo),
2860
- confirmCheckout: async (shouldBatchOpBypassInit) => await _confirmCheckout(checkoutId, shouldBatchOpBypassInit),
2896
+ confirmCheckout: async (shouldBatchOpBypassInit, stepMessageSetter) => await _confirmCheckout(
2897
+ checkoutId,
2898
+ shouldBatchOpBypassInit,
2899
+ stepMessageSetter
2900
+ ),
2861
2901
  clearCheckoutQuoteMessages: () => _clearCheckoutQuoteMessages(checkoutId),
2862
2902
  getCheckoutQuote: async (sponsorInitialTransferGasLimit, newPaymentMethodInfo) => await _getCheckoutQuote(
2863
2903
  checkoutId,
@@ -3035,12 +3075,14 @@ var useFunkitCheckout = (props) => {
3035
3075
 
3036
3076
  // src/hooks/useFunListeners.ts
3037
3077
  function useCheckoutHistoryListener(activate = true, singleDepositAddr) {
3078
+ const activeIntervalRef = useRef4();
3038
3079
  const { startCheckoutHistoryListener, stopCheckoutHistoryListener } = useFunkitAllPostCheckoutsInternal();
3039
3080
  useEffect8(() => {
3040
3081
  if (activate) {
3041
- startCheckoutHistoryListener(singleDepositAddr);
3082
+ const createdIntervalId = startCheckoutHistoryListener(singleDepositAddr);
3083
+ activeIntervalRef.current = createdIntervalId;
3042
3084
  }
3043
- return () => stopCheckoutHistoryListener();
3085
+ return () => stopCheckoutHistoryListener(activeIntervalRef.current);
3044
3086
  }, [activate]);
3045
3087
  }
3046
3088
  function useWalletAssetsListener(activate = true) {
@@ -3655,7 +3697,7 @@ import React89, { useCallback as useCallback19, useMemo as useMemo25, useState a
3655
3697
  import { useAccount as useAccount5 } from "wagmi";
3656
3698
 
3657
3699
  // src/hooks/useMesh.tsx
3658
- import React43, { useCallback as useCallback8, useMemo as useMemo11, useRef as useRef4, useState as useState12 } from "react";
3700
+ import React43, { useCallback as useCallback8, useMemo as useMemo11, useRef as useRef5, useState as useState12 } from "react";
3659
3701
  import { useAccount as useAccount3 } from "wagmi";
3660
3702
 
3661
3703
  // src/components/FunDot/FunDot.tsx
@@ -4316,7 +4358,7 @@ var useMeshExchanges = ({
4316
4358
  };
4317
4359
  };
4318
4360
  function useEqualMeshNetworkSupportedTokens(array, clearCache) {
4319
- const previousArray = useRef4(array);
4361
+ const previousArray = useRef5(array);
4320
4362
  if (!clearCache && array.length === previousArray.current.length) {
4321
4363
  return previousArray.current;
4322
4364
  }
@@ -4339,7 +4381,7 @@ var useMeshActiveNetworkInfo = (exchange) => {
4339
4381
  const { chain: activeChain } = useAccount3();
4340
4382
  const [meshNetworkId, setMeshNetworkId] = useState12(null);
4341
4383
  const [meshSupportedTokens, setMeshSupportedTokens] = useState12([]);
4342
- const networkandExchange = useRef4(`${exchange}${meshNetworkId}`);
4384
+ const networkandExchange = useRef5(`${exchange}${meshNetworkId}`);
4343
4385
  const meshSupportedTokensEqualLength = useEqualMeshNetworkSupportedTokens(
4344
4386
  meshSupportedTokens,
4345
4387
  networkandExchange.current !== `${exchange}${meshNetworkId}`
@@ -5178,7 +5220,7 @@ function FunPaymentMethods({
5178
5220
  const { isCheckoutCrFlow } = useCheckoutType(checkoutItem);
5179
5221
  useEffect9(() => {
5180
5222
  if (paymentFlow === 1 /* CHECKOUT */ && isCheckoutCrFlow) {
5181
- setSelectedOption(null);
5223
+ setSelectedOption(paymentsConfig.defaultPaymentMethod || null);
5182
5224
  }
5183
5225
  }, [reDraftSymbol]);
5184
5226
  const hasSufficientBalance = useMemo13(() => {
@@ -5506,8 +5548,7 @@ function LineItem({ children, ...otherProps }) {
5506
5548
  }
5507
5549
  function FeesLineItem({
5508
5550
  feesItem,
5509
- isLoading,
5510
- isEstimatedNetworkFees
5551
+ isLoading
5511
5552
  }) {
5512
5553
  const [isExpanded, setIsExpanded] = useState15(false);
5513
5554
  const toggle = () => setIsExpanded(!isExpanded);
@@ -5533,7 +5574,7 @@ function FeesLineItem({
5533
5574
  weight: "medium",
5534
5575
  color: "modalText",
5535
5576
  size: "14"
5536
- }, isEstimatedNetworkFees ? "~" : "", formatCurrencyAndStringify(
5577
+ }, formatCurrencyAndStringify(
5537
5578
  parseFloat(feesItem.totalUsd.toString())
5538
5579
  )), isExpanded ? /* @__PURE__ */ React58.createElement(FunUpArrow, null) : /* @__PURE__ */ React58.createElement(FunDownArrow, null)) : null), isExpanded ? /* @__PURE__ */ React58.createElement(Fragment, null, /* @__PURE__ */ React58.createElement(LineItem, null, /* @__PURE__ */ React58.createElement(Text, {
5539
5580
  weight: "medium",
@@ -5560,7 +5601,7 @@ function FeesLineItem({
5560
5601
  weight: "medium",
5561
5602
  color: "modalText",
5562
5603
  size: "14"
5563
- }, isEstimatedNetworkFees ? "~" : "", formatCurrencyAndStringify(
5604
+ }, formatCurrencyAndStringify(
5564
5605
  parseFloat(feesItem.transactionFeesUsd.toString())
5565
5606
  ))) : null), /* @__PURE__ */ React58.createElement(LineItem, null, /* @__PURE__ */ React58.createElement(Text, {
5566
5607
  weight: "medium",
@@ -5608,8 +5649,7 @@ function FunTransactionSummary({
5608
5649
  symbol = "",
5609
5650
  paymentTokenString,
5610
5651
  suffixComponent,
5611
- errorMessage = "",
5612
- isEstimatedNetworkFees = false
5652
+ errorMessage = ""
5613
5653
  }) {
5614
5654
  return /* @__PURE__ */ React58.createElement(Box, null, /* @__PURE__ */ React58.createElement(Box, {
5615
5655
  paddingBottom: "8"
@@ -5664,8 +5704,7 @@ function FunTransactionSummary({
5664
5704
  size: "14"
5665
5705
  }, paymentTokenString))), /* @__PURE__ */ React58.createElement(FunTxSummaryDivider, null)) : null, /* @__PURE__ */ React58.createElement(FeesLineItem, {
5666
5706
  feesItem: estFees,
5667
- isLoading,
5668
- isEstimatedNetworkFees
5707
+ isLoading
5669
5708
  }), /* @__PURE__ */ React58.createElement(FunTxSummaryDivider, null), /* @__PURE__ */ React58.createElement(LineItem, null, /* @__PURE__ */ React58.createElement(Text, {
5670
5709
  weight: "medium",
5671
5710
  color: "modalTextDim",
@@ -5695,7 +5734,7 @@ function FunTransactionSummary({
5695
5734
  weight: "medium",
5696
5735
  color: "modalText",
5697
5736
  size: "14"
5698
- }, isEstimatedNetworkFees ? "~" : "", formatCurrencyAndStringify(parseFloat(total == null ? void 0 : total.toString()))) : null)) : null, suffixComponent));
5737
+ }, formatCurrencyAndStringify(parseFloat(total == null ? void 0 : total.toString()))) : null)) : null, suffixComponent));
5699
5738
  }
5700
5739
 
5701
5740
  // src/components/FunCheckoutModal/FunCheckoutPrimaryInfo.tsx
@@ -6224,7 +6263,7 @@ import React67, {
6224
6263
  Fragment as Fragment2,
6225
6264
  useCallback as useCallback12,
6226
6265
  useEffect as useEffect12,
6227
- useRef as useRef5
6266
+ useRef as useRef6
6228
6267
  } from "react";
6229
6268
  var FunTwoFaInput = ({
6230
6269
  value,
@@ -6234,7 +6273,7 @@ var FunTwoFaInput = ({
6234
6273
  errorMessage
6235
6274
  }) => {
6236
6275
  const inputLength = 6;
6237
- const inputRefs = useRef5([]);
6276
+ const inputRefs = useRef6([]);
6238
6277
  inputRefs.current = Array(inputLength).fill(null);
6239
6278
  const [focusIndex, setFocusIndex] = React67.useState(0);
6240
6279
  const handleBackspace = useCallback12(
@@ -6547,7 +6586,7 @@ import React75 from "react";
6547
6586
  import React71, { useCallback as useCallback14, useMemo as useMemo17, useState as useState19 } from "react";
6548
6587
 
6549
6588
  // src/components/FunSelect/FunSelect.tsx
6550
- import React69, { useMemo as useMemo16, useRef as useRef6 } from "react";
6589
+ import React69, { useMemo as useMemo16, useRef as useRef7 } from "react";
6551
6590
  import { useState as useState18 } from "react";
6552
6591
 
6553
6592
  // src/utils/indexBy.ts
@@ -6762,8 +6801,8 @@ function FunPaymentMeshType({
6762
6801
 
6763
6802
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
6764
6803
  import { getMoonpayUrlSignature } from "@funkit/core";
6765
- import React72, { useEffect as useEffect14, useMemo as useMemo18, useState as useState20 } from "react";
6766
- var MoonPayBuyWidget = (props) => {
6804
+ import React72, { memo, useEffect as useEffect14, useMemo as useMemo18, useState as useState20 } from "react";
6805
+ var MoonPayBuyWidget = memo(function Widget(props) {
6767
6806
  const [MoonPayBuyWidgetInner, setMoonPayBuyWidgetInner] = React72.useState(null);
6768
6807
  useEffect14(() => {
6769
6808
  const loadMoonPayBuyWidgetInner = async () => {
@@ -6781,7 +6820,7 @@ var MoonPayBuyWidget = (props) => {
6781
6820
  return /* @__PURE__ */ React72.createElement(MoonPayBuyWidgetInner, {
6782
6821
  ...props
6783
6822
  }, props.children);
6784
- };
6823
+ });
6785
6824
  function FunPaymentMoonpayType({
6786
6825
  paymentFlow,
6787
6826
  paymentAddress,
@@ -6790,7 +6829,8 @@ function FunPaymentMoonpayType({
6790
6829
  depositTokenAmount,
6791
6830
  onBackToHome,
6792
6831
  backAnimation = false,
6793
- redirectToCheckoutHistory
6832
+ redirectToCheckoutHistory,
6833
+ finalConvertedAssetName
6794
6834
  }) {
6795
6835
  const [isSupportedRegion, setIsSupportedRegion] = useState20(true);
6796
6836
  const [isBackToHomeDisabled, setIsBackToHomeDisabled] = useState20(true);
@@ -6806,8 +6846,14 @@ function FunPaymentMoonpayType({
6806
6846
  return signature || "";
6807
6847
  };
6808
6848
  const description = useMemo18(() => {
6809
- return `${funkitConfig == null ? void 0 : funkitConfig.appName} uses Moonpay to on-ramp ${depositToken} via credit & debit cards.`;
6810
- }, [funkitConfig == null ? void 0 : funkitConfig.appName, depositToken]);
6849
+ const normalizedConvertedAssetName = finalConvertedAssetName.toLowerCase();
6850
+ if (normalizedConvertedAssetName.startsWith("$")) {
6851
+ return normalizedConvertedAssetName.slice(1);
6852
+ }
6853
+ const isSame = normalizedConvertedAssetName === depositToken.toLowerCase();
6854
+ const conversionText = finalConvertedAssetName && !isSame ? ` that is then automatically converted to ${finalConvertedAssetName}.` : ".";
6855
+ return `${funkitConfig == null ? void 0 : funkitConfig.appName} uses Moonpay to on-ramp ${depositToken} via credit & debit cards${conversionText}`;
6856
+ }, [finalConvertedAssetName, funkitConfig == null ? void 0 : funkitConfig.appName, depositToken]);
6811
6857
  return /* @__PURE__ */ React72.createElement(Box, {
6812
6858
  className: backAnimation ? animateContentOutClass : animateContentInClass
6813
6859
  }, /* @__PURE__ */ React72.createElement(Box, {
@@ -7048,7 +7094,8 @@ function FunPaymentSetup({
7048
7094
  tokenAmountUsd,
7049
7095
  backAnimation = false,
7050
7096
  redirectToCheckoutHistory,
7051
- isParentLoading = false
7097
+ isParentLoading = false,
7098
+ finalConvertedAssetName = ""
7052
7099
  }) {
7053
7100
  const { optionsMap } = useMeshExchanges({ fullInfo: false });
7054
7101
  return paymentMethod === "brokerage" /* BROKERAGE */ ? /* @__PURE__ */ React75.createElement(FunPaymentMeshType, {
@@ -7080,7 +7127,8 @@ function FunPaymentSetup({
7080
7127
  depositTokenAmount: tokenAmountUsd,
7081
7128
  onBackToHome,
7082
7129
  backAnimation,
7083
- redirectToCheckoutHistory
7130
+ redirectToCheckoutHistory,
7131
+ finalConvertedAssetName
7084
7132
  }) : /* @__PURE__ */ React75.createElement(Text, {
7085
7133
  color: "modalTextSecondary"
7086
7134
  }, "Unsupported payment method");
@@ -7864,7 +7912,8 @@ function FunCheckoutModal({
7864
7912
  (_l = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _l.baseQuote.estTotalFromAmount
7865
7913
  ) || 0,
7866
7914
  redirectToCheckoutHistory,
7867
- isParentLoading: !!(checkoutItem == null ? void 0 : checkoutItem.isDrafting)
7915
+ isParentLoading: !!(checkoutItem == null ? void 0 : checkoutItem.isDrafting),
7916
+ finalConvertedAssetName: checkoutItem == null ? void 0 : checkoutItem.initSettings.config.checkoutItemTitle
7868
7917
  })) : checkoutStep === "select_asset" /* SELECT_ASSET */ ? /* @__PURE__ */ React80.createElement(FunCheckoutSelectAssetStep, {
7869
7918
  checkoutId,
7870
7919
  checkoutStep,
@@ -7956,7 +8005,9 @@ function CheckoutPrimaryInfoSnapshot({
7956
8005
  keyTextColor: "modalText",
7957
8006
  keyTextSize: "18",
7958
8007
  keyTextWeight: "bold",
7959
- valueText: isLoading ? "" : formatCurrencyAndStringify((checkoutItem == null ? void 0 : checkoutItem.draftDollarValue) || 0),
8008
+ valueText: isLoading ? "" : `${formatCurrencyAndStringify(
8009
+ (checkoutItem == null ? void 0 : checkoutItem.draftDollarValue) || 0
8010
+ )} USD`,
7960
8011
  valueIcon: isLoading ? /* @__PURE__ */ React81.createElement(SpinnerIcon, {
7961
8012
  height: 16,
7962
8013
  width: 16
@@ -8080,7 +8131,7 @@ function FunCheckoutConfirmationStep({
8080
8131
  onFinish,
8081
8132
  animateOut
8082
8133
  }) {
8083
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
8134
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
8084
8135
  const { writeContractAsync } = useWriteContract();
8085
8136
  const { sendTransactionAsync } = useSendTransaction();
8086
8137
  const { checkoutItem, updateSelectedPaymentMethodInfo, confirmCheckout } = useFunkitPreCheckoutInternal(checkoutId);
@@ -8097,12 +8148,14 @@ function FunCheckoutConfirmationStep({
8097
8148
  amountUsd: ((checkoutItem == null ? void 0 : checkoutItem.draftDollarValue) || 0).toString()
8098
8149
  });
8099
8150
  const [isConfirming, setIsConfirming] = useState24(false);
8151
+ const [checkoutStepMessage, setCheckoutStepMessage] = useState24("");
8100
8152
  const [confirmationError, setConfirmationError] = useState24("");
8101
8153
  const hasCheckoutConfirmationError = useMemo23(
8102
8154
  () => confirmationError !== "",
8103
8155
  [confirmationError]
8104
8156
  );
8105
8157
  const [isPostCheckoutLoading, setIsPostCheckoutLoading] = useState24(false);
8158
+ const [postCheckoutStepMessage, setPostCheckoutStepMessage] = useState24("");
8106
8159
  const [postCheckoutError, setPostCheckoutError] = useState24("");
8107
8160
  const hasPostCheckoutError = useMemo23(
8108
8161
  () => postCheckoutError !== "",
@@ -8203,8 +8256,15 @@ function FunCheckoutConfirmationStep({
8203
8256
  sourceAssetChainId,
8204
8257
  currentChain: chain
8205
8258
  });
8259
+ const chainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6[sourceAssetChainId].chainInfo.name;
8260
+ setPostCheckoutStepMessage(
8261
+ WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR[1 /* SWITCH_CHAIN */](chainName)
8262
+ );
8206
8263
  await (switchChainAsync == null ? void 0 : switchChainAsync({ chainId: parseInt(sourceAssetChainId) }));
8207
8264
  }
8265
+ setPostCheckoutStepMessage(
8266
+ WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR[2 /* APPROVE_TRANSFER */]((checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo.symbol) || "")
8267
+ );
8208
8268
  if (((_c2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _c2.address) === NATIVE_TOKEN) {
8209
8269
  const hash = await sendTransactionAsync({
8210
8270
  chainId: parseInt(sourceAssetChainId),
@@ -8222,11 +8282,13 @@ function FunCheckoutConfirmationStep({
8222
8282
  });
8223
8283
  logger.log("handleWeb3AccountBalancePostCheckout_hash", { hash });
8224
8284
  }
8285
+ setPostCheckoutStepMessage("");
8225
8286
  },
8226
8287
  [
8227
8288
  (_m = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _m.baseQuote.estTotalFromAmountBaseUnit,
8228
8289
  checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo.chainId,
8229
8290
  (_n = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _n.address,
8291
+ checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo.symbol,
8230
8292
  chain,
8231
8293
  switchChainAsync,
8232
8294
  sendTransactionAsync,
@@ -8288,8 +8350,9 @@ function FunCheckoutConfirmationStep({
8288
8350
  } catch (err) {
8289
8351
  logger.error("postCheckoutFundingError", err);
8290
8352
  setPostCheckoutError(
8291
- "An error occurred trying to fund the checkout. Please contact support for help."
8353
+ "An error occurred trying to fund the checkout. Please try again or contact support for help."
8292
8354
  );
8355
+ setPostCheckoutStepMessage("");
8293
8356
  } finally {
8294
8357
  setIsPostCheckoutLoading(false);
8295
8358
  }
@@ -8318,7 +8381,10 @@ function FunCheckoutConfirmationStep({
8318
8381
  }));
8319
8382
  shouldBatchOpBypassInit = ((_a2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _a2.paymentMethod) === "balance" /* ACCOUNT_BALANCE */ && !isFunWalletInitializedOnTargetChain && targetChainId === sourceChainId;
8320
8383
  }
8321
- const depositAddress = await (confirmCheckout == null ? void 0 : confirmCheckout(shouldBatchOpBypassInit));
8384
+ const depositAddress = await (confirmCheckout == null ? void 0 : confirmCheckout(
8385
+ shouldBatchOpBypassInit,
8386
+ setCheckoutStepMessage
8387
+ ));
8322
8388
  if (!depositAddress) {
8323
8389
  throw new Error(
8324
8390
  "Invalid depositAddress - unable to proceed with checkout"
@@ -8347,6 +8413,7 @@ function FunCheckoutConfirmationStep({
8347
8413
  setConfirmationError(
8348
8414
  "An error occurred during checkout. Please go back and try again."
8349
8415
  );
8416
+ setCheckoutStepMessage("");
8350
8417
  }
8351
8418
  } finally {
8352
8419
  setIsConfirming(false);
@@ -8375,6 +8442,7 @@ function FunCheckoutConfirmationStep({
8375
8442
  (_p = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _p.chainId,
8376
8443
  (_q = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _q.symbol
8377
8444
  ]);
8445
+ const hasError = hasDraftValueAndMethodError || hasQuoteError || hasCheckoutConfirmationError || hasPostCheckoutError;
8378
8446
  return /* @__PURE__ */ React82.createElement(Box, {
8379
8447
  display: "flex",
8380
8448
  flexDirection: "column",
@@ -8410,12 +8478,14 @@ function FunCheckoutConfirmationStep({
8410
8478
  hasPaymentToken: true,
8411
8479
  paymentTokenString,
8412
8480
  symbol: (_w = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _w.symbol,
8413
- isEstimatedNetworkFees: isWeb3Login && ((_x = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _x.paymentMethod) === "balance" /* ACCOUNT_BALANCE */,
8414
8481
  errorMessage: hasDraftValueAndMethodError ? generateInsufficientAmountForMoonpayError(
8415
8482
  1 /* CHECKOUT */,
8416
8483
  false
8417
8484
  ) : hasQuoteError ? checkoutItem == null ? void 0 : checkoutItem.quoteErrorMessage : hasCheckoutConfirmationError ? confirmationError : hasPostCheckoutError ? postCheckoutError : ""
8418
- })), /* @__PURE__ */ React82.createElement(Box, {
8485
+ })), !hasError && (postCheckoutStepMessage || checkoutStepMessage) ? /* @__PURE__ */ React82.createElement(FunNotification, {
8486
+ description: postCheckoutStepMessage || checkoutStepMessage,
8487
+ type: "default"
8488
+ }) : null, /* @__PURE__ */ React82.createElement(Box, {
8419
8489
  display: "flex",
8420
8490
  flexDirection: "column",
8421
8491
  gap: "4"
@@ -8505,8 +8575,7 @@ function FunOnrampConfirmationStep({
8505
8575
  hasTotal: true,
8506
8576
  total: totalAmountUsd,
8507
8577
  isLoading: isFetchingEstimatedFees,
8508
- errorMessage: estimationError,
8509
- isEstimatedNetworkFees: false
8578
+ errorMessage: estimationError
8510
8579
  })), /* @__PURE__ */ React84.createElement(Box, {
8511
8580
  display: "flex",
8512
8581
  flexDirection: "column",
@@ -10493,7 +10562,7 @@ var AppleIcon = () => {
10493
10562
  import React113, { useContext as useContext15, useState as useState33 } from "react";
10494
10563
 
10495
10564
  // src/components/FunkitProvider/useCoolMode.ts
10496
- import { useContext as useContext14, useEffect as useEffect22, useRef as useRef7 } from "react";
10565
+ import { useContext as useContext14, useEffect as useEffect22, useRef as useRef8 } from "react";
10497
10566
 
10498
10567
  // src/components/FunkitProvider/CoolModeContext.ts
10499
10568
  import { createContext as createContext13 } from "react";
@@ -10501,7 +10570,7 @@ var CoolModeContext = createContext13(false);
10501
10570
 
10502
10571
  // src/components/FunkitProvider/useCoolMode.ts
10503
10572
  var useCoolMode = (imageUrl) => {
10504
- const ref = useRef7(null);
10573
+ const ref = useRef8(null);
10505
10574
  const coolModeEnabled = useContext14(CoolModeContext);
10506
10575
  const resolvedImageUrl = useAsyncImage(imageUrl);
10507
10576
  useEffect22(() => {
@@ -11265,7 +11334,7 @@ var ScanIcon = () => /* @__PURE__ */ React121.createElement(AsyncImage, {
11265
11334
  });
11266
11335
 
11267
11336
  // src/components/ConnectOptions/DesktopOptions.tsx
11268
- import React130, { Fragment as Fragment6, useContext as useContext18, useEffect as useEffect24, useRef as useRef8, useState as useState35 } from "react";
11337
+ import React130, { Fragment as Fragment6, useContext as useContext18, useEffect as useEffect24, useRef as useRef9, useState as useState35 } from "react";
11269
11338
 
11270
11339
  // src/components/ConnectModal/ConnectModalIntro.tsx
11271
11340
  import React127, { useContext as useContext17 } from "react";
@@ -11489,7 +11558,7 @@ function DesktopOptions({ onClose }) {
11489
11558
  const { disclaimer: Disclaimer } = useContext18(AppContext);
11490
11559
  const { i18n: i18n2 } = useContext18(I18nContext);
11491
11560
  const safari = isSafari();
11492
- const initialized = useRef8(false);
11561
+ const initialized = useRef9(false);
11493
11562
  const { connector } = useContext18(WalletButtonContext);
11494
11563
  const mergeEIP6963WithRkConnectors = !connector;
11495
11564
  const wallets = useWalletConnectors(mergeEIP6963WithRkConnectors).filter((wallet) => wallet.ready || !!wallet.extensionDownloadUrl).sort((a, b) => a.groupIndex - b.groupIndex);
@@ -12778,7 +12847,7 @@ function FunConnectOptions({ onClose }) {
12778
12847
  }
12779
12848
 
12780
12849
  // src/components/SignIn/SignIn.tsx
12781
- import React134, { useCallback as useCallback24, useContext as useContext20, useRef as useRef9 } from "react";
12850
+ import React134, { useCallback as useCallback24, useContext as useContext20, useRef as useRef10 } from "react";
12782
12851
  import { UserRejectedRequestError } from "viem";
12783
12852
  import { useAccount as useAccount9, useSignMessage } from "wagmi";
12784
12853
  var signInIcon = async () => (await import("./sign-FZVB2CS6.js")).default;
@@ -12801,7 +12870,7 @@ function SignIn({
12801
12870
  }));
12802
12871
  }
12803
12872
  }, [authAdapter, i18n2]);
12804
- const onceRef = useRef9(false);
12873
+ const onceRef = useRef10(false);
12805
12874
  React134.useEffect(() => {
12806
12875
  if (onceRef.current)
12807
12876
  return;
@@ -15363,7 +15432,7 @@ function setFunkitConnectVersion({ version }) {
15363
15432
  localStorage.setItem(storageKey4, version);
15364
15433
  }
15365
15434
  function getCurrentSdkVersion() {
15366
- return "1.0.8";
15435
+ return "1.0.10";
15367
15436
  }
15368
15437
  function useFingerprint() {
15369
15438
  const fingerprint = useCallback28(() => {
@@ -15515,7 +15584,11 @@ function FunkitProviderInner({
15515
15584
  apiKey: "pk_live_IxayBRQuBC3RzpPZkbGPrwUsRWAaeO",
15516
15585
  debug: !!debug
15517
15586
  }, /* @__PURE__ */ React146.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React146.createElement("div", {
15518
- ...createThemeRootProps2(id)
15587
+ ...createThemeRootProps2(id),
15588
+ style: {
15589
+ width: "100%",
15590
+ height: "100%"
15591
+ }
15519
15592
  }, /* @__PURE__ */ React146.createElement("style", {
15520
15593
  dangerouslySetInnerHTML: {
15521
15594
  __html: [
@@ -15725,7 +15798,7 @@ import React149, {
15725
15798
  useCallback as useCallback30,
15726
15799
  useContext as useContext30,
15727
15800
  useEffect as useEffect36,
15728
- useRef as useRef10,
15801
+ useRef as useRef11,
15729
15802
  useState as useState45
15730
15803
  } from "react";
15731
15804
 
@@ -15777,7 +15850,7 @@ function WalletButton2({
15777
15850
  showWalletConnectModal
15778
15851
  } = wallet;
15779
15852
  const coolModeRef = useCoolMode(iconUrl);
15780
- const initialized = useRef10(false);
15853
+ const initialized = useRef11(false);
15781
15854
  const { i18n: i18n2 } = useContext30(I18nContext);
15782
15855
  const onConnect = useCallback30(async () => {
15783
15856
  const onMobileUri = async () => {
@@ -18,7 +18,8 @@ var TO_PROGRESS_CHECKOUT_STATES = [
18
18
  CheckoutState.TO_UNFUNDED,
19
19
  CheckoutState.TO_FUNDED,
20
20
  CheckoutState.TO_POOLED,
21
- CheckoutState.TO_READY
21
+ CheckoutState.TO_READY,
22
+ CheckoutState.PENDING_RECEIVAL
22
23
  ];
23
24
  var IN_PROGRESS_CHECKOUT_STATES = [
24
25
  ...TO_PROGRESS_CHECKOUT_STATES,
@@ -1,152 +1,152 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-L734HTUS.js";
3
+ talismanWallet
4
+ } from "./chunk-H273OTQA.js";
5
5
  import {
6
- walletConnectWallet
7
- } from "./chunk-ASPRR7T3.js";
6
+ zerionWallet
7
+ } from "./chunk-7CQPABJG.js";
8
8
  import {
9
- zealWallet
10
- } from "./chunk-DPXMP5KS.js";
9
+ uniswapWallet
10
+ } from "./chunk-XRSY4JVH.js";
11
11
  import {
12
- tokenPocketWallet
13
- } from "./chunk-2UXZAUWT.js";
12
+ subWallet
13
+ } from "./chunk-ZBAQFL6G.js";
14
14
  import {
15
- safeWallet
16
- } from "./chunk-D3DCQ72J.js";
15
+ tahoWallet
16
+ } from "./chunk-H76YCX2M.js";
17
17
  import {
18
- mewWallet
19
- } from "./chunk-PWYTDYBE.js";
18
+ tokenPocketWallet
19
+ } from "./chunk-2UXZAUWT.js";
20
20
  import {
21
21
  tokenaryWallet
22
22
  } from "./chunk-ENZLEAG2.js";
23
- import {
24
- uniswapWallet
25
- } from "./chunk-XRSY4JVH.js";
26
- import {
27
- safeheronWallet
28
- } from "./chunk-63NPZXAL.js";
29
23
  import {
30
24
  trustWallet
31
25
  } from "./chunk-Z2DGDHHZ.js";
32
26
  import {
33
- zerionWallet
34
- } from "./chunk-7CQPABJG.js";
27
+ walletConnectWallet
28
+ } from "./chunk-ASPRR7T3.js";
35
29
  import {
36
- ramperWallet
37
- } from "./chunk-ZOL6ZMTJ.js";
30
+ xdefiWallet
31
+ } from "./chunk-L734HTUS.js";
38
32
  import {
39
- roninWallet
40
- } from "./chunk-LVRXH33E.js";
33
+ zealWallet
34
+ } from "./chunk-DPXMP5KS.js";
41
35
  import {
42
- safepalWallet
43
- } from "./chunk-SYELB4QO.js";
36
+ phantomWallet
37
+ } from "./chunk-KGBLSE7L.js";
38
+ import {
39
+ rabbyWallet
40
+ } from "./chunk-XPEBP6XV.js";
44
41
  import {
45
42
  rainbowWallet
46
43
  } from "./chunk-O5NKWWEG.js";
47
44
  import {
48
- subWallet
49
- } from "./chunk-ZBAQFL6G.js";
45
+ ramperWallet
46
+ } from "./chunk-ZOL6ZMTJ.js";
50
47
  import {
51
- tahoWallet
52
- } from "./chunk-H76YCX2M.js";
48
+ roninWallet
49
+ } from "./chunk-LVRXH33E.js";
53
50
  import {
54
- talismanWallet
55
- } from "./chunk-H273OTQA.js";
51
+ safeWallet
52
+ } from "./chunk-D3DCQ72J.js";
56
53
  import {
57
- injectedWallet
58
- } from "./chunk-KIHCNUU3.js";
54
+ safeheronWallet
55
+ } from "./chunk-63NPZXAL.js";
59
56
  import {
60
- oktoWallet
61
- } from "./chunk-WKHTUEF5.js";
57
+ safepalWallet
58
+ } from "./chunk-SYELB4QO.js";
59
+ import {
60
+ ledgerWallet
61
+ } from "./chunk-Y6VY6E3L.js";
62
62
  import {
63
63
  metaMaskWallet
64
64
  } from "./chunk-3WZRNEZH.js";
65
65
  import {
66
- omniWallet
67
- } from "./chunk-SVN7OEQR.js";
68
- import {
69
- phantomWallet
70
- } from "./chunk-KGBLSE7L.js";
66
+ oktoWallet
67
+ } from "./chunk-WKHTUEF5.js";
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-NGXIHASN.js";
74
71
  import {
75
- oneKeyWallet
76
- } from "./chunk-4WOV4ITL.js";
72
+ omniWallet
73
+ } from "./chunk-SVN7OEQR.js";
77
74
  import {
78
- rabbyWallet
79
- } from "./chunk-XPEBP6XV.js";
75
+ mewWallet
76
+ } from "./chunk-PWYTDYBE.js";
80
77
  import {
81
78
  oneInchWallet
82
79
  } from "./chunk-LCPIZUR3.js";
83
80
  import {
84
- dawnWallet
85
- } from "./chunk-4XQDKOGF.js";
86
- import {
87
- foxWallet
88
- } from "./chunk-Q4RLUJJD.js";
89
- import {
90
- imTokenWallet
91
- } from "./chunk-5MVV7OVS.js";
81
+ oneKeyWallet
82
+ } from "./chunk-4WOV4ITL.js";
92
83
  import {
93
84
  frameWallet
94
85
  } from "./chunk-XXFJVY73.js";
95
86
  import {
96
- kresusWallet
97
- } from "./chunk-X6T3CICZ.js";
87
+ coinbaseWallet
88
+ } from "./chunk-XBUTWYE4.js";
98
89
  import {
99
90
  gateWallet
100
91
  } from "./chunk-V45EXW7A.js";
101
92
  import {
102
- ledgerWallet
103
- } from "./chunk-Y6VY6E3L.js";
93
+ injectedWallet
94
+ } from "./chunk-KIHCNUU3.js";
104
95
  import {
105
- bitgetWallet
106
- } from "./chunk-ZNXQ4V6G.js";
96
+ imTokenWallet
97
+ } from "./chunk-5MVV7OVS.js";
107
98
  import {
108
- coin98Wallet
109
- } from "./chunk-4FQLUQNA.js";
99
+ kresusWallet
100
+ } from "./chunk-X6T3CICZ.js";
110
101
  import {
111
102
  bitverseWallet
112
103
  } from "./chunk-NL4I7WOT.js";
113
104
  import {
114
- coinbaseWallet
115
- } from "./chunk-XBUTWYE4.js";
105
+ clvWallet
106
+ } from "./chunk-MIWCKFYE.js";
107
+ import {
108
+ coin98Wallet
109
+ } from "./chunk-4FQLUQNA.js";
116
110
  import {
117
111
  coreWallet
118
112
  } from "./chunk-JLQ5HJYV.js";
119
113
  import {
120
- desigWallet
121
- } from "./chunk-P4JLZ42R.js";
114
+ dawnWallet
115
+ } from "./chunk-4XQDKOGF.js";
122
116
  import {
123
117
  enkryptWallet
124
118
  } from "./chunk-FLY7F4XA.js";
119
+ import {
120
+ desigWallet
121
+ } from "./chunk-P4JLZ42R.js";
122
+ import {
123
+ foxWallet
124
+ } from "./chunk-Q4RLUJJD.js";
125
125
  import {
126
126
  frontierWallet
127
127
  } from "./chunk-AM4SSLAP.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-NZ5G23JP.js";
131
- import {
132
- bitskiWallet
133
- } from "./chunk-C67TQJ6W.js";
134
131
  import {
135
132
  bifrostWallet
136
133
  } from "./chunk-6LTLPR2Q.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-ZNXQ4V6G.js";
137
137
  import {
138
138
  bloomWallet
139
139
  } from "./chunk-NTGZF5BY.js";
140
140
  import "./chunk-ZOLACFTK.js";
141
141
  import {
142
- bybitWallet
143
- } from "./chunk-ZUAHWUEL.js";
142
+ bitskiWallet
143
+ } from "./chunk-C67TQJ6W.js";
144
144
  import {
145
145
  braveWallet
146
146
  } from "./chunk-ABYQAXUX.js";
147
147
  import {
148
- clvWallet
149
- } from "./chunk-MIWCKFYE.js";
148
+ bybitWallet
149
+ } from "./chunk-ZUAHWUEL.js";
150
150
  import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",