@funkit/connect 5.2.0 → 5.3.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 +55 -0
- package/dist/{chunk-QBCQK5KX.js → chunk-C63T33UV.js} +6 -1
- package/dist/{chunk-2C7D5NQG.js → chunk-CRPOYQ6X.js} +24 -4
- package/dist/{chunk-PKXUTXYG.js → chunk-LEJS74SX.js} +6 -1
- package/dist/components/Box/Box.d.ts +29 -29
- package/dist/components/Dialog/Dialog.css.d.ts +4 -2
- package/dist/components/Dialog/Dialog.d.ts +11 -3
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +1 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +4 -3
- package/dist/components/FunAsset/FunAssetLoading.d.ts +6 -3
- package/dist/components/FunBadge/BridgeCustomerStatusBadge.d.ts +9 -0
- package/dist/components/FunBadge/FunBadge.d.ts +4 -2
- package/dist/components/FunButton/FunIconButton.d.ts +1 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +4 -0
- package/dist/components/FunCheckbox/FunCheckbox.d.ts +9 -0
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +11 -2
- package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +7 -0
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +13 -0
- package/dist/components/FunFeatureList/FunFeatureListItem.d.ts +10 -0
- package/dist/components/FunGuarantees/FunGuarantees.d.ts +7 -3
- package/dist/components/FunInput/FunInput.d.ts +3 -1
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -1
- package/dist/components/FunInputButton/FunInputButton.d.ts +14 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -1
- package/dist/components/FunSelect/FunSelect.d.ts +3 -0
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +1 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +15 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -4
- package/dist/components/Icons/CheckIcon.d.ts +1 -1
- package/dist/components/Icons/HomeIcon.d.ts +4 -0
- package/dist/components/Icons/Icons.css.d.ts +0 -1
- package/dist/components/Icons/New/BankIcon.d.ts +7 -0
- package/dist/components/Icons/New/BanknoteIcon.d.ts +4 -0
- package/dist/components/Icons/New/CoinsHandIcon.d.ts +4 -0
- package/dist/components/Icons/New/FiatAccountIcon.d.ts +4 -0
- package/dist/components/Icons/New/HelpIcon.d.ts +2 -0
- package/dist/components/Icons/New/LightningBoltOutlineIcon.d.ts +4 -0
- package/dist/components/Icons/New/ShieldCheckIcon.d.ts +4 -0
- package/dist/components/Icons/New/TimeIcon.d.ts +4 -0
- package/dist/components/Icons/New/UserIcon.d.ts +4 -0
- package/dist/components/Icons/SpinnerIconWithBackground.d.ts +6 -4
- package/dist/components/Icons/SuccessIcon.d.ts +3 -1
- package/dist/components/Icons/UserSquareIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationFailedIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationPendingIcon.d.ts +4 -0
- package/dist/components/Icons/VerificationSuccessIcon.d.ts +4 -0
- package/dist/components/Icons/VerifyIdentityIcon.d.ts +4 -0
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +11 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -2
- package/dist/components/VirtualFiatAccount/CreateAccountScreen/CreateAccountScreen.d.ts +15 -0
- package/dist/components/VirtualFiatAccount/IntroScreen/IntroScreen.d.ts +6 -0
- package/dist/components/VirtualFiatAccount/VerifyAccountScreen/VerifyAccountScreen.d.ts +15 -0
- package/dist/config/getDefaultConfig.d.ts +291 -150
- package/dist/consts/customers.d.ts +1 -0
- package/dist/consts/funkit.d.ts +0 -1
- package/dist/consts/quote.d.ts +3 -10
- package/dist/css/sprinkles.css.d.ts +45 -29
- package/dist/domains/bridge.d.ts +25 -0
- package/dist/domains/fees.d.ts +14 -1
- package/dist/domains/paymentMethods.d.ts +25 -4
- package/dist/domains/quote.d.ts +17 -14
- package/dist/domains/relay.d.ts +52 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +30 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +11 -0
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -1
- package/dist/hooks/useCopyToClipboard.d.ts +7 -3
- package/dist/hooks/useFrogAccount.d.ts +335 -0
- package/dist/hooks/useIsUsBankrUser.d.ts +1 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useReceiveAmountLabel.d.ts +4 -0
- package/dist/hooks/useRelayBypass.d.ts +11 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +7 -0
- package/dist/hooks/useTokenTransfer.d.ts +3 -2
- package/dist/index.css +2723 -2456
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17595 -14237
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +5 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +8 -3
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +13 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +22 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +7 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +9 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +5 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +9 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +26 -1
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +10 -3
- package/dist/providers/FunkitConfigContext.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.d.ts +4 -1
- package/dist/providers/FunkitThemeProvider.d.ts +24 -0
- package/dist/providers/GeneralWalletProvider.d.ts +10 -74
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +20 -10
- package/dist/utils/flags/config.d.ts +49 -2
- package/dist/utils/flags/types.d.ts +2 -0
- package/dist/utils/mesh.d.ts +1 -0
- package/dist/utils/tokenIconUrl.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 +65 -65
- 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 +8 -7
- /package/dist/components/{TransferTokenDetails/TransferTokenDetails.css.d.ts → FunFeatureList/FunFeatureList.css.d.ts} +0 -0
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type TransferIntegration } from '@funkit/api-base';
|
|
|
2
2
|
import type { MeshExchangeType } from '../consts/mesh';
|
|
3
3
|
import type { AssetHoldingsMap } from '../utils/assets';
|
|
4
4
|
export { FUNKIT_MESH_CLIENT_ID } from '../consts/mesh';
|
|
5
|
+
export declare const MIN_MESH_TRANSFER_AMOUNT_USD = 10;
|
|
5
6
|
export declare function fetchMeshLinkToken(funkitUserId: string, brokerType: MeshExchangeType, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>;
|
|
6
7
|
export declare function fetchMeshTransferIntegrations(apiKey: string): Promise<TransferIntegration[]>;
|
|
7
8
|
export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ brokerType, chainId, integrations, }: {
|
|
@@ -1,118 +1,121 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
walletConnectWallet
|
|
4
|
+
} from "./chunk-NP5QGWNL.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AXWP3GD4.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
xdefiWallet
|
|
10
|
+
} from "./chunk-NO7XMBB5.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-ABFSXBE6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
tokenPocketWallet
|
|
19
|
+
} from "./chunk-IDKVN5CF.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenaryWallet
|
|
22
22
|
} from "./chunk-SLOIIJGP.js";
|
|
23
|
-
import {
|
|
24
|
-
tokenPocketWallet
|
|
25
|
-
} from "./chunk-FRGSRLTS.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ISIBREBO.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
uniswapWallet
|
|
28
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
+
import {
|
|
30
|
+
oneKeyWallet
|
|
31
|
+
} from "./chunk-4AD7VI2P.js";
|
|
32
32
|
import {
|
|
33
33
|
zealWallet
|
|
34
34
|
} from "./chunk-JROWU5BP.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
rainbowWallet
|
|
40
|
+
} from "./chunk-2UCNRD7H.js";
|
|
41
41
|
import {
|
|
42
42
|
ramperWallet
|
|
43
43
|
} from "./chunk-PIUNLQJG.js";
|
|
44
44
|
import {
|
|
45
45
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
oneKeyWallet
|
|
49
|
-
} from "./chunk-4AD7VI2P.js";
|
|
46
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
47
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
safeWallet
|
|
49
|
+
} from "./chunk-BQQQL6UD.js";
|
|
53
50
|
import {
|
|
54
51
|
safeheronWallet
|
|
55
52
|
} from "./chunk-R6RWZRFF.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
safepalWallet
|
|
55
|
+
} from "./chunk-MSFKSQBY.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
tahoWallet
|
|
58
|
+
} from "./chunk-6P2EMPZI.js";
|
|
62
59
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-V57WLZEE.js";
|
|
65
62
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
68
65
|
import {
|
|
69
66
|
oktoWallet
|
|
70
67
|
} from "./chunk-ADIXAKUL.js";
|
|
68
|
+
import {
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
71
71
|
import {
|
|
72
72
|
omniWallet
|
|
73
73
|
} from "./chunk-7CUY5G6R.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
oneInchWallet
|
|
76
|
+
} from "./chunk-OESTDX6I.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
gateWallet
|
|
79
|
+
} from "./chunk-GSOYKKIS.js";
|
|
80
80
|
import {
|
|
81
81
|
rabbyWallet
|
|
82
82
|
} from "./chunk-BVX4XGNP.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
frameWallet
|
|
85
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-3S2U24BJ.js";
|
|
89
89
|
import {
|
|
90
90
|
imTokenWallet
|
|
91
91
|
} from "./chunk-COZ7MIQS.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
dawnWallet
|
|
94
|
+
} from "./chunk-LN7OD5EC.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-VCVVV2K7.js";
|
|
98
98
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-MJXPRJZT.js";
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-BRBKM4PW.js";
|
|
104
|
+
import {
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-KR6JBW5E.js";
|
|
107
|
+
import {
|
|
108
|
+
bloomWallet
|
|
109
|
+
} from "./chunk-S27IADFU.js";
|
|
104
110
|
import {
|
|
105
111
|
coin98Wallet
|
|
106
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-DTRYS3MO.js";
|
|
107
113
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-H4IRCEZN.js";
|
|
110
116
|
import {
|
|
111
117
|
coreWallet
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
dawnWallet
|
|
115
|
-
} from "./chunk-LN7OD5EC.js";
|
|
118
|
+
} from "./chunk-HBA36GW3.js";
|
|
116
119
|
import {
|
|
117
120
|
desigWallet
|
|
118
121
|
} from "./chunk-CTU6JCOK.js";
|
|
@@ -121,33 +124,30 @@ import {
|
|
|
121
124
|
} from "./chunk-SJTXS4ZW.js";
|
|
122
125
|
import {
|
|
123
126
|
foxWallet
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
frameWallet
|
|
127
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
128
|
-
import {
|
|
129
|
-
bitgetWallet
|
|
130
|
-
} from "./chunk-7GSNBOD3.js";
|
|
127
|
+
} from "./chunk-LMZMXEXL.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W6N74MS3.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-A5APNTGL.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-P74YPRF6.js";
|
|
140
140
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
+
import {
|
|
144
|
+
bybitWallet
|
|
145
|
+
} from "./chunk-6ONTSPEY.js";
|
|
146
|
+
import "./chunk-23WIEY36.js";
|
|
143
147
|
import {
|
|
144
148
|
braveWallet
|
|
145
149
|
} from "./chunk-PB254NQ4.js";
|
|
146
150
|
import "./chunk-WRA2DVJ7.js";
|
|
147
|
-
import {
|
|
148
|
-
bitverseWallet
|
|
149
|
-
} from "./chunk-3HZRRP4Y.js";
|
|
150
|
-
import "./chunk-23WIEY36.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.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@vitejs/plugin-react": "^4.3.1",
|
|
67
67
|
"autoprefixer": "^10.4.16",
|
|
68
68
|
"jsdom": "^25.0.1",
|
|
69
|
-
"postcss": "^8.4.
|
|
69
|
+
"postcss": "^8.4.33",
|
|
70
70
|
"react": "^18.3.0",
|
|
71
71
|
"storybook": "^8.6.7",
|
|
72
72
|
"tsx": "^4.19.2",
|
|
@@ -78,11 +78,12 @@
|
|
|
78
78
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
79
79
|
"@number-flow/react": "^0.5.5",
|
|
80
80
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
81
|
+
"@reservoir0x/relay-sdk": "^2.0.3",
|
|
81
82
|
"@types/uuid": "^9.0.8",
|
|
82
83
|
"@vanilla-extract/css": "1.15.3",
|
|
83
84
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
84
85
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
85
|
-
"@wagmi/core": "
|
|
86
|
+
"@wagmi/core": "2.17.2",
|
|
86
87
|
"bech32": "^2.0.0",
|
|
87
88
|
"clsx": "2.1.1",
|
|
88
89
|
"motion": "^12.0.11",
|
|
@@ -91,11 +92,11 @@
|
|
|
91
92
|
"react-virtuoso": "4.10.1",
|
|
92
93
|
"ua-parser-js": "^1.0.37",
|
|
93
94
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/api-base": "1.
|
|
95
|
-
"@funkit/core": "2.3.15",
|
|
95
|
+
"@funkit/api-base": "1.8.0",
|
|
96
96
|
"@funkit/chains": "0.2.1",
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/
|
|
97
|
+
"@funkit/core": "2.3.17",
|
|
98
|
+
"@funkit/utils": "1.0.12",
|
|
99
|
+
"@funkit/wagmi-tools": "3.0.39"
|
|
99
100
|
},
|
|
100
101
|
"repository": {
|
|
101
102
|
"type": "git",
|