@funkit/connect 12.3.0 → 12.5.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 +53 -0
- package/dist/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/{chunk-27VBRE7W.js → chunk-7GPRX32F.js} +8 -0
- package/dist/clients/{chunk-R6UAC2TB.js → chunk-A2WBB3UO.js} +1 -1
- package/dist/clients/{chunk-A5JW3UI6.js → chunk-ATNOIBW2.js} +1 -1
- package/dist/clients/{chunk-DYV3LRSE.js → chunk-B5KCBBSV.js} +1 -1
- package/dist/clients/{chunk-ECGTOMZQ.js → chunk-XOLUUA5B.js} +2 -2
- 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 +4 -4
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/jupiter-ICN4DJIL.js +7 -0
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solflare-M46C72WA.js +7 -0
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +3 -3
- package/dist/components/FunNotification/FunNotification.d.ts +15 -2
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +2 -1
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +8 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/consts/quote.d.ts +13 -13
- package/dist/consts/walletIcons.d.ts +7 -0
- package/dist/domains/checkoutErrors.d.ts +3 -3
- package/dist/domains/relay.d.ts +3 -3
- package/dist/hooks/queries/useMeldLimits.d.ts +2 -1
- package/dist/hooks/track/analytics/events.d.ts +8 -0
- package/dist/hooks/track/analytics/mappers.d.ts +4 -2
- package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +12 -0
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -2
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
- package/dist/hooks/useConnectedWalletIcons.d.ts +6 -0
- package/dist/hooks/useConnectedWallets.d.ts +12 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +11 -2
- package/dist/index.js +3536 -2904
- package/dist/interfaces/solanaWallet.d.ts +12 -22
- package/dist/jupiter-ICN4DJIL.js +7 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +3 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -2
- package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +2 -1
- package/dist/providers/FunkitQuoteContext.d.ts +2 -1
- package/dist/providers/GeneralWalletProvider.d.ts +15 -3
- package/dist/solflare-M46C72WA.js +7 -0
- package/dist/utils/solanaRelayWallet.d.ts +15 -0
- package/dist/utils/swapped.d.ts +2 -0
- package/dist/wallets/walletConnectors/index.js +52 -52
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 12.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f5a732: Quote and execute a checkout paid from a Solana wallet.
|
|
8
|
+
- a3c1f6a: `solanaWallet` now takes a `name` and an optional `icon`, used to depict the wallet in checkout.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- bf07ca0: Evict expired analytics claims from local storage.
|
|
13
|
+
- 35a44db: Internal cleanup of how the paying wallet is resolved in checkout.
|
|
14
|
+
- 6968f06: Track additional displayed errors across checkout and withdrawal flows.
|
|
15
|
+
- 3b605ef: Track displayed brokerage two-factor authentication errors.
|
|
16
|
+
- a24608e: Track displayed virtual fiat account errors.
|
|
17
|
+
- Updated dependencies [770da6d]
|
|
18
|
+
- Updated dependencies [7e4ed3f]
|
|
19
|
+
- Updated dependencies [8f5a732]
|
|
20
|
+
- Updated dependencies [384cce3]
|
|
21
|
+
- Updated dependencies [bd149d1]
|
|
22
|
+
- Updated dependencies [933ecce]
|
|
23
|
+
- Updated dependencies [72b7cc3]
|
|
24
|
+
- Updated dependencies [933ecce]
|
|
25
|
+
- Updated dependencies [dffb517]
|
|
26
|
+
- Updated dependencies [206ae21]
|
|
27
|
+
- Updated dependencies [f32fd43]
|
|
28
|
+
- Updated dependencies [ef57ef7]
|
|
29
|
+
- Updated dependencies [b3c8a12]
|
|
30
|
+
- @funkit/connect-core@7.0.0
|
|
31
|
+
- @funkit/api-base@8.3.0
|
|
32
|
+
- @funkit/chains@2.4.0
|
|
33
|
+
|
|
34
|
+
## 12.4.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- b948af2: `SolanaWalletConnection`'s `signAndSendTransaction` resolves the raw 64-byte signature instead of a base58 string
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- f15fc2a: The Swapped embed now renders themes whose colors use modern CSS color functions such as `oklch()` or `lab()`.
|
|
43
|
+
- 140dc65: Track when checkout errors are shown to users.
|
|
44
|
+
- b631d39: Generalize error notification structure
|
|
45
|
+
- 2b07abc: Track displayed errors across checkout and withdrawal flows.
|
|
46
|
+
- Updated dependencies [b948af2]
|
|
47
|
+
- Updated dependencies [3a6256a]
|
|
48
|
+
- Updated dependencies [b948af2]
|
|
49
|
+
- Updated dependencies [46d5375]
|
|
50
|
+
- Updated dependencies [50e2acc]
|
|
51
|
+
- Updated dependencies [78f075b]
|
|
52
|
+
- @funkit/api-base@8.2.0
|
|
53
|
+
- @funkit/connect-core@6.1.0
|
|
54
|
+
- @funkit/fun-relay@3.0.0
|
|
55
|
+
|
|
3
56
|
## 12.3.0
|
|
4
57
|
|
|
5
58
|
### Minor Changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/backpack.svg
|
|
4
|
+
var backpack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-4.375 0 28 28"><path fill="%23e33e3f" fill-rule="evenodd" d="M11.449 2.202c1.017 0 1.972.136 2.856.389C13.439.574 11.643 0 9.643 0 7.64 0 5.84.577 4.977 2.603a10 10 0 0 1 2.842-.401zM7.586 4.226C2.753 4.226 0 8.028 0 12.718v4.817c0 .469.392.84.875.84h17.5c.483 0 .875-.371.875-.84v-4.817c0-4.69-3.202-8.492-8.034-8.492zm2.032 8.533a3.063 3.063 0 1 0 0-6.125 3.063 3.063 0 0 0 0 6.125M0 21.207c0-.47.392-.85.875-.85h17.5c.483 0 .875.38.875.85V26.3c0 .938-.784 1.699-1.75 1.699H1.75C.784 28 0 27.24 0 26.3z" clip-rule="evenodd"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
backpack_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/backpack.svg
|
|
4
|
+
var backpack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-4.375 0 28 28"><path fill="%23e33e3f" fill-rule="evenodd" d="M11.449 2.202c1.017 0 1.972.136 2.856.389C13.439.574 11.643 0 9.643 0 7.64 0 5.84.577 4.977 2.603a10 10 0 0 1 2.842-.401zM7.586 4.226C2.753 4.226 0 8.028 0 12.718v4.817c0 .469.392.84.875.84h17.5c.483 0 .875-.371.875-.84v-4.817c0-4.69-3.202-8.492-8.034-8.492zm2.032 8.533a3.063 3.063 0 1 0 0-6.125 3.063 3.063 0 0 0 0 6.125M0 21.207c0-.47.392-.85.875-.85h17.5c.483 0 .875.38.875.85V26.3c0 .938-.784 1.699-1.75 1.699H1.75C.784 28 0 27.24 0 26.3z" clip-rule="evenodd"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
backpack_default as default
|
|
7
|
+
};
|
|
@@ -93,6 +93,7 @@ var en_default = {
|
|
|
93
93
|
topUpWallet: "Top up wallet",
|
|
94
94
|
refundProcessing: "Funds were withdrawn, but the transaction didn't complete. A refund is being processed.",
|
|
95
95
|
orderRefunded: "Your order was refunded.",
|
|
96
|
+
walletsLabel: "Wallets",
|
|
96
97
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
97
98
|
connectWalletLabelTemplate: "Connect {{walletLabel}}"
|
|
98
99
|
},
|
|
@@ -696,6 +697,7 @@ var es_default = {
|
|
|
696
697
|
topUpWallet: "Recargar billetera",
|
|
697
698
|
refundProcessing: "Los fondos fueron retirados, pero la transacci\xF3n no se complet\xF3. Se est\xE1 procesando un reembolso.",
|
|
698
699
|
orderRefunded: "Tu pedido fue reembolsado.",
|
|
700
|
+
walletsLabel: "Billeteras",
|
|
699
701
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
700
702
|
connectWalletLabelTemplate: "Conectar {{walletLabel}}"
|
|
701
703
|
},
|
|
@@ -1293,6 +1295,7 @@ var fr_default = {
|
|
|
1293
1295
|
topUpWallet: "Approvisionner le portefeuille",
|
|
1294
1296
|
refundProcessing: "Les fonds ont \xE9t\xE9 d\xE9bit\xE9s, mais la transaction n'a pas abouti. Un remboursement est en cours.",
|
|
1295
1297
|
orderRefunded: "Votre commande a \xE9t\xE9 rembours\xE9e.",
|
|
1298
|
+
walletsLabel: "Portefeuilles",
|
|
1296
1299
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
1297
1300
|
connectWalletLabelTemplate: "Connecter {{walletLabel}}"
|
|
1298
1301
|
},
|
|
@@ -1890,6 +1893,7 @@ var ja_default = {
|
|
|
1890
1893
|
topUpWallet: "\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u30C1\u30E3\u30FC\u30B8",
|
|
1891
1894
|
refundProcessing: "\u8CC7\u91D1\u306F\u5F15\u304D\u51FA\u3055\u308C\u307E\u3057\u305F\u304C\u3001\u53D6\u5F15\u306F\u5B8C\u4E86\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8FD4\u91D1\u51E6\u7406\u4E2D\u3067\u3059\u3002",
|
|
1892
1895
|
orderRefunded: "\u3054\u6CE8\u6587\u306F\u8FD4\u91D1\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
1896
|
+
walletsLabel: "\u30A6\u30A9\u30EC\u30C3\u30C8",
|
|
1893
1897
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
1894
1898
|
connectWalletLabelTemplate: "{{walletLabel}}\u3092\u63A5\u7D9A"
|
|
1895
1899
|
},
|
|
@@ -2487,6 +2491,7 @@ var ko_default = {
|
|
|
2487
2491
|
topUpWallet: "\uC9C0\uAC11 \uCDA9\uC804",
|
|
2488
2492
|
refundProcessing: "\uC790\uAE08\uC774 \uCD9C\uAE08\uB418\uC5C8\uC9C0\uB9CC \uAC70\uB798\uAC00 \uC644\uB8CC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uD658\uBD88\uC774 \uCC98\uB9AC\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
2489
2493
|
orderRefunded: "\uC8FC\uBB38\uC774 \uD658\uBD88\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
2494
|
+
walletsLabel: "\uC9C0\uAC11",
|
|
2490
2495
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
2491
2496
|
connectWalletLabelTemplate: "{{walletLabel}} \uC5F0\uACB0"
|
|
2492
2497
|
},
|
|
@@ -3084,6 +3089,7 @@ var ru_default = {
|
|
|
3084
3089
|
topUpWallet: "\u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
3085
3090
|
refundProcessing: "\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0431\u044B\u043B\u0438 \u0432\u044B\u0432\u0435\u0434\u0435\u043D\u044B, \u043D\u043E \u0442\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044F \u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430. \u041E\u0431\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u0432\u043E\u0437\u0432\u0440\u0430\u0442.",
|
|
3086
3091
|
orderRefunded: "\u0412\u0430\u0448 \u0437\u0430\u043A\u0430\u0437 \u0431\u044B\u043B \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0451\u043D.",
|
|
3092
|
+
walletsLabel: "\u041A\u043E\u0448\u0435\u043B\u044C\u043A\u0438",
|
|
3087
3093
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
3088
3094
|
connectWalletLabelTemplate: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C {{walletLabel}}"
|
|
3089
3095
|
},
|
|
@@ -3681,6 +3687,7 @@ var tr_default = {
|
|
|
3681
3687
|
topUpWallet: "C\xFCzdana para y\xFCkle",
|
|
3682
3688
|
refundProcessing: "\u0130ade edilecek fonlar haz\u0131rland\u0131, ancak i\u015Flem tamamlanmad\u0131. \u0130ade i\u015Flemi yap\u0131l\u0131yor.",
|
|
3683
3689
|
orderRefunded: "Sipari\u015Finiz iade edildi.",
|
|
3690
|
+
walletsLabel: "C\xFCzdanlar",
|
|
3684
3691
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
3685
3692
|
connectWalletLabelTemplate: "{{walletLabel}} Ba\u011Fla"
|
|
3686
3693
|
},
|
|
@@ -4278,6 +4285,7 @@ var zh_default = {
|
|
|
4278
4285
|
topUpWallet: "\u5145\u503C\u94B1\u5305",
|
|
4279
4286
|
refundProcessing: "\u8D44\u91D1\u5DF2\u63D0\u53D6\uFF0C\u4F46\u4EA4\u6613\u672A\u5B8C\u6210\u3002\u6B63\u5728\u5904\u7406\u9000\u6B3E\u3002",
|
|
4280
4287
|
orderRefunded: "\u60A8\u7684\u8BA2\u5355\u5DF2\u9000\u6B3E\u3002",
|
|
4288
|
+
walletsLabel: "\u94B1\u5305",
|
|
4281
4289
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
4282
4290
|
connectWalletLabelTemplate: "\u8FDE\u63A5 {{walletLabel}}"
|
|
4283
4291
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B5KCBBSV.js";
|
|
6
6
|
import {
|
|
7
7
|
toWithdrawalAmountBaseUnit
|
|
8
8
|
} from "./chunk-B7UU2ETA.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-OODIKHYE.js";
|
|
14
14
|
import {
|
|
15
15
|
i18n_default
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7GPRX32F.js";
|
|
17
17
|
import {
|
|
18
18
|
generateClientMetadataForTokenTransfer
|
|
19
19
|
} from "./chunk-PENJ5JGH.js";
|
package/dist/clients/fanatics.js
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from "./chunk-RQALGV5U.js";
|
|
11
11
|
import {
|
|
12
12
|
useFunkitTranslation
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-ATNOIBW2.js";
|
|
14
|
+
import "./chunk-7GPRX32F.js";
|
|
15
15
|
import "./chunk-AHYOV7AV.js";
|
|
16
16
|
|
|
17
17
|
// 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-XOLUUA5B.js";
|
|
5
|
+
import "../../chunk-B5KCBBSV.js";
|
|
6
6
|
import "../../chunk-B7UU2ETA.js";
|
|
7
7
|
import "../../chunk-OODIKHYE.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-7GPRX32F.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-B5KCBBSV.js";
|
|
6
|
+
import "../../chunk-7GPRX32F.js";
|
|
7
7
|
export {
|
|
8
8
|
isExpectedNadoWithdrawalFailure,
|
|
9
9
|
toNadoWithdrawalErrorMessage
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import "../../chunk-6EU6CXNH.js";
|
|
9
9
|
import {
|
|
10
10
|
useFunkitConfig
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-A2WBB3UO.js";
|
|
12
12
|
import {
|
|
13
13
|
useFunkitTranslation
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-ATNOIBW2.js";
|
|
15
15
|
import "../../chunk-B7UU2ETA.js";
|
|
16
16
|
import "../../chunk-2W2P3OS6.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-7GPRX32F.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "../../chunk-AHYOV7AV.js";
|
|
@@ -55,7 +55,7 @@ import React, {
|
|
|
55
55
|
} from "react";
|
|
56
56
|
var GeneralWalletContext = createContext({
|
|
57
57
|
walletAddress: "",
|
|
58
|
-
payerWallets: {
|
|
58
|
+
payerWallets: { evmWallet: { address: "" }, solanaWallet: void 0 },
|
|
59
59
|
isUserLoggedIn: false,
|
|
60
60
|
loginType: "guest" /* Guest */,
|
|
61
61
|
connectorId: void 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-A2WBB3UO.js";
|
|
5
|
+
import "../../chunk-ATNOIBW2.js";
|
|
6
6
|
import {
|
|
7
7
|
useAccount
|
|
8
8
|
} from "../../chunk-2W2P3OS6.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-7GPRX32F.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "../../chunk-AHYOV7AV.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/jupiter.svg
|
|
4
|
+
var jupiter_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><g clip-path="url(%23a)" filter="url(%23b)"><path fill="url(%23c)" d="M3.09 25.167a16.43 16.43 0 0 0 11.621 6.75c-1.185-1.784-2.907-3.424-5.057-4.673s-4.428-1.931-6.563-2.077Z"/><path fill="url(%23d)" d="M12.543 22.27C8.4 19.864 3.916 19.25.708 20.334c.31 1.024.718 2.015 1.22 2.96 2.787-.065 5.83.692 8.663 2.337 2.832 1.645 4.998 3.915 6.323 6.369 1.07-.033 2.134-.17 3.177-.407-.648-3.323-3.406-6.915-7.548-9.323"/><path fill="url(%23e)" d="M32.285 12.5A16.42 16.42 0 0 0 11.846.627c3.546.434 7.48 1.765 11.34 4.007s6.967 5.001 9.1 7.868Z"/><path fill="url(%23f)" d="M27.127 20.358c-1.815-3.013-4.923-5.9-8.753-8.124s-7.875-3.495-11.389-3.58C3.894 8.582 1.574 9.48.622 11.12l-.02.028q-.126.462-.226.925c1.33-.525 2.87-.817 4.584-.85 3.81-.071 8.073 1.147 12.008 3.433s7.108 5.388 8.932 8.732c.818 1.506 1.329 2.99 1.53 4.407q.355-.315.691-.654l.016-.032c.952-1.641.584-4.101-1.01-6.75Z"/><path fill="url(%23g)" d="M15.46 17.248C9.598 13.842 3.117 13.309 0 15.685q.01 1.119.17 2.224a13 13 0 0 1 2.817-.522c3.483-.262 7.322.709 10.806 2.734s6.23 4.88 7.728 8.033c.414.864.73 1.771.941 2.706a16.4 16.4 0 0 0 2.017-.953c.522-3.886-3.152-9.251-9.018-12.659Z"/><path fill="url(%23h)" d="M30.143 15.314c-1.835-3.01-4.97-5.904-8.827-8.144-3.857-2.239-7.918-3.53-11.443-3.633-2.688-.078-4.77.574-5.848 1.804 4.48-.76 10.392.517 16.121 3.845 5.73 3.329 9.767 7.832 11.326 12.1.534-1.545.07-3.676-1.329-5.972"/></g><defs><linearGradient id="c" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="d" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="e" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="f" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="g" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="h" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h32.285v32H0z"/></clipPath><filter id="b" width="77.775" height="77.49" x="-22.745" y="-20.47" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2.274"/><feGaussianBlur stdDeviation="11.372"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_11565_169621"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_11565_169621" result="shape"/></filter></defs></svg>';
|
|
5
|
+
export {
|
|
6
|
+
jupiter_default as default
|
|
7
|
+
};
|
package/dist/clients/lighter.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6EU6CXNH.js";
|
|
6
6
|
import {
|
|
7
7
|
useFunkitConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A2WBB3UO.js";
|
|
9
9
|
import {
|
|
10
10
|
AsyncImage,
|
|
11
11
|
Box,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-RQALGV5U.js";
|
|
14
14
|
import {
|
|
15
15
|
useFunkitTranslation
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ATNOIBW2.js";
|
|
17
17
|
import "./chunk-OODIKHYE.js";
|
|
18
18
|
import "./chunk-2W2P3OS6.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7GPRX32F.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-AHYOV7AV.js";
|
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-ATNOIBW2.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-7GPRX32F.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-XOLUUA5B.js";
|
|
5
|
+
import "./chunk-B5KCBBSV.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-2W2P3OS6.js";
|
|
12
12
|
import {
|
|
13
13
|
i18n_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7GPRX32F.js";
|
|
15
15
|
import "./chunk-PENJ5JGH.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/solflare.svg
|
|
4
|
+
var solflare_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect width="50" height="50" rx="12" ry="12" style="fill:%23ffef46"/><path d="m24.23 26.42 2.46-2.38 4.59 1.5c3.01 1 4.51 2.84 4.51 5.43 0 1.96-.75 3.26-2.25 4.93l-.46.5.17-1.17c.67-4.26-.58-6.09-4.72-7.43l-4.3-1.38Zm-6.18-14.57 12.52 4.17-2.71 2.59-6.51-2.17c-2.25-.75-3.01-1.96-3.3-4.51v-.08Zm-.75 21.21 2.84-2.71 5.34 1.75c2.8.92 3.76 2.13 3.46 5.18l-11.65-4.22Zm-3.59-12.11c0-.79.42-1.54 1.13-2.17.75 1.09 2.05 2.05 4.09 2.71l4.42 1.46-2.46 2.38-4.34-1.42c-2-.67-2.84-1.67-2.84-2.96m13.11 21.92C36 36.78 40.93 32.64 40.93 27.55c0-3.38-2-5.26-6.43-6.72l-3.34-1.13 9.14-8.77-1.84-1.96-2.71 2.38-12.81-4.22c-3.97 1.29-8.97 5.09-8.97 8.89 0 .42.04.83.17 1.29-3.3 1.88-4.63 3.63-4.63 5.8 0 2.05 1.09 4.09 4.55 5.22l2.75.92-9.52 9.14 1.84 1.96 2.96-2.71 14.73 5.22Z" style="fill:%2302050a;stroke:%23ffef46;stroke-miterlimit:10;stroke-width:.5px"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
solflare_default as default
|
|
7
|
+
};
|
|
@@ -18,9 +18,9 @@ interface AddTokenToWalletBannerProps {
|
|
|
18
18
|
errorMessage: string;
|
|
19
19
|
/**
|
|
20
20
|
* Icon for the connected wallet (idle/error states only). Resolved by
|
|
21
|
-
* `usePaymentMethodIcon(PaymentMethod.ACCOUNT_BALANCE, 16)`
|
|
22
|
-
* wrapper so it mirrors the wallet glyph the rest of the SDK
|
|
23
|
-
* / success states substitute a spinner / check.
|
|
21
|
+
* `usePaymentMethodIcon(PaymentMethod.ACCOUNT_BALANCE, { iconSize: 16 })`
|
|
22
|
+
* in the smart wrapper so it mirrors the wallet glyph the rest of the SDK
|
|
23
|
+
* uses; pending / success states substitute a spinner / check.
|
|
24
24
|
*/
|
|
25
25
|
walletIcon: ReactNode;
|
|
26
26
|
/** Called when the user clicks; only fires when `status` allows it. */
|
|
@@ -8,10 +8,23 @@ interface FunNotificationProps {
|
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
10
|
export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint' | 'warningAlert';
|
|
11
|
-
export
|
|
11
|
+
export type DisplayedError = {
|
|
12
|
+
/**
|
|
13
|
+
* Stable error code for analytics
|
|
14
|
+
*/
|
|
15
|
+
code: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Stable message key for analytics
|
|
18
|
+
* - should not forward arbitrary 3rd-party error messages
|
|
19
|
+
* - should not depend on locale
|
|
20
|
+
*/
|
|
21
|
+
messageKey: string | null;
|
|
22
|
+
/** User-visible error message */
|
|
12
23
|
message: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export type ErrorNotification = DisplayedError & {
|
|
13
26
|
type: FunNotificationType;
|
|
14
|
-
}
|
|
27
|
+
};
|
|
15
28
|
/**
|
|
16
29
|
* A notification/message component with height resizing animation.
|
|
17
30
|
* Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
|
|
@@ -4,10 +4,11 @@ import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
|
4
4
|
type PaymentRouteSummaryProps = {
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo | null;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
7
|
+
sourceAddress?: string | null;
|
|
7
8
|
sourceRedirect?: ReactNode;
|
|
8
9
|
destinationRedirect?: ReactNode;
|
|
9
10
|
isWithdrawal?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const PaymentRouteSummary: ({ paymentMethodInfo, customRecipient, sourceRedirect, destinationRedirect, isWithdrawal, }: PaymentRouteSummaryProps) => React.JSX.Element;
|
|
12
|
+
export declare const PaymentRouteSummary: ({ paymentMethodInfo, customRecipient, sourceAddress, sourceRedirect, destinationRedirect, isWithdrawal, }: PaymentRouteSummaryProps) => React.JSX.Element;
|
|
12
13
|
export declare const PaymentRouteSummarySkeletonLoader: () => React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import type { ErrorNotification } from '../FunNotification/FunNotification';
|
|
4
|
+
import type { AnalyticsFlow } from '../../hooks/track/analytics/events';
|
|
5
|
+
import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
|
|
6
|
+
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
3
7
|
interface ModalErrorStateProps {
|
|
4
8
|
/** Icon rendered inside a 32×32 circular `offBackground` container. Defaults to a filled InfoIcon. */
|
|
5
9
|
icon?: ReactNode;
|
|
@@ -12,6 +16,9 @@ interface ModalErrorStateProps {
|
|
|
12
16
|
paddingTop?: BoxProps['paddingTop'];
|
|
13
17
|
/** Optional style for the container. */
|
|
14
18
|
style?: React.CSSProperties;
|
|
19
|
+
flow: AnalyticsFlow;
|
|
20
|
+
step: FunCheckoutStep | WithdrawalModalStep;
|
|
21
|
+
track: Omit<ErrorNotification, 'message'> | null;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* Centered icon + body message used inside modal steps when a content
|
|
@@ -20,5 +27,5 @@ interface ModalErrorStateProps {
|
|
|
20
27
|
* `minHeight`.
|
|
21
28
|
*
|
|
22
29
|
*/
|
|
23
|
-
export declare function ModalErrorState({ icon, children, minHeight, paddingBottom, paddingTop, style, }: ModalErrorStateProps): React.JSX.Element;
|
|
30
|
+
export declare function ModalErrorState({ icon, children, flow, minHeight, paddingBottom, paddingTop, step, style, track, }: ModalErrorStateProps): React.JSX.Element;
|
|
24
31
|
export {};
|
|
@@ -15,7 +15,7 @@ export interface CreateFunkitWagmiConfigParameters extends WagmiConfigParameters
|
|
|
15
15
|
}
|
|
16
16
|
export declare const createFunkitWagmiConfig: (rawWagmiConfig: CreateFunkitWagmiConfigParameters) => import("wagmi").Config;
|
|
17
17
|
/**
|
|
18
|
-
* Get default funkit-supported checkout chains
|
|
18
|
+
* Get default funkit-supported checkout chains. EVM only — this feeds wagmi.
|
|
19
19
|
*/
|
|
20
20
|
export declare const getDefaultChains: () => [Chain, ...Chain[]];
|
|
21
21
|
/**
|
package/dist/consts/quote.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DisplayedError, ErrorNotification } from '../components/FunNotification/FunNotification';
|
|
3
3
|
export declare enum PendingQuoteMessage {
|
|
4
4
|
PREPARING = 0,
|
|
5
5
|
VERIFYING_PROVIDER = 1,
|
|
@@ -15,31 +15,31 @@ export declare const getPendingQuoteMessageGenerator: (t: TFunction) => {
|
|
|
15
15
|
export declare const getQuoteApiErrorDisplayInfo: (t: TFunction) => {
|
|
16
16
|
0: {
|
|
17
17
|
check: string;
|
|
18
|
-
display:
|
|
18
|
+
display: ErrorNotification;
|
|
19
19
|
};
|
|
20
20
|
1: {
|
|
21
21
|
check: string;
|
|
22
|
-
display:
|
|
22
|
+
display: ErrorNotification;
|
|
23
23
|
};
|
|
24
24
|
6: {
|
|
25
25
|
check: string;
|
|
26
|
-
display:
|
|
26
|
+
display: DisplayedError;
|
|
27
27
|
};
|
|
28
28
|
2: {
|
|
29
29
|
check: string;
|
|
30
|
-
display:
|
|
30
|
+
display: DisplayedError;
|
|
31
31
|
};
|
|
32
32
|
3: {
|
|
33
33
|
check: string;
|
|
34
|
-
display:
|
|
34
|
+
display: DisplayedError;
|
|
35
35
|
};
|
|
36
36
|
4: {
|
|
37
37
|
check: string;
|
|
38
|
-
display:
|
|
38
|
+
display: DisplayedError;
|
|
39
39
|
};
|
|
40
40
|
5: {
|
|
41
41
|
check: string;
|
|
42
|
-
display:
|
|
42
|
+
display: DisplayedError;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
export declare enum QuoteCustomErrorType {
|
|
@@ -51,19 +51,19 @@ export declare enum QuoteCustomErrorType {
|
|
|
51
51
|
export declare const getQuoteCustomErrorDisplayInfo: (t: TFunction) => {
|
|
52
52
|
0: {
|
|
53
53
|
check: string;
|
|
54
|
-
display:
|
|
54
|
+
display: DisplayedError;
|
|
55
55
|
};
|
|
56
56
|
1: {
|
|
57
57
|
check: string;
|
|
58
|
-
display:
|
|
58
|
+
display: DisplayedError;
|
|
59
59
|
};
|
|
60
60
|
2: {
|
|
61
61
|
check: string;
|
|
62
|
-
display:
|
|
62
|
+
display: DisplayedError;
|
|
63
63
|
};
|
|
64
64
|
3: {
|
|
65
65
|
check: string;
|
|
66
|
-
display:
|
|
66
|
+
display: DisplayedError;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction):
|
|
69
|
+
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): DisplayedError;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Connector } from 'wagmi';
|
|
2
|
+
import type { AsyncImageSrc } from '../components/AsyncImage/useAsyncImage';
|
|
3
|
+
/** Hosts spell names freely, so compare on letters and digits alone. */
|
|
4
|
+
export declare function normalizeWalletName(name: string): string;
|
|
5
|
+
export declare function getWalletIconByName(name: string | undefined): (() => Promise<string>) | undefined;
|
|
6
|
+
/** Bundled funkit icon, else the one the wallet announced, else by name. */
|
|
7
|
+
export declare function getConnectorIcon(connector: Connector | undefined): string | AsyncImageSrc | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { ErrorNotification } from '../components/FunNotification/FunNotification';
|
|
3
3
|
import type { Config, Connector } from '../wagmi/hooks';
|
|
4
|
-
export
|
|
5
|
-
durationMs?: number;
|
|
4
|
+
export type CheckoutConfirmationError = ErrorNotification & {
|
|
6
5
|
code: ConfirmationErrorCode;
|
|
7
|
-
|
|
6
|
+
durationMs?: number;
|
|
7
|
+
};
|
|
8
8
|
export declare enum ConfirmationErrorCode {
|
|
9
9
|
QUOTE_EXPIRED = "QUOTE_EXPIRED",
|
|
10
10
|
GENERIC_ERROR = "GENERIC_ERROR",
|
package/dist/domains/relay.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
|
2
2
|
import { RelayQuoteError } from '@funkit/api-base';
|
|
3
3
|
import type { RelayExecute, RelayQuote } from '@funkit/fun-relay';
|
|
4
4
|
import type { TFunction } from 'i18next';
|
|
5
|
-
import type {
|
|
5
|
+
import type { DisplayedError } from '../components/FunNotification/FunNotification';
|
|
6
6
|
export type RelayQuoteMetadata = {
|
|
7
7
|
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
8
8
|
feeBreakdown?: FeeBreakdownV2;
|
|
@@ -55,6 +55,6 @@ export declare enum RelayUnexpectedErrorCodes {
|
|
|
55
55
|
PERMIT_FAILED = "PERMIT_FAILED"
|
|
56
56
|
}
|
|
57
57
|
export type RelayErrorCodes = RelayExpectedErrorCodes | RelayUnexpectedErrorCodes;
|
|
58
|
-
export declare function getRelayErrorMessages(t: TFunction): Partial<Record<RelayErrorCodes,
|
|
59
|
-
export declare function getRelayQuoteErrorDisplayMessage(error: RelayQuoteError, t: TFunction, fallback:
|
|
58
|
+
export declare function getRelayErrorMessages(t: TFunction): Partial<Record<RelayErrorCodes, Omit<DisplayedError, 'code'>>>;
|
|
59
|
+
export declare function getRelayQuoteErrorDisplayMessage(error: RelayQuoteError, t: TFunction, fallback: DisplayedError): DisplayedError;
|
|
60
60
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ErrorNotification } from '../../components/FunNotification/FunNotification';
|
|
1
2
|
/**
|
|
2
3
|
* @returns limits for all fiat currencies
|
|
3
4
|
*/
|
|
@@ -159,7 +160,7 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
|
|
|
159
160
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
160
161
|
promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
|
|
161
162
|
};
|
|
162
|
-
type MeldLimitError = {
|
|
163
|
+
type MeldLimitError = Pick<ErrorNotification, 'code' | 'messageKey'> & {
|
|
163
164
|
issue: string;
|
|
164
165
|
suggestion: string;
|
|
165
166
|
};
|
|
@@ -5,6 +5,7 @@ import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
|
5
5
|
import type { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
|
|
6
6
|
import type { AmountSelectionType } from '../../../modals/CheckoutModal/InputAmount/state';
|
|
7
7
|
import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
8
|
+
import type { FunNotificationType } from '../../../components/FunNotification/FunNotification';
|
|
8
9
|
/**
|
|
9
10
|
* Analytics v2 — the improved, explicit Statsig event scheme that will replace
|
|
10
11
|
* the `fc::`/`fw::` enums in `../CheckoutModalEvent.ts` / `../WithdrawModalEvent.ts`.
|
|
@@ -26,6 +27,7 @@ export declare enum AnalyticsEvent {
|
|
|
26
27
|
DEPOSIT_TRANSFER_INTERACTED = "fc_deposit_transfer_interacted",
|
|
27
28
|
DEPOSIT_TRANSACTION_BREAKDOWN_CLICKED = "fc_deposit_transaction_breakdown_clicked",
|
|
28
29
|
DEPOSIT_TRANSACTION_SUBMITTED = "fc_deposit_transaction_submitted",
|
|
30
|
+
ERROR_SHOWN = "fc_error_shown",
|
|
29
31
|
MODAL_CLOSED = "fc_modal_closed",
|
|
30
32
|
MODAL_OPENED = "fc_modal_opened",
|
|
31
33
|
STEP_VIEWED = "fc_step_viewed",
|
|
@@ -80,6 +82,11 @@ export type ErrorProperties = {
|
|
|
80
82
|
error_code: string | null;
|
|
81
83
|
error_message: string | null;
|
|
82
84
|
};
|
|
85
|
+
export type ErrorShownProperties = ErrorProperties & {
|
|
86
|
+
flow: AnalyticsFlow;
|
|
87
|
+
notification_type: FunNotificationType;
|
|
88
|
+
step: AnalyticsStep;
|
|
89
|
+
};
|
|
83
90
|
/** Payload specific to brokerage account connection lifecycle events. */
|
|
84
91
|
export type AccountConnectProperties = PaymentMethodProperties;
|
|
85
92
|
export type AccountConnectFailedProperties = AccountConnectProperties & ErrorProperties;
|
|
@@ -349,6 +356,7 @@ export type AnalyticsEventProperties = {
|
|
|
349
356
|
[AnalyticsEvent.DEPOSIT_TRANSFER_INTERACTED]: DepositTransferInteractedProperties;
|
|
350
357
|
[AnalyticsEvent.DEPOSIT_TRANSACTION_BREAKDOWN_CLICKED]: TransactionBreakdownClickedProperties;
|
|
351
358
|
[AnalyticsEvent.DEPOSIT_TRANSACTION_SUBMITTED]: TransactionSubmittedProperties;
|
|
359
|
+
[AnalyticsEvent.ERROR_SHOWN]: ErrorShownProperties;
|
|
352
360
|
[AnalyticsEvent.MODAL_CLOSED]: ModalClosedProperties;
|
|
353
361
|
[AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
|
|
354
362
|
[AnalyticsEvent.STEP_VIEWED]: StepViewedProperties;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { FormOfPaymentType, type MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import { PaymentMethod, type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import type { AnalyticsStep, PaymentMethodProperties } from './events';
|
|
4
|
-
import
|
|
3
|
+
import type { AnalyticsFlow, AnalyticsStep, PaymentMethodProperties } from './events';
|
|
4
|
+
import { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
|
|
5
|
+
import type { CheckoutModalState } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
6
|
import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
6
7
|
/** Round analytics amounts before Statsig stringifies event metadata. */
|
|
7
8
|
export declare function formatAnalyticsAmount(amount: number | null): string | null;
|
|
8
9
|
export declare function formatAnalyticsStep(step: FunCheckoutStep | WithdrawalModalStep): AnalyticsStep;
|
|
10
|
+
export declare function getCheckoutModalAnalyticsFlow(modalState: CheckoutModalState): AnalyticsFlow;
|
|
9
11
|
export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null;
|
|
10
12
|
/** Selected checkout provider, such as a Bluvo exchange or wallet connector. */
|
|
11
13
|
export declare function resolveProvider(args: {
|