@funkit/connect 5.5.6 → 5.5.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 5.5.9
4
+
5
+ ### Patch Changes
6
+
7
+ - cc75e37: add destination chain name
8
+
9
+ ## 5.5.8
10
+
11
+ ### Patch Changes
12
+
13
+ - 426d791: feat(connect): disable VRTX swaps but keep it listed for direct execution
14
+ - 0432882: fix: fix default currency used after changing payment methods
15
+ - 0436f72: feat(connect): use middle quick option as default amount for meld
16
+ - adcf32d: feat(connect): specifies the minimum value permitted for a token transfer based on flag
17
+ - 1d88c58: feat: resize meld quotes icons
18
+ - 47895b6: feat(connect): hide Learn More links in fee tooltips for Katana
19
+ - b867a06: feat: remove bottom padding from meld currency select screen
20
+ - Updated dependencies [adcf32d]
21
+ - @funkit/utils@1.1.3
22
+ - @funkit/api-base@1.9.4
23
+ - @funkit/core@2.3.26
24
+ - @funkit/wagmi-tools@3.0.48
25
+
26
+ ## 5.5.7
27
+
28
+ ### Patch Changes
29
+
30
+ - df4fe59: update transaction
31
+ - 4e1b4d1: hardcode PM users from being blocked
32
+ - 993f2c9: hide unsupported payment method icons
33
+ - Updated dependencies [df4fe59]
34
+ - @funkit/api-base@1.9.3
35
+ - @funkit/core@2.3.25
36
+ - @funkit/wagmi-tools@3.0.47
37
+
3
38
  ## 5.5.6
4
39
 
5
40
  ### Patch Changes
@@ -12,15 +12,17 @@ interface DialogProps {
12
12
  isHidden?: boolean;
13
13
  /** Whether clicking outside the dialog or pressing escape key would close the modal */
14
14
  isSmartCloseable?: boolean;
15
- /** Whether internal padding around the content of the modal should be applied */
16
- withoutInternalPadding?: boolean;
15
+ /** Whether side padding around the content of the modal should be applied */
16
+ withoutSidePadding?: boolean;
17
+ /** Whether bottom padding around the content of the modal should be applied */
18
+ withoutBottomPadding?: boolean;
17
19
  /** Whether the transition animation should be used on open/close */
18
20
  withTransition?: boolean;
19
21
  }
20
22
  /**
21
23
  * Dialog components (title, content, bottom bar) must be rendered as direct children of Dialog for correct scrolling behavior
22
24
  */
23
- export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutInternalPadding, withTransition, }: DialogProps): React.ReactPortal | null;
25
+ export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withoutBottomPadding, withTransition, }: DialogProps): React.ReactPortal | null;
24
26
  export declare namespace Dialog {
25
27
  var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, helpButtonUrl, isBackDisabled, onBack, dydxHideBack, className, }: DialogTitleProps) => React.JSX.Element;
26
28
  var Content: ({ children, fullHeight, paddingLeft, paddingBottom, paddingTop, className, withTopDivider, withBottomDivider, id, withoutInternalPadding, ...boxProps }: DialogContentProps) => React.JSX.Element;
@@ -4,7 +4,8 @@ export declare const DIALOG_BOTTOM_PADDING = "15";
4
4
  export declare const dialog: string;
5
5
  export declare const dialogCompact: string;
6
6
  export declare const dialogMedium: string;
7
- export declare const dialogWithoutInternalPadding: string;
7
+ export declare const withoutSidePadding: string;
8
+ export declare const withoutBottomPadding: string;
8
9
  export declare const dialogMobile: string;
9
10
  export declare const scrollContent: string;
10
11
  export declare const scrollbarHidden: string;
@@ -1,6 +1,7 @@
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';
4
5
  import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
5
6
  import { PaymentMethod, type PaymentMethodInfo } from './paymentMethods';
6
7
  export interface BrokerageDetails {
@@ -27,6 +28,7 @@ interface WalletCheckoutFees extends BaseCheckoutFees {
27
28
  eoaWalletFeeToken: number;
28
29
  nativeCurrencySymbol: string;
29
30
  eoaWalletFeeUsd: number;
31
+ relayQuote: RelayQuote['metadata']['relayQuote'] | undefined;
30
32
  }
31
33
  interface CardCheckoutFees extends BaseCheckoutFees {
32
34
  paymentMethod: PaymentMethod.CARD;
@@ -1,8 +1,164 @@
1
1
  /**
2
- * @param fiatCurrency - fiat currency code used just to enable/disable this hook
3
2
  * @returns limits for all fiat currencies
4
3
  */
5
- export declare const useMeldLimits: (fiatCurrency?: string) => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>;
4
+ export declare const useMeldLimits: (isEnabled?: boolean) => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>;
5
+ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
6
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
7
+ error: Error;
8
+ isError: true;
9
+ isPending: false;
10
+ isLoading: false;
11
+ isLoadingError: false;
12
+ isRefetchError: true;
13
+ isSuccess: false;
14
+ isPlaceholderData: false;
15
+ status: "error";
16
+ dataUpdatedAt: number;
17
+ errorUpdatedAt: number;
18
+ failureCount: number;
19
+ failureReason: Error | null;
20
+ errorUpdateCount: number;
21
+ isFetched: boolean;
22
+ isFetchedAfterMount: boolean;
23
+ isFetching: boolean;
24
+ isInitialLoading: boolean;
25
+ isPaused: boolean;
26
+ isRefetching: boolean;
27
+ isStale: boolean;
28
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
29
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
30
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
31
+ } | {
32
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
33
+ error: null;
34
+ isError: false;
35
+ isPending: false;
36
+ isLoading: false;
37
+ isLoadingError: false;
38
+ isRefetchError: false;
39
+ isSuccess: true;
40
+ isPlaceholderData: false;
41
+ status: "success";
42
+ dataUpdatedAt: number;
43
+ errorUpdatedAt: number;
44
+ failureCount: number;
45
+ failureReason: Error | null;
46
+ errorUpdateCount: number;
47
+ isFetched: boolean;
48
+ isFetchedAfterMount: boolean;
49
+ isFetching: boolean;
50
+ isInitialLoading: boolean;
51
+ isPaused: boolean;
52
+ isRefetching: boolean;
53
+ isStale: boolean;
54
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
55
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
56
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
57
+ } | {
58
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
59
+ error: Error;
60
+ isError: true;
61
+ isPending: false;
62
+ isLoading: false;
63
+ isLoadingError: true;
64
+ isRefetchError: false;
65
+ isSuccess: false;
66
+ isPlaceholderData: false;
67
+ status: "error";
68
+ dataUpdatedAt: number;
69
+ errorUpdatedAt: number;
70
+ failureCount: number;
71
+ failureReason: Error | null;
72
+ errorUpdateCount: number;
73
+ isFetched: boolean;
74
+ isFetchedAfterMount: boolean;
75
+ isFetching: boolean;
76
+ isInitialLoading: boolean;
77
+ isPaused: boolean;
78
+ isRefetching: boolean;
79
+ isStale: boolean;
80
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
81
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
82
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
83
+ } | {
84
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
85
+ error: null;
86
+ isError: false;
87
+ isPending: true;
88
+ isLoading: true;
89
+ isLoadingError: false;
90
+ isRefetchError: false;
91
+ isSuccess: false;
92
+ isPlaceholderData: false;
93
+ status: "pending";
94
+ dataUpdatedAt: number;
95
+ errorUpdatedAt: number;
96
+ failureCount: number;
97
+ failureReason: Error | null;
98
+ errorUpdateCount: number;
99
+ isFetched: boolean;
100
+ isFetchedAfterMount: boolean;
101
+ isFetching: boolean;
102
+ isInitialLoading: boolean;
103
+ isPaused: boolean;
104
+ isRefetching: boolean;
105
+ isStale: boolean;
106
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
107
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
108
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
109
+ } | {
110
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
111
+ error: null;
112
+ isError: false;
113
+ isPending: true;
114
+ isLoadingError: false;
115
+ isRefetchError: false;
116
+ isSuccess: false;
117
+ isPlaceholderData: false;
118
+ status: "pending";
119
+ dataUpdatedAt: number;
120
+ errorUpdatedAt: number;
121
+ failureCount: number;
122
+ failureReason: Error | null;
123
+ errorUpdateCount: number;
124
+ isFetched: boolean;
125
+ isFetchedAfterMount: boolean;
126
+ isFetching: boolean;
127
+ isLoading: boolean;
128
+ isInitialLoading: boolean;
129
+ isPaused: boolean;
130
+ isRefetching: boolean;
131
+ isStale: boolean;
132
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
133
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
134
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
135
+ } | {
136
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
137
+ isError: false;
138
+ error: null;
139
+ isPending: false;
140
+ isLoading: false;
141
+ isLoadingError: false;
142
+ isRefetchError: false;
143
+ isSuccess: true;
144
+ isPlaceholderData: true;
145
+ status: "success";
146
+ dataUpdatedAt: number;
147
+ errorUpdatedAt: number;
148
+ failureCount: number;
149
+ failureReason: Error | null;
150
+ errorUpdateCount: number;
151
+ isFetched: boolean;
152
+ isFetchedAfterMount: boolean;
153
+ isFetching: boolean;
154
+ isInitialLoading: boolean;
155
+ isPaused: boolean;
156
+ isRefetching: boolean;
157
+ isStale: boolean;
158
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
159
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
160
+ promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
161
+ };
6
162
  type MeldLimitError = {
7
163
  issue: string;
8
164
  suggestion: string;
@@ -29,12 +29,14 @@ export interface FunkitDirectExecutionInfo {
29
29
  interface UseCheckoutDirectExecutionReturn {
30
30
  getDirectExecutionInfo: (checkoutItem: FunkitActiveCheckoutItem | null) => FunkitDirectExecutionInfo;
31
31
  }
32
- export declare function isVertexDirectExecution({ apiKey, config, paymentMethod, sourceAsset, sourceChain, }: {
32
+ export declare function isVertexDirectExecution({ apiKey, config, paymentMethod, sourceAsset, sourceChain, targetAsset, targetChain, }: {
33
33
  apiKey: string;
34
34
  config: FunkitCheckoutConfig;
35
35
  paymentMethod: PaymentMethod | undefined;
36
36
  sourceAsset: string;
37
37
  sourceChain: string;
38
+ targetAsset?: string;
39
+ targetChain?: string;
38
40
  }): boolean;
39
41
  export declare function useCheckoutDirectExecution(): UseCheckoutDirectExecutionReturn;
40
42
  export {};
@@ -1,5 +1,5 @@
1
- import { DirectExecutionType } from '@funkit/api-base';
2
- export declare function useReceiveAmountLabel({ directExecutionType, isSameToken, }: {
1
+ import type { DirectExecutionType } from '@funkit/api-base';
2
+ export declare function useReceiveAmountLabel(_: {
3
3
  directExecutionType?: DirectExecutionType | null;
4
4
  isSameToken?: boolean;
5
5
  }): string;
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=#H4sIAAAAAAAAE7VVy67aMBDd8xWWuoGFUQiEyw2bqt/QfTWxJ8TCsSPbgaQV/17lQZoXalDVFfIw55yJ58x4+2OX/XQHf78jv1aEpFDQBMUlcSEJ/CArzm3wLrhLQrLzvNu9irXnQ+BVOY/VtuMJE7DrL7zkBc2gTFE5au/CsQTNZqJx/Ajm8U5fUVFnQNkYDc3gglP0yX+BjgU4ytGBkO9CmVaxMCk4odVirN/kCPW8p/3Ja+5ueO5B9u9DDjUkA86FutBIO6fTkHjnXtA0FQ5iEuMm1KM6jtWFEk6A7OkzkGxd95tQsveyYnMe34Nnb8mQ9q3mn7wKvpBzmSFmGD+DF4wLTLKI7lTj9A1NLPWdFiFJBOeozv1oGRLIna5ilhktZQSGXnLn0ITEOogkDv9ru5Ari24oF4b0jtFVuOo22LVWj4BdL0bnilOmpTYhuYFZU2quzdnSVHOQ37q0zSvOroKalwubSSi7Ojp3HBuv/gdd6pI8jZqv0oajoQa4yG2PugqIhnmzrAqHxgkw5Xcs3LCEz7+U8G8f+Jo9TCpvLNSwyLTis/XDsE+xxLox1S/lwiCrFllImJZ5WlvyaeRqtIdGjgb7pVsbc9ulh2I1qh5M0WjpDJhwJfG2viUIFqlQVOdDG/MJDKQk3jYYQYbT5wftknwO1p9h63HjZJJb1FTu0Mq1WnO0X1PkAqrRRFQEFCfr3uL8OJ6yolkd2+FbOn4kCXn0k/w2ae4JGD8CI+h+Cj34Y2gXeawevwFCTYtC5gcAAA== */
8173
+ /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAE7WVy66bMBCG9+cpLHWTLBwREpIcsqn6DN1Xgz0EK8ZGtkmgVd694hLKLSpR1RXyMN8/Y3tmvPmxzX66vb/bkl8fhKRQ0ATFJXEhCfwgK86t8S64S0Ky9bzbvbK1633gVT6Pj02nEyZgV194yQuaQZmictTehWMJmvUkxuEYzPNOX1FRZ0DZGA3N4IJT+uS/oGMBjnJ0IOS7KNMqFiYFJ7RazPqNj1DPc9qdvObshusesnsf2ddIBpwLdaGmScY792wS48bUo4IBFWnndDr2OY6TEUo4AbKXDgPJVvX1E0p2Xlasz+Nj8ewtGcq+VQsnr8IXai6rjxnFz+CF4oKaWST3WXP6hiaW+k6LkCSCc1TnvrUMCeROVzbLjJYyAkMvuXNoQmIdRBKH/9pbyJVFNwwXhvSO0VW46jTYtY4eAbtejM4Vp0xLbUJyA7Oi1FybtaWp5iC/dW7rV5pdBrUuFzaTUHZ5dNVxaEr3P8SlLsnTqNmVNhwNNcBFbnvSlUE0yutlWTg0ToApv2PhhinAX1L4tw2+Vg+TqjYWxrDItOKz+UfDe4ol1hdTfSkXBlk110LCtMzTuiSfhVy19rCQ2WBwdKNlbgL1KF5TdWOKJpbOgAlXEm/jW4JgkQpFdT4sY5xgICXxNsEIGXafH7Qz89lYf5qtpx1POrmlpuH2bbg21pzs1xS5gKo1ERUBxcmqNziPh1NWNKNjM3xax28mIY++k986zb0I4zdhhO6m6N4fo53l8fH4DauHSHX1BwAA */
8174
8174
  [data-rk] ._1pzt4231 {
8175
8175
  max-height: 525px;
8176
8176
  max-width: 100vw;
@@ -8197,69 +8197,71 @@
8197
8197
  width: 380px;
8198
8198
  }
8199
8199
  [data-rk] ._1pzt4234 {
8200
- padding-bottom: 0;
8201
8200
  padding-right: 0;
8202
8201
  padding-left: 0;
8203
8202
  }
8204
- [data-rk] ._1pzt4236 {
8203
+ [data-rk] ._1pzt4235 {
8204
+ padding-bottom: 0;
8205
+ }
8206
+ [data-rk] ._1pzt4237 {
8205
8207
  min-width: initial;
8206
8208
  width: calc(100vw - 30px);
8207
8209
  max-height: 80svh;
8208
8210
  }
8209
- [data-rk] ._1pzt4236:has(#dydx-payment-switcher) {
8211
+ [data-rk] ._1pzt4237:has(#dydx-payment-switcher) {
8210
8212
  max-height: 80vh;
8211
8213
  max-height: 80svh;
8212
8214
  }
8213
- [data-rk] ._1pzt4236:has(#token-transfer-page) {
8215
+ [data-rk] ._1pzt4237:has(#token-transfer-page) {
8214
8216
  max-height: 80vh;
8215
8217
  max-height: 95svh;
8216
8218
  }
8217
- [data-rk] ._1pzt4236:has(#fiat-detail-page) {
8219
+ [data-rk] ._1pzt4237:has(#fiat-detail-page) {
8218
8220
  max-height: 80vh;
8219
8221
  max-height: 95svh;
8220
8222
  }
8221
- [data-rk] ._1pzt4238 {
8223
+ [data-rk] ._1pzt4239 {
8222
8224
  overflow-x: hidden;
8223
8225
  overflow-y: auto;
8224
8226
  scrollbar-gutter: stable;
8225
8227
  scrollbar-width: unset;
8226
8228
  }
8227
- [data-rk] ._1pzt4238::-webkit-track {
8229
+ [data-rk] ._1pzt4239::-webkit-track {
8228
8230
  background-color: var(--rk-colors-modalBackground);
8229
8231
  }
8230
- [data-rk] ._1pzt4238::-webkit-scrollbar {
8232
+ [data-rk] ._1pzt4239::-webkit-scrollbar {
8231
8233
  display: unset;
8232
8234
  width: 6px;
8233
8235
  background-color: var(--rk-colors-modalBackground);
8234
8236
  }
8235
- [data-rk] ._1pzt4238::-webkit-scrollbar-thumb {
8237
+ [data-rk] ._1pzt4239::-webkit-scrollbar-thumb {
8236
8238
  border-radius: var(--rk-radii-modal);
8237
8239
  background-color: var(--rk-colors-tertiaryText);
8238
8240
  }
8239
- [data-rk] ._1pzt4239::-webkit-scrollbar-thumb {
8241
+ [data-rk] ._1pzt423a::-webkit-scrollbar-thumb {
8240
8242
  background-color: var(--rk-colors-modalBackground);
8241
8243
  }
8242
- [data-rk] ._1pzt4239::-webkit-scrollbar-thumb:hover {
8244
+ [data-rk] ._1pzt423a::-webkit-scrollbar-thumb:hover {
8243
8245
  background-color: var(--rk-colors-secondaryText);
8244
8246
  }
8245
- [data-rk] ._1pzt423a {
8247
+ [data-rk] ._1pzt423b {
8246
8248
  display: flex;
8247
8249
  flex-direction: column;
8248
8250
  height: 100vh;
8249
8251
  }
8250
- [data-rk] ._1pzt423b {
8252
+ [data-rk] ._1pzt423c {
8251
8253
  padding-left: 0;
8252
8254
  padding-right: 0;
8253
8255
  }
8254
- [data-rk] ._1pzt423c {
8256
+ [data-rk] ._1pzt423d {
8255
8257
  transition: opacity 0.2s ease-in-out;
8256
8258
  }
8257
- [data-rk] ._1pzt423d {
8259
+ [data-rk] ._1pzt423e {
8258
8260
  transition: all 0.5s ease-in-out;
8259
8261
  max-height: 250px;
8260
8262
  overflow: hidden;
8261
8263
  }
8262
- [data-rk] ._1pzt423e {
8264
+ [data-rk] ._1pzt423f {
8263
8265
  max-height: 0px;
8264
8266
  transition: all 0.4s ease-out;
8265
8267
  overflow: hidden;