@funkit/connect 5.5.7 → 5.5.10
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 +29 -0
- package/dist/components/Dialog/Dialog.d.ts +5 -3
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -1
- package/dist/hooks/queries/useMeldLimits.d.ts +158 -2
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -1
- package/dist/index.css +19 -17
- package/dist/index.js +429 -394
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +6 -3
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +19 -17
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -0
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +0 -2
- package/dist/utils/flags/config.d.ts +6 -29
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/package.json +13 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 5.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 46f3cc4: fix meld
|
|
8
|
+
|
|
9
|
+
## 5.5.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- cc75e37: add destination chain name
|
|
14
|
+
|
|
15
|
+
## 5.5.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 426d791: feat(connect): disable VRTX swaps but keep it listed for direct execution
|
|
20
|
+
- 0432882: fix: fix default currency used after changing payment methods
|
|
21
|
+
- 0436f72: feat(connect): use middle quick option as default amount for meld
|
|
22
|
+
- adcf32d: feat(connect): specifies the minimum value permitted for a token transfer based on flag
|
|
23
|
+
- 1d88c58: feat: resize meld quotes icons
|
|
24
|
+
- 47895b6: feat(connect): hide Learn More links in fee tooltips for Katana
|
|
25
|
+
- b867a06: feat: remove bottom padding from meld currency select screen
|
|
26
|
+
- Updated dependencies [adcf32d]
|
|
27
|
+
- @funkit/utils@1.1.3
|
|
28
|
+
- @funkit/api-base@1.9.4
|
|
29
|
+
- @funkit/core@2.3.26
|
|
30
|
+
- @funkit/wagmi-tools@3.0.48
|
|
31
|
+
|
|
3
32
|
## 5.5.7
|
|
4
33
|
|
|
5
34
|
### 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
|
|
16
|
-
|
|
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,
|
|
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
|
|
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,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: (
|
|
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 {};
|
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=#
|
|
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] .
|
|
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] .
|
|
8211
|
+
[data-rk] ._1pzt4237:has(#dydx-payment-switcher) {
|
|
8210
8212
|
max-height: 80vh;
|
|
8211
8213
|
max-height: 80svh;
|
|
8212
8214
|
}
|
|
8213
|
-
[data-rk] .
|
|
8215
|
+
[data-rk] ._1pzt4237:has(#token-transfer-page) {
|
|
8214
8216
|
max-height: 80vh;
|
|
8215
8217
|
max-height: 95svh;
|
|
8216
8218
|
}
|
|
8217
|
-
[data-rk] .
|
|
8219
|
+
[data-rk] ._1pzt4237:has(#fiat-detail-page) {
|
|
8218
8220
|
max-height: 80vh;
|
|
8219
8221
|
max-height: 95svh;
|
|
8220
8222
|
}
|
|
8221
|
-
[data-rk] .
|
|
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] .
|
|
8229
|
+
[data-rk] ._1pzt4239::-webkit-track {
|
|
8228
8230
|
background-color: var(--rk-colors-modalBackground);
|
|
8229
8231
|
}
|
|
8230
|
-
[data-rk] .
|
|
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] .
|
|
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] .
|
|
8241
|
+
[data-rk] ._1pzt423a::-webkit-scrollbar-thumb {
|
|
8240
8242
|
background-color: var(--rk-colors-modalBackground);
|
|
8241
8243
|
}
|
|
8242
|
-
[data-rk] .
|
|
8244
|
+
[data-rk] ._1pzt423a::-webkit-scrollbar-thumb:hover {
|
|
8243
8245
|
background-color: var(--rk-colors-secondaryText);
|
|
8244
8246
|
}
|
|
8245
|
-
[data-rk] .
|
|
8247
|
+
[data-rk] ._1pzt423b {
|
|
8246
8248
|
display: flex;
|
|
8247
8249
|
flex-direction: column;
|
|
8248
8250
|
height: 100vh;
|
|
8249
8251
|
}
|
|
8250
|
-
[data-rk] .
|
|
8252
|
+
[data-rk] ._1pzt423c {
|
|
8251
8253
|
padding-left: 0;
|
|
8252
8254
|
padding-right: 0;
|
|
8253
8255
|
}
|
|
8254
|
-
[data-rk] .
|
|
8256
|
+
[data-rk] ._1pzt423d {
|
|
8255
8257
|
transition: opacity 0.2s ease-in-out;
|
|
8256
8258
|
}
|
|
8257
|
-
[data-rk] .
|
|
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] .
|
|
8264
|
+
[data-rk] ._1pzt423f {
|
|
8263
8265
|
max-height: 0px;
|
|
8264
8266
|
transition: all 0.4s ease-out;
|
|
8265
8267
|
overflow: hidden;
|