@funkit/connect 8.4.0-next.1 → 8.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 +73 -0
- package/dist/{chunk-UE3P6YHW.js → chunk-4WY7FNYP.js} +1 -0
- package/dist/{chunk-XX5CVGHN.js → chunk-UUHLEWAL.js} +3 -2
- package/dist/{chunk-YUWSE22N.js → chunk-Z4QDKBBG.js} +3 -2
- package/dist/clients/fanatics.css +3727 -3619
- package/dist/clients/fanatics.d.ts +6 -0
- package/dist/clients/fanatics.js +85 -39
- package/dist/components/Box/Box.d.ts +42 -42
- package/dist/components/FunCheckoutHistory/FunTxSummarySections.d.ts +7 -0
- package/dist/components/FunCheckoutHistory/TotalTimeItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +6 -0
- package/dist/components/Icons/New/CircleBitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/DollarIcon.d.ts +3 -1
- package/dist/consts/layout.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +46 -42
- package/dist/domains/asset.d.ts +1 -1
- package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +5 -0
- package/dist/index.css +3727 -3619
- package/dist/index.js +1738 -1538
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +12 -0
- package/dist/providers/FunkitProvider.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +6 -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/transfer.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +25 -25
- package/package.json +4 -4
|
@@ -197,6 +197,18 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
197
197
|
timeEstimate?: ComponentType;
|
|
198
198
|
youReceive?: ComponentType;
|
|
199
199
|
youSend?: ComponentType;
|
|
200
|
+
fiatTabIcon?: ComponentType<{
|
|
201
|
+
size?: number;
|
|
202
|
+
}>;
|
|
203
|
+
cryptoTabIcon?: ComponentType<{
|
|
204
|
+
size?: number;
|
|
205
|
+
}>;
|
|
206
|
+
};
|
|
207
|
+
/** Font family names to pass to embedded widgets */
|
|
208
|
+
customFontFamily?: {
|
|
209
|
+
primary?: string;
|
|
210
|
+
secondary?: string;
|
|
211
|
+
tertiary?: string;
|
|
200
212
|
};
|
|
201
213
|
}
|
|
202
214
|
/**
|
|
@@ -21,6 +21,7 @@ interface FunkitProviderInnerProps {
|
|
|
21
21
|
debug?: boolean | undefined;
|
|
22
22
|
sandbox?: boolean | undefined;
|
|
23
23
|
modalSize?: ModalSizes;
|
|
24
|
+
useStyleRefForTheme?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export type FunkitWagmiConfig = Omit<CreateFunkitWagmiConfigParameters, 'funkitApiKey' | 'initialChainId' | 'appName'> & {
|
|
26
27
|
projectId: string;
|
|
@@ -141,6 +141,7 @@ export declare const useActiveTheme: () => {
|
|
|
141
141
|
txSummaryBoxBorder: string;
|
|
142
142
|
counterRingColor: string;
|
|
143
143
|
cryptoCashToggleContainerBorderColor: string;
|
|
144
|
+
cryptoCashToggleBackground: string;
|
|
144
145
|
};
|
|
145
146
|
dimensions: {
|
|
146
147
|
connectExchangeIconSize: string;
|
|
@@ -424,6 +425,7 @@ export declare const useActiveTheme: () => {
|
|
|
424
425
|
txSummaryLineItemPadding: string;
|
|
425
426
|
txSummaryDividerMarginX: string;
|
|
426
427
|
txSummaryDividerMarginY: string;
|
|
428
|
+
verticalSectionGap: string;
|
|
427
429
|
youPayYouReceivePaddingLeft: string;
|
|
428
430
|
youPayYouReceivePaddingRight: string;
|
|
429
431
|
youPayYouReceivePaddingY: string;
|
|
@@ -567,6 +569,7 @@ export declare const useActiveTheme: () => {
|
|
|
567
569
|
txSummaryBoxBorder: string;
|
|
568
570
|
counterRingColor: string;
|
|
569
571
|
cryptoCashToggleContainerBorderColor: string;
|
|
572
|
+
cryptoCashToggleBackground: string;
|
|
570
573
|
};
|
|
571
574
|
dimensions: {
|
|
572
575
|
connectExchangeIconSize: string;
|
|
@@ -850,6 +853,7 @@ export declare const useActiveTheme: () => {
|
|
|
850
853
|
txSummaryLineItemPadding: string;
|
|
851
854
|
txSummaryDividerMarginX: string;
|
|
852
855
|
txSummaryDividerMarginY: string;
|
|
856
|
+
verticalSectionGap: string;
|
|
853
857
|
youPayYouReceivePaddingLeft: string;
|
|
854
858
|
youPayYouReceivePaddingRight: string;
|
|
855
859
|
youPayYouReceivePaddingY: string;
|
|
@@ -991,6 +995,7 @@ export declare const useActiveTheme: () => {
|
|
|
991
995
|
txSummaryBoxBorder: string;
|
|
992
996
|
counterRingColor: string;
|
|
993
997
|
cryptoCashToggleContainerBorderColor: string;
|
|
998
|
+
cryptoCashToggleBackground: string;
|
|
994
999
|
};
|
|
995
1000
|
dimensions: {
|
|
996
1001
|
connectExchangeIconSize: string;
|
|
@@ -1274,6 +1279,7 @@ export declare const useActiveTheme: () => {
|
|
|
1274
1279
|
txSummaryLineItemPadding: string;
|
|
1275
1280
|
txSummaryDividerMarginX: string;
|
|
1276
1281
|
txSummaryDividerMarginY: string;
|
|
1282
|
+
verticalSectionGap: string;
|
|
1277
1283
|
youPayYouReceivePaddingLeft: string;
|
|
1278
1284
|
youPayYouReceivePaddingRight: string;
|
|
1279
1285
|
youPayYouReceivePaddingY: string;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/transfer.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { FunAddress } from '@funkit/api-base';
|
|
1
|
+
import type { CheckoutInitTokenTransferResponse, FunAddress } from '@funkit/api-base';
|
|
2
|
+
export declare function getDepositAddressForChain(chainId: number, transferInit: CheckoutInitTokenTransferResponse | undefined): FunAddress | undefined;
|
|
2
3
|
export type TransferTokenQrCodeType = 'ethereum' | 'solana' | 'bitcoin' | 'tron';
|
|
3
4
|
interface TransferTokenQrCodeUriParams {
|
|
4
5
|
depositAddress: FunAddress;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-TMFH6GXS.js";
|
|
5
2
|
import {
|
|
6
3
|
zerionWallet
|
|
7
4
|
} from "./chunk-CZYUE3AR.js";
|
|
5
|
+
import {
|
|
6
|
+
trustWallet
|
|
7
|
+
} from "./chunk-JFHP4YJG.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-TNZJRXUQ.js";
|
|
@@ -17,30 +17,30 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-M2HGGTFE.js";
|
|
20
|
-
import {
|
|
21
|
-
trustWallet
|
|
22
|
-
} from "./chunk-JFHP4YJG.js";
|
|
23
20
|
import {
|
|
24
21
|
walletConnectWallet
|
|
25
22
|
} from "./chunk-NP5QGWNL.js";
|
|
26
23
|
import {
|
|
27
24
|
uniswapWallet
|
|
28
25
|
} from "./chunk-LH7BMNFZ.js";
|
|
26
|
+
import {
|
|
27
|
+
xdefiWallet
|
|
28
|
+
} from "./chunk-TMFH6GXS.js";
|
|
29
29
|
import {
|
|
30
30
|
zealWallet
|
|
31
31
|
} from "./chunk-VU2RNIQG.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
phantomWallet
|
|
34
|
+
} from "./chunk-3IYE623P.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
37
|
} from "./chunk-77UTBHGP.js";
|
|
38
|
-
import {
|
|
39
|
-
roninWallet
|
|
40
|
-
} from "./chunk-UOTQQJJD.js";
|
|
41
38
|
import {
|
|
42
39
|
ramperWallet
|
|
43
40
|
} from "./chunk-FCG5Q6JX.js";
|
|
41
|
+
import {
|
|
42
|
+
roninWallet
|
|
43
|
+
} from "./chunk-UOTQQJJD.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -75,8 +75,8 @@ import {
|
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-35Q4HKAM.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-LW6S43RE.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
82
|
} from "./chunk-YLJDPTYF.js";
|
|
@@ -101,9 +101,6 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-BRBKM4PW.js";
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-5EAOMOTO.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
106
|
} from "./chunk-HPHADOYD.js";
|
|
@@ -113,6 +110,9 @@ import {
|
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-H4IRCEZN.js";
|
|
113
|
+
import {
|
|
114
|
+
bitskiWallet
|
|
115
|
+
} from "./chunk-YMUSFW44.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
118
|
} from "./chunk-VYNVAGSV.js";
|
|
@@ -125,28 +125,28 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-ABQKUIUD.js";
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-R6Y36CMA.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-R6Y36CMA.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-FA5DTT5R.js";
|
|
137
137
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
140
140
|
import {
|
|
141
141
|
bloomWallet
|
|
142
142
|
} from "./chunk-S27IADFU.js";
|
|
143
|
-
import {
|
|
144
|
-
bitverseWallet
|
|
145
|
-
} from "./chunk-3HZRRP4Y.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
143
|
import {
|
|
148
144
|
braveWallet
|
|
149
145
|
} from "./chunk-4ZXII3UA.js";
|
|
146
|
+
import {
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-5EAOMOTO.js";
|
|
149
|
+
import "./chunk-23WIEY36.js";
|
|
150
150
|
import "./chunk-ARYAYQ7Z.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "8.4.0
|
|
3
|
+
"version": "8.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",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"ua-parser-js": "^1.0.37",
|
|
104
104
|
"use-debounce": "^10.0.5",
|
|
105
105
|
"uuid": "^9.0.1",
|
|
106
|
-
"@funkit/api-base": "2.2.0
|
|
106
|
+
"@funkit/api-base": "2.2.0",
|
|
107
107
|
"@funkit/chains": "1.1.0",
|
|
108
|
-
"@funkit/fun-relay": "2.
|
|
109
|
-
"@funkit/utils": "1.2.1
|
|
108
|
+
"@funkit/fun-relay": "2.5.0",
|
|
109
|
+
"@funkit/utils": "1.2.1"
|
|
110
110
|
},
|
|
111
111
|
"repository": {
|
|
112
112
|
"type": "git",
|