@funkit/connect 4.0.2 → 4.1.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 +56 -0
- package/dist/{chunk-3F3EYDDR.js → chunk-5BMBHTAR.js} +2 -9
- package/dist/{chunk-OMAXDH7G.js → chunk-REN4AGZZ.js} +0 -2
- package/dist/{chunk-LTOE4GIY.js → chunk-TO3BYKDH.js} +2 -9
- package/dist/components/Box/Box.d.ts +52 -52
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -1
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +0 -5
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.css.d.ts +2 -0
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +6 -4
- package/dist/components/HelpAlert/HelpAlert.d.ts +6 -0
- package/dist/config/getDefaultConfig.d.ts +34 -34
- package/dist/consts/customers.d.ts +2 -0
- package/dist/consts/funkit.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +54 -84
- package/dist/domains/checkoutFees.d.ts +1 -1
- package/dist/domains/paymentMethods.d.ts +7 -9
- package/dist/domains/quote.d.ts +2 -6
- package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +25 -0
- package/dist/hooks/useMesh.d.ts +2 -2
- package/dist/hooks/useMountEffect.d.ts +8 -0
- package/dist/index.css +1917 -2399
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8770 -8396
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +7 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +7 -0
- package/dist/modals/CheckoutModal/{InputAmount → ConfirmationStep}/useCheckoutQuote.d.ts +3 -4
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +6 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +5 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +1 -0
- package/dist/modals/ProfileDetails/FunProfileViews/Home/Home.css.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext.d.ts +3 -11
- package/dist/providers/FunkitConfigContext.d.ts +0 -7
- package/dist/providers/FunkitHistoryContext.d.ts +1 -1
- package/dist/providers/FunkitMeshProvider.d.ts +11 -15
- package/dist/providers/FunkitThemeProvider.d.ts +3 -48
- package/dist/providers/GeneralWalletProvider.d.ts +8 -8
- package/dist/providers/ModalContext.d.ts +0 -4
- package/dist/providers/UserPresenceContext.d.ts +9 -0
- package/dist/scroll-G3S4ZVYZ.js +7 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/types/utils.d.ts +0 -6
- package/dist/utils/checkout.d.ts +13 -40
- package/dist/utils/checkoutHistory.d.ts +7 -0
- package/dist/utils/flags/config.d.ts +23 -1
- package/dist/utils/mesh.d.ts +3 -2
- package/dist/wallets/groupedWallets.d.ts +0 -1
- package/dist/wallets/latestWalletId.d.ts +0 -2
- 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 +65 -65
- 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/FunButton/FunViewTxButton.d.ts +0 -5
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +0 -7
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +0 -7
- package/dist/hooks/useChainId.d.ts +0 -1
- package/dist/hooks/useCheckoutChains.d.ts +0 -1
- package/dist/hooks/useCheckoutType.d.ts +0 -5
- package/dist/hooks/useWindowSize.d.ts +0 -4
- package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +0 -7
- package/dist/modals/DevTest/FunDevTestModal.d.ts +0 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
1
2
|
export declare enum HistoryContentPages {
|
|
2
3
|
DETAIL = "detail",
|
|
3
4
|
HELP = "help"
|
|
@@ -13,3 +14,9 @@ export declare const deconstructDepositAddressAndInitialPage: (combined: string)
|
|
|
13
14
|
export declare function getLatestReportSubmitTime(): number;
|
|
14
15
|
export declare function setLatestReportSubmitTime(timeMs: number): void;
|
|
15
16
|
export declare function clearLatestWalletId(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get the checkout completion time in seconds
|
|
19
|
+
* @param checkout
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCheckoutCompletionTime(checkout: CheckoutHistoryItem): number;
|
|
@@ -27,7 +27,9 @@ export declare enum FlagKey {
|
|
|
27
27
|
/** Token Transfer additional disclaimer text. */
|
|
28
28
|
TokenTransferAdditionalDisclaimer = "token_transfer_additional_disclaimer",
|
|
29
29
|
/** Maximum usd amount that can be checked out. */
|
|
30
|
-
MaxCheckoutUsd = "max_checkout_usd"
|
|
30
|
+
MaxCheckoutUsd = "max_checkout_usd",
|
|
31
|
+
/** Payment proxy server - whether we're using FROG for proxying payment (mesh) requests */
|
|
32
|
+
EnableFrogProxyServer = "enable_frog_proxy_server"
|
|
31
33
|
}
|
|
32
34
|
export declare const flagConfig: {
|
|
33
35
|
disable_mantle_source_assets: {
|
|
@@ -49,6 +51,14 @@ export declare const flagConfig: {
|
|
|
49
51
|
blocked_countries: {
|
|
50
52
|
type: "string";
|
|
51
53
|
default_value: string;
|
|
54
|
+
overrides: {
|
|
55
|
+
if_any: {
|
|
56
|
+
key: "apiKey";
|
|
57
|
+
type: "isAnyOf";
|
|
58
|
+
values: string[];
|
|
59
|
+
}[];
|
|
60
|
+
value: string;
|
|
61
|
+
}[];
|
|
52
62
|
};
|
|
53
63
|
address_blacklist: {
|
|
54
64
|
type: "string";
|
|
@@ -117,4 +127,16 @@ export declare const flagConfig: {
|
|
|
117
127
|
value: string;
|
|
118
128
|
})[];
|
|
119
129
|
};
|
|
130
|
+
enable_frog_proxy_server: {
|
|
131
|
+
type: "boolean";
|
|
132
|
+
default_value: false;
|
|
133
|
+
overrides: {
|
|
134
|
+
if_any: {
|
|
135
|
+
key: "apiKey";
|
|
136
|
+
type: "isAnyOf";
|
|
137
|
+
values: string[];
|
|
138
|
+
}[];
|
|
139
|
+
value: true;
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
120
142
|
};
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ broke
|
|
|
14
14
|
};
|
|
15
15
|
interface MeshAccountInfo {
|
|
16
16
|
apiKey: string;
|
|
17
|
-
|
|
17
|
+
deviceId: string;
|
|
18
18
|
brokerType: MeshExchangeType;
|
|
19
19
|
integrations: TransferIntegration[];
|
|
20
20
|
targetChain: string;
|
|
21
|
+
authToken: string;
|
|
21
22
|
}
|
|
22
|
-
export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo): Promise<AssetHoldingsMap>;
|
|
23
|
+
export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo, enableFrogProxyServer?: boolean): Promise<AssetHoldingsMap>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { WalletInstance } from './Wallet';
|
|
2
|
-
export declare const groupedWallets: (recentWallets: WalletInstance[], walletInstances: WalletInstance[]) => WalletInstance[];
|
|
3
2
|
export declare const isRecentWallet: (recentWallets: WalletInstance[], walletId: string) => boolean;
|
|
4
3
|
export declare const isFunkitSdkConnector: (wallet: WalletInstance) => boolean;
|
|
5
4
|
export declare const isEIP6963Connector: (wallet: WalletInstance) => boolean;
|
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
zealWallet
|
|
4
|
-
} from "./chunk-JROWU5BP.js";
|
|
5
2
|
import {
|
|
6
3
|
xdefiWallet
|
|
7
4
|
} from "./chunk-NO7XMBB5.js";
|
|
5
|
+
import {
|
|
6
|
+
zealWallet
|
|
7
|
+
} from "./chunk-JROWU5BP.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AXWP3GD4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
kresusWallet
|
|
13
|
+
} from "./chunk-MJXPRJZT.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-ABFSXBE6.js";
|
|
17
|
-
import {
|
|
18
|
-
tokenPocketWallet
|
|
19
|
-
} from "./chunk-FRGSRLTS.js";
|
|
20
17
|
import {
|
|
21
18
|
tokenaryWallet
|
|
22
19
|
} from "./chunk-SLOIIJGP.js";
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-IPOC2VJX.js";
|
|
26
20
|
import {
|
|
27
21
|
uniswapWallet
|
|
28
22
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
24
|
+
tokenPocketWallet
|
|
25
|
+
} from "./chunk-IDKVN5CF.js";
|
|
32
26
|
import {
|
|
33
27
|
walletConnectWallet
|
|
34
28
|
} from "./chunk-NP5QGWNL.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-ISIBREBO.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
tahoWallet
|
|
34
|
+
} from "./chunk-6P2EMPZI.js";
|
|
35
|
+
import {
|
|
36
|
+
ramperWallet
|
|
37
|
+
} from "./chunk-PIUNLQJG.js";
|
|
38
|
+
import {
|
|
39
|
+
oneKeyWallet
|
|
40
|
+
} from "./chunk-4AD7VI2P.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2UCNRD7H.js";
|
|
44
44
|
import {
|
|
45
45
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-63YLN6R5.js";
|
|
47
47
|
import {
|
|
48
48
|
safeWallet
|
|
49
49
|
} from "./chunk-BQQQL6UD.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-MSFKSQBY.js";
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-R6RWZRFF.js";
|
|
53
56
|
import {
|
|
54
57
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
safepalWallet
|
|
58
|
-
} from "./chunk-6LPM6LUQ.js";
|
|
58
|
+
} from "./chunk-AD2KIJB6.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-V57WLZEE.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-ADIXAKUL.js";
|
|
65
65
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
omniWallet
|
|
70
|
-
} from "./chunk-7CUY5G6R.js";
|
|
66
|
+
imTokenWallet
|
|
67
|
+
} from "./chunk-COZ7MIQS.js";
|
|
71
68
|
import {
|
|
72
69
|
oneInchWallet
|
|
73
70
|
} from "./chunk-OESTDX6I.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
omniWallet
|
|
73
|
+
} from "./chunk-7CUY5G6R.js";
|
|
77
74
|
import {
|
|
78
75
|
phantomWallet
|
|
79
76
|
} from "./chunk-ZSVTX6EK.js";
|
|
80
77
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-BVX4XGNP.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
okxWallet
|
|
82
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
86
83
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
84
|
+
frontierWallet
|
|
85
|
+
} from "./chunk-3S2U24BJ.js";
|
|
86
|
+
import {
|
|
87
|
+
foxWallet
|
|
88
|
+
} from "./chunk-LMZMXEXL.js";
|
|
89
89
|
import {
|
|
90
90
|
enkryptWallet
|
|
91
91
|
} from "./chunk-SJTXS4ZW.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-GSOYKKIS.js";
|
|
95
95
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
96
|
+
injectedWallet
|
|
97
|
+
} from "./chunk-VCVVV2K7.js";
|
|
98
98
|
import {
|
|
99
99
|
ledgerWallet
|
|
100
100
|
} from "./chunk-BRBKM4PW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-W5O4YSZN.js";
|
|
107
|
-
import {
|
|
108
|
-
clvWallet
|
|
109
|
-
} from "./chunk-LEXSM5KI.js";
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-G73C6P5P.js";
|
|
110
104
|
import {
|
|
111
105
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-DTRYS3MO.js";
|
|
113
107
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
108
|
+
bitgetWallet
|
|
109
|
+
} from "./chunk-A5APNTGL.js";
|
|
110
|
+
import {
|
|
111
|
+
bitskiWallet
|
|
112
|
+
} from "./chunk-P74YPRF6.js";
|
|
116
113
|
import {
|
|
117
114
|
coinbaseWallet
|
|
118
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-HBA36GW3.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-LN7OD5EC.js";
|
|
@@ -123,31 +123,31 @@ import {
|
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-CTU6JCOK.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
frameWallet
|
|
127
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
128
|
+
import {
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
128
131
|
import {
|
|
129
132
|
bifrostWallet
|
|
130
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W6N74MS3.js";
|
|
131
134
|
import {
|
|
132
135
|
bitverseWallet
|
|
133
136
|
} from "./chunk-3HZRRP4Y.js";
|
|
134
|
-
import {
|
|
135
|
-
bitskiWallet
|
|
136
|
-
} from "./chunk-P74YPRF6.js";
|
|
137
137
|
import {
|
|
138
138
|
bloomWallet
|
|
139
139
|
} from "./chunk-S27IADFU.js";
|
|
140
140
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
141
|
+
bybitWallet
|
|
142
|
+
} from "./chunk-6ONTSPEY.js";
|
|
143
143
|
import {
|
|
144
144
|
braveWallet
|
|
145
145
|
} from "./chunk-PB254NQ4.js";
|
|
146
|
-
import "./chunk-WRA2DVJ7.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
clvWallet
|
|
148
|
+
} from "./chunk-KR6JBW5E.js";
|
|
150
149
|
import "./chunk-23WIEY36.js";
|
|
150
|
+
import "./chunk-WRA2DVJ7.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@aws-sdk/client-s3": "^3.600.0",
|
|
48
48
|
"@chromatic-com/storybook": "^3.2.2",
|
|
49
|
-
"@meshconnect/node-api": "2.0.
|
|
49
|
+
"@meshconnect/node-api": "2.0.14",
|
|
50
50
|
"@storybook/addon-essentials": "^8.4.4",
|
|
51
51
|
"@storybook/addon-interactions": "^8.4.4",
|
|
52
52
|
"@storybook/addon-links": "^8.4.4",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"react-virtuoso": "4.10.1",
|
|
91
91
|
"ua-parser-js": "^1.0.37",
|
|
92
92
|
"uuid": "^9.0.1",
|
|
93
|
-
"@funkit/
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
93
|
+
"@funkit/api-base": "1.5.0",
|
|
94
|
+
"@funkit/utils": "1.0.3",
|
|
95
|
+
"@funkit/wagmi-tools": "3.0.21",
|
|
96
|
+
"@funkit/core": "2.3.0"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
4
|
-
export declare function FunCheckoutNotification({ checkoutHistoryItem, onSelect, }: {
|
|
5
|
-
checkoutHistoryItem: CheckoutHistoryItem;
|
|
6
|
-
onSelect: (depositAddress: `0x${string}`, initialPage: HistoryContentPages) => void;
|
|
7
|
-
}): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useChainId(): number | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useFunkitCheckoutChainsById: () => Record<number, import("..").Chain>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
|
-
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig | ServerCheckoutConfig): FunkitCheckoutActionParams[];
|
|
3
|
-
export declare function isCheckoutCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
4
|
-
export declare function isCheckoutDirectCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
5
|
-
export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfig | ServerCheckoutConfig): boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DeepPartial } from '@funkit/utils';
|
|
2
|
-
import { type FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
|
-
export declare function useCheckoutQuote(): (overridingCheckoutItem?: DeepPartial<FunkitActiveCheckoutItem>) => Promise<{
|
|
4
|
-
baseQuote: import("@funkit/api-base").CheckoutQuoteResponse;
|
|
5
|
-
finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
|
|
6
|
-
availableAssetAmount: number | undefined;
|
|
7
|
-
}>;
|