@funkit/connect 3.5.0 → 4.0.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 +35 -0
- package/dist/{chunk-77C753LI.js → chunk-3F3EYDDR.js} +2 -1
- package/dist/{chunk-XWW5QOD4.js → chunk-LTOE4GIY.js} +2 -1
- package/dist/{chunk-BY224HGT.js → chunk-OMAXDH7G.js} +2 -1
- package/dist/components/AsyncImage/AsyncImage.d.ts +3 -3
- package/dist/components/AsyncImage/useAsyncImage.d.ts +1 -1
- package/dist/components/Avatar/EmojiAvatar.d.ts +1 -1
- package/dist/components/Box/Box.d.ts +8 -8
- package/dist/components/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/ConnectButton/ConnectButton.d.ts +1 -1
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +2 -2
- package/dist/components/ConnectButton/formatENS.d.ts +1 -1
- package/dist/components/CopyAddress/CopyAddress.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +4 -4
- package/dist/components/Dropdown/BaseDropdown.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
- package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/dist/components/FunAlert/FunAlert.d.ts +2 -2
- package/dist/components/FunAsset/FunAssetBadge.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +1 -1
- package/dist/components/FunBadge/FunBadge.d.ts +1 -1
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +1 -1
- package/dist/components/FunButton/FunBackButton.d.ts +1 -1
- package/dist/components/FunButton/FunButton.d.ts +1 -1
- package/dist/components/FunButton/FunIconButton.d.ts +1 -1
- package/dist/components/FunButton/FunLinkButton.d.ts +1 -1
- package/dist/components/FunButton/FunRedirectButton.d.ts +1 -1
- package/dist/components/FunButton/FunSignInButton.d.ts +1 -1
- package/dist/components/FunConnectOptions/ConnectDetails.d.ts +1 -1
- package/dist/components/FunConnectOptions/FunConnectResultStep.d.ts +1 -1
- package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -2
- package/dist/components/FunConnectOptions/FunWeb3ConnectingStep.d.ts +1 -1
- package/dist/components/FunCountdown/FunCountdown.d.ts +1 -1
- package/dist/components/FunDivider/FunDivider.d.ts +1 -1
- package/dist/components/FunGuarantees/FunGuarantees.d.ts +3 -3
- package/dist/components/FunInput/FunInput.d.ts +2 -2
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -1
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +3 -3
- package/dist/components/FunMessage/FunMessage.d.ts +1 -1
- package/dist/components/FunNoResults/FunNoResults.d.ts +1 -1
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +1 -1
- package/dist/components/FunNotification/FunNotification.d.ts +2 -2
- package/dist/components/FunOptionBox/FunOptionBox.d.ts +2 -2
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +1 -1
- package/dist/components/FunSelect/FunClickOutside.d.ts +1 -1
- package/dist/components/FunSelect/FunSelect.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +2 -2
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +4 -4
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +1 -1
- package/dist/components/FunSkeletonLoader/FunSkeletonCircle.d.ts +1 -1
- package/dist/components/FunSocials/FunSocials.d.ts +2 -2
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +3 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +7 -0
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +3 -3
- package/dist/components/Icons/FunkitPaymentsIconLine.d.ts +1 -1
- package/dist/components/QRCode/QRCode.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +3 -3
- package/dist/consts/funkit.d.ts +3 -3
- package/dist/consts/mesh.d.ts +45 -4
- package/dist/css/atoms.d.ts +1 -1
- package/dist/css/cssObjectFromTheme.d.ts +1 -1
- package/dist/css/cssStringFromTheme.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +10 -8
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkoutFees.d.ts +3 -3
- package/dist/domains/clientMetadata.d.ts +3 -2
- package/dist/domains/paymentMethods.d.ts +9 -6
- package/dist/domains/quote.d.ts +9 -14
- package/dist/hooks/useCheckoutModalTitle.d.ts +1 -1
- package/dist/hooks/useCheckoutTransferDepositAddress.d.ts +2 -2
- package/dist/hooks/useCheckoutType.d.ts +1 -1
- package/dist/hooks/useCountdown.d.ts +2 -2
- package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
- package/dist/hooks/useFunListeners.d.ts +1 -1
- package/dist/hooks/useIsCheckoutRisky.d.ts +1 -1
- package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -1
- package/dist/hooks/useMainnetEnsName.d.ts +1 -1
- package/dist/hooks/useMesh.d.ts +4 -8
- package/dist/hooks/usePaymentMethodIcon.d.ts +2 -2
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +1 -4
- package/dist/hooks/useWalletAssets.d.ts +1 -1
- package/dist/index.css +484 -463
- package/dist/index.d.ts +4 -1
- package/dist/index.js +9121 -9272
- package/dist/modals/AccountModal/AccountModal.d.ts +1 -1
- package/dist/modals/ChainModal/Chain.d.ts +2 -2
- package/dist/modals/CheckoutModal/{CheckoutComplete.d.ts → CheckoutComplete/CheckoutComplete.d.ts} +2 -2
- package/dist/modals/CheckoutModal/{useRedirectToCheckoutHistory.d.ts → CheckoutComplete/useRedirectToCheckoutHistory.d.ts} +2 -2
- package/dist/modals/CheckoutModal/{ConfirmationStep.d.ts → ConfirmationStep/ConfirmationStep.d.ts} +3 -3
- package/dist/modals/CheckoutModal/{useAccountBalancePostCheckout.d.ts → ConfirmationStep/useAccountBalanceTransfer.d.ts} +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +3 -3
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +4 -4
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
- package/dist/modals/CheckoutModal/{InputAmount.d.ts → InputAmount/InputAmount.d.ts} +3 -3
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -5
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +4 -4
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
- package/dist/modals/CheckoutModal/{useAssetPrice.d.ts → InputAmount/useAssetPrice.d.ts} +1 -1
- package/dist/modals/CheckoutModal/{useAvailableBalanceForCheckout.d.ts → InputAmount/useAvailableBalanceForCheckout.d.ts} +3 -3
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +0 -9
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -2
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +4 -4
- package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +2 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -2
- package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +4 -4
- package/dist/modals/CheckoutModal/{SourceChange.d.ts → SourceChange/SourceChange.d.ts} +2 -2
- package/dist/modals/CheckoutModal/TransferToken.d.ts +2 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +14 -14
- package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +2 -2
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +3 -3
- package/dist/modals/CheckoutModal/useWalletAssetHoldings.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +1 -1
- package/dist/modals/ProfileDetails/ActivityTraversalContext.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/providers/AppContext.d.ts +1 -1
- package/dist/providers/AuthenticationContext.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +25 -35
- package/dist/providers/FunkitConfigContext.d.ts +3 -2
- package/dist/providers/FunkitConnectChainContext.d.ts +1 -1
- package/dist/providers/FunkitFlagsProvider.d.ts +3 -3
- package/dist/providers/FunkitHistoryContext.d.ts +5 -5
- package/dist/providers/FunkitMeshProvider.d.ts +9 -9
- package/dist/providers/FunkitMoonpayProvider.d.ts +2 -2
- package/dist/providers/FunkitProvider.d.ts +9 -13
- package/dist/providers/FunkitThemeProvider.d.ts +27 -156
- package/dist/providers/FunkitWeb2Provider.d.ts +3 -3
- package/dist/providers/GeneralWalletProvider.d.ts +3 -3
- package/dist/providers/I18nContext.d.ts +2 -2
- package/dist/providers/ModalContext.d.ts +2 -2
- package/dist/providers/ModalSizeContext.d.ts +1 -1
- package/dist/providers/ShowBalanceContext.d.ts +2 -2
- package/dist/providers/provideFunkitConnectChains.d.ts +1 -1
- package/dist/themes/baseTheme.d.ts +3 -1
- package/dist/themes/baseTheme.js +5 -3
- package/dist/themes/darkTheme.d.ts +3 -144
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.d.ts +3 -144
- package/dist/themes/lightTheme.js +2 -2
- package/dist/types/utils.d.ts +1 -1
- package/dist/utils/address.d.ts +1 -3
- package/dist/utils/assets.d.ts +5 -4
- package/dist/utils/checkout.d.ts +10 -6
- package/dist/utils/flags/config.d.ts +7 -1
- package/dist/utils/funkitProvider.d.ts +1 -1
- package/dist/utils/isMainnetUsdt.d.ts +1 -1
- package/dist/utils/mesh.d.ts +8 -8
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +1 -1
- package/dist/wallets/Wallet.d.ts +4 -4
- package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
- package/dist/wallets/downloadUrls.d.ts +1 -1
- package/dist/wallets/getDefaultWallets.d.ts +1 -1
- package/dist/wallets/getInjectedConnector.d.ts +2 -2
- package/dist/wallets/groupedWallets.d.ts +1 -1
- package/dist/wallets/useWalletConnectors.d.ts +3 -3
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +1 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +1 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -3
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -3
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +1 -2
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-DWOWRRNZ.js → chunk-2UCNRD7H.js} +3 -6
- package/dist/wallets/walletConnectors/{chunk-E2VPHAWU.js → chunk-3S2U24BJ.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-5HXH52SO.js → chunk-4WEHDI4Y.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-24OBTKSN.js → chunk-7CUY5G6R.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-PFRM52PK.js → chunk-A5APNTGL.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-UJVBNAKM.js → chunk-ADIXAKUL.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-KN5BJYWQ.js → chunk-AXWP3GD4.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-GDXRZB7A.js → chunk-BRBKM4PW.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-FGLYJDAL.js → chunk-G73C6P5P.js} +1 -4
- package/dist/wallets/walletConnectors/{chunk-C7PUODSS.js → chunk-GSOYKKIS.js} +3 -5
- package/dist/wallets/walletConnectors/{chunk-BDI5G6GA.js → chunk-H4IRCEZN.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-EHDKQOCG.js → chunk-IDKVN5CF.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-NMB62FCH.js → chunk-ISIBREBO.js} +3 -5
- package/dist/wallets/walletConnectors/{chunk-IKPUD375.js → chunk-LN7OD5EC.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-CV5FY7VL.js → chunk-S27IADFU.js} +1 -3
- package/dist/wallets/walletConnectors/{chunk-7GGVFQBD.js → chunk-SLOIIJGP.js} +1 -5
- package/dist/wallets/walletConnectors/{chunk-HA5KAB4M.js → chunk-W6N74MS3.js} +3 -5
- package/dist/wallets/walletConnectors/{chunk-HRDRUWYF.js → chunk-WSQ2YJO2.js} +1 -3
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +1 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +1 -2
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +1 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -3
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -3
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.d.ts +2 -2
- package/dist/wallets/walletConnectors/index.js +79 -80
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +1 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -3
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +1 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -3
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +1 -2
- package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -3
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -3
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +1 -1
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -3
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +1 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -3
- package/package.json +17 -17
- package/dist/assets-36PRD6ZI.js +0 -7
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +0 -5
- package/dist/components/Icons/Assets.d.ts +0 -3
- package/dist/components/Icons/BridgeIcon.d.ts +0 -2
- package/dist/components/Icons/Cancel.d.ts +0 -2
- package/dist/components/Icons/ClockIcon.d.ts +0 -4
- package/dist/components/Icons/CoinIcon.d.ts +0 -4
- package/dist/components/Icons/Connect.d.ts +0 -3
- package/dist/components/Icons/Copy.d.ts +0 -2
- package/dist/components/Icons/Create.d.ts +0 -3
- package/dist/components/Icons/CreditCardDots.d.ts +0 -2
- package/dist/components/Icons/Disconnect.d.ts +0 -2
- package/dist/components/Icons/Dropdown.d.ts +0 -2
- package/dist/components/Icons/EditIcon.d.ts +0 -4
- package/dist/components/Icons/EthereumIcon.d.ts +0 -4
- package/dist/components/Icons/Explore.d.ts +0 -2
- package/dist/components/Icons/ExternalLink.d.ts +0 -2
- package/dist/components/Icons/FunArrows.d.ts +0 -3
- package/dist/components/Icons/LightningIcon.d.ts +0 -4
- package/dist/components/Icons/LinkIcon.d.ts +0 -2
- package/dist/components/Icons/Login.d.ts +0 -3
- package/dist/components/Icons/MmFox.d.ts +0 -2
- package/dist/components/Icons/MoonPayLogoIcon.d.ts +0 -2
- package/dist/components/Icons/PasskeyIcon.d.ts +0 -2
- package/dist/components/Icons/PhoneIcon.d.ts +0 -2
- package/dist/components/Icons/PlusIcon.d.ts +0 -2
- package/dist/components/Icons/ProfileIcon.d.ts +0 -2
- package/dist/components/Icons/ReceiptIcon.d.ts +0 -4
- package/dist/components/Icons/Refresh.d.ts +0 -3
- package/dist/components/Icons/Scan.d.ts +0 -3
- package/dist/components/Icons/StEthIcon.d.ts +0 -2
- package/dist/components/Icons/SuccessNoBorder.d.ts +0 -2
- package/dist/components/Icons/SwapIcon.d.ts +0 -2
- package/dist/components/Icons/SwitchAccount.d.ts +0 -2
- package/dist/components/Icons/TransferIcon.d.ts +0 -2
- package/dist/components/Icons/USDCIcon.d.ts +0 -2
- package/dist/components/Icons/WhiteDotIcon.d.ts +0 -2
- package/dist/login-XDVWJKUQ.js +0 -7
- package/dist/utils/browsers.d.ts +0 -13
- package/dist/utils/colors.d.ts +0 -3
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/deepMerge.d.ts +0 -5
- package/dist/utils/exhaustiveCheck.d.ts +0 -1
- package/dist/utils/formatFees.d.ts +0 -12
- package/dist/utils/formatNumber.d.ts +0 -57
- package/dist/utils/formatTimestamp.d.ts +0 -28
- package/dist/utils/groupBy.d.ts +0 -1
- package/dist/utils/indexBy.d.ts +0 -1
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isNotNullish.d.ts +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/mobile.d.ts +0 -1
- package/dist/utils/noop.d.ts +0 -1
- package/dist/utils/omitUndefinedValues.d.ts +0 -1
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-CTBFNNME.js +0 -94
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-LVBXKMWP.js +0 -71
- package/dist/wallets/walletConnectors/chunk-MATWQVQM.js +0 -73
- package/dist/wallets/walletConnectors/chunk-N2UFM6FI.js +0 -95
- package/dist/wallets/walletConnectors/chunk-QQEO4YQS.js +0 -149
- package/dist/wallets/walletConnectors/chunk-R6TLOQL3.js +0 -98
- package/dist/wallets/walletConnectors/chunk-RETKWSKD.js +0 -24
- package/dist/wallets/walletConnectors/chunk-RMNN2RIV.js +0 -102
- package/dist/wallets/walletConnectors/chunk-SIPHIY4F.js +0 -101
- package/dist/wallets/walletConnectors/chunk-UQAC373E.js +0 -108
- package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
- /package/dist/components/Icons/{Coinbase.d.ts → CoinbaseIcon.d.ts} +0 -0
- /package/dist/components/Icons/{DisconnectSq.d.ts → DisconnectSqIcon.d.ts} +0 -0
- /package/dist/components/Icons/{Info.d.ts → FunInfoIcon.d.ts} +0 -0
- /package/dist/components/Icons/{Gas.d.ts → GasIcon.d.ts} +0 -0
- /package/dist/components/Icons/{GateIo.d.ts → GateIoIcon.d.ts} +0 -0
- /package/dist/components/Icons/{Spinner.d.ts → SpinnerIcon.d.ts} +0 -0
- /package/dist/components/Icons/{TwoFactor.d.ts → TwoFactorIcon.d.ts} +0 -0
- /package/dist/modals/CheckoutModal/{CheckoutPrimaryInfo.d.ts → ConfirmationStep/CheckoutPrimaryInfo.d.ts} +0 -0
- /package/dist/modals/CheckoutModal/{useUpdateSourceAssetForCard.d.ts → SourceChange/useUpdateSourceAssetForCard.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 8193700: feat: refactor funkit themeing - lightMode & darkMode to lightTheme & darkTheme
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 8193700: feat: rename setActive -> setActiveTheme & make it more straightforward
|
|
12
|
+
- 8193700: feat: allow explicit color scheme theme setting in FunkitThemeProvider
|
|
13
|
+
- 840ec64: refactor: use brokerType instead of brokerName
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 4d0c8e0: fix: use effectEvent to remove deps
|
|
18
|
+
- 8193700: refactor: improve useFunkitCheckout config typing
|
|
19
|
+
- 840ec64: feat: new flag supported_exchanges_v2
|
|
20
|
+
- 1e6ba59: feat: copy changes
|
|
21
|
+
- db0ef30: feat: add text customization for Your source
|
|
22
|
+
- a9cdf0e: fix: bypass userOp gas estimation; update fun worker address
|
|
23
|
+
- ce119a4: fix: improve bottom bar visuals in mesh verification
|
|
24
|
+
- 0680c49: feat(api-base, connect, fits): move clientMetadata typing to api-base and refactor related types
|
|
25
|
+
- 40c07e9: fix: remove preload
|
|
26
|
+
- 8193700: feat: expose system fallback fonts
|
|
27
|
+
- 1661e49: feat: extend sufficient asset checks to checkout loading
|
|
28
|
+
- 456a82a: feat: gas cost text change
|
|
29
|
+
- Updated dependencies [1e6ba59]
|
|
30
|
+
- Updated dependencies [a9cdf0e]
|
|
31
|
+
- Updated dependencies [0680c49]
|
|
32
|
+
- Updated dependencies [6dc8105]
|
|
33
|
+
- @funkit/utils@1.0.0
|
|
34
|
+
- @funkit/core@2.2.6
|
|
35
|
+
- @funkit/api-base@1.3.4
|
|
36
|
+
- @funkit/wagmi-tools@3.0.17
|
|
37
|
+
|
|
3
38
|
## 3.5.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OMAXDH7G.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/lightTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -103,6 +103,7 @@ var lightTheme = ({
|
|
|
103
103
|
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
104
104
|
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.12)",
|
|
105
105
|
button: "0px 1px 2px 0px rgba(0, 0, 0, 0.20)",
|
|
106
|
+
tooltip: "0px 4px 4px rgba(0, 0, 0, 0.05)",
|
|
106
107
|
// Override shadows
|
|
107
108
|
...customShadows || {}
|
|
108
109
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OMAXDH7G.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/darkTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -103,6 +103,7 @@ var darkTheme = ({
|
|
|
103
103
|
selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
104
104
|
selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
|
|
105
105
|
button: "0px 1px 2px 0px rgba(0, 0, 0, 0.20)",
|
|
106
|
+
tooltip: "0px 4px 4px rgba(0, 0, 0, 0.05)",
|
|
106
107
|
// Override shadows
|
|
107
108
|
...customShadows || {}
|
|
108
109
|
},
|
|
@@ -86,7 +86,7 @@ var baseTheme = ({
|
|
|
86
86
|
borderRadius = "large",
|
|
87
87
|
fontStack = "fun",
|
|
88
88
|
fontSizing = "regular",
|
|
89
|
-
customFontFamily
|
|
89
|
+
customFontFamily,
|
|
90
90
|
customFontWeights = DEFAULT_FONT_WEIGHTS,
|
|
91
91
|
overlayBlur = "small"
|
|
92
92
|
}) => ({
|
|
@@ -111,5 +111,6 @@ var baseTheme = ({
|
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
export {
|
|
114
|
+
systemFontStack,
|
|
114
115
|
baseTheme
|
|
115
116
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
3
|
-
import { AsyncImageSrc } from './useAsyncImage';
|
|
1
|
+
import React, { type ReactElement } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import { type AsyncImageSrc } from './useAsyncImage';
|
|
4
4
|
type CustomBorderColor = {
|
|
5
5
|
custom: string;
|
|
6
6
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type AsyncImageSrc = () => Promise<string>;
|
|
2
|
-
export declare function loadImages(...urls: (string | AsyncImageSrc)[]): Promise<(string |
|
|
2
|
+
export declare function loadImages(...urls: (string | AsyncImageSrc)[]): Promise<(string | undefined)[]>;
|
|
3
3
|
export declare function useAsyncImage(url?: string | AsyncImageSrc): string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AvatarComponent } from '../../providers/AvatarContext';
|
|
1
|
+
import type { AvatarComponent } from '../../providers/AvatarContext';
|
|
2
2
|
export declare const EmojiAvatar: AvatarComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
1
|
+
import { type ClassValue } from 'clsx';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type BoxBorderType = Pick<BoxProps, 'borderColor' | 'borderStyle' | 'borderWidth'>;
|
|
4
4
|
type HTMLProperties<T = HTMLElement> = Omit<React.AllHTMLAttributes<T>, 'as' | 'className' | 'color' | 'height' | 'width'>;
|
|
@@ -19,13 +19,13 @@ export declare const Box: React.ForwardRefExoticComponent<{
|
|
|
19
19
|
focused?: "accentColor" | "transparent" | "accentColorForeground" | "actionButtonBorder" | "connectButtonBackground" | "connectButtonBackgroundError" | "connectButtonText" | "connectButtonTextError" | "connectionIndicator" | "error" | "errorBackground" | "errorBorder" | "generalBorder" | "generalBorderDim" | "menuItemBackground" | "selectedOptionBorder" | "paymentOptionBorderDisabled" | "standby" | "success" | "loadingBase" | "loadingAccent" | "chainIconBorder" | "modalBackdrop" | "modalBackground" | "modalBorder" | "notificationPrimary" | "offBackground" | "hoverState" | "offBackgroundInverse" | "lightStroke" | "mediumStroke" | "strokeColor" | "dydxSwitchActiveBackground" | "primaryText" | "secondaryText" | "tertiaryText" | "textSelection" | "inputBackground" | "inputBorderBase" | "inputBorderHover" | "actionColor" | "actionColorHover" | "actionColorDisabled" | "buttonPrimary" | "buttonDisabled" | "buttonWarning" | "buttonSuccess" | "buttonTextWarning" | "buttonTextSuccess" | "buttonTextPrimary" | "buttonTextDisabled" | "buttonBackgroundTertiary" | "buttonBackgroundHoverTertiary" | "buttonTextTertiary" | "buttonTextDisabledTertiary" | "buttonStrokeTertiary" | "buttonBackground" | "buttonBackgroundHover" | "buttonBackgroundDisabled" | "buttonStroke" | "buttonTextSecondaryDisabled" | "buttonTextSecondary" | "buttonIconBackgroundHover" | "buttonIconBackgroundPressed" | "buttonIconStroke" | undefined;
|
|
20
20
|
focusedVisible?: "accentColor" | "transparent" | "accentColorForeground" | "actionButtonBorder" | "connectButtonBackground" | "connectButtonBackgroundError" | "connectButtonText" | "connectButtonTextError" | "connectionIndicator" | "error" | "errorBackground" | "errorBorder" | "generalBorder" | "generalBorderDim" | "menuItemBackground" | "selectedOptionBorder" | "paymentOptionBorderDisabled" | "standby" | "success" | "loadingBase" | "loadingAccent" | "chainIconBorder" | "modalBackdrop" | "modalBackground" | "modalBorder" | "notificationPrimary" | "offBackground" | "hoverState" | "offBackgroundInverse" | "lightStroke" | "mediumStroke" | "strokeColor" | "dydxSwitchActiveBackground" | "primaryText" | "secondaryText" | "tertiaryText" | "textSelection" | "inputBackground" | "inputBorderBase" | "inputBorderHover" | "actionColor" | "actionColorHover" | "actionColorDisabled" | "buttonPrimary" | "buttonDisabled" | "buttonWarning" | "buttonSuccess" | "buttonTextWarning" | "buttonTextSuccess" | "buttonTextPrimary" | "buttonTextDisabled" | "buttonBackgroundTertiary" | "buttonBackgroundHoverTertiary" | "buttonTextTertiary" | "buttonTextDisabledTertiary" | "buttonStrokeTertiary" | "buttonBackground" | "buttonBackgroundHover" | "buttonBackgroundDisabled" | "buttonStroke" | "buttonTextSecondaryDisabled" | "buttonTextSecondary" | "buttonIconBackgroundHover" | "buttonIconBackgroundPressed" | "buttonIconStroke" | undefined;
|
|
21
21
|
} | undefined;
|
|
22
|
-
boxShadow?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | {
|
|
23
|
-
base?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
24
|
-
hover?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
25
|
-
active?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
26
|
-
selection?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
27
|
-
focused?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
28
|
-
focusedVisible?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
22
|
+
boxShadow?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | {
|
|
23
|
+
base?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
24
|
+
hover?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
25
|
+
active?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
26
|
+
selection?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
27
|
+
focused?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
28
|
+
focusedVisible?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
29
29
|
} | undefined;
|
|
30
30
|
color?: "accentColor" | "transparent" | "accentColorForeground" | "actionButtonBorder" | "connectButtonBackground" | "connectButtonBackgroundError" | "connectButtonText" | "connectButtonTextError" | "connectionIndicator" | "error" | "errorBackground" | "errorBorder" | "generalBorder" | "generalBorderDim" | "menuItemBackground" | "selectedOptionBorder" | "paymentOptionBorderDisabled" | "standby" | "success" | "loadingBase" | "loadingAccent" | "chainIconBorder" | "modalBackdrop" | "modalBackground" | "modalBorder" | "notificationPrimary" | "offBackground" | "hoverState" | "offBackgroundInverse" | "lightStroke" | "mediumStroke" | "strokeColor" | "dydxSwitchActiveBackground" | "primaryText" | "secondaryText" | "tertiaryText" | "textSelection" | "inputBackground" | "inputBorderBase" | "inputBorderHover" | "actionColor" | "actionColorHover" | "actionColorDisabled" | "buttonPrimary" | "buttonDisabled" | "buttonWarning" | "buttonSuccess" | "buttonTextWarning" | "buttonTextSuccess" | "buttonTextPrimary" | "buttonTextDisabled" | "buttonBackgroundTertiary" | "buttonBackgroundHoverTertiary" | "buttonTextTertiary" | "buttonTextDisabledTertiary" | "buttonStrokeTertiary" | "buttonBackground" | "buttonBackgroundHover" | "buttonBackgroundDisabled" | "buttonStroke" | "buttonTextSecondaryDisabled" | "buttonTextSecondary" | "buttonIconBackgroundHover" | "buttonIconBackgroundPressed" | "buttonIconStroke" | {
|
|
31
31
|
base?: "accentColor" | "transparent" | "accentColorForeground" | "actionButtonBorder" | "connectButtonBackground" | "connectButtonBackgroundError" | "connectButtonText" | "connectButtonTextError" | "connectionIndicator" | "error" | "errorBackground" | "errorBorder" | "generalBorder" | "generalBorderDim" | "menuItemBackground" | "selectedOptionBorder" | "paymentOptionBorderDisabled" | "standby" | "success" | "loadingBase" | "loadingAccent" | "chainIconBorder" | "modalBackdrop" | "modalBackground" | "modalBorder" | "notificationPrimary" | "offBackground" | "hoverState" | "offBackgroundInverse" | "lightStroke" | "mediumStroke" | "strokeColor" | "dydxSwitchActiveBackground" | "primaryText" | "secondaryText" | "tertiaryText" | "textSelection" | "inputBackground" | "inputBorderBase" | "inputBorderHover" | "actionColor" | "actionColorHover" | "actionColorDisabled" | "buttonPrimary" | "buttonDisabled" | "buttonWarning" | "buttonSuccess" | "buttonTextWarning" | "buttonTextSuccess" | "buttonTextPrimary" | "buttonTextDisabled" | "buttonBackgroundTertiary" | "buttonBackgroundHoverTertiary" | "buttonTextTertiary" | "buttonTextDisabledTertiary" | "buttonStrokeTertiary" | "buttonBackground" | "buttonBackgroundHover" | "buttonBackgroundDisabled" | "buttonStroke" | "buttonTextSecondaryDisabled" | "buttonTextSecondary" | "buttonIconBackgroundHover" | "buttonIconBackgroundPressed" | "buttonIconStroke" | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunIconButtonProps } from '../FunButton/FunIconButton';
|
|
2
|
+
import { type FunIconButtonProps } from '../FunButton/FunIconButton';
|
|
3
3
|
interface FunCloseButtonProps extends Omit<FunIconButtonProps, 'onClick' | 'icon' | 'ariaLabel' | 'size'> {
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveValue } from '../../css/sprinkles.css';
|
|
2
|
+
import { type ResponsiveValue } from '../../css/sprinkles.css';
|
|
3
3
|
import { ConnectButtonRenderer } from './ConnectButtonRenderer';
|
|
4
4
|
type AccountStatus = 'full' | 'avatar' | 'address';
|
|
5
5
|
type ChainStatus = 'full' | 'icon' | 'name' | 'none';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { AuthenticationStatus } from '../../providers/AuthenticationContext';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type AuthenticationStatus } from '../../providers/AuthenticationContext';
|
|
3
3
|
export interface ConnectButtonRendererProps {
|
|
4
4
|
children: (renderProps: {
|
|
5
5
|
account?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetEnsNameReturnType } from 'viem';
|
|
1
|
+
import type { GetEnsNameReturnType } from 'viem';
|
|
2
2
|
export declare function formatENS(name: GetEnsNameReturnType): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
export { CHECKOUT_MODAL_BOTTOM_BAR_ID, CHECKOUT_MODAL_TITLE_COUNTDOWN_ID, useBottomSectionRef, useTitleCountdownRef, } from './hooks';
|
|
4
4
|
interface DialogProps {
|
|
5
5
|
open: boolean;
|
|
@@ -35,10 +35,10 @@ export interface DialogTitleProps {
|
|
|
35
35
|
titleMeta?: string;
|
|
36
36
|
hasCloseButton?: boolean;
|
|
37
37
|
isCloseDisabled?: boolean;
|
|
38
|
-
onClose?: (
|
|
38
|
+
onClose?: () => void;
|
|
39
39
|
hasBackButton?: boolean;
|
|
40
40
|
isBackDisabled?: boolean;
|
|
41
|
-
onBack?: (
|
|
41
|
+
onBack?: () => void;
|
|
42
42
|
skipBackDelay?: boolean;
|
|
43
43
|
/** @deprecated TODO: investigate unifying with modal navigation animation */
|
|
44
44
|
backAnimation?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
3
3
|
interface ChainDropdownProps {
|
|
4
4
|
assets: TokenTransferSourceChainsAndAssets;
|
|
5
5
|
onChainSelected: (chainId: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
3
3
|
interface TokenDropdownProps {
|
|
4
4
|
selectedChainId: number;
|
|
5
5
|
assets: TokenTransferSourceChainsAndAssets;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
3
3
|
interface DydxSwitchTabProps {
|
|
4
4
|
checkoutItem: FunkitActiveCheckoutItem;
|
|
5
5
|
showSwitch: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
interface FunAlertProps {
|
|
3
3
|
icon?: ReactNode;
|
|
4
|
-
description:
|
|
4
|
+
description: ReactNode;
|
|
5
5
|
type?: 'info' | 'error';
|
|
6
6
|
}
|
|
7
7
|
export declare function FunAlert({ icon, description, type }: FunAlertProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunIconButtonProps } from './FunIconButton';
|
|
2
|
+
import { type FunIconButtonProps } from './FunIconButton';
|
|
3
3
|
interface FunBackButtonProps extends Omit<FunIconButtonProps, 'onClick' | 'icon' | 'ariaLabel' | 'size'> {
|
|
4
4
|
onBack?: () => void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
export interface FunIconButtonProps extends Pick<BoxProps, 'as' | 'borderRadius' | 'color' | 'fontSize' | 'fontWeight' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave' | 'style'> {
|
|
4
4
|
onClick?: () => void;
|
|
5
5
|
/** Icon element to be rendered */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WalletConnector } from '../../wallets/useWalletConnectors';
|
|
2
|
+
import type { WalletConnector } from '../../wallets/useWalletConnectors';
|
|
3
3
|
type ResultType = 'success' | 'error';
|
|
4
4
|
interface FunErrorContentProps {
|
|
5
5
|
onClose: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SocialLoginOption } from '../../consts/funkit';
|
|
3
|
-
import { WalletConnector } from '../../wallets/useWalletConnectors';
|
|
2
|
+
import { type SocialLoginOption } from '../../consts/funkit';
|
|
3
|
+
import { type WalletConnector } from '../../wallets/useWalletConnectors';
|
|
4
4
|
import { ConnectStep } from './FunConnectOptions';
|
|
5
5
|
export declare function useEnabledSocialLogins(): SocialLoginOption[];
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MeshExchangeType } from '~/consts/mesh';
|
|
3
3
|
interface FunGuaranteesProps {
|
|
4
|
-
|
|
4
|
+
brokerType: MeshExchangeType;
|
|
5
5
|
}
|
|
6
|
-
export declare const FunGuarantees: ({
|
|
6
|
+
export declare const FunGuarantees: ({ brokerType }: FunGuaranteesProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './FunInputBase.css';
|
|
2
|
-
import React, { HTMLInputTypeAttribute, ReactNode } from 'react';
|
|
3
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import React, { type HTMLInputTypeAttribute, type ReactNode } from 'react';
|
|
3
|
+
import { type BoxProps } from '../Box/Box';
|
|
4
4
|
export interface FunInputProps<T = HTMLInputElement> {
|
|
5
5
|
prefix?: ReactNode;
|
|
6
6
|
suffix?: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunInputProps } from './FunInput';
|
|
2
|
+
import type { FunInputProps } from './FunInput';
|
|
3
3
|
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
3
|
-
import { TextProps } from '../Text/Text';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import { type TextProps } from '../Text/Text';
|
|
4
4
|
export interface FunKeyValueProps {
|
|
5
5
|
keyIcon?: ReactNode;
|
|
6
6
|
keyText: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
export declare const FunNoResults: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckoutHistoryItem } from '@funkit/api-base';
|
|
1
|
+
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HistoryContentPages } from '../../utils/checkoutHistory';
|
|
4
4
|
export declare function FunCheckoutNotification({ checkoutHistoryItem, onSelect, }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './FunNotification.css';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
3
|
import { Box } from '../Box/Box';
|
|
4
|
-
import { TextProps } from '../Text/Text';
|
|
4
|
+
import { type TextProps } from '../Text/Text';
|
|
5
5
|
interface FunNotificationProps {
|
|
6
6
|
type?: FunNotificationType;
|
|
7
7
|
description: string | ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
interface FunOptionBoxProps extends Omit<BoxProps, 'className' | 'cursor' | 'tabIndex' | 'style'> {
|
|
4
4
|
isActive?: boolean;
|
|
5
5
|
paddingX?: BoxProps['paddingX'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { PaymentMethod, PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { PaymentMethod, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
3
3
|
interface ConnectedMeshPaymentMethodItemProps {
|
|
4
4
|
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
5
5
|
isSelected: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface BrokerateItemProps {
|
|
3
|
-
|
|
3
|
+
exchangeName: string;
|
|
4
4
|
exchangeIcon: React.ReactNode;
|
|
5
5
|
fullInfo: boolean;
|
|
6
6
|
hasActiveConnection: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const FunBrokerageItem: ({
|
|
8
|
+
export declare const FunBrokerageItem: ({ exchangeName, exchangeIcon, fullInfo, hasActiveConnection, }: BrokerateItemProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { FunSelectOption } from '../FunSelect/FunSelect';
|
|
2
|
+
import { MeshExchangeType } from '~/consts/mesh';
|
|
3
|
+
import type { FunSelectOption } from '../FunSelect/FunSelect';
|
|
4
4
|
interface FunSelectBrokerageProps {
|
|
5
|
-
onSelect: (value:
|
|
6
|
-
options: FunSelectOption<
|
|
5
|
+
onSelect: (value: MeshExchangeType) => void;
|
|
6
|
+
options: FunSelectOption<MeshExchangeType>[];
|
|
7
7
|
selectedValue: FunSelectOption['value'];
|
|
8
8
|
}
|
|
9
9
|
export declare function FunSelectBrokerage({ onSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
export type FunSkeletonCircleProps = Pick<BoxProps, 'margin' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginTop'> & {
|
|
4
4
|
/** Defaults to 20px */
|
|
5
5
|
size?: BoxProps['height'] & BoxProps['width'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SocialLoginOption } from '../../consts/funkit';
|
|
3
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import type { SocialLoginOption } from '../../consts/funkit';
|
|
3
|
+
import { type BoxProps } from '../Box/Box';
|
|
4
4
|
interface Props {
|
|
5
5
|
options: SocialLoginOption[];
|
|
6
6
|
onSelect: (provider: SocialLoginOption['provider']) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './FunTxSummaryComponents.css';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
import { type BoxProps } from '../Box/Box';
|
|
4
4
|
export declare function FunTxSummaryBox({ children, ...otherProps }: BoxProps): React.JSX.Element;
|
|
5
5
|
export declare function FunTxSummaryLineItem({ children, ...otherProps }: BoxProps): React.JSX.Element;
|
|
6
6
|
export declare function FunTxSummaryLineItemCollapsibleTrigger({ children, isDisabled, onClick, }: {
|