@funkit/connect 6.0.5 → 6.0.7
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/{chunk-VQOGHHW2.js → chunk-WDHT73AM.js} +0 -1
- package/dist/{chunk-ZAZGUX6Z.js → chunk-ZDHRMKMT.js} +0 -1
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -1
- package/dist/consts/customers.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +21 -23
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +0 -1
- package/dist/index.css +1892 -1958
- package/dist/index.d.ts +0 -1
- package/dist/index.js +179 -196
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -2
- package/dist/providers/FunkitThemeProvider.d.ts +0 -3
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/address.d.ts +0 -6
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +2 -9
- package/dist/wallets/walletConnectors/index.js +41 -41
- package/package.json +6 -6
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
interface DisclaimerTextProps {
|
|
4
|
-
showDydxDisclaimer: boolean;
|
|
5
4
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
6
5
|
continueText: string;
|
|
7
6
|
isCardPayment?: boolean;
|
|
8
7
|
finalConvertedAssetName?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const DisclaimerText: ({
|
|
9
|
+
export declare const DisclaimerText: ({ continueText, isCardPayment, finalConvertedAssetName, checkoutItem, }: DisclaimerTextProps) => React.JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -52,7 +52,6 @@ export declare const useActiveTheme: () => {
|
|
|
52
52
|
mediumStroke: string;
|
|
53
53
|
heavyStroke: string;
|
|
54
54
|
strokeColor: string;
|
|
55
|
-
dydxSwitchActiveBackground: string;
|
|
56
55
|
primaryText: string;
|
|
57
56
|
secondaryText: string;
|
|
58
57
|
tertiaryText: string;
|
|
@@ -266,7 +265,6 @@ export declare const useActiveTheme: () => {
|
|
|
266
265
|
mediumStroke: string;
|
|
267
266
|
heavyStroke: string;
|
|
268
267
|
strokeColor: string;
|
|
269
|
-
dydxSwitchActiveBackground: string;
|
|
270
268
|
primaryText: string;
|
|
271
269
|
secondaryText: string;
|
|
272
270
|
tertiaryText: string;
|
|
@@ -478,7 +476,6 @@ export declare const useActiveTheme: () => {
|
|
|
478
476
|
mediumStroke: string;
|
|
479
477
|
heavyStroke: string;
|
|
480
478
|
strokeColor: string;
|
|
481
|
-
dydxSwitchActiveBackground: string;
|
|
482
479
|
primaryText: string;
|
|
483
480
|
secondaryText: string;
|
|
484
481
|
tertiaryText: string;
|
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/address.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
2
2
|
export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
|
|
3
|
-
/**
|
|
4
|
-
* Replicated from @dydxprotocol/v4-client-js https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-js/src/lib/validation.ts#L145C1-L158
|
|
5
|
-
* Not importing the sdk in the interest of space.
|
|
6
|
-
*/
|
|
7
|
-
export declare function verifyIsBech32(address: string): Error | undefined;
|
|
8
|
-
export declare function isDydxAddress(address: string): boolean;
|
|
9
3
|
export declare function isAddressSupported(address: string): boolean;
|
|
10
4
|
/**
|
|
11
5
|
* Check if the recipient address is compatible with selected chain
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number |
|
|
|
5
5
|
*
|
|
6
6
|
* @param {FunkitCheckoutConfig} checkoutConfig
|
|
7
7
|
* @param mockedChains optional array of additional chains we want to replace with FALLBACK_CHAIN_ID
|
|
8
|
-
* @returns targetChain either from the provided config or
|
|
8
|
+
* @returns targetChain either from the provided config or Base chainId for non-evm chains processed with evm tech
|
|
9
9
|
*/
|
|
10
10
|
export declare const getMockedTargetChainId: ({ targetChain }: FunkitCheckoutConfig, mockedChains?: string[]) => string;
|
|
@@ -102,21 +102,14 @@ export declare const flagConfig: {
|
|
|
102
102
|
max_checkout_usd: {
|
|
103
103
|
type: "string";
|
|
104
104
|
default_value: string;
|
|
105
|
-
overrides:
|
|
106
|
-
if_any: {
|
|
107
|
-
key: "apiKey";
|
|
108
|
-
type: "isAnyOf";
|
|
109
|
-
values: string[];
|
|
110
|
-
}[];
|
|
111
|
-
value: string;
|
|
112
|
-
} | {
|
|
105
|
+
overrides: {
|
|
113
106
|
if_any: {
|
|
114
107
|
key: "userId";
|
|
115
108
|
type: "isAnyOf";
|
|
116
109
|
values: string[];
|
|
117
110
|
}[];
|
|
118
111
|
value: string;
|
|
119
|
-
}
|
|
112
|
+
}[];
|
|
120
113
|
};
|
|
121
114
|
enable_frog_proxy_server: {
|
|
122
115
|
type: "boolean";
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-RNBEDQHF.js";
|
|
5
5
|
import {
|
|
6
6
|
walletConnectWallet
|
|
7
7
|
} from "./chunk-NP5QGWNL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
zerionWallet
|
|
10
|
+
} from "./chunk-SULRQO27.js";
|
|
11
11
|
import {
|
|
12
12
|
tahoWallet
|
|
13
13
|
} from "./chunk-ZZZRUXZE.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
talismanWallet
|
|
16
|
+
} from "./chunk-DRO6WYMM.js";
|
|
17
17
|
import {
|
|
18
18
|
subWallet
|
|
19
19
|
} from "./chunk-JWFF4AAL.js";
|
|
20
|
+
import {
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-2L43XSW3.js";
|
|
20
23
|
import {
|
|
21
24
|
tokenaryWallet
|
|
22
25
|
} from "./chunk-D6AOOO5F.js";
|
|
23
26
|
import {
|
|
24
27
|
trustWallet
|
|
25
28
|
} from "./chunk-VYBAYMP3.js";
|
|
26
|
-
import {
|
|
27
|
-
talismanWallet
|
|
28
|
-
} from "./chunk-DRO6WYMM.js";
|
|
29
29
|
import {
|
|
30
30
|
uniswapWallet
|
|
31
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
omniWallet
|
|
37
|
-
} from "./chunk-7CUY5G6R.js";
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
38
35
|
import {
|
|
39
36
|
rainbowWallet
|
|
40
37
|
} from "./chunk-2KUBG3S6.js";
|
|
38
|
+
import {
|
|
39
|
+
roninWallet
|
|
40
|
+
} from "./chunk-NWIQNBJU.js";
|
|
41
41
|
import {
|
|
42
42
|
rabbyWallet
|
|
43
43
|
} from "./chunk-BBOM42DL.js";
|
|
44
44
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
safeWallet
|
|
49
|
-
} from "./chunk-BQQQL6UD.js";
|
|
45
|
+
oneKeyWallet
|
|
46
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
50
47
|
import {
|
|
51
48
|
safeheronWallet
|
|
52
49
|
} from "./chunk-RZIO5TFF.js";
|
|
53
50
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
51
|
+
safeWallet
|
|
52
|
+
} from "./chunk-BQQQL6UD.js";
|
|
53
|
+
import {
|
|
54
|
+
ramperWallet
|
|
55
|
+
} from "./chunk-BYXPFMI7.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-NT2HYJKW.js";
|
|
59
|
-
import {
|
|
60
|
-
ledgerWallet
|
|
61
|
-
} from "./chunk-BRBKM4PW.js";
|
|
62
59
|
import {
|
|
63
60
|
metaMaskWallet
|
|
64
61
|
} from "./chunk-2HYNUNAS.js";
|
|
62
|
+
import {
|
|
63
|
+
ledgerWallet
|
|
64
|
+
} from "./chunk-BRBKM4PW.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
okxWallet
|
|
73
73
|
} from "./chunk-TDIEHTMB.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-7CUY5G6R.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-OESTDX6I.js";
|
|
@@ -83,30 +83,30 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
85
|
} from "./chunk-7QONTUXT.js";
|
|
86
|
-
import {
|
|
87
|
-
frameWallet
|
|
88
|
-
} from "./chunk-IFON7E6U.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
88
|
} from "./chunk-TCAGNB4B.js";
|
|
92
|
-
import {
|
|
93
|
-
imTokenWallet
|
|
94
|
-
} from "./chunk-COZ7MIQS.js";
|
|
95
89
|
import {
|
|
96
90
|
gateWallet
|
|
97
91
|
} from "./chunk-FKJJQNKX.js";
|
|
92
|
+
import {
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-IFON7E6U.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-COZ7MIQS.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
102
|
kresusWallet
|
|
103
103
|
} from "./chunk-MJXPRJZT.js";
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-2STUC6QL.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
106
|
} from "./chunk-M3NZ6R2E.js";
|
|
107
|
+
import {
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-2STUC6QL.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-OBOVHCEI.js";
|
|
@@ -116,30 +116,30 @@ import {
|
|
|
116
116
|
import {
|
|
117
117
|
coinbaseWallet
|
|
118
118
|
} from "./chunk-H4IRCEZN.js";
|
|
119
|
+
import {
|
|
120
|
+
enkryptWallet
|
|
121
|
+
} from "./chunk-OLOIXTYS.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-OPAZMNA7.js";
|
|
122
125
|
import {
|
|
123
126
|
dawnWallet
|
|
124
127
|
} from "./chunk-HWPKCIBE.js";
|
|
125
|
-
import {
|
|
126
|
-
enkryptWallet
|
|
127
|
-
} from "./chunk-OLOIXTYS.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
133
|
} from "./chunk-A5N6B5UW.js";
|
|
134
|
+
import {
|
|
135
|
+
bitskiWallet
|
|
136
|
+
} from "./chunk-HS3C7OQV.js";
|
|
134
137
|
import {
|
|
135
138
|
bitgetWallet
|
|
136
139
|
} from "./chunk-TDAVGY5F.js";
|
|
137
140
|
import {
|
|
138
141
|
bitverseWallet
|
|
139
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
140
|
-
import {
|
|
141
|
-
bitskiWallet
|
|
142
|
-
} from "./chunk-HS3C7OQV.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -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/
|
|
93
|
-
"@funkit/fun-relay": "1.0.1",
|
|
94
|
-
"@funkit/chains": "0.3.7",
|
|
95
|
-
"@funkit/wagmi-tools": "3.0.59",
|
|
92
|
+
"@funkit/core": "2.3.39",
|
|
96
93
|
"@funkit/utils": "1.1.8",
|
|
97
|
-
"@funkit/
|
|
94
|
+
"@funkit/api-base": "1.9.15",
|
|
95
|
+
"@funkit/wagmi-tools": "3.0.61",
|
|
96
|
+
"@funkit/chains": "0.3.8",
|
|
97
|
+
"@funkit/fun-relay": "1.0.1"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"type": "git",
|