@funkit/connect 7.1.0-next.8 → 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.
- package/CHANGELOG.md +247 -0
- package/dist/__generated__/default_configs.d.ts +117 -12
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +5 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +2 -6
- package/dist/components/FunTooltip/FunTooltip.d.ts +14 -19
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
- package/dist/components/Icons/RelayIcon.d.ts +4 -0
- package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
- package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
- package/dist/consts/customers.d.ts +1 -1
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkout.d.ts +1 -1
- package/dist/domains/checkoutRecipient.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/fees.d.ts +2 -2
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/domains/quote.d.ts +4 -4
- package/dist/domains/relay.d.ts +15 -1
- package/dist/domains/wallet.d.ts +1 -1
- package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
- package/dist/hooks/queries/useRecentDeposits.d.ts +117 -0
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +34 -36
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useBluvo.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
- package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
- package/dist/hooks/useCountdown.d.ts +1 -1
- package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -1
- package/dist/hooks/useHasHover.d.ts +1 -0
- package/dist/hooks/useIsBlacklisted.d.ts +1 -1
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
- package/dist/hooks/useMinDeposit.d.ts +1 -1
- package/dist/hooks/useOnNewNotification.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +4 -3
- package/dist/hooks/useRelayBypass.d.ts +1 -1
- package/dist/hooks/useTokenChain.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/index.css +90 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3181 -2638
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
- package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
- package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
- package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +21 -2
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitI18nProvider.d.ts +1 -1
- package/dist/providers/FunkitProvider.d.ts +1 -1
- package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
- package/dist/themes/darkTheme.d.ts +1 -1
- package/dist/themes/lightTheme.d.ts +1 -1
- package/dist/utils/assets.d.ts +3 -2
- package/dist/utils/bluvo.d.ts +2 -2
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/customer.d.ts +2 -2
- package/dist/utils/flags/config.d.ts +1 -1
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +2 -0
- package/dist/utils/lighter.d.ts +13 -0
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
- package/dist/utils/tokenIconUrl.d.ts +1 -1
- package/dist/utils/withdrawal.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +2 -2
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-JWFF4AAL.js → chunk-2E4PDCEJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SHBUZ7U7.js → chunk-35Q4HKAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-362NXNTM.js → chunk-3IYE623P.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2L43XSW3.js → chunk-47QF6EET.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BPZ2XJO2.js → chunk-4ZXII3UA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2STUC6QL.js → chunk-5EAOMOTO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2KUBG3S6.js → chunk-77UTBHGP.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OLOIXTYS.js → chunk-ABQKUIUD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IFON7E6U.js → chunk-AI55G5DD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DNSG5Q7V.js → chunk-ARYAYQ7Z.js} +3 -0
- package/dist/wallets/walletConnectors/{chunk-OL5ZO7E4.js → chunk-CF5HOLH2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SULRQO27.js → chunk-CZYUE3AR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HWPKCIBE.js → chunk-EMBU4RXK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDAVGY5F.js → chunk-FA5DTT5R.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BYXPFMI7.js → chunk-FCG5Q6JX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M3NZ6R2E.js → chunk-HPHADOYD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VYBAYMP3.js → chunk-JFHP4YJG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DRO6WYMM.js → chunk-JTLLKY2O.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BBOM42DL.js → chunk-LW6S43RE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-D6AOOO5F.js → chunk-M2HGGTFE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-XWUJE7MW.js → chunk-MQSCN4BO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FKJJQNKX.js → chunk-MRRZOQGZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OPAZMNA7.js → chunk-QHC4I2FM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RZIO5TFF.js → chunk-QS2XIZEH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-A5N6B5UW.js → chunk-R6Y36CMA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2HYNUNAS.js → chunk-RA7MCWF4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OBOVHCEI.js → chunk-RLRQYUYC.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TCAGNB4B.js → chunk-T5KHVUFR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BOU4WKRZ.js → chunk-TMFH6GXS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZZZRUXZE.js → chunk-TNZJRXUQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDIEHTMB.js → chunk-U5QP7MI5.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NWIQNBJU.js → chunk-UOTQQJJD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RNBEDQHF.js → chunk-VU2RNIQG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VR4TBQ6S.js → chunk-VYNVAGSV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NT2HYJKW.js → chunk-W7Y6I22Y.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7QONTUXT.js → chunk-YLJDPTYF.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HS3C7OQV.js → chunk-YMUSFW44.js} +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +45 -45
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +2 -2
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +9 -7
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,252 @@
|
|
|
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
|
+
|
|
237
|
+
## 7.1.0-next.9
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- c93ad0c: feat(connect): sync dynamicRoutingId with dynamic target asset
|
|
242
|
+
- 7312429: adopt checkedIndexedAccess for safety
|
|
243
|
+
- c93ad0c: feat(connect): add select target asset dropdown to source change screen
|
|
244
|
+
- Updated dependencies [7312429]
|
|
245
|
+
- Updated dependencies [0168375]
|
|
246
|
+
- @funkit/fun-relay@2.2.0-next.4
|
|
247
|
+
- @funkit/utils@1.1.22-next.2
|
|
248
|
+
- @funkit/api-base@1.12.22-next.3
|
|
249
|
+
|
|
3
250
|
## 7.1.0-next.8
|
|
4
251
|
|
|
5
252
|
### 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 '
|
|
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 {
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DynamicTargetAssetCandidate } from '../../providers/FunkitCheckoutContext';
|
|
3
|
+
import { type BaseDropdownProps } from './BaseDropdown';
|
|
3
4
|
interface ReceiveTokenDropdownProps {
|
|
4
5
|
chainId: number;
|
|
6
|
+
displayedChainId?: number;
|
|
5
7
|
tokens: DynamicTargetAssetCandidate[];
|
|
6
8
|
onTokenSelected: (token: DynamicTargetAssetCandidate) => void;
|
|
7
9
|
selectedToken?: string;
|
|
8
10
|
label?: string;
|
|
9
11
|
activeItemLabel?: string;
|
|
12
|
+
activeItemProps?: BaseDropdownProps['activeItemProps'];
|
|
13
|
+
maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
|
|
10
14
|
}
|
|
11
|
-
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
15
|
+
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, maxDropdownHeight, displayedChainId, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
12
16
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { TokenTransferSourceChainsAndAssets } from '
|
|
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 '
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { MergedMultiStepDirectExecution } from '
|
|
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 '
|
|
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 '
|
|
2
|
+
import type { NotificationStatus } from '../../modals/CheckoutModal/TransferToken/CheckoutNotification';
|
|
3
3
|
export interface FunNotificationBannerIconProps {
|
|
4
4
|
iconUrl?: string | null;
|
|
5
5
|
fallbackIconUrl?: string;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
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
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated No longer needed. Radix handles collision detection automatically.
|
|
12
|
+
*/
|
|
10
13
|
enableDynamicPositioning?: boolean;
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
13
|
-
* center: above
|
|
14
|
-
* left:
|
|
15
|
-
* right: above
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
|
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,
|
|
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 '
|
|
4
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
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 '
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
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 '
|
|
2
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
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 '
|
|
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 '
|
|
3
|
+
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
4
|
type PaymentRouteSummaryProps = {
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo | null;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
@@ -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 '
|
|
4
|
-
import type { FunkitCheckoutConfig } from '
|
|
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 '
|
|
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 '
|
|
3
|
+
import type { CheckoutProgressStep } from '../../providers/FunkitCheckoutContext';
|
|
4
4
|
interface TransactionStatusProps {
|
|
5
5
|
isSlowTransaction: boolean;
|
|
6
6
|
isWithdrawal: boolean;
|