@funkit/connect 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{chunk-2T4ZDGAO.js → chunk-A7G4HZZY.js} +9 -4
  3. package/dist/{chunk-DYPSSLLL.js → chunk-ELA2ZIK4.js} +7 -9
  4. package/dist/{chunk-5HIKBJTA.js → chunk-TTI2Q45P.js} +7 -9
  5. package/dist/components/Box/Box.d.ts +50 -50
  6. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +3 -2
  7. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -9
  8. package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
  9. package/dist/components/FunAlert/FunAlert.d.ts +3 -1
  10. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -3
  11. package/dist/components/FunBadge/FunBadge.d.ts +14 -4
  12. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  13. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +1 -2
  14. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryTransaction.d.ts +7 -1
  15. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +2 -0
  16. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +7 -0
  17. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  18. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +1 -1
  19. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -1
  20. package/dist/components/Icons/New/PercentageIcon.d.ts +2 -0
  21. package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +6 -0
  22. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +4 -3
  23. package/dist/consts/checkout.d.ts +7 -1
  24. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  25. package/dist/css/sprinkles.css.d.ts +62 -64
  26. package/dist/domains/asset.d.ts +12 -2
  27. package/dist/domains/checkoutRecipient.d.ts +6 -0
  28. package/dist/domains/quote.d.ts +8 -0
  29. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  30. package/dist/hooks/useTokenTransfer.d.ts +3 -2
  31. package/dist/index.css +2515 -2677
  32. package/dist/index.d.ts +7 -2
  33. package/dist/index.js +1993 -1588
  34. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
  35. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -1
  36. package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -0
  37. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +8 -2
  38. package/dist/providers/AuthenticationContext.d.ts +1 -2
  39. package/dist/providers/FunkitCheckoutContext.d.ts +3 -3
  40. package/dist/providers/FunkitHistoryContext.d.ts +2 -1
  41. package/dist/providers/FunkitThemeProvider.d.ts +18 -21
  42. package/dist/providers/GeneralWalletProvider.d.ts +8 -8
  43. package/dist/themes/baseTheme.js +1 -1
  44. package/dist/themes/darkTheme.js +2 -2
  45. package/dist/themes/lightTheme.js +2 -2
  46. package/dist/utils/checkout.d.ts +10 -2
  47. package/dist/utils/flags/config.d.ts +12 -0
  48. package/dist/utils/signature.d.ts +1 -0
  49. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  54. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/index.js +60 -60
  59. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  68. package/package.json +17 -17
  69. package/dist/components/FunAsset/FunAssetBadge.d.ts +0 -16
  70. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  71. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  72. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  73. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  74. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  75. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  76. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  77. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  78. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  79. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  80. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  81. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  82. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  83. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  84. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  85. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  86. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  87. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -7,7 +7,8 @@ export interface CheckoutConfirmationError extends ErrorNotification {
7
7
  export declare enum ConfirmationErrorCode {
8
8
  QUOTE_EXPIRED = "QUOTE_EXPIRED",
9
9
  GENERIC_ERROR = "GENERIC_ERROR",
10
- RISK_ERROR = "RISK_ERROR"
10
+ RISK_ERROR = "RISK_ERROR",
11
+ SIGNATURE_DENIED = "SIGNATURE_DENIED"
11
12
  }
12
13
  interface UseCheckoutConfirmationOptions {
13
14
  onError(error: CheckoutConfirmationError): void;
@@ -24,6 +24,5 @@ interface UsePostCheckoutResult {
24
24
  postCheckoutError: PostCheckoutError | null;
25
25
  postCheckoutStepMessage: string | null;
26
26
  }
27
- export declare function isUserRejectedError(error: unknown): boolean;
28
27
  export declare function usePostCheckout({ onSuccess, }: UsePostCheckoutOptions): UsePostCheckoutResult;
29
28
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
3
+ import type { TransferTokenDefault } from './TransferToken/TransferToken';
3
4
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
4
5
  export type SelectAssetState = CheckoutModalCommonState & {
5
6
  paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
@@ -7,6 +8,7 @@ export type SelectAssetState = CheckoutModalCommonState & {
7
8
  export type SelectAssetNext = {
8
9
  paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
9
10
  disconnectedBrokerage?: boolean;
11
+ transferToken?: TransferTokenDefault;
10
12
  };
11
13
  export declare const SelectAssetInfo: ModalStepInfo<FunCheckoutStep.SELECT_ASSET>;
12
14
  export declare function SelectAsset({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_ASSET>): React.JSX.Element;
@@ -1,9 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
3
- export type TransferTokenState = CheckoutModalCommonState;
3
+ export type TransferTokenDefault = {
4
+ token: string;
5
+ chainId: number;
6
+ };
7
+ export type TransferTokenState = CheckoutModalCommonState & {
8
+ transferToken?: TransferTokenDefault;
9
+ };
4
10
  export type TransferTokenNext = Record<string, never>;
5
11
  export interface TokenTransferSourceChainsAndAssets {
6
12
  [chainId: number]: string[];
7
13
  }
8
14
  export declare const TransferTokenInfo: ModalStepInfo<FunCheckoutStep.TRANSFER_TOKEN>;
9
- export declare function TransferToken({ onNext, }: ModalStepComponentProps<FunCheckoutStep.TRANSFER_TOKEN>): React.JSX.Element;
15
+ export declare function TransferToken({ onNext, modalState, }: ModalStepComponentProps<FunCheckoutStep.TRANSFER_TOKEN>): React.JSX.Element;
@@ -21,11 +21,10 @@ export interface AuthenticationConfig<Message> {
21
21
  status: AuthenticationStatus;
22
22
  }
23
23
  export declare function createAuthenticationAdapter<Message>(adapter: AuthenticationAdapter<Message>): AuthenticationAdapter<Message>;
24
- interface FunkitConnectAuthenticationProviderProps<Message> extends AuthenticationConfig<Message> {
24
+ export interface FunkitConnectAuthenticationProviderProps<Message> extends AuthenticationConfig<Message> {
25
25
  enabled?: boolean;
26
26
  children: ReactNode;
27
27
  }
28
28
  export declare function FunkitConnectAuthenticationProvider<Message = unknown>({ adapter, children, enabled, status, }: FunkitConnectAuthenticationProviderProps<Message>): React.JSX.Element;
29
29
  export declare function useAuthenticationAdapter(): AuthenticationAdapter<any>;
30
30
  export declare function useAuthenticationStatus(): AuthenticationStatus | null;
31
- export {};
@@ -45,7 +45,7 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
45
45
  /** minimal toAmount needed to proceed checkout. Checked after quote */
46
46
  targetAssetMinAmount?: number;
47
47
  }
48
- interface FunkitCheckoutValidationResult {
48
+ export interface FunkitCheckoutValidationResult {
49
49
  isValid: boolean;
50
50
  message: string;
51
51
  }
@@ -54,7 +54,7 @@ export type FunkitCheckoutResult = {
54
54
  message: string;
55
55
  metadata: object | Error;
56
56
  };
57
- interface UseFunkitCheckoutProps {
57
+ export interface UseFunkitCheckoutProps {
58
58
  /** @optional the checkout config object **/
59
59
  config?: FunkitCheckoutConfig;
60
60
  /** @optional fires when the checkout modal is opened **/
@@ -75,7 +75,7 @@ interface UseFunkitCheckoutProps {
75
75
  onLoginRequired?: () => void;
76
76
  }
77
77
  /** Ensures that config is defined */
78
- interface UseFunkitCheckoutPropsWithFullConfig extends UseFunkitCheckoutProps {
78
+ export interface UseFunkitCheckoutPropsWithFullConfig extends UseFunkitCheckoutProps {
79
79
  config: FunkitCheckoutConfig;
80
80
  }
81
81
  /**
@@ -1,4 +1,4 @@
1
- import { type CheckoutHistoryItem } from '@funkit/api-base';
1
+ import { type CheckoutHistoryItem, type DirectExecution } from '@funkit/api-base';
2
2
  import React, { type ReactNode } from 'react';
3
3
  import type { Address } from 'viem';
4
4
  import { type CheckoutHistoryDepositAddrMap, type CheckoutHistoryStateMap } from '../utils/checkout';
@@ -40,4 +40,5 @@ export declare function useCheckoutListenerByCheckoutId(checkoutId: string): Pur
40
40
  export declare const useFunkitPostCheckoutInternal: (depositAddress: Address) => {
41
41
  isLoading: boolean;
42
42
  checkoutHistoryInfo: CheckoutHistoryItem | undefined;
43
+ directExecutionInfo: DirectExecution | undefined;
43
44
  };
@@ -46,6 +46,7 @@ export declare const useActiveTheme: () => {
46
46
  modalBackground: string;
47
47
  modalBorder: string;
48
48
  offBackground: string;
49
+ offBackgroundInverse: string;
49
50
  offBackgroundComplimentary: string;
50
51
  hoverState: string;
51
52
  lightStroke: string;
@@ -82,18 +83,14 @@ export declare const useActiveTheme: () => {
82
83
  buttonIconBackgroundHover: string;
83
84
  buttonIconBackgroundPressed: string;
84
85
  buttonIconStroke: string;
85
- buttonBorder: string;
86
- buttonBorderHover: string;
87
- buttonBorderActive: string;
88
- buttonBorderFocused: string;
89
- buttonBorderTertiary: string;
90
- buttonBorderHoverTertiary: string;
91
- buttonBorderActiveTertiary: string;
92
86
  buttonBorderFocusedTertiary: string;
93
87
  buttonFocusedOutline: string;
94
88
  badgeBackgroundSuccess: string;
95
89
  badgeBorderSuccess: string;
96
90
  badgeTextSuccess: string;
91
+ badgeBackgroundSolana: string;
92
+ badgeBorderSolana: string;
93
+ badgeTextSolana: string;
97
94
  inputAmountQuickOptionBaseBackground: string;
98
95
  inputAmountQuickOptionHoverBackground: string;
99
96
  inputAmountQuickOptionActiveBackground: string;
@@ -169,6 +166,7 @@ export declare const useActiveTheme: () => {
169
166
  modalMobile: string;
170
167
  modalActionButton: string;
171
168
  modalActionButtonMobile: string;
169
+ summaryBox: string;
172
170
  };
173
171
  shadows: {
174
172
  connectButton: string;
@@ -179,6 +177,7 @@ export declare const useActiveTheme: () => {
179
177
  notification: string;
180
178
  vertexDropdown: string;
181
179
  qrCode: string;
180
+ buttonFocusedShadow: string;
182
181
  };
183
182
  blurs: {
184
183
  modalOverlay: string;
@@ -213,6 +212,7 @@ export declare const useActiveTheme: () => {
213
212
  modalBackground: string;
214
213
  modalBorder: string;
215
214
  offBackground: string;
215
+ offBackgroundInverse: string;
216
216
  offBackgroundComplimentary: string;
217
217
  hoverState: string;
218
218
  lightStroke: string;
@@ -249,18 +249,14 @@ export declare const useActiveTheme: () => {
249
249
  buttonIconBackgroundHover: string;
250
250
  buttonIconBackgroundPressed: string;
251
251
  buttonIconStroke: string;
252
- buttonBorder: string;
253
- buttonBorderHover: string;
254
- buttonBorderActive: string;
255
- buttonBorderFocused: string;
256
- buttonBorderTertiary: string;
257
- buttonBorderHoverTertiary: string;
258
- buttonBorderActiveTertiary: string;
259
252
  buttonBorderFocusedTertiary: string;
260
253
  buttonFocusedOutline: string;
261
254
  badgeBackgroundSuccess: string;
262
255
  badgeBorderSuccess: string;
263
256
  badgeTextSuccess: string;
257
+ badgeBackgroundSolana: string;
258
+ badgeBorderSolana: string;
259
+ badgeTextSolana: string;
264
260
  inputAmountQuickOptionBaseBackground: string;
265
261
  inputAmountQuickOptionHoverBackground: string;
266
262
  inputAmountQuickOptionActiveBackground: string;
@@ -336,6 +332,7 @@ export declare const useActiveTheme: () => {
336
332
  modalMobile: string;
337
333
  modalActionButton: string;
338
334
  modalActionButtonMobile: string;
335
+ summaryBox: string;
339
336
  };
340
337
  shadows: {
341
338
  connectButton: string;
@@ -346,6 +343,7 @@ export declare const useActiveTheme: () => {
346
343
  notification: string;
347
344
  vertexDropdown: string;
348
345
  qrCode: string;
346
+ buttonFocusedShadow: string;
349
347
  };
350
348
  blurs: {
351
349
  modalOverlay: string;
@@ -378,6 +376,7 @@ export declare const useActiveTheme: () => {
378
376
  modalBackground: string;
379
377
  modalBorder: string;
380
378
  offBackground: string;
379
+ offBackgroundInverse: string;
381
380
  offBackgroundComplimentary: string;
382
381
  hoverState: string;
383
382
  lightStroke: string;
@@ -414,18 +413,14 @@ export declare const useActiveTheme: () => {
414
413
  buttonIconBackgroundHover: string;
415
414
  buttonIconBackgroundPressed: string;
416
415
  buttonIconStroke: string;
417
- buttonBorder: string;
418
- buttonBorderHover: string;
419
- buttonBorderActive: string;
420
- buttonBorderFocused: string;
421
- buttonBorderTertiary: string;
422
- buttonBorderHoverTertiary: string;
423
- buttonBorderActiveTertiary: string;
424
416
  buttonBorderFocusedTertiary: string;
425
417
  buttonFocusedOutline: string;
426
418
  badgeBackgroundSuccess: string;
427
419
  badgeBorderSuccess: string;
428
420
  badgeTextSuccess: string;
421
+ badgeBackgroundSolana: string;
422
+ badgeBorderSolana: string;
423
+ badgeTextSolana: string;
429
424
  inputAmountQuickOptionBaseBackground: string;
430
425
  inputAmountQuickOptionHoverBackground: string;
431
426
  inputAmountQuickOptionActiveBackground: string;
@@ -501,6 +496,7 @@ export declare const useActiveTheme: () => {
501
496
  modalMobile: string;
502
497
  modalActionButton: string;
503
498
  modalActionButtonMobile: string;
499
+ summaryBox: string;
504
500
  };
505
501
  shadows: {
506
502
  connectButton: string;
@@ -511,6 +507,7 @@ export declare const useActiveTheme: () => {
511
507
  notification: string;
512
508
  vertexDropdown: string;
513
509
  qrCode: string;
510
+ buttonFocusedShadow: string;
514
511
  };
515
512
  blurs: {
516
513
  modalOverlay: string;
@@ -96,15 +96,15 @@ export declare const useFunkitDisconnect: () => {
96
96
  error: null;
97
97
  data: undefined;
98
98
  status: "idle";
99
- isPaused: boolean;
100
- context: unknown;
101
99
  isError: false;
102
100
  isPending: false;
103
101
  isSuccess: false;
104
102
  failureCount: number;
105
103
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
104
+ isPaused: boolean;
106
105
  variables: undefined;
107
106
  isIdle: true;
107
+ context: unknown;
108
108
  submittedAt: number;
109
109
  connectors: readonly import("wagmi").Connector[];
110
110
  } | {
@@ -114,15 +114,15 @@ export declare const useFunkitDisconnect: () => {
114
114
  error: null;
115
115
  data: undefined;
116
116
  status: "pending";
117
- isPaused: boolean;
118
- context: unknown;
119
117
  isError: false;
120
118
  isPending: true;
121
119
  isSuccess: false;
122
120
  failureCount: number;
123
121
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
122
+ isPaused: boolean;
124
123
  variables: import("wagmi/query").DisconnectVariables;
125
124
  isIdle: false;
125
+ context: unknown;
126
126
  submittedAt: number;
127
127
  connectors: readonly import("wagmi").Connector[];
128
128
  } | {
@@ -132,15 +132,15 @@ export declare const useFunkitDisconnect: () => {
132
132
  error: import("@wagmi/core").DisconnectErrorType;
133
133
  data: undefined;
134
134
  status: "error";
135
- isPaused: boolean;
136
- context: unknown;
137
135
  isError: true;
138
136
  isPending: false;
139
137
  isSuccess: false;
140
138
  failureCount: number;
141
139
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
140
+ isPaused: boolean;
142
141
  variables: import("wagmi/query").DisconnectVariables;
143
142
  isIdle: false;
143
+ context: unknown;
144
144
  submittedAt: number;
145
145
  connectors: readonly import("wagmi").Connector[];
146
146
  } | {
@@ -150,15 +150,15 @@ export declare const useFunkitDisconnect: () => {
150
150
  error: null;
151
151
  data: void;
152
152
  status: "success";
153
- isPaused: boolean;
154
- context: unknown;
155
153
  isError: false;
156
154
  isPending: false;
157
155
  isSuccess: true;
158
156
  failureCount: number;
159
157
  failureReason: import("@wagmi/core").DisconnectErrorType | null;
158
+ isPaused: boolean;
160
159
  variables: import("wagmi/query").DisconnectVariables;
161
160
  isIdle: false;
161
+ context: unknown;
162
162
  submittedAt: number;
163
163
  connectors: readonly import("wagmi").Connector[];
164
164
  };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-2T4ZDGAO.js";
5
+ } from "../chunk-A7G4HZZY.js";
6
6
  export {
7
7
  baseTheme,
8
8
  systemFontStack
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-5HIKBJTA.js";
5
- import "../chunk-2T4ZDGAO.js";
4
+ } from "../chunk-TTI2Q45P.js";
5
+ import "../chunk-A7G4HZZY.js";
6
6
  export {
7
7
  darkTheme
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-DYPSSLLL.js";
5
- import "../chunk-2T4ZDGAO.js";
4
+ } from "../chunk-ELA2ZIK4.js";
5
+ import "../chunk-A7G4HZZY.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -4,7 +4,7 @@ import { type Address } from 'viem';
4
4
  import type { UseConfigReturnType } from 'wagmi';
5
5
  import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
6
6
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
7
- import type { FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
7
+ import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
8
8
  export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
9
9
  export declare const MESH_TIME_ESTIMATE_MS = 300000;
10
10
  export declare const DUMMY_TRANSFER_PARAMS: {
@@ -51,7 +51,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
51
51
  bypassInit: boolean;
52
52
  apiKey?: string;
53
53
  nonce?: bigint | undefined;
54
- logger?: import("@funkit/api-base").Logger | undefined;
55
54
  fee?: {
56
55
  token?: string;
57
56
  amount?: number;
@@ -59,6 +58,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
59
58
  recipient: Address;
60
59
  } | undefined;
61
60
  skipDBAction?: boolean | undefined;
61
+ logger?: import("@funkit/api-base").Logger | undefined;
62
62
  };
63
63
  export type TokenInfo = {
64
64
  symbol: string;
@@ -122,3 +122,11 @@ export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfi
122
122
  * @returns whether we should show the checkout to the user (ie. supported in current sdk version & not cancelled)
123
123
  */
124
124
  export declare const isCheckoutValid: (checkout: CheckoutHistoryItem) => boolean;
125
+ /**
126
+ * @returns true if the source and target are the same, a post action is required, is wallet balance, and is for vertex (for now)
127
+ */
128
+ export declare const isDirectExecutionFlow: ({ checkoutItem, apiKey, }: {
129
+ checkoutItem: FunkitActiveCheckoutItem | null;
130
+ apiKey: string;
131
+ }) => boolean;
132
+ export declare const isCheckoutHistoryDirectExecution: (checkoutId: string) => boolean;
@@ -122,4 +122,16 @@ export declare const flagConfig: {
122
122
  type: "string";
123
123
  default_value: string;
124
124
  };
125
+ enable_vertex_swap_bypass: {
126
+ type: "boolean";
127
+ default_value: true;
128
+ };
129
+ display_solana_new_badge: {
130
+ type: "boolean";
131
+ default_value: true;
132
+ };
133
+ display_solana_deposits_banner: {
134
+ type: "boolean";
135
+ default_value: true;
136
+ };
125
137
  };
@@ -0,0 +1 @@
1
+ export declare function isUserRejectedError(error: unknown): boolean;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-545L7Y4M.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-W6N74MS3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-7GSNBOD3.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-A5APNTGL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-W5O4YSZN.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-6ONTSPEY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-LEXSM5KI.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-KR6JBW5E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-KFFJPS5R.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-DTRYS3MO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-JXP2QPW7.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-HBA36GW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-XYBEMO3C.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-LMZMXEXL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-HKV7EMYZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-3S2U24BJ.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.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-3NC26XLM.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-GSOYKKIS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  gateWallet
9
9
  };