@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,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { SelectedHomeTab } from '../modals/ProfileDetails/FunProfileViews/Home';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import type { SelectedHomeTab } from '../modals/ProfileDetails/FunProfileViews/Home';
|
|
3
3
|
interface ModalProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { ResponsiveValue } from '../css/sprinkles.css';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import type { ResponsiveValue } from '../css/sprinkles.css';
|
|
3
3
|
interface ShowBalanceContextValue {
|
|
4
4
|
showBalance: ResponsiveValue<boolean> | undefined;
|
|
5
5
|
setShowBalance: (showBalance: ResponsiveValue<boolean>) => void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ThemeVars } from '../css/sprinkles.css';
|
|
1
|
+
import type { ThemeVars } from '../css/sprinkles.css';
|
|
2
|
+
/** System font fallbacks */
|
|
3
|
+
export declare const systemFontStack = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
2
4
|
declare const fontStacks: {
|
|
3
5
|
readonly rounded: "SFRounded, ui-rounded, \"SF Pro Rounded\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
4
6
|
readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
package/dist/themes/baseTheme.js
CHANGED
|
@@ -1,147 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ThemeVars } from '~/css/sprinkles.css';
|
|
2
|
+
import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
|
|
2
3
|
export declare const darkTheme: {
|
|
3
|
-
({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions):
|
|
4
|
-
colors: {
|
|
5
|
-
accentColor: string;
|
|
6
|
-
accentColorForeground: string;
|
|
7
|
-
actionButtonBorder: string;
|
|
8
|
-
connectButtonBackground: string;
|
|
9
|
-
connectButtonBackgroundError: string;
|
|
10
|
-
connectButtonText: string;
|
|
11
|
-
connectButtonTextError: string;
|
|
12
|
-
connectionIndicator: string;
|
|
13
|
-
error: string;
|
|
14
|
-
errorBackground: string;
|
|
15
|
-
errorBorder: string;
|
|
16
|
-
generalBorder: string;
|
|
17
|
-
generalBorderDim: string;
|
|
18
|
-
menuItemBackground: string;
|
|
19
|
-
selectedOptionBorder: string;
|
|
20
|
-
paymentOptionBorderDisabled: string;
|
|
21
|
-
standby: string;
|
|
22
|
-
success: string;
|
|
23
|
-
loadingBase: string;
|
|
24
|
-
loadingAccent: string;
|
|
25
|
-
chainIconBorder: string;
|
|
26
|
-
modalBackdrop: string;
|
|
27
|
-
modalBackground: string;
|
|
28
|
-
modalBorder: string;
|
|
29
|
-
notificationPrimary: string;
|
|
30
|
-
offBackground: string;
|
|
31
|
-
hoverState: string;
|
|
32
|
-
offBackgroundInverse: string;
|
|
33
|
-
lightStroke: string;
|
|
34
|
-
mediumStroke: string;
|
|
35
|
-
strokeColor: string;
|
|
36
|
-
dydxSwitchActiveBackground: string;
|
|
37
|
-
primaryText: string;
|
|
38
|
-
secondaryText: string;
|
|
39
|
-
tertiaryText: string;
|
|
40
|
-
textSelection: string;
|
|
41
|
-
inputBackground: string;
|
|
42
|
-
inputBorderBase: string;
|
|
43
|
-
inputBorderHover: string;
|
|
44
|
-
actionColor: string;
|
|
45
|
-
actionColorHover: string;
|
|
46
|
-
actionColorDisabled: string;
|
|
47
|
-
buttonPrimary: string;
|
|
48
|
-
buttonDisabled: string;
|
|
49
|
-
buttonWarning: string;
|
|
50
|
-
buttonSuccess: string;
|
|
51
|
-
buttonTextWarning: string;
|
|
52
|
-
buttonTextSuccess: string;
|
|
53
|
-
buttonTextPrimary: string;
|
|
54
|
-
buttonTextDisabled: string;
|
|
55
|
-
transparent: string;
|
|
56
|
-
buttonBackgroundTertiary: string;
|
|
57
|
-
buttonBackgroundHoverTertiary: string;
|
|
58
|
-
buttonTextTertiary: string;
|
|
59
|
-
buttonTextDisabledTertiary: string;
|
|
60
|
-
buttonStrokeTertiary: string;
|
|
61
|
-
buttonBackground: string;
|
|
62
|
-
buttonBackgroundHover: string;
|
|
63
|
-
buttonBackgroundDisabled: string;
|
|
64
|
-
buttonStroke: string;
|
|
65
|
-
buttonTextSecondaryDisabled: string;
|
|
66
|
-
buttonTextSecondary: string;
|
|
67
|
-
buttonIconBackgroundHover: string;
|
|
68
|
-
buttonIconBackgroundPressed: string;
|
|
69
|
-
buttonIconStroke: string;
|
|
70
|
-
};
|
|
71
|
-
shadows: {
|
|
72
|
-
connectButton: string;
|
|
73
|
-
dialog: string;
|
|
74
|
-
selectedOption: string;
|
|
75
|
-
selectedWallet: string;
|
|
76
|
-
button: string;
|
|
77
|
-
};
|
|
78
|
-
moonpayTheme: string;
|
|
79
|
-
fontSize: {
|
|
80
|
-
'8': {
|
|
81
|
-
fontSize: string;
|
|
82
|
-
lineHeight: string;
|
|
83
|
-
};
|
|
84
|
-
'10': {
|
|
85
|
-
fontSize: string;
|
|
86
|
-
lineHeight: string;
|
|
87
|
-
};
|
|
88
|
-
'12': {
|
|
89
|
-
fontSize: string;
|
|
90
|
-
lineHeight: string;
|
|
91
|
-
};
|
|
92
|
-
'13': {
|
|
93
|
-
fontSize: string;
|
|
94
|
-
lineHeight: string;
|
|
95
|
-
};
|
|
96
|
-
'14': {
|
|
97
|
-
fontSize: string;
|
|
98
|
-
lineHeight: string;
|
|
99
|
-
};
|
|
100
|
-
'16': {
|
|
101
|
-
fontSize: string;
|
|
102
|
-
lineHeight: string;
|
|
103
|
-
};
|
|
104
|
-
'18': {
|
|
105
|
-
fontSize: string;
|
|
106
|
-
lineHeight: string;
|
|
107
|
-
};
|
|
108
|
-
'20': {
|
|
109
|
-
fontSize: string;
|
|
110
|
-
lineHeight: string;
|
|
111
|
-
};
|
|
112
|
-
'23': {
|
|
113
|
-
fontSize: string;
|
|
114
|
-
lineHeight: string;
|
|
115
|
-
};
|
|
116
|
-
'40': {
|
|
117
|
-
fontSize: string;
|
|
118
|
-
lineHeight: string;
|
|
119
|
-
};
|
|
120
|
-
'57': {
|
|
121
|
-
fontSize: string;
|
|
122
|
-
lineHeight: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
fontWeight: {
|
|
126
|
-
regular: string;
|
|
127
|
-
medium: string;
|
|
128
|
-
semibold: string;
|
|
129
|
-
bold: string;
|
|
130
|
-
heavy: string;
|
|
131
|
-
};
|
|
132
|
-
fonts: {
|
|
133
|
-
body: string;
|
|
134
|
-
};
|
|
135
|
-
radii: {
|
|
136
|
-
actionButton: string;
|
|
137
|
-
connectButton: string;
|
|
138
|
-
menuButton: string;
|
|
139
|
-
modal: string;
|
|
140
|
-
modalMobile: string;
|
|
141
|
-
};
|
|
142
|
-
blurs: {
|
|
143
|
-
modalOverlay: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
4
|
+
({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
|
|
146
5
|
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
147
6
|
};
|
package/dist/themes/darkTheme.js
CHANGED
|
@@ -1,147 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ThemeVars } from '~/css/sprinkles.css';
|
|
2
|
+
import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
|
|
2
3
|
export declare const lightTheme: {
|
|
3
|
-
({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions):
|
|
4
|
-
colors: {
|
|
5
|
-
accentColor: string;
|
|
6
|
-
accentColorForeground: string;
|
|
7
|
-
actionButtonBorder: string;
|
|
8
|
-
connectButtonBackground: string;
|
|
9
|
-
connectButtonBackgroundError: string;
|
|
10
|
-
connectButtonText: string;
|
|
11
|
-
connectButtonTextError: string;
|
|
12
|
-
connectionIndicator: string;
|
|
13
|
-
error: string;
|
|
14
|
-
errorBackground: string;
|
|
15
|
-
errorBorder: string;
|
|
16
|
-
generalBorder: string;
|
|
17
|
-
generalBorderDim: string;
|
|
18
|
-
menuItemBackground: string;
|
|
19
|
-
selectedOptionBorder: string;
|
|
20
|
-
paymentOptionBorderDisabled: string;
|
|
21
|
-
standby: string;
|
|
22
|
-
success: string;
|
|
23
|
-
loadingBase: string;
|
|
24
|
-
loadingAccent: string;
|
|
25
|
-
chainIconBorder: string;
|
|
26
|
-
modalBackdrop: string;
|
|
27
|
-
modalBackground: string;
|
|
28
|
-
modalBorder: string;
|
|
29
|
-
notificationPrimary: string;
|
|
30
|
-
offBackground: string;
|
|
31
|
-
hoverState: string;
|
|
32
|
-
offBackgroundInverse: string;
|
|
33
|
-
lightStroke: string;
|
|
34
|
-
mediumStroke: string;
|
|
35
|
-
strokeColor: string;
|
|
36
|
-
dydxSwitchActiveBackground: string;
|
|
37
|
-
primaryText: string;
|
|
38
|
-
secondaryText: string;
|
|
39
|
-
tertiaryText: string;
|
|
40
|
-
textSelection: string;
|
|
41
|
-
inputBackground: string;
|
|
42
|
-
inputBorderBase: string;
|
|
43
|
-
inputBorderHover: string;
|
|
44
|
-
actionColor: string;
|
|
45
|
-
actionColorHover: string;
|
|
46
|
-
actionColorDisabled: string;
|
|
47
|
-
buttonPrimary: string;
|
|
48
|
-
buttonDisabled: string;
|
|
49
|
-
buttonWarning: string;
|
|
50
|
-
buttonSuccess: string;
|
|
51
|
-
buttonTextWarning: string;
|
|
52
|
-
buttonTextSuccess: string;
|
|
53
|
-
buttonTextPrimary: string;
|
|
54
|
-
buttonTextDisabled: string;
|
|
55
|
-
transparent: string;
|
|
56
|
-
buttonBackgroundTertiary: string;
|
|
57
|
-
buttonBackgroundHoverTertiary: string;
|
|
58
|
-
buttonTextTertiary: string;
|
|
59
|
-
buttonTextDisabledTertiary: string;
|
|
60
|
-
buttonStrokeTertiary: string;
|
|
61
|
-
buttonBackground: string;
|
|
62
|
-
buttonBackgroundHover: string;
|
|
63
|
-
buttonBackgroundDisabled: string;
|
|
64
|
-
buttonStroke: string;
|
|
65
|
-
buttonTextSecondaryDisabled: string;
|
|
66
|
-
buttonTextSecondary: string;
|
|
67
|
-
buttonIconBackgroundHover: string;
|
|
68
|
-
buttonIconBackgroundPressed: string;
|
|
69
|
-
buttonIconStroke: string;
|
|
70
|
-
};
|
|
71
|
-
shadows: {
|
|
72
|
-
connectButton: string;
|
|
73
|
-
dialog: string;
|
|
74
|
-
selectedOption: string;
|
|
75
|
-
selectedWallet: string;
|
|
76
|
-
button: string;
|
|
77
|
-
};
|
|
78
|
-
moonpayTheme: string;
|
|
79
|
-
fontSize: {
|
|
80
|
-
'8': {
|
|
81
|
-
fontSize: string;
|
|
82
|
-
lineHeight: string;
|
|
83
|
-
};
|
|
84
|
-
'10': {
|
|
85
|
-
fontSize: string;
|
|
86
|
-
lineHeight: string;
|
|
87
|
-
};
|
|
88
|
-
'12': {
|
|
89
|
-
fontSize: string;
|
|
90
|
-
lineHeight: string;
|
|
91
|
-
};
|
|
92
|
-
'13': {
|
|
93
|
-
fontSize: string;
|
|
94
|
-
lineHeight: string;
|
|
95
|
-
};
|
|
96
|
-
'14': {
|
|
97
|
-
fontSize: string;
|
|
98
|
-
lineHeight: string;
|
|
99
|
-
};
|
|
100
|
-
'16': {
|
|
101
|
-
fontSize: string;
|
|
102
|
-
lineHeight: string;
|
|
103
|
-
};
|
|
104
|
-
'18': {
|
|
105
|
-
fontSize: string;
|
|
106
|
-
lineHeight: string;
|
|
107
|
-
};
|
|
108
|
-
'20': {
|
|
109
|
-
fontSize: string;
|
|
110
|
-
lineHeight: string;
|
|
111
|
-
};
|
|
112
|
-
'23': {
|
|
113
|
-
fontSize: string;
|
|
114
|
-
lineHeight: string;
|
|
115
|
-
};
|
|
116
|
-
'40': {
|
|
117
|
-
fontSize: string;
|
|
118
|
-
lineHeight: string;
|
|
119
|
-
};
|
|
120
|
-
'57': {
|
|
121
|
-
fontSize: string;
|
|
122
|
-
lineHeight: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
fontWeight: {
|
|
126
|
-
regular: string;
|
|
127
|
-
medium: string;
|
|
128
|
-
semibold: string;
|
|
129
|
-
bold: string;
|
|
130
|
-
heavy: string;
|
|
131
|
-
};
|
|
132
|
-
fonts: {
|
|
133
|
-
body: string;
|
|
134
|
-
};
|
|
135
|
-
radii: {
|
|
136
|
-
actionButton: string;
|
|
137
|
-
connectButton: string;
|
|
138
|
-
menuButton: string;
|
|
139
|
-
modal: string;
|
|
140
|
-
modalMobile: string;
|
|
141
|
-
};
|
|
142
|
-
blurs: {
|
|
143
|
-
modalOverlay: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
4
|
+
({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
|
|
146
5
|
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
147
6
|
};
|
package/dist/types/utils.d.ts
CHANGED
package/dist/utils/aborts.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare class AssetAbortClass {
|
|
|
3
3
|
constructor(abortController: AbortController);
|
|
4
4
|
setAbortController(newAbortController: AbortController): void;
|
|
5
5
|
getAbortSignal(): AbortSignal;
|
|
6
|
-
abort(reason?:
|
|
6
|
+
abort(reason?: unknown): void;
|
|
7
7
|
}
|
|
8
8
|
export declare const singletonAssetAbort: AssetAbortClass;
|
|
9
9
|
export declare const singletonCheckoutAbort: AssetAbortClass;
|
package/dist/utils/address.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
2
|
-
export declare function formatAddress(address: string): string;
|
|
3
|
-
export declare function formatAddressLastFour(address: string): string;
|
|
1
|
+
import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
|
|
4
2
|
export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { KnownAssetHoldingsItem } from '~/domains/wallet';
|
|
1
|
+
import type { KnownAssetHoldingsItem } from '~/domains/wallet';
|
|
2
2
|
import { LoginType } from '~/providers/GeneralWalletProvider';
|
|
3
3
|
import { PaymentMethod } from '../domains/paymentMethods';
|
|
4
|
-
import { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
5
|
-
import { FlagValues } from '../providers/FunkitFlagsProvider';
|
|
4
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
5
|
+
import { type FlagValues } from '../providers/FunkitFlagsProvider';
|
|
6
6
|
export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '~/domains/wallet';
|
|
7
7
|
export declare const ASSETS_LOW_VALUE_THRESHOLD = 0.1;
|
|
8
|
-
export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number, decimals: number) => number;
|
|
9
|
-
export declare
|
|
8
|
+
export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number | string, decimals: number) => number;
|
|
9
|
+
export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined): number | null;
|
|
10
|
+
export declare const isAssetUsableToPayForCheckout: (flags: FlagValues, checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string, assetUsdAmount: number | null, loginType: LoginType, isAllowedForCheckout: boolean) => {
|
|
10
11
|
isUsable: boolean;
|
|
11
12
|
reason: string;
|
|
12
13
|
};
|
|
@@ -19,7 +20,7 @@ export declare const MESH_CUSTOM_CLIENT_FEE_PERCENT = 0.055;
|
|
|
19
20
|
/**
|
|
20
21
|
* Estimating overall fees
|
|
21
22
|
*/
|
|
22
|
-
export declare const getFeesUsdEstimate: (
|
|
23
|
+
export declare const getFeesUsdEstimate: (targetChainId: string, assetChainId: string, assetUsdAmount: number | null, paymentMethod: PaymentMethod | undefined) => number;
|
|
23
24
|
type RecommendedAsset = {
|
|
24
25
|
chainSymbolKey: string;
|
|
25
26
|
label: string | null;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CheckoutHistoryItem, CheckoutState } from '@funkit/api-base';
|
|
2
|
-
import { Config } from '@wagmi/core';
|
|
3
|
-
import { Address } from 'viem';
|
|
4
|
-
import { UseConfigReturnType } from 'wagmi';
|
|
1
|
+
import { type CheckoutHistoryItem, CheckoutState } from '@funkit/api-base';
|
|
2
|
+
import { type Config } from '@wagmi/core';
|
|
3
|
+
import { type Address } from 'viem';
|
|
4
|
+
import type { UseConfigReturnType } from 'wagmi';
|
|
5
5
|
import { PaymentMethod } from '../domains/paymentMethods';
|
|
6
|
-
import { FunkitActiveCheckoutItem, FunkitCheckoutConfig, FunkitCheckoutQuoteResult, HistoricalCheckoutItem, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
6
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig, FunkitCheckoutQuoteResult, HistoricalCheckoutItem, ServerCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
7
7
|
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
8
8
|
export declare const MESH_TIME_ESTIMATE_MS = 300000;
|
|
9
9
|
export declare const DUMMY_TRANSFER_PARAMS: {
|
|
@@ -16,7 +16,11 @@ export declare const DUMMY_TRANSFER_PARAMS: {
|
|
|
16
16
|
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
17
17
|
*/
|
|
18
18
|
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>): {
|
|
19
|
-
|
|
19
|
+
config: FunkitCheckoutConfig;
|
|
20
|
+
isValid: true;
|
|
21
|
+
message: string;
|
|
22
|
+
} | {
|
|
23
|
+
isValid: false;
|
|
20
24
|
message: string;
|
|
21
25
|
};
|
|
22
26
|
export declare const hasSufficientBalance: (wagmiConfig: UseConfigReturnType, walletAddress: string, tokenAddress: string, tokenChainId: string, requiredAssetAmount: number) => Promise<{
|
|
@@ -8,8 +8,10 @@ export declare enum FlagKey {
|
|
|
8
8
|
DisableMantleSourceAssets = "disable_mantle_source_assets",
|
|
9
9
|
/** Whether zksync assets can be used as source asset for payment for any checkout */
|
|
10
10
|
DisableZkSyncSourceAssets = "disable_zksync_source_assets",
|
|
11
|
-
/** Which exchanges to show in the exchange selection screen */
|
|
11
|
+
/** @deprecated Which exchanges to show in the exchange selection screen */
|
|
12
12
|
SupportedExchanges = "supported_exchanges",
|
|
13
|
+
/** Which exchanges to show in the exchange selection screen */
|
|
14
|
+
SupportedExchangesV2 = "supported_exchanges_v2",
|
|
13
15
|
/** Which countries should be blocked for Funkit Checkout. Reference Alpha-2 Code format https://www.iban.com/country-codes. */
|
|
14
16
|
BlockedCountries = "blocked_countries",
|
|
15
17
|
/** Which users/addresses should be blocked for Funkit Checkout */
|
|
@@ -40,6 +42,10 @@ export declare const flagConfig: {
|
|
|
40
42
|
type: "string";
|
|
41
43
|
default_value: string;
|
|
42
44
|
};
|
|
45
|
+
supported_exchanges_v2: {
|
|
46
|
+
type: "string";
|
|
47
|
+
default_value: string;
|
|
48
|
+
};
|
|
43
49
|
blocked_countries: {
|
|
44
50
|
type: "string";
|
|
45
51
|
default_value: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunkitProviderProps } from '../providers/FunkitProvider';
|
|
1
|
+
import type { FunkitProviderProps } from '../providers/FunkitProvider';
|
|
2
2
|
export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Validates the passed in props of FunkitProvider. If there are any misconfigurations, an error will be thrown.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
2
|
export declare function isMainnetUsdt(chainId: number | string, address: Address): boolean;
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { TransferIntegration } from '@funkit/api-base';
|
|
2
|
-
import {
|
|
3
|
-
import { AssetHoldingsMap } from '../utils/assets';
|
|
4
|
-
export {
|
|
5
|
-
export declare function fetchMeshLinkToken(funkitUserId: string,
|
|
1
|
+
import { type TransferIntegration } from '@funkit/api-base';
|
|
2
|
+
import type { MeshExchangeType } from '../consts/mesh';
|
|
3
|
+
import type { AssetHoldingsMap } from '../utils/assets';
|
|
4
|
+
export { FUNKIT_MESH_CLIENT_ID } from '../consts/mesh';
|
|
5
|
+
export declare function fetchMeshLinkToken(funkitUserId: string, brokerType: MeshExchangeType, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>;
|
|
6
6
|
export declare function fetchMeshTransferIntegrations(apiKey: string): Promise<TransferIntegration[]>;
|
|
7
|
-
export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({
|
|
7
|
+
export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ brokerType, chainId, integrations, }: {
|
|
8
|
+
brokerType: MeshExchangeType;
|
|
8
9
|
chainId: string;
|
|
9
|
-
exchange: MeshExchanges;
|
|
10
10
|
integrations: TransferIntegration[];
|
|
11
11
|
}): {
|
|
12
12
|
meshSupportedTokens: string[];
|
|
13
13
|
meshNetworkId: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
interface MeshAccountInfo {
|
|
16
|
-
authToken: string;
|
|
17
|
-
exchange: MeshExchanges;
|
|
18
|
-
targetChain: string;
|
|
19
16
|
apiKey: string;
|
|
17
|
+
authToken: string;
|
|
18
|
+
brokerType: MeshExchangeType;
|
|
20
19
|
integrations: TransferIntegration[];
|
|
20
|
+
targetChain: string;
|
|
21
21
|
}
|
|
22
22
|
export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo): Promise<AssetHoldingsMap>;
|
package/dist/utils/payment.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginType } from '~/providers/GeneralWalletProvider';
|
|
2
|
-
import { PaymentMethodInfo } from '../domains/paymentMethods';
|
|
2
|
+
import { type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
3
3
|
/**
|
|
4
4
|
* Generate a string for backend to indicate the source of a checkout funds
|
|
5
5
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CheckoutHistoryItem } from '@funkit/api-base';
|
|
1
|
+
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
2
|
export type PurifiedCheckoutHistoryItem = Pick<CheckoutHistoryItem, 'depositAddr' | 'state' | 'fromChainId' | 'fromTokenAddress' | 'toChainId' | 'toTokenAddress' | 'toAmountBaseUnit'>;
|
|
3
3
|
export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem) => PurifiedCheckoutHistoryItem;
|
package/dist/wallets/Wallet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Connector, CreateConnectorFn } from 'wagmi';
|
|
2
|
-
import { WalletConnectParameters } from 'wagmi/connectors';
|
|
3
|
-
import { CoinbaseWalletOptions } from './walletConnectors/coinbaseWallet/coinbaseWallet';
|
|
4
|
-
import { WalletConnectWalletOptions } from './walletConnectors/walletConnectWallet/walletConnectWallet';
|
|
1
|
+
import type { Connector, CreateConnectorFn } from 'wagmi';
|
|
2
|
+
import type { WalletConnectParameters } from 'wagmi/connectors';
|
|
3
|
+
import type { CoinbaseWalletOptions } from './walletConnectors/coinbaseWallet/coinbaseWallet';
|
|
4
|
+
import type { WalletConnectWalletOptions } from './walletConnectors/walletConnectWallet/walletConnectWallet';
|
|
5
5
|
export type InstructionStepName = 'install' | 'create' | 'scan' | 'connect' | 'refresh';
|
|
6
6
|
type FunkitSdkConnector = {
|
|
7
7
|
mobile?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletInstance } from './Wallet';
|
|
1
|
+
import type { WalletInstance } from './Wallet';
|
|
2
2
|
export declare const getExtensionDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
3
3
|
export declare const getMobileDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
4
4
|
export declare const getDesktopDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CreateConnectorFn } from 'wagmi';
|
|
2
|
-
import { ConnectorsForWalletsParameters } from './connectorsForWallets';
|
|
3
2
|
import type { WalletList } from './Wallet';
|
|
3
|
+
import { type ConnectorsForWalletsParameters } from './connectorsForWallets';
|
|
4
4
|
export declare function getDefaultWallets(parameters: ConnectorsForWalletsParameters): {
|
|
5
5
|
connectors: CreateConnectorFn[];
|
|
6
6
|
wallets: WalletList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WalletProviderFlags } from '../types/utils';
|
|
2
|
-
import { CreateConnector } from './Wallet';
|
|
1
|
+
import type { WalletProviderFlags } from '../types/utils';
|
|
2
|
+
import type { CreateConnector } from './Wallet';
|
|
3
3
|
export declare function hasInjectedProvider({ flag, namespace, }: {
|
|
4
4
|
flag?: WalletProviderFlags;
|
|
5
5
|
namespace?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletInstance } from './Wallet';
|
|
1
|
+
import type { WalletInstance } from './Wallet';
|
|
2
2
|
export declare const groupedWallets: (recentWallets: WalletInstance[], walletInstances: WalletInstance[]) => WalletInstance[];
|
|
3
3
|
export declare const isRecentWallet: (recentWallets: WalletInstance[], walletId: string) => boolean;
|
|
4
4
|
export declare const isFunkitSdkConnector: (wallet: WalletInstance) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from 'wagmi';
|
|
2
|
-
import { ConnectMutateAsync } from 'wagmi/query';
|
|
3
|
-
import { WalletInstance } from './Wallet';
|
|
1
|
+
import { type Config } from 'wagmi';
|
|
2
|
+
import type { ConnectMutateAsync } from 'wagmi/query';
|
|
3
|
+
import type { WalletInstance } from './Wallet';
|
|
4
4
|
export interface WalletConnector extends WalletInstance {
|
|
5
5
|
ready?: boolean;
|
|
6
6
|
connect: () => ReturnType<ConnectMutateAsync<Config, unknown>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefaultWalletOptions, Wallet } from '../../Wallet';
|
|
1
|
+
import type { DefaultWalletOptions, Wallet } from '../../Wallet';
|
|
2
2
|
export type ArgentWalletOptions = DefaultWalletOptions;
|
|
3
3
|
export declare const argentWallet: ({ projectId, walletConnectParameters, }: ArgentWalletOptions) => Wallet;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Wallet } from '
|
|
2
|
-
import { DefaultWalletOptions } from './../../Wallet';
|
|
1
|
+
import type { DefaultWalletOptions, Wallet } from './../../Wallet';
|
|
3
2
|
export type BifrostWalletOptions = DefaultWalletOptions;
|
|
4
3
|
export declare const bifrostWallet: ({ projectId, walletConnectParameters, }: BifrostWalletOptions) => Wallet;
|