@funkit/connect 12.21.0 → 12.22.1
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 +89 -0
- package/dist/clients/{chunk-FIJU6HZM.js → chunk-5JVG4MS2.js} +1 -1
- package/dist/clients/{chunk-YSQX5Z3F.js → chunk-HGLDKRSQ.js} +40 -8
- package/dist/clients/{chunk-6XJV626L.js → chunk-R7I5OO6C.js} +1 -1
- package/dist/clients/{chunk-DAMICUCH.js → chunk-UBZOARBX.js} +2 -2
- package/dist/clients/{chunk-MTKOZB6U.js → chunk-Y2O77SJO.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +5 -5
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.css +32 -11
- package/dist/clients/lighter.js +5 -5
- package/dist/clients/mallard.d.ts +34 -1
- package/dist/clients/mallard.js +149 -4
- package/dist/clients/nado.js +3 -3
- package/dist/components/CustomSlot/CustomSlot.d.ts +8 -0
- package/dist/components/CustomSlot/CustomSlotBoundary.d.ts +12 -0
- package/dist/components/DestinationSelector/DestinationAssetBalanceLabel.d.ts +6 -0
- package/dist/components/DestinationSelector/DestinationSelector.css.d.ts +3 -0
- package/dist/components/DestinationSelector/DestinationSelector.d.ts +17 -0
- package/dist/components/DestinationSelector/DestinationSelectorSkeleton.d.ts +2 -0
- package/dist/components/Dropdown/AccountSelectDropdown.d.ts +8 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -0
- package/dist/components/FunTransactionSummary/DestinationLineItems.d.ts +1 -1
- package/dist/domains/asset.d.ts +6 -0
- package/dist/domains/clientMetadata.d.ts +5 -6
- package/dist/domains/convert/balances.d.ts +4 -2
- package/dist/domains/destinationAccount.d.ts +14 -0
- package/dist/domains/destinationAssetBalance.d.ts +39 -0
- package/dist/domains/fees.d.ts +13 -0
- package/dist/domains/inputAmountComponentContext.d.ts +11 -0
- package/dist/hooks/useConvertBalances.d.ts +3 -1
- package/dist/hooks/useDestinationAccountSelector.d.ts +18 -0
- package/dist/hooks/useDestinationAssetBalances.d.ts +5 -0
- package/dist/hooks/useHighPriceImpactPercent.d.ts +11 -0
- package/dist/index.css +32 -11
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3012 -2305
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/FlatList.d.ts +2 -8
- package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +1 -2
- package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +5 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +52 -11
- package/dist/providers/FunkitConfigContext.d.ts +24 -1
- package/dist/providers/FunkitHistoryContext.d.ts +0 -1
- package/dist/shadow-css.js +1 -1
- package/dist/utils/checkout.d.ts +1 -0
- package/dist/utils/consts.d.ts +1 -0
- package/dist/wallets/walletConnectors/index.js +38 -38
- package/package.json +7 -7
- package/dist/domains/priceImpact.d.ts +0 -14
- package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +0 -2
package/dist/utils/checkout.d.ts
CHANGED
package/dist/utils/consts.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { MAX_BTC_LIGHTNING_AMOUNT_USD } from '@funkit/connect-core';
|
|
|
2
2
|
export declare const MIN_CHECKOUT_AMOUNT_USD = 1;
|
|
3
3
|
export declare const LOW_BALANCE = "Low Balance";
|
|
4
4
|
export declare const CONTACT_US_LINK = "https://intercom.help/funxyz/en/articles/10732578-contact-us";
|
|
5
|
+
export declare const DEPOSIT_UNDER_REVIEW_HELP_LINK = "https://intercom.help/funxyz/en/articles/17748226-why-is-my-deposit-under-review";
|
|
5
6
|
export declare const DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE = "Your Purchase";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-34B7OJNT.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
talismanWallet
|
|
16
|
-
} from "./chunk-IAYYWCVB.js";
|
|
12
|
+
safeheronWallet
|
|
13
|
+
} from "./chunk-UN3ONVNC.js";
|
|
17
14
|
import {
|
|
18
15
|
tahoWallet
|
|
19
16
|
} from "./chunk-U74RFZOL.js";
|
|
17
|
+
import {
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-IAYYWCVB.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-NXWG6FG2.js";
|
|
@@ -36,35 +36,35 @@ import {
|
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-Q27YVDDH.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
oneKeyWallet
|
|
40
|
+
} from "./chunk-KN32ITJ7.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
roninWallet
|
|
43
|
+
} from "./chunk-IA5432IR.js";
|
|
44
44
|
import {
|
|
45
45
|
ramperWallet
|
|
46
46
|
} from "./chunk-GPXIBTWN.js";
|
|
47
|
-
import {
|
|
48
|
-
roninWallet
|
|
49
|
-
} from "./chunk-IA5432IR.js";
|
|
50
47
|
import {
|
|
51
48
|
safeWallet
|
|
52
49
|
} from "./chunk-IR3PJMVM.js";
|
|
53
50
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
51
|
+
rainbowWallet
|
|
52
|
+
} from "./chunk-ZSSSLFQF.js";
|
|
56
53
|
import {
|
|
57
54
|
safepalWallet
|
|
58
55
|
} from "./chunk-BBB2J3US.js";
|
|
56
|
+
import {
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-XODA5ESL.js";
|
|
59
|
+
import {
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-DSPQXAB2.js";
|
|
59
62
|
import {
|
|
60
63
|
ledgerWallet
|
|
61
64
|
} from "./chunk-BL4OC2EJ.js";
|
|
62
65
|
import {
|
|
63
66
|
metaMaskWallet
|
|
64
67
|
} from "./chunk-RXRYHMRI.js";
|
|
65
|
-
import {
|
|
66
|
-
mewWallet
|
|
67
|
-
} from "./chunk-DSPQXAB2.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-V4M3SNPS.js";
|
|
@@ -78,14 +78,14 @@ import {
|
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-GFS2AVAH.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-RQ2GXOJL.js";
|
|
83
|
+
import {
|
|
84
|
+
desigWallet
|
|
85
|
+
} from "./chunk-DFHP75HV.js";
|
|
83
86
|
import {
|
|
84
87
|
foxWallet
|
|
85
88
|
} from "./chunk-U52QO5HF.js";
|
|
86
|
-
import {
|
|
87
|
-
enkryptWallet
|
|
88
|
-
} from "./chunk-Z6LDN2AN.js";
|
|
89
89
|
import {
|
|
90
90
|
frameWallet
|
|
91
91
|
} from "./chunk-B572YIAQ.js";
|
|
@@ -104,15 +104,15 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
kresusWallet
|
|
106
106
|
} from "./chunk-V77ATGZT.js";
|
|
107
|
-
import {
|
|
108
|
-
bybitWallet
|
|
109
|
-
} from "./chunk-BBDNB5TQ.js";
|
|
110
107
|
import {
|
|
111
108
|
clvWallet
|
|
112
109
|
} from "./chunk-4FHNLTR3.js";
|
|
113
110
|
import {
|
|
114
111
|
coin98Wallet
|
|
115
112
|
} from "./chunk-RFCZYLNR.js";
|
|
113
|
+
import {
|
|
114
|
+
bloomWallet
|
|
115
|
+
} from "./chunk-PNHDOC77.js";
|
|
116
116
|
import {
|
|
117
117
|
coinbaseWallet
|
|
118
118
|
} from "./chunk-SM2A3OSG.js";
|
|
@@ -126,30 +126,30 @@ import {
|
|
|
126
126
|
dawnWallet
|
|
127
127
|
} from "./chunk-LV6YV3DE.js";
|
|
128
128
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import {
|
|
132
|
-
argentWallet
|
|
133
|
-
} from "./chunk-XSDTNMQY.js";
|
|
134
|
-
import {
|
|
135
|
-
bifrostWallet
|
|
136
|
-
} from "./chunk-ALGPGI6V.js";
|
|
129
|
+
enkryptWallet
|
|
130
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
137
131
|
import {
|
|
138
132
|
bitgetWallet
|
|
139
133
|
} from "./chunk-HOCKAU5H.js";
|
|
140
134
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
135
|
+
bifrostWallet
|
|
136
|
+
} from "./chunk-ALGPGI6V.js";
|
|
143
137
|
import {
|
|
144
138
|
bitverseWallet
|
|
145
139
|
} from "./chunk-5AEWIKRA.js";
|
|
146
140
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import
|
|
141
|
+
argentWallet
|
|
142
|
+
} from "./chunk-XSDTNMQY.js";
|
|
143
|
+
import {
|
|
144
|
+
bitskiWallet
|
|
145
|
+
} from "./chunk-NPITCCJE.js";
|
|
150
146
|
import {
|
|
151
147
|
braveWallet
|
|
152
148
|
} from "./chunk-U2XXV45G.js";
|
|
149
|
+
import {
|
|
150
|
+
bybitWallet
|
|
151
|
+
} from "./chunk-BBDNB5TQ.js";
|
|
152
|
+
import "./chunk-AALSJCUR.js";
|
|
153
153
|
import "./chunk-EYWGX5LT.js";
|
|
154
154
|
import "./chunk-B454LLKJ.js";
|
|
155
155
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.22.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"@bluvo/react": "3.0.0-beta.1",
|
|
105
105
|
"@bluvo/sdk-ts": "3.0.0-beta.1",
|
|
106
106
|
"@datadog/browser-logs": "5.22.0",
|
|
107
|
+
"@funkit/api-base": "10.2.0",
|
|
108
|
+
"@funkit/chains": "2.6.1",
|
|
109
|
+
"@funkit/connect-core": "13.1.0",
|
|
110
|
+
"@funkit/fun-relay": "3.3.1",
|
|
111
|
+
"@funkit/utils": "5.1.1",
|
|
107
112
|
"@number-flow/react": "^0.5.5",
|
|
108
113
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
109
114
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
@@ -123,12 +128,7 @@
|
|
|
123
128
|
"react-virtuoso": "4.10.1",
|
|
124
129
|
"ua-parser-js": "^1.0.37",
|
|
125
130
|
"use-debounce": "^10.0.5",
|
|
126
|
-
"uuid": "^11.1.1"
|
|
127
|
-
"@funkit/api-base": "10.0.0",
|
|
128
|
-
"@funkit/chains": "2.6.1",
|
|
129
|
-
"@funkit/fun-relay": "3.3.1",
|
|
130
|
-
"@funkit/connect-core": "12.0.0",
|
|
131
|
-
"@funkit/utils": "5.1.1"
|
|
131
|
+
"uuid": "^11.1.1"
|
|
132
132
|
},
|
|
133
133
|
"repository": {
|
|
134
134
|
"type": "git",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
2
|
-
/**
|
|
3
|
-
* The quote's expected loss in percent, when it exceeds `thresholdPercent`;
|
|
4
|
-
* otherwise undefined.
|
|
5
|
-
*
|
|
6
|
-
* - Sums the rows checkout shows, price impact (swap impact plus app fee) and
|
|
7
|
-
* max slippage, counting a missing field as 0 as they do. `totalImpact` also
|
|
8
|
-
* counts up to 1.25% that the backend moves into the displayed exchange
|
|
9
|
-
* rate, so it can read higher than the rows.
|
|
10
|
-
* - Network cost is its own row and stays out, so a small deposit isn't
|
|
11
|
-
* flagged for gas.
|
|
12
|
-
* - Rounds to the two decimals the warning shows, so it never reads "5.00%".
|
|
13
|
-
*/
|
|
14
|
-
export declare function getHighPriceImpactPercent(feeBreakdown: Partial<Pick<FeeBreakdownV2, 'swapImpact' | 'appFeePercent' | 'maxSlippage'>> | undefined, thresholdPercent: number): number | undefined;
|