@funkit/connect 3.1.0 → 3.2.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 +38 -0
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/Dialog/Dialog.d.ts +4 -12
- package/dist/components/Dialog/hooks.d.ts +4 -0
- package/dist/components/FunAsset/FunAssetLoading.d.ts +4 -0
- package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +1 -0
- package/dist/components/FunButton/FunButton.d.ts +3 -1
- package/dist/components/FunButton/FunIconButton.d.ts +2 -9
- package/dist/components/FunNotification/FunNotification.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.d.ts +2 -4
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +4 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +20 -6
- package/dist/config/getDefaultConfig.d.ts +9 -9
- package/dist/consts/payment.d.ts +28 -2
- package/dist/css/sprinkles.css.d.ts +21 -21
- package/dist/hooks/useFunListeners.d.ts +0 -4
- package/dist/hooks/useMesh.d.ts +7 -5
- package/dist/hooks/useWalletAssets.d.ts +11 -0
- package/dist/index.css +1922 -1904
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14989 -14277
- package/dist/modals/CheckoutModal/CheckoutPrimaryInfo.d.ts +4 -2
- package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +4 -9
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +5 -5
- package/dist/modals/CheckoutModal/InputAmount.d.ts +7 -5
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +20 -0
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +3 -3
- package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +18 -0
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +8 -7
- package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +20 -0
- package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +13 -7
- package/dist/modals/CheckoutModal/SourceChange.d.ts +26 -0
- package/dist/modals/CheckoutModal/TransferSetup.d.ts +14 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +26 -26
- package/dist/modals/CheckoutModal/useAvailableBalanceForCheckout.d.ts +4 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +4 -2
- package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +4 -2
- package/dist/modals/CheckoutModal/useWalletAssetHoldings.d.ts +5 -0
- package/dist/providers/FunkitCheckoutContext.d.ts +5 -5
- package/dist/providers/FunkitConfigContext.d.ts +14 -0
- package/dist/providers/FunkitFlagsProvider.d.ts +25 -0
- package/dist/providers/FunkitMeshProvider.d.ts +14 -9
- package/dist/providers/FunkitMoonpayProvider.d.ts +1 -2
- package/dist/providers/GeneralWalletProvider.d.ts +14 -22
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/types/utils.d.ts +5 -0
- package/dist/utils/address.d.ts +4 -0
- package/dist/utils/assets.d.ts +7 -3
- package/dist/utils/checkout.d.ts +2 -6
- package/dist/utils/deposit.d.ts +2 -3
- package/dist/utils/flags/impl.d.ts +5 -22
- package/dist/utils/mesh.d.ts +14 -1
- 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 +63 -63
- 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 +5 -5
- package/dist/components/ConnectButton/formatAddress.d.ts +0 -2
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +0 -17
- package/dist/components/Icons/WalletIcon.d.ts +0 -2
- package/dist/hooks/useInputAmountRestriction.d.ts +0 -7
- package/dist/modals/CheckoutModal/PaymentSetup.d.ts +0 -38
- package/dist/modals/CheckoutModal/useBottomSection.d.ts +0 -2
- package/dist/utils/flags/index.d.ts +0 -12
- package/dist/wallets/walletConnectors/chunk-2EMZOYQI.js +0 -101
- package/dist/wallets/walletConnectors/chunk-5K4DIMYR.js +0 -95
- package/dist/wallets/walletConnectors/chunk-AUVBWDIK.js +0 -102
- package/dist/wallets/walletConnectors/chunk-AXPQHNUI.js +0 -71
- package/dist/wallets/walletConnectors/chunk-B7FHT3CB.js +0 -94
- package/dist/wallets/walletConnectors/chunk-EFIENLEE.js +0 -98
- package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +0 -27
- package/dist/wallets/walletConnectors/chunk-L7QI6PBN.js +0 -108
- package/dist/wallets/walletConnectors/chunk-QP2BIVXD.js +0 -73
- package/dist/wallets/walletConnectors/chunk-UWZQZY4S.js +0 -149
- package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +0 -96
- /package/dist/components/Icons/{Checked.d.ts → CheckIcon.d.ts} +0 -0
|
@@ -11,7 +11,7 @@ export declare function useModalState(): {
|
|
|
11
11
|
};
|
|
12
12
|
export declare function useAccountModal(): {
|
|
13
13
|
accountModalOpen: boolean;
|
|
14
|
-
openAccountModal: ((tab
|
|
14
|
+
openAccountModal: ((tab?: SelectedHomeTab | null) => void) | undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare function useChainModal(): {
|
|
17
17
|
chainModalOpen: boolean;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
2
|
+
export declare function formatAddress(address: string): string;
|
|
3
|
+
export declare function formatAddressLastFour(address: string): string;
|
|
4
|
+
export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PaymentMethod } from '../consts/payment';
|
|
2
2
|
import { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
import { FlagValues } from '../providers/FunkitFlagsProvider';
|
|
4
|
+
export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number, decimals: number) => number;
|
|
5
|
+
export declare const isAssetUsableToPayForCheckout: (flags: FlagValues, checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string, isWeb2Login: boolean, isWeb3Login: boolean) => {
|
|
5
6
|
isUsable: boolean;
|
|
6
7
|
reason: string;
|
|
7
8
|
};
|
|
@@ -29,7 +30,10 @@ export type RecommendedAsset = {
|
|
|
29
30
|
symbol: string;
|
|
30
31
|
label: string | null;
|
|
31
32
|
} | null;
|
|
32
|
-
export declare const getRecommendedAsset: (checkoutItem: FunkitActiveCheckoutItem, accountHoldingsMap: AssetHoldingsMap, isWeb3Login: boolean, isWeb2Login: boolean) => RecommendedAsset;
|
|
33
|
+
export declare const getRecommendedAsset: (flags: FlagValues, checkoutItem: FunkitActiveCheckoutItem, accountHoldingsMap: AssetHoldingsMap, isWeb3Login: boolean, isWeb2Login: boolean) => RecommendedAsset;
|
|
34
|
+
/**
|
|
35
|
+
* @returns formatted max usable USD balance from a given assets map */
|
|
36
|
+
export declare const getTotalAssetBalance: (assets: AssetHoldingsMap) => string;
|
|
33
37
|
/**
|
|
34
38
|
*
|
|
35
39
|
* @param {FunkitCheckoutConfig} checkoutConfig
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -84,15 +84,11 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
86
86
|
* Decorates a list of token strings with their chainId-specific tokenAddress and pickedChainId
|
|
87
|
-
* @param
|
|
87
|
+
* @param tokensChainMap Map of token strings e.g. ['ETH', 'MATIC', ...]
|
|
88
88
|
* @param targetChainId The targetChain identifier of the checkout
|
|
89
89
|
* @returns List of tokenItem objects
|
|
90
90
|
*/
|
|
91
|
-
export declare function decorateTokenList(tokensChainMap: {
|
|
92
|
-
[ticker: string]: {
|
|
93
|
-
[chainId: string]: true;
|
|
94
|
-
};
|
|
95
|
-
}, targetChainId: string, apiKey: string): Promise<{
|
|
91
|
+
export declare function decorateTokenList(tokensChainMap: Record<string, Set<string>>, targetChainId: string, apiKey: string): Promise<{
|
|
96
92
|
symbol: string;
|
|
97
93
|
tokenAddress: null | Hex;
|
|
98
94
|
tokenUnitPriceUsd: null | number;
|
package/dist/utils/deposit.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
}): boolean;
|
|
2
|
+
export declare const MAXIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 10000;
|
|
3
|
+
export declare function isAmountInvalidForMoonpay(amountUsd: number): boolean;
|
|
5
4
|
export declare function generateInsufficientAmountForMoonpayError(isShortened: boolean): string;
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import type { AbstractFlags,
|
|
1
|
+
import type { AbstractFlags, InferFlagType } from './types';
|
|
2
2
|
export interface UserContext {
|
|
3
3
|
apiKey: string;
|
|
4
4
|
userId?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private _config;
|
|
11
|
-
fetchFlagConfig: () => Promise<T>;
|
|
12
|
-
static createForTesting<T extends AbstractFlags>(flags: T, fetchFlagConfig: <T>() => Promise<T>): FeatureFlag<T>;
|
|
13
|
-
constructor(_config: T, fetchFlagConfig?: () => Promise<T>);
|
|
14
|
-
private flagConfig;
|
|
15
|
-
private userContext;
|
|
16
|
-
private derivedFlags;
|
|
17
|
-
private isUsingOnlineConfig;
|
|
18
|
-
init(userContext: UserContext): Promise<void>;
|
|
19
|
-
private deriveAllFlags;
|
|
20
|
-
private deriveFlag;
|
|
21
|
-
private evalCondition;
|
|
22
|
-
getBool(flagKey: FilterKeysBy<BooleanFlagConfig, T>, fallback: boolean): boolean;
|
|
23
|
-
getNumber(flagKey: FilterKeysBy<NumberFlagConfig, T>, fallback: number): number;
|
|
24
|
-
getString(flagKey: FilterKeysBy<StringFlagConfig, T>, fallback: string): string;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
6
|
+
export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
|
|
7
|
+
export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
|
|
8
|
+
[K in keyof T]?: InferFlagType<T[K]>;
|
|
9
|
+
};
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AssetHoldingsMap } from '../utils/assets';
|
|
1
2
|
export declare const FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
|
|
2
3
|
export declare enum MeshExchanges {
|
|
3
4
|
Robinhood = "Robinhood",
|
|
@@ -35,11 +36,15 @@ export declare const EXCHANGE_NAME_TO_TYPE: {
|
|
|
35
36
|
[x: string]: string;
|
|
36
37
|
};
|
|
37
38
|
export declare function fetchMeshLinkToken(funkitUserId: string, selectedExchange: MeshExchanges, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>;
|
|
39
|
+
interface CryptoCurrencyPosition {
|
|
40
|
+
symbol: string;
|
|
41
|
+
amount: number;
|
|
42
|
+
}
|
|
38
43
|
export declare function fetchMeshAccountCryptoHoldings({ authToken, apiKey, exchange, }: {
|
|
39
44
|
authToken: string;
|
|
40
45
|
apiKey: string;
|
|
41
46
|
exchange: MeshExchanges;
|
|
42
|
-
}): Promise<
|
|
47
|
+
}): Promise<CryptoCurrencyPosition[]>;
|
|
43
48
|
export declare function fetchMeshSupportedTokensByBrokerageAndSupportedFunkitChains({ exchange, apiKey, }: {
|
|
44
49
|
exchange: MeshExchanges;
|
|
45
50
|
apiKey: string;
|
|
@@ -52,3 +57,11 @@ export declare function fetchMeshSupportedTokensAndIdByChainIdAndBrokerage({ cha
|
|
|
52
57
|
meshSupportedTokens: string[];
|
|
53
58
|
meshNetworkId: string | undefined;
|
|
54
59
|
}>;
|
|
60
|
+
interface MeshAccountInfo {
|
|
61
|
+
authToken: string;
|
|
62
|
+
exchange: MeshExchanges;
|
|
63
|
+
targetChain: string;
|
|
64
|
+
apiKey: string;
|
|
65
|
+
}
|
|
66
|
+
export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo): Promise<AssetHoldingsMap>;
|
|
67
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KL5Z3XHJ.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IEVZW3XR.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LCOUKF2U.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
gateWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YIJ5ULO3.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
gateWallet
|
|
10
10
|
};
|
|
@@ -1,73 +1,79 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-BUUV6BS4.js";
|
|
5
2
|
import {
|
|
6
3
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DBP432DI.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-RVIZMVFR.js";
|
|
8
|
+
import {
|
|
9
|
+
talismanWallet
|
|
10
|
+
} from "./chunk-OTXHQMSG.js";
|
|
11
|
+
import {
|
|
12
|
+
tahoWallet
|
|
13
|
+
} from "./chunk-6AYBA6IH.js";
|
|
11
14
|
import {
|
|
12
15
|
tokenPocketWallet
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ISJYPD3T.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenaryWallet
|
|
16
19
|
} from "./chunk-FAYEL4JP.js";
|
|
17
20
|
import {
|
|
18
21
|
trustWallet
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X45WXZDO.js";
|
|
23
|
+
import {
|
|
24
|
+
uniswapWallet
|
|
25
|
+
} from "./chunk-QFRZGNNV.js";
|
|
20
26
|
import {
|
|
21
27
|
walletConnectWallet
|
|
22
28
|
} from "./chunk-OFU3PEVT.js";
|
|
23
29
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
oneInchWallet
|
|
31
|
+
} from "./chunk-I7MKK24W.js";
|
|
26
32
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-BUUV6BS4.js";
|
|
29
35
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-H5LLXNOI.js";
|
|
32
38
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
39
|
+
roninWallet
|
|
40
|
+
} from "./chunk-63YLN6R5.js";
|
|
35
41
|
import {
|
|
36
42
|
ramperWallet
|
|
37
43
|
} from "./chunk-TKXQYHWJ.js";
|
|
38
|
-
import {
|
|
39
|
-
roninWallet
|
|
40
|
-
} from "./chunk-25VW5TZP.js";
|
|
41
44
|
import {
|
|
42
45
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-OHJBALD3.js";
|
|
44
47
|
import {
|
|
45
48
|
safeWallet
|
|
46
49
|
} from "./chunk-Z2QCE6O6.js";
|
|
50
|
+
import {
|
|
51
|
+
safeheronWallet
|
|
52
|
+
} from "./chunk-FCIRHRFH.js";
|
|
47
53
|
import {
|
|
48
54
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AKAT37SI.js";
|
|
50
56
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-N3ELQYCY.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-ODRDT73B.js";
|
|
56
62
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
63
|
+
ledgerWallet
|
|
64
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
59
65
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-CVYXTHZ6.js";
|
|
62
68
|
import {
|
|
63
69
|
oktoWallet
|
|
64
70
|
} from "./chunk-MBQTOALG.js";
|
|
71
|
+
import {
|
|
72
|
+
okxWallet
|
|
73
|
+
} from "./chunk-5HXH52SO.js";
|
|
65
74
|
import {
|
|
66
75
|
omniWallet
|
|
67
76
|
} from "./chunk-II6YBG2B.js";
|
|
68
|
-
import {
|
|
69
|
-
metaMaskWallet
|
|
70
|
-
} from "./chunk-YRK6XWL6.js";
|
|
71
77
|
import {
|
|
72
78
|
oneKeyWallet
|
|
73
79
|
} from "./chunk-ZP2SV6KN.js";
|
|
@@ -75,62 +81,59 @@ import {
|
|
|
75
81
|
phantomWallet
|
|
76
82
|
} from "./chunk-KEVUI6AA.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import {
|
|
81
|
-
rabbyWallet
|
|
82
|
-
} from "./chunk-H5LLXNOI.js";
|
|
83
|
-
import {
|
|
84
|
-
frontierWallet
|
|
85
|
-
} from "./chunk-HMDUVRZP.js";
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-JJ4DXD7R.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-KPVNJO3R.js";
|
|
89
89
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-LCOUKF2U.js";
|
|
92
|
+
import {
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-YIJ5ULO3.js";
|
|
92
95
|
import {
|
|
93
96
|
injectedWallet
|
|
94
97
|
} from "./chunk-E5NYR4SS.js";
|
|
98
|
+
import {
|
|
99
|
+
imTokenWallet
|
|
100
|
+
} from "./chunk-BMJOLT2N.js";
|
|
95
101
|
import {
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-QQJKQCII.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
mewWallet
|
|
103
|
-
} from "./chunk-CVYXTHZ6.js";
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-3AZNOY75.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-UHHA5V52.js";
|
|
107
110
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-ZXGMW3OS.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-PNEDRY6O.js";
|
|
113
116
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-MOOW2AOC.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-KCTWDMQP.js";
|
|
119
|
-
import {
|
|
120
|
-
enkryptWallet
|
|
121
|
-
} from "./chunk-JJ4DXD7R.js";
|
|
122
122
|
import {
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-44CHUPEQ.js";
|
|
125
125
|
import {
|
|
126
126
|
foxWallet
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-WAOREEBE.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-ZHFISYEQ.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-KL5Z3XHJ.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-IEVZW3XR.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-OCCT5PIN.js";
|
|
@@ -141,14 +144,11 @@ import {
|
|
|
141
144
|
bloomWallet
|
|
142
145
|
} from "./chunk-J64P6XK3.js";
|
|
143
146
|
import "./chunk-RETKWSKD.js";
|
|
147
|
+
import "./chunk-23WIEY36.js";
|
|
144
148
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
147
|
-
import {
|
|
148
|
-
coin98Wallet
|
|
149
|
-
} from "./chunk-WAMHUVNP.js";
|
|
149
|
+
braveWallet
|
|
150
|
+
} from "./chunk-NUEOWEZS.js";
|
|
150
151
|
import "./chunk-WRA2DVJ7.js";
|
|
151
|
-
import "./chunk-23WIEY36.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
154
154
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ODRDT73B.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
okxWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5HXH52SO.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
okxWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OHJBALD3.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ISJYPD3T.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-X45WXZDO.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DBP432DI.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-WRA2DVJ7.js";
|
|
7
6
|
import "../chunk-23WIEY36.js";
|
|
7
|
+
import "../chunk-WRA2DVJ7.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"author": "https://fun.xyz/",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
+
"@tanstack/react-query": ">=5.0.0",
|
|
40
41
|
"react": ">=18",
|
|
41
42
|
"react-dom": ">=18",
|
|
42
43
|
"viem": "2.x",
|
|
@@ -78,7 +79,6 @@
|
|
|
78
79
|
"@meshconnect/web-link-sdk": "2.1.1",
|
|
79
80
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
80
81
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
81
|
-
"@tanstack/react-query": "^5.51.11",
|
|
82
82
|
"@types/uuid": "^9.0.8",
|
|
83
83
|
"@vanilla-extract/css": "1.15.3",
|
|
84
84
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"react-virtuoso": "4.10.1",
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/wagmi-tools": "3.0.
|
|
94
|
+
"@funkit/api-base": "1.1.2",
|
|
95
|
+
"@funkit/core": "2.1.7",
|
|
96
|
+
"@funkit/wagmi-tools": "3.0.9"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { PaymentMethod } from '../../consts/payment';
|
|
4
|
-
import { MeshExchanges } from '../../utils/mesh';
|
|
5
|
-
interface FunPaymentSetupProps {
|
|
6
|
-
paymentMethod: undefined | null | PaymentMethod;
|
|
7
|
-
onBackToHome: () => void;
|
|
8
|
-
onExchangeConfirm: (exchange: MeshExchanges) => void;
|
|
9
|
-
paymentAddress: Address;
|
|
10
|
-
token: string;
|
|
11
|
-
tokenChainId: string;
|
|
12
|
-
tokenAmountUsd: number;
|
|
13
|
-
redirectToCheckoutHistory?: (depositAddress: string) => void;
|
|
14
|
-
isParentLoading: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare function FunPaymentSetup({ paymentAddress, paymentMethod, onBackToHome, onExchangeConfirm, token, tokenChainId, tokenAmountUsd, redirectToCheckoutHistory, isParentLoading, }: FunPaymentSetupProps): React.JSX.Element;
|
|
17
|
-
export {};
|