@funkit/connect 5.5.9 → 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 +23 -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 +309 -238
- 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/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 +56 -56
- 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 +3 -3
|
@@ -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";
|
|
@@ -7,118 +7,118 @@ 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
18
|
talismanWallet
|
|
16
19
|
} from "./chunk-ABFSXBE6.js";
|
|
17
|
-
import {
|
|
18
|
-
safeheronWallet
|
|
19
|
-
} from "./chunk-R6RWZRFF.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IDKVN5CF.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-SLOIIJGP.js";
|
|
26
26
|
import {
|
|
27
27
|
uniswapWallet
|
|
28
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
+
import {
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-ISIBREBO.js";
|
|
29
32
|
import {
|
|
30
33
|
walletConnectWallet
|
|
31
34
|
} from "./chunk-NP5QGWNL.js";
|
|
32
|
-
import {
|
|
33
|
-
tokenaryWallet
|
|
34
|
-
} from "./chunk-SLOIIJGP.js";
|
|
35
|
-
import {
|
|
36
|
-
omniWallet
|
|
37
|
-
} from "./chunk-7CUY5G6R.js";
|
|
38
35
|
import {
|
|
39
36
|
rabbyWallet
|
|
40
37
|
} from "./chunk-BVX4XGNP.js";
|
|
38
|
+
import {
|
|
39
|
+
ramperWallet
|
|
40
|
+
} from "./chunk-PIUNLQJG.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2UCNRD7H.js";
|
|
44
44
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
phantomWallet
|
|
46
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
53
|
+
import {
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-R6RWZRFF.js";
|
|
53
56
|
import {
|
|
54
57
|
safepalWallet
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
kresusWallet
|
|
61
|
+
} from "./chunk-MJXPRJZT.js";
|
|
59
62
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
62
65
|
import {
|
|
63
66
|
mewWallet
|
|
64
67
|
} from "./chunk-V57WLZEE.js";
|
|
65
|
-
import {
|
|
66
|
-
metaMaskWallet
|
|
67
|
-
} from "./chunk-N2NIIUW6.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-7CUY5G6R.js";
|
|
77
77
|
import {
|
|
78
78
|
oneKeyWallet
|
|
79
79
|
} from "./chunk-4AD7VI2P.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneInchWallet
|
|
82
|
+
} from "./chunk-OESTDX6I.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-LMZMXEXL.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-ZMYVTWDF.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-3S2U24BJ.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import {
|
|
96
|
-
injectedWallet
|
|
97
|
-
} from "./chunk-VCVVV2K7.js";
|
|
94
|
+
} from "./chunk-GSOYKKIS.js";
|
|
98
95
|
import {
|
|
99
96
|
imTokenWallet
|
|
100
97
|
} from "./chunk-COZ7MIQS.js";
|
|
101
98
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-VCVVV2K7.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-KR6JBW5E.js";
|
|
110
107
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
bitgetWallet
|
|
109
|
+
} from "./chunk-A5APNTGL.js";
|
|
113
110
|
import {
|
|
114
111
|
coin98Wallet
|
|
115
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-DTRYS3MO.js";
|
|
113
|
+
import {
|
|
114
|
+
coreWallet
|
|
115
|
+
} from "./chunk-HBA36GW3.js";
|
|
116
|
+
import {
|
|
117
|
+
coinbaseWallet
|
|
118
|
+
} from "./chunk-H4IRCEZN.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-LN7OD5EC.js";
|
|
119
|
-
import {
|
|
120
|
-
coreWallet
|
|
121
|
-
} from "./chunk-JXP2QPW7.js";
|
|
122
122
|
import {
|
|
123
123
|
enkryptWallet
|
|
124
124
|
} from "./chunk-SJTXS4ZW.js";
|
|
@@ -128,26 +128,26 @@ import {
|
|
|
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";
|
|
140
|
+
import {
|
|
141
|
+
bloomWallet
|
|
142
|
+
} from "./chunk-S27IADFU.js";
|
|
143
143
|
import {
|
|
144
144
|
braveWallet
|
|
145
145
|
} from "./chunk-PB254NQ4.js";
|
|
146
|
-
import "./chunk-WRA2DVJ7.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
bybitWallet
|
|
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/chains": "0.3.1",
|
|
92
93
|
"@funkit/utils": "1.1.3",
|
|
93
94
|
"@funkit/wagmi-tools": "3.0.48",
|
|
94
95
|
"@funkit/core": "2.3.26",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/fun-relay": "0.1.7"
|
|
96
|
+
"@funkit/fun-relay": "0.1.8"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|