@funkit/connect 9.0.1 → 9.0.2
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 +13 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +2 -1
- package/dist/components/FunNotificationBanner/FunNotificationBanner.d.ts +2 -2
- package/dist/components/Icons/CryptoTransferQRIcon.d.ts +4 -0
- package/dist/components/Icons/ExchangeIcon.d.ts +4 -0
- package/dist/consts/customers.d.ts +0 -1
- package/dist/consts/quote.d.ts +6 -5
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
- package/dist/hooks/useSwappedPreload.d.ts +1 -1
- package/dist/index.js +2464 -2341
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +8 -0
- package/dist/providers/FunkitQuoteContext.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +3 -3
- package/dist/wallets/walletConnectors/index.js +34 -34
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { CheckoutQuoteError } from '../../../providers/FunkitQuoteContext';
|
|
2
3
|
interface TriggerNewQuoteOptions {
|
|
3
4
|
maxRetries: number;
|
|
@@ -8,7 +9,7 @@ interface UseCheckoutQuoteOptions {
|
|
|
8
9
|
onSuccess?: () => void;
|
|
9
10
|
}
|
|
10
11
|
interface UseCheckoutQuoteResult {
|
|
11
|
-
error:
|
|
12
|
+
error: ReactNode;
|
|
12
13
|
isQuoting: boolean;
|
|
13
14
|
step: string | null;
|
|
14
15
|
triggerNewQuote: (options: TriggerNewQuoteOptions) => void;
|
|
@@ -6,5 +6,13 @@ interface FormOfPaymentsListProps {
|
|
|
6
6
|
selectedFop?: SwappedFormOfPayment | null;
|
|
7
7
|
onFopSelect: (fop: SwappedFormOfPayment) => void;
|
|
8
8
|
}
|
|
9
|
+
interface FormOfPaymentSection {
|
|
10
|
+
items: SwappedFormOfPayment[];
|
|
11
|
+
labelKey: 'sourceChange.mostPopular' | 'sourceChange.savedPaymentMethods' | 'sourceChange.moreOptions' | 'sourceChange.otherOptions';
|
|
12
|
+
}
|
|
13
|
+
export declare function getFormOfPaymentSections(fopsData: GetFopsResponse): {
|
|
14
|
+
primary: FormOfPaymentSection;
|
|
15
|
+
secondary: FormOfPaymentSection;
|
|
16
|
+
};
|
|
9
17
|
export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
10
18
|
export {};
|
|
@@ -32,7 +32,7 @@ interface CheckoutQuoteState {
|
|
|
32
32
|
/** The quotation step message **/
|
|
33
33
|
quoteStepMessage: string;
|
|
34
34
|
/** Error messages associated with checkout quote **/
|
|
35
|
-
quoteErrorMessage:
|
|
35
|
+
quoteErrorMessage: ReactNode;
|
|
36
36
|
}
|
|
37
37
|
interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
38
38
|
clearCheckoutQuoteMessages: () => void;
|
|
@@ -7,7 +7,7 @@ export declare const flagConfig: {
|
|
|
7
7
|
readonly if_any: [{
|
|
8
8
|
readonly key: "apiKey";
|
|
9
9
|
readonly type: "isAnyOf";
|
|
10
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "
|
|
10
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
11
11
|
}];
|
|
12
12
|
readonly value: "";
|
|
13
13
|
}];
|
|
@@ -212,7 +212,7 @@ export declare const flagConfig: {
|
|
|
212
212
|
readonly if_any: [{
|
|
213
213
|
readonly key: "apiKey";
|
|
214
214
|
readonly type: "isAnyOf";
|
|
215
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "
|
|
215
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
216
216
|
}];
|
|
217
217
|
readonly value: true;
|
|
218
218
|
}];
|
|
@@ -231,7 +231,7 @@ export declare const flagConfig: {
|
|
|
231
231
|
readonly if_any: [{
|
|
232
232
|
readonly key: "apiKey";
|
|
233
233
|
readonly type: "isAnyOf";
|
|
234
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "Tkp90bAf246UQXfou5uHY9UHN7AUV6xK1tgEWKke", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "
|
|
234
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "Tkp90bAf246UQXfou5uHY9UHN7AUV6xK1tgEWKke", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "TY2G63jFfd7H29aHiJIzg5RqdXNdog2Q5jgb8tr7", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
235
235
|
}];
|
|
236
236
|
readonly value: true;
|
|
237
237
|
}, {
|
|
@@ -3,11 +3,8 @@ import {
|
|
|
3
3
|
zerionWallet
|
|
4
4
|
} from "./chunk-TTHM3WUR.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
tahoWallet
|
|
10
|
-
} from "./chunk-4BMUFNMT.js";
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-O7RSASRH.js";
|
|
11
8
|
import {
|
|
12
9
|
talismanWallet
|
|
13
10
|
} from "./chunk-6MFOL6EB.js";
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
trustWallet
|
|
22
19
|
} from "./chunk-KO56HCTI.js";
|
|
20
|
+
import {
|
|
21
|
+
subWallet
|
|
22
|
+
} from "./chunk-XBLHZICW.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-NHLG5PVD.js";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
walletConnectWallet
|
|
28
28
|
} from "./chunk-J34FG3W4.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
zealWallet
|
|
31
|
+
} from "./chunk-HE2LMIPD.js";
|
|
32
32
|
import {
|
|
33
33
|
rabbyWallet
|
|
34
34
|
} from "./chunk-WFNPWKU3.js";
|
|
@@ -51,47 +51,47 @@ import {
|
|
|
51
51
|
safepalWallet
|
|
52
52
|
} from "./chunk-IICWJWGZ.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
metaMaskWallet
|
|
58
|
-
} from "./chunk-HETS3KKI.js";
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-4BMUFNMT.js";
|
|
59
56
|
import {
|
|
60
57
|
mewWallet
|
|
61
58
|
} from "./chunk-HKVDCVCG.js";
|
|
59
|
+
import {
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-HETS3KKI.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-BVX22N7L.js";
|
|
65
65
|
import {
|
|
66
66
|
okxWallet
|
|
67
67
|
} from "./chunk-LI6QY2B5.js";
|
|
68
|
-
import {
|
|
69
|
-
omniWallet
|
|
70
|
-
} from "./chunk-INNF7G5X.js";
|
|
71
68
|
import {
|
|
72
69
|
oneInchWallet
|
|
73
70
|
} from "./chunk-RVWLP4IM.js";
|
|
74
71
|
import {
|
|
75
72
|
oneKeyWallet
|
|
76
73
|
} from "./chunk-HE5J5T7X.js";
|
|
74
|
+
import {
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-INNF7G5X.js";
|
|
77
77
|
import {
|
|
78
78
|
phantomWallet
|
|
79
79
|
} from "./chunk-XMNVOYSJ.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
foxWallet
|
|
82
|
+
} from "./chunk-53VYSPXK.js";
|
|
83
83
|
import {
|
|
84
84
|
frameWallet
|
|
85
85
|
} from "./chunk-WDTNOIMF.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
88
|
} from "./chunk-CJJT7LMT.js";
|
|
89
|
-
import {
|
|
90
|
-
gateWallet
|
|
91
|
-
} from "./chunk-7OARWILZ.js";
|
|
92
89
|
import {
|
|
93
90
|
imTokenWallet
|
|
94
91
|
} from "./chunk-IUVO4IN3.js";
|
|
92
|
+
import {
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-7OARWILZ.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-W6MXINYY.js";
|
|
@@ -101,18 +101,15 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-WKCCLGHJ.js";
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-6UCI7GM6.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
106
|
} from "./chunk-GVOQTORD.js";
|
|
107
|
+
import {
|
|
108
|
+
bloomWallet
|
|
109
|
+
} from "./chunk-UB2SSFH7.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-6YO27XOM.js";
|
|
113
|
-
import {
|
|
114
|
-
coinbaseWallet
|
|
115
|
-
} from "./chunk-RZXMOPIV.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
115
|
} from "./chunk-GH4M6FTK.js";
|
|
@@ -123,14 +120,17 @@ import {
|
|
|
123
120
|
desigWallet
|
|
124
121
|
} from "./chunk-JYVLYSH3.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
coinbaseWallet
|
|
124
|
+
} from "./chunk-RZXMOPIV.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-W6TXXLCO.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-EKJHJFRN.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-VUOAIUZE.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-HOPH3TQ3.js";
|
|
@@ -140,13 +140,13 @@ import {
|
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-GROWFRGP.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-UB2SSFH7.js";
|
|
146
|
-
import "./chunk-MAPXJUOO.js";
|
|
147
143
|
import {
|
|
148
144
|
braveWallet
|
|
149
145
|
} from "./chunk-ZRNBHLUU.js";
|
|
146
|
+
import {
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-6UCI7GM6.js";
|
|
149
|
+
import "./chunk-MAPXJUOO.js";
|
|
150
150
|
import "./chunk-BAVE62IL.js";
|
|
151
151
|
import "./chunk-KV4HGYM3.js";
|
|
152
152
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
"ua-parser-js": "^1.0.37",
|
|
103
103
|
"use-debounce": "^10.0.5",
|
|
104
104
|
"uuid": "^9.0.1",
|
|
105
|
-
"@funkit/api-base": "2.3.
|
|
105
|
+
"@funkit/api-base": "2.3.2",
|
|
106
106
|
"@funkit/chains": "1.1.0",
|
|
107
|
-
"@funkit/
|
|
108
|
-
"@funkit/
|
|
107
|
+
"@funkit/utils": "1.2.3",
|
|
108
|
+
"@funkit/fun-relay": "2.6.2"
|
|
109
109
|
},
|
|
110
110
|
"repository": {
|
|
111
111
|
"type": "git",
|