@funkit/connect 3.5.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -3
- 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 +24 -22
- 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 +3 -3
- 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 +7 -7
- 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/ModalSelection/ModalSelection.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/consts/moonpay.d.ts +8 -1
- 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/modalTransitionStyles.css.d.ts +4 -4
- package/dist/css/sprinkles.css.d.ts +10 -8
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkoutFees.d.ts +4 -4
- package/dist/domains/clientMetadata.d.ts +3 -2
- package/dist/domains/paymentMethods.d.ts +8 -7
- package/dist/domains/quote.d.ts +9 -14
- package/dist/hooks/useAllowedAssets.d.ts +8 -0
- package/dist/hooks/useAnimatedNavigation.d.ts +7 -1
- 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/useEffectEvent.d.ts +1 -1
- 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 +6 -10
- 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 +558 -581
- package/dist/index.d.ts +4 -1
- package/dist/index.js +10351 -10802
- package/dist/locales/I18n.d.ts +3 -1
- 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/ConfirmationStep.d.ts +21 -0
- 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 +6 -9
- 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/InputAmountLoading.d.ts +1 -1
- 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/useCheckoutQuote.d.ts +2 -1
- 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 +5 -9
- package/dist/modals/CheckoutModal/useWalletAssetHoldings.d.ts +1 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +3 -3
- 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 +17 -11
- package/dist/modals/ProfileDetails/FunProfileViews/Home/BalanceSection.d.ts +6 -0
- package/dist/modals/ProfileDetails/FunProfileViews/Home/Home.css.d.ts +0 -7
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +3 -6
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +3 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +11 -0
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +5 -4
- package/dist/modals/ProfileDetails/ProfileDetails.d.ts +0 -2
- package/dist/providers/AppContext.d.ts +1 -1
- package/dist/providers/AuthenticationContext.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +43 -40
- 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 +13 -11
- 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 +18 -10
- package/dist/providers/GeneralWalletProvider.d.ts +12 -7
- 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/aborts.d.ts +1 -1
- package/dist/utils/address.d.ts +1 -3
- package/dist/utils/assets.d.ts +7 -6
- 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 +10 -10
- 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 +1 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +1 -2
- 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/{chunk-MATWQVQM.js → chunk-2UCNRD7H.js} +1 -4
- 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-CTBFNNME.js → chunk-GSOYKKIS.js} +1 -3
- 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-UQAC373E.js → chunk-ISIBREBO.js} +1 -3
- 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-LVBXKMWP.js → chunk-W6N74MS3.js} +1 -3
- 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/coin98Wallet/coin98Wallet.d.ts +1 -1
- 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/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/frameWallet/frameWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +1 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +1 -2
- 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 +1 -2
- 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 +73 -74
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.d.ts +1 -1
- 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/subWallet/subWallet.d.ts +1 -1
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/modals/CheckoutModal/ConfirmationStep.d.ts +0 -29
- package/dist/modals/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +0 -5
- 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-RETKWSKD.js +0 -24
- /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
|
@@ -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 type { 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, }: {
|
|
@@ -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
|
export declare function PaymentFeesSummary({ isLoading, checkoutItem, }: {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
3
|
-
import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
4
|
-
import { FunkitTextCustomizationsConfig, FunkitUiCustomRecipientConfig } from '../../providers/FunkitConfigContext';
|
|
2
|
+
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
3
|
+
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
4
|
+
import type { FunkitTextCustomizationsConfig, FunkitUiCustomRecipientConfig } from '../../providers/FunkitConfigContext';
|
|
5
5
|
interface PaymentMethodSummaryProps {
|
|
6
6
|
paymentMethodInfo: PaymentMethodInfo;
|
|
7
7
|
walletAddress: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Chain, Transport } from 'viem';
|
|
2
|
-
import { CreateConfigParameters } from 'wagmi';
|
|
3
|
-
import {
|
|
1
|
+
import type { Chain, Transport } from 'viem';
|
|
2
|
+
import { type CreateConfigParameters } from 'wagmi';
|
|
3
|
+
import type { FunkitConnectChain } from '../providers/FunkitConnectChainContext';
|
|
4
4
|
import type { WalletList } from '../wallets/Wallet';
|
|
5
5
|
export type _chains = readonly [FunkitConnectChain, ...FunkitConnectChain[]];
|
|
6
6
|
export type _transports = Record<_chains[number]['id'], Transport>;
|
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckoutState } from '@funkit/api-base';
|
|
2
|
-
import { OAuthProviderType } from '@privy-io/js-sdk-core';
|
|
3
|
-
import { Address } from 'viem';
|
|
2
|
+
import type { OAuthProviderType } from '@privy-io/js-sdk-core';
|
|
3
|
+
import type { Address } from 'viem';
|
|
4
4
|
/**
|
|
5
5
|
* NATIVE_TOKEN is a special address in Fun to represent different native currency tokens on different chains
|
|
6
6
|
* e.g. on Base it is ETH, but on Polygon it is MATIC/POL. It is not one specific real token address.
|
|
@@ -10,7 +10,7 @@ export declare const FUNKIT_CONNECTOR_ID = "funkitConnector";
|
|
|
10
10
|
export declare const FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
11
11
|
export declare const RESERVED_GROUP_NAME = "funkit-web2";
|
|
12
12
|
export declare const DEFAULT_FUNWALLET_INDEX = 0;
|
|
13
|
-
export declare const FUN_WORKER_EOA_ADDR = "
|
|
13
|
+
export declare const FUN_WORKER_EOA_ADDR = "0x1881ad6e231a14A8Be0f9AE6f9EFd8f3CFb09919";
|
|
14
14
|
export declare const FUN_ORG_NAME = "Fun.xyz";
|
|
15
15
|
export declare const FROM_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
16
16
|
export declare const TO_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
package/dist/consts/mesh.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare const FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* TODO: This is only useful to map exchange names in existing feature flags to the corresponding exchange types.
|
|
4
|
+
* If/when we decide to fully remove that support, this enum and getExchangeTypeFromName below can be removed.
|
|
5
|
+
* Mesh-provided brokerName
|
|
6
|
+
* @deprecated Use MeshExchangeType instead
|
|
7
|
+
*/
|
|
8
|
+
export declare enum MeshExchangeName {
|
|
3
9
|
Robinhood = "Robinhood",
|
|
4
10
|
ETrade = "ETrade",
|
|
5
11
|
Alpaca = "Alpaca",
|
|
@@ -31,6 +37,41 @@ export declare enum MeshExchanges {
|
|
|
31
37
|
BitfinexDirect = "Bitfinex (beta)",
|
|
32
38
|
Bybit = "Bybit"
|
|
33
39
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
/** A subset of Mesh-provided brokerType */
|
|
41
|
+
export declare enum MeshExchangeType {
|
|
42
|
+
Robinhood = "robinhood",
|
|
43
|
+
ETrade = "eTrade",
|
|
44
|
+
Alpaca = "alpaca",
|
|
45
|
+
WeBull = "weBull",
|
|
46
|
+
Stash = "stash",
|
|
47
|
+
InteractiveBrokers = "interactiveBrokers",
|
|
48
|
+
Public = "public",
|
|
49
|
+
Coinbase = "coinbase",
|
|
50
|
+
Kraken = "kraken",
|
|
51
|
+
CryptoCom = "cryptoCom",
|
|
52
|
+
CoinbasePro = "coinbasePro",
|
|
53
|
+
Gemini = "gemini",
|
|
54
|
+
Binance = "binanceInternationalDirect",
|
|
55
|
+
BinanceUs = "binanceUs",
|
|
56
|
+
OkCoin = "okCoin",
|
|
57
|
+
Etoro = "etoro",
|
|
58
|
+
KuCoin = "kuCoin",
|
|
59
|
+
CexIo = "cexIo",
|
|
60
|
+
GateIo = "gateIo",
|
|
61
|
+
Bitstamp = "bitstamp",
|
|
62
|
+
Okx = "okxOAuth",// not okx!
|
|
63
|
+
Acorns = "acorns",
|
|
64
|
+
Coinlist = "coinlist",
|
|
65
|
+
BitFlyer = "bitFlyer",
|
|
66
|
+
Bitfinex = "bitfinex",
|
|
67
|
+
Huobi = "huobi",
|
|
68
|
+
KrakenDirect = "krakenDirect",
|
|
69
|
+
Vanguard = "vanguard",
|
|
70
|
+
Bybit = "bybit",
|
|
71
|
+
BitfinexDirect = "bitfinexDirect"
|
|
72
|
+
}
|
|
73
|
+
export declare function getExchangeIcon(brokerType: MeshExchangeType, size: number): JSX.Element | null;
|
|
74
|
+
export declare function getExchangeName(brokerType: MeshExchangeType): string;
|
|
75
|
+
export declare function isMeshExchangeType(value: string): value is MeshExchangeType;
|
|
76
|
+
/** @deprecated */
|
|
77
|
+
export declare function getExchangeTypeFromName(brokerName: string): MeshExchangeType | undefined;
|
package/dist/consts/moonpay.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare const MOONPAY_TOKENS_SUPPORTED_REGIONS: {
|
|
2
|
-
[
|
|
2
|
+
[token: string]: {
|
|
3
|
+
isSupportedInUS: boolean;
|
|
4
|
+
notAllowedUSStates: string[];
|
|
5
|
+
notAllowedCountries: string[];
|
|
6
|
+
minBuyAmount: number;
|
|
7
|
+
maxBuyAmount: number;
|
|
8
|
+
precision: number;
|
|
9
|
+
};
|
|
3
10
|
};
|
package/dist/css/atoms.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const animateContentInClass: string;
|
|
2
2
|
export declare const animateContentOutClass: string;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
3
|
+
export declare const slideContentIn: string;
|
|
4
|
+
export declare const slideContentOut: string;
|
|
5
|
+
export declare const slideContentInReverse: string;
|
|
6
|
+
export declare const slideContentOutReverse: string;
|
|
7
7
|
export declare const animateTitleInClass: string;
|
|
8
8
|
export declare const animateTitleOutClass: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './reset.css';
|
|
2
|
-
import { RequiredConditionalValue } from '@vanilla-extract/sprinkles';
|
|
2
|
+
import { type RequiredConditionalValue } from '@vanilla-extract/sprinkles';
|
|
3
3
|
declare const themeContractValues: {
|
|
4
4
|
colors: {
|
|
5
5
|
accentColor: string;
|
|
@@ -137,6 +137,7 @@ declare const themeContractValues: {
|
|
|
137
137
|
selectedOption: string;
|
|
138
138
|
selectedWallet: string;
|
|
139
139
|
button: string;
|
|
140
|
+
tooltip: string;
|
|
140
141
|
};
|
|
141
142
|
blurs: {
|
|
142
143
|
modalOverlay: string;
|
|
@@ -281,6 +282,7 @@ export declare const themeVars: {
|
|
|
281
282
|
selectedOption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
282
283
|
selectedWallet: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
283
284
|
button: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
285
|
+
tooltip: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
284
286
|
};
|
|
285
287
|
blurs: {
|
|
286
288
|
modalOverlay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -501,13 +503,13 @@ export declare const sprinkles: ((props: {
|
|
|
501
503
|
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;
|
|
502
504
|
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;
|
|
503
505
|
} | undefined;
|
|
504
|
-
boxShadow?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | {
|
|
505
|
-
base?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
506
|
-
hover?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
507
|
-
active?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
508
|
-
selection?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
509
|
-
focused?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
510
|
-
focusedVisible?: "button" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
506
|
+
boxShadow?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | {
|
|
507
|
+
base?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
508
|
+
hover?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
509
|
+
active?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
510
|
+
selection?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
511
|
+
focused?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
512
|
+
focusedVisible?: "button" | "tooltip" | "connectButton" | "dialog" | "selectedOption" | "selectedWallet" | undefined;
|
|
511
513
|
} | undefined;
|
|
512
514
|
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" | {
|
|
513
515
|
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;
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { AssetHoldingsItem } from '~/utils/assets';
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
import type { AssetHoldingsItem } from '~/utils/assets';
|
|
3
3
|
export declare function isNativeTokenAddress(address: Address): boolean;
|
|
4
4
|
export declare function isDefaultToken(asset: AssetHoldingsItem, targetChainId: string, targetAsset: string): boolean;
|
|
5
5
|
export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CheckoutQuoteResponse } from '@funkit/api-base';
|
|
1
|
+
import { type CheckoutQuoteResponse } from '@funkit/api-base';
|
|
2
2
|
import type { Config } from 'wagmi';
|
|
3
3
|
import { LoginType } from '~/providers/GeneralWalletProvider';
|
|
4
|
-
import { PaymentMethod, PaymentMethodInfo } from '../domains/paymentMethods';
|
|
5
|
-
import { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
4
|
+
import { PaymentMethod, type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
5
|
+
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
6
6
|
interface BaseCheckoutFees {
|
|
7
7
|
paymentMethod: PaymentMethod;
|
|
8
8
|
marketMakerFeeUsd: number;
|
|
9
|
-
|
|
9
|
+
liquidityProviderFeeUsd: number;
|
|
10
10
|
totalFeesUsd: number;
|
|
11
11
|
/** does not include the gas fee since it can be in a
|
|
12
12
|
* different token than the source token */
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Make sure it is SERIALIZABLE and BACKWARD COMPATIBLE!!
|
|
6
6
|
*/
|
|
7
|
-
import { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
7
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
8
|
+
import type { ApiCheckoutClientMetadata } from '@funkit/api-base';
|
|
8
9
|
/** Historical Checkout Configuration stored in the server
|
|
9
10
|
* This is similar to FunkitCheckoutConfig but with some fields changed to serializable types
|
|
10
11
|
* */
|
|
@@ -32,5 +33,5 @@ export interface HistoricalCheckoutItem {
|
|
|
32
33
|
* Sanitizes checkoutItem to generate a clientMetadata object to be saved in backend.
|
|
33
34
|
* Ensures that no react components get sent to backend and the object isn't too big as well.
|
|
34
35
|
*/
|
|
35
|
-
export declare function generateClientMetadataForBackend(checkoutItem: FunkitActiveCheckoutItem):
|
|
36
|
+
export declare function generateClientMetadataForBackend(checkoutItem: FunkitActiveCheckoutItem): ApiCheckoutClientMetadata;
|
|
36
37
|
export declare function generateClientMetadataForTokenTransfer(): HistoricalCheckoutItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PreviewTransferResult } from '@funkit/api-base';
|
|
2
|
-
import { LinkPayload } from '@meshconnect/web-link-sdk';
|
|
3
|
-
import {
|
|
1
|
+
import type { PreviewTransferResult } from '@funkit/api-base';
|
|
2
|
+
import type { LinkPayload } from '@meshconnect/web-link-sdk';
|
|
3
|
+
import { type MeshExchangeType } from '~/consts/mesh';
|
|
4
4
|
/** Supported payment methods in FunkitConnect. **/
|
|
5
5
|
export declare enum PaymentMethod {
|
|
6
6
|
/** Moonpay - Credit / Debit Card **/
|
|
@@ -11,23 +11,24 @@ export declare enum PaymentMethod {
|
|
|
11
11
|
BROKERAGE = "brokerage",
|
|
12
12
|
TOKEN_TRANSFER = "token_transfer"
|
|
13
13
|
}
|
|
14
|
-
type
|
|
14
|
+
type MeshMeta = LinkPayload & {
|
|
15
15
|
checkoutMeshNetworkId?: string;
|
|
16
16
|
computedPreviewExpirationMs?: number;
|
|
17
17
|
previewTransferResult?: PreviewTransferResult;
|
|
18
18
|
};
|
|
19
19
|
/** Full payment method information used in frontend during payment flows. **/
|
|
20
20
|
interface PaymentMethodInfoBase {
|
|
21
|
+
description: string;
|
|
21
22
|
paymentMethod: PaymentMethod;
|
|
22
23
|
title: string;
|
|
23
|
-
description: string;
|
|
24
|
-
meta: PaymentMethodInfoMeta;
|
|
25
24
|
}
|
|
26
25
|
export interface PaymentMethodCardInfo extends PaymentMethodInfoBase {
|
|
27
26
|
paymentMethod: PaymentMethod.CARD;
|
|
28
27
|
}
|
|
29
28
|
export interface PaymentMethodBrokerageInfo extends PaymentMethodInfoBase {
|
|
30
29
|
paymentMethod: PaymentMethod.BROKERAGE;
|
|
30
|
+
brokerType: MeshExchangeType;
|
|
31
|
+
meta: MeshMeta;
|
|
31
32
|
}
|
|
32
33
|
export interface PaymentMethodAccountInfo extends PaymentMethodInfoBase {
|
|
33
34
|
paymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
@@ -47,8 +48,8 @@ interface AccountPaymentMethodParams {
|
|
|
47
48
|
}
|
|
48
49
|
interface BrokeragePaymentMethodParams {
|
|
49
50
|
paymentMethod: PaymentMethod.BROKERAGE;
|
|
51
|
+
brokerType: MeshExchangeType;
|
|
50
52
|
meshMeta: LinkPayload;
|
|
51
|
-
brokerage: MeshExchanges;
|
|
52
53
|
}
|
|
53
54
|
interface TokenTransferPaymentMethodParams {
|
|
54
55
|
paymentMethod: PaymentMethod.TOKEN_TRANSFER;
|
package/dist/domains/quote.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { CheckoutQuoteResponse } from '@funkit/api-base';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { Config } from 'wagmi';
|
|
4
|
-
import { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
5
|
-
import { LoginType } from '~/providers/GeneralWalletProvider';
|
|
6
|
-
import { CheckoutFees } from './checkoutFees';
|
|
7
|
-
import { PaymentMethodInfo } from './paymentMethods';
|
|
8
|
-
export
|
|
9
|
-
baseQuote: CheckoutQuoteResponse;
|
|
10
|
-
finalTimeEstimationMs: number;
|
|
11
|
-
finalPaymentTokenAmount: string;
|
|
12
|
-
finalPaymentFeeUsd: string;
|
|
13
|
-
finalTotalUsd: string;
|
|
1
|
+
import { type ApiFunkitCheckoutQuoteResult, type CheckoutQuoteResponse } from '@funkit/api-base';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import type { Config } from 'wagmi';
|
|
4
|
+
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
5
|
+
import type { LoginType } from '~/providers/GeneralWalletProvider';
|
|
6
|
+
import { type CheckoutFees } from './checkoutFees';
|
|
7
|
+
import { type PaymentMethodInfo } from './paymentMethods';
|
|
8
|
+
export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteResult, 'finalFeesBreakdown'> {
|
|
14
9
|
finalFeesBreakdown: CheckoutFees;
|
|
15
|
-
}
|
|
10
|
+
}
|
|
16
11
|
export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, sponsorInitialTransferGasLimit: number, wagmiConfig: Config): Promise<CheckoutQuoteResponse>;
|
|
17
12
|
export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType): Promise<FunkitCheckoutQuoteResult>;
|
|
18
13
|
export declare function getAvailableAssetAmount(checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address): Promise<number | undefined>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const ANIMATION_DELAY = 75;
|
|
2
|
+
/**
|
|
3
|
+
* @param isInitialStep utilizes the old scale-in for initial display. Based on this boolean and animation state.
|
|
4
|
+
* @returns className to be applied on the animatable content
|
|
5
|
+
*/
|
|
6
|
+
export declare const getContentAnimation: ({ isOut, isReversed, isSkipped }: AnimationState, isInitialStep: boolean) => string | undefined;
|
|
2
7
|
interface AnimatedNavigationResponse<T> {
|
|
3
8
|
animation: AnimationState;
|
|
4
9
|
navigateTo: (page: T, params?: AnimationParams) => void;
|
|
@@ -15,7 +20,8 @@ interface AnimationParams {
|
|
|
15
20
|
skip?: boolean;
|
|
16
21
|
}
|
|
17
22
|
export interface AnimationState {
|
|
18
|
-
isOut: boolean
|
|
23
|
+
isOut: boolean;
|
|
24
|
+
isSkipped: boolean;
|
|
19
25
|
isReversed: boolean;
|
|
20
26
|
}
|
|
21
27
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
2
|
export declare function useCheckoutModalTitle(depositAddress: Address, defaultTitle: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FunAddress } from '@funkit/api-base';
|
|
2
|
-
import { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
1
|
+
import { type FunAddress } from '@funkit/api-base';
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
3
|
export declare const useCheckoutTransferDepositAddress: (checkoutItem: FunkitActiveCheckoutItem | null, userId: string | undefined, recipientAddr: FunAddress) => `0x${string}` | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
1
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
2
|
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig | ServerCheckoutConfig): FunkitCheckoutActionParams[];
|
|
3
3
|
export declare function isCheckoutCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
4
4
|
export declare function isCheckoutDirectCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FunCountdownProps } from '~/components/FunCountdown/FunCountdown';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type FunCountdownProps } from '~/components/FunCountdown/FunCountdown';
|
|
3
3
|
export interface UseCountdownResult {
|
|
4
4
|
countdown: ReactNode;
|
|
5
5
|
isLastSecond: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
1
|
+
import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
2
2
|
export declare function useEnabledTokenTransferChainTokens(): TokenTransferSourceChainsAndAssets;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
1
|
+
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
2
2
|
export declare const useIsCheckoutRisky: (checkoutItem: FunkitActiveCheckoutItem) => {
|
|
3
3
|
isCheckoutRisky: boolean | undefined;
|
|
4
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetEnsNameReturnType } from 'viem/ens';
|
|
1
|
+
import { type GetEnsNameReturnType } from 'viem/ens';
|
|
2
2
|
export declare function useMainnetEnsAvatar(name: GetEnsNameReturnType | undefined): import("viem/ens").GetEnsAvatarReturnType | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
2
|
export declare function useMainnetEnsName(address: Address | undefined): import("viem").GetEnsNameReturnType | undefined;
|
package/dist/hooks/useMesh.d.ts
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
4
|
-
|
|
5
|
-
export declare const MESH_EXCHANGE_ICON_MAP: Partial<Record<MeshExchanges, (size: number) => ReactNode>>;
|
|
6
|
-
export declare function getExchangeIcon(exchange: MeshExchanges, size: number): React.ReactNode;
|
|
7
|
-
export declare const useSupportedExchanges: () => MeshExchanges[];
|
|
8
|
-
export declare function getExchangeName(exchange: MeshExchanges): string;
|
|
1
|
+
import { MeshExchangeType } from '~/consts/mesh';
|
|
2
|
+
import type { LinkPayload } from '@meshconnect/web-link-sdk';
|
|
3
|
+
import type { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
4
|
+
export declare const useSupportedExchanges: () => MeshExchangeType[];
|
|
9
5
|
export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
|
|
10
6
|
fullInfo?: boolean;
|
|
11
7
|
iconSize?: number;
|
|
12
8
|
}) => {
|
|
13
|
-
options: FunSelectOption<
|
|
9
|
+
options: FunSelectOption<MeshExchangeType>[];
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
12
|
* Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
|
|
17
13
|
* @param exchange The mesh exchange user is currently connected with
|
|
18
14
|
*/
|
|
19
|
-
export declare const useMeshActiveNetworkInfo: (chainId: string | undefined,
|
|
15
|
+
export declare const useMeshActiveNetworkInfo: (chainId: string | undefined, brokerType: MeshExchangeType | undefined) => {
|
|
20
16
|
meshSupportedTokens: string[];
|
|
21
17
|
meshNetworkId: string | undefined;
|
|
22
18
|
} | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { PaymentMethod, PaymentMethodInfo } from '../domains/paymentMethods';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { PaymentMethod, type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
3
3
|
export declare const PAYMENT_METHOD_ICONS: {
|
|
4
4
|
brokerage: (size: number) => React.JSX.Element;
|
|
5
5
|
card: (size: number) => React.JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface WalletAssets {
|
|
3
|
-
[assetKey: string]: KnownAssetBalanceInfo;
|
|
4
|
-
}
|
|
1
|
+
import { type WalletAssets } from './useWalletAssets';
|
|
5
2
|
export declare function useUsableWalletAssetsForCheckout(): WalletAssets | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KnownAssetBalanceInfo } from '../providers/GeneralWalletProvider';
|
|
1
|
+
import type { KnownAssetBalanceInfo } from '../providers/GeneralWalletProvider';
|
|
2
2
|
export type WalletAssets = Record<string, KnownAssetBalanceInfo>;
|
|
3
3
|
/**
|
|
4
4
|
* Returns wallet assets that are above the {@link ASSETS_LOW_VALUE_THRESHOLD} threshold with their total USD value.
|