@funkit/connect 7.1.0-next.9 → 7.1.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 (134) hide show
  1. package/CHANGELOG.md +234 -0
  2. package/dist/__generated__/default_configs.d.ts +117 -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 +1 -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 +4 -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/index.css +90 -29
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.js +2936 -2555
  61. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
  62. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
  63. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
  64. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
  65. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
  66. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
  67. package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
  68. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
  69. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
  70. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  71. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
  72. package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
  73. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
  74. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
  75. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
  76. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  77. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
  78. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
  79. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
  80. package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
  81. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  82. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
  83. package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
  84. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  85. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
  86. package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
  87. package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
  88. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
  89. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
  90. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
  91. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
  92. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  93. package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
  94. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
  95. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
  96. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
  97. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
  98. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
  99. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
  100. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
  101. package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
  102. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
  103. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
  104. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
  105. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  106. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
  107. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
  108. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
  109. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
  110. package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
  111. package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
  112. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
  113. package/dist/providers/FunkitConfigContext.d.ts +12 -1
  114. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  115. package/dist/providers/FunkitI18nProvider.d.ts +1 -1
  116. package/dist/providers/FunkitProvider.d.ts +1 -1
  117. package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
  118. package/dist/themes/darkTheme.d.ts +1 -1
  119. package/dist/themes/lightTheme.d.ts +1 -1
  120. package/dist/utils/assets.d.ts +1 -1
  121. package/dist/utils/bluvo.d.ts +2 -2
  122. package/dist/utils/checkout.d.ts +2 -2
  123. package/dist/utils/customer.d.ts +2 -2
  124. package/dist/utils/flags/config.d.ts +1 -1
  125. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
  126. package/dist/utils/funkitProvider.d.ts +2 -0
  127. package/dist/utils/lighter.d.ts +5 -0
  128. package/dist/utils/payment.d.ts +1 -1
  129. package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
  130. package/dist/utils/withdrawal.d.ts +1 -1
  131. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
  132. package/dist/wallets/walletConnectors/index.js +6 -6
  133. package/package.json +9 -7
  134. package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
package/CHANGELOG.md CHANGED
@@ -1,5 +1,239 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
8
+
9
+ Add two new public hooks for fetching recent deposits/direct executions:
10
+
11
+ - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
12
+ - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
13
+
14
+ Both hooks return purified checkout history items suitable for external use and include full JSDoc documentation with usage examples.
15
+
16
+ - fa6cb1f: Add soft-close feature for checkout modal when transaction is in progress
17
+
18
+ - When a transaction is in progress (checkoutProgress.step >= 1), the close button now hides the modal instead of closing it, preserving state
19
+ - Added `useSoftHiddenCheckout` hook for managing soft-hidden checkout state
20
+ - Added internal `onCheckoutConflict` handler to resolve conflicts when `beginCheckout` is called while a checkout is soft-hidden
21
+ - Extended `FunkitCheckoutOnCloseResult` with optional `isSoftHidden` field
22
+ - Added `MODAL_SOFT_HIDDEN` analytics event
23
+
24
+ ### Patch Changes
25
+
26
+ - 9be8d42: Add unloggedin blocked reason with i18n support across all languages
27
+ - 28136c9: feat(connect): migrate MeldQuickOptions flag to statsig
28
+ - 39406ab: fix(connect): fix undefined error when reading destinationAmount
29
+ - d3322be: chore: updated labels
30
+ - f490277: add cache for performance
31
+ - 2962aaa: feat(connect): remove persisted targetAssetAmount when source token changes - fixes default input amount logic
32
+ - 656587e: fix(connect): disable withdrawal quote for blacklisted withdrawal addresses
33
+ - b5e85cf: feat(connect): center 2FA error
34
+ - a979216: remove target asset check in lighter
35
+ - 13a6a7b: feat(connect): hide min amount from supported chain label on xs viewport
36
+ - a3a4275: feat(connect): enable monad for hyena + based
37
+ - c93ad0c: feat(connect): sync dynamicRoutingId with dynamic target asset
38
+ - 52406e3: feat(connect,fun-relay): add new lighter spot assets
39
+ - 26f2b79: feat(connect): add statsig tracking to quick options clicks
40
+ - 40bf6f4: reorganize file location
41
+ - 92eb741: Fix input normalization re-attachment when used with Framer Motion DOM swapping
42
+ - 923b998: Fix RemoveScroll to not block scrolling when dialog is hidden
43
+ - 49c1537: Fix tooltip closing when hovering over its content
44
+ - 1e7f994: feat(connect): update lighter time to 2min
45
+ - f3c3431: feat(connect): add custom processing message for lighter native flow
46
+ - cf4f7ba: fix(connect): disable is same asset check for wallet flow if dynamicRoutingId is provided
47
+ - 361d54c: feat(connect): rounding to the nearest tick size
48
+ - 8feddc9: set default modal size medium
49
+ - 17dd504: fix(connect): relax withMoonpayMeldQuote error logs
50
+ - 47acbdc: chore(connect): change error message
51
+ - e55876b: fix path alias inside the npm package
52
+ - 6802246: feat(connect): remove no eth asset msg for lighter
53
+ - c289ca6: feat(fun-relay): require api key for relay to prevent rate limiting
54
+ feat(connect): pass pseudo api key to fun-relay
55
+ - 18ce29c: deprecate some unused code
56
+ - 437a9f2: refactor(connect): swap out 2FA input for fun 2FA component on brokerage flow
57
+ - 0c6cc6e: feat(connect): check udaparams for default settings (chain+token) for token transfer dropdown
58
+ - f07bdfb: refactor(connect): cleanup remaining mesh references in bluvo screens
59
+ - f7fa2bc: disable non mainnet eth for lighter eth
60
+ - 573e04e: feat(connect): update border color on fun powered tagline component
61
+ - 7312429: adopt checkedIndexedAccess for safety
62
+ - 57356c6: feat(connect): add SKY asset
63
+ - 652c5c2: feat(connect): add blacklisted withdrawal address to statsig
64
+ - 0ad5896: fix withdraw amount is NaN
65
+ - 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
66
+ - b09006f: add lighter chain to destination
67
+ - c93ad0c: feat(connect): add select target asset dropdown to source change screen
68
+ - d4b06e4: add cutOffTimeMs and jsdoc to useRecentDeposit hook
69
+ - 62a8860: remove unused data
70
+ - c94531b: always use fiat mode for payment method card
71
+ - 8b8d030: feat(connect,api-base): pass api key to bluvo requests to frog
72
+ - 75c154f: refactor(connect): use portal for tooltips
73
+ - d0f4cc0: fix(connect): target asset dropdown persistance
74
+ - d0fdef4: add insufficient eth message
75
+ - 6f66084: add islighter flow
76
+ - ab9c1e9: chore: update assets
77
+ - 087557e: feat(connect): migrate showpoweredtagline flag to statsig
78
+ - 6f08927: Refactor FunTooltip to use Radix UI primitives for improved accessibility and mobile support
79
+ - 89d00a4: Rename useRecentDirectExecutions hook to useRecentDeposits and add optional batchSize parameter
80
+ - b1c4d85: feat(connect): support for `dynamicRoutingId` param
81
+ - 810e64f: feat(connect): update default input value for eth spot
82
+ - 37ce6d3: fix(connect): fix misfiring withdrawal quotes
83
+ - 5a8fe96: fix(connect): normalize feebreakdown response
84
+ - e43dc41: feat(connect): migrate IsRelayBypassEnabled flag to statsig
85
+ - 188da7b: remove genActionParam check in init
86
+ - ae172d8: move file around
87
+ - d702577: fix time estimate for lighter DE
88
+ - da4efac: fix types export
89
+ - d336735: feat: add tron chain object
90
+ - 0b85676: feat(connect): token transfer ui - default to arbitrum chain for lighter
91
+ - 3df0c66: feat(connect): add insufficient gas error during execution
92
+ - b033e65: feat(connect): update config to accept modal title fn to support dynamic titles
93
+ - 62a557d: tradefox theme implemented
94
+ - a94f293: do not over-fetching bridge account
95
+ - e3f0125: add new check for isLighterEthSpot
96
+ - 115d875: fix(connect): update statsig user when api key changes
97
+ - 29b449c: Use ETH as source amount on input screen instead of USD for Lighter ETH Spot
98
+ - 9257a9b: remove tick size read in connect
99
+ - e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
100
+ - 47acbdc: Update all translation files to replace "checkout" with "deposit" terminology across Spanish, French, Japanese, Korean, Russian, Turkish, and Chinese translations
101
+ - d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
102
+ - adac1ea: feat(connect): added option to display selected route on confirmation screen
103
+ - ade8399: feat(connect): measure modal initial loading
104
+ - 58b4014: feat(connect): add logo asset for optimism
105
+ - Updated dependencies [173d602]
106
+ - Updated dependencies [7a6ca8c]
107
+ - Updated dependencies [3601d23]
108
+ - Updated dependencies [320236b]
109
+ - Updated dependencies [52406e3]
110
+ - Updated dependencies [e009c8d]
111
+ - Updated dependencies [c289ca6]
112
+ - Updated dependencies [8a48f13]
113
+ - Updated dependencies [7312429]
114
+ - Updated dependencies [6d91583]
115
+ - Updated dependencies [2f57830]
116
+ - Updated dependencies [0152e69]
117
+ - Updated dependencies [8b8d030]
118
+ - Updated dependencies [0168375]
119
+ - Updated dependencies [fd5fe29]
120
+ - Updated dependencies [ab9c1e9]
121
+ - Updated dependencies [bb6bfce]
122
+ - Updated dependencies [c463492]
123
+ - Updated dependencies [f0f39af]
124
+ - Updated dependencies [85ab331]
125
+ - Updated dependencies [d336735]
126
+ - Updated dependencies [aa767b0]
127
+ - Updated dependencies [fd2812b]
128
+ - Updated dependencies [9257a9b]
129
+ - Updated dependencies [d4b9ea5]
130
+ - Updated dependencies [dc9cc8c]
131
+ - @funkit/fun-relay@2.2.0
132
+ - @funkit/api-base@1.12.22
133
+ - @funkit/utils@1.1.22
134
+ - @funkit/chains@0.5.2
135
+
136
+ ## 7.1.0-next.19
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [bb6bfce]
141
+ - @funkit/api-base@1.12.22-next.6
142
+
143
+ ## 7.1.0-next.18
144
+
145
+ ### Patch Changes
146
+
147
+ - e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
148
+
149
+ ## 7.1.0-next.17
150
+
151
+ ### Patch Changes
152
+
153
+ - a979216: remove target asset check in lighter
154
+ - 52406e3: feat(connect,fun-relay): add new lighter spot assets
155
+ - 57356c6: feat(connect): add SKY asset
156
+ - 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
157
+ - ab9c1e9: chore: update assets
158
+ - d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
159
+ - Updated dependencies [320236b]
160
+ - Updated dependencies [52406e3]
161
+ - Updated dependencies [2f57830]
162
+ - Updated dependencies [ab9c1e9]
163
+ - Updated dependencies [d4b9ea5]
164
+ - @funkit/fun-relay@2.2.0-next.6
165
+
166
+ ## 7.1.0-next.16
167
+
168
+ ### Patch Changes
169
+
170
+ - f490277: add cache for performance
171
+
172
+ ## 7.1.0-next.15
173
+
174
+ ### Patch Changes
175
+
176
+ - e55876b: fix path alias inside the npm package
177
+
178
+ ## 7.1.0-next.14
179
+
180
+ ### Patch Changes
181
+
182
+ - da4efac: fix types export
183
+
184
+ ## 7.1.0-next.13
185
+
186
+ ### Minor Changes
187
+
188
+ - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
189
+
190
+ Add two new public hooks for fetching recent deposits/direct executions:
191
+
192
+ - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
193
+ - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
194
+
195
+ Both hooks return purified checkout history items suitable for external use and include full JSDoc documentation with usage examples.
196
+
197
+ ### Patch Changes
198
+
199
+ - 2962aaa: feat(connect): remove persisted targetAssetAmount when source token changes - fixes default input amount logic
200
+ - 6802246: feat(connect): remove no eth asset msg for lighter
201
+
202
+ ## 7.1.0-next.12
203
+
204
+ ### Patch Changes
205
+
206
+ - 49c1537: Fix tooltip closing when hovering over its content
207
+ - 573e04e: feat(connect): update border color on fun powered tagline component
208
+ - d4b06e4: add cutOffTimeMs and jsdoc to useRecentDeposit hook
209
+ - 6f08927: Refactor FunTooltip to use Radix UI primitives for improved accessibility and mobile support
210
+ - 89d00a4: Rename useRecentDirectExecutions hook to useRecentDeposits and add optional batchSize parameter
211
+ - adac1ea: feat(connect): added option to display selected route on confirmation screen
212
+ - Updated dependencies [8a48f13]
213
+ - Updated dependencies [fd2812b]
214
+ - @funkit/api-base@1.12.22-next.5
215
+
216
+ ## 7.1.0-next.11
217
+
218
+ ### Patch Changes
219
+
220
+ - d0f4cc0: fix(connect): target asset dropdown persistance
221
+ - 810e64f: feat(connect): update default input value for eth spot
222
+ - e43dc41: feat(connect): migrate IsRelayBypassEnabled flag to statsig
223
+ - d702577: fix time estimate for lighter DE
224
+ - Updated dependencies [7a6ca8c]
225
+ - Updated dependencies [0152e69]
226
+ - Updated dependencies [dc9cc8c]
227
+ - @funkit/api-base@1.12.22-next.4
228
+ - @funkit/fun-relay@2.2.0-next.5
229
+
230
+ ## 7.1.0-next.10
231
+
232
+ ### Patch Changes
233
+
234
+ - c94531b: always use fiat mode for payment method card
235
+ - b033e65: feat(connect): update config to accept modal title fn to support dynamic titles
236
+
3
237
  ## 7.1.0-next.9
4
238
 
5
239
  ### Patch Changes
@@ -137,6 +137,91 @@ declare const _default: {
137
137
  readonly path: "FUN_MAINNET_DEPOSIT";
138
138
  };
139
139
  }];
140
+ }, {
141
+ readonly routeId: "LIGHTER_LINK_SPOT_NEW_USER";
142
+ readonly rules: readonly [{
143
+ readonly when: {
144
+ readonly chainId: "1";
145
+ readonly tokenAddress: "0x514910771AF9Ca656af840dff83E8264EcF986CA";
146
+ };
147
+ readonly use: {
148
+ readonly path: "FUN_MAINNET_DEPOSIT";
149
+ readonly badge: "NATIVE";
150
+ };
151
+ }, {
152
+ readonly when: "*";
153
+ readonly use: {
154
+ readonly path: "FUN_MAINNET_DEPOSIT";
155
+ };
156
+ }];
157
+ }, {
158
+ readonly routeId: "LIGHTER_UNI_SPOT_NEW_USER";
159
+ readonly rules: readonly [{
160
+ readonly when: {
161
+ readonly chainId: "1";
162
+ readonly tokenAddress: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984";
163
+ };
164
+ readonly use: {
165
+ readonly path: "FUN_MAINNET_DEPOSIT";
166
+ readonly badge: "NATIVE";
167
+ };
168
+ }, {
169
+ readonly when: "*";
170
+ readonly use: {
171
+ readonly path: "FUN_MAINNET_DEPOSIT";
172
+ };
173
+ }];
174
+ }, {
175
+ readonly routeId: "LIGHTER_AAVE_SPOT_NEW_USER";
176
+ readonly rules: readonly [{
177
+ readonly when: {
178
+ readonly chainId: "1";
179
+ readonly tokenAddress: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9";
180
+ };
181
+ readonly use: {
182
+ readonly path: "FUN_MAINNET_DEPOSIT";
183
+ readonly badge: "NATIVE";
184
+ };
185
+ }, {
186
+ readonly when: "*";
187
+ readonly use: {
188
+ readonly path: "FUN_MAINNET_DEPOSIT";
189
+ };
190
+ }];
191
+ }, {
192
+ readonly routeId: "LIGHTER_SKY_SPOT_NEW_USER";
193
+ readonly rules: readonly [{
194
+ readonly when: {
195
+ readonly chainId: "1";
196
+ readonly tokenAddress: "0x56072C95FAA701256059aa122697B133aDEd9279";
197
+ };
198
+ readonly use: {
199
+ readonly path: "FUN_MAINNET_DEPOSIT";
200
+ readonly badge: "NATIVE";
201
+ };
202
+ }, {
203
+ readonly when: "*";
204
+ readonly use: {
205
+ readonly path: "FUN_MAINNET_DEPOSIT";
206
+ };
207
+ }];
208
+ }, {
209
+ readonly routeId: "LIGHTER_LDO_SPOT_NEW_USER";
210
+ readonly rules: readonly [{
211
+ readonly when: {
212
+ readonly chainId: "1";
213
+ readonly tokenAddress: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32";
214
+ };
215
+ readonly use: {
216
+ readonly path: "FUN_MAINNET_DEPOSIT";
217
+ readonly badge: "NATIVE";
218
+ };
219
+ }, {
220
+ readonly when: "*";
221
+ readonly use: {
222
+ readonly path: "FUN_MAINNET_DEPOSIT";
223
+ };
224
+ }];
140
225
  }];
141
226
  };
142
227
  readonly enablebitcoin: {
@@ -146,6 +231,13 @@ declare const _default: {
146
231
  readonly value: false;
147
232
  };
148
233
  readonly enablefiatdeposit: {
234
+ readonly variants: readonly [{
235
+ readonly condition: {
236
+ readonly type: "country";
237
+ readonly countryCodes: readonly ["US"];
238
+ };
239
+ readonly value: false;
240
+ }];
149
241
  readonly value: true;
150
242
  };
151
243
  readonly enablemeldpayment: {
@@ -154,18 +246,6 @@ declare const _default: {
154
246
  readonly enabletokentransfer: {
155
247
  readonly value: true;
156
248
  };
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
249
  readonly ismexico: {
170
250
  readonly value: {
171
251
  readonly mexico: false;
@@ -193,6 +273,31 @@ declare const _default: {
193
273
  readonly SGD: readonly [130, 645, 1285];
194
274
  };
195
275
  };
276
+ readonly mintokentransfervalue: {
277
+ readonly variants: readonly [{
278
+ readonly condition: {
279
+ readonly type: "country";
280
+ readonly countryCodes: readonly ["CA"];
281
+ };
282
+ readonly value: {
283
+ readonly mainnet: 15;
284
+ readonly nonMainnet: 3;
285
+ };
286
+ }, {
287
+ readonly condition: {
288
+ readonly type: "country";
289
+ readonly countryCodes: readonly ["AU"];
290
+ };
291
+ readonly value: {
292
+ readonly mainnet: 15;
293
+ readonly nonMainnet: 3;
294
+ };
295
+ }];
296
+ readonly value: {
297
+ readonly mainnet: 10;
298
+ readonly nonMainnet: 2.5;
299
+ };
300
+ };
196
301
  readonly showinfobanner: {
197
302
  readonly value: {
198
303
  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 */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PaymentMethod } from '~/domains/paymentMethods';
2
+ import { PaymentMethod } from '../../domains/paymentMethods';
3
3
  import { type FunPaymentMethodItemProps } from '../FunPaymentMethodItem/FunPaymentMethodItem';
4
4
  interface SourcePaymentMethodItemProps extends Omit<FunPaymentMethodItemProps, 'valueIcon'> {
5
5
  type: PaymentMethod;
@@ -1,6 +1,6 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import React, { type ReactNode } from 'react';
3
- import type { CheckoutProgressStep } from '~/providers/FunkitCheckoutContext';
3
+ import type { CheckoutProgressStep } from '../../providers/FunkitCheckoutContext';
4
4
  interface TransactionStatusProps {
5
5
  isSlowTransaction: boolean;
6
6
  isWithdrawal: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { FeeValue } from '~/hooks/useTokenTransfer';
2
+ import type { FeeValue } from '../../hooks/useTokenTransfer';
3
3
  interface TransferTokenDetailsProps {
4
4
  disabled?: boolean;
5
5
  estProcessingTime?: number;
@@ -1,4 +1,4 @@
1
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
1
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
2
  export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
3
3
  export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
4
4
  export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";