@funkit/connect 12.2.0 → 12.4.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/clients/{chunk-RI3XDJDQ.js → chunk-2W2P3OS6.js} +1 -0
  3. package/dist/clients/internal/nado/withdrawalForm.css +7 -5
  4. package/dist/clients/internal/nado/withdrawalForm.js +2 -2
  5. package/dist/clients/internal/nado/withdrawalStatus.js +1 -1
  6. package/dist/clients/lighter.css +7 -5
  7. package/dist/clients/lighter.js +40 -19
  8. package/dist/clients/mallard.js +1 -1
  9. package/dist/clients/nado.js +1 -1
  10. package/dist/components/FunNotification/FunNotification.d.ts +15 -2
  11. package/dist/components/FunPayments/ExchangeIconCluster.d.ts +5 -0
  12. package/dist/components/FunPayments/SourceExchangeIcon.d.ts +5 -0
  13. package/dist/components/FunPayments/TransferCryptoChainIcons.d.ts +2 -0
  14. package/dist/components/FunPayments/icons/binance.d.ts +5 -0
  15. package/dist/components/FunPayments/icons/coinbase.d.ts +5 -0
  16. package/dist/components/FunPayments/icons/gemini.d.ts +5 -0
  17. package/dist/components/FunPayments/icons/kraken.d.ts +5 -0
  18. package/dist/components/IconCluster/IconCluster.css.d.ts +2 -1
  19. package/dist/components/IconCluster/IconCluster.d.ts +3 -3
  20. package/dist/components/SupportedChainList/SupportedChainList.d.ts +2 -1
  21. package/dist/consts/quote.d.ts +13 -13
  22. package/dist/domains/checkoutErrors.d.ts +3 -3
  23. package/dist/domains/relay.d.ts +3 -3
  24. package/dist/hooks/queries/useMeldLimits.d.ts +2 -1
  25. package/dist/hooks/track/analytics/events.d.ts +22 -2
  26. package/dist/hooks/track/analytics/qrNotificationObservation.d.ts +10 -0
  27. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +4 -0
  28. package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +12 -0
  29. package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
  30. package/dist/hooks/useWalletAssets.d.ts +1 -1
  31. package/dist/index.css +7 -5
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +3445 -2480
  34. package/dist/interfaces/solanaWallet.d.ts +2 -22
  35. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  36. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -2
  37. package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +6 -2
  38. package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +5 -2
  39. package/dist/providers/FunkitProvider.d.ts +10 -0
  40. package/dist/providers/FunkitQuoteContext.d.ts +2 -1
  41. package/dist/providers/GeneralWalletProvider.d.ts +7 -4
  42. package/dist/shadow-css.js +1 -1
  43. package/dist/utils/solanaRelayWallet.d.ts +9 -0
  44. package/dist/utils/swapped.d.ts +2 -0
  45. package/dist/wagmi/hooks.d.ts +2 -2
  46. package/dist/wallets/Wallet.d.ts +1 -0
  47. package/dist/wallets/pickConnectionChainId.d.ts +12 -0
  48. package/dist/wallets/useAdoptionConnectionGuard.d.ts +17 -0
  49. package/dist/wallets/useWalletAdoption.d.ts +27 -0
  50. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +3 -3
  51. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +4 -4
  52. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +4 -4
  53. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +3 -3
  54. package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.js +3 -3
  55. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +3 -3
  56. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +3 -3
  57. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +4 -4
  58. package/dist/wallets/walletConnectors/{chunk-EWQ5UND7.js → chunk-2TAUCVX7.js} +1 -1
  59. package/dist/wallets/walletConnectors/{chunk-PJVY2BH3.js → chunk-34B7OJNT.js} +2 -2
  60. package/dist/wallets/walletConnectors/{chunk-WK73MMGI.js → chunk-4FHNLTR3.js} +2 -2
  61. package/dist/wallets/walletConnectors/{chunk-NQGUGDFD.js → chunk-5AEWIKRA.js} +1 -1
  62. package/dist/wallets/walletConnectors/{chunk-M2B47F67.js → chunk-AALSJCUR.js} +1 -1
  63. package/dist/wallets/walletConnectors/{chunk-JTX3KUQM.js → chunk-ALGPGI6V.js} +2 -2
  64. package/dist/wallets/walletConnectors/{chunk-HQ6KPS3Q.js → chunk-B454LLKJ.js} +1 -0
  65. package/dist/wallets/walletConnectors/{chunk-5OYXRCD3.js → chunk-B572YIAQ.js} +1 -1
  66. package/dist/wallets/walletConnectors/{chunk-E5HZSZSQ.js → chunk-BBB2J3US.js} +2 -2
  67. package/dist/wallets/walletConnectors/{chunk-L6SKCBWH.js → chunk-BBDNB5TQ.js} +2 -2
  68. package/dist/wallets/walletConnectors/{chunk-6GL5FMX2.js → chunk-BL4OC2EJ.js} +1 -1
  69. package/dist/wallets/walletConnectors/{chunk-CPSQUBEH.js → chunk-CU5J53XR.js} +2 -2
  70. package/dist/wallets/walletConnectors/{chunk-G6DC4MOM.js → chunk-DFHP75HV.js} +1 -1
  71. package/dist/wallets/walletConnectors/{chunk-NB2KTNZO.js → chunk-DSPQXAB2.js} +1 -1
  72. package/dist/wallets/walletConnectors/{chunk-XRPWBNDY.js → chunk-DUX4XCDV.js} +1 -1
  73. package/dist/wallets/walletConnectors/{chunk-NCR2NZIF.js → chunk-EYWGX5LT.js} +1 -1
  74. package/dist/wallets/walletConnectors/{chunk-OCHXL6A3.js → chunk-GFS2AVAH.js} +1 -1
  75. package/dist/wallets/walletConnectors/{chunk-E3B632TR.js → chunk-GLX5FULK.js} +1 -1
  76. package/dist/wallets/walletConnectors/{chunk-RH2IU2VF.js → chunk-GPXIBTWN.js} +1 -1
  77. package/dist/wallets/walletConnectors/{chunk-KHD6RR2N.js → chunk-HOCKAU5H.js} +2 -2
  78. package/dist/wallets/walletConnectors/{chunk-PNSXGILR.js → chunk-HXX4PRE2.js} +1 -1
  79. package/dist/wallets/walletConnectors/{chunk-CY6WKDYM.js → chunk-IA5432IR.js} +2 -2
  80. package/dist/wallets/walletConnectors/{chunk-CRPC246U.js → chunk-IAYYWCVB.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-ECY7XA5D.js → chunk-IR3PJMVM.js} +1 -1
  82. package/dist/wallets/walletConnectors/{chunk-PY4BOX22.js → chunk-IWOMSW64.js} +2 -2
  83. package/dist/wallets/walletConnectors/{chunk-VBIE3QQU.js → chunk-KN32ITJ7.js} +1 -1
  84. package/dist/wallets/walletConnectors/{chunk-OZKFQTZI.js → chunk-LV6YV3DE.js} +1 -1
  85. package/dist/wallets/walletConnectors/{chunk-SYG4ZC7T.js → chunk-M75V7OL3.js} +1 -1
  86. package/dist/wallets/walletConnectors/{chunk-VL42SDC4.js → chunk-NPITCCJE.js} +1 -1
  87. package/dist/wallets/walletConnectors/{chunk-KXE5IEKX.js → chunk-NXWG6FG2.js} +2 -2
  88. package/dist/wallets/walletConnectors/{chunk-C67K4EPH.js → chunk-PNHDOC77.js} +1 -1
  89. package/dist/wallets/walletConnectors/{chunk-KNU2N67F.js → chunk-Q27YVDDH.js} +1 -1
  90. package/dist/wallets/walletConnectors/{chunk-KGALBNAA.js → chunk-RFCZYLNR.js} +2 -2
  91. package/dist/wallets/walletConnectors/{chunk-5BUVYIXK.js → chunk-RQ2GXOJL.js} +1 -1
  92. package/dist/wallets/walletConnectors/{chunk-KSRWGZSC.js → chunk-RXRYHMRI.js} +2 -2
  93. package/dist/wallets/walletConnectors/{chunk-5HROYRLG.js → chunk-SM2A3OSG.js} +1 -1
  94. package/dist/wallets/walletConnectors/{chunk-JCUTBJUW.js → chunk-SR5CZR3L.js} +2 -2
  95. package/dist/wallets/walletConnectors/{chunk-CVZLZKCI.js → chunk-TPM5PUJD.js} +1 -1
  96. package/dist/wallets/walletConnectors/{chunk-ESR4UZ4B.js → chunk-TRZDAXCQ.js} +2 -2
  97. package/dist/wallets/walletConnectors/{chunk-UO2EFEFN.js → chunk-U2XXV45G.js} +1 -1
  98. package/dist/wallets/walletConnectors/{chunk-6IDCOP4M.js → chunk-U52QO5HF.js} +2 -2
  99. package/dist/wallets/walletConnectors/{chunk-W6N3GFKS.js → chunk-U74RFZOL.js} +1 -1
  100. package/dist/wallets/walletConnectors/{chunk-E4DXU4KM.js → chunk-UN3ONVNC.js} +1 -1
  101. package/dist/wallets/walletConnectors/{chunk-VLX3A27M.js → chunk-UNDWHCDH.js} +1 -1
  102. package/dist/wallets/walletConnectors/{chunk-UIM2V3F5.js → chunk-V4M3SNPS.js} +1 -1
  103. package/dist/wallets/walletConnectors/{chunk-F2BYFAHW.js → chunk-V77ATGZT.js} +1 -1
  104. package/dist/wallets/walletConnectors/chunk-VKM5M5UK.js +49 -0
  105. package/dist/wallets/walletConnectors/{chunk-YT2VZIZ4.js → chunk-XODA5ESL.js} +2 -2
  106. package/dist/wallets/walletConnectors/{chunk-HWZX2YM7.js → chunk-XSDTNMQY.js} +1 -1
  107. package/dist/wallets/walletConnectors/{chunk-SHRHVMF5.js → chunk-YRMBR6NA.js} +2 -2
  108. package/dist/wallets/walletConnectors/{chunk-UBMJDZCX.js → chunk-YY2JA23M.js} +1 -1
  109. package/dist/wallets/walletConnectors/{chunk-DEM6SAFP.js → chunk-Z6LDN2AN.js} +1 -1
  110. package/dist/wallets/walletConnectors/{chunk-YWW64ORH.js → chunk-ZSSSLFQF.js} +2 -2
  111. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +4 -4
  112. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +4 -4
  113. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
  114. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +4 -4
  115. package/dist/wallets/walletConnectors/customWallet/customWallet.d.ts +32 -0
  116. package/dist/wallets/walletConnectors/customWallet/customWallet.js +9 -0
  117. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +3 -3
  118. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +3 -3
  119. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +3 -3
  120. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +4 -4
  121. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +3 -3
  122. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +4 -4
  123. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +4 -4
  124. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +3 -3
  125. package/dist/wallets/walletConnectors/index.d.ts +2 -1
  126. package/dist/wallets/walletConnectors/index.js +80 -76
  127. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +3 -3
  128. package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.js +3 -3
  129. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +3 -3
  130. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +4 -4
  131. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +3 -3
  132. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +3 -3
  133. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +4 -4
  134. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +3 -3
  135. package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.js +3 -3
  136. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +3 -3
  137. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +3 -3
  138. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +3 -3
  139. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +4 -4
  140. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +3 -3
  141. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +4 -4
  142. package/dist/wallets/walletConnectors/safeWallet/safeWallet.js +2 -2
  143. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +3 -3
  144. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +4 -4
  145. package/dist/wallets/walletConnectors/subWallet/subWallet.js +4 -4
  146. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +3 -3
  147. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +3 -3
  148. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +4 -4
  149. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +3 -3
  150. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +4 -4
  151. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +3 -3
  152. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +3 -3
  153. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +3 -3
  154. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +3 -3
  155. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +4 -4
  156. package/package.json +6 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b948af2: `SolanaWalletConnection`'s `signAndSendTransaction` resolves the raw 64-byte signature instead of a base58 string
8
+
9
+ ### Patch Changes
10
+
11
+ - f15fc2a: The Swapped embed now renders themes whose colors use modern CSS color functions such as `oklch()` or `lab()`.
12
+ - 140dc65: Track when checkout errors are shown to users.
13
+ - b631d39: Generalize error notification structure
14
+ - 2b07abc: Track displayed errors across checkout and withdrawal flows.
15
+ - Updated dependencies [b948af2]
16
+ - Updated dependencies [3a6256a]
17
+ - Updated dependencies [b948af2]
18
+ - Updated dependencies [46d5375]
19
+ - Updated dependencies [50e2acc]
20
+ - Updated dependencies [78f075b]
21
+ - @funkit/api-base@8.2.0
22
+ - @funkit/connect-core@6.1.0
23
+ - @funkit/fun-relay@3.0.0
24
+
25
+ ## 12.3.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 50ce75a: Show Solana balances in the wallet asset list when `solanaWallet` is set; they aren't selectable as a source yet.
30
+ - f2d1fb9: Open the Swapped fiat on-ramp with a prefilled default amount.
31
+ - cd002d5: Allow host applications to list and automatically connect a wallet they already hold.
32
+
33
+ ### Patch Changes
34
+
35
+ - 6fc0be5: Use transparent separators and four-icon previews for supported chains and exchanges.
36
+ - 429f583: Align Source Change icons and chain previews with the design, spacing small groups apart and overlapping larger groups without masking artwork.
37
+ - f787a1f: Track modal closed actions
38
+ - f0f8dea: Track Transfer Crypto breakdown clicked
39
+ - Updated dependencies [0dd9bb6]
40
+ - Updated dependencies [d759c2e]
41
+ - Updated dependencies [e3fc541]
42
+ - Updated dependencies [053d65f]
43
+ - Updated dependencies [d6878c0]
44
+ - Updated dependencies [19abab6]
45
+ - Updated dependencies [91fa0ce]
46
+ - Updated dependencies [91fa0ce]
47
+ - Updated dependencies [f2d1fb9]
48
+ - Updated dependencies [f2d1fb9]
49
+ - @funkit/api-base@8.1.0
50
+ - @funkit/connect-core@6.0.0
51
+
3
52
  ## 12.2.0
4
53
 
5
54
  ### Minor Changes
@@ -7,6 +7,7 @@ import {
7
7
  useBalance,
8
8
  useConfig,
9
9
  useConnect,
10
+ useConnections,
10
11
  useDisconnect,
11
12
  useEnsAvatar,
12
13
  useEnsName,
@@ -16810,17 +16810,19 @@
16810
16810
  border-top-width: 0;
16811
16811
  }
16812
16812
 
16813
- /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MSB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkxID4gKiB7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xaTN5aTZ5MSA-ICogKyAqIHsKICBtYXJnaW4tbGVmdDogdmFyKC0tXzFpM3lpNnkwKTsKfQ */
16814
- [data-rk] ._1i3yi6y1 {
16813
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MiB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkzIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtc2hyaW5rOiAwOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQouXzFpM3lpNnkzICsgLl8xaTN5aTZ5MyB7CiAgbWFyZ2luLWxlZnQ6IHZhcigtLV8xaTN5aTZ5MSk7Cn0 */
16814
+ [data-rk] ._1i3yi6y2 {
16815
16815
  display: flex;
16816
16816
  align-items: center;
16817
16817
  isolation: isolate;
16818
16818
  }
16819
- [data-rk] ._1i3yi6y1 > * {
16819
+ [data-rk] ._1i3yi6y3 {
16820
+ display: flex;
16820
16821
  flex-shrink: 0;
16822
+ position: relative;
16821
16823
  }
16822
- [data-rk] ._1i3yi6y1 > * + * {
16823
- margin-left: var(--_1i3yi6y0);
16824
+ [data-rk] ._1i3yi6y3 + ._1i3yi6y3 {
16825
+ margin-left: var(--_1i3yi6y1);
16824
16826
  }
16825
16827
 
16826
16828
  /* vanilla-extract-css-ns:src/components/FunCheckoutHistory/AddTokenToWalletButton.css.ts.vanilla.css?source=Ll8xc3R1dWtyMCB7CiAgYmFja2dyb3VuZDogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7CiAgYmFja2dyb3VuZDogY29sb3ItbWl4KGluIHNyZ2IsIHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpIDcwJSwgdHJhbnNwYXJlbnQpOwp9Ci5fMXN0dXVrcjA6aG92ZXIgewogIGJhY2tncm91bmQ6IHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpOwogIGJhY2tncm91bmQ6IGNvbG9yLW1peChpbiBzcmdiLCB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKSA5MCUsIHRyYW5zcGFyZW50KTsKfQ */
@@ -13,7 +13,7 @@ import {
13
13
  useFunkitTranslation
14
14
  } from "../../chunk-A5JW3UI6.js";
15
15
  import "../../chunk-B7UU2ETA.js";
16
- import "../../chunk-RI3XDJDQ.js";
16
+ import "../../chunk-2W2P3OS6.js";
17
17
  import "../../chunk-27VBRE7W.js";
18
18
  import {
19
19
  logger
@@ -61,7 +61,7 @@ var GeneralWalletContext = createContext({
61
61
  connectorId: void 0,
62
62
  userInfo: PLACEHOLDER_FUNKIT_USER_INFO,
63
63
  l2Address: void 0,
64
- handleLogout: () => void 0,
64
+ handleLogout: async () => void 0,
65
65
  logoutSymbol: void 0
66
66
  });
67
67
  var useGeneralWallet = () => {
@@ -5,7 +5,7 @@ import {
5
5
  import "../../chunk-A5JW3UI6.js";
6
6
  import {
7
7
  useAccount
8
- } from "../../chunk-RI3XDJDQ.js";
8
+ } from "../../chunk-2W2P3OS6.js";
9
9
  import "../../chunk-27VBRE7W.js";
10
10
  import {
11
11
  logger
@@ -14701,17 +14701,19 @@
14701
14701
  }
14702
14702
  }
14703
14703
 
14704
- /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MSB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkxID4gKiB7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xaTN5aTZ5MSA-ICogKyAqIHsKICBtYXJnaW4tbGVmdDogdmFyKC0tXzFpM3lpNnkwKTsKfQ */
14705
- [data-rk] ._1i3yi6y1 {
14704
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MiB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkzIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtc2hyaW5rOiAwOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQouXzFpM3lpNnkzICsgLl8xaTN5aTZ5MyB7CiAgbWFyZ2luLWxlZnQ6IHZhcigtLV8xaTN5aTZ5MSk7Cn0 */
14705
+ [data-rk] ._1i3yi6y2 {
14706
14706
  display: flex;
14707
14707
  align-items: center;
14708
14708
  isolation: isolate;
14709
14709
  }
14710
- [data-rk] ._1i3yi6y1 > * {
14710
+ [data-rk] ._1i3yi6y3 {
14711
+ display: flex;
14711
14712
  flex-shrink: 0;
14713
+ position: relative;
14712
14714
  }
14713
- [data-rk] ._1i3yi6y1 > * + * {
14714
- margin-left: var(--_1i3yi6y0);
14715
+ [data-rk] ._1i3yi6y3 + ._1i3yi6y3 {
14716
+ margin-left: var(--_1i3yi6y1);
14715
14717
  }
14716
14718
 
14717
14719
  /* vanilla-extract-css-ns:src/components/Icons/Icons.css.ts.vanilla.css?source=QGtleWZyYW1lcyBxZTIyMWEwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICB9CiAgMTAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIHFlMjIxYTEgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9Ci5xZTIyMWEyIHsKICBhbmltYXRpb246IHFlMjIxYTAgMC44cyBsaW5lYXIgaW5maW5pdGU7Cn0KLnFlMjIxYTMgewogIGFuaW1hdGlvbjogcWUyMjFhMCAzMDAwbXMgbGluZWFyIGluZmluaXRlOwp9Ci5xZTIyMWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgYm9yZGVyLXJhZGl1czogNTAlOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBhbmltYXRpb246IHFlMjIxYTEgMC44cyBsaW5lYXIgaW5maW5pdGU7CiAgYXNwZWN0LXJhdGlvOiAxIC8gMTsKfQoucWUyMjFhNSB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHRvcDogNTAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0 */
@@ -15,7 +15,7 @@ import {
15
15
  useFunkitTranslation
16
16
  } from "./chunk-A5JW3UI6.js";
17
17
  import "./chunk-OODIKHYE.js";
18
- import "./chunk-RI3XDJDQ.js";
18
+ import "./chunk-2W2P3OS6.js";
19
19
  import "./chunk-27VBRE7W.js";
20
20
  import {
21
21
  logger
@@ -173,17 +173,16 @@ function ChainIcon({
173
173
 
174
174
  // src/components/IconCluster/IconCluster.tsx
175
175
  import { assignInlineVars } from "@vanilla-extract/dynamic";
176
- import React4 from "react";
176
+ import React4, { Children } from "react";
177
177
 
178
178
  // src/components/IconCluster/IconCluster.css.ts
179
- var iconCluster = "_1i3yi6y1";
180
- var iconSpacingVar = "var(--_1i3yi6y0)";
179
+ var iconCluster = "_1i3yi6y2";
180
+ var iconClusterItem = "_1i3yi6y3";
181
+ var iconSizeVar = "var(--_1i3yi6y0)";
182
+ var iconSpacingVar = "var(--_1i3yi6y1)";
181
183
 
182
184
  // src/components/IconCluster/IconCluster.tsx
183
185
  var CLUSTER_ICON_SIZE = 16;
184
- var COMPRESS_ABOVE = 4;
185
- var SPACED_GAP = 2;
186
- var OVERLAP_RATIO = 3 / 16;
187
186
  var PLUS_GLYPH_RATIO = 11 / 16;
188
187
  function IconCluster({
189
188
  children,
@@ -191,17 +190,27 @@ function IconCluster({
191
190
  iconSize = CLUSTER_ICON_SIZE,
192
191
  style
193
192
  }) {
194
- const spacing = iconCount > COMPRESS_ABOVE ? -Math.round(iconSize * OVERLAP_RATIO) : SPACED_GAP;
193
+ const items = Children.toArray(children);
195
194
  return /* @__PURE__ */ React4.createElement(
196
195
  Box,
197
196
  {
198
197
  className: iconCluster,
199
198
  style: {
200
- ...assignInlineVars({ [iconSpacingVar]: `${spacing}px` }),
199
+ ...assignInlineVars({
200
+ [iconSizeVar]: `${iconSize}px`,
201
+ [iconSpacingVar]: iconCount < 5 ? "2px" : `${-iconSize * 3 / 16}px`
202
+ }),
201
203
  ...style
202
204
  }
203
205
  },
204
- children
206
+ Children.map(items, (child, index) => /* @__PURE__ */ React4.createElement(
207
+ Box,
208
+ {
209
+ className: iconClusterItem,
210
+ style: { zIndex: items.length - index }
211
+ },
212
+ child
213
+ ))
205
214
  );
206
215
  }
207
216
  function MoreIconsIndicator({
@@ -221,15 +230,26 @@ function MoreIconsIndicator({
221
230
  style: { width: size, height: size },
222
231
  testId: "more-icons-indicator"
223
232
  },
224
- /* @__PURE__ */ React4.createElement("svg", { fill: "none", height: glyphSize, viewBox: "0 0 10 10", width: glyphSize }, /* @__PURE__ */ React4.createElement(
225
- "path",
233
+ /* @__PURE__ */ React4.createElement(
234
+ "svg",
226
235
  {
227
- d: "M5 1v8M1 5h8",
228
- stroke: "currentColor",
229
- strokeLinecap: "round",
230
- strokeWidth: "1.5"
231
- }
232
- ))
236
+ "aria-hidden": "true",
237
+ fill: "none",
238
+ height: glyphSize,
239
+ viewBox: "0 0 11 11",
240
+ width: glyphSize
241
+ },
242
+ /* @__PURE__ */ React4.createElement(
243
+ "path",
244
+ {
245
+ d: "M5.5 2.29167V8.70833M2.29167 5.5H8.70833",
246
+ stroke: "currentColor",
247
+ strokeLinecap: "round",
248
+ strokeLinejoin: "round",
249
+ strokeWidth: "1.5"
250
+ }
251
+ )
252
+ )
233
253
  );
234
254
  }
235
255
 
@@ -237,6 +257,7 @@ function MoreIconsIndicator({
237
257
  var MAX_VISIBLE_CHAINS = 6;
238
258
  function SupportedChainList({
239
259
  chainIdList,
260
+ showMore = false,
240
261
  iconSize = CLUSTER_ICON_SIZE,
241
262
  style
242
263
  }) {
@@ -245,7 +266,7 @@ function SupportedChainList({
245
266
  (chainId) => getChainMetadata(Number(chainId))
246
267
  );
247
268
  const visibleChains = resolvedChains.slice(0, MAX_VISIBLE_CHAINS);
248
- const hasMore = resolvedChains.length > MAX_VISIBLE_CHAINS;
269
+ const hasMore = resolvedChains.length > 0 && (showMore || resolvedChains.length > MAX_VISIBLE_CHAINS);
249
270
  return /* @__PURE__ */ React5.createElement(
250
271
  IconCluster,
251
272
  {
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  useAccount,
15
15
  useConfig
16
- } from "./chunk-RI3XDJDQ.js";
16
+ } from "./chunk-2W2P3OS6.js";
17
17
  import "./chunk-27VBRE7W.js";
18
18
  import {
19
19
  logger
@@ -8,7 +8,7 @@ import "./chunk-OODIKHYE.js";
8
8
  import {
9
9
  useAccount,
10
10
  useConfig
11
- } from "./chunk-RI3XDJDQ.js";
11
+ } from "./chunk-2W2P3OS6.js";
12
12
  import {
13
13
  i18n_default
14
14
  } from "./chunk-27VBRE7W.js";
@@ -8,10 +8,23 @@ interface FunNotificationProps {
8
8
  testId?: string;
9
9
  }
10
10
  export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint' | 'warningAlert';
11
- export interface ErrorNotification {
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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type BrokerageOption } from '../../consts/bluvo';
3
+ export declare function ExchangeIconCluster({ options, }: {
4
+ options: BrokerageOption[];
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type BrokerageOption } from '../../consts/bluvo';
3
+ export declare function SourceExchangeIcon({ option }: {
4
+ option: BrokerageOption;
5
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function TransferCryptoChainIcons(): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SourceBinanceIcon: ({ size, label, }: {
3
+ size?: number;
4
+ label?: string;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SourceCoinbaseIcon: ({ size, label, }: {
3
+ size?: number;
4
+ label?: string;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SourceGeminiIcon: ({ size, label, }: {
3
+ size?: number;
4
+ label?: string;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SourceKrakenIcon: ({ size, label, }: {
3
+ size?: number;
4
+ label?: string;
5
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
- /** Positive spaces icons apart; negative overlaps them. */
1
+ export declare const iconSizeVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2
2
  export declare const iconSpacingVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
3
  export declare const iconCluster: string;
4
+ export declare const iconClusterItem: string;
@@ -1,16 +1,16 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  export declare const CLUSTER_ICON_SIZE = 16;
3
+ export declare const MAX_VISIBLE_CLUSTER_ICONS = 4;
3
4
  interface IconClusterProps {
4
5
  children: ReactNode;
5
- /** Icons only — a trailing {@link MoreIconsIndicator} must not be counted. */
6
+ /** Visible icons only; excludes the trailing more badge. */
6
7
  iconCount: number;
7
8
  iconSize?: number;
8
9
  style?: React.CSSProperties;
9
10
  }
10
11
  /**
11
12
  * Row of round icons used as the trailing `valueIcon` on payment-method rows.
12
- * Children render as-is, so a caller that truncates its list can close the
13
- * cluster with {@link MoreIconsIndicator}.
13
+ * Callers can close a truncated list with {@link MoreIconsIndicator}.
14
14
  */
15
15
  export declare function IconCluster({ children, iconCount, iconSize, style, }: IconClusterProps): React.JSX.Element;
16
16
  /** Trailing "+" badge standing in for the icons that didn't fit. */
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface SupportedChainListProps {
3
3
  chainIdList: string[];
4
+ showMore?: boolean;
4
5
  iconSize?: number;
5
6
  style?: React.CSSProperties;
6
7
  }
@@ -8,5 +9,5 @@ interface SupportedChainListProps {
8
9
  * Cluster of round chain icons, used as the trailing `valueIcon` on
9
10
  * payment-method rows to convey supported chains at a glance.
10
11
  */
11
- export declare function SupportedChainList({ chainIdList, iconSize, style, }: SupportedChainListProps): React.JSX.Element;
12
+ export declare function SupportedChainList({ chainIdList, showMore, iconSize, style, }: SupportedChainListProps): React.JSX.Element;
12
13
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { TFunction } from 'i18next';
2
- import type { ReactNode } from 'react';
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: ReactNode;
18
+ display: ErrorNotification;
19
19
  };
20
20
  1: {
21
21
  check: string;
22
- display: ReactNode;
22
+ display: ErrorNotification;
23
23
  };
24
24
  6: {
25
25
  check: string;
26
- display: string;
26
+ display: DisplayedError;
27
27
  };
28
28
  2: {
29
29
  check: string;
30
- display: string;
30
+ display: DisplayedError;
31
31
  };
32
32
  3: {
33
33
  check: string;
34
- display: string;
34
+ display: DisplayedError;
35
35
  };
36
36
  4: {
37
37
  check: string;
38
- display: string;
38
+ display: DisplayedError;
39
39
  };
40
40
  5: {
41
41
  check: string;
42
- display: string;
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: string;
54
+ display: DisplayedError;
55
55
  };
56
56
  1: {
57
57
  check: string;
58
- display: string;
58
+ display: DisplayedError;
59
59
  };
60
60
  2: {
61
61
  check: string;
62
- display: string;
62
+ display: DisplayedError;
63
63
  };
64
64
  3: {
65
65
  check: string;
66
- display: string;
66
+ display: DisplayedError;
67
67
  };
68
68
  };
69
- export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): ReactNode;
69
+ export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): DisplayedError;
@@ -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 interface CheckoutConfirmationError extends ErrorNotification {
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",
@@ -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 { ReactNode } from 'react';
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, ReactNode>>;
59
- export declare function getRelayQuoteErrorDisplayMessage(error: RelayQuoteError, t: TFunction, fallback: ReactNode): ReactNode;
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,8 @@ 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",
31
+ MODAL_CLOSED = "fc_modal_closed",
29
32
  MODAL_OPENED = "fc_modal_opened",
30
33
  STEP_VIEWED = "fc_step_viewed",
31
34
  TAB_SWITCHED = "fc_tab_switched",
@@ -43,6 +46,8 @@ export type ConnectionStatus = 'new' | 'existing';
43
46
  export type AnalyticsFlow = 'deposit' | 'withdraw';
44
47
  export type AnalyticsPaymentRail = 'bluvo' | 'swapped' | 'meld' | 'bridge';
45
48
  export type AnalyticsStep = Lowercase<FunCheckoutStep | WithdrawalModalStep>;
49
+ export type ModalClosedAction = 'close' | 'new_deposit' | 'new_withdrawal';
50
+ export type ModalCompletionState = 'completed' | 'not_completed' | 'undetected';
46
51
  /** Envelope carried by every analytics-v2 event. */
47
52
  export type CommonProperties = {
48
53
  /**
@@ -77,6 +82,11 @@ export type ErrorProperties = {
77
82
  error_code: string | null;
78
83
  error_message: string | null;
79
84
  };
85
+ export type ErrorShownProperties = ErrorProperties & {
86
+ flow: AnalyticsFlow;
87
+ notification_type: FunNotificationType;
88
+ step: AnalyticsStep;
89
+ };
80
90
  /** Payload specific to brokerage account connection lifecycle events. */
81
91
  export type AccountConnectProperties = PaymentMethodProperties;
82
92
  export type AccountConnectFailedProperties = AccountConnectProperties & ErrorProperties;
@@ -148,8 +158,10 @@ export type VisibleQuoteFeeProperties = {
148
158
  max_slippage_pct: number | null;
149
159
  moonpay_cost_usd: number | null;
150
160
  network_cost_usd: number | null;
161
+ /** Total impact shown to the user; quote-backed values include app fees. */
151
162
  price_impact_pct: number | null;
152
163
  source_chain_gas_usd: number | null;
164
+ /** Quote provider's swap-only component; null without compatible quote metadata. */
153
165
  swap_impact_pct: number | null;
154
166
  wallet_gas_cost_usd: number | null;
155
167
  };
@@ -229,6 +241,13 @@ export type ModalOpenedProperties = {
229
241
  target_chain: string | null;
230
242
  wallet_count: number;
231
243
  };
244
+ /** Payload emitted when the user exits the current modal flow. */
245
+ export type ModalClosedProperties = {
246
+ action: ModalClosedAction;
247
+ completion_state: ModalCompletionState;
248
+ flow: AnalyticsFlow;
249
+ step: AnalyticsStep;
250
+ };
232
251
  /** Payload specific to {@link AnalyticsEvent.TAB_SWITCHED}. */
233
252
  export type TabSwitchedProperties = {
234
253
  flow: AnalyticsFlow;
@@ -256,13 +275,12 @@ export type StepViewedProperties = {
256
275
  step_index: number;
257
276
  };
258
277
  export type DepositTransferInteractionAction = 'address_copied' | 'chain_changed' | 'token_changed';
259
- export type DepositTransferInteractedProperties = {
278
+ export type DepositTransferInteractedProperties = PaymentMethodProperties & {
260
279
  action: DepositTransferInteractionAction;
261
280
  deposit_address: string;
262
281
  est_price_impact: number | null;
263
282
  interaction_count: number;
264
283
  min_amount_usd: number;
265
- payment_method: 'transfer_crypto';
266
284
  prev_source_asset: string | null;
267
285
  prev_source_asset_ticker: string | null;
268
286
  prev_source_chain: string | null;
@@ -338,6 +356,8 @@ export type AnalyticsEventProperties = {
338
356
  [AnalyticsEvent.DEPOSIT_TRANSFER_INTERACTED]: DepositTransferInteractedProperties;
339
357
  [AnalyticsEvent.DEPOSIT_TRANSACTION_BREAKDOWN_CLICKED]: TransactionBreakdownClickedProperties;
340
358
  [AnalyticsEvent.DEPOSIT_TRANSACTION_SUBMITTED]: TransactionSubmittedProperties;
359
+ [AnalyticsEvent.ERROR_SHOWN]: ErrorShownProperties;
360
+ [AnalyticsEvent.MODAL_CLOSED]: ModalClosedProperties;
341
361
  [AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
342
362
  [AnalyticsEvent.STEP_VIEWED]: StepViewedProperties;
343
363
  [AnalyticsEvent.TAB_SWITCHED]: TabSwitchedProperties;
@@ -0,0 +1,10 @@
1
+ /** Keep every target shown because source changes and invoice refreshes can replace it. */
2
+ export declare function registerQrPaymentTarget(checkoutId: string, paymentTarget: string): void;
3
+ /** Mark only notifications correlated to a target shown by this QR session. */
4
+ export declare function markQrNotificationObserved(checkoutId: string, notificationPaymentTarget: string | null, notificationCreatedAtMs: number): boolean;
5
+ /**
6
+ * Returns whether the modal observed a QR notification and clears the record.
7
+ * Call this only for a terminal modal close; soft-hides must preserve it so the
8
+ * same checkout can resume without losing the observation.
9
+ */
10
+ export declare function consumeQrNotificationObserved(checkoutId: string): boolean;
@@ -89,6 +89,10 @@ export declare function useDepositAnalytics(): {
89
89
  trackDepositMethodSelected: (args: TrackDepositMethodSelectedArgs) => void;
90
90
  trackDepositQuoteConfirmed: (args: TrackDepositQuoteSnapshotArgs) => void;
91
91
  trackDepositQuoteDisplayed: (args: TrackDepositQuoteSnapshotArgs) => void;
92
+ trackDepositTransferBreakdownClicked: ({ maxSlippagePct, priceImpactPct, }: {
93
+ maxSlippagePct: number | undefined;
94
+ priceImpactPct: number | undefined;
95
+ }) => void;
92
96
  trackDepositTransferInteracted: (args: TrackDepositTransferInteractedArgs) => void;
93
97
  trackExchangeConnectCompleted: (provider: string) => void;
94
98
  trackExchangeConnectFailed: (args: TrackExchangeConnectFailedArgs) => void;
@@ -0,0 +1,12 @@
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
+ import { type AnalyticsFlow } from './events';
5
+ type TrackErrorShownArgs = {
6
+ error: ErrorNotification | null;
7
+ flow: AnalyticsFlow;
8
+ step: FunCheckoutStep | WithdrawalModalStep;
9
+ };
10
+ /** Emits once for each continuous episode in which an error is displayed. */
11
+ export declare function useTrackErrorShown({ error, flow, step }: TrackErrorShownArgs): void;
12
+ export {};
@@ -1,7 +1,7 @@
1
1
  export declare function useCheckoutQuoteNotification(): {
2
2
  quoteNotification: {
3
3
  readonly messageType: "error";
4
- readonly quoteMessage: string | number | bigint | true | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
4
+ readonly quoteMessage: import("react").ReactNode;
5
5
  } | {
6
6
  readonly messageType: "step";
7
7
  readonly quoteMessage: string;