@funkit/connect 5.3.5 → 5.4.0
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 +37 -0
- package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
- package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
- package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1335
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +3 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +745 -493
- package/dist/providers/FunkitHistoryContext.d.ts +9 -5
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +25 -3
- 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 +55 -55
- 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 +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -19,18 +19,22 @@ export declare function FunkitCheckoutHistoryProvider({ children, }: {
|
|
|
19
19
|
export declare function useCheckoutHistoryContext(): FunkitCheckoutHistoryContextInterface;
|
|
20
20
|
/**
|
|
21
21
|
* External hook to listen for checkout history every 5000ms
|
|
22
|
-
*
|
|
23
22
|
* @param userId ID of the user (wallet address)
|
|
24
23
|
* @returns PurifiedCheckoutHistoryItem[]
|
|
25
24
|
*/
|
|
26
|
-
export declare function useCheckoutsListenerByUserId(userId: string):
|
|
25
|
+
export declare function useCheckoutsListenerByUserId(userId: string | undefined): {
|
|
26
|
+
data?: PurifiedCheckoutHistoryItem[];
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
};
|
|
27
29
|
/**
|
|
28
30
|
* External hook to listen for checkout history every 5000ms
|
|
29
|
-
*
|
|
30
31
|
* @param checkoutId ID of the checkout
|
|
31
|
-
* @returns PurifiedCheckoutHistoryItem |
|
|
32
|
+
* @returns PurifiedCheckoutHistoryItem | null
|
|
32
33
|
*/
|
|
33
|
-
export declare function useCheckoutListenerByCheckoutId(checkoutId:
|
|
34
|
+
export declare function useCheckoutListenerByCheckoutId(checkoutId: Hex | undefined): {
|
|
35
|
+
data?: PurifiedCheckoutHistoryItem | null;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
};
|
|
34
38
|
/**
|
|
35
39
|
* Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
|
|
36
40
|
*/
|
|
@@ -176,6 +176,7 @@ export declare const useActiveTheme: () => {
|
|
|
176
176
|
};
|
|
177
177
|
radii: {
|
|
178
178
|
actionButton: string;
|
|
179
|
+
actionButtonInner: string;
|
|
179
180
|
connectButton: string;
|
|
180
181
|
menuButton: string;
|
|
181
182
|
modal: string;
|
|
@@ -364,6 +365,7 @@ export declare const useActiveTheme: () => {
|
|
|
364
365
|
};
|
|
365
366
|
radii: {
|
|
366
367
|
actionButton: string;
|
|
368
|
+
actionButtonInner: string;
|
|
367
369
|
connectButton: string;
|
|
368
370
|
menuButton: string;
|
|
369
371
|
modal: string;
|
|
@@ -550,6 +552,7 @@ export declare const useActiveTheme: () => {
|
|
|
550
552
|
};
|
|
551
553
|
radii: {
|
|
552
554
|
actionButton: string;
|
|
555
|
+
actionButtonInner: string;
|
|
553
556
|
connectButton: string;
|
|
554
557
|
menuButton: string;
|
|
555
558
|
modal: string;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -148,23 +148,37 @@ export declare const flagConfig: {
|
|
|
148
148
|
is_relay_bypass_enabled: {
|
|
149
149
|
type: "boolean";
|
|
150
150
|
default_value: false;
|
|
151
|
-
overrides: {
|
|
152
|
-
|
|
151
|
+
overrides: ({
|
|
152
|
+
value: true;
|
|
153
|
+
if_any: ({
|
|
154
|
+
key: "apiKey";
|
|
155
|
+
type: "isAnyOf";
|
|
156
|
+
values: string[];
|
|
157
|
+
} | {
|
|
153
158
|
key: "userId";
|
|
154
159
|
type: "isAnyOf";
|
|
155
160
|
values: string[];
|
|
161
|
+
})[];
|
|
162
|
+
if_all?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
value: true;
|
|
165
|
+
if_all: ({
|
|
166
|
+
key: "userId";
|
|
167
|
+
type: "pctRollout";
|
|
168
|
+
pct: number;
|
|
169
|
+
values?: undefined;
|
|
156
170
|
} | {
|
|
157
171
|
key: "apiKey";
|
|
158
172
|
type: "isAnyOf";
|
|
159
173
|
values: string[];
|
|
174
|
+
pct?: undefined;
|
|
160
175
|
})[];
|
|
161
176
|
if_any: {
|
|
162
177
|
key: "userId";
|
|
163
178
|
type: "isAnyOf";
|
|
164
179
|
values: string[];
|
|
165
180
|
}[];
|
|
166
|
-
|
|
167
|
-
}[];
|
|
181
|
+
})[];
|
|
168
182
|
};
|
|
169
183
|
relay_bypass_source_chains_and_assets: {
|
|
170
184
|
type: "string";
|
|
@@ -186,4 +200,28 @@ export declare const flagConfig: {
|
|
|
186
200
|
value: string;
|
|
187
201
|
}[];
|
|
188
202
|
};
|
|
203
|
+
enable_card: {
|
|
204
|
+
type: "boolean";
|
|
205
|
+
default_value: true;
|
|
206
|
+
overrides: {
|
|
207
|
+
if_any: {
|
|
208
|
+
key: "apiKey";
|
|
209
|
+
type: "isAnyOf";
|
|
210
|
+
values: string[];
|
|
211
|
+
}[];
|
|
212
|
+
value: false;
|
|
213
|
+
}[];
|
|
214
|
+
};
|
|
215
|
+
enable_brokerage: {
|
|
216
|
+
type: "boolean";
|
|
217
|
+
default_value: true;
|
|
218
|
+
overrides: {
|
|
219
|
+
if_any: {
|
|
220
|
+
key: "apiKey";
|
|
221
|
+
type: "isAnyOf";
|
|
222
|
+
values: string[];
|
|
223
|
+
}[];
|
|
224
|
+
value: false;
|
|
225
|
+
}[];
|
|
226
|
+
};
|
|
189
227
|
};
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import type { Address, Hex } from 'viem';
|
|
3
|
+
export type PurifiedCheckoutHistoryItem = {
|
|
4
|
+
depositAddr?: Address;
|
|
5
|
+
directExecution: boolean;
|
|
6
|
+
id: Hex;
|
|
7
|
+
fromAmountBaseUnit: string;
|
|
8
|
+
fromChainId: string;
|
|
9
|
+
fromTokenAddress: Address;
|
|
10
|
+
state: CheckoutState;
|
|
11
|
+
toAmountBaseUnit: string;
|
|
12
|
+
toChainId: string;
|
|
13
|
+
toTokenAddress: Address;
|
|
14
|
+
createdTimeMs: number;
|
|
15
|
+
txHash?: Hex;
|
|
16
|
+
} & ({
|
|
17
|
+
depositAddr: Address;
|
|
18
|
+
directExecution: false;
|
|
19
|
+
txHash?: never;
|
|
20
|
+
} | {
|
|
21
|
+
depositAddr?: never;
|
|
22
|
+
directExecution: true;
|
|
23
|
+
txHash: Hex;
|
|
24
|
+
});
|
|
25
|
+
export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem | DirectExecution) => PurifiedCheckoutHistoryItem;
|
|
@@ -7,70 +7,73 @@ import {
|
|
|
7
7
|
} from "./chunk-JROWU5BP.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AXWP3GD4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
safeheronWallet
|
|
16
|
-
} from "./chunk-R6RWZRFF.js";
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
17
14
|
import {
|
|
18
15
|
tahoWallet
|
|
19
16
|
} from "./chunk-6P2EMPZI.js";
|
|
20
17
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-ABFSXBE6.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-IDKVN5CF.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-SLOIIJGP.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-ISIBREBO.js";
|
|
32
29
|
import {
|
|
33
30
|
walletConnectWallet
|
|
34
31
|
} from "./chunk-NP5QGWNL.js";
|
|
32
|
+
import {
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
35
38
|
import {
|
|
36
39
|
rabbyWallet
|
|
37
40
|
} from "./chunk-BVX4XGNP.js";
|
|
38
41
|
import {
|
|
39
42
|
rainbowWallet
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2UCNRD7H.js";
|
|
41
44
|
import {
|
|
42
45
|
ramperWallet
|
|
43
46
|
} from "./chunk-PIUNLQJG.js";
|
|
44
47
|
import {
|
|
45
48
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-63YLN6R5.js";
|
|
50
|
+
import {
|
|
51
|
+
safeWallet
|
|
52
|
+
} from "./chunk-BQQQL6UD.js";
|
|
53
|
+
import {
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-R6RWZRFF.js";
|
|
47
56
|
import {
|
|
48
57
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
50
59
|
import {
|
|
51
60
|
ledgerWallet
|
|
52
61
|
} from "./chunk-BRBKM4PW.js";
|
|
53
|
-
import {
|
|
54
|
-
safeWallet
|
|
55
|
-
} from "./chunk-BQQQL6UD.js";
|
|
56
|
-
import {
|
|
57
|
-
talismanWallet
|
|
58
|
-
} from "./chunk-ABFSXBE6.js";
|
|
59
62
|
import {
|
|
60
63
|
metaMaskWallet
|
|
61
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
65
|
+
import {
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-V57WLZEE.js";
|
|
62
68
|
import {
|
|
63
69
|
oktoWallet
|
|
64
70
|
} from "./chunk-ADIXAKUL.js";
|
|
65
71
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
72
|
+
okxWallet
|
|
73
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
68
74
|
import {
|
|
69
75
|
omniWallet
|
|
70
76
|
} from "./chunk-7CUY5G6R.js";
|
|
71
|
-
import {
|
|
72
|
-
okxWallet
|
|
73
|
-
} from "./chunk-3U3BMEH5.js";
|
|
74
77
|
import {
|
|
75
78
|
oneInchWallet
|
|
76
79
|
} from "./chunk-OESTDX6I.js";
|
|
@@ -78,41 +81,41 @@ import {
|
|
|
78
81
|
oneKeyWallet
|
|
79
82
|
} from "./chunk-4AD7VI2P.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-
|
|
91
|
+
} from "./chunk-3S2U24BJ.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-GSOYKKIS.js";
|
|
92
95
|
import {
|
|
93
96
|
imTokenWallet
|
|
94
97
|
} from "./chunk-COZ7MIQS.js";
|
|
98
|
+
import {
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-VCVVV2K7.js";
|
|
95
101
|
import {
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-MJXPRJZT.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
frameWallet
|
|
103
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-6ONTSPEY.js";
|
|
104
107
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-KR6JBW5E.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-DTRYS3MO.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-H4IRCEZN.js";
|
|
113
116
|
import {
|
|
114
117
|
coreWallet
|
|
115
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-HBA36GW3.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-LN7OD5EC.js";
|
|
@@ -120,34 +123,31 @@ import {
|
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-CTU6JCOK.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
bybitWallet
|
|
127
|
-
} from "./chunk-W5O4YSZN.js";
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W6N74MS3.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-A5APNTGL.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-P74YPRF6.js";
|
|
137
|
-
import {
|
|
138
|
-
bitgetWallet
|
|
139
|
-
} from "./chunk-7GSNBOD3.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
+
import "./chunk-23WIEY36.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-PB254NQ4.js";
|
|
149
150
|
import "./chunk-WRA2DVJ7.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.4.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
"react-virtuoso": "4.10.1",
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/api-base": "1.8.
|
|
95
|
-
"@funkit/chains": "0.
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/utils": "1.0.
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/wagmi-tools": "3.0.
|
|
94
|
+
"@funkit/api-base": "1.8.3",
|
|
95
|
+
"@funkit/chains": "0.3.0",
|
|
96
|
+
"@funkit/core": "2.3.20",
|
|
97
|
+
"@funkit/utils": "1.0.14",
|
|
98
|
+
"@funkit/fun-relay": "0.1.3",
|
|
99
|
+
"@funkit/wagmi-tools": "3.0.42"
|
|
100
100
|
},
|
|
101
101
|
"repository": {
|
|
102
102
|
"type": "git",
|