@funkit/connect 7.1.0-next.9 → 7.1.1

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 (136) hide show
  1. package/CHANGELOG.md +254 -0
  2. package/dist/__generated__/default_configs.d.ts +135 -12
  3. package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
  4. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
  5. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
  6. package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
  7. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
  8. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  9. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
  10. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
  11. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
  12. package/dist/components/FunTooltip/FunTooltip.css.d.ts +2 -6
  13. package/dist/components/FunTooltip/FunTooltip.d.ts +14 -19
  14. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
  15. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
  16. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
  17. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -1
  18. package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
  19. package/dist/components/Icons/RelayIcon.d.ts +4 -0
  20. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  21. package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
  22. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
  23. package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -1
  24. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
  25. package/dist/consts/customers.d.ts +1 -1
  26. package/dist/domains/asset.d.ts +2 -2
  27. package/dist/domains/checkout.d.ts +1 -1
  28. package/dist/domains/checkoutRecipient.d.ts +1 -1
  29. package/dist/domains/clientMetadata.d.ts +1 -1
  30. package/dist/domains/fees.d.ts +2 -2
  31. package/dist/domains/paymentMethods.d.ts +1 -1
  32. package/dist/domains/quote.d.ts +4 -4
  33. package/dist/domains/relay.d.ts +15 -1
  34. package/dist/domains/wallet.d.ts +1 -1
  35. package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
  36. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
  37. package/dist/hooks/queries/useRecentDeposits.d.ts +117 -0
  38. package/dist/hooks/queries/useWithdrawalQuote.d.ts +34 -36
  39. package/dist/hooks/track/useTrack.d.ts +1 -1
  40. package/dist/hooks/useBluvo.d.ts +3 -3
  41. package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
  42. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
  43. package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
  44. package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
  45. package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
  46. package/dist/hooks/useCountdown.d.ts +1 -1
  47. package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
  48. package/dist/hooks/useFrogAccount.d.ts +2 -1
  49. package/dist/hooks/useHasHover.d.ts +1 -0
  50. package/dist/hooks/useIsBlacklisted.d.ts +1 -1
  51. package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
  52. package/dist/hooks/useMinDeposit.d.ts +1 -1
  53. package/dist/hooks/useOnNewNotification.d.ts +1 -1
  54. package/dist/hooks/usePaymentSources.d.ts +5 -3
  55. package/dist/hooks/useRelayBypass.d.ts +1 -1
  56. package/dist/hooks/useTokenChain.d.ts +1 -1
  57. package/dist/hooks/useTokenTransfer.d.ts +1 -1
  58. package/dist/hooks/useWalletAssetHoldings.d.ts +1 -0
  59. package/dist/index.css +90 -29
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.js +3156 -2663
  62. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
  63. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
  64. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
  65. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
  66. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
  67. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
  68. package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
  69. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
  70. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
  71. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  72. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
  73. package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
  74. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
  75. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
  76. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
  77. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  78. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
  79. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
  80. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
  81. package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
  82. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  83. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
  84. package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
  85. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  86. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
  87. package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
  88. package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
  89. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
  90. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
  91. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
  92. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
  93. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  94. package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
  95. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
  96. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
  97. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
  98. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
  99. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
  100. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
  101. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
  102. package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
  103. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
  104. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
  105. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
  106. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  107. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
  108. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
  109. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
  110. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
  111. package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
  112. package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
  113. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
  114. package/dist/providers/FunkitConfigContext.d.ts +14 -1
  115. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  116. package/dist/providers/FunkitI18nProvider.d.ts +1 -1
  117. package/dist/providers/FunkitProvider.d.ts +1 -1
  118. package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
  119. package/dist/themes/darkTheme.d.ts +1 -1
  120. package/dist/themes/lightTheme.d.ts +1 -1
  121. package/dist/utils/assets.d.ts +1 -1
  122. package/dist/utils/bluvo.d.ts +2 -2
  123. package/dist/utils/checkout.d.ts +2 -2
  124. package/dist/utils/customer.d.ts +2 -2
  125. package/dist/utils/flags/config.d.ts +4 -18
  126. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
  127. package/dist/utils/funLogger.d.ts +5 -1
  128. package/dist/utils/funkitProvider.d.ts +2 -0
  129. package/dist/utils/lighter.d.ts +6 -0
  130. package/dist/utils/payment.d.ts +1 -1
  131. package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
  132. package/dist/utils/withdrawal.d.ts +1 -1
  133. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
  134. package/dist/wallets/walletConnectors/index.js +3 -3
  135. package/package.json +11 -9
  136. package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
package/CHANGELOG.md CHANGED
@@ -1,5 +1,259 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 7.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ea97213: Add EITGHTYEIGHTUPS customer configuration and API key support
8
+ - b2057f1: set wide as default modal size
9
+ - 3e40d89: feat(connect,fun-relay): add LIT spot asset
10
+ - 5561b62: Fix logger to queue logs before configure() is called and flush them afterwards. Refactor logging implementation to eliminate duplicate code by consolidating validation and processing logic.
11
+ - 911ab29: feat(connect): add meld preloader to empty window
12
+ - 51c6e23: feat(connect): added ui customization option to disable wallet balance option instead of hiding it when balance is insufficient
13
+ - 8c0df14: feat(connect): remove preference check on meld providers
14
+ - c3f4c4c: feat(connect): update meld max limit messaging
15
+ - 6c6fa01: do not hide fiat payment method for lighter new asset
16
+ - Updated dependencies [ea97213]
17
+ - Updated dependencies [3e40d89]
18
+ - Updated dependencies [965b34b]
19
+ - @funkit/api-base@1.12.23
20
+ - @funkit/fun-relay@2.2.1
21
+ - @funkit/chains@0.5.3
22
+
23
+ ## 7.1.0
24
+
25
+ ### Minor Changes
26
+
27
+ - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
28
+
29
+ Add two new public hooks for fetching recent deposits/direct executions:
30
+
31
+ - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
32
+ - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
33
+
34
+ Both hooks return purified checkout history items suitable for external use and include full JSDoc documentation with usage examples.
35
+
36
+ - fa6cb1f: Add soft-close feature for checkout modal when transaction is in progress
37
+
38
+ - When a transaction is in progress (checkoutProgress.step >= 1), the close button now hides the modal instead of closing it, preserving state
39
+ - Added `useSoftHiddenCheckout` hook for managing soft-hidden checkout state
40
+ - Added internal `onCheckoutConflict` handler to resolve conflicts when `beginCheckout` is called while a checkout is soft-hidden
41
+ - Extended `FunkitCheckoutOnCloseResult` with optional `isSoftHidden` field
42
+ - Added `MODAL_SOFT_HIDDEN` analytics event
43
+
44
+ ### Patch Changes
45
+
46
+ - 9be8d42: Add unloggedin blocked reason with i18n support across all languages
47
+ - 28136c9: feat(connect): migrate MeldQuickOptions flag to statsig
48
+ - 39406ab: fix(connect): fix undefined error when reading destinationAmount
49
+ - d3322be: chore: updated labels
50
+ - f490277: add cache for performance
51
+ - 2962aaa: feat(connect): remove persisted targetAssetAmount when source token changes - fixes default input amount logic
52
+ - 656587e: fix(connect): disable withdrawal quote for blacklisted withdrawal addresses
53
+ - b5e85cf: feat(connect): center 2FA error
54
+ - a979216: remove target asset check in lighter
55
+ - 13a6a7b: feat(connect): hide min amount from supported chain label on xs viewport
56
+ - a3a4275: feat(connect): enable monad for hyena + based
57
+ - c93ad0c: feat(connect): sync dynamicRoutingId with dynamic target asset
58
+ - 52406e3: feat(connect,fun-relay): add new lighter spot assets
59
+ - 26f2b79: feat(connect): add statsig tracking to quick options clicks
60
+ - 40bf6f4: reorganize file location
61
+ - 92eb741: Fix input normalization re-attachment when used with Framer Motion DOM swapping
62
+ - 923b998: Fix RemoveScroll to not block scrolling when dialog is hidden
63
+ - 49c1537: Fix tooltip closing when hovering over its content
64
+ - 1e7f994: feat(connect): update lighter time to 2min
65
+ - f3c3431: feat(connect): add custom processing message for lighter native flow
66
+ - cf4f7ba: fix(connect): disable is same asset check for wallet flow if dynamicRoutingId is provided
67
+ - 361d54c: feat(connect): rounding to the nearest tick size
68
+ - 8feddc9: set default modal size medium
69
+ - 17dd504: fix(connect): relax withMoonpayMeldQuote error logs
70
+ - 47acbdc: chore(connect): change error message
71
+ - e55876b: fix path alias inside the npm package
72
+ - 6802246: feat(connect): remove no eth asset msg for lighter
73
+ - c289ca6: feat(fun-relay): require api key for relay to prevent rate limiting
74
+ feat(connect): pass pseudo api key to fun-relay
75
+ - 18ce29c: deprecate some unused code
76
+ - 437a9f2: refactor(connect): swap out 2FA input for fun 2FA component on brokerage flow
77
+ - 0c6cc6e: feat(connect): check udaparams for default settings (chain+token) for token transfer dropdown
78
+ - f07bdfb: refactor(connect): cleanup remaining mesh references in bluvo screens
79
+ - f7fa2bc: disable non mainnet eth for lighter eth
80
+ - 573e04e: feat(connect): update border color on fun powered tagline component
81
+ - 7312429: adopt checkedIndexedAccess for safety
82
+ - 57356c6: feat(connect): add SKY asset
83
+ - 652c5c2: feat(connect): add blacklisted withdrawal address to statsig
84
+ - 0ad5896: fix withdraw amount is NaN
85
+ - 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
86
+ - b09006f: add lighter chain to destination
87
+ - c93ad0c: feat(connect): add select target asset dropdown to source change screen
88
+ - d4b06e4: add cutOffTimeMs and jsdoc to useRecentDeposit hook
89
+ - 62a8860: remove unused data
90
+ - c94531b: always use fiat mode for payment method card
91
+ - 8b8d030: feat(connect,api-base): pass api key to bluvo requests to frog
92
+ - 75c154f: refactor(connect): use portal for tooltips
93
+ - d0f4cc0: fix(connect): target asset dropdown persistance
94
+ - d0fdef4: add insufficient eth message
95
+ - 6f66084: add islighter flow
96
+ - ab9c1e9: chore: update assets
97
+ - 087557e: feat(connect): migrate showpoweredtagline flag to statsig
98
+ - 6f08927: Refactor FunTooltip to use Radix UI primitives for improved accessibility and mobile support
99
+ - 89d00a4: Rename useRecentDirectExecutions hook to useRecentDeposits and add optional batchSize parameter
100
+ - b1c4d85: feat(connect): support for `dynamicRoutingId` param
101
+ - 810e64f: feat(connect): update default input value for eth spot
102
+ - 37ce6d3: fix(connect): fix misfiring withdrawal quotes
103
+ - 5a8fe96: fix(connect): normalize feebreakdown response
104
+ - e43dc41: feat(connect): migrate IsRelayBypassEnabled flag to statsig
105
+ - 188da7b: remove genActionParam check in init
106
+ - ae172d8: move file around
107
+ - d702577: fix time estimate for lighter DE
108
+ - da4efac: fix types export
109
+ - d336735: feat: add tron chain object
110
+ - 0b85676: feat(connect): token transfer ui - default to arbitrum chain for lighter
111
+ - 3df0c66: feat(connect): add insufficient gas error during execution
112
+ - b033e65: feat(connect): update config to accept modal title fn to support dynamic titles
113
+ - 62a557d: tradefox theme implemented
114
+ - a94f293: do not over-fetching bridge account
115
+ - e3f0125: add new check for isLighterEthSpot
116
+ - 115d875: fix(connect): update statsig user when api key changes
117
+ - 29b449c: Use ETH as source amount on input screen instead of USD for Lighter ETH Spot
118
+ - 9257a9b: remove tick size read in connect
119
+ - e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
120
+ - 47acbdc: Update all translation files to replace "checkout" with "deposit" terminology across Spanish, French, Japanese, Korean, Russian, Turkish, and Chinese translations
121
+ - d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
122
+ - adac1ea: feat(connect): added option to display selected route on confirmation screen
123
+ - ade8399: feat(connect): measure modal initial loading
124
+ - 58b4014: feat(connect): add logo asset for optimism
125
+ - Updated dependencies [173d602]
126
+ - Updated dependencies [7a6ca8c]
127
+ - Updated dependencies [3601d23]
128
+ - Updated dependencies [320236b]
129
+ - Updated dependencies [52406e3]
130
+ - Updated dependencies [e009c8d]
131
+ - Updated dependencies [c289ca6]
132
+ - Updated dependencies [8a48f13]
133
+ - Updated dependencies [7312429]
134
+ - Updated dependencies [6d91583]
135
+ - Updated dependencies [2f57830]
136
+ - Updated dependencies [0152e69]
137
+ - Updated dependencies [8b8d030]
138
+ - Updated dependencies [0168375]
139
+ - Updated dependencies [fd5fe29]
140
+ - Updated dependencies [ab9c1e9]
141
+ - Updated dependencies [bb6bfce]
142
+ - Updated dependencies [c463492]
143
+ - Updated dependencies [f0f39af]
144
+ - Updated dependencies [85ab331]
145
+ - Updated dependencies [d336735]
146
+ - Updated dependencies [aa767b0]
147
+ - Updated dependencies [fd2812b]
148
+ - Updated dependencies [9257a9b]
149
+ - Updated dependencies [d4b9ea5]
150
+ - Updated dependencies [dc9cc8c]
151
+ - @funkit/fun-relay@2.2.0
152
+ - @funkit/api-base@1.12.22
153
+ - @funkit/utils@1.1.22
154
+ - @funkit/chains@0.5.2
155
+
156
+ ## 7.1.0-next.19
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [bb6bfce]
161
+ - @funkit/api-base@1.12.22-next.6
162
+
163
+ ## 7.1.0-next.18
164
+
165
+ ### Patch Changes
166
+
167
+ - e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
168
+
169
+ ## 7.1.0-next.17
170
+
171
+ ### Patch Changes
172
+
173
+ - a979216: remove target asset check in lighter
174
+ - 52406e3: feat(connect,fun-relay): add new lighter spot assets
175
+ - 57356c6: feat(connect): add SKY asset
176
+ - 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
177
+ - ab9c1e9: chore: update assets
178
+ - d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
179
+ - Updated dependencies [320236b]
180
+ - Updated dependencies [52406e3]
181
+ - Updated dependencies [2f57830]
182
+ - Updated dependencies [ab9c1e9]
183
+ - Updated dependencies [d4b9ea5]
184
+ - @funkit/fun-relay@2.2.0-next.6
185
+
186
+ ## 7.1.0-next.16
187
+
188
+ ### Patch Changes
189
+
190
+ - f490277: add cache for performance
191
+
192
+ ## 7.1.0-next.15
193
+
194
+ ### Patch Changes
195
+
196
+ - e55876b: fix path alias inside the npm package
197
+
198
+ ## 7.1.0-next.14
199
+
200
+ ### Patch Changes
201
+
202
+ - da4efac: fix types export
203
+
204
+ ## 7.1.0-next.13
205
+
206
+ ### Minor Changes
207
+
208
+ - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
209
+
210
+ Add two new public hooks for fetching recent deposits/direct executions:
211
+
212
+ - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
213
+ - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
214
+
215
+ Both hooks return purified checkout history items suitable for external use and include full JSDoc documentation with usage examples.
216
+
217
+ ### Patch Changes
218
+
219
+ - 2962aaa: feat(connect): remove persisted targetAssetAmount when source token changes - fixes default input amount logic
220
+ - 6802246: feat(connect): remove no eth asset msg for lighter
221
+
222
+ ## 7.1.0-next.12
223
+
224
+ ### Patch Changes
225
+
226
+ - 49c1537: Fix tooltip closing when hovering over its content
227
+ - 573e04e: feat(connect): update border color on fun powered tagline component
228
+ - d4b06e4: add cutOffTimeMs and jsdoc to useRecentDeposit hook
229
+ - 6f08927: Refactor FunTooltip to use Radix UI primitives for improved accessibility and mobile support
230
+ - 89d00a4: Rename useRecentDirectExecutions hook to useRecentDeposits and add optional batchSize parameter
231
+ - adac1ea: feat(connect): added option to display selected route on confirmation screen
232
+ - Updated dependencies [8a48f13]
233
+ - Updated dependencies [fd2812b]
234
+ - @funkit/api-base@1.12.22-next.5
235
+
236
+ ## 7.1.0-next.11
237
+
238
+ ### Patch Changes
239
+
240
+ - d0f4cc0: fix(connect): target asset dropdown persistance
241
+ - 810e64f: feat(connect): update default input value for eth spot
242
+ - e43dc41: feat(connect): migrate IsRelayBypassEnabled flag to statsig
243
+ - d702577: fix time estimate for lighter DE
244
+ - Updated dependencies [7a6ca8c]
245
+ - Updated dependencies [0152e69]
246
+ - Updated dependencies [dc9cc8c]
247
+ - @funkit/api-base@1.12.22-next.4
248
+ - @funkit/fun-relay@2.2.0-next.5
249
+
250
+ ## 7.1.0-next.10
251
+
252
+ ### Patch Changes
253
+
254
+ - c94531b: always use fiat mode for payment method card
255
+ - b033e65: feat(connect): update config to accept modal title fn to support dynamic titles
256
+
3
257
  ## 7.1.0-next.9
4
258
 
5
259
  ### Patch Changes
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  readonly '0x1111111254EEB25477B68fb85Ed929f73A960582': "1inch V5 Router";
25
25
  readonly '0x881D40237659C251811CEC9c364ef91dC08D300C': "Metamask Swap Router";
26
26
  readonly '0x07d82CD44cd598ACf355Af8c8089b30b2a13B088': "Polymarket Withdrawal Block";
27
+ readonly '2ygdTkdUtN9PhoMko12bQi6PimJrqxcKmCvQGkCG6SN7': "Polymarket Withdrawal Block";
27
28
  };
28
29
  };
29
30
  readonly blockedcountries: {
@@ -137,6 +138,108 @@ declare const _default: {
137
138
  readonly path: "FUN_MAINNET_DEPOSIT";
138
139
  };
139
140
  }];
141
+ }, {
142
+ readonly routeId: "LIGHTER_LIT_SPOT_NEW_USER";
143
+ readonly rules: readonly [{
144
+ readonly when: {
145
+ readonly chainId: "1";
146
+ readonly tokenAddress: "0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2";
147
+ };
148
+ readonly use: {
149
+ readonly path: "FUN_MAINNET_DEPOSIT";
150
+ readonly badge: "NATIVE";
151
+ };
152
+ }, {
153
+ readonly when: "*";
154
+ readonly use: {
155
+ readonly path: "FUN_MAINNET_DEPOSIT";
156
+ };
157
+ }];
158
+ }, {
159
+ readonly routeId: "LIGHTER_LINK_SPOT_NEW_USER";
160
+ readonly rules: readonly [{
161
+ readonly when: {
162
+ readonly chainId: "1";
163
+ readonly tokenAddress: "0x514910771AF9Ca656af840dff83E8264EcF986CA";
164
+ };
165
+ readonly use: {
166
+ readonly path: "FUN_MAINNET_DEPOSIT";
167
+ readonly badge: "NATIVE";
168
+ };
169
+ }, {
170
+ readonly when: "*";
171
+ readonly use: {
172
+ readonly path: "FUN_MAINNET_DEPOSIT";
173
+ };
174
+ }];
175
+ }, {
176
+ readonly routeId: "LIGHTER_UNI_SPOT_NEW_USER";
177
+ readonly rules: readonly [{
178
+ readonly when: {
179
+ readonly chainId: "1";
180
+ readonly tokenAddress: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984";
181
+ };
182
+ readonly use: {
183
+ readonly path: "FUN_MAINNET_DEPOSIT";
184
+ readonly badge: "NATIVE";
185
+ };
186
+ }, {
187
+ readonly when: "*";
188
+ readonly use: {
189
+ readonly path: "FUN_MAINNET_DEPOSIT";
190
+ };
191
+ }];
192
+ }, {
193
+ readonly routeId: "LIGHTER_AAVE_SPOT_NEW_USER";
194
+ readonly rules: readonly [{
195
+ readonly when: {
196
+ readonly chainId: "1";
197
+ readonly tokenAddress: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9";
198
+ };
199
+ readonly use: {
200
+ readonly path: "FUN_MAINNET_DEPOSIT";
201
+ readonly badge: "NATIVE";
202
+ };
203
+ }, {
204
+ readonly when: "*";
205
+ readonly use: {
206
+ readonly path: "FUN_MAINNET_DEPOSIT";
207
+ };
208
+ }];
209
+ }, {
210
+ readonly routeId: "LIGHTER_SKY_SPOT_NEW_USER";
211
+ readonly rules: readonly [{
212
+ readonly when: {
213
+ readonly chainId: "1";
214
+ readonly tokenAddress: "0x56072C95FAA701256059aa122697B133aDEd9279";
215
+ };
216
+ readonly use: {
217
+ readonly path: "FUN_MAINNET_DEPOSIT";
218
+ readonly badge: "NATIVE";
219
+ };
220
+ }, {
221
+ readonly when: "*";
222
+ readonly use: {
223
+ readonly path: "FUN_MAINNET_DEPOSIT";
224
+ };
225
+ }];
226
+ }, {
227
+ readonly routeId: "LIGHTER_LDO_SPOT_NEW_USER";
228
+ readonly rules: readonly [{
229
+ readonly when: {
230
+ readonly chainId: "1";
231
+ readonly tokenAddress: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32";
232
+ };
233
+ readonly use: {
234
+ readonly path: "FUN_MAINNET_DEPOSIT";
235
+ readonly badge: "NATIVE";
236
+ };
237
+ }, {
238
+ readonly when: "*";
239
+ readonly use: {
240
+ readonly path: "FUN_MAINNET_DEPOSIT";
241
+ };
242
+ }];
140
243
  }];
141
244
  };
142
245
  readonly enablebitcoin: {
@@ -146,6 +249,13 @@ declare const _default: {
146
249
  readonly value: false;
147
250
  };
148
251
  readonly enablefiatdeposit: {
252
+ readonly variants: readonly [{
253
+ readonly condition: {
254
+ readonly type: "country";
255
+ readonly countryCodes: readonly ["US"];
256
+ };
257
+ readonly value: false;
258
+ }];
149
259
  readonly value: true;
150
260
  };
151
261
  readonly enablemeldpayment: {
@@ -154,18 +264,6 @@ declare const _default: {
154
264
  readonly enabletokentransfer: {
155
265
  readonly value: true;
156
266
  };
157
- readonly enabletokentransfertest: {
158
- readonly variants: readonly [{
159
- readonly conditions: {
160
- readonly all: readonly [{
161
- readonly type: "allowedCountries";
162
- readonly countries: readonly ["SG", "DE"];
163
- }];
164
- };
165
- readonly value: true;
166
- }];
167
- readonly value: false;
168
- };
169
267
  readonly ismexico: {
170
268
  readonly value: {
171
269
  readonly mexico: false;
@@ -193,6 +291,31 @@ declare const _default: {
193
291
  readonly SGD: readonly [130, 645, 1285];
194
292
  };
195
293
  };
294
+ readonly mintokentransfervalue: {
295
+ readonly variants: readonly [{
296
+ readonly condition: {
297
+ readonly type: "country";
298
+ readonly countryCodes: readonly ["CA"];
299
+ };
300
+ readonly value: {
301
+ readonly mainnet: 15;
302
+ readonly nonMainnet: 3;
303
+ };
304
+ }, {
305
+ readonly condition: {
306
+ readonly type: "country";
307
+ readonly countryCodes: readonly ["AU"];
308
+ };
309
+ readonly value: {
310
+ readonly mainnet: 15;
311
+ readonly nonMainnet: 3;
312
+ };
313
+ }];
314
+ readonly value: {
315
+ readonly mainnet: 10;
316
+ readonly nonMainnet: 2.5;
317
+ };
318
+ };
196
319
  readonly showinfobanner: {
197
320
  readonly value: {
198
321
  readonly message: "";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken/TransferToken';
2
+ import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
3
3
  import type { BaseActiveDropdownItemProps } from './BaseActiveDropdownItem';
4
4
  import { type BaseDropdownProps } from './BaseDropdown';
5
5
  interface ChainDropdownProps {
@@ -3,12 +3,14 @@ import type { DynamicTargetAssetCandidate } from '../../providers/FunkitCheckout
3
3
  import { type BaseDropdownProps } from './BaseDropdown';
4
4
  interface ReceiveTokenDropdownProps {
5
5
  chainId: number;
6
+ displayedChainId?: number;
6
7
  tokens: DynamicTargetAssetCandidate[];
7
8
  onTokenSelected: (token: DynamicTargetAssetCandidate) => void;
8
9
  selectedToken?: string;
9
10
  label?: string;
10
11
  activeItemLabel?: string;
11
12
  activeItemProps?: BaseDropdownProps['activeItemProps'];
13
+ maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
12
14
  }
13
- export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, }: ReceiveTokenDropdownProps) => React.JSX.Element;
15
+ export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, maxDropdownHeight, displayedChainId, }: ReceiveTokenDropdownProps) => React.JSX.Element;
14
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken/TransferToken';
2
+ import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
3
3
  import type { BaseDropdownProps } from './BaseDropdown';
4
4
  interface TokenAndChainDropdownProps {
5
5
  isLoading: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken/TransferToken';
2
+ import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
3
3
  import { type BaseDropdownProps } from './BaseDropdown';
4
4
  interface TokenDropdownProps {
5
5
  selectedChainId: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { AssetHoldingsItem } from '~/utils/assets';
2
+ import type { AssetHoldingsItem } from '../../utils/assets';
3
3
  interface FunAssetItemProps {
4
4
  asset: AssetHoldingsItem;
5
5
  isActive?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { DirectExecution } from '@funkit/api-base';
2
2
  import React from 'react';
3
- import type { MergedMultiStepDirectExecution } from '~/hooks/queries/useRecentDirectExecutions';
3
+ import type { MergedMultiStepDirectExecution } from '../../hooks/queries/useRecentDeposits';
4
4
  import type { TextConfigStatus, TextConfigSteps } from '../TransactionStatus/TransactionStatus';
5
5
  import type { FunDirectExecutionStatusProps } from './FunDirectExecutionStatus';
6
6
  export declare function FunDirectExecutionHistoryDetail({ bottomBarId, directExecution, isActiveCheckout, onClose, onAnimationComplete, showCheckoutStatus, customTextConfigStatus, customTextConfigSteps, dangerousCustomDelayedAutoTriggerCutoff, disableAutoUpdate, hideYouReceive, }: {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FunCheckoutStep } from '~/modals/CheckoutModal/stepTransition';
2
+ import { FunCheckoutStep } from '../../modals/CheckoutModal/stepTransition';
3
3
  interface FunCheckoutModalHeightAnimationWrapperProps {
4
4
  children: React.ReactNode;
5
5
  checkoutStep?: FunCheckoutStep;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { NotificationStatus } from '~/modals/CheckoutModal/TransferToken/CheckoutNotification';
2
+ import type { NotificationStatus } from '../../modals/CheckoutModal/TransferToken/CheckoutNotification';
3
3
  export interface FunNotificationBannerIconProps {
4
4
  iconUrl?: string | null;
5
5
  fallbackIconUrl?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type BluvoExchangeType } from '~/consts/bluvo';
2
+ import { type BluvoExchangeType } from '../../consts/bluvo';
3
3
  interface FunSelectBrokerageProps {
4
4
  isDisabled?: boolean;
5
5
  onSelect: (value: BluvoExchangeType) => void;
@@ -1,6 +1,2 @@
1
- export declare const tooltipContainer: string;
2
- export declare const tooltipStyle: string;
3
- export declare const tooltipStyleBottom: string;
4
- export declare const tooltipStyleCenter: string;
5
- export declare const tooltipStyleRight: string;
6
- export declare const tooltipStyleLeft: string;
1
+ export declare const tooltipTrigger: string;
2
+ export declare const tooltipContent: string;
@@ -3,36 +3,31 @@ import { type BoxProps } from '../Box/Box';
3
3
  export interface FunTooltipProps {
4
4
  content: ReactNode;
5
5
  children?: ReactNode;
6
+ /**
7
+ * @deprecated No longer needed. Radix handles collision detection automatically.
8
+ */
6
9
  wrapperElementRef?: React.RefObject<HTMLDivElement>;
7
- /** Renders the open tooltip based on available horizontal space, ie. ignoring the `tooltipPosition` prop,
8
- * if the tooltip were to overflow beyond the boundaries of the provided `wrapperElementRef` element
9
- * it renders either to the left or right side based on available horizontal space */
10
+ /**
11
+ * @deprecated No longer needed. Radix handles collision detection automatically.
12
+ */
10
13
  enableDynamicPositioning?: boolean;
11
14
  /**
12
- * To be expanded as needed, currently supports these positions:
13
- * center: above children,center
14
- * left: left of children, center
15
- * right: above children, right
15
+ * Tooltip position relative to trigger:
16
+ * - 'center': above trigger, centered (default)
17
+ * - 'left': above trigger, aligned to left edge
18
+ * - 'right': above trigger, aligned to right edge
16
19
  */
17
20
  tooltipPosition?: 'center' | 'left' | 'right';
18
21
  /**
19
- * Bottom offset of the tooltip from the children element, by default it is 6px
20
- * This is used to adjust the tooltip position when it is rendered in the center
22
+ * Offset from trigger element in pixels. Defaults to 6px.
21
23
  */
22
- bottomOffset?: boolean;
24
+ sideOffset?: number;
23
25
  maxWidth?: number;
24
- /** Whether to display the tooltip on hover or after clicking */
25
- displayType?: 'hover' | 'click';
26
- /**
27
- * Delay after which the tooltip is hidden. Defaults to 150ms
28
- * Based on display type the countdown starts immediately ('click') or after no longer hovering ('hover')
29
- */
30
- hideDelay?: number;
31
26
  /**
32
- * Delay before the tooltip is shown. Defaults to 0ms. Primarily used when displayType is set to hover and we want to prevent multiple tooltips from being visible due to rapid mouse movements.
27
+ * Delay in ms before showing the tooltip. Defaults to 0ms.
33
28
  */
34
29
  startDelay?: number;
35
30
  width?: BoxProps['width'];
36
31
  }
37
32
  export declare const TooltipAnchorRefContext: React.Context<React.RefObject<HTMLElement> | null>;
38
- export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, bottomOffset, maxWidth, displayType, hideDelay, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
33
+ export declare const FunTooltip: ({ content, children, tooltipPosition, sideOffset, maxWidth, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { DirectExecutionType } from '@funkit/api-base';
3
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
4
- import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
3
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
+ import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
5
5
  interface PaymentAmountSummaryProps {
6
6
  isLoading: boolean;
7
7
  targetChainId: string;
@@ -1,6 +1,6 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import type { CheckoutFees } from '~/domains/fees';
3
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
2
+ import type { CheckoutFees } from '../../domains/fees';
3
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
4
  import { type FunTooltipProps } from '../FunTooltip/FunTooltip';
5
5
  export declare const NO_DATA_VALUE = "-";
6
6
  interface PaymentFeesSummaryProps {
@@ -1,4 +1,4 @@
1
- import type { TrackEventData } from '~/hooks/track/useTrack';
2
- import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
1
+ import type { TrackEventData } from '../../hooks/track/useTrack';
2
+ import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
3
3
  import type { FeeItem } from './PaymentFeesSummary';
4
4
  export declare const trackEventFromPaymentFeesSummary: (checkoutItem: FunkitActiveCheckoutItem, feeItems: FeeItem[], isWithdrawal: boolean) => TrackEventData;
@@ -1,6 +1,6 @@
1
1
  import type { FunAddress } from '@funkit/api-base';
2
2
  import React from 'react';
3
- import type { PaymentMethodInfo } from '~/domains/paymentMethods';
3
+ import type { PaymentMethodInfo } from '../../domains/paymentMethods';
4
4
  interface PaymentMethodSummaryProps {
5
5
  paymentMethodInfo: PaymentMethodInfo;
6
6
  customRecipient: FunAddress | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { FunAddress } from '@funkit/api-base';
2
2
  import React, { type ReactNode } from 'react';
3
- import { type PaymentMethodInfo } from '~/domains/paymentMethods';
3
+ import { type PaymentMethodInfo } from '../../domains/paymentMethods';
4
4
  type PaymentRouteSummaryProps = {
5
5
  paymentMethodInfo: PaymentMethodInfo | null;
6
6
  customRecipient: FunAddress | undefined;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const RelayIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TransferTokenDefault } from '~/hooks/useTokenChain';
2
+ import type { TransferTokenDefault } from '../../hooks/useTokenChain';
3
3
  interface NewTokenDepositAlertProps {
4
4
  onClick: (value: TransferTokenDefault) => void;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import type { ApiFunkitCheckoutQuoteResult } from '@funkit/utils';
2
2
  import React, { type ReactNode } from 'react';
3
- import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
4
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
3
+ import type { ServerCheckoutConfig } from '../../domains/clientMetadata';
4
+ import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext';
5
5
  interface ReceiveAmountProps {
6
6
  config: ServerCheckoutConfig | FunkitCheckoutConfig;
7
7
  /** To override the default icon if custom one is needed */