@funkit/connect 5.5.13-next.2 → 5.5.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/components/Dialog/Dialog.d.ts +1 -2
  3. package/dist/components/FunBadge/FunBadge.css.d.ts +2 -0
  4. package/dist/components/FunBadge/FunBadge.d.ts +4 -3
  5. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +4 -1
  6. package/dist/components/Icons/New/InfoIcon.d.ts +2 -1
  7. package/dist/domains/fees.d.ts +0 -2
  8. package/dist/domains/relay.d.ts +0 -1
  9. package/dist/hooks/queries/useMeldCryptoCurrencyCode.d.ts +2 -1
  10. package/dist/hooks/queries/useWithdrawalQuote.d.ts +223 -5
  11. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  12. package/dist/hooks/usePaymentSources.d.ts +1 -1
  13. package/dist/hooks/useRelayBypass.d.ts +1 -0
  14. package/dist/index.css +40 -5
  15. package/dist/index.js +1762 -1551
  16. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -0
  17. package/dist/modals/CheckoutModal/ConfirmationStep/DirectExecutionBrokerageAndCardAlert.d.ts +2 -0
  18. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +1 -0
  19. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +12 -0
  20. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +10 -0
  21. package/dist/modals/CheckoutModal/MeshVerification.d.ts +1 -0
  22. package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +3 -0
  23. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -1
  24. package/dist/providers/FunkitCheckoutContext.d.ts +2 -2
  25. package/dist/utils/flags/config.d.ts +5 -1
  26. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  27. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  28. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  29. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  30. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  31. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  32. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  33. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  34. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  35. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  36. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  37. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  38. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  39. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  40. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  41. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  42. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  43. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  44. package/dist/wallets/walletConnectors/index.js +46 -46
  45. package/package.json +7 -7
  46. package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +0 -12
  47. package/dist/components/DydxSwitchModalTab/Icons.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 5.5.13
4
+
5
+ ### Patch Changes
6
+
7
+ - e88a3d2: feat(connect): adjust auto-picking of provider quotes for Meld
8
+ - b0f4092: feat: direct execution notification center
9
+ - 76158e3: feat(connect): show empty UI when withdrawal amount is empty
10
+ - 0bf9fe3: feat(connect): update colors of tooltip texts for Withdrawal
11
+ - 17e47e1: move withdrawSourceBalance to top level config
12
+ - df1b830: chore: deprecate dydx fee handling
13
+ - bd7721e: feat(connect): withdrawal handle wallet signature rejection
14
+ - 3d7fc1d: fix bridge fee in ui
15
+ - 85809cb: feat(connect): add risk assessment check for withdrawal address
16
+ - 5217122: feat: omit eoa calls in withdrawal flow
17
+ - d1133df: support withdrawal
18
+ - 7752acf: remove unused hacky code
19
+ - cdf268c: refactor: rename fill gas to fill cost
20
+ - 9ce2ee3: chore(connect): add meld util tests
21
+ - a98ccb6: fix: add Katana to CheckoutTimeEstimateOverrides flag config
22
+ - 3c8d98d: feat(connect): if the user is new, default to the Payment Methods screen, hide the SourcePaymentMethodItem, and enable the back button
23
+ - b095215: feat(connect): unify rendering of fees for withdrawal with relay
24
+ - 66b28fe: fix: update asset price refresh interval in withdrawal
25
+ - 6db3c9c: add loading state to withdrawal in progress
26
+ - e389c2b: wider price impact tooltip
27
+ - b88a759: fix(connect): fix transaction breakdown
28
+ - 19260d7: add meld supported currency in check
29
+ - 7c584f2: do not use alias in external typing file
30
+ - e3bba71: feat(connect): transfer crypto - minimum amount info"
31
+ - Updated dependencies [f49824b]
32
+ - Updated dependencies [d1133df]
33
+ - Updated dependencies [57f6bd8]
34
+ - Updated dependencies [b223027]
35
+ - Updated dependencies [d4d61dc]
36
+ - Updated dependencies [19260d7]
37
+ - @funkit/fun-relay@0.1.9
38
+ - @funkit/api-base@1.9.5
39
+ - @funkit/chains@0.3.2
40
+ - @funkit/core@2.3.27
41
+ - @funkit/utils@1.1.4
42
+ - @funkit/wagmi-tools@3.0.49
43
+
44
+ ## 5.5.13-next.4
45
+
46
+ ### Patch Changes
47
+
48
+ - a98ccb6: fix: add Katana to CheckoutTimeEstimateOverrides flag config
49
+ - b88a759: fix(connect): fix transaction breakdown
50
+ - Updated dependencies [d4d61dc]
51
+ - @funkit/fun-relay@0.1.9-next.2
52
+ - @funkit/core@2.3.27-next.3
53
+ - @funkit/wagmi-tools@3.0.49-next.3
54
+
55
+ ## 5.5.13-next.3
56
+
57
+ ### Patch Changes
58
+
59
+ - b0f4092: feat: direct execution notification center
60
+ - 76158e3: feat(connect): show empty UI when withdrawal amount is empty
61
+ - 7752acf: remove unused hacky code
62
+ - 19260d7: add meld supported currency in check
63
+ - 7c584f2: do not use alias in external typing file
64
+ - Updated dependencies [19260d7]
65
+ - @funkit/utils@1.1.4-next.1
66
+ - @funkit/api-base@1.9.5-next.2
67
+ - @funkit/core@2.3.27-next.2
68
+ - @funkit/wagmi-tools@3.0.49-next.2
69
+
3
70
  ## 5.5.13-next.2
4
71
 
5
72
  ### Patch Changes
@@ -24,7 +24,7 @@ interface DialogProps {
24
24
  */
25
25
  export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withoutBottomPadding, withTransition, }: DialogProps): React.ReactPortal | null;
26
26
  export declare namespace Dialog {
27
- var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, helpButtonUrl, isBackDisabled, onBack, dydxHideBack, className, }: DialogTitleProps) => React.JSX.Element;
27
+ var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, helpButtonUrl, isBackDisabled, onBack, className, }: DialogTitleProps) => React.JSX.Element;
28
28
  var Content: ({ children, fullHeight, paddingLeft, paddingBottom, paddingTop, className, withTopDivider, withBottomDivider, id, withoutInternalPadding, ...boxProps }: DialogContentProps) => React.JSX.Element;
29
29
  var BottomSection: ({ paddingX, children, ...boxProps }: BoxProps) => React.JSX.Element;
30
30
  var BottomBar: ({ topSection, actionButtonProps, bottomSection, onClose, }: import("../FunBottomBar/FunBottomBar").FunBottomBarProps) => React.JSX.Element;
@@ -50,6 +50,5 @@ export interface DialogTitleProps {
50
50
  helpButtonUrl?: string;
51
51
  isBackDisabled?: boolean;
52
52
  onBack?: () => void;
53
- dydxHideBack?: boolean;
54
53
  className?: string;
55
54
  }
@@ -0,0 +1,2 @@
1
+ export declare const badgeStyle: string;
2
+ export declare const badgeShineStyle: string;
@@ -1,8 +1,8 @@
1
- import React, { type CSSProperties } from 'react';
1
+ import React, { type CSSProperties, type ReactNode } from 'react';
2
2
  import { type BoxProps } from '../Box/Box';
3
3
  import { type TextProps } from '../Text/Text';
4
4
  interface FunBadgeProps {
5
- children: React.ReactNode;
5
+ children: ReactNode;
6
6
  paddingLeft?: BoxProps['paddingLeft'];
7
7
  paddingRight?: BoxProps['paddingRight'];
8
8
  paddingX?: BoxProps['paddingX'];
@@ -15,8 +15,9 @@ interface FunBadgeProps {
15
15
  iconSrc?: string;
16
16
  shadow?: string;
17
17
  textTransform?: CSSProperties['textTransform'];
18
+ hasShine?: boolean;
18
19
  }
19
- export declare function FunBadge({ children, background, color, weight, paddingLeft, paddingRight, paddingY, paddingX, borderRadius, borderColor, shadow, textTransform, iconSrc, }: FunBadgeProps): React.JSX.Element;
20
+ export declare function FunBadge({ children, background, color, weight, paddingLeft, paddingRight, paddingY, paddingX, borderRadius, borderColor, shadow, textTransform, iconSrc, hasShine, }: FunBadgeProps): React.JSX.Element;
20
21
  interface NewTokenBadgeProps {
21
22
  iconSymbol?: string;
22
23
  }
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import type { CheckoutFees } from '~/domains/fees';
3
3
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
4
+ export declare const NO_DATA_VALUE = "-";
4
5
  interface PaymentFeesSummaryProps {
5
6
  isLoading: boolean;
6
7
  quote: FunkitCheckoutQuoteResult | null | undefined;
7
8
  /** If set and quote is missing, display fees based on this data */
8
9
  fallbackFees?: CheckoutFees;
10
+ /** If set, displays a `-` instead of the values, the breakdown is not expandable */
11
+ valuesNotAvailable?: boolean;
9
12
  }
10
- export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, }: PaymentFeesSummaryProps): React.JSX.Element;
13
+ export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, valuesNotAvailable, }: PaymentFeesSummaryProps): React.JSX.Element;
11
14
  export {};
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface InfoIconProps {
3
3
  filled?: boolean;
4
+ size?: number;
4
5
  }
5
- export declare const InfoIcon: ({ filled }: InfoIconProps) => React.JSX.Element;
6
+ export declare const InfoIcon: ({ filled, size }: InfoIconProps) => React.JSX.Element;
6
7
  export {};
@@ -1,7 +1,6 @@
1
1
  import { type CheckoutQuoteResponse } from '@funkit/utils';
2
2
  import type { Config } from 'wagmi';
3
3
  import { LoginType } from '~/providers/GeneralWalletProvider';
4
- import type { RelayQuote } from '@funkit/fun-relay';
5
4
  import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
6
5
  import { PaymentMethod, type PaymentMethodInfo } from './paymentMethods';
7
6
  export interface BrokerageDetails {
@@ -28,7 +27,6 @@ interface WalletCheckoutFees extends BaseCheckoutFees {
28
27
  eoaWalletFeeToken: number;
29
28
  nativeCurrencySymbol: string;
30
29
  eoaWalletFeeUsd: number;
31
- relayQuote: RelayQuote['metadata']['relayQuote'] | undefined;
32
30
  }
33
31
  interface CardCheckoutFees extends BaseCheckoutFees {
34
32
  paymentMethod: PaymentMethod.CARD;
@@ -5,7 +5,6 @@ export declare function extractRelayFeeInfo(relayQuote: RelayQuote['metadata']['
5
5
  chainName: string | undefined;
6
6
  totalImpact: number;
7
7
  swapImpact: number;
8
- relayGas: number;
9
8
  appFeePercent: number;
10
9
  maxSlippage: number;
11
10
  minReceived: number;
@@ -1 +1,2 @@
1
- export declare function useMeldCryptoCurrencyCode(): string;
1
+ export declare function useMeldCryptoCurrencyCode(): string | null;
2
+ export declare function useIsMeldEnabled(): boolean;
@@ -12,9 +12,227 @@ interface CheckoutQuoteParams {
12
12
  /**
13
13
  * Simplified quoting logic used for withdrawal UI only.
14
14
  */
15
- export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, chainId, symbol, targetAsset, targetAssetAmount, withdrawalClient, }: CheckoutQuoteParams): import("@tanstack/react-query").UseQueryResult<{
16
- baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
17
- checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
18
- finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
19
- } | null, Error>;
15
+ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, chainId, symbol, targetAsset, targetAssetAmount, withdrawalClient, }: CheckoutQuoteParams): {
16
+ quoteEnabled: boolean;
17
+ data: {
18
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
19
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
20
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
21
+ } | null;
22
+ error: Error;
23
+ isError: true;
24
+ isPending: false;
25
+ isLoading: false;
26
+ isLoadingError: false;
27
+ isRefetchError: true;
28
+ isSuccess: false;
29
+ isPlaceholderData: false;
30
+ status: "error";
31
+ dataUpdatedAt: number;
32
+ errorUpdatedAt: number;
33
+ failureCount: number;
34
+ failureReason: Error | null;
35
+ errorUpdateCount: number;
36
+ isFetched: boolean;
37
+ isFetchedAfterMount: boolean;
38
+ isFetching: boolean;
39
+ isInitialLoading: boolean;
40
+ isPaused: boolean;
41
+ isRefetching: boolean;
42
+ isStale: boolean;
43
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
44
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
45
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
46
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
47
+ } | null, Error>>;
48
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
49
+ promise: Promise<{
50
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
51
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
52
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
53
+ } | null>;
54
+ } | {
55
+ quoteEnabled: boolean;
56
+ data: {
57
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
58
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
59
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
60
+ } | null;
61
+ error: null;
62
+ isError: false;
63
+ isPending: false;
64
+ isLoading: false;
65
+ isLoadingError: false;
66
+ isRefetchError: false;
67
+ isSuccess: true;
68
+ isPlaceholderData: false;
69
+ status: "success";
70
+ dataUpdatedAt: number;
71
+ errorUpdatedAt: number;
72
+ failureCount: number;
73
+ failureReason: Error | null;
74
+ errorUpdateCount: number;
75
+ isFetched: boolean;
76
+ isFetchedAfterMount: boolean;
77
+ isFetching: boolean;
78
+ isInitialLoading: boolean;
79
+ isPaused: boolean;
80
+ isRefetching: boolean;
81
+ isStale: boolean;
82
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
83
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
84
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
85
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
86
+ } | null, Error>>;
87
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
88
+ promise: Promise<{
89
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
90
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
91
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
92
+ } | null>;
93
+ } | {
94
+ quoteEnabled: boolean;
95
+ data: undefined;
96
+ error: Error;
97
+ isError: true;
98
+ isPending: false;
99
+ isLoading: false;
100
+ isLoadingError: true;
101
+ isRefetchError: false;
102
+ isSuccess: false;
103
+ isPlaceholderData: false;
104
+ status: "error";
105
+ dataUpdatedAt: number;
106
+ errorUpdatedAt: number;
107
+ failureCount: number;
108
+ failureReason: Error | null;
109
+ errorUpdateCount: number;
110
+ isFetched: boolean;
111
+ isFetchedAfterMount: boolean;
112
+ isFetching: boolean;
113
+ isInitialLoading: boolean;
114
+ isPaused: boolean;
115
+ isRefetching: boolean;
116
+ isStale: boolean;
117
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
118
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
119
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
120
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
121
+ } | null, Error>>;
122
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
123
+ promise: Promise<{
124
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
125
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
126
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
127
+ } | null>;
128
+ } | {
129
+ quoteEnabled: boolean;
130
+ data: undefined;
131
+ error: null;
132
+ isError: false;
133
+ isPending: true;
134
+ isLoading: true;
135
+ isLoadingError: false;
136
+ isRefetchError: false;
137
+ isSuccess: false;
138
+ isPlaceholderData: false;
139
+ status: "pending";
140
+ dataUpdatedAt: number;
141
+ errorUpdatedAt: number;
142
+ failureCount: number;
143
+ failureReason: Error | null;
144
+ errorUpdateCount: number;
145
+ isFetched: boolean;
146
+ isFetchedAfterMount: boolean;
147
+ isFetching: boolean;
148
+ isInitialLoading: boolean;
149
+ isPaused: boolean;
150
+ isRefetching: boolean;
151
+ isStale: boolean;
152
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
153
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
154
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
155
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
156
+ } | null, Error>>;
157
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
158
+ promise: Promise<{
159
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
160
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
161
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
162
+ } | null>;
163
+ } | {
164
+ quoteEnabled: boolean;
165
+ data: undefined;
166
+ error: null;
167
+ isError: false;
168
+ isPending: true;
169
+ isLoadingError: false;
170
+ isRefetchError: false;
171
+ isSuccess: false;
172
+ isPlaceholderData: false;
173
+ status: "pending";
174
+ dataUpdatedAt: number;
175
+ errorUpdatedAt: number;
176
+ failureCount: number;
177
+ failureReason: Error | null;
178
+ errorUpdateCount: number;
179
+ isFetched: boolean;
180
+ isFetchedAfterMount: boolean;
181
+ isFetching: boolean;
182
+ isLoading: boolean;
183
+ isInitialLoading: boolean;
184
+ isPaused: boolean;
185
+ isRefetching: boolean;
186
+ isStale: boolean;
187
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
188
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
189
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
190
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
191
+ } | null, Error>>;
192
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
193
+ promise: Promise<{
194
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
195
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
196
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
197
+ } | null>;
198
+ } | {
199
+ quoteEnabled: boolean;
200
+ data: {
201
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
202
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
203
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
204
+ } | null;
205
+ isError: false;
206
+ error: null;
207
+ isPending: false;
208
+ isLoading: false;
209
+ isLoadingError: false;
210
+ isRefetchError: false;
211
+ isSuccess: true;
212
+ isPlaceholderData: true;
213
+ status: "success";
214
+ dataUpdatedAt: number;
215
+ errorUpdatedAt: number;
216
+ failureCount: number;
217
+ failureReason: Error | null;
218
+ errorUpdateCount: number;
219
+ isFetched: boolean;
220
+ isFetchedAfterMount: boolean;
221
+ isFetching: boolean;
222
+ isInitialLoading: boolean;
223
+ isPaused: boolean;
224
+ isRefetching: boolean;
225
+ isStale: boolean;
226
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
227
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
228
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
229
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
230
+ } | null, Error>>;
231
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
232
+ promise: Promise<{
233
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
234
+ checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
235
+ finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
236
+ } | null>;
237
+ };
20
238
  export {};
@@ -1,8 +1,10 @@
1
- import { type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
1
+ import { type CheckoutInitTokenTransferAddressParams, type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
2
2
  interface UseCheckoutTransferInitResponse {
3
3
  transferInit: CheckoutInitTokenTransferResponse | undefined;
4
4
  recipientAddr: FunAddress;
5
+ manualFetch: (params: CheckoutTokenTransferParams) => Promise<CheckoutInitTokenTransferResponse>;
5
6
  }
7
+ type CheckoutTokenTransferParams = Omit<CheckoutInitTokenTransferAddressParams, 'logger' | 'clientMetadata'>;
6
8
  /**
7
9
  * creates QR code transfer EOA
8
10
  */
@@ -9,6 +9,6 @@ export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
9
9
  isCardEnabled: boolean;
10
10
  };
11
11
  export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
12
- preferred: (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
12
+ preferred: PaymentMethod[] | (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
13
13
  moreSources: PaymentMethod[];
14
14
  };
@@ -9,6 +9,7 @@ interface GetIsRelayEnabledParams {
9
9
  toChainId: string;
10
10
  toTokenAddress: string;
11
11
  paymentMethod: PaymentMethod | undefined;
12
+ isAdditionalActionsRequired: boolean;
12
13
  }
13
14
  export interface UseRelayBypassReturn {
14
15
  getIsRelayEnabled: (params: GetIsRelayEnabledParams) => boolean;
package/dist/index.css CHANGED
@@ -8170,7 +8170,7 @@
8170
8170
  }
8171
8171
  }
8172
8172
 
8173
- /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAE7WVz46bMBDG7/sUlnpJDo5YEnaz5FL1GXqvBnsIVoyN7CGQVnn3ij9LgSQqUdVT5Il/3wz2N+PNj9fiJ+3C7Sv79cJYDjXPUB0zilkURkV96IOVkpTF7DUIzlUT69e7KGj2XF82g06cgV99kRdZ8wIuORrivlIkMnTrmxxv79F9nuwJDScHxqfoeAFHvKX34QM6VUBcIoHSz6LCmlS5HEhZ8yxbKcqkgwo0T7WtlpBht0eZzxPe7oPu1KfrEbJ9Htm1SAFSKnPkrismOIxiGtMuNKKiCZVYIpvP97zPi1FGkQI9KkeAFqvWOIyzbVDU68P8WAJ/zqayT7loHzT4Qs1lzrqj+BE9UFzgtkVyHy1nz+ga9/A6ZpmSEs1hHL3EDEqyTcwLZ7VOwPFjSYQuZp4g0Tj9r7+F0nikabo45hUmJ0XNaYhTmz0BcTo6WxrJhdXWxewMbsW5O3Vrz3MrQX8btq0faQ4VtLpS+ULDZahjcMdbZ93/kJdTVuZJ91XWSXTcgVSlH0k3AdUpr5dVQehIgbt8x5qmJcBfSvi3D3ysHmeNNxbm8CiskXfrT6b3lGpsL6b55VI5FM1EjJmwusxbS34auWntqZHFZHAMo+XeBBpRsqXaxlRdLluAUHRhwSb0DMEjV4bbcmpjvMFAaxZsohky7b4w6mfmZ2P9abaRdnrTyT11m27Xp+tz3ZP9mqNU0LQmomFgJFuNBuf7276ou9GxmT7K89eWset4U9hvuvcizN+EGbq9RXfhHB0i15frbxnvsrQvCAAA */
8173
+ /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAE7WVTc+bMAzH78+niLRLe0hFaWn70Mu0z7D7ZBJTooYEJaHApn73iZcyQlut1bQTivHvb+PYZvVjXfx023CzJr8+CMmhphmKU+ZiEoVRUR8HYyW4y2KyDoJL1dqG8zYKWp/rx2rUiTOwiy+84TUtoMlROWor4ViGZnkXY7ePHvNOn1FRZ0DZFA0t4IT39CF8QqcCHOXoQMh3UaZVKkwOTmj1LlsJl3EDFUiaSl29Qoa9j1C3Cm8OQV91/zxBNu8j2w4pgHOhTtT0yQTHiU1i2psmVORRiXZO53Of/TwZoYQTICfpMJBs0TUOoWQTFPXyOC9LYC+ZL/tOFwQt7Ns+oyeKL3TGS3KfHacvaNqbpnVMMsE5quPU2sQESqdbm2VGS5mAoafSOTQxsQ4Sif67oWKlsuj8cHFMK0zOwrXVYOcuegLsfDK6VJwyLbWJyQXMglJz7s+W5pqD/Da6LZ9pjhl0ulzYQkIz5jHe5K5vs/8Ql7qszJP+q7ThaKgBLko7kW4NoldevpaFQ+MEmOY71s5PAf6Swr994HP1OGt748UYFplW/GH+iX9PqcTuYton5cIga7dXTJiWZd615K2R2zH0G5l5Qz6ugUfbYkLxjuoGU/SxdAFMuIYEq9ASBItUKKpLv43xDgMpSbCKZog/fWE07LfbYP0Ztol2ejfJA3UfbjuEG2I9kv2aIxfQjiaiIqA4WUyW3H53KOp+daz8H+j8z0jIdeoUDk6Ptvd8f8/QzT26DefoaLl+XH8D5xrmONsHAAA= */
8174
8174
  [data-rk] ._1pzt4231 {
8175
8175
  max-height: 525px;
8176
8176
  max-width: 100vw;
@@ -8211,10 +8211,6 @@
8211
8211
  width: calc(100vw - 30px);
8212
8212
  max-height: 80svh;
8213
8213
  }
8214
- [data-rk] ._1pzt4237:has(#dydx-payment-switcher) {
8215
- max-height: 80vh;
8216
- max-height: 80svh;
8217
- }
8218
8214
  [data-rk] ._1pzt4237:has(#token-transfer-page) {
8219
8215
  max-height: 80vh;
8220
8216
  max-height: 95svh;
@@ -8623,6 +8619,45 @@
8623
8619
  opacity: 0.5;
8624
8620
  }
8625
8621
 
8622
+ /* vanilla-extract-css-ns:src/components/FunBadge/FunBadge.css.ts.vanilla.css?source=QGtleWZyYW1lcyBiYzJ1enkwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTEwMCUpOwogIH0KICAzNSUsIDEwMCUgewogICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDEwMCUpOwogIH0KfQouYmMydXp5MSB7CiAgZGlzcGxheTogZmxleDsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIHdpZHRoOiBmaXQtY29udGVudDsKICB3aGl0ZS1zcGFjZTogbm93cmFwOwp9Ci5iYzJ1enkyIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKfQouYmMydXp5Mjo6YmVmb3JlIHsKICBjb250ZW50OiAiIjsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgaW5zZXQ6IDA7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoOTBkZWcsIHRyYW5zcGFyZW50IDMwJSwgd2hpdGUgNDUlLCB3aGl0ZSA1NSUsIHRyYW5zcGFyZW50IDcwJSk7CiAgb3BhY2l0eTogMC43OwogIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMTAwJSk7CiAgZmlsdGVyOiBibHVyKDNweCk7CiAgYW5pbWF0aW9uOiBiYzJ1enkwIDNzIGxpbmVhciBpbmZpbml0ZSAuNXM7Cn0= */
8623
+ @keyframes bc2uzy0 {
8624
+ 0% {
8625
+ transform: translateX(-100%);
8626
+ }
8627
+ 35%, 100% {
8628
+ transform: translateX(100%);
8629
+ }
8630
+ }
8631
+ [data-rk] .bc2uzy1 {
8632
+ display: flex;
8633
+ justify-content: center;
8634
+ align-items: center;
8635
+ width: -moz-fit-content;
8636
+ width: fit-content;
8637
+ white-space: nowrap;
8638
+ }
8639
+ [data-rk] .bc2uzy2 {
8640
+ position: relative;
8641
+ overflow: hidden;
8642
+ }
8643
+ [data-rk] .bc2uzy2::before {
8644
+ content: "";
8645
+ position: absolute;
8646
+ inset: 0;
8647
+ overflow: hidden;
8648
+ background:
8649
+ linear-gradient(
8650
+ 90deg,
8651
+ transparent 30%,
8652
+ white 45%,
8653
+ white 55%,
8654
+ transparent 70%);
8655
+ opacity: 0.7;
8656
+ transform: translateX(-100%);
8657
+ filter: blur(3px);
8658
+ animation: bc2uzy0 3s linear infinite .5s;
8659
+ }
8660
+
8626
8661
  /* vanilla-extract-css-ns:src/components/FunInfoBanner/InfoBanner.css.ts.vanilla.css?source=LnZ5ZWRpeDAgewogICYgPiBhIHsKICAgIGNvbG9yOiB2YXIoLS1yay1jb2xvcnMtcHJpbWFyeVRleHQpOwogIH0KICAmID4gYTpmb2N1cy12aXNpYmxlIHsKICAgIG91dGxpbmUtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1zZWNvbmRhcnlUZXh0KTsKICB9Cn0KLnZ5ZWRpeDIgewogIGFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgZmxleC1zaHJpbms6IDA7Cn0= */
8627
8662
  [data-rk] .vyedix0 {
8628
8663
  [data-rk] & > a {