@funkit/connect 6.15.11 → 6.15.13

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.
@@ -1,7 +1,6 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import type { Address } from 'viem';
3
3
  import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
4
- import { LoginType } from '~/providers/GeneralWalletProvider';
5
4
  import type { AssetHoldingsItem } from '~/utils/assets';
6
5
  import { PaymentMethod } from '../domains/paymentMethods';
7
6
  export declare const isStablecoin: (symbol: string) => string | undefined;
@@ -18,12 +17,11 @@ interface AssetUsableToPayParms {
18
17
  assetChainId: string;
19
18
  assetTokenAddress: string;
20
19
  assetUsdAmount: number | null;
21
- loginType: LoginType;
22
20
  isAllowedForCheckout: boolean;
23
21
  minUsdRequired?: number;
24
22
  t: TFunction;
25
23
  }
26
- export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, loginType, isAllowedForCheckout, minUsdRequired, t, }: AssetUsableToPayParms) => {
24
+ export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minUsdRequired, t, }: AssetUsableToPayParms) => {
27
25
  isUsable: boolean;
28
26
  reason: string;
29
27
  minUsdRequired?: number;
@@ -8,12 +8,13 @@ export declare function useCheckoutDirectExecutionHistory({ initDirectExecution,
8
8
  }): {
9
9
  state: CheckoutState;
10
10
  refundState: CheckoutRefundState | undefined;
11
- isLayerZero: boolean | undefined;
11
+ isLayerZero: boolean | null | undefined;
12
12
  isRefunded: boolean;
13
13
  isCompleted: boolean;
14
14
  isFailed: boolean;
15
15
  isDelayed: boolean;
16
16
  isProcessing: boolean;
17
+ directExecution: DirectExecution | undefined;
17
18
  };
18
19
  export declare function useMultiStepDirectExecutionStatus(multiStepDirectExecution: MergedMultiStepDirectExecution, disabled?: boolean): {
19
20
  isCompleted: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { PaymentMethod } from '~/domains/paymentMethods';
2
- import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
3
  export declare const LAYERZEO_OFT_TIME_ESTIMATE_SECONDS = 180;
4
4
  /**
5
5
  * https://linear.app/funxyz/issue/PE-775/sdkconnectwith-next-pm-requests
@@ -8,7 +8,7 @@ export declare const LAYERZEO_OFT_TIME_ESTIMATE_SECONDS = 180;
8
8
  * @param bypassFlag whether to ignore flag value and return the original time estimation fallback even if flag is defined
9
9
  * @returns time estimation in seconds
10
10
  */
11
- export declare function useCheckoutTimeEstimate(apiKey: string, checkoutItem: FunkitActiveCheckoutItem | null, originalTimeEstimationMs: number | undefined, paymentMethod: PaymentMethod, bypassFlag: boolean): {
11
+ export declare function useCheckoutTimeEstimate(latestQuote: FunkitCheckoutQuoteResult | null, originalTimeEstimationMs: number | undefined, paymentMethod: PaymentMethod, bypassFlag: boolean): {
12
12
  estimatedTime: number;
13
13
  estimatedTimeText: string;
14
14
  };
@@ -3,7 +3,6 @@ import { PaymentMethod, type PaymentMethodInfo } from '../domains/paymentMethods
3
3
  export declare const PAYMENT_METHOD_ICONS: Record<Exclude<PaymentMethod, PaymentMethod.ACCOUNT_BALANCE>, (size: number) => ReactNode>;
4
4
  /**
5
5
  Reference ENG-716
6
- * web2 users -> social icon
7
6
  * EOA wallet users
8
7
  * detect connectors and show builtin icon in SDK
9
8
  * if no SDK icons available, show icon from wagmi