@funkit/connect 12.21.0 → 12.22.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 (90) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/clients/{chunk-FIJU6HZM.js → chunk-5JVG4MS2.js} +1 -1
  3. package/dist/clients/{chunk-YSQX5Z3F.js → chunk-HGLDKRSQ.js} +40 -8
  4. package/dist/clients/{chunk-6XJV626L.js → chunk-R7I5OO6C.js} +1 -1
  5. package/dist/clients/{chunk-DAMICUCH.js → chunk-UBZOARBX.js} +2 -2
  6. package/dist/clients/{chunk-MTKOZB6U.js → chunk-Y2O77SJO.js} +1 -1
  7. package/dist/clients/fanatics.js +2 -2
  8. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  9. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  10. package/dist/clients/internal/nado/withdrawalForm.js +3 -3
  11. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  12. package/dist/clients/lighter.css +32 -11
  13. package/dist/clients/lighter.js +3 -3
  14. package/dist/clients/mallard.d.ts +34 -1
  15. package/dist/clients/mallard.js +147 -2
  16. package/dist/clients/nado.js +3 -3
  17. package/dist/components/CustomSlot/CustomSlot.d.ts +8 -0
  18. package/dist/components/CustomSlot/CustomSlotBoundary.d.ts +12 -0
  19. package/dist/components/DestinationSelector/DestinationAssetBalanceLabel.d.ts +6 -0
  20. package/dist/components/DestinationSelector/DestinationSelector.css.d.ts +3 -0
  21. package/dist/components/DestinationSelector/DestinationSelector.d.ts +17 -0
  22. package/dist/components/DestinationSelector/DestinationSelectorSkeleton.d.ts +2 -0
  23. package/dist/components/Dropdown/AccountSelectDropdown.d.ts +8 -1
  24. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
  25. package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
  26. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -0
  27. package/dist/components/FunTransactionSummary/DestinationLineItems.d.ts +1 -1
  28. package/dist/domains/asset.d.ts +6 -0
  29. package/dist/domains/clientMetadata.d.ts +5 -6
  30. package/dist/domains/convert/balances.d.ts +4 -2
  31. package/dist/domains/destinationAccount.d.ts +14 -0
  32. package/dist/domains/destinationAssetBalance.d.ts +39 -0
  33. package/dist/domains/fees.d.ts +13 -0
  34. package/dist/domains/inputAmountComponentContext.d.ts +11 -0
  35. package/dist/hooks/useConvertBalances.d.ts +3 -1
  36. package/dist/hooks/useDestinationAccountSelector.d.ts +18 -0
  37. package/dist/hooks/useDestinationAssetBalances.d.ts +5 -0
  38. package/dist/hooks/useHighPriceImpactPercent.d.ts +11 -0
  39. package/dist/index.css +32 -11
  40. package/dist/index.d.ts +2 -1
  41. package/dist/index.js +2996 -2298
  42. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -1
  43. package/dist/modals/CheckoutModal/SourceChange/FlatList.d.ts +2 -8
  44. package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +1 -2
  45. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +5 -1
  46. package/dist/providers/FunkitCheckoutContext/types.d.ts +52 -11
  47. package/dist/providers/FunkitConfigContext.d.ts +24 -1
  48. package/dist/shadow-css.js +1 -1
  49. package/dist/utils/checkout.d.ts +1 -0
  50. package/dist/utils/consts.d.ts +1 -0
  51. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  56. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/index.js +59 -59
  61. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  70. package/package.json +7 -7
  71. package/dist/domains/priceImpact.d.ts +0 -14
  72. package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +0 -2
  73. package/dist/wallets/walletConnectors/{chunk-CU5J53XR.js → chunk-53MYTA42.js} +3 -3
  74. package/dist/wallets/walletConnectors/{chunk-ZSSSLFQF.js → chunk-65ULY6OC.js} +3 -3
  75. package/dist/wallets/walletConnectors/{chunk-XODA5ESL.js → chunk-A5POD5SV.js} +3 -3
  76. package/dist/wallets/walletConnectors/{chunk-RXRYHMRI.js → chunk-ANODOMIN.js} +3 -3
  77. package/dist/wallets/walletConnectors/{chunk-IWOMSW64.js → chunk-ASTCNVJC.js} +3 -3
  78. package/dist/wallets/walletConnectors/{chunk-U52QO5HF.js → chunk-F45CUFRR.js} +3 -3
  79. package/dist/wallets/walletConnectors/{chunk-YRMBR6NA.js → chunk-FYPQ3HP4.js} +3 -3
  80. package/dist/wallets/walletConnectors/{chunk-BBDNB5TQ.js → chunk-IWPW26AL.js} +3 -3
  81. package/dist/wallets/walletConnectors/{chunk-4FHNLTR3.js → chunk-JJBLW4IU.js} +3 -3
  82. package/dist/wallets/walletConnectors/{chunk-NXWG6FG2.js → chunk-KE4CWI3A.js} +3 -3
  83. package/dist/wallets/walletConnectors/{chunk-BBB2J3US.js → chunk-MWB6LFSG.js} +3 -3
  84. package/dist/wallets/walletConnectors/{chunk-34B7OJNT.js → chunk-OVDCDVFX.js} +3 -3
  85. package/dist/wallets/walletConnectors/{chunk-SR5CZR3L.js → chunk-PPQ6L4K2.js} +3 -3
  86. package/dist/wallets/walletConnectors/{chunk-IA5432IR.js → chunk-RJF2YEZ5.js} +3 -3
  87. package/dist/wallets/walletConnectors/{chunk-RFCZYLNR.js → chunk-RQYEGJKL.js} +3 -3
  88. package/dist/wallets/walletConnectors/{chunk-TRZDAXCQ.js → chunk-TIHTQ3OB.js} +3 -3
  89. package/dist/wallets/walletConnectors/{chunk-ALGPGI6V.js → chunk-TM7UBV3Q.js} +3 -3
  90. package/dist/wallets/walletConnectors/{chunk-HOCKAU5H.js → chunk-USLZMUJ3.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,73 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 97d76a1: Destination line items can be your own component for the whole row, show up to four rows, and receive the selected target token. Their context also has an optional `destinationAccountId`, reserved for destination accounts and unset until that work lands.
8
+
9
+ Migration: code that reads `label` or `value` from a `DestinationLineItem` must first check the row isn't a component row, and code that builds a `DestinationLineItemContext` by hand must now pass `targetAsset`.
10
+ - 97d76a1: Add destination account selection through the Mallard deposit config factory, with account, display symbol, and grouping metadata on destination assets.
11
+ - 97d76a1: Allow integrators to supply wallet balances for destination assets through the Mallard deposit config factory, with destination-named types.
12
+ - 97d76a1: Add a gated destination account and asset selector with short amount-switcher labels, and expose the selected account to custom amount components.
13
+ - 97d76a1: Add a custom component slot on the input amount screen with live target amount and source token context.
14
+ - 97d76a1: Add a Mallard deposit configuration factory with integrator-owned accounts and complete ordered asset lists, including USDG.
15
+
16
+ ### Patch Changes
17
+
18
+ - 97d76a1: Confirmation screen line items now receive the destination account the user picked.
19
+ - 97d76a1: Add a "Get help" link to the withdrawal method screen so users can reach support when every withdrawal method is unavailable.
20
+ - 97d76a1: Custom content still disappears after a rendering failure without interrupting the surrounding screen.
21
+ - 97d76a1: The deposit under review banner's Get help link opens the "Why is my deposit under review?" article.
22
+ - 97d76a1: No user-facing changes.
23
+ - 97d76a1: Remove selection checkmarks from the gated destination selector menus.
24
+ - 97d76a1: Display supplied and fallback destination account icons with theme-aware colors.
25
+ - 97d76a1: Truncate overflowing dropdown labels while preserving the full text in their menus.
26
+ - 97d76a1: Hide the Connect Exchange deposit option when it is disabled instead of showing it as Coming Soon.
27
+ - 97d76a1: Hide the SEPA deposit option when it is disabled instead of showing it as Coming Soon.
28
+ - 97d76a1: Fix the deposit screen content touching the header tabs when the Crypto/Cash toggle is hidden.
29
+ - 97d76a1: Warn on Convert and withdrawal when a quote's swap impact plus max slippage is above checkout's threshold, off by default.
30
+ - 97d76a1: Leave the app fee out of checkout's large price difference warning. It now adds only swap impact and max slippage, so a quote that crossed the threshold only because of its app fee no longer warns.
31
+ - afcdfa9: Remove the "more" divider from the deposit payment method list.
32
+ - 97d76a1: Remove the "Deposit with PayPal" row from the checkout source list. The row did nothing when clicked. Deprecate `onPolymarketPayPalSwitch`, which no longer fires.
33
+ - 97d76a1: Adds spacing between the withdrawal header divider and the method list.
34
+ - Updated dependencies [97d76a1]
35
+ - Updated dependencies [97d76a1]
36
+ - Updated dependencies [97d76a1]
37
+ - Updated dependencies [97d76a1]
38
+ - Updated dependencies [97d76a1]
39
+ - Updated dependencies [97d76a1]
40
+ - Updated dependencies [97d76a1]
41
+ - Updated dependencies [97d76a1]
42
+ - Updated dependencies [97d76a1]
43
+ - Updated dependencies [97d76a1]
44
+ - Updated dependencies [97d76a1]
45
+ - Updated dependencies [97d76a1]
46
+ - Updated dependencies [97d76a1]
47
+ - Updated dependencies [97d76a1]
48
+ - Updated dependencies [97d76a1]
49
+ - Updated dependencies [97d76a1]
50
+ - Updated dependencies [97d76a1]
51
+ - Updated dependencies [97d76a1]
52
+ - Updated dependencies [97d76a1]
53
+ - Updated dependencies [97d76a1]
54
+ - Updated dependencies [97d76a1]
55
+ - Updated dependencies [97d76a1]
56
+ - Updated dependencies [97d76a1]
57
+ - Updated dependencies [97d76a1]
58
+ - Updated dependencies [97d76a1]
59
+ - Updated dependencies [97d76a1]
60
+ - Updated dependencies [97d76a1]
61
+ - Updated dependencies [97d76a1]
62
+ - Updated dependencies [97d76a1]
63
+ - Updated dependencies [97d76a1]
64
+ - Updated dependencies [97d76a1]
65
+ - Updated dependencies [97d76a1]
66
+ - Updated dependencies [97d76a1]
67
+ - Updated dependencies [97d76a1]
68
+ - @funkit/connect-core@13.0.0
69
+ - @funkit/api-base@10.1.0
70
+
3
71
  ## 12.21.0
4
72
 
5
73
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-MTKOZB6U.js";
4
+ } from "./chunk-Y2O77SJO.js";
5
5
 
6
6
  // src/providers/FunkitConfigContext.tsx
7
7
  import {
@@ -87,6 +87,11 @@ var buy_en_default = {
87
87
 
88
88
  // src/locales/translations/en.json
89
89
  var en_default = {
90
+ destinationSelector: {
91
+ account: "Deposit to",
92
+ asset: "Select Asset",
93
+ noneSelected: "None selected"
94
+ },
90
95
  checkout: {
91
96
  noAvailableTokens: "No available tokens",
92
97
  noAvailableTokensMessage: "You don't have any crypto tokens in your wallet. Top up or transfer crypto to your wallet to continue.",
@@ -576,7 +581,6 @@ var en_default = {
576
581
  mostPopular: "Most popular",
577
582
  savedPaymentMethods: "Saved cards",
578
583
  connected: "Connected",
579
- more: "more",
580
584
  walletDisplayLabel: "{{walletLabel}}",
581
585
  brokerageDisplayLabel: "{{brokerageLabel}}",
582
586
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -742,6 +746,11 @@ var en_default = {
742
746
 
743
747
  // src/locales/translations/es.json
744
748
  var es_default = {
749
+ destinationSelector: {
750
+ account: "Depositar en",
751
+ asset: "Seleccionar activo",
752
+ noneSelected: "Sin selecci\xF3n"
753
+ },
745
754
  checkout: {
746
755
  noAvailableTokens: "No hay tokens disponibles",
747
756
  noAvailableTokensMessage: "No tienes ning\xFAn token cripto en tu billetera. Recarga o transfiere cripto a tu billetera para continuar.",
@@ -1221,7 +1230,6 @@ var es_default = {
1221
1230
  moreOptions: "M\xE1s opciones",
1222
1231
  mostPopular: "M\xE1s popular",
1223
1232
  savedPaymentMethods: "Tarjetas guardadas",
1224
- more: "m\xE1s",
1225
1233
  walletDisplayLabel: "{{walletLabel}}",
1226
1234
  brokerageDisplayLabel: "{{brokerageLabel}}",
1227
1235
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -1391,6 +1399,11 @@ var es_default = {
1391
1399
 
1392
1400
  // src/locales/translations/fr.json
1393
1401
  var fr_default = {
1402
+ destinationSelector: {
1403
+ account: "D\xE9poser sur",
1404
+ asset: "S\xE9lectionner un actif",
1405
+ noneSelected: "Aucune s\xE9lection"
1406
+ },
1394
1407
  checkout: {
1395
1408
  noAvailableTokens: "Aucun actif disponible",
1396
1409
  noAvailableTokensMessage: "Vous n'avez aucun actif dans votre portefeuille. Approvisionnez ou transf\xE9rez des cryptomonnaies vers votre portefeuille pour continuer.",
@@ -1870,7 +1883,6 @@ var fr_default = {
1870
1883
  moreOptions: "Plus d'options",
1871
1884
  mostPopular: "Les plus populaires",
1872
1885
  savedPaymentMethods: "Cartes enregistr\xE9es",
1873
- more: "plus",
1874
1886
  walletDisplayLabel: "{{walletLabel}}",
1875
1887
  brokerageDisplayLabel: "{{brokerageLabel}}",
1876
1888
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -2040,6 +2052,11 @@ var fr_default = {
2040
2052
 
2041
2053
  // src/locales/translations/ja.json
2042
2054
  var ja_default = {
2055
+ destinationSelector: {
2056
+ account: "\u5165\u91D1\u5148",
2057
+ asset: "\u8CC7\u7523\u3092\u9078\u629E",
2058
+ noneSelected: "\u672A\u9078\u629E"
2059
+ },
2043
2060
  checkout: {
2044
2061
  noAvailableTokens: "\u5229\u7528\u53EF\u80FD\u306A\u30C8\u30FC\u30AF\u30F3\u304C\u3042\u308A\u307E\u305B\u3093",
2045
2062
  noAvailableTokensMessage: "\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u6697\u53F7\u8CC7\u7523\u30C8\u30FC\u30AF\u30F3\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u7D9A\u884C\u3059\u308B\u306B\u306F\u3001\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u6697\u53F7\u8CC7\u7523\u3092\u30C1\u30E3\u30FC\u30B8\u307E\u305F\u306F\u9001\u91D1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -2519,7 +2536,6 @@ var ja_default = {
2519
2536
  moreOptions: "\u305D\u306E\u4ED6\u306E\u30AA\u30D7\u30B7\u30E7\u30F3",
2520
2537
  mostPopular: "\u4EBA\u6C17",
2521
2538
  savedPaymentMethods: "\u4FDD\u5B58\u6E08\u307F\u30AB\u30FC\u30C9",
2522
- more: "\u3082\u3063\u3068\u898B\u308B",
2523
2539
  walletDisplayLabel: "{{walletLabel}}",
2524
2540
  brokerageDisplayLabel: "{{brokerageLabel}}",
2525
2541
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -2689,6 +2705,11 @@ var ja_default = {
2689
2705
 
2690
2706
  // src/locales/translations/ko.json
2691
2707
  var ko_default = {
2708
+ destinationSelector: {
2709
+ account: "\uC785\uAE08 \uB300\uC0C1",
2710
+ asset: "\uC790\uC0B0 \uC120\uD0DD",
2711
+ noneSelected: "\uC120\uD0DD \uC548 \uB428"
2712
+ },
2692
2713
  checkout: {
2693
2714
  noAvailableTokens: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uD1A0\uD070\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
2694
2715
  noAvailableTokensMessage: "\uC9C0\uAC11\uC5D0 \uC554\uD638\uD654\uD3D0 \uD1A0\uD070\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uB824\uBA74 \uC9C0\uAC11\uC5D0 \uC554\uD638\uD654\uD3D0\uB97C \uCDA9\uC804\uD558\uAC70\uB098 \uC804\uC1A1\uD558\uC138\uC694.",
@@ -3168,7 +3189,6 @@ var ko_default = {
3168
3189
  moreOptions: "\uB354 \uB9CE\uC740 \uC635\uC158",
3169
3190
  mostPopular: "\uC778\uAE30",
3170
3191
  savedPaymentMethods: "\uC800\uC7A5\uB41C \uCE74\uB4DC",
3171
- more: "\uB354 \uBCF4\uAE30",
3172
3192
  walletDisplayLabel: "{{walletLabel}}",
3173
3193
  brokerageDisplayLabel: "{{brokerageLabel}}",
3174
3194
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -3338,6 +3358,11 @@ var ko_default = {
3338
3358
 
3339
3359
  // src/locales/translations/ru.json
3340
3360
  var ru_default = {
3361
+ destinationSelector: {
3362
+ account: "\u0417\u0430\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043D\u0430",
3363
+ asset: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0430\u043A\u0442\u0438\u0432",
3364
+ noneSelected: "\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043E"
3365
+ },
3341
3366
  checkout: {
3342
3367
  noAvailableTokens: "\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0442\u043E\u043A\u0435\u043D\u043E\u0432",
3343
3368
  noAvailableTokensMessage: "\u0423 \u0432\u0430\u0441 \u043D\u0435\u0442 \u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u043D\u044B\u0445 \u0442\u043E\u043A\u0435\u043D\u043E\u0432 \u0432 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0435. \u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0443 \u0432 \u043A\u043E\u0448\u0435\u043B\u0451\u043A \u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F.",
@@ -3817,7 +3842,6 @@ var ru_default = {
3817
3842
  moreOptions: "\u0411\u043E\u043B\u044C\u0448\u0435 \u043E\u043F\u0446\u0438\u0439",
3818
3843
  mostPopular: "\u0421\u0430\u043C\u044B\u0435 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
3819
3844
  savedPaymentMethods: "\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u044B",
3820
- more: "\u0431\u043E\u043B\u044C\u0448\u0435",
3821
3845
  walletDisplayLabel: "{{walletLabel}}",
3822
3846
  brokerageDisplayLabel: "{{brokerageLabel}}",
3823
3847
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -3987,6 +4011,11 @@ var ru_default = {
3987
4011
 
3988
4012
  // src/locales/translations/tr.json
3989
4013
  var tr_default = {
4014
+ destinationSelector: {
4015
+ account: "Yat\u0131r\u0131lacak hesap",
4016
+ asset: "Varl\u0131k se\xE7",
4017
+ noneSelected: "Se\xE7im yap\u0131lmad\u0131"
4018
+ },
3990
4019
  checkout: {
3991
4020
  noAvailableTokens: "Kullan\u0131labilir token yok",
3992
4021
  noAvailableTokensMessage: "C\xFCzdan\u0131n\u0131zda kripto token bulunmamaktad\u0131r. Devam etmek i\xE7in c\xFCzdan\u0131n\u0131za para yat\u0131r\u0131n veya kripto transfer edin.",
@@ -4466,7 +4495,6 @@ var tr_default = {
4466
4495
  moreOptions: "Daha fazla se\xE7enek",
4467
4496
  mostPopular: "En pop\xFCler",
4468
4497
  savedPaymentMethods: "Kay\u0131tl\u0131 kartlar",
4469
- more: "daha fazla",
4470
4498
  walletDisplayLabel: "{{walletLabel}}",
4471
4499
  brokerageDisplayLabel: "{{brokerageLabel}}",
4472
4500
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -4636,6 +4664,11 @@ var tr_default = {
4636
4664
 
4637
4665
  // src/locales/translations/zh.json
4638
4666
  var zh_default = {
4667
+ destinationSelector: {
4668
+ account: "\u5B58\u5165",
4669
+ asset: "\u9009\u62E9\u8D44\u4EA7",
4670
+ noneSelected: "\u672A\u9009\u62E9"
4671
+ },
4639
4672
  checkout: {
4640
4673
  noAvailableTokens: "\u6CA1\u6709\u53EF\u7528\u4EE3\u5E01",
4641
4674
  noAvailableTokensMessage: "\u60A8\u7684\u94B1\u5305\u4E2D\u6CA1\u6709\u4EFB\u4F55\u52A0\u5BC6\u4EE3\u5E01\u3002\u5145\u503C\u6216\u8F6C\u8D26\u52A0\u5BC6\u8D27\u5E01\u5230\u60A8\u7684\u94B1\u5305\u4EE5\u7EE7\u7EED\u3002",
@@ -5115,7 +5148,6 @@ var zh_default = {
5115
5148
  moreOptions: "\u66F4\u591A\u9009\u9879",
5116
5149
  mostPopular: "\u6700\u53D7\u6B22\u8FCE",
5117
5150
  savedPaymentMethods: "\u5DF2\u4FDD\u5B58\u7684\u5361\u7247",
5118
- more: "\u66F4\u591A",
5119
5151
  walletDisplayLabel: "{{walletLabel}}",
5120
5152
  brokerageDisplayLabel: "{{brokerageLabel}}",
5121
5153
  virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-YSQX5Z3F.js";
4
+ } from "./chunk-HGLDKRSQ.js";
5
5
 
6
6
  // src/clients/internal/nado/withdrawalErrors.ts
7
7
  import {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  isExpectedNadoWithdrawalFailure,
7
7
  toNadoWithdrawalErrorMessage
8
- } from "./chunk-6XJV626L.js";
8
+ } from "./chunk-R7I5OO6C.js";
9
9
  import {
10
10
  toWithdrawalAmountBaseUnit
11
11
  } from "./chunk-LICTGZXW.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-OODIKHYE.js";
17
17
  import {
18
18
  i18n_default
19
- } from "./chunk-YSQX5Z3F.js";
19
+ } from "./chunk-HGLDKRSQ.js";
20
20
  import {
21
21
  logger
22
22
  } from "./chunk-B67ESBGC.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-YSQX5Z3F.js";
4
+ } from "./chunk-HGLDKRSQ.js";
5
5
 
6
6
  // src/hooks/useFunkitTranslation.ts
7
7
  import { useTranslation } from "react-i18next";
@@ -10,8 +10,8 @@ import {
10
10
  } from "./chunk-4NWQR25X.js";
11
11
  import {
12
12
  useFunkitTranslation
13
- } from "./chunk-MTKOZB6U.js";
14
- import "./chunk-YSQX5Z3F.js";
13
+ } from "./chunk-Y2O77SJO.js";
14
+ import "./chunk-HGLDKRSQ.js";
15
15
  import "./chunk-B67ESBGC.js";
16
16
 
17
17
  // src/clients/fanatics.tsx
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-DAMICUCH.js";
4
+ } from "../../chunk-UBZOARBX.js";
5
5
  import "../../chunk-TKEBGMVW.js";
6
- import "../../chunk-6XJV626L.js";
6
+ import "../../chunk-R7I5OO6C.js";
7
7
  import "../../chunk-LICTGZXW.js";
8
8
  import "../../chunk-OODIKHYE.js";
9
- import "../../chunk-YSQX5Z3F.js";
9
+ import "../../chunk-HGLDKRSQ.js";
10
10
  import "../../chunk-B67ESBGC.js";
11
11
  export {
12
12
  createNadoWithdrawalCallback
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "../../chunk-6XJV626L.js";
6
- import "../../chunk-YSQX5Z3F.js";
5
+ } from "../../chunk-R7I5OO6C.js";
6
+ import "../../chunk-HGLDKRSQ.js";
7
7
  export {
8
8
  isExpectedNadoWithdrawalFailure,
9
9
  toNadoWithdrawalErrorMessage
@@ -8,13 +8,13 @@ import {
8
8
  import "../../chunk-PZSKO3BJ.js";
9
9
  import {
10
10
  useFunkitConfig
11
- } from "../../chunk-FIJU6HZM.js";
11
+ } from "../../chunk-5JVG4MS2.js";
12
12
  import {
13
13
  useFunkitTranslation
14
- } from "../../chunk-MTKOZB6U.js";
14
+ } from "../../chunk-Y2O77SJO.js";
15
15
  import "../../chunk-LICTGZXW.js";
16
16
  import "../../chunk-2W2P3OS6.js";
17
- import "../../chunk-YSQX5Z3F.js";
17
+ import "../../chunk-HGLDKRSQ.js";
18
18
  import {
19
19
  logger
20
20
  } from "../../chunk-B67ESBGC.js";
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitConfig
4
- } from "../../chunk-FIJU6HZM.js";
5
- import "../../chunk-MTKOZB6U.js";
4
+ } from "../../chunk-5JVG4MS2.js";
5
+ import "../../chunk-Y2O77SJO.js";
6
6
  import {
7
7
  useAccount
8
8
  } from "../../chunk-2W2P3OS6.js";
9
- import "../../chunk-YSQX5Z3F.js";
9
+ import "../../chunk-HGLDKRSQ.js";
10
10
  import {
11
11
  logger
12
12
  } from "../../chunk-B67ESBGC.js";
@@ -16830,9 +16830,10 @@
16830
16830
  animation: _1gjdf1i1 250ms cubic-bezier(0.29, -0.01, 0, 1) forwards;
16831
16831
  }
16832
16832
 
16833
- /* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwp9 */
16833
+ /* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwogIG1pbi13aWR0aDogMDsKfQ */
16834
16834
  [data-rk] ._1dewiqw0 {
16835
16835
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16836
+ min-width: 0;
16836
16837
  }
16837
16838
 
16838
16839
  /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
@@ -16970,6 +16971,16 @@
16970
16971
  overflow: hidden;
16971
16972
  }
16972
16973
 
16974
+ /* vanilla-extract-css-ns:src/components/BottomLinks/BottomLinks.css.ts.vanilla.css?source=Ll8xN2VqY3FqMSB7CiAgdGV4dC1kZWNvcmF0aW9uOiBub25lOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQouXzE3ZWpjcWoxOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tcmstY29sb3JzLXByaW1hcnlUZXh0KTsKICBvcGFjaXR5OiAwLjg7Cn0 */
16975
+ [data-rk] ._17ejcqj1 {
16976
+ text-decoration: none;
16977
+ transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16978
+ }
16979
+ [data-rk] ._17ejcqj1:hover {
16980
+ color: var(--rk-colors-primaryText);
16981
+ opacity: 0.8;
16982
+ }
16983
+
16973
16984
  /* vanilla-extract-css-ns:src/components/PaddedScrollableArea/paddedScrollableArea.css.ts.vanilla.css?source=Ll8xczAzMWEwMCB7CiAgZmxleDogMTsKICBtaW4taGVpZ2h0OiAwOwogIG92ZXJmbG93LXg6IGhpZGRlbjsKICBvdmVyZmxvdy15OiBhdXRvOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBzY3JvbGxiYXItZ3V0dGVyOiBzdGFibGU7CiAgc2Nyb2xsYmFyLXdpZHRoOiB1bnNldDsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhciB7CiAgZGlzcGxheTogdW5zZXQ7CiAgd2lkdGg6IDZweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmstcmFkaWktbW9kYWwpOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy10ZXJ0aWFyeVRleHQpOwp9Ci5fMXMwMzFhMDA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAxOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLl8xczAzMWEwMTo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWI6aG92ZXIgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1zZWNvbmRhcnlUZXh0KTsKfQ */
16974
16985
  [data-rk] ._1s031a00 {
16975
16986
  flex: 1;
@@ -17537,6 +17548,26 @@
17537
17548
  opacity: var(--animation-opacity, 0);
17538
17549
  }
17539
17550
 
17551
+ /* vanilla-extract-css-ns:src/components/DestinationSelector/DestinationSelector.css.ts.vanilla.css?source=Ll8xcmVoeTQzMCB7CiAgZGlzcGxheTogZ3JpZDsKICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdChhdXRvLWZpdCwgbWlubWF4KG1pbigxMDAlLCAxNjBweCksIDFmcikpOwogIGdhcDogMTJweDsKICB3aWR0aDogMTAwJTsKfQouXzFyZWh5NDMxIHsKICBtaW4taGVpZ2h0OiA0NHB4OwogIHRvdWNoLWFjdGlvbjogbWFuaXB1bGF0aW9uOwp9Ci5fMXJlaHk0MzIgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7CiAgZ2FwOiA0cHg7CiAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICBmb250LXZhcmlhbnQtbnVtZXJpYzogdGFidWxhci1udW1zOwp9 */
17552
+ [data-rk] ._1rehy430 {
17553
+ display: grid;
17554
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
17555
+ gap: 12px;
17556
+ width: 100%;
17557
+ }
17558
+ [data-rk] ._1rehy431 {
17559
+ min-height: 44px;
17560
+ touch-action: manipulation;
17561
+ }
17562
+ [data-rk] ._1rehy432 {
17563
+ display: flex;
17564
+ flex-direction: column;
17565
+ align-items: flex-end;
17566
+ gap: 4px;
17567
+ white-space: nowrap;
17568
+ font-variant-numeric: tabular-nums;
17569
+ }
17570
+
17540
17571
  /* vanilla-extract-css-ns:src/components/Tabs/tabs.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwU7EIBCG732KuZjsJtJA166RXvYxvNIW1okFGqDR1fTdTWmM3UZrD5r0AkOY_-fjz5ye5UU5oaUHeX7CLFB4TwDoTdwAghPGK-s0H8tGBPm4Y8f2dV_EBtuKCsOFAx3OfQLA6C9qOpeyUdonpzkNW0Pzk98KFLLwk29wsjU4S55_m87hn9NZDCcdGe6igzCoRUBrSN25WHBgOdW-uLoMqNGciepMNfZUXYkVKeUbSrejaZbfAk3ZsAwl21_LFTYN0baWHJR1L8LVM38jtOSfg1x8QeZbhWQTyONWIbMJ5P1WIQ8TyIcI2VqP47Oi9LbpghzUaLwMcYz7D6L02Hb8BAAA */
17541
17572
  @keyframes eghi2t0 {
17542
17573
  0% {
@@ -17607,16 +17638,6 @@
17607
17638
  inset: 0;
17608
17639
  }
17609
17640
 
17610
- /* vanilla-extract-css-ns:src/components/BottomLinks/BottomLinks.css.ts.vanilla.css?source=Ll8xN2VqY3FqMSB7CiAgdGV4dC1kZWNvcmF0aW9uOiBub25lOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQouXzE3ZWpjcWoxOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tcmstY29sb3JzLXByaW1hcnlUZXh0KTsKICBvcGFjaXR5OiAwLjg7Cn0 */
17611
- [data-rk] ._17ejcqj1 {
17612
- text-decoration: none;
17613
- transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
17614
- }
17615
- [data-rk] ._17ejcqj1:hover {
17616
- color: var(--rk-colors-primaryText);
17617
- opacity: 0.8;
17618
- }
17619
-
17620
17641
  /* vanilla-extract-css-ns:src/components/FunFeatureList/FunFeatureList.css.ts.vanilla.css?source=Ll8xMDQ1cXI3MSB7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLWFjdGlvbkNvbG9yRGlzYWJsZWQpOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQ */
17621
17642
  [data-rk] ._1045qr71 {
17622
17643
  outline-color: var(--rk-colors-actionColorDisabled);
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PZSKO3BJ.js";
7
7
  import {
8
8
  useFunkitConfig
9
- } from "./chunk-FIJU6HZM.js";
9
+ } from "./chunk-5JVG4MS2.js";
10
10
  import {
11
11
  AsyncImage,
12
12
  Box,
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-4NWQR25X.js";
15
15
  import {
16
16
  useFunkitTranslation
17
- } from "./chunk-MTKOZB6U.js";
17
+ } from "./chunk-Y2O77SJO.js";
18
18
  import "./chunk-OODIKHYE.js";
19
19
  import "./chunk-2W2P3OS6.js";
20
- import "./chunk-YSQX5Z3F.js";
20
+ import "./chunk-HGLDKRSQ.js";
21
21
  import {
22
22
  logger
23
23
  } from "./chunk-B67ESBGC.js";
@@ -14,8 +14,10 @@
14
14
  * create2-deployed via the Arachnid factory (not at the usual 0xC8A6… create3 address);
15
15
  * verified on-chain (owner = the Fun deployer).
16
16
  */
17
+ import { type ReactNode } from 'react';
17
18
  import { type Address } from 'viem';
18
- import type { FunkitCheckoutActionParams, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
19
+ import type { GetDestinationAssetBalances } from '../domains/destinationAssetBalance';
20
+ import type { DynamicTargetAssetCandidate, FunkitCheckoutActionParams, FunkitCheckoutConfig, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
19
21
  /** Mallard deposit contract to credit a Mallard (perps) account. */
20
22
  export declare const MALLARD_DEPOSIT_ADDRESS: `0x${string}`;
21
23
  /** VaultDepositooor on Zorro chain. */
@@ -89,3 +91,34 @@ export interface MallardWithdrawalConfig {
89
91
  * ```
90
92
  */
91
93
  export declare function useMallardWithdrawalConfig(config: MallardWithdrawalConfig | null): WalletWithdrawalConfig | null;
94
+ export interface CreateMallardDepositConfigParams {
95
+ /** Connected wallet credited by Perps deposits; may be absent before connection. */
96
+ address: Address | undefined;
97
+ /** First account's first asset is selected initially; icons default to the generic glyph. */
98
+ accounts: readonly {
99
+ id: 'perps' | 'spot';
100
+ label: string;
101
+ icon?: ReactNode;
102
+ /** Menu order within each group. Symbols must match configured Mallard routes. */
103
+ assets: readonly {
104
+ symbol: string;
105
+ address: Address;
106
+ iconSrc: string;
107
+ groupLabel?: string;
108
+ }[];
109
+ }[];
110
+ /**
111
+ * @experimental
112
+ * Reads the user's wallet balance for each asset in the menu. Omit to show
113
+ * the menu without balances.
114
+ */
115
+ getAssetBalances?: GetDestinationAssetBalances;
116
+ }
117
+ /**
118
+ * Builds routing and deposit actions for the integrator's complete catalogue.
119
+ * For translated modal titles, spread the result and override `modalTitle`
120
+ * with a string or a resolver keyed by `dynamicRoutingId`.
121
+ */
122
+ export declare function createMallardDepositConfig({ address, accounts, getAssetBalances, }: CreateMallardDepositConfigParams): FunkitCheckoutConfig & {
123
+ dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[];
124
+ };