@funkit/connect 6.15.12 → 7.0.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 +52 -0
- package/dist/{chunk-L3BEU75V.js → chunk-DN7UTQK5.js} +10 -2
- package/dist/{chunk-KG5Q63KL.js → chunk-OVMNR35O.js} +11 -3
- package/dist/{chunk-WCUXJAGT.js → chunk-RJAD5CZH.js} +14 -2
- package/dist/components/Box/Box.d.ts +30 -30
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/hooks.d.ts +2 -0
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunConnectOptions/FunConnectOptions.d.ts +4 -6
- package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -8
- package/dist/components/Icons/FunTechnologyLogo.d.ts +2 -0
- package/dist/components/Icons/StatusIcons.css.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +5 -0
- package/dist/consts/customers.d.ts +1 -0
- package/dist/consts/funkit.d.ts +1 -9
- package/dist/css/sprinkles.css.d.ts +76 -32
- package/dist/domains/asset.d.ts +2 -4
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +2 -1
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useFunListeners.d.ts +0 -1
- package/dist/hooks/usePaymentMethodIcon.d.ts +0 -1
- package/dist/index.css +3291 -3088
- package/dist/index.js +28129 -29983
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/modals/ConnectModal/ConnectModal.d.ts +1 -3
- package/dist/providers/FunkitConfigContext.d.ts +33 -20
- package/dist/providers/FunkitThemeProvider.d.ts +69 -3
- package/dist/providers/GeneralWalletProvider.d.ts +0 -1
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/providers/provideFunkitConnectChains.d.ts +2 -7
- package/dist/themes/baseTheme.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/checkout.d.ts +1 -2
- package/dist/utils/flags/config.d.ts +4 -35
- 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 +45 -45
- 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 +8 -10
- package/dist/components/FunConnectOptions/FunFarcasterConnectingStep.d.ts +0 -5
- package/dist/components/FunConnectOptions/FunWeb2ConnectingStep.d.ts +0 -6
- package/dist/components/FunSocials/FunSocials.d.ts +0 -10
- package/dist/farcaster-MF6WINBA.js +0 -7
- package/dist/funkitConnectWallet-U6JYSE3A.js +0 -7
- package/dist/providers/FunkitWeb2Provider.d.ts +0 -66
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.d.ts +0 -2
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +0 -31
- package/dist/wallets/walletConnectors/funkitConnectWallet-U6JYSE3A.js +0 -7
- package/dist/wallets/walletConnectors/{chunk-UYGJO62F.js → chunk-2HYNUNAS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3CICVJUN.js → chunk-2KUBG3S6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-J3LI3FYZ.js → chunk-2L43XSW3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LNEC5RNX.js → chunk-2STUC6QL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CNPKISHN.js → chunk-7QONTUXT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UIASLGLV.js → chunk-A5N6B5UW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CJGUM55H.js → chunk-FKJJQNKX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZSI5N4VV.js → chunk-JWFF4AAL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2GJQ4XZQ.js → chunk-M3NZ6R2E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-EC6CHBSZ.js → chunk-NT2HYJKW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-QLVVUKYB.js → chunk-NWIQNBJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KIDC67XJ.js → chunk-OBOVHCEI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-Q3H3TRBS.js → chunk-SULRQO27.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VWCLFMWJ.js → chunk-TCAGNB4B.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5W7VDOCL.js → chunk-TDAVGY5F.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AFXHGWBH.js → chunk-TDIEHTMB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JCHN6A47.js → chunk-VR4TBQ6S.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RKPCWHXL.js → chunk-VYBAYMP3.js} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
interface CheckoutPrimaryInfoProps {
|
|
4
|
-
showTokenAmount
|
|
4
|
+
showTokenAmount: boolean;
|
|
5
5
|
config: FunkitCheckoutConfig;
|
|
6
6
|
usdAmount?: number;
|
|
7
7
|
isLoading?: boolean;
|
|
@@ -35,6 +35,7 @@ export interface CheckoutModalCommonState {
|
|
|
35
35
|
isDefiMode: boolean;
|
|
36
36
|
startingStep: FunCheckoutStartingStep;
|
|
37
37
|
targetChainId: string;
|
|
38
|
+
showWalletOptions?: boolean;
|
|
38
39
|
hideBottomDivider: boolean;
|
|
39
40
|
}
|
|
40
41
|
export interface ModalStepComponentProps<S extends FunCheckoutStep = FunCheckoutStep> {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface ConnectModalProps {
|
|
3
|
-
/** Shows only a list of available wallets to connect (ignoring other web2 options) */
|
|
4
|
-
walletsOnly?: boolean;
|
|
5
3
|
open: boolean;
|
|
6
4
|
onClose: () => void;
|
|
7
5
|
}
|
|
8
|
-
export declare function ConnectModal({ onClose, open
|
|
6
|
+
export declare function ConnectModal({ onClose, open }: ConnectModalProps): React.JSX.Element | null;
|
|
@@ -26,44 +26,57 @@ export interface FunkitUiDestinationConfig {
|
|
|
26
26
|
url?: string;
|
|
27
27
|
}
|
|
28
28
|
export interface FunkitUiCustomizationsConfig {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
/** Title alignment - defaults to "center" */
|
|
30
|
+
alignTitle?: 'left' | 'center';
|
|
31
|
+
/** Whetehr to show CTA in uppercase - defaults to false */
|
|
32
|
+
callToActionsUppercase?: boolean;
|
|
33
33
|
confirmationScreen?: {
|
|
34
|
-
/** Whether to show the amount of tokens below the USD equivalent - defaults to true */
|
|
35
|
-
showTokenAmount?: boolean;
|
|
36
|
-
/** Whether to show the total payment amount in USD below the token amount equivalent. Defaults to false */
|
|
37
|
-
showPaymentAmountUsd?: boolean;
|
|
38
|
-
/** Whether to show the total receive amount in USD below the token amount equivalent. Defaults to false */
|
|
39
|
-
showReceiveAmountUsd?: boolean;
|
|
40
34
|
/** Custom destination icon and text used in checkout summary */
|
|
41
35
|
destinationConfig?: FunkitUiDestinationConfig;
|
|
42
|
-
/** when source and destination are the same address, show destination as payment method instead of source */
|
|
36
|
+
/** when source and destination are the same address, show destination as payment method instead of source - defaults to false */
|
|
43
37
|
preferDestinationWhenSame?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
/** Whether to show the total payment amount in USD below the token amount equivalent - defaults to false */
|
|
39
|
+
showPaymentAmountUsd?: boolean;
|
|
40
|
+
/** Whether to show the total receive amount in USD below the token amount equivalent - defaults to false */
|
|
41
|
+
showReceiveAmountUsd?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether and how to show transaction fee's digest.
|
|
44
|
+
* - "none": show nothing (default)
|
|
45
|
+
* - "chainDependent": show price impact and additionally show gas as well for eth-mainnet
|
|
46
|
+
*/
|
|
48
47
|
showTransactionDigest?: 'none' | 'chainDependent';
|
|
48
|
+
/** Whether to show the amount of tokens below the USD equivalent - defaults to true */
|
|
49
|
+
showTokenAmount?: boolean;
|
|
49
50
|
};
|
|
50
51
|
inputAmountScreen?: {
|
|
51
52
|
/** Whether to allow entering an amount of tokens, rather than only USD - defaults to true */
|
|
52
53
|
allowTokenAmountInput?: boolean;
|
|
53
54
|
};
|
|
55
|
+
selectAssetScreen?: {
|
|
56
|
+
/** Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false */
|
|
57
|
+
showTargetAssetSelection?: boolean;
|
|
58
|
+
};
|
|
54
59
|
transferCryptoScreen?: {
|
|
55
60
|
/** Whether to show the "You Send -> You Receive" block in the transfer crypto screen - defaults to false */
|
|
56
61
|
showYouSendYouReceive?: boolean;
|
|
57
62
|
};
|
|
58
|
-
callToActionsUppercase?: boolean;
|
|
59
|
-
alignTitle?: 'left' | 'center';
|
|
60
63
|
}
|
|
64
|
+
export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizationsConfig> & {
|
|
65
|
+
confirmationScreen: FunkitUiCustomizationsConfig['confirmationScreen'] & Required<Omit<FunkitUiCustomizationsConfig['confirmationScreen'] & {}, 'destinationConfig'>>;
|
|
66
|
+
inputAmountScreen: Required<FunkitUiCustomizationsConfig['inputAmountScreen'] & {}>;
|
|
67
|
+
selectAssetScreen: Required<FunkitUiCustomizationsConfig['selectAssetScreen'] & {}>;
|
|
68
|
+
transferCryptoScreen: Required<FunkitUiCustomizationsConfig['transferCryptoScreen'] & {}>;
|
|
69
|
+
};
|
|
61
70
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
71
|
+
export declare const DEFAULT_UI_CUSTOMIZATIONS: FunkitUiCustomizationsConfigInternal;
|
|
62
72
|
interface FunkitLoginOptionsConfig {
|
|
73
|
+
/** @deprecated **/
|
|
63
74
|
web2: boolean;
|
|
75
|
+
/** @deprecated **/
|
|
64
76
|
web3: boolean;
|
|
77
|
+
/** @deprecated **/
|
|
65
78
|
prioritizedLogin: FunkitPrioritizedLoginType;
|
|
66
|
-
/** Enables social logins. Each type requires configuration in your app's privy dashboard. Please ensure to do so before enabling any. **/
|
|
79
|
+
/** @deprecated Enables social logins. Each type requires configuration in your app's privy dashboard. Please ensure to do so before enabling any. **/
|
|
67
80
|
web2SocialLogins: {
|
|
68
81
|
[FunkitSocialLoginMethod.GOOGLE]?: boolean;
|
|
69
82
|
[FunkitSocialLoginMethod.TWITTER]?: boolean;
|
|
@@ -80,14 +93,14 @@ export type FunkitConfig = {
|
|
|
80
93
|
textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
|
|
81
94
|
/** UI customizations across all widgets **/
|
|
82
95
|
uiCustomizations?: FunkitUiCustomizationsConfig;
|
|
83
|
-
/** Login modal configuration **/
|
|
96
|
+
/** @deprecated Login modal configuration **/
|
|
84
97
|
loginConfig?: Partial<FunkitLoginOptionsConfig>;
|
|
85
98
|
/** used to link funkit users to your own user system */
|
|
86
99
|
externalUserId?: string;
|
|
87
100
|
};
|
|
88
101
|
interface FinalFunkitConfigInternal extends FunkitConfig {
|
|
89
102
|
textCustomizations: FunkitTextCustomizationsConfig;
|
|
90
|
-
|
|
103
|
+
uiCustomizations: FunkitUiCustomizationsConfigInternal;
|
|
91
104
|
}
|
|
92
105
|
export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
|
|
93
106
|
export declare function useFunkitConfig(): FinalFunkitConfigInternal;
|
|
@@ -41,6 +41,7 @@ export declare const useActiveTheme: () => {
|
|
|
41
41
|
focusedOptionBorder: string;
|
|
42
42
|
standby: string;
|
|
43
43
|
success: string;
|
|
44
|
+
delayedStatusIcon: string;
|
|
44
45
|
chainIconBorder: string;
|
|
45
46
|
modalBackdrop: string;
|
|
46
47
|
modalBackground: string;
|
|
@@ -137,6 +138,9 @@ export declare const useActiveTheme: () => {
|
|
|
137
138
|
modalTopBarHeight: string;
|
|
138
139
|
};
|
|
139
140
|
fonts: {
|
|
141
|
+
buttonTextPrimary: string;
|
|
142
|
+
buttonTextSecondary: string;
|
|
143
|
+
buttonTextTertiary: string;
|
|
140
144
|
body: string;
|
|
141
145
|
};
|
|
142
146
|
fontWeight: {
|
|
@@ -189,6 +193,18 @@ export declare const useActiveTheme: () => {
|
|
|
189
193
|
fontSize: string;
|
|
190
194
|
lineHeight: string;
|
|
191
195
|
};
|
|
196
|
+
buttonTextPrimary: {
|
|
197
|
+
fontSize: string;
|
|
198
|
+
lineHeight: string;
|
|
199
|
+
};
|
|
200
|
+
buttonTextSecondary: {
|
|
201
|
+
fontSize: string;
|
|
202
|
+
lineHeight: string;
|
|
203
|
+
};
|
|
204
|
+
buttonTextTertiary: {
|
|
205
|
+
fontSize: string;
|
|
206
|
+
lineHeight: string;
|
|
207
|
+
};
|
|
192
208
|
modalTopbarSubtitle: {
|
|
193
209
|
fontSize: string;
|
|
194
210
|
lineHeight: string;
|
|
@@ -233,15 +249,21 @@ export declare const useActiveTheme: () => {
|
|
|
233
249
|
notification: string;
|
|
234
250
|
qrCode: string;
|
|
235
251
|
buttonShadow: string;
|
|
252
|
+
buttonShadowTertiary: string;
|
|
236
253
|
buttonFocusedShadow: string;
|
|
237
|
-
buttonHoverShadow: string;
|
|
238
254
|
buttonFocusedShadowTertiary: string;
|
|
255
|
+
buttonHoverShadow: string;
|
|
239
256
|
buttonHoverShadowTertiary: string;
|
|
240
257
|
buttonDisabledShadow: string;
|
|
258
|
+
buttonDisabledShadowTertiary: string;
|
|
241
259
|
buttonInnerShadow: string;
|
|
260
|
+
buttonInnerShadowTertiary: string;
|
|
242
261
|
buttonFocusedInnerShadow: string;
|
|
262
|
+
buttonFocusedInnerShadowTertiary: string;
|
|
243
263
|
buttonHoverInnerShadow: string;
|
|
264
|
+
buttonHoverInnerShadowTertiary: string;
|
|
244
265
|
buttonDisabledInnerShadow: string;
|
|
266
|
+
buttonDisabledInnerShadowTertiary: string;
|
|
245
267
|
selectedDropdownItem: string;
|
|
246
268
|
};
|
|
247
269
|
spacing: {
|
|
@@ -279,6 +301,7 @@ export declare const useActiveTheme: () => {
|
|
|
279
301
|
focusedOptionBorder: string;
|
|
280
302
|
standby: string;
|
|
281
303
|
success: string;
|
|
304
|
+
delayedStatusIcon: string;
|
|
282
305
|
chainIconBorder: string;
|
|
283
306
|
modalBackdrop: string;
|
|
284
307
|
modalBackground: string;
|
|
@@ -375,6 +398,9 @@ export declare const useActiveTheme: () => {
|
|
|
375
398
|
modalTopBarHeight: string;
|
|
376
399
|
};
|
|
377
400
|
fonts: {
|
|
401
|
+
buttonTextPrimary: string;
|
|
402
|
+
buttonTextSecondary: string;
|
|
403
|
+
buttonTextTertiary: string;
|
|
378
404
|
body: string;
|
|
379
405
|
};
|
|
380
406
|
fontWeight: {
|
|
@@ -427,6 +453,18 @@ export declare const useActiveTheme: () => {
|
|
|
427
453
|
fontSize: string;
|
|
428
454
|
lineHeight: string;
|
|
429
455
|
};
|
|
456
|
+
buttonTextPrimary: {
|
|
457
|
+
fontSize: string;
|
|
458
|
+
lineHeight: string;
|
|
459
|
+
};
|
|
460
|
+
buttonTextSecondary: {
|
|
461
|
+
fontSize: string;
|
|
462
|
+
lineHeight: string;
|
|
463
|
+
};
|
|
464
|
+
buttonTextTertiary: {
|
|
465
|
+
fontSize: string;
|
|
466
|
+
lineHeight: string;
|
|
467
|
+
};
|
|
430
468
|
modalTopbarSubtitle: {
|
|
431
469
|
fontSize: string;
|
|
432
470
|
lineHeight: string;
|
|
@@ -471,15 +509,21 @@ export declare const useActiveTheme: () => {
|
|
|
471
509
|
notification: string;
|
|
472
510
|
qrCode: string;
|
|
473
511
|
buttonShadow: string;
|
|
512
|
+
buttonShadowTertiary: string;
|
|
474
513
|
buttonFocusedShadow: string;
|
|
475
|
-
buttonHoverShadow: string;
|
|
476
514
|
buttonFocusedShadowTertiary: string;
|
|
515
|
+
buttonHoverShadow: string;
|
|
477
516
|
buttonHoverShadowTertiary: string;
|
|
478
517
|
buttonDisabledShadow: string;
|
|
518
|
+
buttonDisabledShadowTertiary: string;
|
|
479
519
|
buttonInnerShadow: string;
|
|
520
|
+
buttonInnerShadowTertiary: string;
|
|
480
521
|
buttonFocusedInnerShadow: string;
|
|
522
|
+
buttonFocusedInnerShadowTertiary: string;
|
|
481
523
|
buttonHoverInnerShadow: string;
|
|
524
|
+
buttonHoverInnerShadowTertiary: string;
|
|
482
525
|
buttonDisabledInnerShadow: string;
|
|
526
|
+
buttonDisabledInnerShadowTertiary: string;
|
|
483
527
|
selectedDropdownItem: string;
|
|
484
528
|
};
|
|
485
529
|
spacing: {
|
|
@@ -515,6 +559,7 @@ export declare const useActiveTheme: () => {
|
|
|
515
559
|
focusedOptionBorder: string;
|
|
516
560
|
standby: string;
|
|
517
561
|
success: string;
|
|
562
|
+
delayedStatusIcon: string;
|
|
518
563
|
chainIconBorder: string;
|
|
519
564
|
modalBackdrop: string;
|
|
520
565
|
modalBackground: string;
|
|
@@ -611,6 +656,9 @@ export declare const useActiveTheme: () => {
|
|
|
611
656
|
modalTopBarHeight: string;
|
|
612
657
|
};
|
|
613
658
|
fonts: {
|
|
659
|
+
buttonTextPrimary: string;
|
|
660
|
+
buttonTextSecondary: string;
|
|
661
|
+
buttonTextTertiary: string;
|
|
614
662
|
body: string;
|
|
615
663
|
};
|
|
616
664
|
fontWeight: {
|
|
@@ -663,6 +711,18 @@ export declare const useActiveTheme: () => {
|
|
|
663
711
|
fontSize: string;
|
|
664
712
|
lineHeight: string;
|
|
665
713
|
};
|
|
714
|
+
buttonTextPrimary: {
|
|
715
|
+
fontSize: string;
|
|
716
|
+
lineHeight: string;
|
|
717
|
+
};
|
|
718
|
+
buttonTextSecondary: {
|
|
719
|
+
fontSize: string;
|
|
720
|
+
lineHeight: string;
|
|
721
|
+
};
|
|
722
|
+
buttonTextTertiary: {
|
|
723
|
+
fontSize: string;
|
|
724
|
+
lineHeight: string;
|
|
725
|
+
};
|
|
666
726
|
modalTopbarSubtitle: {
|
|
667
727
|
fontSize: string;
|
|
668
728
|
lineHeight: string;
|
|
@@ -707,15 +767,21 @@ export declare const useActiveTheme: () => {
|
|
|
707
767
|
notification: string;
|
|
708
768
|
qrCode: string;
|
|
709
769
|
buttonShadow: string;
|
|
770
|
+
buttonShadowTertiary: string;
|
|
710
771
|
buttonFocusedShadow: string;
|
|
711
|
-
buttonHoverShadow: string;
|
|
712
772
|
buttonFocusedShadowTertiary: string;
|
|
773
|
+
buttonHoverShadow: string;
|
|
713
774
|
buttonHoverShadowTertiary: string;
|
|
714
775
|
buttonDisabledShadow: string;
|
|
776
|
+
buttonDisabledShadowTertiary: string;
|
|
715
777
|
buttonInnerShadow: string;
|
|
778
|
+
buttonInnerShadowTertiary: string;
|
|
716
779
|
buttonFocusedInnerShadow: string;
|
|
780
|
+
buttonFocusedInnerShadowTertiary: string;
|
|
717
781
|
buttonHoverInnerShadow: string;
|
|
782
|
+
buttonHoverInnerShadowTertiary: string;
|
|
718
783
|
buttonDisabledInnerShadow: string;
|
|
784
|
+
buttonDisabledInnerShadowTertiary: string;
|
|
719
785
|
selectedDropdownItem: string;
|
|
720
786
|
};
|
|
721
787
|
spacing: {
|
|
@@ -24,7 +24,7 @@ export declare function useWalletConnectOpenState(): {
|
|
|
24
24
|
};
|
|
25
25
|
export declare function useConnectModal(onClose?: () => void): {
|
|
26
26
|
connectModalOpen: boolean;
|
|
27
|
-
openConnectModal: ((
|
|
27
|
+
openConnectModal: (() => void) | undefined;
|
|
28
28
|
};
|
|
29
29
|
export declare function useFunCheckoutModal(): {
|
|
30
30
|
funCheckoutModalOpen: boolean;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
+
import { chainMetadataById } from '@funkit/chains';
|
|
1
2
|
import type { FunkitConnectChain } from './FunkitConnectChainContext';
|
|
2
|
-
export
|
|
3
|
-
[k: string]: {
|
|
4
|
-
name?: string;
|
|
5
|
-
iconUrl: string;
|
|
6
|
-
iconBackground: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
3
|
+
export { chainMetadataById };
|
|
9
4
|
/** @description Decorates an array of wagmi `Chain` objects with FunkitConnectChain property overrides */
|
|
10
5
|
export declare const provideFunkitConnectChains: <Chain extends FunkitConnectChain>(chains: readonly [Chain, ...Chain[]] | Chain[]) => Chain[];
|
|
11
6
|
export declare const groupChainsById: (chains: FunkitConnectChain[]) => Record<number, FunkitConnectChain>;
|
|
@@ -12,7 +12,7 @@ type Blurs = 'tiny' | 'small' | 'large' | 'none';
|
|
|
12
12
|
type FontSizeType = 'regular' | 'small';
|
|
13
13
|
interface BaseThemeOptions {
|
|
14
14
|
customFontWeights?: Partial<ThemeVars['fontWeight']>;
|
|
15
|
-
customFontFamily?: string
|
|
15
|
+
customFontFamily?: string | Partial<ThemeVars['fonts']>;
|
|
16
16
|
customFontSizings?: Partial<ThemeVars['fontSize']>;
|
|
17
17
|
customBorderRadiuses?: Partial<ThemeVars['radii']>;
|
|
18
18
|
customBorderWidths?: Partial<ThemeVars['borderWidths']>;
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type Address, type Hex } from 'viem';
|
|
|
5
5
|
import type { UseConfigReturnType } from 'wagmi';
|
|
6
6
|
import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
|
|
7
7
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
8
|
-
import { type
|
|
8
|
+
import { type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
9
9
|
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
10
10
|
export declare const BROKERAGE_TIME_ESTIMATE_MS = 0;
|
|
11
11
|
export declare const BANK_TIME_ESTIMATE_MS = 0;
|
|
@@ -162,5 +162,4 @@ export declare function computeDisplayDestinationToken(checkoutConfig: FunkitChe
|
|
|
162
162
|
stakingTokenSymbol: string;
|
|
163
163
|
stakingTokenIcon: string;
|
|
164
164
|
};
|
|
165
|
-
export declare function isLayerZeroOftCheckout(apiKey: string, checkoutItem: FunkitActiveCheckoutItem | null): boolean;
|
|
166
165
|
export {};
|
|
@@ -49,7 +49,7 @@ export declare const flagConfig: {
|
|
|
49
49
|
readonly if_any: [{
|
|
50
50
|
readonly key: "apiKey";
|
|
51
51
|
readonly type: "isAnyOf";
|
|
52
|
-
readonly values: ["
|
|
52
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "1QxzeJ4XKT78ba86whLct6sc7dW60Dl461UVWFdw", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
53
53
|
}];
|
|
54
54
|
readonly value: true;
|
|
55
55
|
}];
|
|
@@ -156,14 +156,6 @@ export declare const flagConfig: {
|
|
|
156
156
|
readonly show_info_banner: {
|
|
157
157
|
readonly type: "string";
|
|
158
158
|
readonly default_value: string;
|
|
159
|
-
readonly overrides: [{
|
|
160
|
-
readonly if_any: [{
|
|
161
|
-
readonly key: "apiKey";
|
|
162
|
-
readonly type: "isAnyOf";
|
|
163
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
164
|
-
}];
|
|
165
|
-
readonly value: string;
|
|
166
|
-
}];
|
|
167
159
|
};
|
|
168
160
|
readonly checkout_notifications_refresh_interval: {
|
|
169
161
|
readonly type: "string";
|
|
@@ -212,13 +204,6 @@ export declare const flagConfig: {
|
|
|
212
204
|
readonly type: "boolean";
|
|
213
205
|
readonly default_value: true;
|
|
214
206
|
readonly overrides: [Override<boolean>, {
|
|
215
|
-
readonly if_any: [{
|
|
216
|
-
readonly key: "userId";
|
|
217
|
-
readonly type: "isAnyOf";
|
|
218
|
-
readonly values: ["0x735D82176A8F35a7d63098769C10017b31D74395", "0xa43901c63f7702C407378E55E0d0EB4064a2AE31", "0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0x10678F46609C58e25d48381Ce7D663E2f1Fe39Fc", "0x046Bd992936802dDe82fed9a8Ec64d6AD70DC634", "0x3b023b1D4B01A2f82f0872aB7E0E80eC521C3406", "0x1B465e27E6885Ce804638c8775c315bFdA812913", "0x6FfB6c600c7CACa4F94c8E7B6Fa5350240AA9210"];
|
|
219
|
-
}];
|
|
220
|
-
readonly value: true;
|
|
221
|
-
}, {
|
|
222
207
|
readonly if_any: [{
|
|
223
208
|
readonly key: "apiKey";
|
|
224
209
|
readonly type: "isAnyOf";
|
|
@@ -243,19 +228,10 @@ export declare const flagConfig: {
|
|
|
243
228
|
}];
|
|
244
229
|
readonly value: true;
|
|
245
230
|
}, Override<boolean>, {
|
|
246
|
-
readonly
|
|
247
|
-
readonly pct: 50;
|
|
248
|
-
readonly type: "pctRollout";
|
|
249
|
-
readonly key: "userId";
|
|
250
|
-
}, {
|
|
231
|
+
readonly if_any: [{
|
|
251
232
|
readonly key: "apiKey";
|
|
252
233
|
readonly type: "isAnyOf";
|
|
253
|
-
readonly values: ["
|
|
254
|
-
}];
|
|
255
|
-
readonly if_any: [{
|
|
256
|
-
readonly pct: 2;
|
|
257
|
-
readonly type: "pctRollout";
|
|
258
|
-
readonly key: "userId";
|
|
234
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
259
235
|
}];
|
|
260
236
|
readonly value: true;
|
|
261
237
|
}];
|
|
@@ -271,17 +247,10 @@ export declare const flagConfig: {
|
|
|
271
247
|
}];
|
|
272
248
|
readonly value: true;
|
|
273
249
|
}, Override<boolean>, {
|
|
274
|
-
readonly if_any: [{
|
|
275
|
-
readonly key: "userId";
|
|
276
|
-
readonly type: "isAnyOf";
|
|
277
|
-
readonly values: ["0x6ec0c2f25d323e7779925Cc20c3740101f990d9F", "0xbeFE12aA8cBa36DD79F50eE5E23828adB62f2FD6", "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6", "0xda6b07Eb94f699F511a943e9bFC12B64B7fe3486", "0x0D6e43CA32545B3dc2FE6f93AafBD7e640F548d4", "0x236c60C57a8B9ca563Fb0dA5199FDdCB686d91E8", "0x4a1457fa2845bAfE8D3909cA3C5ac6107be312Dd", "0xfCB8B2d294eD7373B3B590dd7C0CBC430d41a9a0", "0x9CB7F86F360459cC96C74a0F81aF2C4cC7a54bd2", "0xbC805309dde14dFC14f91f7D4Cb9972Ecc915D39", "0xbD31535c457298E0b77AC8EA25DfE3A9BE165cBf", "0xA7B7D4caC72EeE278Af02121E4b2b782A89AD6f9"];
|
|
278
|
-
}];
|
|
279
|
-
readonly value: true;
|
|
280
|
-
}, {
|
|
281
250
|
readonly if_any: [{
|
|
282
251
|
readonly key: "apiKey";
|
|
283
252
|
readonly type: "isAnyOf";
|
|
284
|
-
readonly values: ["
|
|
253
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
285
254
|
}];
|
|
286
255
|
readonly value: true;
|
|
287
256
|
}, {
|