@funkit/connect 13.1.0 → 13.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 +69 -0
- package/dist/clients/aave.d.ts +1 -1
- package/dist/clients/{chunk-AJGDTTRJ.js → chunk-3NHG6UYS.js} +1 -1
- package/dist/clients/{chunk-ZBBYOJWK.js → chunk-4LM2J6AX.js} +8 -0
- package/dist/clients/{chunk-NNMZMHO6.js → chunk-AN6A4SB5.js} +2 -2
- package/dist/clients/{chunk-D6EY2WW4.js → chunk-LNUR7YLW.js} +1 -1
- package/dist/clients/{chunk-ZEXIDBIZ.js → chunk-PNYV3G5M.js} +1 -1
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +4 -4
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.d.ts +9 -3
- package/dist/clients/mallard.js +5 -3
- package/dist/clients/nado.js +3 -3
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -3
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +2 -3
- package/dist/consts/customers.d.ts +1 -1
- package/dist/consts/polymarket.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/convert/hostTimeout.d.ts +1 -1
- package/dist/domains/destinationAssetBalance.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -3
- package/dist/hooks/statsig/index.d.ts +1 -0
- package/dist/hooks/track/analytics/events.d.ts +8 -20
- package/dist/hooks/track/analytics/mappers.d.ts +11 -1
- package/dist/hooks/track/analytics/swappedErrorCode.d.ts +1 -0
- package/dist/hooks/track/analytics/swappedWithdrawalOrder.d.ts +10 -0
- package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +2 -3
- package/dist/hooks/track/analytics/useTrackExecutionProgressEvents.d.ts +2 -2
- package/dist/hooks/useConvertBalances.d.ts +6 -1
- package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +3 -3
- package/dist/hooks/useModalStateValueWithProp.d.ts +1 -1
- package/dist/hooks/useRefreshBalancesOnDeposit.d.ts +20 -0
- package/dist/index.js +1532 -1036
- package/dist/interfaces/solanaWallet.d.ts +2 -2
- package/dist/modals/CheckoutModal/FiatV2/FiatV2Step.d.ts +17 -0
- package/dist/modals/CheckoutModal/FiatV2/fiatV2PaymentSelectionEffects.d.ts +26 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2PaymentSelectionHost.d.ts +22 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
- package/dist/modals/CheckoutModal/SourceChange/AddCardItem.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +3 -0
- package/dist/modals/CheckoutModal/SourceChange/useAddCardRow.d.ts +12 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -0
- package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +5 -5
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +2 -3
- package/dist/modals/WithdrawalModal/useFiatWithdrawal.d.ts +5 -2
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -2
- package/dist/providers/FunkitQuoteContext.track.d.ts +2 -3
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/v2/screens/fiat/FiatPlaceholderScreen.d.ts +9 -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/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 +55 -55
- 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 +7 -7
- package/dist/wallets/walletConnectors/{chunk-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 13.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 23488c3: Mallard deposit configs can set a maximum deposit amount.
|
|
8
|
+
- 7415bd7: Add a gated "Add a card" row to the checkout picker that opens the new web fiat deposit flow.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- e6d36b4: Use American spelling in comments, docs and test titles; no behavior change
|
|
13
|
+
- a16d619: Refresh Convert and deposit destination balances after a deposit or conversion completes.
|
|
14
|
+
- 92087b8: Convert no longer sends a quote request with a stale amount.
|
|
15
|
+
- 23488c3: When a limit changes the starting amount, the token amount now follows it instead of keeping the configured target amount.
|
|
16
|
+
- 467566c: The gated FiatV2 deposit step now opens on card entry.
|
|
17
|
+
- 95bd504: Categorize recognized Swapped payment failures with stable analytics error codes.
|
|
18
|
+
- Updated dependencies [d9e94a2]
|
|
19
|
+
- Updated dependencies [cc02a32]
|
|
20
|
+
- Updated dependencies [e6d36b4]
|
|
21
|
+
- Updated dependencies [23488c3]
|
|
22
|
+
- Updated dependencies [237a4fd]
|
|
23
|
+
- Updated dependencies [c98a9dd]
|
|
24
|
+
- Updated dependencies [d18f3b6]
|
|
25
|
+
- Updated dependencies [185d42d]
|
|
26
|
+
- Updated dependencies [b04bda5]
|
|
27
|
+
- Updated dependencies [42aefcc]
|
|
28
|
+
- Updated dependencies [4f86e84]
|
|
29
|
+
- Updated dependencies [93d8e79]
|
|
30
|
+
- Updated dependencies [1dbd787]
|
|
31
|
+
- Updated dependencies [fcae59b]
|
|
32
|
+
- Updated dependencies [edfce1a]
|
|
33
|
+
- Updated dependencies [c3381da]
|
|
34
|
+
- Updated dependencies [5ce3f30]
|
|
35
|
+
- Updated dependencies [abec6e3]
|
|
36
|
+
- Updated dependencies [dbe5758]
|
|
37
|
+
- Updated dependencies [a8dd627]
|
|
38
|
+
- Updated dependencies [f19b360]
|
|
39
|
+
- Updated dependencies [85ca13d]
|
|
40
|
+
- Updated dependencies [2adb0f2]
|
|
41
|
+
- Updated dependencies [f874e72]
|
|
42
|
+
- Updated dependencies [3bf6603]
|
|
43
|
+
- Updated dependencies [af75d9a]
|
|
44
|
+
- Updated dependencies [af75d9a]
|
|
45
|
+
- Updated dependencies [6d54660]
|
|
46
|
+
- @funkit/connect-core@17.1.0
|
|
47
|
+
- @funkit/api-base@10.5.0
|
|
48
|
+
|
|
49
|
+
## 13.1.1
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- c421418: Forms-of-payment requests send the active checkout ID, so hosted MoonPay orders are attributed to the checkout that opened them.
|
|
54
|
+
- 19cfb48: Share screen analytics names and metadata across SDKs while preserving existing web events.
|
|
55
|
+
- 486b8f7: Upgrade storybook to 10.6.2 to patch CVE-2026-114125 (CVSS 9.4)
|
|
56
|
+
- 78f8b72: Emit withdrawal submission analytics with order details for Swapped withdrawals.
|
|
57
|
+
- Updated dependencies [f2797f6]
|
|
58
|
+
- Updated dependencies [77e23f1]
|
|
59
|
+
- Updated dependencies [2dbf107]
|
|
60
|
+
- Updated dependencies [643efb7]
|
|
61
|
+
- Updated dependencies [f2797f6]
|
|
62
|
+
- Updated dependencies [1822d7e]
|
|
63
|
+
- Updated dependencies [f2797f6]
|
|
64
|
+
- Updated dependencies [c421418]
|
|
65
|
+
- Updated dependencies [cfe6b5a]
|
|
66
|
+
- Updated dependencies [19cfb48]
|
|
67
|
+
- Updated dependencies [351e0a9]
|
|
68
|
+
- Updated dependencies [072ec92]
|
|
69
|
+
- @funkit/connect-core@17.0.0
|
|
70
|
+
- @funkit/api-base@10.4.0
|
|
71
|
+
|
|
3
72
|
## 13.1.0
|
|
4
73
|
|
|
5
74
|
### Minor Changes
|
package/dist/clients/aave.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type Address } from 'viem';
|
|
17
17
|
import type { FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext/types';
|
|
18
|
-
/** Action type
|
|
18
|
+
/** Action type signaling an Aave v3 Core supply, executed server-side after a UDA deposit lands. */
|
|
19
19
|
export declare const AAVE_SUPPLY_ACTION_TYPE = "AAVE_SUPPLY";
|
|
20
20
|
/** Returns true if Fun has a VaultDepositor deployment on `chainId` ready to route Aave supplies. */
|
|
21
21
|
export declare function isAaveSupplySupported(chainId: number): boolean;
|
|
@@ -551,6 +551,7 @@ var en_default = {
|
|
|
551
551
|
unableToCreateAccount: "Unable to create account. Please try again or contact us for assistance."
|
|
552
552
|
},
|
|
553
553
|
sourceChange: {
|
|
554
|
+
addCard: "Add a card",
|
|
554
555
|
native: "Native",
|
|
555
556
|
supplyNativeAsset: "Supply {{ticker}}",
|
|
556
557
|
useOtherAssets: "Use other assets",
|
|
@@ -1186,6 +1187,7 @@ var es_default = {
|
|
|
1186
1187
|
unableToCreateAccount: "No se pudo crear la cuenta. Por favor, int\xE9ntalo de nuevo o cont\xE1ctanos para obtener ayuda."
|
|
1187
1188
|
},
|
|
1188
1189
|
sourceChange: {
|
|
1190
|
+
addCard: "A\xF1adir una tarjeta",
|
|
1189
1191
|
native: "Nativo",
|
|
1190
1192
|
supplyNativeAsset: "Suministrar {{ticker}}",
|
|
1191
1193
|
useOtherAssets: "Usar otros activos",
|
|
@@ -1824,6 +1826,7 @@ var fr_default = {
|
|
|
1824
1826
|
unableToCreateAccount: "Impossible de cr\xE9er le compte. Veuillez r\xE9essayer ou contactez-nous pour obtenir de l'aide."
|
|
1825
1827
|
},
|
|
1826
1828
|
sourceChange: {
|
|
1829
|
+
addCard: "Ajouter une carte",
|
|
1827
1830
|
native: "Natif",
|
|
1828
1831
|
supplyNativeAsset: "Fournir {{ticker}}",
|
|
1829
1832
|
useOtherAssets: "Utiliser d'autres actifs",
|
|
@@ -2462,6 +2465,7 @@ var ja_default = {
|
|
|
2462
2465
|
unableToCreateAccount: "\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u3044\u305F\u3060\u304F\u304B\u3001\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002"
|
|
2463
2466
|
},
|
|
2464
2467
|
sourceChange: {
|
|
2468
|
+
addCard: "\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0",
|
|
2465
2469
|
native: "\u30CD\u30A4\u30C6\u30A3\u30D6",
|
|
2466
2470
|
supplyNativeAsset: "{{ticker}}\u3092\u4F9B\u7D66",
|
|
2467
2471
|
useOtherAssets: "\u4ED6\u306E\u8CC7\u7523\u3092\u4F7F\u7528",
|
|
@@ -3100,6 +3104,7 @@ var ko_default = {
|
|
|
3100
3104
|
unableToCreateAccount: "\uACC4\uC815\uC744 \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uBB38\uC758\uD574 \uC8FC\uC138\uC694."
|
|
3101
3105
|
},
|
|
3102
3106
|
sourceChange: {
|
|
3107
|
+
addCard: "\uCE74\uB4DC \uCD94\uAC00",
|
|
3103
3108
|
native: "\uB124\uC774\uD2F0\uBE0C",
|
|
3104
3109
|
supplyNativeAsset: "{{ticker}} \uACF5\uAE09",
|
|
3105
3110
|
useOtherAssets: "\uB2E4\uB978 \uC790\uC0B0 \uC0AC\uC6A9",
|
|
@@ -3738,6 +3743,7 @@ var ru_default = {
|
|
|
3738
3743
|
unableToCreateAccount: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0430\u043A\u043A\u0430\u0443\u043D\u0442. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0438\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438."
|
|
3739
3744
|
},
|
|
3740
3745
|
sourceChange: {
|
|
3746
|
+
addCard: "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443",
|
|
3741
3747
|
native: "\u041D\u0430\u0442\u0438\u0432\u043D\u044B\u0439",
|
|
3742
3748
|
supplyNativeAsset: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C {{ticker}}",
|
|
3743
3749
|
useOtherAssets: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u043A\u0442\u0438\u0432\u044B",
|
|
@@ -4376,6 +4382,7 @@ var tr_default = {
|
|
|
4376
4382
|
unableToCreateAccount: "Hesap olu\u015Fturulamad\u0131. L\xFCtfen tekrar deneyin veya bizimle ileti\u015Fime ge\xE7in."
|
|
4377
4383
|
},
|
|
4378
4384
|
sourceChange: {
|
|
4385
|
+
addCard: "Kart ekle",
|
|
4379
4386
|
native: "Yerel",
|
|
4380
4387
|
supplyNativeAsset: "{{ticker}} Sa\u011Fla",
|
|
4381
4388
|
useOtherAssets: "Di\u011Fer varl\u0131klar\u0131 kullan",
|
|
@@ -5014,6 +5021,7 @@ var zh_default = {
|
|
|
5014
5021
|
unableToCreateAccount: "\u65E0\u6CD5\u521B\u5EFA\u8D26\u6237\u3002\u8BF7\u91CD\u8BD5\u6216\u8054\u7CFB\u6211\u4EEC\u5BFB\u6C42\u5E2E\u52A9\u3002"
|
|
5015
5022
|
},
|
|
5016
5023
|
sourceChange: {
|
|
5024
|
+
addCard: "\u6DFB\u52A0\u5361\u7247",
|
|
5017
5025
|
native: "\u539F\u751F",
|
|
5018
5026
|
supplyNativeAsset: "\u4F9B\u5E94 {{ticker}}",
|
|
5019
5027
|
useOtherAssets: "\u4F7F\u7528\u5176\u4ED6\u8D44\u4EA7",
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
isExpectedNadoWithdrawalFailure,
|
|
7
7
|
toNadoWithdrawalErrorMessage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LNUR7YLW.js";
|
|
9
9
|
import {
|
|
10
10
|
toWithdrawalAmountBaseUnit
|
|
11
11
|
} from "./chunk-LICTGZXW.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-OODIKHYE.js";
|
|
17
17
|
import {
|
|
18
18
|
i18n_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4LM2J6AX.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-B67ESBGC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-AN6A4SB5.js";
|
|
5
5
|
import "../../chunk-44LV4GCX.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-LNUR7YLW.js";
|
|
7
7
|
import "../../chunk-LICTGZXW.js";
|
|
8
8
|
import "../../chunk-OODIKHYE.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-4LM2J6AX.js";
|
|
10
10
|
import "../../chunk-B67ESBGC.js";
|
|
11
11
|
export {
|
|
12
12
|
createNadoWithdrawalCallback
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-LNUR7YLW.js";
|
|
6
|
+
import "../../chunk-4LM2J6AX.js";
|
|
7
7
|
export {
|
|
8
8
|
isExpectedNadoWithdrawalFailure,
|
|
9
9
|
toNadoWithdrawalErrorMessage
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isNadoWithdrawalConfig
|
|
4
4
|
} from "../../chunk-LCYJLY4X.js";
|
|
5
|
-
import "../../chunk-LICTGZXW.js";
|
|
6
5
|
import "../../chunk-PZSKO3BJ.js";
|
|
7
6
|
import {
|
|
8
7
|
useFunkitConfig
|
|
9
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-3NHG6UYS.js";
|
|
10
9
|
import {
|
|
11
10
|
useFunkitTranslation
|
|
12
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-PNYV3G5M.js";
|
|
12
|
+
import "../../chunk-LICTGZXW.js";
|
|
13
13
|
import "../../chunk-2W2P3OS6.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-4LM2J6AX.js";
|
|
15
15
|
import {
|
|
16
16
|
logger
|
|
17
17
|
} from "../../chunk-B67ESBGC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-3NHG6UYS.js";
|
|
5
|
+
import "../../chunk-PNYV3G5M.js";
|
|
6
6
|
import {
|
|
7
7
|
useAccount
|
|
8
8
|
} from "../../chunk-2W2P3OS6.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-4LM2J6AX.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "../../chunk-B67ESBGC.js";
|
package/dist/clients/lighter.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-PZSKO3BJ.js";
|
|
7
7
|
import {
|
|
8
8
|
useFunkitConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3NHG6UYS.js";
|
|
10
10
|
import {
|
|
11
11
|
Box,
|
|
12
12
|
hasRemoteImageLoaded,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-JXTKKLVA.js";
|
|
16
16
|
import {
|
|
17
17
|
useFunkitTranslation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PNYV3G5M.js";
|
|
19
19
|
import "./chunk-OODIKHYE.js";
|
|
20
20
|
import "./chunk-2W2P3OS6.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4LM2J6AX.js";
|
|
22
22
|
import {
|
|
23
23
|
logger
|
|
24
24
|
} from "./chunk-B67ESBGC.js";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { type ReactNode } from 'react';
|
|
18
18
|
import { type Address } from 'viem';
|
|
19
19
|
import type { GetDestinationAssetBalances } from '../domains/destinationAssetBalance';
|
|
20
|
-
import type { DynamicTargetAssetCandidate, FunkitCheckoutActionParams, FunkitCheckoutConfig, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
|
|
20
|
+
import type { DynamicTargetAssetCandidate, FunkitCheckoutActionParams, FunkitCheckoutConfig, ModalTitleContext, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
|
|
21
21
|
/** Mallard deposit contract to credit a Mallard (perps) account. */
|
|
22
22
|
export declare const MALLARD_DEPOSIT_ADDRESS: `0x${string}`;
|
|
23
23
|
/** VaultDepositooor on Zorro chain. */
|
|
@@ -113,12 +113,18 @@ export interface CreateMallardDepositConfigParams {
|
|
|
113
113
|
* the menu without balances.
|
|
114
114
|
*/
|
|
115
115
|
getAssetBalances?: GetDestinationAssetBalances;
|
|
116
|
+
/**
|
|
117
|
+
* Maximum USD the user may deposit for the selected asset. Called with the
|
|
118
|
+
* asset's chain, address and routing id. Return a negative number for no
|
|
119
|
+
* maximum. Must not be below the asset's minimum.
|
|
120
|
+
*/
|
|
121
|
+
getMaxDepositUSD?: (asset: ModalTitleContext) => number;
|
|
116
122
|
}
|
|
117
123
|
/**
|
|
118
|
-
* Builds routing and deposit actions for the integrator's complete
|
|
124
|
+
* Builds routing and deposit actions for the integrator's complete catalog.
|
|
119
125
|
* For translated modal titles, spread the result and override `modalTitle`
|
|
120
126
|
* with a string or a resolver keyed by `dynamicRoutingId`.
|
|
121
127
|
*/
|
|
122
|
-
export declare function createMallardDepositConfig({ address, accounts, getAssetBalances, }: CreateMallardDepositConfigParams): FunkitCheckoutConfig & {
|
|
128
|
+
export declare function createMallardDepositConfig({ address, accounts, getAssetBalances, getMaxDepositUSD, }: CreateMallardDepositConfigParams): FunkitCheckoutConfig & {
|
|
123
129
|
dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[];
|
|
124
130
|
};
|
package/dist/clients/mallard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitTranslation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PNYV3G5M.js";
|
|
5
5
|
import {
|
|
6
6
|
getAccount,
|
|
7
7
|
sendTransaction,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
useAccount,
|
|
15
15
|
useConfig
|
|
16
16
|
} from "./chunk-2W2P3OS6.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-4LM2J6AX.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-B67ESBGC.js";
|
|
@@ -298,7 +298,8 @@ function getMallardAssets({
|
|
|
298
298
|
function createMallardDepositConfig({
|
|
299
299
|
address,
|
|
300
300
|
accounts,
|
|
301
|
-
getAssetBalances
|
|
301
|
+
getAssetBalances,
|
|
302
|
+
getMaxDepositUSD
|
|
302
303
|
}) {
|
|
303
304
|
const candidates = getMallardAssets({ address, accounts });
|
|
304
305
|
const destinationAccountConfig = {
|
|
@@ -334,6 +335,7 @@ function createMallardDepositConfig({
|
|
|
334
335
|
dynamicRoutingId: initialCandidate.dynamicRoutingId,
|
|
335
336
|
destinationAccountConfig,
|
|
336
337
|
dynamicTargetAssetCandidates: candidates,
|
|
338
|
+
getMaxDepositUSD,
|
|
337
339
|
// Route-specific UDA settings take precedence, including Spot's absent action.
|
|
338
340
|
qrcodeActionType: "MALLARD_PERPS",
|
|
339
341
|
generateActionsParams: initialCandidate.generateActionsParams
|
package/dist/clients/nado.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AN6A4SB5.js";
|
|
5
5
|
import "./chunk-44LV4GCX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LNUR7YLW.js";
|
|
7
7
|
import "./chunk-LICTGZXW.js";
|
|
8
8
|
import "./chunk-OODIKHYE.js";
|
|
9
9
|
import {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-2W2P3OS6.js";
|
|
13
13
|
import {
|
|
14
14
|
i18n_default
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4LM2J6AX.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
18
18
|
} from "./chunk-B67ESBGC.js";
|
|
@@ -16,7 +16,7 @@ interface BaseDropdownItemProps {
|
|
|
16
16
|
borderRadius?: BoxProps['borderRadius'];
|
|
17
17
|
horizontalPadding?: BoxProps['paddingX'];
|
|
18
18
|
verticalPadding?: BoxProps['paddingY'];
|
|
19
|
-
/** Inline style on the row, e.g. to undo the disabled fade on a row that mutes its own
|
|
19
|
+
/** Inline style on the row, e.g. to undo the disabled fade on a row that mutes its own colors. */
|
|
20
20
|
style?: React.CSSProperties;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -2,8 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import type { CheckoutFees } from '../../domains/fees';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
4
|
import { type FunTooltipProps } from '../FunTooltip/FunTooltip';
|
|
5
|
-
import type {
|
|
6
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
5
|
+
import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
7
6
|
export declare const NO_DATA_VALUE = "-";
|
|
8
7
|
interface PaymentFeesSummaryProps {
|
|
9
8
|
isLoading: boolean;
|
|
@@ -14,7 +13,7 @@ interface PaymentFeesSummaryProps {
|
|
|
14
13
|
valuesNotAvailable?: boolean;
|
|
15
14
|
isWithdrawal: boolean;
|
|
16
15
|
extraSourceChainGasUsd?: number;
|
|
17
|
-
step:
|
|
16
|
+
step: AnalyticsNamedStep;
|
|
18
17
|
/**
|
|
19
18
|
* Integrator rows rendered before the SDK's own rows.
|
|
20
19
|
* - Display-only: excluded from the total, expandability and analytics.
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
2
2
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
3
3
|
import type { TransactionBreakdownClickedProperties } from '../../hooks/track/analytics/events';
|
|
4
|
+
import { type AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
4
5
|
import type { TrackEventData } from '../../hooks/track/useTrack';
|
|
5
6
|
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
6
7
|
import type { FeeItem } from './PaymentFeesSummary';
|
|
7
|
-
import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
|
|
8
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
9
8
|
export declare function buildTransactionBreakdownClickedProperties({ connectorId, extraSourceChainGasUsd, paymentMethodInfo, quote, step, }: {
|
|
10
9
|
connectorId: string | undefined;
|
|
11
10
|
extraSourceChainGasUsd: number;
|
|
12
11
|
paymentMethodInfo: PaymentMethodInfo;
|
|
13
12
|
quote: FunkitCheckoutQuoteResult | null | undefined;
|
|
14
|
-
step:
|
|
13
|
+
step: AnalyticsNamedStep;
|
|
15
14
|
}): TransactionBreakdownClickedProperties;
|
|
16
15
|
export declare const trackEventFromPaymentFeesSummary: (checkoutItem: FunkitActiveCheckoutItem, feeItems: FeeItem[], isWithdrawal: boolean) => TrackEventData;
|
|
@@ -2,8 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
import type { ErrorNotification } from '../FunNotification/FunNotification';
|
|
4
4
|
import type { AnalyticsFlow } from '../../hooks/track/analytics/events';
|
|
5
|
-
import type {
|
|
6
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
5
|
+
import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
7
6
|
interface ModalErrorStateProps {
|
|
8
7
|
/** Icon rendered inside a 32×32 circular `offBackground` container. Defaults to a filled InfoIcon. */
|
|
9
8
|
icon?: ReactNode;
|
|
@@ -17,7 +16,7 @@ interface ModalErrorStateProps {
|
|
|
17
16
|
/** Optional style for the container. */
|
|
18
17
|
style?: React.CSSProperties;
|
|
19
18
|
flow: AnalyticsFlow;
|
|
20
|
-
step:
|
|
19
|
+
step: AnalyticsNamedStep;
|
|
21
20
|
track: Omit<ErrorNotification, 'message'> | null;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
@@ -47,7 +47,7 @@ export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitC
|
|
|
47
47
|
* even when they share the same target token (the mainnet USDC new-user routes).
|
|
48
48
|
*
|
|
49
49
|
* Used to scope the token-entry-by-default treatment to spot deposits only —
|
|
50
|
-
* perps deposits always open in fiat. A route without a
|
|
50
|
+
* perps deposits always open in fiat. A route without a recognizable spot id
|
|
51
51
|
* is treated as non-spot (the safe, fiat default).
|
|
52
52
|
*/
|
|
53
53
|
export declare function isLighterSpot(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'dynamicRoutingId'> | undefined): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Address } from 'viem';
|
|
2
|
-
/** Action type
|
|
2
|
+
/** Action type signaling a Polymarket Perps deposit (USDC.e → pUSD → Perps). */
|
|
3
3
|
export declare const POLYMARKET_PERPS_DEPOSIT_ACTION_TYPE = "POLYMARKET_PERPS_DEPOSIT";
|
|
4
4
|
/**
|
|
5
5
|
* Polymarket pUSD on Polygon. Perps deposits must land in pUSD on-chain, so
|
|
@@ -43,7 +43,7 @@ export interface HistoricalCheckoutItem extends Pick<FunkitActiveCheckoutItem, H
|
|
|
43
43
|
* stripped candidates;
|
|
44
44
|
* - `modalTitle` is restored whenever a live config exists (falling back to the
|
|
45
45
|
* serializable value) so validation passes;
|
|
46
|
-
* - the remaining live-only fields (`getMinDepositUSD`,
|
|
46
|
+
* - the remaining live-only fields (`getMinDepositUSD`, `getMaxDepositUSD`,
|
|
47
47
|
* `generateActionsParams`, `polymarketPerpsTransfer`, `headerTabs`,
|
|
48
48
|
* `resolveHealthFactor`, `destinationAccountConfig`) are carried forward only
|
|
49
49
|
* when re-starting the still-active checkout.
|
|
@@ -3,6 +3,6 @@ export declare const HOST_TIMEOUT_MS = 10000;
|
|
|
3
3
|
/**
|
|
4
4
|
* Rejects if the host's promise hasn't settled in time, so a callback that
|
|
5
5
|
* never answers shows as a failure the user can retry, not endless loading.
|
|
6
|
-
* The host's own work isn't
|
|
6
|
+
* The host's own work isn't canceled; its late answer is ignored.
|
|
7
7
|
*/
|
|
8
8
|
export declare function withHostTimeout<T>(promise: Promise<T>, timeoutMs?: number): Promise<T>;
|
|
@@ -17,7 +17,7 @@ export type DestinationAssetBalance = ConvertAssetBalance;
|
|
|
17
17
|
* Reads wallet balances for the destination asset menu, in one call.
|
|
18
18
|
* - Called when the menu opens, then every 60s while it stays open.
|
|
19
19
|
* - Answer for exactly the assets passed; leave out any you can't read or
|
|
20
|
-
* don't want
|
|
20
|
+
* don't want labeled. Don't throw.
|
|
21
21
|
* @experimental
|
|
22
22
|
*/
|
|
23
23
|
export type GetDestinationAssetBalances = (params: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
|
|
2
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
3
1
|
import { type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
2
|
+
import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
4
3
|
interface CheckoutQuoteParams {
|
|
5
|
-
analyticsStep:
|
|
4
|
+
analyticsStep: AnalyticsNamedStep;
|
|
6
5
|
recipientAddress: string;
|
|
7
6
|
selectedChainId: string | undefined;
|
|
8
7
|
selectedTokenAddress: string | null | undefined;
|
|
@@ -2,11 +2,10 @@ import type { QuoteMode } from '../../../domains/quoteMode';
|
|
|
2
2
|
import type { DirectExecutionType, FormOfPaymentType } from '@funkit/api-base';
|
|
3
3
|
import type { CheckoutStatus } from '../../../domains/checkout';
|
|
4
4
|
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
5
|
-
import type { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
|
|
6
5
|
import type { AmountSelectionType } from '../../../modals/CheckoutModal/InputAmount/state';
|
|
7
|
-
import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
8
6
|
import type { FunNotificationType } from '../../../components/FunNotification/FunNotification';
|
|
9
|
-
import type { PaymentMethod } from '@funkit/connect-core';
|
|
7
|
+
import type { AnalyticsStep, PaymentMethod, StepViewedProperties as SharedStepViewedProperties } from '@funkit/connect-core';
|
|
8
|
+
export type { AnalyticsStep } from '@funkit/connect-core';
|
|
10
9
|
/**
|
|
11
10
|
* Analytics v2 — the improved, explicit Statsig event scheme that will replace
|
|
12
11
|
* the `fc::`/`fw::` enums in `../CheckoutModalEvent.ts` / `../WithdrawModalEvent.ts`.
|
|
@@ -47,7 +46,6 @@ export declare enum AnalyticsEvent {
|
|
|
47
46
|
export type ConnectionStatus = 'new' | 'existing';
|
|
48
47
|
export type AnalyticsFlow = 'deposit' | 'withdraw' | 'convert';
|
|
49
48
|
export type AnalyticsPaymentRail = 'swapped' | 'meld' | 'bridge';
|
|
50
|
-
export type AnalyticsStep = Lowercase<FunCheckoutStep | WithdrawalModalStep>;
|
|
51
49
|
export type ModalClosedAction = 'close' | 'new_deposit' | 'new_withdrawal';
|
|
52
50
|
export type ModalCompletionState = 'completed' | 'not_completed' | 'undetected';
|
|
53
51
|
/** Envelope carried by every analytics-v2 event. */
|
|
@@ -217,6 +215,11 @@ export type TransactionSubmittedProperties = Omit<ExecutionTransactionSnapshotPr
|
|
|
217
215
|
quote_id: string | null;
|
|
218
216
|
payment_rail?: AnalyticsPaymentRail | null;
|
|
219
217
|
order_id?: string | null;
|
|
218
|
+
/** Original provider order values, distinct from the executed quote amounts. */
|
|
219
|
+
order_amount?: string | null;
|
|
220
|
+
order_asset?: string | null;
|
|
221
|
+
order_network?: string | null;
|
|
222
|
+
order_timestamp?: number | null;
|
|
220
223
|
};
|
|
221
224
|
export type ExecutionSucceededProperties = ExecutionTransactionSnapshotProperties & {
|
|
222
225
|
fulfillment_time_ms: number | null;
|
|
@@ -267,23 +270,8 @@ export type TabSwitchedProperties = {
|
|
|
267
270
|
switch_count: number;
|
|
268
271
|
tab: PaymentMethodType;
|
|
269
272
|
};
|
|
270
|
-
export type StepViewedProperties = {
|
|
273
|
+
export type StepViewedProperties = SharedStepViewedProperties & {
|
|
271
274
|
flow: AnalyticsFlow;
|
|
272
|
-
/**
|
|
273
|
-
* Whether the user initiated a back navigation gesture. Note that we support
|
|
274
|
-
* back navigation by step name, which falls back to pushing the step instead
|
|
275
|
-
* if it's not already in history. Thus, `step_index` may still be incremented
|
|
276
|
-
* even if `is_back_navigation` is true.
|
|
277
|
-
*/
|
|
278
|
-
is_back_navigation: boolean;
|
|
279
|
-
prev_step: AnalyticsStep | null;
|
|
280
|
-
step: AnalyticsStep;
|
|
281
|
-
/**
|
|
282
|
-
* 1-based index of the step being entered. When navigating backward, we attempt
|
|
283
|
-
* to preserve the original index of the step when it was first entered. When
|
|
284
|
-
* navigating forward, it is incremented by 1.
|
|
285
|
-
*/
|
|
286
|
-
step_index: number;
|
|
287
275
|
};
|
|
288
276
|
/** Payload specific to {@link AnalyticsEvent.IFRAME_STEP_VIEWED}. */
|
|
289
277
|
export type IframeStepViewedProperties = {
|
|
@@ -6,7 +6,17 @@ import { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
|
6
6
|
import type { AnalyticsFlow, AnalyticsStep, PaymentMethodProperties } from './events';
|
|
7
7
|
/** Round analytics amounts before Statsig stringifies event metadata. */
|
|
8
8
|
export declare function formatAnalyticsAmount(amount: number | null): string | null;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Steps that only host another renderer. Every V2 screen renders under
|
|
11
|
+
* FIAT_V2, so a step name for it would merge them all; V2 screens report
|
|
12
|
+
* their own shared names instead.
|
|
13
|
+
*/
|
|
14
|
+
export type AnalyticsHostStep = FunCheckoutStep.FIAT_V2;
|
|
15
|
+
export type AnalyticsNamedStep = Exclude<FunCheckoutStep, AnalyticsHostStep> | WithdrawalModalStep;
|
|
16
|
+
export declare function isAnalyticsHostStep(step: FunCheckoutStep | WithdrawalModalStep): step is AnalyticsHostStep;
|
|
17
|
+
export declare function formatAnalyticsStep(step: AnalyticsNamedStep): AnalyticsStep;
|
|
18
|
+
/** `prev_step` after a host step is unknown to web V1, so it is reported as none. */
|
|
19
|
+
export declare function formatPrevAnalyticsStep(step: FunCheckoutStep | null): AnalyticsStep | null;
|
|
10
20
|
export declare function getCheckoutModalAnalyticsFlow(modalState: CheckoutModalState): AnalyticsFlow;
|
|
11
21
|
export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null;
|
|
12
22
|
/** Selected checkout provider, such as a wallet connector or Meld provider. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSwappedErrorCode(error: unknown): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FiatWithdrawalOrder } from '../../../modals/WithdrawalModal/useFiatWithdrawal';
|
|
2
|
+
/** Preserve provider values without conflating them with the executed route. */
|
|
3
|
+
export declare function buildSwappedWithdrawalOrderProperties(order: FiatWithdrawalOrder): {
|
|
4
|
+
payment_rail: 'swapped';
|
|
5
|
+
order_id: string;
|
|
6
|
+
order_amount: string;
|
|
7
|
+
order_asset: string | null;
|
|
8
|
+
order_network: string | null;
|
|
9
|
+
order_timestamp: number | null;
|
|
10
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
2
|
-
import type { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
|
|
3
|
-
import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
4
2
|
import { type AnalyticsFlow } from './events';
|
|
3
|
+
import { type AnalyticsNamedStep } from './mappers';
|
|
5
4
|
type TrackErrorShownArgs = {
|
|
6
5
|
error: ErrorNotification | null;
|
|
7
6
|
flow: AnalyticsFlow;
|
|
8
|
-
step:
|
|
7
|
+
step: AnalyticsNamedStep;
|
|
9
8
|
};
|
|
10
9
|
/** Emits once for each continuous episode in which an error is displayed. */
|
|
11
10
|
export declare function useTrackErrorShown({ error, flow, step }: TrackErrorShownArgs): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NotificationItem } from '../../../modals/CheckoutModal/TransferToken/types';
|
|
2
2
|
import { type ExecutionTransactionSubmittedArgs } from './resolveExecutionProgressContext';
|
|
3
|
-
import { AnalyticsEvent, type ExecutionTransactionSnapshotProperties } from './events';
|
|
3
|
+
import { AnalyticsEvent, type ExecutionTransactionSnapshotProperties, type TransactionSubmittedProperties } from './events';
|
|
4
4
|
export type TrackExecutionSucceededArgs = ExecutionTransactionSubmittedArgs & {
|
|
5
5
|
fulfillmentTimeMs: number | null;
|
|
6
6
|
};
|
|
@@ -28,6 +28,6 @@ export declare function useTrackExecutionProgressEvents(flow: ExecutionFlow): {
|
|
|
28
28
|
trackExecutionFailed: (args: TrackExecutionFailedArgs, claimKey: string) => void;
|
|
29
29
|
trackExecutionProgressEvents: (historyItem: NotificationItem) => void;
|
|
30
30
|
trackExecutionSucceeded: (args: TrackExecutionSucceededArgs, claimKey: string) => void;
|
|
31
|
-
trackExecutionTransactionSubmitted: (args: ExecutionTransactionSubmittedArgs, claimKey: string) => void;
|
|
31
|
+
trackExecutionTransactionSubmitted: (args: ExecutionTransactionSubmittedArgs, claimKey: string, providerProperties?: Pick<TransactionSubmittedProperties, "order_amount" | "order_asset" | "order_id" | "order_network" | "order_timestamp" | "payment_rail"> | undefined) => void;
|
|
32
32
|
};
|
|
33
33
|
export {};
|