@funkit/connect 3.4.4 → 3.4.5
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/FunAssetAvatar/FunAssetAvatar.css.d.ts +0 -1
- package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
- package/dist/components/FunDivider/FunDivider.d.ts +1 -2
- package/dist/components/FunInput/FunInput.d.ts +1 -2
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -5
- package/dist/components/FunNotification/FunNotification.d.ts +4 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -15
- package/dist/components/FunSelect/FunSelect.d.ts +3 -4
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +4 -3
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +7 -2
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +2 -2
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/domains/asset.d.ts +2 -0
- package/dist/domains/checkoutFees.d.ts +2 -1
- package/dist/{hooks/useCheckoutStateBooleans.d.ts → domains/checkoutState.d.ts} +1 -1
- package/dist/domains/quote.d.ts +6 -4
- package/dist/hooks/useAutoClearState.d.ts +4 -0
- package/dist/hooks/useCountdown.d.ts +8 -0
- package/dist/hooks/useMesh.d.ts +1 -1
- package/dist/index.css +66 -52
- package/dist/index.js +3218 -3409
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +17 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +28 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +22 -0
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +8 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +5 -3
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -2
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +5 -2
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +7 -0
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +0 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -7
- package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken.d.ts +2 -4
- package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -7
- package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +7 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +9 -0
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +7 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +1 -0
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +5 -2
- package/dist/providers/FunkitCheckoutContext.d.ts +1 -1
- package/dist/providers/GeneralWalletProvider.d.ts +10 -10
- package/dist/utils/aborts.d.ts +1 -0
- package/dist/utils/assets.d.ts +9 -9
- package/dist/utils/combineChainSymbolOrAddress.d.ts +1 -1
- package/dist/utils/deepMerge.d.ts +5 -0
- package/dist/utils/flags/config.d.ts +4 -1
- package/dist/utils/payment.d.ts +3 -3
- package/dist/wallets/walletConnectors/index.js +50 -50
- package/package.json +3 -3
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
- package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +0 -24
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-RVIZMVFR.js";
|
|
2
5
|
import {
|
|
3
6
|
zerionWallet
|
|
4
7
|
} from "./chunk-DBP432DI.js";
|
|
5
|
-
import {
|
|
6
|
-
zealWallet
|
|
7
|
-
} from "./chunk-BUUV6BS4.js";
|
|
8
|
-
import {
|
|
9
|
-
uniswapWallet
|
|
10
|
-
} from "./chunk-QFRZGNNV.js";
|
|
11
|
-
import {
|
|
12
|
-
subWallet
|
|
13
|
-
} from "./chunk-N3ELQYCY.js";
|
|
14
8
|
import {
|
|
15
9
|
tahoWallet
|
|
16
10
|
} from "./chunk-6AYBA6IH.js";
|
|
17
11
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-N3ELQYCY.js";
|
|
20
14
|
import {
|
|
21
15
|
tokenPocketWallet
|
|
22
16
|
} from "./chunk-ISJYPD3T.js";
|
|
17
|
+
import {
|
|
18
|
+
trustWallet
|
|
19
|
+
} from "./chunk-X45WXZDO.js";
|
|
23
20
|
import {
|
|
24
21
|
talismanWallet
|
|
25
22
|
} from "./chunk-OTXHQMSG.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
tokenaryWallet
|
|
25
|
+
} from "./chunk-FAYEL4JP.js";
|
|
26
|
+
import {
|
|
27
|
+
uniswapWallet
|
|
28
|
+
} from "./chunk-QFRZGNNV.js";
|
|
29
29
|
import {
|
|
30
30
|
walletConnectWallet
|
|
31
31
|
} from "./chunk-OFU3PEVT.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
oneInchWallet
|
|
37
|
-
} from "./chunk-I7MKK24W.js";
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-BUUV6BS4.js";
|
|
38
35
|
import {
|
|
39
36
|
rainbowWallet
|
|
40
37
|
} from "./chunk-OHJBALD3.js";
|
|
@@ -42,26 +39,26 @@ import {
|
|
|
42
39
|
ramperWallet
|
|
43
40
|
} from "./chunk-TKXQYHWJ.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
safeheronWallet
|
|
49
|
-
} from "./chunk-FCIRHRFH.js";
|
|
42
|
+
roninWallet
|
|
43
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
44
|
import {
|
|
51
45
|
safeWallet
|
|
52
46
|
} from "./chunk-Z2QCE6O6.js";
|
|
53
47
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
48
|
+
safeheronWallet
|
|
49
|
+
} from "./chunk-FCIRHRFH.js";
|
|
50
|
+
import {
|
|
51
|
+
coin98Wallet
|
|
52
|
+
} from "./chunk-ZXGMW3OS.js";
|
|
56
53
|
import {
|
|
57
54
|
safepalWallet
|
|
58
55
|
} from "./chunk-AKAT37SI.js";
|
|
56
|
+
import {
|
|
57
|
+
imTokenWallet
|
|
58
|
+
} from "./chunk-BMJOLT2N.js";
|
|
59
59
|
import {
|
|
60
60
|
mewWallet
|
|
61
61
|
} from "./chunk-CVYXTHZ6.js";
|
|
62
|
-
import {
|
|
63
|
-
frontierWallet
|
|
64
|
-
} from "./chunk-LCOUKF2U.js";
|
|
65
62
|
import {
|
|
66
63
|
oktoWallet
|
|
67
64
|
} from "./chunk-MBQTOALG.js";
|
|
@@ -72,8 +69,8 @@ import {
|
|
|
72
69
|
omniWallet
|
|
73
70
|
} from "./chunk-II6YBG2B.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
oneInchWallet
|
|
73
|
+
} from "./chunk-I7MKK24W.js";
|
|
77
74
|
import {
|
|
78
75
|
oneKeyWallet
|
|
79
76
|
} from "./chunk-ZP2SV6KN.js";
|
|
@@ -81,50 +78,53 @@ import {
|
|
|
81
78
|
phantomWallet
|
|
82
79
|
} from "./chunk-KEVUI6AA.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-H5LLXNOI.js";
|
|
83
|
+
import {
|
|
84
|
+
frameWallet
|
|
85
|
+
} from "./chunk-KPVNJO3R.js";
|
|
86
|
+
import {
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-LCOUKF2U.js";
|
|
86
89
|
import {
|
|
87
90
|
gateWallet
|
|
88
91
|
} from "./chunk-YIJ5ULO3.js";
|
|
89
92
|
import {
|
|
90
93
|
injectedWallet
|
|
91
94
|
} from "./chunk-E5NYR4SS.js";
|
|
92
|
-
import {
|
|
93
|
-
bitverseWallet
|
|
94
|
-
} from "./chunk-BQEOIDHP.js";
|
|
95
95
|
import {
|
|
96
96
|
kresusWallet
|
|
97
97
|
} from "./chunk-QQJKQCII.js";
|
|
98
|
+
import {
|
|
99
|
+
ledgerWallet
|
|
100
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
98
101
|
import {
|
|
99
102
|
metaMaskWallet
|
|
100
103
|
} from "./chunk-ODRDT73B.js";
|
|
101
104
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-UHHA5V52.js";
|
|
104
107
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-3AZNOY75.js";
|
|
107
110
|
import {
|
|
108
111
|
coinbaseWallet
|
|
109
112
|
} from "./chunk-PNEDRY6O.js";
|
|
110
113
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
coreWallet
|
|
115
|
+
} from "./chunk-MOOW2AOC.js";
|
|
113
116
|
import {
|
|
114
117
|
dawnWallet
|
|
115
118
|
} from "./chunk-KCTWDMQP.js";
|
|
116
119
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
120
|
+
desigWallet
|
|
121
|
+
} from "./chunk-44CHUPEQ.js";
|
|
119
122
|
import {
|
|
120
123
|
enkryptWallet
|
|
121
124
|
} from "./chunk-JJ4DXD7R.js";
|
|
122
125
|
import {
|
|
123
126
|
foxWallet
|
|
124
127
|
} from "./chunk-WAOREEBE.js";
|
|
125
|
-
import {
|
|
126
|
-
frameWallet
|
|
127
|
-
} from "./chunk-KPVNJO3R.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-ZHFISYEQ.js";
|
|
@@ -134,6 +134,9 @@ import {
|
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-IEVZW3XR.js";
|
|
137
|
+
import {
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-BQEOIDHP.js";
|
|
137
140
|
import {
|
|
138
141
|
bitskiWallet
|
|
139
142
|
} from "./chunk-OCCT5PIN.js";
|
|
@@ -141,13 +144,10 @@ import {
|
|
|
141
144
|
bloomWallet
|
|
142
145
|
} from "./chunk-J64P6XK3.js";
|
|
143
146
|
import "./chunk-RETKWSKD.js";
|
|
147
|
+
import "./chunk-23WIEY36.js";
|
|
144
148
|
import {
|
|
145
149
|
braveWallet
|
|
146
150
|
} from "./chunk-NUEOWEZS.js";
|
|
147
|
-
import {
|
|
148
|
-
bybitWallet
|
|
149
|
-
} from "./chunk-3AZNOY75.js";
|
|
150
|
-
import "./chunk-23WIEY36.js";
|
|
151
151
|
import "./chunk-WRA2DVJ7.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
94
|
"@funkit/api-base": "1.3.1",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
95
|
+
"@funkit/wagmi-tools": "3.0.14",
|
|
96
|
+
"@funkit/core": "2.2.3"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MeshExchanges } from '../../utils/mesh';
|
|
3
|
-
export interface FunPaymentMeshTypeProps {
|
|
4
|
-
isParentLoading: boolean;
|
|
5
|
-
onConfirmExchange: (exchange: MeshExchanges) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This component handles payments <> mesh integration
|
|
9
|
-
*/
|
|
10
|
-
export declare function FunPaymentMeshType({ isParentLoading, onConfirmExchange, }: FunPaymentMeshTypeProps): React.JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UnionOmit } from 'viem';
|
|
3
|
-
import { PaymentMethod, PaymentMethodAccountInfo, PaymentMethodCardInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { CheckoutModalCommonState, FunCheckoutStep, StateTransitionProps, StepTransition } from './stepTransition';
|
|
5
|
-
export interface SelectPaymentMethodState extends CheckoutModalCommonState {
|
|
6
|
-
step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
|
|
7
|
-
}
|
|
8
|
-
export type SelectPaymentMethodNext = {
|
|
9
|
-
step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
|
|
10
|
-
paymentMethod: PaymentMethod.BROKERAGE | PaymentMethod.TOKEN_TRANSFER;
|
|
11
|
-
} | {
|
|
12
|
-
step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
|
|
13
|
-
paymentMethod: PaymentMethod.CARD;
|
|
14
|
-
paymentMethodInfo: PaymentMethodCardInfo;
|
|
15
|
-
} | {
|
|
16
|
-
step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
|
|
17
|
-
paymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
18
|
-
paymentMethodInfo: PaymentMethodAccountInfo;
|
|
19
|
-
};
|
|
20
|
-
export declare function selectPaymentMethodNext(state: SelectPaymentMethodState, payload: SelectPaymentMethodNext): StepTransition[FunCheckoutStep.SELECT_PAYMENT_METHOD];
|
|
21
|
-
type Props = StateTransitionProps<SelectPaymentMethodState, SelectPaymentMethodNext>;
|
|
22
|
-
export type SelectMethodPayloadData = UnionOmit<SelectPaymentMethodNext, 'step'>;
|
|
23
|
-
export declare function SelectPaymentMethod({ onNext, onClose }: Props): React.JSX.Element;
|
|
24
|
-
export {};
|