@funkit/connect 7.0.0 → 7.0.3-next.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 +41 -0
- package/dist/{chunk-DN7UTQK5.js → chunk-5GV4UXWB.js} +3 -3
- package/dist/{chunk-OVMNR35O.js → chunk-IVO7KGHT.js} +3 -3
- package/dist/components/FunPoweredTagline/FunPoweredTagline.css.d.ts +1 -0
- package/dist/components/FunPoweredTagline/FunPoweredTagline.d.ts +4 -1
- package/dist/consts/customers.d.ts +2 -0
- package/dist/consts/funkit.d.ts +0 -17
- package/dist/domains/asset.d.ts +2 -1
- package/dist/domains/feeEstimate.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -0
- package/dist/hooks/useCheckoutTransferInit.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/index.css +16 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1336 -800
- package/dist/locales/index.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useAccountBalanceTransfer.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +0 -18
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +1 -34
- package/dist/utils/flags/config.d.ts +3 -3
- package/dist/utils/lighter.d.ts +4 -0
- package/dist/wallets/walletConnectors/index.js +13 -13
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 7.0.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a3a4275: feat(connect): enable monad for hyena + based
|
|
8
|
+
- 361d54c: feat(connect): rounding to the nearest tick size
|
|
9
|
+
- 8feddc9: set default modal size medium
|
|
10
|
+
- f7fa2bc: disable non mainnet eth for lighter eth
|
|
11
|
+
- d0fdef4: add insufficient eth message
|
|
12
|
+
- 087557e: feat(connect): migrate showpoweredtagline flag to statsig
|
|
13
|
+
- e3f0125: add new check for isLighterEthSpot
|
|
14
|
+
- Updated dependencies [3601d23]
|
|
15
|
+
- Updated dependencies [f0f39af]
|
|
16
|
+
- @funkit/fun-relay@2.1.16-next.0
|
|
17
|
+
- @funkit/chains@0.5.2-next.0
|
|
18
|
+
|
|
19
|
+
## 7.0.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- df73659: chore: bump versions
|
|
24
|
+
- Updated dependencies [df73659]
|
|
25
|
+
- @funkit/api-base@1.12.21
|
|
26
|
+
- @funkit/chains@0.5.1
|
|
27
|
+
- @funkit/fun-relay@2.1.15
|
|
28
|
+
- @funkit/utils@1.1.21
|
|
29
|
+
|
|
30
|
+
## 7.0.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 3518f7b: rename meld flow variable name and remove core deps
|
|
35
|
+
- 2b89d85: chore(connect): remove unused translations
|
|
36
|
+
- 96fd4d4: feat(connect): reduce L1 fee estimate to $1
|
|
37
|
+
- cf2b385: feat: add french locale
|
|
38
|
+
- b693f57: feat(connect): update withdrawal recipient address placeholder for solana
|
|
39
|
+
- eec5311: refactor(connect): deprecate remaining loginConfig types
|
|
40
|
+
- d22ffac: feat(connect): add border to modal footer (above fun technology logo)
|
|
41
|
+
- Updated dependencies [208bcd7]
|
|
42
|
+
- @funkit/api-base@1.12.20
|
|
43
|
+
|
|
3
44
|
## 7.0.0
|
|
4
45
|
|
|
5
46
|
### Major Changes
|
|
@@ -142,13 +142,13 @@ var lightTheme = ({
|
|
|
142
142
|
// lightStroke
|
|
143
143
|
modalFooterDivider: "#F7F7F7",
|
|
144
144
|
// lightStroke
|
|
145
|
-
spinnerBackground: "rgba(255, 255, 255, 0.3)",
|
|
145
|
+
spinnerBackground: customColors?.mediumStroke ?? "rgba(255, 255, 255, 0.3)",
|
|
146
146
|
// 30% buttonTextPrimary
|
|
147
|
-
spinnerIndicator: "#FFF",
|
|
147
|
+
spinnerIndicator: customColors?.primaryText ?? "#FFF",
|
|
148
148
|
// 100% buttonTextPrimary
|
|
149
149
|
spinnerBackgroundVerifyAccount: "rgba(255, 255, 255, 0.3)",
|
|
150
150
|
// 30% buttonTextPrimary
|
|
151
|
-
spinnerIndicatorVerifyAccount: "#FFF",
|
|
151
|
+
spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#FFF",
|
|
152
152
|
// 100% buttonTextPrimary
|
|
153
153
|
// Override colors
|
|
154
154
|
...customColors || {},
|
|
@@ -142,13 +142,13 @@ var darkTheme = ({
|
|
|
142
142
|
// lightStroke
|
|
143
143
|
modalFooterDivider: "#333333",
|
|
144
144
|
// lightStroke
|
|
145
|
-
spinnerBackground: "rgba(0, 0, 0, 0.3)",
|
|
145
|
+
spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
|
|
146
146
|
// 30% buttonTextPrimary
|
|
147
|
-
spinnerIndicator: "#000",
|
|
147
|
+
spinnerIndicator: customColors?.primaryText ?? "#000",
|
|
148
148
|
// 100% buttonTextPrimary
|
|
149
149
|
spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
|
|
150
150
|
// 30% buttonTextPrimary
|
|
151
|
-
spinnerIndicatorVerifyAccount: "#000",
|
|
151
|
+
spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
|
|
152
152
|
// 100% buttonTextPrimary
|
|
153
153
|
// Override colors
|
|
154
154
|
...customColors || {},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const taglineBorderTop: string;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface FunPoweredTaglineProps {
|
|
3
|
+
enableBorderTop?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function FunPoweredTagline({ enableBorderTop, }: FunPoweredTaglineProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
1
2
|
export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
|
|
2
3
|
export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
|
|
3
4
|
export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
|
@@ -13,3 +14,4 @@ export declare function isHyenaCustomer(apiKey: string): apiKey is "pLQBJsA6zS9t
|
|
|
13
14
|
export declare function isAvantisCustomer(apiKey: string): apiKey is "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2";
|
|
14
15
|
export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu";
|
|
15
16
|
export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2";
|
|
17
|
+
export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): boolean | undefined;
|
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -4,25 +4,8 @@ import type { Address } from 'viem';
|
|
|
4
4
|
* e.g. on Base it is ETH, but on Polygon it is MATIC/POL. It is not one specific real token address.
|
|
5
5
|
**/
|
|
6
6
|
export declare const NATIVE_TOKEN = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
7
|
-
export declare const FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
8
|
-
export declare const DEFAULT_FUNWALLET_INDEX = 0;
|
|
9
7
|
export declare const FUN_ORG_NAME = "Fun.xyz";
|
|
10
8
|
export declare const FUN_TERMS_URL = "https://fun.xyz/terms";
|
|
11
|
-
export declare enum PrivyLoginMethod {
|
|
12
|
-
email = "email",
|
|
13
|
-
farcaster = "farcaster",
|
|
14
|
-
google_oauth = "google_oauth",
|
|
15
|
-
twitter_oauth = "twitter_oauth",
|
|
16
|
-
apple_oauth = "apple_oauth"
|
|
17
|
-
}
|
|
18
|
-
export declare enum FunkitSocialLoginMethod {
|
|
19
|
-
GOOGLE = "google_oauth",
|
|
20
|
-
TWITTER = "twitter_oauth",
|
|
21
|
-
APPLE = "apple_oauth",
|
|
22
|
-
FARCASTER = "farcaster"
|
|
23
|
-
}
|
|
24
|
-
export type FunkitLoginType = 'web2' | 'web3';
|
|
25
|
-
export type FunkitPrioritizedLoginType = 'none' | FunkitLoginType;
|
|
26
9
|
export interface FunkitUserInfoBase {
|
|
27
10
|
/** Unique identifier of the user **/
|
|
28
11
|
id: string | Address;
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function isNativeTokenAddress(address: Address): boolean;
|
|
|
9
9
|
export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean;
|
|
10
10
|
export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
|
|
11
11
|
interface AssetUsableToPayParms {
|
|
12
|
+
apiKey: string;
|
|
12
13
|
config: FunkitCheckoutConfig;
|
|
13
14
|
payerAddress: string;
|
|
14
15
|
paymentMethod: PaymentMethod;
|
|
@@ -21,7 +22,7 @@ interface AssetUsableToPayParms {
|
|
|
21
22
|
minUsdRequired?: number;
|
|
22
23
|
t: TFunction;
|
|
23
24
|
}
|
|
24
|
-
export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minUsdRequired, t, }: AssetUsableToPayParms) => {
|
|
25
|
+
export declare const isAssetUsableToPayForCheckout: ({ apiKey, config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minUsdRequired, t, }: AssetUsableToPayParms) => {
|
|
25
26
|
isUsable: boolean;
|
|
26
27
|
reason: string;
|
|
27
28
|
minUsdRequired?: number;
|
|
@@ -14,6 +14,7 @@ interface DirectExecutionQuoteRequestParamsBase {
|
|
|
14
14
|
toTokenAddress: Address;
|
|
15
15
|
recipientAddress: Address;
|
|
16
16
|
senderAddress?: Address;
|
|
17
|
+
tickSize?: bigint;
|
|
17
18
|
}
|
|
18
19
|
interface RegularDEQuoteRequest extends DirectExecutionQuoteRequestParamsBase {
|
|
19
20
|
toTokenAmount: number;
|
|
@@ -19,6 +19,7 @@ export declare function getCheckoutTokenTransferParams({ checkoutConfig, userId,
|
|
|
19
19
|
recipientAddr: FunAddress;
|
|
20
20
|
actionType: string | undefined;
|
|
21
21
|
} | undefined;
|
|
22
|
+
export declare function useIsQRCodeTransferEnabled(): boolean;
|
|
22
23
|
/**
|
|
23
24
|
* creates QR code transfer EOA
|
|
24
25
|
*/
|
|
@@ -5,7 +5,7 @@ export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
|
5
5
|
}): {
|
|
6
6
|
isFiatEnabled: boolean;
|
|
7
7
|
isTokenTransferEnabled: boolean;
|
|
8
|
-
|
|
8
|
+
isMeldEnabled: boolean;
|
|
9
9
|
isBrokerageEnabled: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
|
package/dist/index.css
CHANGED
|
@@ -9826,6 +9826,22 @@
|
|
|
9826
9826
|
box-shadow: 0px -1px 1px 0px rgba(0, 0, 0, 0.09) inset;
|
|
9827
9827
|
}
|
|
9828
9828
|
|
|
9829
|
+
/* vanilla-extract-css-ns:src/components/FunPoweredTagline/FunPoweredTagline.css.ts.vanilla.css?source=Ll8xd2RnazZpMCB7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIG1hcmdpbi10b3A6IDZweDsKICBwYWRkaW5nLXRvcDogdmFyKC0tcmstc3BhY2luZy1tb2RhbFBhZGRpbmdCb3R0b21Mb3dlcik7Cn0KLl8xd2RnazZpMDo6YmVmb3JlIHsKICBjb250ZW50OiAiIjsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbGlnaHRTdHJva2UpOwogIGhlaWdodDogMXB4OwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICB0b3A6IDA7CiAgbGVmdDogY2FsYygtMSAqICh2YXIoLS1yay1zcGFjaW5nLW1vZGFsQmFzZUhvcml6b250YWxQYWRkaW5nKSArIHZhcigtLXJrLXNwYWNpbmctbW9kYWxCb3R0b21Ib3Jpem9udGFsUGFkZGluZykpKTsKICByaWdodDogY2FsYygtMSAqICh2YXIoLS1yay1zcGFjaW5nLW1vZGFsQmFzZUhvcml6b250YWxQYWRkaW5nKSArIHZhcigtLXJrLXNwYWNpbmctbW9kYWxCb3R0b21Ib3Jpem9udGFsUGFkZGluZykpKTsKfQ== */
|
|
9830
|
+
[data-rk] ._1wdgk6i0 {
|
|
9831
|
+
position: relative;
|
|
9832
|
+
margin-top: 6px;
|
|
9833
|
+
padding-top: var(--rk-spacing-modalPaddingBottomLower);
|
|
9834
|
+
}
|
|
9835
|
+
[data-rk] ._1wdgk6i0::before {
|
|
9836
|
+
content: "";
|
|
9837
|
+
background-color: var(--rk-colors-lightStroke);
|
|
9838
|
+
height: 1px;
|
|
9839
|
+
position: absolute;
|
|
9840
|
+
top: 0;
|
|
9841
|
+
left: calc(-1 * (var(--rk-spacing-modalBaseHorizontalPadding) + var(--rk-spacing-modalBottomHorizontalPadding)));
|
|
9842
|
+
right: calc(-1 * (var(--rk-spacing-modalBaseHorizontalPadding) + var(--rk-spacing-modalBottomHorizontalPadding)));
|
|
9843
|
+
}
|
|
9844
|
+
|
|
9829
9845
|
/* vanilla-extract-css-ns:src/components/FunDivider/FunDivider.css.ts.vanilla.css?source=Ll8zZGtkc2MwIHsKICBib3JkZXItd2lkdGg6IDA7CiAgYm9yZGVyLXRvcC13aWR0aDogMXB4OwogIGJvcmRlci1zdHlsZTogc29saWQ7CiAgZmxleDogMTsKfQ== */
|
|
9830
9846
|
[data-rk] ._3dkdsc0 {
|
|
9831
9847
|
border-width: 0;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ export { Avatar as FunkitAvatar } from './components/Avatar/Avatar';
|
|
|
3
3
|
export { ConnectButton } from './components/ConnectButton/ConnectButton';
|
|
4
4
|
export { FunkitPaymentsIconLine } from './components/Icons/FunkitPaymentsIconLine';
|
|
5
5
|
export { createFunkitWagmiConfig, getDefaultChains, getDefaultTransports, } from './config/getDefaultConfig';
|
|
6
|
-
export
|
|
7
|
-
export { FunkitSocialLoginMethod, NATIVE_TOKEN } from './consts/funkit';
|
|
6
|
+
export { NATIVE_TOKEN } from './consts/funkit';
|
|
8
7
|
export { cssObjectFromTheme } from './css/cssObjectFromTheme';
|
|
9
8
|
export { cssStringFromTheme } from './css/cssStringFromTheme';
|
|
10
9
|
export type { ThemeVars } from './css/sprinkles.css';
|
|
@@ -33,7 +32,7 @@ export type { Theme, ThemeSet } from './providers/FunkitThemeProvider';
|
|
|
33
32
|
export { useActiveTheme } from './providers/FunkitThemeProvider';
|
|
34
33
|
export { useFunkitUserInfo } from './providers/GeneralWalletProvider';
|
|
35
34
|
export { useAccountModal, useChainModal, useConnectModal, } from './providers/ModalContext';
|
|
36
|
-
export type { FunkitUserInfo
|
|
35
|
+
export type { FunkitUserInfo } from './consts/funkit';
|
|
37
36
|
export { systemFontStack, type ThemeOptions } from './themes/baseTheme';
|
|
38
37
|
export { darkTheme } from './themes/darkTheme';
|
|
39
38
|
export { lightTheme } from './themes/lightTheme';
|