@funkit/connect 9.0.2 → 9.2.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 (40) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/__generated__/default_configs.d.ts +6 -0
  3. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  4. package/dist/clients/fanatics.js +3 -211
  5. package/dist/clients/polymarket.d.ts +41 -0
  6. package/dist/clients/polymarket.js +345 -0
  7. package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
  8. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
  9. package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +13 -0
  10. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  11. package/dist/consts/bluvo.d.ts +5 -1
  12. package/dist/consts/customers.d.ts +0 -1
  13. package/dist/domains/swapped.d.ts +5 -1
  14. package/dist/hooks/track/CheckoutModalEvent.d.ts +2 -1
  15. package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -1
  16. package/dist/hooks/useFrogAccount.d.ts +1 -1
  17. package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +5 -5
  18. package/dist/hooks/useIsUsUser.d.ts +0 -1
  19. package/dist/index.css +135 -119
  20. package/dist/index.js +19682 -19801
  21. package/dist/modals/CheckoutModal/Brokerage/components/BrokerageSuccess.d.ts +1 -1
  22. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -1
  23. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -4
  24. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +1 -5
  25. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +4 -3
  26. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +1 -0
  27. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +1 -1
  28. package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -7
  29. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  30. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -1
  31. package/dist/providers/FunkitCheckoutContext/types.d.ts +6 -4
  32. package/dist/providers/FunkitConfigContext.d.ts +0 -5
  33. package/dist/utils/flags/config.d.ts +23 -2
  34. package/dist/utils/withdrawal.d.ts +13 -0
  35. package/dist/wallets/walletConnectors/index.js +43 -43
  36. package/package.json +4 -4
  37. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +0 -12
  38. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +0 -10
  39. package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +0 -7
  40. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +0 -12
@@ -4,5 +4,5 @@ interface BrokerageSuccessProps {
4
4
  onClose: () => void;
5
5
  onNewDeposit: () => void;
6
6
  }
7
- export declare const BrokerageSuccess: ({ bottomBarId, onClose, onNewDeposit, }: BrokerageSuccessProps) => React.JSX.Element | null;
7
+ export declare const BrokerageSuccess: ({ bottomBarId, onClose, onNewDeposit, }: BrokerageSuccessProps) => React.JSX.Element;
8
8
  export {};
@@ -16,7 +16,6 @@ export declare enum FunCheckoutStep {
16
16
  MELD_QUOTES = "meld_quotes",
17
17
  MELD_REDIRECT = "meld_redirect",
18
18
  MELD_CURRENCY_SELECT = "meld_currency_select",
19
- DIRECT_EXECUTION_NOTIF_CENTER = "direct_execution_notif_center",
20
19
  SELECT_BROKERAGE = "select_brokerage",
21
20
  CONNECT_EXCHANGE = "connect_exchange",
22
21
  BROKERAGE_TWO_FA = "brokerage_two_fa",
@@ -1,4 +1,3 @@
1
- import type { ExchangeRates } from '@funkit/api-base';
2
1
  import React from 'react';
3
2
  import { type FunkitTextCustomizationsConfig } from '../../../providers/FunkitConfigContext';
4
3
  import type { AssetHoldingsItem } from '../../../utils/assets';
@@ -9,11 +8,9 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
9
8
  checkoutConfig: FunkitCheckoutConfig;
10
9
  /** unit price of target asset */
11
10
  unitPrice: number;
12
- /** currency exchange rates */
13
- currencyExchangeRates: ExchangeRates | undefined;
14
11
  /** default fiat currency to be used*/
15
12
  defaultFiatCurrency?: string;
16
13
  textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
17
14
  }
18
- export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, setModalState, sourceHolding, unitPrice, currencyExchangeRates, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
15
+ export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, onClose, setModalState, sourceHolding, unitPrice, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
19
16
  export {};
@@ -19,8 +19,6 @@ export interface AmountInputInitOptions {
19
19
  locale: Intl.LocalesArgument;
20
20
  /** Quick options, in fiat (not %) */
21
21
  quickOptions?: number[];
22
- /** Exchange rate of the `fiatCurrency` to USD */
23
- fiatCurrencyExchangeRate: number | undefined;
24
22
  /** Whether meld is enabled */
25
23
  meldEnabled: boolean;
26
24
  apiKey: string;
@@ -46,8 +44,6 @@ export interface AmountInputState {
46
44
  usdMaxAmount: number | null;
47
45
  /** Minimum amount, in USD (defaults to 0) */
48
46
  usdMinAmount: number | null;
49
- /** Exchange rate of the `fiatCurrency` to USD */
50
- fiatCurrencyExchangeRate: number | undefined;
51
47
  /** Whether meld is enabled */
52
48
  meldEnabled: boolean;
53
49
  /** Whether the input amount is in vault deposit mode
@@ -110,6 +106,6 @@ export type AmountInputError = {
110
106
  * Return half the balance and round up to nearest 10, 100, 1000 etc
111
107
  */
112
108
  export declare function calcInitialFiatAmount(balance: number): number;
113
- export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled, defaultIsInputInFiat, }: AmountInputInitOptions): AmountInputState;
109
+ export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, meldEnabled, defaultIsInputInFiat, }: AmountInputInitOptions): AmountInputState;
114
110
  export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
115
111
  export declare function getDerivedState(state: AmountInputState, targetAssetTicker: string): AmountInputDerivedState;
@@ -1,18 +1,19 @@
1
- import { type GetFopsResponse, type SwappedFormOfPayment } from '@funkit/api-base';
1
+ import type { ExchangeRates, GetFopsResponse, SwappedFormOfPayment } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  interface FormOfPaymentsListProps {
4
4
  fopsData?: GetFopsResponse;
5
5
  isLoading: boolean;
6
6
  selectedFop?: SwappedFormOfPayment | null;
7
7
  onFopSelect: (fop: SwappedFormOfPayment) => void;
8
+ exchangeRatesData?: ExchangeRates;
8
9
  }
9
10
  interface FormOfPaymentSection {
10
11
  items: SwappedFormOfPayment[];
11
12
  labelKey: 'sourceChange.mostPopular' | 'sourceChange.savedPaymentMethods' | 'sourceChange.moreOptions' | 'sourceChange.otherOptions';
12
13
  }
13
- export declare function getFormOfPaymentSections(fopsData: GetFopsResponse): {
14
+ export declare function getFormOfPaymentSections(fopsData: GetFopsResponse, fopPriority: readonly string[]): {
14
15
  primary: FormOfPaymentSection;
15
16
  secondary: FormOfPaymentSection;
16
17
  };
17
- export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, }: FormOfPaymentsListProps): React.JSX.Element;
18
+ export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, exchangeRatesData, }: FormOfPaymentsListProps): React.JSX.Element;
18
19
  export {};
@@ -2,3 +2,4 @@ export declare const WITH_EMPTY_STATE_DATA_ATTRIBUTE = "data-with-empty-state";
2
2
  export declare const emptyStateStyles: string;
3
3
  export declare const sourceListBoxStyles: string;
4
4
  export declare const sourceListCompactBoxStyles: string;
5
+ export declare const fullWidthContentDivider: string;
@@ -12,5 +12,5 @@ export type SwappedIframeNext = {
12
12
  success?: boolean;
13
13
  };
14
14
  export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
15
- declare function SwappedIframe({ modalState, onNext, onBack, onClose, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element | null;
15
+ declare function SwappedIframe({ modalState, onNext, onBack, onClose, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
16
16
  export default SwappedIframe;
@@ -12,7 +12,6 @@ import { type SelectBrokerageNext, type SelectBrokerageState } from './Brokerage
12
12
  import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
13
13
  import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
14
14
  import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
15
- import { type DirectExecutionNotifCenterState } from './DirectExecutionNotifCenter/DirectExecutionNotifCenter';
16
15
  import { FunCheckoutStep } from './FunCheckoutStep';
17
16
  import { type InputAmountNext, type InputAmountState } from './InputAmount/InputAmount';
18
17
  import { type LoadingAccountNext, type LoadingAccountState } from './LoadingAccount';
@@ -32,8 +31,6 @@ export interface CheckoutModalCommonState {
32
31
  isSoftHidden: boolean;
33
32
  /** Whether checkout should not be allowed to continue due to security reasons*/
34
33
  isBlocked?: boolean;
35
- /** Whether checkout is started in a defi mode which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout)*/
36
- isDefiMode: boolean;
37
34
  startingStep: FunCheckoutStartingStep;
38
35
  targetChainId: string;
39
36
  showWalletOptions?: boolean;
@@ -53,7 +50,6 @@ export declare function extractCommonState(state: CheckoutModalState): CheckoutM
53
50
  interface ModalStepInput<S extends FunCheckoutStep> {
54
51
  state: CheckoutModalState<S>;
55
52
  apiKey: string;
56
- isDefiMode?: boolean;
57
53
  isSourceNavWidgetEnabled: boolean;
58
54
  }
59
55
  export type ModalStepInfo<S extends FunCheckoutStep> = {
@@ -67,7 +63,7 @@ export type ModalStepInfo<S extends FunCheckoutStep> = {
67
63
  onNext(state: CheckoutModalState<S>, payload: NextPayload<S>): CheckoutModalState;
68
64
  showFullHeight?: boolean;
69
65
  /** Defaults to checkoutItem.initSettings.config.modalTitle (returning undefined uses default) */
70
- title?(textCustomizations: FunkitTextCustomizationsConfig, isDefiMode: boolean): string | undefined;
66
+ title?(textCustomizations: FunkitTextCustomizationsConfig): string | undefined;
71
67
  /** If title is not defined in config nor with the title() function, this is used instead. Defaults to 'Checkout' */
72
68
  fallbackTitle?: string;
73
69
  };
@@ -93,7 +89,6 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
93
89
  [FunCheckoutStep.MELD_QUOTES]: MeldQuotesState;
94
90
  [FunCheckoutStep.MELD_REDIRECT]: MeldRedirectState;
95
91
  [FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectState;
96
- [FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: DirectExecutionNotifCenterState;
97
92
  [FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageState;
98
93
  [FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeState;
99
94
  [FunCheckoutStep.BROKERAGE_TWO_FA]: BrokerageTwoFAState;
@@ -122,7 +117,6 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
122
117
  [FunCheckoutStep.MELD_QUOTES]: MeldQuotesNext;
123
118
  [FunCheckoutStep.MELD_REDIRECT]: MeldRedirectNext;
124
119
  [FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectNext;
125
- [FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: null;
126
120
  [FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageNext;
127
121
  [FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeNext;
128
122
  [FunCheckoutStep.BROKERAGE_TWO_FA]: BrokerageTwoFANext;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ interface WithdrawalCallbackSuccessProps {
4
+ bottomBarId: string;
5
+ onClose: () => void;
6
+ onNewWithdrawal: () => void;
7
+ quote: FunkitCheckoutQuoteResult | undefined;
8
+ }
9
+ export declare const WithdrawalCallbackSuccess: ({ bottomBarId, onClose, onNewWithdrawal, quote, }: WithdrawalCallbackSuccessProps) => React.JSX.Element;
10
+ export {};
@@ -32,7 +32,7 @@ interface FunkitCheckoutContextInterface {
32
32
  setCompletedTimestamp(timestampMs: number): void;
33
33
  withdrawalItem: FunkitActiveWithdrawalItem | null;
34
34
  initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
35
- updateWithdrawalSourceAssetAmount(newSourceAmount: number): void;
35
+ updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
36
36
  resetForNewWithdrawal(): void;
37
37
  applyDynamicRouting(path: Omit<DynamicRoutePath, 'getCustomRecipient' | 'generateActionsParams'> & {
38
38
  customRecipient?: FunkitCheckoutConfig['customRecipient'];
@@ -50,8 +50,8 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
50
50
  /** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
51
51
  checkoutItemTitle: string;
52
52
  /** amount of source token. it is not baseUnit **/
53
- withdrawalSourceTokenBalance?: () => number;
54
- /** Whether checkout should be started in Defi mode, which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout) */
53
+ withdrawalSourceTokenBalance?: () => string | number;
54
+ /** @deprecated isDefiMode has been removed. This field is ignored. */
55
55
  isDefiMode?: boolean;
56
56
  /** The step at which the checkout process should start */
57
57
  startingStep?: FunCheckoutStartingStep;
@@ -99,6 +99,8 @@ export interface WithdrawalConfigBase {
99
99
  sourceTokenAddress: Address;
100
100
  /** Disable connected option for email login user */
101
101
  disableConnectedWallet?: boolean;
102
+ /** Default token to select in the receive token dropdown. Falls back to sourceTokenSymbol if not set. */
103
+ defaultReceiveToken?: string;
102
104
  /** minimal USD needed to withdraw */
103
105
  getMinWithdrawalUSD?: (asset: TokenInfo) => number;
104
106
  }
@@ -196,12 +198,12 @@ export interface FunkitActiveCheckoutItem extends Omit<ApiCheckoutClientMetadata
196
198
  };
197
199
  /** Time of completion of the active checkout item. For frontend use only. **/
198
200
  completedTimestampMs: number | null;
199
- sourceAssetAmount: number | null;
201
+ sourceAssetAmount: string | null;
200
202
  }
201
203
  export interface FunkitActiveWithdrawalItem {
202
204
  /** Unique identifier for frontend use only. */
203
205
  id: string;
204
206
  /** Final settings the withdrawal was init-ed with **/
205
207
  initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>;
206
- withdrawalSourceTokenBalance: () => number;
208
+ withdrawalSourceTokenBalance: () => string | number;
207
209
  }
@@ -141,11 +141,6 @@ export interface FunkitUiCustomizationsConfig {
141
141
  isSecondaryTokenSymbolVisible?: boolean;
142
142
  /** Whether to navigate directly on asset click, rather than having to select then click Continue - defaults to false */
143
143
  navigateOnAssetClick?: boolean;
144
- /**
145
- * Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false
146
- * @deprecated use sourceChangeScreen.showTargetAssetSelection instead
147
- */
148
- showTargetAssetSelection?: boolean;
149
144
  /** Function that returns a custom React component to render before other UIs in the select asset screen */
150
145
  customTopComponent?: () => ReactNode;
151
146
  };
@@ -59,7 +59,21 @@ export declare const flagConfig: {
59
59
  readonly if_any: [{
60
60
  readonly key: "apiKey";
61
61
  readonly type: "isAnyOf";
62
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
62
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
63
+ }];
64
+ readonly value: string;
65
+ }, {
66
+ readonly if_any: [{
67
+ readonly key: "apiKey";
68
+ readonly type: "isAnyOf";
69
+ readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
70
+ }];
71
+ readonly value: string;
72
+ }, {
73
+ readonly if_any: [{
74
+ readonly key: "apiKey";
75
+ readonly type: "isAnyOf";
76
+ readonly values: ["i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
63
77
  }];
64
78
  readonly value: string;
65
79
  }, {
@@ -137,7 +151,7 @@ export declare const flagConfig: {
137
151
  readonly if_any: [{
138
152
  readonly key: "apiKey";
139
153
  readonly type: "isAnyOf";
140
- readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2"];
154
+ readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2"];
141
155
  }];
142
156
  readonly value: string;
143
157
  }, {
@@ -147,6 +161,13 @@ export declare const flagConfig: {
147
161
  readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
148
162
  }];
149
163
  readonly value: string;
164
+ }, {
165
+ readonly if_any: [{
166
+ readonly key: "apiKey";
167
+ readonly type: "isAnyOf";
168
+ readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
169
+ }];
170
+ readonly value: string;
150
171
  }];
151
172
  };
152
173
  readonly is_checkout_activated: {
@@ -7,3 +7,16 @@ export declare function isWalletWithdrawalConfig(config: FunkitWithdrawalConfig)
7
7
  * Type guard to check if withdrawal config uses custom callback flow
8
8
  */
9
9
  export declare function isCustomWithdrawalConfig(config: FunkitWithdrawalConfig): config is CustomWithdrawalConfig;
10
+ /**
11
+ * Converts a human-readable token amount to base units using string arithmetic
12
+ * to avoid floating-point precision loss.
13
+ *
14
+ * The precision is preserved because the original user-input string is passed
15
+ * directly — it is never coerced to a JS Number/float first.
16
+ *
17
+ * e.g. passing the already-truncated float string '8.967660226710157' would
18
+ * still produce 8967660226710157000n (lossy).
19
+ * But keeping the original full-precision string '8.967660226710157512'
20
+ * produces 8967660226710157512n (exact).
21
+ */
22
+ export declare function toWithdrawalAmountBaseUnit(amount: string, decimals: number): bigint;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
+ import {
3
+ zealWallet
4
+ } from "./chunk-HE2LMIPD.js";
2
5
  import {
3
6
  zerionWallet
4
7
  } from "./chunk-TTHM3WUR.js";
5
- import {
6
- xdefiWallet
7
- } from "./chunk-O7RSASRH.js";
8
8
  import {
9
9
  talismanWallet
10
10
  } from "./chunk-6MFOL6EB.js";
@@ -17,30 +17,24 @@ import {
17
17
  import {
18
18
  trustWallet
19
19
  } from "./chunk-KO56HCTI.js";
20
- import {
21
- subWallet
22
- } from "./chunk-XBLHZICW.js";
23
20
  import {
24
21
  uniswapWallet
25
22
  } from "./chunk-NHLG5PVD.js";
23
+ import {
24
+ ramperWallet
25
+ } from "./chunk-R4S234FL.js";
26
26
  import {
27
27
  walletConnectWallet
28
28
  } from "./chunk-J34FG3W4.js";
29
29
  import {
30
- zealWallet
31
- } from "./chunk-HE2LMIPD.js";
32
- import {
33
- rabbyWallet
34
- } from "./chunk-WFNPWKU3.js";
30
+ xdefiWallet
31
+ } from "./chunk-O7RSASRH.js";
35
32
  import {
36
33
  rainbowWallet
37
34
  } from "./chunk-GSHSWVEG.js";
38
35
  import {
39
- ramperWallet
40
- } from "./chunk-R4S234FL.js";
41
- import {
42
- roninWallet
43
- } from "./chunk-PKMAPNN6.js";
36
+ phantomWallet
37
+ } from "./chunk-XMNVOYSJ.js";
44
38
  import {
45
39
  safeWallet
46
40
  } from "./chunk-YKVWTGU7.js";
@@ -50,21 +44,30 @@ import {
50
44
  import {
51
45
  safepalWallet
52
46
  } from "./chunk-IICWJWGZ.js";
47
+ import {
48
+ subWallet
49
+ } from "./chunk-XBLHZICW.js";
53
50
  import {
54
51
  tahoWallet
55
52
  } from "./chunk-4BMUFNMT.js";
56
53
  import {
57
- mewWallet
58
- } from "./chunk-HKVDCVCG.js";
54
+ roninWallet
55
+ } from "./chunk-PKMAPNN6.js";
59
56
  import {
60
57
  metaMaskWallet
61
58
  } from "./chunk-HETS3KKI.js";
59
+ import {
60
+ mewWallet
61
+ } from "./chunk-HKVDCVCG.js";
62
62
  import {
63
63
  oktoWallet
64
64
  } from "./chunk-BVX22N7L.js";
65
65
  import {
66
66
  okxWallet
67
67
  } from "./chunk-LI6QY2B5.js";
68
+ import {
69
+ omniWallet
70
+ } from "./chunk-INNF7G5X.js";
68
71
  import {
69
72
  oneInchWallet
70
73
  } from "./chunk-RVWLP4IM.js";
@@ -72,17 +75,11 @@ import {
72
75
  oneKeyWallet
73
76
  } from "./chunk-HE5J5T7X.js";
74
77
  import {
75
- omniWallet
76
- } from "./chunk-INNF7G5X.js";
77
- import {
78
- phantomWallet
79
- } from "./chunk-XMNVOYSJ.js";
80
- import {
81
- foxWallet
82
- } from "./chunk-53VYSPXK.js";
78
+ rabbyWallet
79
+ } from "./chunk-WFNPWKU3.js";
83
80
  import {
84
- frameWallet
85
- } from "./chunk-WDTNOIMF.js";
81
+ coinbaseWallet
82
+ } from "./chunk-RZXMOPIV.js";
86
83
  import {
87
84
  frontierWallet
88
85
  } from "./chunk-CJJT7LMT.js";
@@ -92,6 +89,9 @@ import {
92
89
  import {
93
90
  gateWallet
94
91
  } from "./chunk-7OARWILZ.js";
92
+ import {
93
+ frameWallet
94
+ } from "./chunk-WDTNOIMF.js";
95
95
  import {
96
96
  injectedWallet
97
97
  } from "./chunk-W6MXINYY.js";
@@ -101,30 +101,30 @@ import {
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-WKCCLGHJ.js";
104
- import {
105
- clvWallet
106
- } from "./chunk-GVOQTORD.js";
107
- import {
108
- bloomWallet
109
- } from "./chunk-UB2SSFH7.js";
110
104
  import {
111
105
  coin98Wallet
112
106
  } from "./chunk-6YO27XOM.js";
113
107
  import {
114
- coreWallet
115
- } from "./chunk-GH4M6FTK.js";
108
+ clvWallet
109
+ } from "./chunk-GVOQTORD.js";
110
+ import {
111
+ bybitWallet
112
+ } from "./chunk-6UCI7GM6.js";
116
113
  import {
117
114
  dawnWallet
118
115
  } from "./chunk-TFVCCI2D.js";
119
116
  import {
120
117
  desigWallet
121
118
  } from "./chunk-JYVLYSH3.js";
122
- import {
123
- coinbaseWallet
124
- } from "./chunk-RZXMOPIV.js";
125
119
  import {
126
120
  enkryptWallet
127
121
  } from "./chunk-W6TXXLCO.js";
122
+ import {
123
+ foxWallet
124
+ } from "./chunk-53VYSPXK.js";
125
+ import {
126
+ coreWallet
127
+ } from "./chunk-GH4M6FTK.js";
128
128
  import {
129
129
  bifrostWallet
130
130
  } from "./chunk-EKJHJFRN.js";
@@ -140,13 +140,13 @@ import {
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-GROWFRGP.js";
143
+ import {
144
+ bloomWallet
145
+ } from "./chunk-UB2SSFH7.js";
146
+ import "./chunk-MAPXJUOO.js";
143
147
  import {
144
148
  braveWallet
145
149
  } from "./chunk-ZRNBHLUU.js";
146
- import {
147
- bybitWallet
148
- } from "./chunk-6UCI7GM6.js";
149
- import "./chunk-MAPXJUOO.js";
150
150
  import "./chunk-BAVE62IL.js";
151
151
  import "./chunk-KV4HGYM3.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.0.2",
3
+ "version": "9.2.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -102,10 +102,10 @@
102
102
  "ua-parser-js": "^1.0.37",
103
103
  "use-debounce": "^10.0.5",
104
104
  "uuid": "^9.0.1",
105
- "@funkit/api-base": "2.3.2",
105
+ "@funkit/api-base": "2.4.0",
106
106
  "@funkit/chains": "1.1.0",
107
- "@funkit/utils": "1.2.3",
108
- "@funkit/fun-relay": "2.6.2"
107
+ "@funkit/fun-relay": "2.6.3",
108
+ "@funkit/utils": "1.2.4"
109
109
  },
110
110
  "repository": {
111
111
  "type": "git",
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- import type { PaymentMethodInfo } from '../../../domains/paymentMethods';
4
- import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepComponentProps, ModalStepInfo } from '../stepTransition';
5
- export type DirectExecutionNotifCenterState = CheckoutModalCommonState & {
6
- depositAddress: Address;
7
- paymentMethodInfo?: PaymentMethodInfo;
8
- };
9
- export type DirectExecutionNotifCenterNext = Record<string, never>;
10
- export declare const DirectExecutionNotifCenterInfo: ModalStepInfo<FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER>;
11
- /** A checkout detail component to handle redirecting to the checkout history page */
12
- export declare function DirectExecutionNotifCenter({ modalState, onClose, }: ModalStepComponentProps<FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER>): React.JSX.Element | null;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { PaymentMethodInfo } from '../../../domains/paymentMethods';
3
- interface DirectExecutionNotifCenterContentProps {
4
- onClose: (options?: {
5
- isNewDeposit?: boolean;
6
- }) => void;
7
- paymentMethodInfo: PaymentMethodInfo;
8
- }
9
- declare const DirectExecutionNotifCenterContent: ({ onClose, paymentMethodInfo, }: DirectExecutionNotifCenterContentProps) => React.JSX.Element;
10
- export default DirectExecutionNotifCenterContent;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
3
- interface DefiPurchaseSectionProps {
4
- config: FunkitCheckoutConfig;
5
- }
6
- export declare const DefiPurchaseSection: ({ config }: DefiPurchaseSectionProps) => React.JSX.Element;
7
- export {};
@@ -1,12 +0,0 @@
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;