@funkit/connect 12.1.0 → 12.3.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 (178) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/clients/{chunk-UPZNKPYU.js → chunk-2W2P3OS6.js} +2 -1
  3. package/dist/clients/{chunk-3U55HYGJ.js → chunk-CE42WHAA.js} +1 -0
  4. package/dist/clients/fanatics.js +1 -1
  5. package/dist/clients/internal/nado/withdrawalForm.css +15 -0
  6. package/dist/clients/internal/nado/withdrawalForm.js +4 -3
  7. package/dist/clients/internal/nado/withdrawalStatus.js +1 -1
  8. package/dist/clients/lighter.css +15 -0
  9. package/dist/clients/lighter.js +151 -51
  10. package/dist/clients/mallard.js +1 -1
  11. package/dist/clients/nado.js +1 -1
  12. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  13. package/dist/components/FunPayments/ExchangeIconCluster.d.ts +5 -0
  14. package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -5
  15. package/dist/components/FunPayments/SourceExchangeIcon.d.ts +5 -0
  16. package/dist/components/FunPayments/TransferCryptoChainIcons.d.ts +2 -0
  17. package/dist/components/FunPayments/icons/binance.d.ts +5 -0
  18. package/dist/components/FunPayments/icons/coinbase.d.ts +5 -0
  19. package/dist/components/FunPayments/icons/gemini.d.ts +5 -0
  20. package/dist/components/FunPayments/icons/kraken.d.ts +5 -0
  21. package/dist/components/IconCluster/IconCluster.css.d.ts +4 -0
  22. package/dist/components/IconCluster/IconCluster.d.ts +20 -0
  23. package/dist/components/SupportedChainList/SupportedChainList.d.ts +13 -0
  24. package/dist/consts/funkit.d.ts +7 -0
  25. package/dist/domains/asset.d.ts +3 -2
  26. package/dist/domains/checkout.d.ts +6 -3
  27. package/dist/domains/checkoutRecipient.d.ts +21 -3
  28. package/dist/domains/quote.d.ts +7 -8
  29. package/dist/hooks/track/analytics/events.d.ts +16 -2
  30. package/dist/hooks/track/analytics/qrNotificationObservation.d.ts +10 -0
  31. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +4 -0
  32. package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
  33. package/dist/hooks/useIsBlacklisted.d.ts +2 -2
  34. package/dist/hooks/usePaymentSources.d.ts +1 -1
  35. package/dist/hooks/useWalletAssets.d.ts +1 -1
  36. package/dist/index.css +15 -0
  37. package/dist/index.d.ts +3 -0
  38. package/dist/index.js +4230 -3296
  39. package/dist/interfaces/solanaWallet.d.ts +46 -0
  40. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -1
  41. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +3 -1
  42. package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +6 -2
  43. package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +5 -2
  44. package/dist/providers/FunkitProvider.d.ts +15 -1
  45. package/dist/providers/GeneralWalletProvider.d.ts +15 -7
  46. package/dist/providers/SolanaWalletProvider.d.ts +28 -0
  47. package/dist/shadow-css.js +1 -1
  48. package/dist/utils/userInfo.d.ts +22 -14
  49. package/dist/wagmi/hooks.d.ts +3 -3
  50. package/dist/wallets/Wallet.d.ts +1 -0
  51. package/dist/wallets/pickConnectionChainId.d.ts +12 -0
  52. package/dist/wallets/useAdoptionConnectionGuard.d.ts +17 -0
  53. package/dist/wallets/useWalletAdoption.d.ts +27 -0
  54. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +3 -3
  55. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +4 -4
  56. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +4 -4
  57. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +3 -3
  58. package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.js +3 -3
  59. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +3 -3
  60. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +3 -3
  61. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +4 -4
  62. package/dist/wallets/walletConnectors/{chunk-2CX7LX4J.js → chunk-2TAUCVX7.js} +1 -1
  63. package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-34B7OJNT.js} +4 -4
  64. package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-4FHNLTR3.js} +4 -4
  65. package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-53MYTA42.js} +2 -2
  66. package/dist/wallets/walletConnectors/{chunk-NSK6A7TI.js → chunk-5AEWIKRA.js} +1 -1
  67. package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-65ULY6OC.js} +2 -2
  68. package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-A5POD5SV.js} +2 -2
  69. package/dist/wallets/walletConnectors/{chunk-N4IJLYFY.js → chunk-AALSJCUR.js} +1 -1
  70. package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-ALGPGI6V.js} +4 -4
  71. package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-ANODOMIN.js} +2 -2
  72. package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-ASTCNVJC.js} +2 -2
  73. package/dist/wallets/walletConnectors/{chunk-IGKXZBTA.js → chunk-B454LLKJ.js} +2 -1
  74. package/dist/wallets/walletConnectors/{chunk-BU3ZAT5X.js → chunk-B572YIAQ.js} +1 -1
  75. package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-BBB2J3US.js} +4 -4
  76. package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-BBDNB5TQ.js} +4 -4
  77. package/dist/wallets/walletConnectors/{chunk-RPV27V2Y.js → chunk-BL4OC2EJ.js} +1 -1
  78. package/dist/wallets/walletConnectors/chunk-CU5J53XR.js +94 -0
  79. package/dist/wallets/walletConnectors/{chunk-FW3WZETT.js → chunk-DFHP75HV.js} +1 -1
  80. package/dist/wallets/walletConnectors/{chunk-MQM45ADF.js → chunk-DSPQXAB2.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-3FCWJRI4.js → chunk-DUX4XCDV.js} +1 -1
  82. package/dist/wallets/walletConnectors/{chunk-OLZ7626J.js → chunk-EYWGX5LT.js} +1 -1
  83. package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-F45CUFRR.js} +2 -2
  84. package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-FYPQ3HP4.js} +2 -2
  85. package/dist/wallets/walletConnectors/{chunk-QG6ZHI7B.js → chunk-GFS2AVAH.js} +1 -1
  86. package/dist/wallets/walletConnectors/{chunk-52QXXLDS.js → chunk-GLX5FULK.js} +1 -1
  87. package/dist/wallets/walletConnectors/{chunk-OQB55QXP.js → chunk-GPXIBTWN.js} +1 -1
  88. package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-HOCKAU5H.js} +4 -4
  89. package/dist/wallets/walletConnectors/{chunk-JN5I3DNC.js → chunk-HXX4PRE2.js} +1 -1
  90. package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-IA5432IR.js} +4 -4
  91. package/dist/wallets/walletConnectors/{chunk-4DCO3TGL.js → chunk-IAYYWCVB.js} +1 -1
  92. package/dist/wallets/walletConnectors/{chunk-RCY66YHF.js → chunk-IR3PJMVM.js} +1 -1
  93. package/dist/wallets/walletConnectors/chunk-IWOMSW64.js +96 -0
  94. package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +98 -0
  95. package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +87 -0
  96. package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-KE4CWI3A.js} +2 -2
  97. package/dist/wallets/walletConnectors/{chunk-WVT6BBJH.js → chunk-KN32ITJ7.js} +1 -1
  98. package/dist/wallets/walletConnectors/{chunk-G2PHTVL6.js → chunk-LV6YV3DE.js} +1 -1
  99. package/dist/wallets/walletConnectors/{chunk-T6LGKC3F.js → chunk-M75V7OL3.js} +1 -1
  100. package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +110 -0
  101. package/dist/wallets/walletConnectors/{chunk-7HRFUZFX.js → chunk-NPITCCJE.js} +1 -1
  102. package/dist/wallets/walletConnectors/chunk-NXWG6FG2.js +93 -0
  103. package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +100 -0
  104. package/dist/wallets/walletConnectors/{chunk-PJ7Y57EH.js → chunk-PNHDOC77.js} +1 -1
  105. package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-PPQ6L4K2.js} +2 -2
  106. package/dist/wallets/walletConnectors/{chunk-QY53O7WG.js → chunk-Q27YVDDH.js} +1 -1
  107. package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-RFCZYLNR.js} +4 -4
  108. package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +92 -0
  109. package/dist/wallets/walletConnectors/{chunk-RB66PKPA.js → chunk-RQ2GXOJL.js} +1 -1
  110. package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +96 -0
  111. package/dist/wallets/walletConnectors/chunk-RXRYHMRI.js +218 -0
  112. package/dist/wallets/walletConnectors/{chunk-2DLDAZRH.js → chunk-SM2A3OSG.js} +1 -1
  113. package/dist/wallets/walletConnectors/chunk-SR5CZR3L.js +106 -0
  114. package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-TIHTQ3OB.js} +2 -2
  115. package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +69 -0
  116. package/dist/wallets/walletConnectors/{chunk-VH3THHJY.js → chunk-TPM5PUJD.js} +1 -1
  117. package/dist/wallets/walletConnectors/chunk-TRZDAXCQ.js +95 -0
  118. package/dist/wallets/walletConnectors/{chunk-DS73TZ6O.js → chunk-U2XXV45G.js} +1 -1
  119. package/dist/wallets/walletConnectors/chunk-U52QO5HF.js +66 -0
  120. package/dist/wallets/walletConnectors/{chunk-7ZYCBDQ4.js → chunk-U74RFZOL.js} +1 -1
  121. package/dist/wallets/walletConnectors/{chunk-76S7R2ND.js → chunk-UN3ONVNC.js} +1 -1
  122. package/dist/wallets/walletConnectors/{chunk-Z3PPW6NC.js → chunk-UNDWHCDH.js} +1 -1
  123. package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +99 -0
  124. package/dist/wallets/walletConnectors/{chunk-YWOVAU6O.js → chunk-V4M3SNPS.js} +1 -1
  125. package/dist/wallets/walletConnectors/{chunk-RICTB3FA.js → chunk-V77ATGZT.js} +1 -1
  126. package/dist/wallets/walletConnectors/chunk-VKM5M5UK.js +49 -0
  127. package/dist/wallets/walletConnectors/chunk-XODA5ESL.js +103 -0
  128. package/dist/wallets/walletConnectors/{chunk-NTMBEOR2.js → chunk-XSDTNMQY.js} +1 -1
  129. package/dist/wallets/walletConnectors/chunk-YRMBR6NA.js +92 -0
  130. package/dist/wallets/walletConnectors/{chunk-WNAGGFMG.js → chunk-YY2JA23M.js} +1 -1
  131. package/dist/wallets/walletConnectors/{chunk-HBQK5RD5.js → chunk-Z6LDN2AN.js} +1 -1
  132. package/dist/wallets/walletConnectors/chunk-ZSSSLFQF.js +70 -0
  133. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +4 -4
  134. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +4 -4
  135. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
  136. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +4 -4
  137. package/dist/wallets/walletConnectors/customWallet/customWallet.d.ts +32 -0
  138. package/dist/wallets/walletConnectors/customWallet/customWallet.js +9 -0
  139. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +3 -3
  140. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +3 -3
  141. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +3 -3
  142. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +4 -4
  143. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +3 -3
  144. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +4 -4
  145. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +4 -4
  146. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +3 -3
  147. package/dist/wallets/walletConnectors/index.d.ts +2 -1
  148. package/dist/wallets/walletConnectors/index.js +82 -78
  149. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +3 -3
  150. package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.js +3 -3
  151. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +3 -3
  152. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +4 -4
  153. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +3 -3
  154. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +3 -3
  155. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +4 -4
  156. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +3 -3
  157. package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.js +3 -3
  158. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +3 -3
  159. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +3 -3
  160. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +3 -3
  161. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +4 -4
  162. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +3 -3
  163. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +4 -4
  164. package/dist/wallets/walletConnectors/safeWallet/safeWallet.js +2 -2
  165. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +3 -3
  166. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +4 -4
  167. package/dist/wallets/walletConnectors/subWallet/subWallet.js +4 -4
  168. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +3 -3
  169. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +3 -3
  170. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +4 -4
  171. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +3 -3
  172. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +4 -4
  173. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +3 -3
  174. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +3 -3
  175. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +3 -3
  176. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +3 -3
  177. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +4 -4
  178. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 50ce75a: Show Solana balances in the wallet asset list when `solanaWallet` is set; they aren't selectable as a source yet.
8
+ - f2d1fb9: Open the Swapped fiat on-ramp with a prefilled default amount.
9
+ - cd002d5: Allow host applications to list and automatically connect a wallet they already hold.
10
+
11
+ ### Patch Changes
12
+
13
+ - 6fc0be5: Use transparent separators and four-icon previews for supported chains and exchanges.
14
+ - 429f583: Align Source Change icons and chain previews with the design, spacing small groups apart and overlapping larger groups without masking artwork.
15
+ - f787a1f: Track modal closed actions
16
+ - f0f8dea: Track Transfer Crypto breakdown clicked
17
+ - Updated dependencies [0dd9bb6]
18
+ - Updated dependencies [d759c2e]
19
+ - Updated dependencies [e3fc541]
20
+ - Updated dependencies [053d65f]
21
+ - Updated dependencies [d6878c0]
22
+ - Updated dependencies [19abab6]
23
+ - Updated dependencies [91fa0ce]
24
+ - Updated dependencies [91fa0ce]
25
+ - Updated dependencies [f2d1fb9]
26
+ - Updated dependencies [f2d1fb9]
27
+ - @funkit/api-base@8.1.0
28
+ - @funkit/connect-core@6.0.0
29
+
30
+ ## 12.2.0
31
+
32
+ ### Minor Changes
33
+
34
+ - 1c2e492: Add a `solanaWallet` prop to `FunkitProvider` for a host-connected Solana wallet; not yet wired to a deposit flow.
35
+ - 25ae016: Add a `solanaWalletOnly` prop to `FunkitProvider` so hosts without an EVM wallet stack don't need to supply a wagmi config.
36
+
37
+ ### Patch Changes
38
+
39
+ - 5ae3952: Payment method rows now show up to six chain icons, overlapping them only past four, matching the Figma design.
40
+ - 005d0ca: Resolve the checkout payer and recipient from their own chain.
41
+ - 29d063e: Show the perps deposit toggle while a Polymarket perps checkout loads, matching the header tabs.
42
+ - 6bce845: Tighten vertical spacing around the Polymarket perps transfer amount input.
43
+ - 2dd0720: Remove the unreachable legacy quote fallback from checkout quoting.
44
+ - 6048500: Tag analytics events with the SDK platform they originated from.
45
+ - 8cf0d10: Fix the cashier Withdraw button staying disabled for the initially selected receive chain until the user switched chains and back.
46
+ - Updated dependencies [005d0ca]
47
+ - Updated dependencies [005d0ca]
48
+ - Updated dependencies [005d0ca]
49
+ - Updated dependencies [91fd04a]
50
+ - Updated dependencies [ad4f69c]
51
+ - Updated dependencies [3e35fc3]
52
+ - Updated dependencies [e4b413a]
53
+ - Updated dependencies [1c2e492]
54
+ - Updated dependencies [df228c4]
55
+ - Updated dependencies [05a0fed]
56
+ - Updated dependencies [641d2a1]
57
+ - Updated dependencies [76848d7]
58
+ - Updated dependencies [2dd0720]
59
+ - Updated dependencies [a8cf4cd]
60
+ - @funkit/api-base@8.0.0
61
+ - @funkit/chains@2.3.0
62
+ - @funkit/connect-core@5.0.0
63
+ - @funkit/fun-relay@2.15.0
64
+
3
65
  ## 12.1.0
4
66
 
5
67
  ### 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,
@@ -18,7 +19,7 @@ import {
18
19
  useWatchAsset,
19
20
  useWriteContract
20
21
  } from "wagmi";
21
- import { WagmiProvider } from "wagmi";
22
+ import { WagmiContext, WagmiProvider } from "wagmi";
22
23
  import { createConfig, createConnector, http } from "wagmi";
23
24
 
24
25
  export {
@@ -6,6 +6,7 @@ var FUN_BRAND_NAME = "Fun";
6
6
  var PLACEHOLDER_FUNKIT_USER_INFO = {
7
7
  id: "0x",
8
8
  address: "0x",
9
+ solanaAddress: void 0,
9
10
  name: "Guest",
10
11
  nameTruncated: "Guest",
11
12
  type: "unknown",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  FUN_BRAND_NAME
4
- } from "./chunk-3U55HYGJ.js";
4
+ } from "./chunk-CE42WHAA.js";
5
5
  import {
6
6
  AsyncImage,
7
7
  Box,
@@ -16810,6 +16810,21 @@
16810
16810
  border-top-width: 0;
16811
16811
  }
16812
16812
 
16813
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MiB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkzIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtc2hyaW5rOiAwOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQouXzFpM3lpNnkzICsgLl8xaTN5aTZ5MyB7CiAgbWFyZ2luLWxlZnQ6IHZhcigtLV8xaTN5aTZ5MSk7Cn0 */
16814
+ [data-rk] ._1i3yi6y2 {
16815
+ display: flex;
16816
+ align-items: center;
16817
+ isolation: isolate;
16818
+ }
16819
+ [data-rk] ._1i3yi6y3 {
16820
+ display: flex;
16821
+ flex-shrink: 0;
16822
+ position: relative;
16823
+ }
16824
+ [data-rk] ._1i3yi6y3 + ._1i3yi6y3 {
16825
+ margin-left: var(--_1i3yi6y1);
16826
+ }
16827
+
16813
16828
  /* vanilla-extract-css-ns:src/components/FunCheckoutHistory/AddTokenToWalletButton.css.ts.vanilla.css?source=Ll8xc3R1dWtyMCB7CiAgYmFja2dyb3VuZDogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7CiAgYmFja2dyb3VuZDogY29sb3ItbWl4KGluIHNyZ2IsIHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpIDcwJSwgdHJhbnNwYXJlbnQpOwp9Ci5fMXN0dXVrcjA6aG92ZXIgewogIGJhY2tncm91bmQ6IHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpOwogIGJhY2tncm91bmQ6IGNvbG9yLW1peChpbiBzcmdiLCB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKSA5MCUsIHRyYW5zcGFyZW50KTsKfQ */
16814
16829
  [data-rk] ._1stuukr0 {
16815
16830
  background: var(--rk-colors-modalBackground);
@@ -4,7 +4,7 @@ import {
4
4
  } from "../../chunk-WCQ6HJ27.js";
5
5
  import {
6
6
  PLACEHOLDER_FUNKIT_USER_INFO
7
- } from "../../chunk-3U55HYGJ.js";
7
+ } from "../../chunk-CE42WHAA.js";
8
8
  import "../../chunk-6EU6CXNH.js";
9
9
  import {
10
10
  useFunkitConfig
@@ -13,7 +13,7 @@ import {
13
13
  useFunkitTranslation
14
14
  } from "../../chunk-A5JW3UI6.js";
15
15
  import "../../chunk-B7UU2ETA.js";
16
- import "../../chunk-UPZNKPYU.js";
16
+ import "../../chunk-2W2P3OS6.js";
17
17
  import "../../chunk-27VBRE7W.js";
18
18
  import {
19
19
  logger
@@ -55,12 +55,13 @@ import React, {
55
55
  } from "react";
56
56
  var GeneralWalletContext = createContext({
57
57
  walletAddress: "",
58
+ payerWallets: { walletAddress: "", solanaWalletAddress: void 0 },
58
59
  isUserLoggedIn: false,
59
60
  loginType: "guest" /* Guest */,
60
61
  connectorId: void 0,
61
62
  userInfo: PLACEHOLDER_FUNKIT_USER_INFO,
62
63
  l2Address: void 0,
63
- handleLogout: () => void 0,
64
+ handleLogout: async () => void 0,
64
65
  logoutSymbol: void 0
65
66
  });
66
67
  var useGeneralWallet = () => {
@@ -5,7 +5,7 @@ import {
5
5
  import "../../chunk-A5JW3UI6.js";
6
6
  import {
7
7
  useAccount
8
- } from "../../chunk-UPZNKPYU.js";
8
+ } from "../../chunk-2W2P3OS6.js";
9
9
  import "../../chunk-27VBRE7W.js";
10
10
  import {
11
11
  logger
@@ -14701,6 +14701,21 @@
14701
14701
  }
14702
14702
  }
14703
14703
 
14704
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MiB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkzIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtc2hyaW5rOiAwOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQouXzFpM3lpNnkzICsgLl8xaTN5aTZ5MyB7CiAgbWFyZ2luLWxlZnQ6IHZhcigtLV8xaTN5aTZ5MSk7Cn0 */
14705
+ [data-rk] ._1i3yi6y2 {
14706
+ display: flex;
14707
+ align-items: center;
14708
+ isolation: isolate;
14709
+ }
14710
+ [data-rk] ._1i3yi6y3 {
14711
+ display: flex;
14712
+ flex-shrink: 0;
14713
+ position: relative;
14714
+ }
14715
+ [data-rk] ._1i3yi6y3 + ._1i3yi6y3 {
14716
+ margin-left: var(--_1i3yi6y1);
14717
+ }
14718
+
14704
14719
  /* vanilla-extract-css-ns:src/components/Icons/Icons.css.ts.vanilla.css?source=QGtleWZyYW1lcyBxZTIyMWEwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICB9CiAgMTAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIHFlMjIxYTEgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9Ci5xZTIyMWEyIHsKICBhbmltYXRpb246IHFlMjIxYTAgMC44cyBsaW5lYXIgaW5maW5pdGU7Cn0KLnFlMjIxYTMgewogIGFuaW1hdGlvbjogcWUyMjFhMCAzMDAwbXMgbGluZWFyIGluZmluaXRlOwp9Ci5xZTIyMWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgYm9yZGVyLXJhZGl1czogNTAlOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBhbmltYXRpb246IHFlMjIxYTEgMC44cyBsaW5lYXIgaW5maW5pdGU7CiAgYXNwZWN0LXJhdGlvOiAxIC8gMTsKfQoucWUyMjFhNSB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHRvcDogNTAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0 */
14705
14720
  @keyframes qe221a0 {
14706
14721
  0% {
@@ -15,7 +15,7 @@ import {
15
15
  useFunkitTranslation
16
16
  } from "./chunk-A5JW3UI6.js";
17
17
  import "./chunk-OODIKHYE.js";
18
- import "./chunk-UPZNKPYU.js";
18
+ import "./chunk-2W2P3OS6.js";
19
19
  import "./chunk-27VBRE7W.js";
20
20
  import {
21
21
  logger
@@ -26,25 +26,41 @@ import { LIGHTERXYZ_API_KEY } from "@funkit/api-base";
26
26
  import { SOLANA_MAINNET_CHAIN_ID } from "@funkit/chains";
27
27
  import { RELAY_LIGHTER_CHAIN_ID as RELAY_LIGHTER_CHAIN_ID2 } from "@funkit/fun-relay";
28
28
  import i18next from "i18next";
29
- import React5, { useMemo as useMemo3 } from "react";
29
+ import React7, { useMemo as useMemo3 } from "react";
30
30
  import { arbitrum, base, bsc, mainnet as mainnet2, optimism } from "viem/chains";
31
31
 
32
- // src/components/ChainIcon/ChainIcon.tsx
33
- import React2 from "react";
32
+ // src/components/Icons/EvmWallet.tsx
33
+ import React from "react";
34
+ var EvmWallet = ({ size = 20 }) => /* @__PURE__ */ React.createElement(
35
+ "svg",
36
+ {
37
+ width: size,
38
+ height: size,
39
+ viewBox: "0 0 20 20",
40
+ fill: "none",
41
+ xmlns: "http://www.w3.org/2000/svg"
42
+ },
43
+ /* @__PURE__ */ React.createElement(
44
+ "path",
45
+ {
46
+ d: "M13.3333 6.66628V3.75016C13.3333 3.05704 13.3333 2.71048 13.1873 2.49751C13.0598 2.31143 12.8622 2.18503 12.6398 2.14718C12.3852 2.10386 12.0706 2.24909 11.4413 2.53955L4.04918 5.95127C3.48792 6.21031 3.20729 6.33984 3.00175 6.54071C2.82005 6.71829 2.68135 6.93507 2.59625 7.17447C2.5 7.44527 2.5 7.75435 2.5 8.3725V12.4996M13.75 12.0829H13.7583M2.5 9.33295L2.5 14.8329C2.5 15.7664 2.5 16.2331 2.68166 16.5896C2.84144 16.9032 3.09641 17.1582 3.41002 17.318C3.76654 17.4996 4.23325 17.4996 5.16667 17.4996H14.8333C15.7668 17.4996 16.2335 17.4996 16.59 17.318C16.9036 17.1582 17.1586 16.9032 17.3183 16.5896C17.5 16.2331 17.5 15.7664 17.5 14.8329V9.33295C17.5 8.39953 17.5 7.93282 17.3183 7.5763C17.1586 7.26269 16.9036 7.00773 16.59 6.84794C16.2335 6.66628 15.7668 6.66628 14.8333 6.66628L5.16667 6.66628C4.23325 6.66628 3.76654 6.66628 3.41002 6.84793C3.09641 7.00772 2.84144 7.26269 2.68166 7.57629C2.5 7.93281 2.5 8.39952 2.5 9.33295ZM14.1667 12.0829C14.1667 12.3131 13.9801 12.4996 13.75 12.4996C13.5199 12.4996 13.3333 12.3131 13.3333 12.0829C13.3333 11.8528 13.5199 11.6663 13.75 11.6663C13.9801 11.6663 14.1667 11.8528 14.1667 12.0829Z",
47
+ stroke: "currentColor",
48
+ strokeWidth: "1.5",
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round"
51
+ }
52
+ )
53
+ );
34
54
 
35
- // src/consts/assets.ts
36
- import {
37
- ASSET_LOGO_SRCS,
38
- FALLBACK_ASSET,
39
- getAssetLogoSrc
40
- } from "@funkit/fun-relay";
55
+ // src/components/SupportedChainList/SupportedChainList.tsx
56
+ import React5 from "react";
41
57
 
42
58
  // src/hooks/useChainMetadata.ts
43
59
  import { getChainIconUrl } from "@funkit/connect-core";
44
60
  import { useCallback } from "react";
45
61
 
46
62
  // src/providers/FunkitConnectChainContext.tsx
47
- import React, {
63
+ import React2, {
48
64
  createContext,
49
65
  useContext,
50
66
  useMemo
@@ -116,6 +132,16 @@ function useChainMetadata() {
116
132
  );
117
133
  }
118
134
 
135
+ // src/components/ChainIcon/ChainIcon.tsx
136
+ import React3 from "react";
137
+
138
+ // src/consts/assets.ts
139
+ import {
140
+ ASSET_LOGO_SRCS,
141
+ FALLBACK_ASSET,
142
+ getAssetLogoSrc
143
+ } from "@funkit/fun-relay";
144
+
119
145
  // src/components/ChainIcon/ChainIcon.tsx
120
146
  function ChainIcon({
121
147
  chainId,
@@ -129,7 +155,7 @@ function ChainIcon({
129
155
  if (!chainMetadata) {
130
156
  return null;
131
157
  }
132
- return /* @__PURE__ */ React2.createElement(
158
+ return /* @__PURE__ */ React3.createElement(
133
159
  AsyncImage,
134
160
  {
135
161
  alt: chainMetadata.name,
@@ -145,28 +171,113 @@ function ChainIcon({
145
171
  );
146
172
  }
147
173
 
148
- // src/components/Icons/EvmWallet.tsx
149
- import React3 from "react";
150
- var EvmWallet = ({ size = 20 }) => /* @__PURE__ */ React3.createElement(
151
- "svg",
152
- {
153
- width: size,
154
- height: size,
155
- viewBox: "0 0 20 20",
156
- fill: "none",
157
- xmlns: "http://www.w3.org/2000/svg"
158
- },
159
- /* @__PURE__ */ React3.createElement(
160
- "path",
174
+ // src/components/IconCluster/IconCluster.tsx
175
+ import { assignInlineVars } from "@vanilla-extract/dynamic";
176
+ import React4, { Children } from "react";
177
+
178
+ // src/components/IconCluster/IconCluster.css.ts
179
+ var iconCluster = "_1i3yi6y2";
180
+ var iconClusterItem = "_1i3yi6y3";
181
+ var iconSizeVar = "var(--_1i3yi6y0)";
182
+ var iconSpacingVar = "var(--_1i3yi6y1)";
183
+
184
+ // src/components/IconCluster/IconCluster.tsx
185
+ var CLUSTER_ICON_SIZE = 16;
186
+ var PLUS_GLYPH_RATIO = 11 / 16;
187
+ function IconCluster({
188
+ children,
189
+ iconCount,
190
+ iconSize = CLUSTER_ICON_SIZE,
191
+ style
192
+ }) {
193
+ const items = Children.toArray(children);
194
+ return /* @__PURE__ */ React4.createElement(
195
+ Box,
161
196
  {
162
- d: "M13.3333 6.66628V3.75016C13.3333 3.05704 13.3333 2.71048 13.1873 2.49751C13.0598 2.31143 12.8622 2.18503 12.6398 2.14718C12.3852 2.10386 12.0706 2.24909 11.4413 2.53955L4.04918 5.95127C3.48792 6.21031 3.20729 6.33984 3.00175 6.54071C2.82005 6.71829 2.68135 6.93507 2.59625 7.17447C2.5 7.44527 2.5 7.75435 2.5 8.3725V12.4996M13.75 12.0829H13.7583M2.5 9.33295L2.5 14.8329C2.5 15.7664 2.5 16.2331 2.68166 16.5896C2.84144 16.9032 3.09641 17.1582 3.41002 17.318C3.76654 17.4996 4.23325 17.4996 5.16667 17.4996H14.8333C15.7668 17.4996 16.2335 17.4996 16.59 17.318C16.9036 17.1582 17.1586 16.9032 17.3183 16.5896C17.5 16.2331 17.5 15.7664 17.5 14.8329V9.33295C17.5 8.39953 17.5 7.93282 17.3183 7.5763C17.1586 7.26269 16.9036 7.00773 16.59 6.84794C16.2335 6.66628 15.7668 6.66628 14.8333 6.66628L5.16667 6.66628C4.23325 6.66628 3.76654 6.66628 3.41002 6.84793C3.09641 7.00772 2.84144 7.26269 2.68166 7.57629C2.5 7.93281 2.5 8.39952 2.5 9.33295ZM14.1667 12.0829C14.1667 12.3131 13.9801 12.4996 13.75 12.4996C13.5199 12.4996 13.3333 12.3131 13.3333 12.0829C13.3333 11.8528 13.5199 11.6663 13.75 11.6663C13.9801 11.6663 14.1667 11.8528 14.1667 12.0829Z",
163
- stroke: "currentColor",
164
- strokeWidth: "1.5",
165
- strokeLinecap: "round",
166
- strokeLinejoin: "round"
167
- }
168
- )
169
- );
197
+ className: iconCluster,
198
+ style: {
199
+ ...assignInlineVars({
200
+ [iconSizeVar]: `${iconSize}px`,
201
+ [iconSpacingVar]: iconCount < 5 ? "2px" : `${-iconSize * 3 / 16}px`
202
+ }),
203
+ ...style
204
+ }
205
+ },
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
+ ))
214
+ );
215
+ }
216
+ function MoreIconsIndicator({
217
+ size = CLUSTER_ICON_SIZE
218
+ }) {
219
+ const glyphSize = Math.round(size * PLUS_GLYPH_RATIO);
220
+ return /* @__PURE__ */ React4.createElement(
221
+ Box,
222
+ {
223
+ alignItems: "center",
224
+ background: "secondaryBackground",
225
+ borderRadius: "full",
226
+ color: "secondaryText",
227
+ display: "flex",
228
+ justifyContent: "center",
229
+ position: "relative",
230
+ style: { width: size, height: size },
231
+ testId: "more-icons-indicator"
232
+ },
233
+ /* @__PURE__ */ React4.createElement(
234
+ "svg",
235
+ {
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
+ )
253
+ );
254
+ }
255
+
256
+ // src/components/SupportedChainList/SupportedChainList.tsx
257
+ var MAX_VISIBLE_CHAINS = 6;
258
+ function SupportedChainList({
259
+ chainIdList,
260
+ showMore = false,
261
+ iconSize = CLUSTER_ICON_SIZE,
262
+ style
263
+ }) {
264
+ const getChainMetadata = useChainMetadata();
265
+ const resolvedChains = chainIdList.filter(
266
+ (chainId) => getChainMetadata(Number(chainId))
267
+ );
268
+ const visibleChains = resolvedChains.slice(0, MAX_VISIBLE_CHAINS);
269
+ const hasMore = resolvedChains.length > 0 && (showMore || resolvedChains.length > MAX_VISIBLE_CHAINS);
270
+ return /* @__PURE__ */ React5.createElement(
271
+ IconCluster,
272
+ {
273
+ iconCount: visibleChains.length,
274
+ iconSize,
275
+ style
276
+ },
277
+ visibleChains.map((chainId) => /* @__PURE__ */ React5.createElement(ChainIcon, { key: chainId, chainId: Number(chainId), size: iconSize })),
278
+ hasMore && /* @__PURE__ */ React5.createElement(MoreIconsIndicator, { size: iconSize })
279
+ );
280
+ }
170
281
 
171
282
  // src/clients/lighter.tsx
172
283
  import {
@@ -187,7 +298,7 @@ import {
187
298
  import { RELAY_LIGHTER_CHAIN_ID } from "@funkit/fun-relay";
188
299
  import { formatAddress, formatCryptoAndStringify } from "@funkit/utils";
189
300
  import { v4 as uuid } from "uuid";
190
- import React4, {
301
+ import React6, {
191
302
  useCallback as useCallback2,
192
303
  useEffect,
193
304
  useMemo as useMemo2,
@@ -441,25 +552,14 @@ function buildLighterFastWalletWithdrawalConfig({
441
552
  getMaxWithdrawalUSD: () => LIGHTER_FAST_MAX_WITHDRAWAL_USD2
442
553
  };
443
554
  }
444
- function ChainIconStack({ chainIds }) {
445
- return /* @__PURE__ */ React5.createElement(Box, { display: "flex", alignItems: "center", justifyContent: "flex-end" }, chainIds.map((chainId, index) => /* @__PURE__ */ React5.createElement(
446
- Box,
447
- {
448
- key: chainId,
449
- position: "relative",
450
- style: { right: `${(chainIds.length - index - 1) * -2}px` }
451
- },
452
- /* @__PURE__ */ React5.createElement(ChainIcon, { chainId, size: 16 })
453
- )));
454
- }
455
555
  var LIGHTER_FAST_PREVIEW_CHAIN_IDS = [
456
556
  arbitrum.id,
457
557
  base.id,
458
558
  optimism.id,
459
559
  bsc.id,
460
560
  SOLANA_MAINNET_CHAIN_ID
461
- ];
462
- var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [mainnet2.id];
561
+ ].map(String);
562
+ var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [mainnet2.id].map(String);
463
563
  function buildLighterMultiMethodConfig({
464
564
  config,
465
565
  accountIndex,
@@ -503,8 +603,8 @@ function buildLighterMultiMethodConfig({
503
603
  id: LIGHTER_FAST_METHOD_ID,
504
604
  keyText: t("withdrawal.methodFast"),
505
605
  subtitleText: isUnifiedTradingMode ? t("withdrawal.fastDisclaimerUnified") : t("withdrawal.fastDisclaimer"),
506
- icon: /* @__PURE__ */ React5.createElement(EvmWallet, { size: 20 }),
507
- valueIcon: /* @__PURE__ */ React5.createElement(ChainIconStack, { chainIds: LIGHTER_FAST_PREVIEW_CHAIN_IDS }),
606
+ icon: /* @__PURE__ */ React7.createElement(EvmWallet, { size: 20 }),
607
+ valueIcon: /* @__PURE__ */ React7.createElement(SupportedChainList, { chainIdList: LIGHTER_FAST_PREVIEW_CHAIN_IDS }),
508
608
  config: fastConfig
509
609
  };
510
610
  const secure = {
@@ -516,8 +616,8 @@ function buildLighterMultiMethodConfig({
516
616
  // so it doesn't bleed into live values, which are exact.
517
617
  delay: secureDelayText ?? t("withdrawal.secureFallbackDelay")
518
618
  }),
519
- icon: /* @__PURE__ */ React5.createElement(EvmWallet, { size: 20 }),
520
- valueIcon: /* @__PURE__ */ React5.createElement(ChainIconStack, { chainIds: LIGHTER_SECURE_PREVIEW_CHAIN_IDS }),
619
+ icon: /* @__PURE__ */ React7.createElement(EvmWallet, { size: 20 }),
620
+ valueIcon: /* @__PURE__ */ React7.createElement(SupportedChainList, { chainIdList: LIGHTER_SECURE_PREVIEW_CHAIN_IDS }),
521
621
  config: secureConfig
522
622
  };
523
623
  return {
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  useAccount,
15
15
  useConfig
16
- } from "./chunk-UPZNKPYU.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-UPZNKPYU.js";
11
+ } from "./chunk-2W2P3OS6.js";
12
12
  import {
13
13
  i18n_default
14
14
  } from "./chunk-27VBRE7W.js";
@@ -1 +1 @@
1
- export declare const funOptionBoxStyle: Record<"activeBackground" | "baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "borderedBackground" | "uninteractiveBackground", string>;
1
+ export declare const funOptionBoxStyle: Record<"baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "borderedBackground" | "activeBackground" | "uninteractiveBackground", string>;
@@ -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;
@@ -16,11 +16,6 @@ export declare const getDynamicValueIconComponent: () => React.JSX.Element;
16
16
  * to render after them rather than being silently dropped.
17
17
  */
18
18
  export declare function resolveConnectWalletChainOrder(configuredOrder: readonly (string | number)[]): string[];
19
- export declare function SupportedChainList({ chainIdList, iconSize, style, }: {
20
- chainIdList: string[];
21
- iconSize?: number;
22
- style?: React.CSSProperties;
23
- }): React.JSX.Element;
24
19
  export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
25
20
  paymentIcon: ReactNode;
26
21
  keyIconSize: number;
@@ -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;
@@ -0,0 +1,4 @@
1
+ export declare const iconSizeVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
2
+ export declare const iconSpacingVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ export declare const iconCluster: string;
4
+ export declare const iconClusterItem: string;
@@ -0,0 +1,20 @@
1
+ import React, { type ReactNode } from 'react';
2
+ export declare const CLUSTER_ICON_SIZE = 16;
3
+ export declare const MAX_VISIBLE_CLUSTER_ICONS = 4;
4
+ interface IconClusterProps {
5
+ children: ReactNode;
6
+ /** Visible icons only; excludes the trailing more badge. */
7
+ iconCount: number;
8
+ iconSize?: number;
9
+ style?: React.CSSProperties;
10
+ }
11
+ /**
12
+ * Row of round icons used as the trailing `valueIcon` on payment-method rows.
13
+ * Callers can close a truncated list with {@link MoreIconsIndicator}.
14
+ */
15
+ export declare function IconCluster({ children, iconCount, iconSize, style, }: IconClusterProps): React.JSX.Element;
16
+ /** Trailing "+" badge standing in for the icons that didn't fit. */
17
+ export declare function MoreIconsIndicator({ size, }: {
18
+ size?: number;
19
+ }): React.JSX.Element;
20
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface SupportedChainListProps {
3
+ chainIdList: string[];
4
+ showMore?: boolean;
5
+ iconSize?: number;
6
+ style?: React.CSSProperties;
7
+ }
8
+ /**
9
+ * Cluster of round chain icons, used as the trailing `valueIcon` on
10
+ * payment-method rows to convey supported chains at a glance.
11
+ */
12
+ export declare function SupportedChainList({ chainIdList, showMore, iconSize, style, }: SupportedChainListProps): React.JSX.Element;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { SolanaAddress } from '@funkit/api-base';
1
2
  import type { Address } from 'viem';
2
3
  /**
3
4
  * NATIVE_TOKEN is a special address in Fun to represent different native currency tokens on different chains
@@ -27,6 +28,12 @@ export interface FunkitUserInfoBase {
27
28
  isConnected: boolean;
28
29
  }
29
30
  export interface FunkitUserInfo extends FunkitUserInfoBase {
31
+ /** The EVM address, or `'0x'` when the session has none. */
30
32
  address: Address;
33
+ /**
34
+ * The Solana address, when a `solanaWallet` was supplied. This is the wallet
35
+ * a Solana checkout pays from.
36
+ */
37
+ solanaAddress: SolanaAddress | undefined;
31
38
  }
32
39
  export declare const PLACEHOLDER_FUNKIT_USER_INFO: FunkitUserInfo;
@@ -1,6 +1,7 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import type { Address } from 'viem';
3
3
  import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
4
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
4
5
  import type { AssetHoldingsItem } from '../utils/assets';
5
6
  import { PaymentMethod } from '../domains/paymentMethods';
6
7
  /**
@@ -14,7 +15,7 @@ export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig:
14
15
  export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
15
16
  interface AssetUsableToPayParms {
16
17
  config: FunkitCheckoutConfig;
17
- payerAddress: string;
18
+ payerWallets: CheckoutPayer;
18
19
  paymentMethod: PaymentMethod;
19
20
  targetChainId: string;
20
21
  targetTokenAddress: string;
@@ -26,7 +27,7 @@ interface AssetUsableToPayParms {
26
27
  isLighterDynamicRoutingEnabled: boolean;
27
28
  t: TFunction;
28
29
  }
29
- export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minValueThreshold, isLighterDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => {
30
+ export declare const isAssetUsableToPayForCheckout: ({ config, payerWallets, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minValueThreshold, isLighterDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => {
30
31
  isUsable: boolean;
31
32
  reason: string;
32
33
  minUsdWithFees?: number;