@funkit/connect 5.5.10 → 5.5.11
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 +17 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -2
- package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +3 -1
- package/dist/hooks/queries/useMeldLimits.d.ts +1 -1
- package/dist/index.js +347 -277
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +4 -4
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/useMeldQuotes.d.ts +15 -4
- package/dist/utils/consts.d.ts +2 -0
- package/dist/utils/flags/config.d.ts +29 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +58 -58
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
|
@@ -9,7 +9,7 @@ export type InputAmountState = CheckoutModalCommonState & {
|
|
|
9
9
|
quote?: MeldQuote;
|
|
10
10
|
};
|
|
11
11
|
export type InputAmountNext = Record<string, never> | {
|
|
12
|
-
fiatAmount: number;
|
|
12
|
+
fiatAmount: number | undefined;
|
|
13
13
|
fiatCurrency?: string;
|
|
14
14
|
provider?: MeldServiceProvider;
|
|
15
15
|
nextStep?: FunCheckoutStep.SOURCE_CHANGE | FunCheckoutStep.MELD_CURRENCY_SELECT | FunCheckoutStep.MELD_QUOTES;
|
|
@@ -7,6 +7,6 @@ interface QuickOptionsProps {
|
|
|
7
7
|
options?: number[];
|
|
8
8
|
percentMode?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function useFiatAmountOptions(currency: string): number[];
|
|
10
|
+
export declare function useFiatAmountOptions(currency: string | undefined): number[];
|
|
11
11
|
export declare const QuickOptions: ({ currency, disabled, onSelect, options, percentMode, }: QuickOptionsProps) => React.JSX.Element[] | undefined;
|
|
12
12
|
export {};
|
|
@@ -20,10 +20,10 @@ export interface AmountInputInitOptions {
|
|
|
20
20
|
quickOptions?: number[];
|
|
21
21
|
}
|
|
22
22
|
export interface AmountInputState {
|
|
23
|
-
/** Current amount, in target asset */
|
|
24
|
-
assetAmount: number;
|
|
25
|
-
/** Current amount, in fiat */
|
|
26
|
-
fiatAmount: number;
|
|
23
|
+
/** Current amount, in target asset. Undefined if input is empty */
|
|
24
|
+
assetAmount: number | undefined;
|
|
25
|
+
/** Current amount, in fiat. Undefined if input is empty */
|
|
26
|
+
fiatAmount: number | undefined;
|
|
27
27
|
/** Fiat currency */
|
|
28
28
|
fiatCurrency: string;
|
|
29
29
|
/** Current input value (with leading currency symbol if in fiat) */
|
|
@@ -5,7 +5,7 @@ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponent
|
|
|
5
5
|
export type MeldQuotesState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
7
7
|
/** Checkout amount in fiat */
|
|
8
|
-
fiatAmount: number;
|
|
8
|
+
fiatAmount: number | undefined;
|
|
9
9
|
fiatCurrency: string | undefined;
|
|
10
10
|
provider?: MeldServiceProvider;
|
|
11
11
|
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type MeldQuote } from '@funkit/api-base';
|
|
2
|
+
import { type UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Triggered only when fiatCurrency is provided.
|
|
6
|
+
*
|
|
7
|
+
* - The source amount is debounced.
|
|
8
|
+
* - Query errors are discarded while the input amount is not equal to its debounced value.
|
|
9
|
+
* - In that case, `isOutdated` is also set to `true`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useMeldQuotes: (sourceAmount: number | undefined, fiatCurrency: string | undefined) => {
|
|
12
|
+
countdown: ReactNode;
|
|
13
|
+
query: UseQueryResult<MeldQuote[]> & {
|
|
14
|
+
isOutdated: boolean;
|
|
15
|
+
};
|
|
5
16
|
};
|
package/dist/utils/consts.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const MIN_CHECKOUT_AMOUNT_USD = 1;
|
|
2
|
+
export declare const MIN_MOONPAY_AMOUNT_USD = 35;
|
|
3
|
+
export declare const MAX_MOONPAY_AMOUNT_USD = 10000;
|
|
2
4
|
export declare const LOW_BALANCE = "Low Balance";
|
|
3
5
|
export declare const CONTACT_US_LINK = "https://intercom.help/funxyz/en/articles/10732578-contact-us";
|
|
4
6
|
export declare const DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE = "Your Purchase";
|
|
@@ -255,14 +255,41 @@ export declare const flagConfig: {
|
|
|
255
255
|
enable_meld_payment: {
|
|
256
256
|
type: "boolean";
|
|
257
257
|
default_value: false;
|
|
258
|
-
overrides: {
|
|
258
|
+
overrides: ({
|
|
259
|
+
if_any: {
|
|
260
|
+
key: "userId";
|
|
261
|
+
type: "isAnyOf";
|
|
262
|
+
values: string[];
|
|
263
|
+
}[];
|
|
264
|
+
value: true;
|
|
265
|
+
if_all?: undefined;
|
|
266
|
+
} | {
|
|
267
|
+
if_all: ({
|
|
268
|
+
key: "userId";
|
|
269
|
+
type: "pctRollout";
|
|
270
|
+
pct: number;
|
|
271
|
+
values?: undefined;
|
|
272
|
+
} | {
|
|
273
|
+
key: "apiKey";
|
|
274
|
+
type: "isAnyOf";
|
|
275
|
+
values: string[];
|
|
276
|
+
pct?: undefined;
|
|
277
|
+
})[];
|
|
278
|
+
if_any: {
|
|
279
|
+
key: "userId";
|
|
280
|
+
type: "pctRollout";
|
|
281
|
+
pct: number;
|
|
282
|
+
}[];
|
|
283
|
+
value: true;
|
|
284
|
+
} | {
|
|
259
285
|
if_any: {
|
|
260
286
|
key: "userId";
|
|
261
287
|
type: "pctRollout";
|
|
262
288
|
pct: number;
|
|
263
289
|
}[];
|
|
264
290
|
value: false;
|
|
265
|
-
|
|
291
|
+
if_all?: undefined;
|
|
292
|
+
})[];
|
|
266
293
|
};
|
|
267
294
|
meld_quick_options: {
|
|
268
295
|
type: "string";
|
|
@@ -7,61 +7,61 @@ import {
|
|
|
7
7
|
} from "./chunk-JROWU5BP.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AXWP3GD4.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-6P2EMPZI.js";
|
|
14
17
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
subWallet
|
|
19
|
-
} from "./chunk-4UM4GTKZ.js";
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-ABFSXBE6.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IDKVN5CF.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-SLOIIJGP.js";
|
|
26
|
-
import {
|
|
27
|
-
trustWallet
|
|
28
|
-
} from "./chunk-IPOC2VJX.js";
|
|
29
26
|
import {
|
|
30
27
|
uniswapWallet
|
|
31
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
+
import {
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-ISIBREBO.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rainbowWallet
|
|
40
|
-
} from "./chunk-MOOBCMMB.js";
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-BVX4XGNP.js";
|
|
41
38
|
import {
|
|
42
39
|
ramperWallet
|
|
43
40
|
} from "./chunk-PIUNLQJG.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-2UCNRD7H.js";
|
|
44
|
+
import {
|
|
45
|
+
phantomWallet
|
|
46
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-R6RWZRFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
kresusWallet
|
|
61
|
+
} from "./chunk-MJXPRJZT.js";
|
|
62
62
|
import {
|
|
63
63
|
metaMaskWallet
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-V57WLZEE.js";
|
|
@@ -70,84 +70,84 @@ import {
|
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-7CUY5G6R.js";
|
|
77
|
+
import {
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-4AD7VI2P.js";
|
|
77
80
|
import {
|
|
78
81
|
oneInchWallet
|
|
79
82
|
} from "./chunk-OESTDX6I.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-LMZMXEXL.js";
|
|
83
86
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
86
89
|
import {
|
|
87
90
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
desigWallet
|
|
91
|
-
} from "./chunk-CTU6JCOK.js";
|
|
91
|
+
} from "./chunk-3S2U24BJ.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GSOYKKIS.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
98
|
-
import {
|
|
99
|
-
kresusWallet
|
|
100
|
-
} from "./chunk-MJXPRJZT.js";
|
|
101
98
|
import {
|
|
102
99
|
injectedWallet
|
|
103
100
|
} from "./chunk-VCVVV2K7.js";
|
|
101
|
+
import {
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-KR6JBW5E.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
bitgetWallet
|
|
109
|
+
} from "./chunk-A5APNTGL.js";
|
|
110
110
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-DTRYS3MO.js";
|
|
113
113
|
import {
|
|
114
114
|
coreWallet
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import {
|
|
117
|
-
dawnWallet
|
|
118
|
-
} from "./chunk-LN7OD5EC.js";
|
|
115
|
+
} from "./chunk-HBA36GW3.js";
|
|
119
116
|
import {
|
|
120
117
|
coinbaseWallet
|
|
121
118
|
} from "./chunk-H4IRCEZN.js";
|
|
122
119
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
120
|
+
dawnWallet
|
|
121
|
+
} from "./chunk-LN7OD5EC.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
enkryptWallet
|
|
124
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
125
|
+
import {
|
|
126
|
+
desigWallet
|
|
127
|
+
} from "./chunk-CTU6JCOK.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-545L7Y4M.js";
|
|
134
131
|
import {
|
|
135
132
|
bitskiWallet
|
|
136
133
|
} from "./chunk-P74YPRF6.js";
|
|
137
134
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
135
|
+
bifrostWallet
|
|
136
|
+
} from "./chunk-W6N74MS3.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
140
|
import {
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-S27IADFU.js";
|
|
143
|
+
import {
|
|
144
|
+
braveWallet
|
|
145
|
+
} from "./chunk-PB254NQ4.js";
|
|
146
146
|
import {
|
|
147
147
|
bybitWallet
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-WRA2DVJ7.js";
|
|
148
|
+
} from "./chunk-6ONTSPEY.js";
|
|
150
149
|
import "./chunk-23WIEY36.js";
|
|
150
|
+
import "./chunk-WRA2DVJ7.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.11",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"use-debounce": "^10.0.5",
|
|
90
90
|
"uuid": "^9.0.1",
|
|
91
91
|
"@funkit/api-base": "1.9.4",
|
|
92
|
-
"@funkit/core": "2.3.26",
|
|
93
|
-
"@funkit/wagmi-tools": "3.0.48",
|
|
94
|
-
"@funkit/utils": "1.1.3",
|
|
95
92
|
"@funkit/chains": "0.3.1",
|
|
96
|
-
"@funkit/
|
|
93
|
+
"@funkit/utils": "1.1.3",
|
|
94
|
+
"@funkit/wagmi-tools": "3.0.48",
|
|
95
|
+
"@funkit/core": "2.3.26",
|
|
96
|
+
"@funkit/fun-relay": "0.1.8"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|