@funkit/connect 6.12.3 → 6.14.0-next.0

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 (51) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/{chunk-7HKC2KCK.js → chunk-65VC5BJ7.js} +5 -0
  3. package/dist/{chunk-AYGZMDTC.js → chunk-AYZ7Y4HD.js} +4 -1
  4. package/dist/{chunk-UOY5XFCR.js → chunk-H2VLM4QU.js} +4 -1
  5. package/dist/components/Box/Box.d.ts +22 -22
  6. package/dist/components/FunInfoBanner/ChainInfoBanners.d.ts +7 -0
  7. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  8. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -1
  9. package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +2 -1
  10. package/dist/consts/customers.d.ts +2 -0
  11. package/dist/css/sprinkles.css.d.ts +32 -22
  12. package/dist/hooks/queries/useRecentDirectExecutions.d.ts +4 -1
  13. package/dist/hooks/queries/useWithdrawalQuote.d.ts +3 -3
  14. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  15. package/dist/index.css +2983 -2854
  16. package/dist/index.js +13447 -13180
  17. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +3 -1
  18. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +2 -1
  19. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +12 -0
  20. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +3 -4
  21. package/dist/providers/FunkitCheckoutContext.d.ts +13 -3
  22. package/dist/providers/FunkitConfigContext.d.ts +7 -1
  23. package/dist/providers/FunkitThemeProvider.d.ts +15 -0
  24. package/dist/themes/baseTheme.d.ts +2 -1
  25. package/dist/themes/baseTheme.js +1 -1
  26. package/dist/themes/darkTheme.js +2 -2
  27. package/dist/themes/lightTheme.js +2 -2
  28. package/dist/utils/checkout.d.ts +1 -1
  29. package/dist/utils/flags/config.d.ts +8 -16
  30. package/dist/utils/funkitProvider.d.ts +1 -0
  31. package/dist/utils/withdrawal.d.ts +9 -0
  32. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  37. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/index.js +32 -32
  42. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  51. package/package.json +6 -6
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Address } from 'viem';
3
+ type NotificationVariant = 'withdrawal' | 'token_transfer';
3
4
  interface CheckoutNotificationsProps {
4
5
  onHelp: (depositAddress: Address) => void;
5
6
  /** To control notifications visibility on specific pages, without changing internal dismissal state */
6
7
  isVisible: boolean;
8
+ variant: NotificationVariant | undefined;
7
9
  }
8
- export declare const CheckoutNotifications: ({ onHelp, isVisible, }: CheckoutNotificationsProps) => React.JSX.Element | null;
10
+ export declare const CheckoutNotifications: ({ onHelp, isVisible, variant, }: CheckoutNotificationsProps) => React.JSX.Element | null;
9
11
  export {};
@@ -8,6 +8,7 @@ export interface WithdrawalModalProps {
8
8
  }
9
9
  export declare enum WithdrawalModalStep {
10
10
  ENTER_AMOUNT = "ENTER_AMOUNT",
11
- SUCCESS = "SUCCESS"
11
+ SUCCESS = "SUCCESS",
12
+ PENDING_CALLBACK = "PENDING_CALLBACK"
12
13
  }
13
14
  export declare function WithdrawalModal({ onClose, open, config, }: WithdrawalModalProps): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { PaymentMethodAccountInfo } from '~/domains/paymentMethods';
3
+ import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
4
+ interface DirectExecutionNotifCenterContentProps {
5
+ onClose: (options?: {
6
+ isNewDeposit?: boolean;
7
+ }) => void;
8
+ paymentMethodInfo: PaymentMethodAccountInfo;
9
+ quote: FunkitCheckoutQuoteResult | undefined;
10
+ }
11
+ declare const DirectExecutionNotifCenterContent: ({ onClose, paymentMethodInfo, quote, }: DirectExecutionNotifCenterContentProps) => React.JSX.Element;
12
+ export default DirectExecutionNotifCenterContent;
@@ -1,7 +1,6 @@
1
1
  import type { Address, Hex } from 'viem';
2
2
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
- import { type FunkitActiveWithdrawalItem } from '~/providers/FunkitCheckoutContext';
4
- import type { WithdrawalClient } from '~/wallets/Wallet';
3
+ import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
5
4
  import { type CheckoutConfirmationError } from '../CheckoutModal/ConfirmationStep/useCheckoutConfirmation';
6
5
  interface UseWithdrawalResult {
7
6
  handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
@@ -16,8 +15,8 @@ export type WithdrawalFormData = {
16
15
  chainId: number;
17
16
  quote: FunkitCheckoutQuoteResult;
18
17
  };
19
- export declare function useWithdrawal({ withdrawalWallet, withdrawalItem, onSuccess, }: {
20
- withdrawalWallet: WithdrawalClient;
18
+ export declare function useWithdrawal({ config, withdrawalItem, onSuccess, }: {
19
+ config: FunkitWithdrawalConfig;
21
20
  withdrawalItem: FunkitActiveWithdrawalItem | null;
22
21
  onSuccess: (withdrawal: WithdrawalFormData, txHash: Hex) => void;
23
22
  }): UseWithdrawalResult;
@@ -68,7 +68,7 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
68
68
  * to specify the onchain action to execute after deposit */
69
69
  qrcodeActionType?: string;
70
70
  }
71
- export interface FunkitWithdrawalConfig {
71
+ export interface WithdrawalConfigBase {
72
72
  /** Title to show in the checkout modal. Defaults to "Checkout" **/
73
73
  modalTitle: string;
74
74
  /** Additional information to show in the title of the checkout modal. Blank by default **/
@@ -80,11 +80,21 @@ export interface FunkitWithdrawalConfig {
80
80
  sourceChainId: string;
81
81
  /** source token id to withdraw **/
82
82
  sourceTokenAddress: Address;
83
- /** Wallet instance used to execute the quote */
84
- wallet: WithdrawalClient;
85
83
  /** Disable connected option for email login user */
86
84
  disableConnectedWallet?: boolean;
87
85
  }
86
+ export interface WalletWithdrawalConfig extends WithdrawalConfigBase {
87
+ /** Wallet instance used to execute the quote */
88
+ wallet: WithdrawalClient;
89
+ }
90
+ export interface CustomWithdrawalConfig extends WithdrawalConfigBase {
91
+ withdrawCallback: (param: WithdrawalParam) => Promise<void>;
92
+ }
93
+ export interface WithdrawalParam {
94
+ quoteId: string;
95
+ funQuote: unknown;
96
+ }
97
+ export type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
88
98
  export interface FunkitCheckoutValidationResult {
89
99
  isValid: boolean;
90
100
  message: string;
@@ -26,6 +26,10 @@ export interface FunkitUiDestinationConfig {
26
26
  url?: string;
27
27
  }
28
28
  export interface FunkitUiCustomizationsConfig {
29
+ selectAssetScreen?: {
30
+ /** Whether to show target asset selection menu if dynamicTargetAssetCandidates exist */
31
+ showTargetAssetSelection?: boolean;
32
+ };
29
33
  confirmationScreen?: {
30
34
  /** Whether to show the amount of tokens below the USD equivalent - defaults to true */
31
35
  showTokenAmount?: boolean;
@@ -76,7 +80,9 @@ export type FunkitConfig = {
76
80
  /** UI customizations across all widgets **/
77
81
  uiCustomizations?: FunkitUiCustomizationsConfig;
78
82
  /** Login modal configuration **/
79
- loginConfig: Partial<FunkitLoginOptionsConfig>;
83
+ loginConfig?: Partial<FunkitLoginOptionsConfig>;
84
+ /** used to link funkit users to your own user system */
85
+ externalUserId?: string;
80
86
  };
81
87
  interface FinalFunkitConfigInternal extends FunkitConfig {
82
88
  textCustomizations: FunkitTextCustomizationsConfig;
@@ -52,6 +52,7 @@ export declare const useActiveTheme: () => {
52
52
  mediumStroke: string;
53
53
  heavyStroke: string;
54
54
  strokeColor: string;
55
+ modalTopbarIcon: string;
55
56
  primaryText: string;
56
57
  secondaryText: string;
57
58
  tertiaryText: string;
@@ -120,6 +121,7 @@ export declare const useActiveTheme: () => {
120
121
  fiatAccountIconFill: string;
121
122
  fiatAccountGradientFrom: string;
122
123
  fiatAccountGradientTo: string;
124
+ optionBoxBackground: string;
123
125
  spinnerBackground: string;
124
126
  spinnerIndicator: string;
125
127
  spinnerBackgroundVerifyAccount: string;
@@ -213,6 +215,9 @@ export declare const useActiveTheme: () => {
213
215
  dropdown: string;
214
216
  dropdownItem: string;
215
217
  };
218
+ borderWidths: {
219
+ activeOptionBorderWidth: string;
220
+ };
216
221
  shadows: {
217
222
  connectButton: string;
218
223
  dialog: string;
@@ -272,6 +277,7 @@ export declare const useActiveTheme: () => {
272
277
  mediumStroke: string;
273
278
  heavyStroke: string;
274
279
  strokeColor: string;
280
+ modalTopbarIcon: string;
275
281
  primaryText: string;
276
282
  secondaryText: string;
277
283
  tertiaryText: string;
@@ -340,6 +346,7 @@ export declare const useActiveTheme: () => {
340
346
  fiatAccountIconFill: string;
341
347
  fiatAccountGradientFrom: string;
342
348
  fiatAccountGradientTo: string;
349
+ optionBoxBackground: string;
343
350
  spinnerBackground: string;
344
351
  spinnerIndicator: string;
345
352
  spinnerBackgroundVerifyAccount: string;
@@ -433,6 +440,9 @@ export declare const useActiveTheme: () => {
433
440
  dropdown: string;
434
441
  dropdownItem: string;
435
442
  };
443
+ borderWidths: {
444
+ activeOptionBorderWidth: string;
445
+ };
436
446
  shadows: {
437
447
  connectButton: string;
438
448
  dialog: string;
@@ -490,6 +500,7 @@ export declare const useActiveTheme: () => {
490
500
  mediumStroke: string;
491
501
  heavyStroke: string;
492
502
  strokeColor: string;
503
+ modalTopbarIcon: string;
493
504
  primaryText: string;
494
505
  secondaryText: string;
495
506
  tertiaryText: string;
@@ -558,6 +569,7 @@ export declare const useActiveTheme: () => {
558
569
  fiatAccountIconFill: string;
559
570
  fiatAccountGradientFrom: string;
560
571
  fiatAccountGradientTo: string;
572
+ optionBoxBackground: string;
561
573
  spinnerBackground: string;
562
574
  spinnerIndicator: string;
563
575
  spinnerBackgroundVerifyAccount: string;
@@ -651,6 +663,9 @@ export declare const useActiveTheme: () => {
651
663
  dropdown: string;
652
664
  dropdownItem: string;
653
665
  };
666
+ borderWidths: {
667
+ activeOptionBorderWidth: string;
668
+ };
654
669
  shadows: {
655
670
  connectButton: string;
656
671
  dialog: string;
@@ -15,6 +15,7 @@ interface BaseThemeOptions {
15
15
  customFontFamily?: string;
16
16
  customFontSizings?: Partial<ThemeVars['fontSize']>;
17
17
  customBorderRadiuses?: Partial<ThemeVars['radii']>;
18
+ customBorderWidths?: Partial<ThemeVars['borderWidths']>;
18
19
  customDimensions?: Partial<ThemeVars['dimensions']>;
19
20
  customSpacings?: Partial<ThemeVars['spacing']>;
20
21
  fontSizing?: FontSizeType;
@@ -22,7 +23,7 @@ interface BaseThemeOptions {
22
23
  fontStack?: FontStack;
23
24
  overlayBlur?: Blurs;
24
25
  }
25
- export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderRadiuses, customDimensions, customSpacings, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "dimensions" | "fonts" | "fontWeight" | "fontSize" | "blurs" | "spacing">;
26
+ export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderWidths, customBorderRadiuses, customDimensions, customSpacings, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "dimensions" | "fonts" | "fontWeight" | "fontSize" | "blurs" | "spacing" | "borderWidths">;
26
27
  export interface AccentColor {
27
28
  accentColor: string;
28
29
  accentColorForeground: string;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-7HKC2KCK.js";
5
+ } from "../chunk-65VC5BJ7.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-UOY5XFCR.js";
5
- import "../chunk-7HKC2KCK.js";
4
+ } from "../chunk-H2VLM4QU.js";
5
+ import "../chunk-65VC5BJ7.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-AYGZMDTC.js";
5
- import "../chunk-7HKC2KCK.js";
4
+ } from "../chunk-AYZ7Y4HD.js";
5
+ import "../chunk-65VC5BJ7.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -54,6 +54,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
54
54
  bypassInit: boolean;
55
55
  apiKey?: string;
56
56
  nonce?: bigint | undefined;
57
+ logger?: import("@funkit/api-base").Logger | undefined;
57
58
  fee?: {
58
59
  token?: string;
59
60
  amount?: number;
@@ -61,7 +62,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
61
62
  recipient: Address;
62
63
  } | undefined;
63
64
  skipDBAction?: boolean | undefined;
64
- logger?: import("@funkit/api-base").Logger | undefined;
65
65
  };
66
66
  export type TokenInfo = {
67
67
  symbol: string;
@@ -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"];
48
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
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"];
126
+ readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
127
127
  }];
128
128
  readonly value: string;
129
129
  }];
@@ -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"];
213
+ readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86"];
214
214
  }];
215
215
  readonly value: true;
216
216
  }, {
@@ -260,19 +260,11 @@ export declare const flagConfig: {
260
260
  };
261
261
  readonly enable_bitcoin: {
262
262
  readonly type: "boolean";
263
- readonly default_value: false;
264
- readonly overrides: [{
265
- readonly if_any: [{
266
- readonly key: "userId";
267
- readonly type: "pctRollout";
268
- readonly pct: 10;
269
- }, {
270
- readonly key: "userId";
271
- readonly type: "isAnyOf";
272
- readonly values: ["0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x2e0Fa1cE3F0F6a85542c1E4F941116c0E885292E", "0x28b8848C6c3aaBF4669997563dc07888eb3B0960", "0x9C64fD7d9826E6d552dD8bc53e5C96F7C3F38528", "0xfe5AD22465dc20340bfFb641F4AbbcAA7a1BB2Ed", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0x21b94a3E67c4a72d3D15f478A696c5175f036092", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0x8a5505F1b274d8fC23986AF60Dd3Ca3857095BB8", "0x0B6E49e9D1528F59BaBF3C5337A4c96E987f81aa", "0x84Bc1AC5621d2B44C5D3e3E79b45C2885406026D", "0x0D0377aa9CCA769931821842aB0E1A75e7DD6dD6", "0x7B0195921183f7E04f0D331c1DAF7C1bB208CC4E", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x3c937d73f7FE55b386c309C65087d9F5bdd1a780"];
273
- }];
274
- readonly value: true;
275
- }];
263
+ readonly default_value: true;
264
+ };
265
+ readonly chain_info_banners: {
266
+ readonly type: "string";
267
+ readonly default_value: string;
276
268
  };
277
269
  };
278
270
  export type FlagConfig = typeof flagConfig;
@@ -1,5 +1,6 @@
1
1
  import type { FunkitProviderProps } from '../providers/FunkitProvider';
2
2
  export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
3
+ export declare function generateSyntheticUserId(apiKey: string, externalUserId: string): string;
3
4
  /**
4
5
  * Validates the passed in props of FunkitProvider. If there are any misconfigurations, an error will be thrown.
5
6
  */
@@ -0,0 +1,9 @@
1
+ import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ /**
3
+ * Type guard to check if withdrawal config uses wallet-based flow
4
+ */
5
+ export declare function isWalletWithdrawalConfig(config: FunkitWithdrawalConfig): config is WalletWithdrawalConfig;
6
+ /**
7
+ * Type guard to check if withdrawal config uses custom callback flow
8
+ */
9
+ export declare function isCustomWithdrawalConfig(config: FunkitWithdrawalConfig): config is CustomWithdrawalConfig;
@@ -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
  };
@@ -2,30 +2,30 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-BOU4WKRZ.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-Q3H3TRBS.js";
8
5
  import {
9
6
  zealWallet
10
7
  } from "./chunk-RNBEDQHF.js";
11
8
  import {
12
- tahoWallet
13
- } from "./chunk-ZZZRUXZE.js";
9
+ zerionWallet
10
+ } from "./chunk-SULRQO27.js";
14
11
  import {
15
12
  subWallet
16
- } from "./chunk-ZSI5N4VV.js";
13
+ } from "./chunk-JWFF4AAL.js";
14
+ import {
15
+ tahoWallet
16
+ } from "./chunk-ZZZRUXZE.js";
17
17
  import {
18
18
  talismanWallet
19
19
  } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-J3LI3FYZ.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-RKPCWHXL.js";
22
+ } from "./chunk-2L43XSW3.js";
26
23
  import {
27
24
  tokenaryWallet
28
25
  } from "./chunk-D6AOOO5F.js";
26
+ import {
27
+ trustWallet
28
+ } from "./chunk-VYBAYMP3.js";
29
29
  import {
30
30
  uniswapWallet
31
31
  } from "./chunk-LH7BMNFZ.js";
@@ -40,13 +40,13 @@ import {
40
40
  } from "./chunk-BBOM42DL.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-3CICVJUN.js";
43
+ } from "./chunk-2KUBG3S6.js";
44
44
  import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
47
47
  import {
48
48
  roninWallet
49
- } from "./chunk-QLVVUKYB.js";
49
+ } from "./chunk-NWIQNBJU.js";
50
50
  import {
51
51
  safeWallet
52
52
  } from "./chunk-BQQQL6UD.js";
@@ -55,13 +55,13 @@ import {
55
55
  } from "./chunk-RZIO5TFF.js";
56
56
  import {
57
57
  safepalWallet
58
- } from "./chunk-EC6CHBSZ.js";
58
+ } from "./chunk-NT2HYJKW.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
62
62
  import {
63
63
  metaMaskWallet
64
- } from "./chunk-UYGJO62F.js";
64
+ } from "./chunk-2HYNUNAS.js";
65
65
  import {
66
66
  mewWallet
67
67
  } from "./chunk-OL5ZO7E4.js";
@@ -70,7 +70,7 @@ import {
70
70
  } from "./chunk-ADIXAKUL.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-AFXHGWBH.js";
73
+ } from "./chunk-TDIEHTMB.js";
74
74
  import {
75
75
  omniWallet
76
76
  } from "./chunk-7CUY5G6R.js";
@@ -82,16 +82,16 @@ import {
82
82
  } from "./chunk-SHBUZ7U7.js";
83
83
  import {
84
84
  foxWallet
85
- } from "./chunk-CNPKISHN.js";
85
+ } from "./chunk-7QONTUXT.js";
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-IFON7E6U.js";
89
89
  import {
90
90
  frontierWallet
91
- } from "./chunk-VWCLFMWJ.js";
91
+ } from "./chunk-TCAGNB4B.js";
92
92
  import {
93
93
  gateWallet
94
- } from "./chunk-CJGUM55H.js";
94
+ } from "./chunk-FKJJQNKX.js";
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-COZ7MIQS.js";
@@ -103,51 +103,51 @@ import {
103
103
  } from "./chunk-MJXPRJZT.js";
104
104
  import {
105
105
  bybitWallet
106
- } from "./chunk-LNEC5RNX.js";
106
+ } from "./chunk-2STUC6QL.js";
107
107
  import {
108
108
  clvWallet
109
- } from "./chunk-2GJQ4XZQ.js";
109
+ } from "./chunk-M3NZ6R2E.js";
110
110
  import {
111
111
  coin98Wallet
112
- } from "./chunk-KIDC67XJ.js";
112
+ } from "./chunk-OBOVHCEI.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-H4IRCEZN.js";
116
+ import {
117
+ coreWallet
118
+ } from "./chunk-VR4TBQ6S.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-HWPKCIBE.js";
119
122
  import {
120
- coreWallet
121
- } from "./chunk-JCHN6A47.js";
123
+ enkryptWallet
124
+ } from "./chunk-OLOIXTYS.js";
122
125
  import {
123
126
  desigWallet
124
127
  } from "./chunk-OPAZMNA7.js";
125
- import {
126
- enkryptWallet
127
- } from "./chunk-OLOIXTYS.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
134
  import {
135
135
  bitgetWallet
136
- } from "./chunk-5W7VDOCL.js";
136
+ } from "./chunk-TDAVGY5F.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-HS3C7OQV.js";
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-3HZRRP4Y.js";
143
- import {
144
- braveWallet
145
- } from "./chunk-BPZ2XJO2.js";
146
- import "./chunk-DNSG5Q7V.js";
147
143
  import {
148
144
  bloomWallet
149
145
  } from "./chunk-S27IADFU.js";
150
146
  import "./chunk-23WIEY36.js";
147
+ import {
148
+ braveWallet
149
+ } from "./chunk-BPZ2XJO2.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
  };