@funkit/connect 0.1.12 → 0.1.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/dist/{chunk-UOUEGWLS.js → chunk-47OHV4T2.js} +2 -2
- package/dist/{chunk-Q73FKLU4.js → chunk-C2QHNJBG.js} +2 -2
- package/dist/{chunk-JC32QCLG.js → chunk-OYE6VAAG.js} +4291 -4194
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +3 -2
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -1
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +2 -1
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +2 -1
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +3 -1
- package/dist/components/FunOnramp/FunOnrampTokenPill.d.ts +7 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +5 -2
- package/dist/components/FunPayments/FunPayments.css.d.ts +1 -1
- package/dist/components/FunSelect/FunSelect.d.ts +3 -1
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +10 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +21 -5
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +2 -0
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +5 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +0 -4
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +7 -6
- package/dist/components/Icons/RedirectIcon.d.ts +2 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +4 -1
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +1 -1
- package/dist/components/ProfileDetails/{FunWalletProfileDetails.d.ts → WalletProfileDetails.d.ts} +2 -2
- package/dist/components/index.css +202 -164
- package/dist/components/index.js +3 -3
- package/dist/index.css +174 -136
- package/dist/index.js +3 -3
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +7 -2
- package/dist/utils/mesh.d.ts +5 -4
- package/dist/utils/moonpay.d.ts +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-K5J2FLUB.js → chunk-2XHTO74O.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-CJA6ERXY.js → chunk-4W6RLMME.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-BG2VHSGN.js → chunk-4WS4ZSRN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OJAMLRYU.js → chunk-6T5K52ZY.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-WSYSB5XX.js → chunk-7EOFWORX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-YUE47K7K.js → chunk-APZ6YBCA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FEDNFTC5.js → chunk-BDKAIAQA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-API5X5WH.js → chunk-DBMFZSXN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-G62ST53R.js → chunk-EHO4MJZJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BUX4O2MX.js → chunk-FTTYELWN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-J3HOIBZW.js → chunk-JJICTRJY.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-BBVH7CPS.js → chunk-KUXG7P5Q.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-363R4ANA.js → chunk-LBSWP7R6.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-KQ3NBNAM.js → chunk-LVMQKSKW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-YK74CZ2K.js → chunk-MDDT3PSR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-GAP7NFIO.js → chunk-NZ4YUZKF.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-JEVYZEBJ.js → chunk-PTF3JKWO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RZE4WHVP.js → chunk-Q6N2YWW4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SMDKR4XA.js → chunk-RL5OHS6R.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-3DY3HAMM.js → chunk-T3RIVRAX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TOIRQMDJ.js → chunk-TG2HN6KW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SMEQQ574.js → chunk-TORM2ZGA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-PX5UW3Z2.js → chunk-TZR3P22N.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-QOK4O2YL.js → chunk-VAR774R5.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-3AGSQ2RN.js → chunk-X6A7D2EA.js} +4 -4
- 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/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.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/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-7BFJCGW2.js +0 -24994
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
- package/dist/wallets/walletConnectors/chunk-3EHPYNDW.js +0 -71
- package/dist/wallets/walletConnectors/chunk-5FDGJMHJ.js +0 -112
- package/dist/wallets/walletConnectors/chunk-AM2WFIQL.js +0 -110
- package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +0 -52
- package/dist/wallets/walletConnectors/chunk-EHO5SY4G.js +0 -226
- package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +0 -71
- package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +0 -71
- package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +0 -114
- package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +0 -102
- package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +0 -105
- package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +0 -113
- package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +0 -81
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { CheckoutHistoryItem } from '@funkit/core';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* Processing info about a checkout history item (already created in backed)
|
|
4
5
|
*/
|
|
5
|
-
export declare function FunCheckoutHistoryDetail({
|
|
6
|
-
|
|
6
|
+
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, }: {
|
|
7
|
+
checkoutHistoryInfo: CheckoutHistoryItem;
|
|
7
8
|
}): React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface FunCheckoutHistoryModalProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
|
-
depositAddress: string
|
|
5
|
+
depositAddress: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function FunCheckoutHistoryModal({ onClose, open, depositAddress, }: FunCheckoutHistoryModalProps): React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -15,10 +15,11 @@ export interface FunKeyValueProps {
|
|
|
15
15
|
valueTextColor?: BoxProps['color'];
|
|
16
16
|
valueTextSize?: TextProps['size'];
|
|
17
17
|
valueTextWeight?: TextProps['weight'];
|
|
18
|
+
disclaimerTextColor?: BoxProps['color'];
|
|
18
19
|
backgroundBaseColor?: BoxProps['background'] | undefined | any;
|
|
19
20
|
paddingY?: BoxProps['paddingY'];
|
|
20
21
|
paddingX?: BoxProps['paddingX'];
|
|
21
22
|
isDisabled?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare function FunKeyValue({ keyIcon, keyText, valueIcon, valueText, disclaimerText, onClick, hasBorder, backgroundBaseColor, // 'actionButtonSecondaryBackground'
|
|
24
|
-
keyTextColor, keyTextSize, keyTextWeight, valueTextColor, valueTextSize, valueTextWeight, paddingY, paddingX, isDisabled, }: FunKeyValueProps): React.JSX.Element;
|
|
25
|
+
keyTextColor, keyTextSize, keyTextWeight, valueTextColor, valueTextSize, valueTextWeight, disclaimerTextColor, paddingY, paddingX, isDisabled, }: FunKeyValueProps): React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FeesItem } from '../FunTransactionSummary/FunTransactionSummary';
|
|
2
3
|
interface FunOnrampConfirmationProps {
|
|
3
4
|
token: string;
|
|
4
5
|
tokenAmountUsd: number;
|
|
5
|
-
estimatedFees:
|
|
6
|
+
estimatedFees: FeesItem;
|
|
6
7
|
estimatedProcessingTime: string;
|
|
7
8
|
totalAmountUsd: number;
|
|
8
9
|
onConfirm: () => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
|
|
2
|
+
import { DepositTokenSymbol } from '../ProfileDetails/FunWalletProfileViews/FWDeposit';
|
|
3
|
+
export declare function FunOnrampInputStep({ tokenTicker, setDepositToken, amount, onChangeAmount, onClickContinue, backAnimation, }: {
|
|
3
4
|
tokenTicker: string;
|
|
5
|
+
setDepositToken: Dispatch<SetStateAction<DepositTokenSymbol>>;
|
|
4
6
|
amount: string;
|
|
5
7
|
onChangeAmount: Dispatch<SetStateAction<string>>;
|
|
6
8
|
onClickContinue: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DepositTokenSymbol } from '../ProfileDetails/FunWalletProfileViews/FWDeposit';
|
|
3
|
+
export declare function FunOnrampTokenPill({ token, isActive, onClick, }: {
|
|
4
|
+
token: DepositTokenSymbol;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
onClick?: undefined | null | (() => void);
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { DepositTokenSymbol } from '../ProfileDetails/FunWalletProfileViews/FWDeposit';
|
|
2
3
|
/** @description The different payment flows. Either from Deposit or Checkout. */
|
|
3
4
|
export declare enum PaymentFlow {
|
|
4
5
|
DEPOSIT = 0,
|
|
@@ -40,13 +41,15 @@ export declare function ExistingPaymentMethodItem({ paymentMethodInfo, onClick,
|
|
|
40
41
|
/**
|
|
41
42
|
* Handle selection and adding of payment methods
|
|
42
43
|
*/
|
|
43
|
-
export declare function FunPaymentMethods({
|
|
44
|
+
export declare function FunPaymentMethods({ checkoutId, // only valid for paymentFlow === CHECKOUT
|
|
45
|
+
paymentFlow, onSelect, isDisabled, backAnimation, depositInfo, }: {
|
|
46
|
+
checkoutId?: string | null;
|
|
44
47
|
paymentFlow: PaymentFlow;
|
|
45
48
|
onSelect: (paymentMethodInfo: PaymentMethodInfo) => void;
|
|
46
49
|
isDisabled?: boolean;
|
|
47
50
|
backAnimation?: boolean;
|
|
48
51
|
depositInfo?: {
|
|
49
52
|
amount: string;
|
|
50
|
-
tokenTicker: string | null;
|
|
53
|
+
tokenTicker: string | DepositTokenSymbol | null;
|
|
51
54
|
};
|
|
52
55
|
}): React.JSX.Element;
|
|
@@ -4,11 +4,13 @@ export interface FunSelectOption {
|
|
|
4
4
|
value: string;
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, optionItemPadding, showBorder, }: {
|
|
7
|
+
export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, containerPaddingY, containerMarginTop, optionItemPadding, showBorder, }: {
|
|
8
8
|
handleSelect: (newValue: FunSelectOption['value']) => void;
|
|
9
9
|
isDropdownOpen: boolean;
|
|
10
10
|
options: FunSelectOption[];
|
|
11
11
|
selectedValue: FunSelectOption['value'];
|
|
12
|
+
containerPaddingY?: BoxProps['paddingY'];
|
|
13
|
+
containerMarginTop?: BoxProps['marginTop'];
|
|
12
14
|
optionItemPadding?: BoxProps['padding'];
|
|
13
15
|
showBorder?: boolean;
|
|
14
16
|
}): React.JSX.Element | null;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
export type FeesItem = null | {
|
|
3
|
+
totalUsd: string | number | null;
|
|
4
|
+
transactionFeesUsd: string | number | null;
|
|
5
|
+
transactionFeesTokenAmount?: string | number | null;
|
|
6
|
+
transactionFeesTokenSymbol?: string | null;
|
|
7
|
+
platformFeesUsd: string | number | null;
|
|
8
|
+
platformFeesTokenAmount?: string | number | null;
|
|
9
|
+
platformFeesTokenSymbol?: string | null;
|
|
10
|
+
};
|
|
2
11
|
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, }: {
|
|
3
|
-
estFees:
|
|
12
|
+
estFees: FeesItem;
|
|
4
13
|
estTime: string | number | null;
|
|
5
14
|
isLoading?: boolean;
|
|
6
15
|
hasTotal?: boolean;
|
|
@@ -2,12 +2,15 @@ import { CheckoutCoreQuoteResponse, CheckoutHistoryItem } from '@funkit/core';
|
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
3
|
import { Abi, Address } from 'viem';
|
|
4
4
|
import { CheckoutHistoryStateMap } from '../../utils/checkout';
|
|
5
|
+
import { MeshCheckoutQuoteMeta } from '../../utils/mesh';
|
|
5
6
|
import { PaymentMethod } from '../FunPayments/FunPaymentMethods';
|
|
7
|
+
import { FeesItem } from '../FunTransactionSummary/FunTransactionSummary';
|
|
6
8
|
export interface FunkitCheckoutActionParams {
|
|
7
9
|
contractAbi: Abi;
|
|
8
10
|
contractAddress: Address;
|
|
9
11
|
functionName: string;
|
|
10
12
|
functionArgs: any[];
|
|
13
|
+
value?: bigint;
|
|
11
14
|
}
|
|
12
15
|
export interface FunkitCheckoutConfig {
|
|
13
16
|
/** ****************************
|
|
@@ -23,6 +26,8 @@ export interface FunkitCheckoutConfig {
|
|
|
23
26
|
targetAssetAmount: number;
|
|
24
27
|
/** Timestamp (in milliseconds) after which the checkout should not be performed, and the funds will become rescuable. Min: 300000 (5 mins), Max: 3600000 (1 hour). **/
|
|
25
28
|
expirationTimestampMs: number;
|
|
29
|
+
/** Custom recipient address of the checkout. If specified, a different checkout flow will be executed. It is not recommended to set this unless the Fun.xyz team advises it. **/
|
|
30
|
+
customRecipient?: Address;
|
|
26
31
|
/** ****************************************
|
|
27
32
|
* Checkout ModalUI-related configurations *
|
|
28
33
|
*******************************************/
|
|
@@ -41,7 +46,13 @@ interface FunkitCheckoutValidationResult {
|
|
|
41
46
|
isValid: boolean;
|
|
42
47
|
message: string;
|
|
43
48
|
}
|
|
44
|
-
type FunkitCheckoutQuoteResult =
|
|
49
|
+
type FunkitCheckoutQuoteResult = {
|
|
50
|
+
baseQuote: CheckoutCoreQuoteResponse;
|
|
51
|
+
finalTimeEstimationMs: number;
|
|
52
|
+
finalPaymentTokenAmount: string;
|
|
53
|
+
finalTotalUsd: string;
|
|
54
|
+
finalFeesBreakdown: FeesItem;
|
|
55
|
+
};
|
|
45
56
|
export type FunkitCheckoutResult = {
|
|
46
57
|
type: 'error' | 'success';
|
|
47
58
|
message: string;
|
|
@@ -50,15 +61,19 @@ export type FunkitCheckoutResult = {
|
|
|
50
61
|
interface useFunkitCheckoutProps {
|
|
51
62
|
/** @required the checkout config object **/
|
|
52
63
|
config: FunkitCheckoutConfig;
|
|
64
|
+
/** @optional fires when the checkout modal is opened **/
|
|
65
|
+
onOpen?: () => void;
|
|
66
|
+
/** @optional fires when the checkout modal is closed **/
|
|
67
|
+
onClose?: () => void;
|
|
53
68
|
/** @optional fires when checkout config is done validating **/
|
|
54
69
|
onValidation?: (result: FunkitCheckoutValidationResult) => void;
|
|
55
70
|
/** @optional fires when a checkout quote is received **/
|
|
56
71
|
onEstimation?: (result: FunkitCheckoutQuoteResult) => void;
|
|
57
72
|
/** @optional fires when a checkout if confirmed with the funkit server **/
|
|
58
73
|
onConfirmation?: () => void;
|
|
59
|
-
/** @optional fires if the checkout fails at any point
|
|
74
|
+
/** @optional fires if the checkout fails at any point **/
|
|
60
75
|
onError?: (result: FunkitCheckoutResult) => void;
|
|
61
|
-
/** @optional fires if the checkout fails at any point
|
|
76
|
+
/** @optional fires if the checkout fails at any point **/
|
|
62
77
|
onSuccess?: (result: FunkitCheckoutResult) => void;
|
|
63
78
|
}
|
|
64
79
|
/**
|
|
@@ -98,7 +113,7 @@ interface useFunkitPreCheckoutInternalReturn {
|
|
|
98
113
|
updateSourceAsset: (newSourceAsset: Address, newSourceAssetSymbol: string, newSourceAssetChainId: string) => void;
|
|
99
114
|
confirmCheckout: (shouldBatchOpBypassInit: boolean) => Promise<Address>;
|
|
100
115
|
getCheckoutDraftDollarValue: () => Promise<void>;
|
|
101
|
-
getCheckoutQuote: (sponsorInitialTransferGasLimit: number, paymentMethod: PaymentMethod) => Promise<void>;
|
|
116
|
+
getCheckoutQuote: (sponsorInitialTransferGasLimit: number, paymentMethod: PaymentMethod, meshMeta: MeshCheckoutQuoteMeta) => Promise<void>;
|
|
102
117
|
}
|
|
103
118
|
/**
|
|
104
119
|
* Internal hook to handle frontend pre-checkout operations, PER-CHECKOUT ITEM.
|
|
@@ -108,7 +123,8 @@ export declare const useFunkitPreCheckoutInternal: (checkoutId: string | null) =
|
|
|
108
123
|
* Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
|
|
109
124
|
*/
|
|
110
125
|
export declare const useFunkitPostCheckoutInternal: (depositAddress: Address) => {
|
|
111
|
-
|
|
126
|
+
isLoading: boolean;
|
|
127
|
+
checkoutHistoryInfo: CheckoutHistoryItem | undefined;
|
|
112
128
|
};
|
|
113
129
|
/**
|
|
114
130
|
* Internal hook to get all post-checkout items
|
|
@@ -12,6 +12,8 @@ export interface FunkitConfig {
|
|
|
12
12
|
enabledLoginOptions: LoginOptions;
|
|
13
13
|
/** App name **/
|
|
14
14
|
appName: string;
|
|
15
|
+
/** App logo (rendered as 80px x 80px) **/
|
|
16
|
+
appLogoSrc?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
|
|
17
19
|
export declare function useFunkitConfig(): FunkitConfig;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { Auth, FunWallet } from '@funkit/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { UserInfoDisplay } from '../FunkitWeb2Provider/FunkitWeb2Provider';
|
|
3
4
|
type GeneralWalletAssets = null | {
|
|
4
5
|
[x: string]: any;
|
|
5
6
|
};
|
|
6
7
|
interface GeneralWalletContextProps {
|
|
7
8
|
walletAddress: string;
|
|
9
|
+
isUserLoggedIn: boolean;
|
|
8
10
|
isWeb2Login: boolean;
|
|
9
11
|
isWeb3Login: boolean;
|
|
12
|
+
userId: string | null;
|
|
13
|
+
userDisplayInfo: UserInfoDisplay;
|
|
10
14
|
isFetchingAssets: boolean;
|
|
11
15
|
walletAssets: GeneralWalletAssets;
|
|
12
16
|
startAssetsListener: () => void;
|
|
13
17
|
stopAssetsListener: () => void;
|
|
14
18
|
funWallet: FunWallet | null;
|
|
15
19
|
funWalletAuth: Auth | null;
|
|
20
|
+
handleLogout: () => void;
|
|
16
21
|
}
|
|
17
22
|
export declare function GeneralWalletProvider({ children }: any): React.JSX.Element;
|
|
18
23
|
export declare const useGeneralWallet: () => GeneralWalletContextProps;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { FunConfirmDialogMenuTypes } from '../FunConfirmDialog/FunConfirmDialog';
|
|
3
2
|
interface ModalProviderProps {
|
|
4
3
|
children: ReactNode;
|
|
5
4
|
}
|
|
@@ -35,7 +34,4 @@ export declare function useFunDevTestModal(): {
|
|
|
35
34
|
funDevTestModalOpen: boolean;
|
|
36
35
|
openFunDevTestModal: (() => void) | undefined;
|
|
37
36
|
};
|
|
38
|
-
export declare function useConfirmModal(): {
|
|
39
|
-
openConfirmModal: ((type: FunConfirmDialogMenuTypes.CONFIRM_LOGOUT, action: (() => void) | (() => Promise<void>)) => void) | undefined;
|
|
40
|
-
};
|
|
41
37
|
export {};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import PrivyJS from '@privy-io/js-sdk-core';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
|
-
interface UserInfoDisplay {
|
|
4
|
-
type: string;
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
3
|
interface OtpErrors {
|
|
10
4
|
code: string;
|
|
11
5
|
otpValue: string;
|
|
@@ -27,6 +21,13 @@ export declare const SEND_OTP_ERROR_MESSAGES: {
|
|
|
27
21
|
readonly NETWORK_ERROR: "Network error occurred";
|
|
28
22
|
};
|
|
29
23
|
export type PrivyOauthProviderType = (typeof privyOauthProvider)[keyof typeof privyOauthProvider];
|
|
24
|
+
export interface UserInfoDisplay {
|
|
25
|
+
type: PrivyOauthProviderType | 'wallet' | 'unknown';
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const DEFAULT_USER_INFO: UserInfoDisplay;
|
|
30
31
|
interface FunkitWeb2ContextType {
|
|
31
32
|
privy: PrivyJS | null;
|
|
32
33
|
isSending: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare
|
|
2
|
+
export declare enum DepositTokenSymbol {
|
|
3
|
+
USDC = "USDC",
|
|
4
|
+
ETH = "ETH"
|
|
5
|
+
}
|
|
3
6
|
export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 30;
|
|
4
7
|
/**
|
|
5
8
|
* Deposit a.k.a Onramp flows
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunWalletProfileView } from '../../
|
|
2
|
+
import { FunWalletProfileView } from '../../WalletProfileDetails';
|
|
3
3
|
export declare function FWHome({ onClose, onChangeView, }: {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onChangeView: (newView: FunWalletProfileView) => void;
|
package/dist/components/ProfileDetails/{FunWalletProfileDetails.d.ts → WalletProfileDetails.d.ts}
RENAMED
|
@@ -13,7 +13,7 @@ interface FunWalletProfileDetailsProps {
|
|
|
13
13
|
onDisconnect: () => void;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Profile details for
|
|
16
|
+
* Profile details for General Wallets
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function WalletProfileDetails({ onClose, onSoftHide, onDisconnect, }: FunWalletProfileDetailsProps): React.JSX.Element;
|
|
19
19
|
export {};
|