@funkit/connect 1.0.13 → 1.0.14
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 +19 -0
- package/dist/{chunk-JLKS6NET.js → chunk-AF763GD5.js} +2 -1
- package/dist/{chunk-2NNNYGQA.js → chunk-I4LVVIYS.js} +2 -1
- package/dist/components/FunContainer/FunContainer.d.ts +3 -1
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +18 -2
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitSandboxContext.d.ts +3 -0
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +4 -0
- package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +5 -0
- package/dist/css/sprinkles.css.d.ts +2 -0
- package/dist/index.css +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +404 -284
- package/dist/themes/darkTheme.d.ts +1 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +1 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/assets.d.ts +6 -0
- package/dist/utils/moonpay.d.ts +1 -0
- 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 +75 -75
- 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 +3 -3
- package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 1.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ac224f2: feat: new config termsFontSize
|
|
8
|
+
- cfe67bb: feat: configurable background scroll
|
|
9
|
+
- 2a54136: fix: initial input styling, disable scrolling
|
|
10
|
+
- 2a54136: fix: login auto executes checkout at times
|
|
11
|
+
- 7468bbc: fix: wallet balance pre-emptive check
|
|
12
|
+
- 7468bbc: fix: config
|
|
13
|
+
- 72ac22f: feat: moonpay widget customization
|
|
14
|
+
- 5de6985: feat: new config `appLogoBackgroundColor`
|
|
15
|
+
- 5de6985: feat: new config `web2OauthLogins`, default to have apple oauth switched off
|
|
16
|
+
- 5de6985: refactor: consistent text on wallet balance
|
|
17
|
+
- 5de6985: feat: prioritized logins should show up as first expanded container
|
|
18
|
+
- Updated dependencies [72ac22f]
|
|
19
|
+
- @funkit/core@1.0.5
|
|
20
|
+
- @funkit/wagmi-tools@1.0.6
|
|
21
|
+
|
|
3
22
|
## 1.0.13
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -87,7 +87,8 @@ var lightTheme = ({
|
|
|
87
87
|
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
88
88
|
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.12)",
|
|
89
89
|
walletLogo: "0px 2px 16px rgba(0, 0, 0, 0.16)"
|
|
90
|
-
}
|
|
90
|
+
},
|
|
91
|
+
moonpayTheme: "light"
|
|
91
92
|
});
|
|
92
93
|
lightTheme.accentColors = accentColors;
|
|
93
94
|
|
|
@@ -87,7 +87,8 @@ var darkTheme = ({
|
|
|
87
87
|
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
88
88
|
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
89
89
|
walletLogo: "0px 2px 16px rgba(0, 0, 0, 0.16)"
|
|
90
|
-
}
|
|
90
|
+
},
|
|
91
|
+
moonpayTheme: "dark"
|
|
91
92
|
});
|
|
92
93
|
darkTheme.accentColors = accentColors;
|
|
93
94
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './FunContainer.css';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { BoxProps } from '../Box/Box';
|
|
3
4
|
export interface FunContainerProps {
|
|
4
5
|
title: string;
|
|
5
6
|
titleSuffix?: React.ReactNode;
|
|
@@ -7,5 +8,6 @@ export interface FunContainerProps {
|
|
|
7
8
|
isCollapsed?: boolean;
|
|
8
9
|
showHoverEffect?: boolean;
|
|
9
10
|
onClick?: () => void;
|
|
11
|
+
titlePaddingBottom?: BoxProps['paddingBottom'];
|
|
10
12
|
}
|
|
11
|
-
export declare function FunContainer({ children, title, titleSuffix, isCollapsible, isCollapsed, showHoverEffect, onClick, }: PropsWithChildren<FunContainerProps>): React.JSX.Element;
|
|
13
|
+
export declare function FunContainer({ children, title, titleSuffix, isCollapsible, isCollapsed, showHoverEffect, onClick, titlePaddingBottom, }: PropsWithChildren<FunContainerProps>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mpClass: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PaymentMethod } from '../../consts/payment';
|
|
3
3
|
import { BoxProps } from '../Box/Box';
|
|
4
|
+
import { FunkitOauthLoginMethod } from './FunkitWeb2Provider';
|
|
4
5
|
export interface FunkitTextCustomizationsConfig {
|
|
5
6
|
selectPaymentMethod: string;
|
|
6
7
|
brokerageOrExchange: string;
|
|
@@ -16,10 +17,16 @@ interface FunkitLoginOptionsConfig {
|
|
|
16
17
|
web2: boolean;
|
|
17
18
|
web3: boolean;
|
|
18
19
|
prioritizeWeb2Logins?: boolean;
|
|
20
|
+
/** Enables oAuth logins. Each oauth type requires configuration in your app's privy dashboard. Please ensure to do so before enabling any. **/
|
|
21
|
+
web2OauthLogins: {
|
|
22
|
+
[FunkitOauthLoginMethod.GOOGLE]?: boolean;
|
|
23
|
+
[FunkitOauthLoginMethod.TWITTER]?: boolean;
|
|
24
|
+
[FunkitOauthLoginMethod.APPLE]?: boolean;
|
|
25
|
+
};
|
|
19
26
|
}
|
|
20
27
|
interface FunkitAccountOptionsConfig {
|
|
21
28
|
/** Whether end users can deposit usdc/eth from the account modal **/
|
|
22
|
-
|
|
29
|
+
allowDepositing?: boolean;
|
|
23
30
|
}
|
|
24
31
|
interface FunkitPaymentsConfig {
|
|
25
32
|
/** If available, the specified payment method will be selected by default during checkout or deposits **/
|
|
@@ -32,12 +39,16 @@ interface FunkitPaymentsConfig {
|
|
|
32
39
|
export type FunkitConfig = {
|
|
33
40
|
/** Funkit api key **/
|
|
34
41
|
apiKey: string;
|
|
35
|
-
/** Privy
|
|
42
|
+
/** Privy appId. It is recommended for customers to apply for their own at https://dashboard.privy.io **/
|
|
36
43
|
privyAppId: string;
|
|
37
44
|
/** App name **/
|
|
38
45
|
appName: string;
|
|
39
46
|
/** App logo (rendered as 80px x 80px) **/
|
|
40
47
|
appLogoSrc?: string;
|
|
48
|
+
/** App logo background color (defaults to transparent) **/
|
|
49
|
+
appLogoBackgroundColor?: string;
|
|
50
|
+
/** Whether app's background is scrollable when a widget is active **/
|
|
51
|
+
allowBackgroundScroll?: boolean;
|
|
41
52
|
/** Text customizations across all widgets **/
|
|
42
53
|
textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
|
|
43
54
|
/** Login modal configuration **/
|
|
@@ -46,8 +57,13 @@ export type FunkitConfig = {
|
|
|
46
57
|
accountModalConfig?: Partial<FunkitAccountOptionsConfig>;
|
|
47
58
|
/** Payments configuration **/
|
|
48
59
|
paymentsConfig?: Partial<FunkitPaymentsConfig>;
|
|
60
|
+
/** T&Cs font size **/
|
|
61
|
+
termsFontSize?: number;
|
|
49
62
|
};
|
|
50
63
|
interface FinalFunkitConfigInternal extends FunkitConfig {
|
|
64
|
+
appLogoSrc: string;
|
|
65
|
+
appLogoBackgroundColor: string;
|
|
66
|
+
allowBackgroundScroll: boolean;
|
|
51
67
|
textCustomizations: FunkitTextCustomizationsConfig;
|
|
52
68
|
loginModalConfig: FunkitLoginOptionsConfig;
|
|
53
69
|
accountModalConfig: FunkitAccountOptionsConfig;
|
|
@@ -28,6 +28,7 @@ interface FunkitProviderInnerProps {
|
|
|
28
28
|
locale?: Locale;
|
|
29
29
|
funkitConfig: FunkitConfig;
|
|
30
30
|
debug?: boolean | undefined;
|
|
31
|
+
sandbox?: boolean | undefined;
|
|
31
32
|
}
|
|
32
33
|
export type FunkitWagmiConfig = Omit<GetDefaultConfigParameters, 'funkitApiKey' | 'initialChainId' | 'chains'> & {
|
|
33
34
|
chains: Chain[];
|
|
@@ -67,6 +67,7 @@ export declare const defaultTheme: {
|
|
|
67
67
|
selectedWallet: string;
|
|
68
68
|
walletLogo: string;
|
|
69
69
|
};
|
|
70
|
+
moonpayTheme: string;
|
|
70
71
|
fonts: {
|
|
71
72
|
body: string;
|
|
72
73
|
};
|
|
@@ -174,6 +175,7 @@ export declare const useActiveTheme: () => {
|
|
|
174
175
|
blurs: {
|
|
175
176
|
modalOverlay: string;
|
|
176
177
|
};
|
|
178
|
+
moonpayTheme: string;
|
|
177
179
|
};
|
|
178
180
|
setTheme: (theme: ThemeVars) => void;
|
|
179
181
|
lightMode: {
|
|
@@ -256,6 +258,7 @@ export declare const useActiveTheme: () => {
|
|
|
256
258
|
blurs: {
|
|
257
259
|
modalOverlay: string;
|
|
258
260
|
};
|
|
261
|
+
moonpayTheme: string;
|
|
259
262
|
} | null | undefined;
|
|
260
263
|
darkMode: {
|
|
261
264
|
colors: {
|
|
@@ -337,6 +340,7 @@ export declare const useActiveTheme: () => {
|
|
|
337
340
|
blurs: {
|
|
338
341
|
modalOverlay: string;
|
|
339
342
|
};
|
|
343
|
+
moonpayTheme: string;
|
|
340
344
|
} | null | undefined;
|
|
341
345
|
toggleTheme: () => void;
|
|
342
346
|
};
|
|
@@ -30,6 +30,11 @@ export declare enum PrivyLoginMethod {
|
|
|
30
30
|
twitter_oauth = "twitter_oauth",
|
|
31
31
|
apple_oauth = "apple_oauth"
|
|
32
32
|
}
|
|
33
|
+
export declare enum FunkitOauthLoginMethod {
|
|
34
|
+
GOOGLE = "google_oauth",
|
|
35
|
+
TWITTER = "twitter_oauth",
|
|
36
|
+
APPLE = "apple_oauth"
|
|
37
|
+
}
|
|
33
38
|
interface FunkitWeb2ProviderProps {
|
|
34
39
|
children: ReactNode;
|
|
35
40
|
}
|
|
@@ -80,6 +80,7 @@ declare const themeContractValues: {
|
|
|
80
80
|
blurs: {
|
|
81
81
|
modalOverlay: string;
|
|
82
82
|
};
|
|
83
|
+
moonpayTheme: string;
|
|
83
84
|
};
|
|
84
85
|
export type ThemeVars = typeof themeContractValues;
|
|
85
86
|
export declare const themeVars: {
|
|
@@ -162,6 +163,7 @@ export declare const themeVars: {
|
|
|
162
163
|
blurs: {
|
|
163
164
|
modalOverlay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
164
165
|
};
|
|
166
|
+
moonpayTheme: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
165
167
|
};
|
|
166
168
|
export declare const largeScreenMinWidth = 768;
|
|
167
169
|
declare const responsiveProperties: {
|
package/dist/index.css
CHANGED
|
@@ -4613,6 +4613,11 @@ input[type=number] {
|
|
|
4613
4613
|
color: inputFieldPrimary;
|
|
4614
4614
|
}
|
|
4615
4615
|
|
|
4616
|
+
/* vanilla-extract-css-ns:src/components/FunPayments/FunPaymentMoonpayType.css.ts.vanilla.css?source=Ll8xa21wZXlmMCBpZnJhbWUgewogIGJvcmRlcjogbm9uZTsKfQ== */
|
|
4617
|
+
[data-rk] ._1kmpeyf0 iframe {
|
|
4618
|
+
border: none;
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4616
4621
|
/* vanilla-extract-css-ns:src/components/SkeletalLoader/SkeletalLoader.css.ts.vanilla.css?source=QGtleWZyYW1lcyBhaG55YjEwIHsKICAwJSB7CiAgICBvcGFjaXR5OiAwLjY7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDEpOwogIH0KICA1MCUgewogICAgb3BhY2l0eTogMTsKICAgIHRyYW5zZm9ybTogc2NhbGUoMSwgMS4wMSk7CiAgfQogIDEwMCUgewogICAgb3BhY2l0eTogMC40OwogICAgdHJhbnNmb3JtOiBzY2FsZSgxKTsKICB9Cn0KLmFobnliMTEgewogIGFuaW1hdGlvbjogYWhueWIxMCAxcyBpbmZpbml0ZTsKfQ== */
|
|
4617
4622
|
@keyframes ahnyb10 {
|
|
4618
4623
|
0% {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { useFunkitCheckout } from './components/FunkitProvider/FunkitCheckoutCon
|
|
|
3
3
|
export type { FunkitConfig } from './components/FunkitProvider/FunkitConfigContext';
|
|
4
4
|
export { FunkitProvider } from './components/FunkitProvider/FunkitProvider';
|
|
5
5
|
export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
|
|
6
|
+
export { FunkitOauthLoginMethod } from './components/FunkitProvider/FunkitWeb2Provider';
|
|
6
7
|
export { WalletButton } from './components/WalletButton/WalletButton';
|
|
7
8
|
export { getDefaultWallets } from './wallets/getDefaultWallets';
|
|
8
9
|
export { __private__ } from './__private__';
|