@funkit/connect 5.5.19 → 5.5.21
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 +38 -0
- package/dist/{chunk-VBAZNW44.js → chunk-ES634CAR.js} +1 -1
- package/dist/{chunk-H5N35KZJ.js → chunk-K4APSFTL.js} +1 -1
- package/dist/{chunk-5XBODEZO.js → chunk-OV3P5HQK.js} +1 -1
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +2 -1
- package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +1 -1
- package/dist/components/FunButton/FunButton.d.ts +2 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +5 -1
- package/dist/css/sprinkles.css.d.ts +21 -21
- package/dist/index.css +2712 -2659
- package/dist/index.js +1479 -1224
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStepLoading.d.ts +3 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
- package/dist/providers/FunkitConfigContext.d.ts +1 -0
- package/dist/providers/ModalSizeContext.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/flags/config.d.ts +43 -2
- package/dist/utils/signature.d.ts +1 -0
- package/dist/wallets/walletConnectors/index.js +44 -44
- package/package.json +8 -8
|
@@ -18,5 +18,6 @@ export type ConfirmationStepNext = {
|
|
|
18
18
|
isSendingToQr: boolean;
|
|
19
19
|
};
|
|
20
20
|
export declare const ConfirmationStepInfo: ModalStepInfo<FunCheckoutStep.CONFIRMATION>;
|
|
21
|
+
export declare const DEFAULT_CONTINUE_TEXT = "Confirm Order";
|
|
21
22
|
export declare function ConfirmationStep({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONFIRMATION>): React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -8,7 +8,8 @@ export declare enum ConfirmationErrorCode {
|
|
|
8
8
|
QUOTE_EXPIRED = "QUOTE_EXPIRED",
|
|
9
9
|
GENERIC_ERROR = "GENERIC_ERROR",
|
|
10
10
|
RISK_ERROR = "RISK_ERROR",
|
|
11
|
-
SIGNATURE_DENIED = "SIGNATURE_DENIED"
|
|
11
|
+
SIGNATURE_DENIED = "SIGNATURE_DENIED",
|
|
12
|
+
SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR"
|
|
12
13
|
}
|
|
13
14
|
interface UseCheckoutConfirmationOptions {
|
|
14
15
|
onError(error: CheckoutConfirmationError): void;
|
|
@@ -44,6 +44,7 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
44
44
|
/** Whether paying by card is a payment method the users can use - defaults to true */
|
|
45
45
|
isCardEnabled?: boolean;
|
|
46
46
|
};
|
|
47
|
+
callToActionsUppercase?: boolean;
|
|
47
48
|
}
|
|
48
49
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
49
50
|
interface FunkitLoginOptionsConfig {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const ModalSizeOptions: {
|
|
3
3
|
readonly COMPACT: "compact";
|
|
4
|
-
readonly WIDE: "wide";
|
|
5
4
|
readonly MEDIUM: "medium";
|
|
5
|
+
readonly WIDE: "wide";
|
|
6
6
|
};
|
|
7
7
|
export type ModalSizes = (typeof ModalSizeOptions)[keyof typeof ModalSizeOptions];
|
|
8
8
|
export declare const ModalSizeContext: React.Context<ModalSizes>;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -34,14 +34,31 @@ export declare const flagConfig: {
|
|
|
34
34
|
enable_token_transfer: {
|
|
35
35
|
type: "boolean";
|
|
36
36
|
default_value: false;
|
|
37
|
-
overrides: {
|
|
37
|
+
overrides: ({
|
|
38
38
|
if_any: {
|
|
39
39
|
key: "apiKey";
|
|
40
40
|
type: "isAnyOf";
|
|
41
41
|
values: string[];
|
|
42
42
|
}[];
|
|
43
43
|
value: true;
|
|
44
|
-
|
|
44
|
+
if_all?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
if_all: ({
|
|
47
|
+
key: "userId";
|
|
48
|
+
type: "isAnyOf";
|
|
49
|
+
values: string[];
|
|
50
|
+
} | {
|
|
51
|
+
key: "apiKey";
|
|
52
|
+
type: "isAnyOf";
|
|
53
|
+
values: string[];
|
|
54
|
+
})[];
|
|
55
|
+
if_any: {
|
|
56
|
+
key: "userId";
|
|
57
|
+
type: "pctRollout";
|
|
58
|
+
pct: number;
|
|
59
|
+
}[];
|
|
60
|
+
value: true;
|
|
61
|
+
})[];
|
|
45
62
|
};
|
|
46
63
|
enable_fiat_deposit: {
|
|
47
64
|
type: "boolean";
|
|
@@ -265,6 +282,14 @@ export declare const flagConfig: {
|
|
|
265
282
|
pct: number;
|
|
266
283
|
}[];
|
|
267
284
|
value: true;
|
|
285
|
+
} | {
|
|
286
|
+
if_any: {
|
|
287
|
+
key: "apiKey";
|
|
288
|
+
type: "isAnyOf";
|
|
289
|
+
values: string[];
|
|
290
|
+
}[];
|
|
291
|
+
value: true;
|
|
292
|
+
if_all?: undefined;
|
|
268
293
|
} | {
|
|
269
294
|
if_any: {
|
|
270
295
|
key: "apiKey";
|
|
@@ -303,4 +328,20 @@ export declare const flagConfig: {
|
|
|
303
328
|
type: "boolean";
|
|
304
329
|
default_value: false;
|
|
305
330
|
};
|
|
331
|
+
token_transfer_default_tokens: {
|
|
332
|
+
type: "string";
|
|
333
|
+
default_value: string;
|
|
334
|
+
overrides: {
|
|
335
|
+
if_any: {
|
|
336
|
+
key: "apiKey";
|
|
337
|
+
type: "isAnyOf";
|
|
338
|
+
values: string[];
|
|
339
|
+
}[];
|
|
340
|
+
value: string;
|
|
341
|
+
}[];
|
|
342
|
+
};
|
|
343
|
+
chain_id_sort_order: {
|
|
344
|
+
type: "string";
|
|
345
|
+
default_value: string;
|
|
346
|
+
};
|
|
306
347
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-RNBEDQHF.js";
|
|
5
2
|
import {
|
|
6
3
|
walletConnectWallet
|
|
7
4
|
} from "./chunk-NP5QGWNL.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-RNBEDQHF.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-Q3H3TRBS.js";
|
|
11
|
+
import {
|
|
12
|
+
safepalWallet
|
|
13
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
14
17
|
import {
|
|
15
18
|
talismanWallet
|
|
16
19
|
} from "./chunk-DRO6WYMM.js";
|
|
17
|
-
import {
|
|
18
|
-
subWallet
|
|
19
|
-
} from "./chunk-ZSI5N4VV.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-J3LI3FYZ.js";
|
|
@@ -32,21 +32,18 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
xdefiWallet
|
|
34
34
|
} from "./chunk-BOU4WKRZ.js";
|
|
35
|
+
import {
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-BBOM42DL.js";
|
|
35
38
|
import {
|
|
36
39
|
phantomWallet
|
|
37
40
|
} from "./chunk-362NXNTM.js";
|
|
38
41
|
import {
|
|
39
42
|
roninWallet
|
|
40
43
|
} from "./chunk-QLVVUKYB.js";
|
|
41
|
-
import {
|
|
42
|
-
omniWallet
|
|
43
|
-
} from "./chunk-7CUY5G6R.js";
|
|
44
44
|
import {
|
|
45
45
|
rainbowWallet
|
|
46
46
|
} from "./chunk-3CICVJUN.js";
|
|
47
|
-
import {
|
|
48
|
-
safeheronWallet
|
|
49
|
-
} from "./chunk-RZIO5TFF.js";
|
|
50
47
|
import {
|
|
51
48
|
ramperWallet
|
|
52
49
|
} from "./chunk-BYXPFMI7.js";
|
|
@@ -54,8 +51,11 @@ import {
|
|
|
54
51
|
safeWallet
|
|
55
52
|
} from "./chunk-BQQQL6UD.js";
|
|
56
53
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-RZIO5TFF.js";
|
|
56
|
+
import {
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
@@ -71,6 +71,9 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
73
|
} from "./chunk-AFXHGWBH.js";
|
|
74
|
+
import {
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-7CUY5G6R.js";
|
|
74
77
|
import {
|
|
75
78
|
oneInchWallet
|
|
76
79
|
} from "./chunk-OESTDX6I.js";
|
|
@@ -78,74 +81,71 @@ import {
|
|
|
78
81
|
oneKeyWallet
|
|
79
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-CNPKISHN.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-IFON7E6U.js";
|
|
83
89
|
import {
|
|
84
90
|
frontierWallet
|
|
85
91
|
} from "./chunk-VWCLFMWJ.js";
|
|
86
92
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
93
|
+
imTokenWallet
|
|
94
|
+
} from "./chunk-COZ7MIQS.js";
|
|
89
95
|
import {
|
|
90
96
|
gateWallet
|
|
91
97
|
} from "./chunk-CJGUM55H.js";
|
|
92
|
-
import {
|
|
93
|
-
imTokenWallet
|
|
94
|
-
} from "./chunk-COZ7MIQS.js";
|
|
95
98
|
import {
|
|
96
99
|
injectedWallet
|
|
97
100
|
} from "./chunk-XWUJE7MW.js";
|
|
98
|
-
import {
|
|
99
|
-
frameWallet
|
|
100
|
-
} from "./chunk-IFON7E6U.js";
|
|
101
101
|
import {
|
|
102
102
|
kresusWallet
|
|
103
103
|
} from "./chunk-MJXPRJZT.js";
|
|
104
|
-
import {
|
|
105
|
-
coinbaseWallet
|
|
106
|
-
} from "./chunk-H4IRCEZN.js";
|
|
107
104
|
import {
|
|
108
105
|
braveWallet
|
|
109
106
|
} from "./chunk-BPZ2XJO2.js";
|
|
110
|
-
import {
|
|
111
|
-
coreWallet
|
|
112
|
-
} from "./chunk-JCHN6A47.js";
|
|
113
107
|
import {
|
|
114
108
|
clvWallet
|
|
115
109
|
} from "./chunk-2GJQ4XZQ.js";
|
|
116
110
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-KIDC67XJ.js";
|
|
119
113
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-H4IRCEZN.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-JCHN6A47.js";
|
|
119
|
+
import {
|
|
120
|
+
dawnWallet
|
|
121
|
+
} from "./chunk-HWPKCIBE.js";
|
|
122
122
|
import {
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-OPAZMNA7.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-OLOIXTYS.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-UIASLGLV.js";
|
|
134
131
|
import {
|
|
135
132
|
bitgetWallet
|
|
136
133
|
} from "./chunk-5W7VDOCL.js";
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-HS3C7OQV.js";
|
|
140
134
|
import {
|
|
141
135
|
bitverseWallet
|
|
142
136
|
} from "./chunk-3HZRRP4Y.js";
|
|
137
|
+
import {
|
|
138
|
+
bifrostWallet
|
|
139
|
+
} from "./chunk-UIASLGLV.js";
|
|
140
|
+
import {
|
|
141
|
+
bitskiWallet
|
|
142
|
+
} from "./chunk-HS3C7OQV.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
146
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-LNEC5RNX.js";
|
|
149
149
|
import "./chunk-DNSG5Q7V.js";
|
|
150
150
|
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.21",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@tanstack/react-query": ">=5.0.0",
|
|
41
41
|
"react": ">=18",
|
|
42
42
|
"react-dom": ">=18",
|
|
43
|
-
"viem": "2.
|
|
43
|
+
"viem": ">=2.22.14",
|
|
44
44
|
"wagmi": "2.x"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"ua-parser-js": "^1.0.37",
|
|
90
90
|
"use-debounce": "^10.0.5",
|
|
91
91
|
"uuid": "^9.0.1",
|
|
92
|
-
"@funkit/api-base": "1.9.
|
|
93
|
-
"@funkit/
|
|
94
|
-
"@funkit/fun-relay": "0.1.
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
92
|
+
"@funkit/api-base": "1.9.10",
|
|
93
|
+
"@funkit/core": "2.3.34",
|
|
94
|
+
"@funkit/fun-relay": "0.1.12",
|
|
95
|
+
"@funkit/chains": "0.3.6",
|
|
96
|
+
"@funkit/utils": "1.1.8",
|
|
97
|
+
"@funkit/wagmi-tools": "3.0.56"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"type": "git",
|