@funkit/connect 5.3.6 → 5.4.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 +44 -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/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +4 -0
- 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/useClientId.d.ts +3 -0
- package/dist/hooks/queries/useRecentCheckouts.d.ts +2 -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/hooks/usePaymentSources.d.ts +2 -2
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1023 -548
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +10 -0
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- 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/customer.d.ts +6 -0
- package/dist/utils/directExecution.d.ts +4 -0
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -1
- 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 +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DirectExecution } from '@funkit/api-base';
|
|
3
|
+
import type { Address } from 'viem';
|
|
4
|
+
interface DirectExecutionNotificationProps {
|
|
5
|
+
directExecution: DirectExecution;
|
|
6
|
+
onClose: (id: string) => void;
|
|
7
|
+
onHelp: (depositAddress: Address) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DirectExecutionNotification: ({ directExecution, onClose, onHelp, }: DirectExecutionNotificationProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -29,6 +29,8 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
29
29
|
showTokenAmount?: boolean;
|
|
30
30
|
/** Whether to show the total payment amount in USD below the token amount equivalent. Defaults to false */
|
|
31
31
|
showPaymentAmountUsd?: boolean;
|
|
32
|
+
/** Whether to show the total receive amount in USD below the token amount equivalent. Defaults to false */
|
|
33
|
+
showReceiveAmountUsd?: boolean;
|
|
32
34
|
/** Custom destination icon and text used in checkout summary */
|
|
33
35
|
destinationConfig?: FunkitUiDestinationConfig;
|
|
34
36
|
};
|
|
@@ -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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
|
|
2
|
+
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
|
+
export declare function isKatanaEarnFlow({ apiKey, checkoutConfig, }: {
|
|
4
|
+
apiKey: string;
|
|
5
|
+
checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined;
|
|
6
|
+
}): boolean;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { type CheckoutHistoryItem, CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
1
|
+
import { type ApiFunkitCheckoutActionParams, type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import type { Address, Hex } from 'viem';
|
|
3
3
|
export type PurifiedCheckoutHistoryItem = {
|
|
4
4
|
depositAddr?: Address;
|
|
@@ -11,6 +11,9 @@ export type PurifiedCheckoutHistoryItem = {
|
|
|
11
11
|
toAmountBaseUnit: string;
|
|
12
12
|
toChainId: string;
|
|
13
13
|
toTokenAddress: Address;
|
|
14
|
+
createdTimeMs: number;
|
|
15
|
+
updatedTimeMs: number;
|
|
16
|
+
additionalActions: ApiFunkitCheckoutActionParams[];
|
|
14
17
|
txHash?: Hex;
|
|
15
18
|
} & ({
|
|
16
19
|
depositAddr: Address;
|
|
@@ -1,97 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-JROWU5BP.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ETTNDQQG.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
trustWallet
|
|
10
|
+
} from "./chunk-IPOC2VJX.js";
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
tahoWallet
|
|
16
|
-
} from "./chunk-6P2EMPZI.js";
|
|
13
|
+
} from "./chunk-4UM4GTKZ.js";
|
|
17
14
|
import {
|
|
18
15
|
talismanWallet
|
|
19
16
|
} from "./chunk-ABFSXBE6.js";
|
|
20
17
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
18
|
+
phantomWallet
|
|
19
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
23
20
|
import {
|
|
24
21
|
uniswapWallet
|
|
25
22
|
} from "./chunk-LH7BMNFZ.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
tokenPocketWallet
|
|
31
|
-
} from "./chunk-IDKVN5CF.js";
|
|
24
|
+
walletConnectWallet
|
|
25
|
+
} from "./chunk-NP5QGWNL.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
tokenaryWallet
|
|
28
|
+
} from "./chunk-SLOIIJGP.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-NO7XMBB5.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
tokenPocketWallet
|
|
34
|
+
} from "./chunk-FRGSRLTS.js";
|
|
41
35
|
import {
|
|
42
36
|
ramperWallet
|
|
43
37
|
} from "./chunk-PIUNLQJG.js";
|
|
44
38
|
import {
|
|
45
39
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-25VW5TZP.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-MOOBCMMB.js";
|
|
44
|
+
import {
|
|
45
|
+
omniWallet
|
|
46
|
+
} from "./chunk-7CUY5G6R.js";
|
|
47
47
|
import {
|
|
48
48
|
safeheronWallet
|
|
49
49
|
} from "./chunk-R6RWZRFF.js";
|
|
50
50
|
import {
|
|
51
51
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6LPM6LUQ.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-6P2EMPZI.js";
|
|
56
56
|
import {
|
|
57
57
|
safeWallet
|
|
58
58
|
} from "./chunk-BQQQL6UD.js";
|
|
59
|
-
import {
|
|
60
|
-
ledgerWallet
|
|
61
|
-
} from "./chunk-BRBKM4PW.js";
|
|
62
|
-
import {
|
|
63
|
-
metaMaskWallet
|
|
64
|
-
} from "./chunk-G73C6P5P.js";
|
|
65
59
|
import {
|
|
66
60
|
oktoWallet
|
|
67
61
|
} from "./chunk-ADIXAKUL.js";
|
|
68
|
-
import {
|
|
69
|
-
okxWallet
|
|
70
|
-
} from "./chunk-4WEHDI4Y.js";
|
|
71
62
|
import {
|
|
72
63
|
mewWallet
|
|
73
64
|
} from "./chunk-V57WLZEE.js";
|
|
74
65
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
66
|
+
metaMaskWallet
|
|
67
|
+
} from "./chunk-N2NIIUW6.js";
|
|
77
68
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-3U3BMEH5.js";
|
|
80
71
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
72
|
+
oneKeyWallet
|
|
73
|
+
} from "./chunk-4AD7VI2P.js";
|
|
83
74
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
75
|
+
gateWallet
|
|
76
|
+
} from "./chunk-3NC26XLM.js";
|
|
86
77
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
78
|
+
oneInchWallet
|
|
79
|
+
} from "./chunk-OESTDX6I.js";
|
|
80
|
+
import {
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-BVX4XGNP.js";
|
|
89
83
|
import {
|
|
90
84
|
frameWallet
|
|
91
85
|
} from "./chunk-ZMYVTWDF.js";
|
|
92
86
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
87
|
+
desigWallet
|
|
88
|
+
} from "./chunk-CTU6JCOK.js";
|
|
89
|
+
import {
|
|
90
|
+
enkryptWallet
|
|
91
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -101,53 +98,56 @@ import {
|
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
101
|
+
import {
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
|
+
import {
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-PB254NQ4.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LEXSM5KI.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KFFJPS5R.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-JXP2QPW7.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-LN7OD5EC.js";
|
|
119
122
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
desigWallet
|
|
124
|
-
} from "./chunk-CTU6JCOK.js";
|
|
123
|
+
foxWallet
|
|
124
|
+
} from "./chunk-XYBEMO3C.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
frontierWallet
|
|
127
|
+
} from "./chunk-HKV7EMYZ.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-A5APNTGL.js";
|
|
133
|
+
} from "./chunk-545L7Y4M.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} 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
|
-
|
|
145
|
-
} from "./chunk-
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-S27IADFU.js";
|
|
146
146
|
import {
|
|
147
147
|
bybitWallet
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-23WIEY36.js";
|
|
148
|
+
} from "./chunk-W5O4YSZN.js";
|
|
150
149
|
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.1",
|
|
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/
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/utils": "1.0.
|
|
99
|
-
"@funkit/wagmi-tools": "3.0.
|
|
94
|
+
"@funkit/chains": "0.3.0",
|
|
95
|
+
"@funkit/api-base": "1.8.4",
|
|
96
|
+
"@funkit/core": "2.3.21",
|
|
97
|
+
"@funkit/fun-relay": "0.1.4",
|
|
98
|
+
"@funkit/utils": "1.0.14",
|
|
99
|
+
"@funkit/wagmi-tools": "3.0.43"
|
|
100
100
|
},
|
|
101
101
|
"repository": {
|
|
102
102
|
"type": "git",
|