@funkit/connect 1.0.25 → 1.0.27
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 +29 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +8 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +2 -2
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +2 -2
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +4 -2
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +3 -2
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +3 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +2 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +4 -2
- package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +1 -5
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +60 -0
- package/dist/components/FunkitProvider/provideFunkitConnectChains.d.ts +8 -0
- package/dist/components/ProfileDetails/ActivityTraversalContext.d.ts +40 -0
- package/dist/components/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +9 -1
- package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutSection.d.ts +3 -2
- package/dist/components/ProfileDetails/FunProfileViews/Home/index.d.ts +9 -1
- package/dist/components/ProfileDetails/ProfileDetails.d.ts +2 -1
- package/dist/config/getDefaultConfig.d.ts +3649 -0
- package/dist/hooks/useCheckoutChains.d.ts +1 -0
- package/dist/index.css +72 -72
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9959 -9766
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/checkoutHistory.d.ts +3 -3
- package/dist/utils/formatNumber.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/coinbaseWallet/coinbaseWallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.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 +78 -78
- 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 +6 -6
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +0 -10
- package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
- package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
- package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
- package/dist/wallets/walletConnectors/{chunk-75A2U7T7.js → chunk-2B3SPBRY.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OR3PU2W4.js → chunk-2UXZAUWT.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-X255T3C4.js → chunk-3WZRNEZH.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-7KDOXASH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OAEJQOAV.js → chunk-CRSPGVPF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XSSD5ZVD.js → chunk-DV3SI63E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N3VZE65M.js → chunk-HD5VYJNC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SL4VH23R.js → chunk-KGTZ6E7L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FDIIMYTB.js → chunk-O5NKWWEG.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-RCWZ4KBR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2PC2XXUH.js → chunk-V45EXW7A.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-VSZ7PAHS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SQGFKNNZ.js → chunk-XNNLZXHE.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2XQJ2NQ4.js → chunk-XRMAVTK7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RYO26XSK.js → chunk-ZNXQ4V6G.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 1.0.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 246385b: feat: zksync era support (phase 1)
|
|
8
|
+
- 5640e0d: refactor: make privyAppId optional
|
|
9
|
+
- 0d74c9c: refactor: exclude userop if not needed
|
|
10
|
+
- b7994d1: feat: round up small usd fee values to 0.01
|
|
11
|
+
- 6d1a34d: refactor: checkout input v2
|
|
12
|
+
- b7994d1: feat: rename platform fees for card flow
|
|
13
|
+
- 5640e0d: feat: more default exports - `getDefaultChains`, `getDefaultTransports`
|
|
14
|
+
- Updated dependencies [246385b]
|
|
15
|
+
- Updated dependencies [7522d0c]
|
|
16
|
+
- @funkit/core@1.0.11
|
|
17
|
+
- @funkit/wagmi-tools@1.0.12
|
|
18
|
+
|
|
19
|
+
## 1.0.26
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 92447ae: feat: checkout history traversal & route memory
|
|
24
|
+
- c84cb9d: feat: deprecate direct execution flow
|
|
25
|
+
- fa2bb25: feat: new `useFunkitAccount` hook
|
|
26
|
+
- c84cb9d: feat: new fees display
|
|
27
|
+
- Updated dependencies [49ec685]
|
|
28
|
+
- Updated dependencies [185b90c]
|
|
29
|
+
- @funkit/core@1.0.10
|
|
30
|
+
- @funkit/wagmi-tools@1.0.11
|
|
31
|
+
|
|
3
32
|
## 1.0.25
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
3
|
+
export declare function FunCheckoutHistoryContent({ onClose, depositAddress, initialPage, onBackFromDetailPage, }: {
|
|
4
|
+
depositAddress: `0x${string}`;
|
|
5
|
+
initialPage: HistoryContentPages;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onBackFromDetailPage: undefined | (() => void);
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CheckoutHistoryItem } from '@funkit/core';
|
|
2
2
|
import React, { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
4
4
|
/**
|
|
5
5
|
* Processing info about a checkout history item (already created in backend)
|
|
6
6
|
*/
|
|
7
7
|
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, setCurrentPage, animateOut, }: {
|
|
8
8
|
checkoutHistoryInfo: CheckoutHistoryItem;
|
|
9
|
-
setCurrentPage: Dispatch<SetStateAction<
|
|
9
|
+
setCurrentPage: Dispatch<SetStateAction<HistoryContentPages>>;
|
|
10
10
|
animateOut: boolean;
|
|
11
11
|
}): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
3
3
|
interface FunCheckoutHistoryModalProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
depositAddress: `0x${string}`;
|
|
7
|
-
initialPage:
|
|
7
|
+
initialPage: HistoryContentPages;
|
|
8
8
|
}
|
|
9
9
|
export declare function FunCheckoutHistoryModal({ onClose, open, depositAddress, initialPage, }: FunCheckoutHistoryModalProps): React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FunkitActiveCheckoutItem } from '../FunkitProvider/FunkitCheckoutContext';
|
|
3
3
|
import { FunCheckoutStep } from './FunCheckoutModal';
|
|
4
|
-
export declare function CheckoutPrimaryInfoSnapshot({ checkoutItem, isLoading, isEditable, onConfirmEdit, }: {
|
|
4
|
+
export declare function CheckoutPrimaryInfoSnapshot({ checkoutItem, isLoading, isEditable, onConfirmEdit, prioritizeDraftValue, }: {
|
|
5
5
|
checkoutItem: FunkitActiveCheckoutItem;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
isEditable: boolean;
|
|
8
8
|
onConfirmEdit?: (newValue: number) => void;
|
|
9
|
+
prioritizeDraftValue: boolean;
|
|
9
10
|
}): React.JSX.Element;
|
|
10
|
-
export declare function CheckoutPrimaryInfo({ checkoutId, checkoutStep, }: {
|
|
11
|
+
export declare function CheckoutPrimaryInfo({ checkoutId, checkoutStep, prioritizeDraftValue, }: {
|
|
11
12
|
checkoutId: string | null;
|
|
12
13
|
checkoutStep: FunCheckoutStep;
|
|
14
|
+
prioritizeDraftValue: boolean;
|
|
13
15
|
}): React.JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckoutHistoryItem } from '@funkit/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
4
|
+
export declare function FunCheckoutNotification({ checkoutHistoryItem, onSelect, }: {
|
|
4
5
|
checkoutHistoryItem: CheckoutHistoryItem;
|
|
5
|
-
|
|
6
|
+
onSelect: (depositAddress: `0x${string}`, initialPage: HistoryContentPages) => void;
|
|
6
7
|
}): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './FunTransactionSummary.css';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
|
+
import { PaymentMethod } from '../../consts/payment';
|
|
3
4
|
export type FeesItem = null | {
|
|
4
5
|
totalUsd: string | number | null;
|
|
5
6
|
transactionFeesUsd: string | number | null;
|
|
@@ -9,7 +10,7 @@ export type FeesItem = null | {
|
|
|
9
10
|
platformFeesTokenAmount?: string | number | null;
|
|
10
11
|
platformFeesTokenSymbol?: string | null;
|
|
11
12
|
};
|
|
12
|
-
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, }: {
|
|
13
|
+
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, paymentMethod, }: {
|
|
13
14
|
estFees: FeesItem;
|
|
14
15
|
estTime: string | number | null;
|
|
15
16
|
isLoading?: boolean;
|
|
@@ -20,4 +21,5 @@ export declare function FunTransactionSummary({ estFees, estTime, isLoading, has
|
|
|
20
21
|
total?: string | number | null;
|
|
21
22
|
suffixComponent?: ReactNode;
|
|
22
23
|
errorMessage?: string;
|
|
24
|
+
paymentMethod: PaymentMethod;
|
|
23
25
|
}): React.JSX.Element;
|
|
@@ -102,6 +102,8 @@ export interface FunkitActiveCheckoutItem {
|
|
|
102
102
|
isDrafting: boolean;
|
|
103
103
|
/** The draft dollar value estimate of the checkout. Not the actual quote. **/
|
|
104
104
|
draftDollarValue: null | number;
|
|
105
|
+
/** The final dollar value of the checkout. Derived from latestQuote. **/
|
|
106
|
+
finalDollarValue: null | number;
|
|
105
107
|
/** Whether the checkout quote is being fetched **/
|
|
106
108
|
isQuoting: boolean;
|
|
107
109
|
/** Latest checkout estimated fees and time **/
|
|
@@ -13,6 +13,7 @@ export interface FunkitTextCustomizationsConfig {
|
|
|
13
13
|
payWith: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
16
|
+
export declare const DEFAULT_PRIVY_APP_ID = "clnatprpv00sfmi0fv3qc185b";
|
|
16
17
|
interface FunkitLoginOptionsConfig {
|
|
17
18
|
web2: boolean;
|
|
18
19
|
web3: boolean;
|
|
@@ -42,8 +43,6 @@ interface FunkitPaymentsConfig {
|
|
|
42
43
|
export type FunkitConfig = {
|
|
43
44
|
/** Funkit api key **/
|
|
44
45
|
apiKey: string;
|
|
45
|
-
/** Privy appId. It is recommended for customers to apply for their own at https://dashboard.privy.io **/
|
|
46
|
-
privyAppId: string;
|
|
47
46
|
/** App name **/
|
|
48
47
|
appName: string;
|
|
49
48
|
/** App logo (rendered as 80px x 80px) **/
|
|
@@ -54,6 +53,8 @@ export type FunkitConfig = {
|
|
|
54
53
|
allowBackgroundScroll?: boolean;
|
|
55
54
|
/** Text customizations across all widgets **/
|
|
56
55
|
textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
|
|
56
|
+
/** Privy appId for social account management. It is not recommended to replace this. **/
|
|
57
|
+
privyAppId?: string;
|
|
57
58
|
/** Login modal configuration **/
|
|
58
59
|
loginModalConfig: Partial<FunkitLoginOptionsConfig>;
|
|
59
60
|
/** Account modal configuration **/
|
|
@@ -71,6 +72,7 @@ interface FinalFunkitConfigInternal extends FunkitConfig {
|
|
|
71
72
|
loginModalConfig: FunkitLoginOptionsConfig;
|
|
72
73
|
accountModalConfig: FunkitAccountOptionsConfig;
|
|
73
74
|
paymentsConfig: FunkitPaymentsConfig;
|
|
75
|
+
privyAppId: string;
|
|
74
76
|
}
|
|
75
77
|
export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
|
|
76
78
|
export declare function useFunkitConfig(): FinalFunkitConfigInternal;
|
|
@@ -10,10 +10,6 @@ interface FunkitConnectChainProviderProps {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function FunkitConnectChainProvider({ children, initialChain, }: FunkitConnectChainProviderProps): React.JSX.Element;
|
|
12
12
|
export declare const useFunkitConnectChains: () => FunkitConnectChain[];
|
|
13
|
+
export declare const useFunkitConnectChainsById: () => Record<number, FunkitConnectChain>;
|
|
13
14
|
export declare const useInitialChainId: () => number | undefined;
|
|
14
|
-
export declare const useAllPossibleFunkitConnectChains: () => Chain[];
|
|
15
|
-
export declare const useFunkitConnectChainsById: () => {
|
|
16
|
-
enabledFunkitConnectChainsById: Record<number, FunkitConnectChain>;
|
|
17
|
-
allPossibleFunkitConnectChainsById: Record<number, FunkitConnectChain>;
|
|
18
|
-
};
|
|
19
15
|
export {};
|
|
@@ -23,6 +23,66 @@ interface GeneralWalletContextProps {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function GeneralWalletProvider({ children }: any): React.JSX.Element;
|
|
25
25
|
export declare const useGeneralWallet: () => GeneralWalletContextProps;
|
|
26
|
+
/**
|
|
27
|
+
* Replacement for wagmi's `useAccount`
|
|
28
|
+
*/
|
|
29
|
+
export declare const useFunkitAccount: () => {
|
|
30
|
+
account: string;
|
|
31
|
+
isConnected: boolean;
|
|
32
|
+
isWeb2Login: boolean;
|
|
33
|
+
isWeb3Login: boolean;
|
|
34
|
+
address: undefined;
|
|
35
|
+
addresses: undefined;
|
|
36
|
+
chain: undefined;
|
|
37
|
+
chainId: undefined;
|
|
38
|
+
connector: undefined;
|
|
39
|
+
isReconnecting: false;
|
|
40
|
+
isConnecting: false;
|
|
41
|
+
isDisconnected: true;
|
|
42
|
+
status: "disconnected";
|
|
43
|
+
} | {
|
|
44
|
+
account: string;
|
|
45
|
+
isConnected: boolean;
|
|
46
|
+
isWeb2Login: boolean;
|
|
47
|
+
isWeb3Login: boolean;
|
|
48
|
+
address: `0x${string}`;
|
|
49
|
+
addresses: readonly [`0x${string}`, ...`0x${string}`[]];
|
|
50
|
+
chain: import("viem").Chain | undefined;
|
|
51
|
+
chainId: number;
|
|
52
|
+
connector: import("wagmi").Connector;
|
|
53
|
+
isConnecting: false;
|
|
54
|
+
isDisconnected: false;
|
|
55
|
+
isReconnecting: false;
|
|
56
|
+
status: "connected";
|
|
57
|
+
} | {
|
|
58
|
+
account: string;
|
|
59
|
+
isConnected: boolean;
|
|
60
|
+
isWeb2Login: boolean;
|
|
61
|
+
isWeb3Login: boolean;
|
|
62
|
+
address: `0x${string}` | undefined;
|
|
63
|
+
addresses: readonly `0x${string}`[] | undefined;
|
|
64
|
+
chain: import("viem").Chain | undefined;
|
|
65
|
+
chainId: number | undefined;
|
|
66
|
+
connector: import("wagmi").Connector | undefined;
|
|
67
|
+
isConnecting: false;
|
|
68
|
+
isDisconnected: false;
|
|
69
|
+
isReconnecting: true;
|
|
70
|
+
status: "reconnecting";
|
|
71
|
+
} | {
|
|
72
|
+
account: string;
|
|
73
|
+
isConnected: boolean;
|
|
74
|
+
isWeb2Login: boolean;
|
|
75
|
+
isWeb3Login: boolean;
|
|
76
|
+
address: `0x${string}` | undefined;
|
|
77
|
+
addresses: readonly `0x${string}`[] | undefined;
|
|
78
|
+
chain: import("viem").Chain | undefined;
|
|
79
|
+
chainId: number | undefined;
|
|
80
|
+
connector: import("wagmi").Connector | undefined;
|
|
81
|
+
isReconnecting: false;
|
|
82
|
+
isConnecting: true;
|
|
83
|
+
isDisconnected: false;
|
|
84
|
+
status: "connecting";
|
|
85
|
+
};
|
|
26
86
|
/**
|
|
27
87
|
* Replacement for wagmi's `disconnect` from `useDisconnect`
|
|
28
88
|
*/
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { FunkitConnectChain } from './FunkitConnectChainContext';
|
|
2
|
+
export declare const chainMetadataById: {
|
|
3
|
+
[k: string]: {
|
|
4
|
+
name?: string | undefined;
|
|
5
|
+
iconUrl: () => Promise<string>;
|
|
6
|
+
iconBackground: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
2
9
|
/** @description Decorates an array of wagmi `Chain` objects with FunkitConnectChain property overrides */
|
|
3
10
|
export declare const provideFunkitConnectChains: <Chain extends FunkitConnectChain>(chains: readonly [Chain, ...Chain[]] | Chain[]) => Chain[];
|
|
11
|
+
export declare const groupChainsById: (chains: FunkitConnectChain[]) => Record<number, FunkitConnectChain>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
3
|
+
import { FunProfileView } from './ProfileDetails';
|
|
4
|
+
export declare const ActivityTraversalContext: React.Context<{
|
|
5
|
+
selectedPurchaseId: `0x${string}` | undefined;
|
|
6
|
+
selectedPurchaseInitView: HistoryContentPages | undefined;
|
|
7
|
+
returnView: FunProfileView | undefined;
|
|
8
|
+
returnViewPresets: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
};
|
|
11
|
+
onSelectActivity: ({ depositAddress, initialPage, returnView, returnViewPresets, onRedirect, }: {
|
|
12
|
+
depositAddress: `0x${string}`;
|
|
13
|
+
initialPage: HistoryContentPages;
|
|
14
|
+
returnView: FunProfileView;
|
|
15
|
+
returnViewPresets: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
onRedirect: () => void;
|
|
19
|
+
}) => void;
|
|
20
|
+
resetActivityTraversal: () => void;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ActivityTraversalProvider: ({ children }: any) => React.JSX.Element;
|
|
23
|
+
export declare const useActivityTraversal: () => {
|
|
24
|
+
selectedPurchaseId: `0x${string}` | undefined;
|
|
25
|
+
selectedPurchaseInitView: HistoryContentPages | undefined;
|
|
26
|
+
returnView: FunProfileView | undefined;
|
|
27
|
+
returnViewPresets: {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
};
|
|
30
|
+
onSelectActivity: ({ depositAddress, initialPage, returnView, returnViewPresets, onRedirect, }: {
|
|
31
|
+
depositAddress: `0x${string}`;
|
|
32
|
+
initialPage: HistoryContentPages;
|
|
33
|
+
returnView: FunProfileView;
|
|
34
|
+
returnViewPresets: {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
};
|
|
37
|
+
onRedirect: () => void;
|
|
38
|
+
}) => void;
|
|
39
|
+
resetActivityTraversal: () => void;
|
|
40
|
+
};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { HistoryContentPages } from '../../../../utils/checkoutHistory';
|
|
3
|
+
export declare function ActivityHistory({ onBack, onClose, onSelectActivity, }: {
|
|
3
4
|
onClose: () => void;
|
|
4
5
|
onBack: () => void;
|
|
6
|
+
onSelectActivity: ({ depositAddress, initialPage, returnViewPresets, }: {
|
|
7
|
+
depositAddress: `0x${string}`;
|
|
8
|
+
initialPage: HistoryContentPages;
|
|
9
|
+
returnViewPresets: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}) => void;
|
|
5
13
|
}): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { HistoryContentPages } from '../../../../utils/checkoutHistory';
|
|
3
|
+
export declare function HomeCheckoutSection({ onSelectActivity, }: {
|
|
4
|
+
onSelectActivity: (depositAddress: `0x${string}`, initialPage: HistoryContentPages) => void;
|
|
4
5
|
}): React.JSX.Element | null;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { HistoryContentPages } from '../../../../utils/checkoutHistory';
|
|
2
3
|
import { FunProfileView } from '../../ProfileDetails';
|
|
3
|
-
export declare function Home({ onClose, onChangeView, }: {
|
|
4
|
+
export declare function Home({ onClose, onChangeView, onSelectActivity, }: {
|
|
4
5
|
onClose: () => void;
|
|
5
6
|
onChangeView: (newView: FunProfileView) => void;
|
|
7
|
+
onSelectActivity: ({ depositAddress, initialPage, returnViewPresets, }: {
|
|
8
|
+
depositAddress: `0x${string}`;
|
|
9
|
+
initialPage: HistoryContentPages;
|
|
10
|
+
returnViewPresets: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}) => void;
|
|
6
14
|
}): React.JSX.Element;
|