@funkit/connect 11.6.0 → 11.7.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 +20 -0
- package/dist/clients/{chunk-UPB4JKJG.js → chunk-44USAVWK.js} +12 -7
- package/dist/clients/{chunk-FNB7OPJI.js → chunk-AXLGZ5XX.js} +10 -1
- package/dist/clients/{chunk-ZQZDPRWC.js → chunk-FGUMPXTO.js} +1 -1
- package/dist/clients/{chunk-DUBZPIDN.js → chunk-I4B5AKZC.js} +1 -1
- package/dist/clients/{chunk-SX3CX34W.js → chunk-NM2NAKI3.js} +106 -88
- package/dist/clients/{chunk-LYZLETOM.js → chunk-OASVWVSV.js} +1 -1
- package/dist/clients/{chunk-WNZ6QV5Q.js → chunk-SG4ZS447.js} +16 -0
- package/dist/clients/fanatics.js +2 -2
- 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 +3 -3
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.js +4 -4
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +5 -5
- package/dist/clients/polymarket/index.js +5 -5
- package/dist/hooks/track/analytics/checkout.d.ts +10 -0
- package/dist/hooks/track/analytics/events.d.ts +2 -1
- package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +2 -1
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +0 -16
- package/dist/hooks/useTextMeasurer.d.ts +1 -1
- package/dist/index.js +3359 -3014
- package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +5 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +14 -17
- package/dist/providers/FunkitShadowHostProvider.d.ts +31 -0
- package/dist/providers/FunkitThemeStyle.d.ts +12 -0
- package/dist/shadow/loadShadowCss.d.ts +9 -0
- package/dist/shadow/useMountShadowHost.d.ts +18 -0
- package/dist/shadow/useShadowCss.d.ts +6 -0
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/walletConnectors/index.js +4 -4
- package/package.json +4 -4
|
@@ -393,6 +393,8 @@ var en_default = {
|
|
|
393
393
|
recipientAddress: "Recipient address",
|
|
394
394
|
invalidWalletAddress: "Invalid wallet address",
|
|
395
395
|
useConnected: "Use connected",
|
|
396
|
+
sendingToConnectedWallet: "Sending to your connected wallet",
|
|
397
|
+
clearRecipientAddress: "Clear address",
|
|
396
398
|
walletAddressRestricted: "This wallet address cannot be used due to restrictions.",
|
|
397
399
|
amount: "Amount",
|
|
398
400
|
insufficientBalance: "Insufficient balance",
|
|
@@ -979,6 +981,8 @@ var es_default = {
|
|
|
979
981
|
recipientAddress: "Direcci\xF3n del destinatario",
|
|
980
982
|
invalidWalletAddress: "Direcci\xF3n de billetera inv\xE1lida",
|
|
981
983
|
useConnected: "Usar conectado",
|
|
984
|
+
sendingToConnectedWallet: "Enviando a tu billetera conectada",
|
|
985
|
+
clearRecipientAddress: "Borrar direcci\xF3n",
|
|
982
986
|
walletAddressRestricted: "Esta direcci\xF3n de billetera no puede ser usada debido a restricciones.",
|
|
983
987
|
amount: "Monto",
|
|
984
988
|
insufficientBalance: "Saldo insuficiente",
|
|
@@ -1566,6 +1570,8 @@ var fr_default = {
|
|
|
1566
1570
|
recipientAddress: "Adresse du destinataire",
|
|
1567
1571
|
invalidWalletAddress: "Adresse de portefeuille invalide",
|
|
1568
1572
|
useConnected: "Utiliser connect\xE9",
|
|
1573
|
+
sendingToConnectedWallet: "Envoi vers votre portefeuille connect\xE9",
|
|
1574
|
+
clearRecipientAddress: "Effacer l'adresse",
|
|
1569
1575
|
walletAddressRestricted: "Cette adresse de portefeuille ne peut pas \xEAtre utilis\xE9e en raison de restrictions.",
|
|
1570
1576
|
amount: "Montant",
|
|
1571
1577
|
insufficientBalance: "Solde insuffisant",
|
|
@@ -2153,6 +2159,8 @@ var ja_default = {
|
|
|
2153
2159
|
recipientAddress: "\u53D7\u53D6\u30A2\u30C9\u30EC\u30B9",
|
|
2154
2160
|
invalidWalletAddress: "\u7121\u52B9\u306A\u30A6\u30A9\u30EC\u30C3\u30C8\u30A2\u30C9\u30EC\u30B9",
|
|
2155
2161
|
useConnected: "\u63A5\u7D9A\u6E08\u307F\u3092\u4F7F\u7528",
|
|
2162
|
+
sendingToConnectedWallet: "\u63A5\u7D9A\u4E2D\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u9001\u4FE1\u3057\u307E\u3059",
|
|
2163
|
+
clearRecipientAddress: "\u30A2\u30C9\u30EC\u30B9\u3092\u30AF\u30EA\u30A2",
|
|
2156
2164
|
walletAddressRestricted: "\u5236\u9650\u306B\u3088\u308A\u3001\u3053\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u30A2\u30C9\u30EC\u30B9\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
2157
2165
|
amount: "\u91D1\u984D",
|
|
2158
2166
|
insufficientBalance: "\u6B8B\u9AD8\u4E0D\u8DB3",
|
|
@@ -2740,6 +2748,8 @@ var ko_default = {
|
|
|
2740
2748
|
recipientAddress: "\uC218\uC2E0\uC790 \uC8FC\uC18C",
|
|
2741
2749
|
invalidWalletAddress: "\uC798\uBABB\uB41C \uC9C0\uAC11 \uC8FC\uC18C",
|
|
2742
2750
|
useConnected: "\uC5F0\uACB0\uB41C \uC8FC\uC18C \uC0AC\uC6A9",
|
|
2751
|
+
sendingToConnectedWallet: "\uC5F0\uACB0\uB41C \uC9C0\uAC11\uC73C\uB85C \uC804\uC1A1 \uC911",
|
|
2752
|
+
clearRecipientAddress: "\uC8FC\uC18C \uC9C0\uC6B0\uAE30",
|
|
2743
2753
|
walletAddressRestricted: "\uC81C\uD55C\uC73C\uB85C \uC778\uD574 \uC774 \uC9C0\uAC11 \uC8FC\uC18C\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
2744
2754
|
amount: "\uAE08\uC561",
|
|
2745
2755
|
insufficientBalance: "\uC794\uC561 \uBD80\uC871",
|
|
@@ -3327,6 +3337,8 @@ var ru_default = {
|
|
|
3327
3337
|
recipientAddress: "\u0410\u0434\u0440\u0435\u0441 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F",
|
|
3328
3338
|
invalidWalletAddress: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430",
|
|
3329
3339
|
useConnected: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439",
|
|
3340
|
+
sendingToConnectedWallet: "\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043D\u0430 \u0432\u0430\u0448 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
3341
|
+
clearRecipientAddress: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441",
|
|
3330
3342
|
walletAddressRestricted: "\u042D\u0442\u043E\u0442 \u0430\u0434\u0440\u0435\u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u0438\u0437-\u0437\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0439.",
|
|
3331
3343
|
amount: "\u0421\u0443\u043C\u043C\u0430",
|
|
3332
3344
|
insufficientBalance: "\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0441\u0440\u0435\u0434\u0441\u0442\u0432",
|
|
@@ -3914,6 +3926,8 @@ var tr_default = {
|
|
|
3914
3926
|
recipientAddress: "Al\u0131c\u0131 adresi",
|
|
3915
3927
|
invalidWalletAddress: "Ge\xE7ersiz c\xFCzdan adresi",
|
|
3916
3928
|
useConnected: "Ba\u011Fl\u0131 olan\u0131 kullan",
|
|
3929
|
+
sendingToConnectedWallet: "Ba\u011Fl\u0131 c\xFCzdan\u0131n\u0131za g\xF6nderiliyor",
|
|
3930
|
+
clearRecipientAddress: "Adresi temizle",
|
|
3917
3931
|
walletAddressRestricted: "Bu c\xFCzdan adresi k\u0131s\u0131tlamalar nedeniyle kullan\u0131lamaz.",
|
|
3918
3932
|
amount: "Tutar",
|
|
3919
3933
|
insufficientBalance: "Yetersiz bakiye",
|
|
@@ -4501,6 +4515,8 @@ var zh_default = {
|
|
|
4501
4515
|
recipientAddress: "\u63A5\u6536\u5730\u5740",
|
|
4502
4516
|
invalidWalletAddress: "\u94B1\u5305\u5730\u5740\u65E0\u6548",
|
|
4503
4517
|
useConnected: "\u4F7F\u7528\u5DF2\u8FDE\u63A5",
|
|
4518
|
+
sendingToConnectedWallet: "\u6B63\u5728\u53D1\u9001\u5230\u60A8\u5DF2\u8FDE\u63A5\u7684\u94B1\u5305",
|
|
4519
|
+
clearRecipientAddress: "\u6E05\u9664\u5730\u5740",
|
|
4504
4520
|
walletAddressRestricted: "\u7531\u4E8E\u9650\u5236\uFF0C\u6B64\u94B1\u5305\u5730\u5740\u65E0\u6CD5\u4F7F\u7528\u3002",
|
|
4505
4521
|
amount: "\u91D1\u989D",
|
|
4506
4522
|
insufficientBalance: "\u4F59\u989D\u4E0D\u8DB3",
|
package/dist/clients/fanatics.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "./chunk-LUHEVXPD.js";
|
|
13
13
|
import {
|
|
14
14
|
useFunkitTranslation
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-OASVWVSV.js";
|
|
16
|
+
import "./chunk-SG4ZS447.js";
|
|
17
17
|
import "./chunk-AHYOV7AV.js";
|
|
18
18
|
|
|
19
19
|
// src/clients/fanatics.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-44USAVWK.js";
|
|
5
|
+
import "../../chunk-FGUMPXTO.js";
|
|
6
6
|
import "../../chunk-B7UU2ETA.js";
|
|
7
7
|
import "../../chunk-OODIKHYE.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-SG4ZS447.js";
|
|
9
9
|
import "../../chunk-PENJ5JGH.js";
|
|
10
10
|
import "../../chunk-AHYOV7AV.js";
|
|
11
11
|
export {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-FGUMPXTO.js";
|
|
6
|
+
import "../../chunk-SG4ZS447.js";
|
|
7
7
|
export {
|
|
8
8
|
isExpectedNadoWithdrawalFailure,
|
|
9
9
|
toNadoWithdrawalErrorMessage
|
|
@@ -10,12 +10,12 @@ import "../../chunk-3U55HYGJ.js";
|
|
|
10
10
|
import "../../chunk-6EU6CXNH.js";
|
|
11
11
|
import {
|
|
12
12
|
useFunkitConfig
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-I4B5AKZC.js";
|
|
14
14
|
import {
|
|
15
15
|
useFunkitTranslation
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-OASVWVSV.js";
|
|
17
17
|
import "../../chunk-UPZNKPYU.js";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-SG4ZS447.js";
|
|
19
19
|
import {
|
|
20
20
|
logger
|
|
21
21
|
} from "../../chunk-AHYOV7AV.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-I4B5AKZC.js";
|
|
5
|
+
import "../../chunk-OASVWVSV.js";
|
|
6
6
|
import {
|
|
7
7
|
useAccount
|
|
8
8
|
} from "../../chunk-UPZNKPYU.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-SG4ZS447.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "../../chunk-AHYOV7AV.js";
|
package/dist/clients/lighter.js
CHANGED
|
@@ -7,22 +7,22 @@ import "./chunk-OODIKHYE.js";
|
|
|
7
7
|
import {
|
|
8
8
|
chainMetadataById,
|
|
9
9
|
useFunkitConnectChainsById
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AXLGZ5XX.js";
|
|
11
11
|
import {
|
|
12
12
|
useLighterAccountQuery,
|
|
13
13
|
useLighterAccountsQuery
|
|
14
14
|
} from "./chunk-6EU6CXNH.js";
|
|
15
15
|
import {
|
|
16
16
|
useFunkitConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I4B5AKZC.js";
|
|
18
18
|
import {
|
|
19
19
|
Box
|
|
20
20
|
} from "./chunk-LUHEVXPD.js";
|
|
21
21
|
import {
|
|
22
22
|
useFunkitTranslation
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OASVWVSV.js";
|
|
24
24
|
import "./chunk-UPZNKPYU.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-SG4ZS447.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
28
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/mallard.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
} from "./chunk-OODIKHYE.js";
|
|
10
10
|
import {
|
|
11
11
|
useFunkitTranslation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OASVWVSV.js";
|
|
13
13
|
import {
|
|
14
14
|
useAccount,
|
|
15
15
|
useConfig
|
|
16
16
|
} from "./chunk-UPZNKPYU.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SG4ZS447.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/nado.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-44USAVWK.js";
|
|
5
|
+
import "./chunk-FGUMPXTO.js";
|
|
6
6
|
import "./chunk-B7UU2ETA.js";
|
|
7
7
|
import "./chunk-OODIKHYE.js";
|
|
8
8
|
import {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-UPZNKPYU.js";
|
|
12
12
|
import {
|
|
13
13
|
i18n_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SG4ZS447.js";
|
|
15
15
|
import "./chunk-PENJ5JGH.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NM2NAKI3.js";
|
|
5
5
|
import "../chunk-DSZHYQPX.js";
|
|
6
6
|
import "../chunk-3U55HYGJ.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-AXLGZ5XX.js";
|
|
8
8
|
import "../chunk-6EU6CXNH.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-I4B5AKZC.js";
|
|
10
10
|
import "../chunk-LUHEVXPD.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-OASVWVSV.js";
|
|
12
12
|
import "../chunk-UPZNKPYU.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-SG4ZS447.js";
|
|
14
14
|
import "../chunk-Y7WLUPTX.js";
|
|
15
15
|
import "../chunk-IYCZWLAF.js";
|
|
16
16
|
import "../chunk-PENJ5JGH.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NM2NAKI3.js";
|
|
5
5
|
import "../chunk-DSZHYQPX.js";
|
|
6
6
|
import "../chunk-3U55HYGJ.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-AXLGZ5XX.js";
|
|
8
8
|
import "../chunk-6EU6CXNH.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-I4B5AKZC.js";
|
|
10
10
|
import "../chunk-LUHEVXPD.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-OASVWVSV.js";
|
|
12
12
|
import "../chunk-UPZNKPYU.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-SG4ZS447.js";
|
|
14
14
|
import {
|
|
15
15
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
16
16
|
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommonProperties } from './events';
|
|
2
|
+
export type CheckoutAnalyticsSource = {
|
|
3
|
+
id: string;
|
|
4
|
+
initSettings: {
|
|
5
|
+
config: {
|
|
6
|
+
dynamicRoutingId?: string | null;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function getCheckoutAnalyticsProperties(checkout: CheckoutAnalyticsSource): Pick<CommonProperties, 'checkout_id' | 'dynamic_routing_id'>;
|
|
@@ -49,6 +49,8 @@ export type CommonProperties = {
|
|
|
49
49
|
* currently active checkout.
|
|
50
50
|
*/
|
|
51
51
|
checkout_id: string;
|
|
52
|
+
/** Raw routing identity selected for this checkout, when available. */
|
|
53
|
+
dynamic_routing_id: string | null;
|
|
52
54
|
/** Human-readable connector name for the authenticated session wallet. */
|
|
53
55
|
connector_name: string | null;
|
|
54
56
|
flow: AnalyticsFlow;
|
|
@@ -199,7 +201,6 @@ export type DepositNotificationInteractedProperties = DepositNotificationPropert
|
|
|
199
201
|
*/
|
|
200
202
|
export type ModalOpenedProperties = {
|
|
201
203
|
custom_recipient: string | null;
|
|
202
|
-
dynamic_routing_id: string | null;
|
|
203
204
|
exchange_count: number;
|
|
204
205
|
flow: AnalyticsFlow;
|
|
205
206
|
primary_exchange: string | null;
|
|
@@ -3,6 +3,7 @@ import type { ApiFunkitCheckoutQuoteResult } from '@funkit/utils';
|
|
|
3
3
|
import type { PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import type { QuoteMode } from '../../../domains/quoteMode';
|
|
5
5
|
import type { AnalyticsFlow } from './events';
|
|
6
|
+
import type { CheckoutAnalyticsSource } from './checkout';
|
|
6
7
|
import type { NotificationItem } from '../../../modals/CheckoutModal/TransferToken/types';
|
|
7
8
|
type AssetDescriptor = {
|
|
8
9
|
chainId: string;
|
|
@@ -10,9 +11,9 @@ type AssetDescriptor = {
|
|
|
10
11
|
ticker: string | null;
|
|
11
12
|
};
|
|
12
13
|
export type ExecutionTransactionSubmittedArgs = {
|
|
14
|
+
checkout: CheckoutAnalyticsSource;
|
|
13
15
|
destinationAddress: string | null;
|
|
14
16
|
executionType: DirectExecutionType | null;
|
|
15
|
-
historicalCheckoutId: string;
|
|
16
17
|
historicalUserId: string | null;
|
|
17
18
|
paymentMethodInfo: PaymentMethodInfo;
|
|
18
19
|
quote: ApiFunkitCheckoutQuoteResult | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DirectExecutionType, FormOfPaymentType, MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
|
-
import type { ApiFunkitCheckoutQuoteResult } from '@funkit/utils';
|
|
3
2
|
import { PaymentMethod, type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
3
|
import { QuoteMode } from '../../../domains/quoteMode';
|
|
5
4
|
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
@@ -76,21 +75,6 @@ export type TrackDepositQuoteSnapshotArgs = {
|
|
|
76
75
|
targetAssetAmount: string | null;
|
|
77
76
|
tradeType: QuoteMode;
|
|
78
77
|
};
|
|
79
|
-
export type ExecutionTransactionSubmittedArgs = {
|
|
80
|
-
destinationAddress: string | null;
|
|
81
|
-
executionType: DirectExecutionType | null;
|
|
82
|
-
historicalCheckoutId: string;
|
|
83
|
-
historicalUserId: string | null;
|
|
84
|
-
paymentMethodInfo: PaymentMethodInfo;
|
|
85
|
-
quote: ApiFunkitCheckoutQuoteResult | null;
|
|
86
|
-
source: AssetDescriptorArgs | null;
|
|
87
|
-
sourceAddress: string | null;
|
|
88
|
-
sourceAssetAmount: string | null;
|
|
89
|
-
target: AssetDescriptorArgs;
|
|
90
|
-
targetAssetAmount: string | null;
|
|
91
|
-
tradeType: QuoteMode | null;
|
|
92
|
-
txHash: string | null;
|
|
93
|
-
};
|
|
94
78
|
export type TrackDepositMeldQuoteDisplayedArgs = {
|
|
95
79
|
numQuoteRefreshes: number;
|
|
96
80
|
quote: MeldQuote;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function useTextMeasurer(inputRef: React.RefObject<HTMLInputElement | null>): {
|
|
1
|
+
export declare function useTextMeasurer(inputRef: React.RefObject<HTMLInputElement | HTMLTextAreaElement | null>): {
|
|
2
2
|
measureText: (text: string, fontSize?: number) => number | undefined;
|
|
3
3
|
};
|