@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
package/dist/login-XDVWJKUQ.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/Icons/login.svg
|
|
4
|
-
var login_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 48"><path fill="url(%23a)" d="M0 16c0-5.6 0-8.4 1.09-10.54a10 10 0 0 1 4.37-4.37C7.6 0 10.4 0 16 0h16c5.6 0 8.4 0 10.54 1.09a10 10 0 0 1 4.37 4.37C48 7.6 48 10.4 48 16v16c0 5.6 0 8.4-1.09 10.54a10 10 0 0 1-4.37 4.37C40.4 48 37.6 48 32 48H16c-5.6 0-8.4 0-10.54-1.09a10 10 0 0 1-4.37-4.37C0 40.4 0 37.6 0 32z"/><path fill="url(%23b)" d="M0 16c0-5.6 0-8.4 1.09-10.54a10 10 0 0 1 4.37-4.37C7.6 0 10.4 0 16 0h16c5.6 0 8.4 0 10.54 1.09a10 10 0 0 1 4.37 4.37C48 7.6 48 10.4 48 16v16c0 5.6 0 8.4-1.09 10.54a10 10 0 0 1-4.37 4.37C40.4 48 37.6 48 32 48H16c-5.6 0-8.4 0-10.54-1.09a10 10 0 0 1-4.37-4.37C0 40.4 0 37.6 0 32z"/><path fill="%23000" fill-opacity=".04" fill-rule="evenodd" d="M1.133 9.513C1 11.131 1 13.183 1 16v16c0 2.817 0 4.87.133 6.486.131 1.606.387 2.695.848 3.6a9 9 0 0 0 3.933 3.933c.905.461 1.994.717 3.6.848C11.13 47 13.183 47 16 47h16c2.817 0 4.87 0 6.486-.133 1.606-.131 2.695-.387 3.6-.848a9 9 0 0 0 3.933-3.933c.461-.905.717-1.994.848-3.6C47 36.87 47 34.816 47 32V16c0-2.817 0-4.87-.133-6.487-.131-1.605-.387-2.694-.848-3.599a9 9 0 0 0-3.933-3.933c-.905-.461-1.994-.717-3.6-.848C36.87 1 34.816 1 32 1H16c-2.817 0-4.87 0-6.487.133-1.605.131-2.694.387-3.599.848a9 9 0 0 0-3.933 3.933c-.461.905-.717 1.994-.848 3.6ZM1.09 5.46C0 7.6 0 10.4 0 16v16c0 5.6 0 8.4 1.09 10.54a10 10 0 0 0 4.37 4.37C7.6 48 10.4 48 16 48h16c5.6 0 8.4 0 10.54-1.09a10 10 0 0 0 4.37-4.37C48 40.4 48 37.6 48 32V16c0-5.6 0-8.4-1.09-10.54a10 10 0 0 0-4.37-4.37C40.4 0 37.6 0 32 0H16C10.4 0 7.6 0 5.46 1.09a10 10 0 0 0-4.37 4.37" clip-rule="evenodd"/><path fill="url(%23c)" d="M3 14.2c0-3.92 0-5.88.763-7.378a7 7 0 0 1 3.06-3.059C8.318 3 10.28 3 14.2 3h19.6c3.92 0 5.88 0 7.378.763a7 7 0 0 1 3.059 3.06C45 8.318 45 10.28 45 14.2v19.6c0 3.92 0 5.88-.763 7.378a7 7 0 0 1-3.06 3.059C39.682 45 37.72 45 33.8 45H14.2c-3.92 0-5.88 0-7.378-.763a7 7 0 0 1-3.059-3.06C3 39.682 3 37.72 3 33.8z"/><path fill="url(%23d)" fill-opacity=".7" d="M3 14.2c0-3.92 0-5.88.763-7.378a7 7 0 0 1 3.06-3.059C8.318 3 10.28 3 14.2 3h19.6c3.92 0 5.88 0 7.378.763a7 7 0 0 1 3.059 3.06C45 8.318 45 10.28 45 14.2v19.6c0 3.92 0 5.88-.763 7.378a7 7 0 0 1-3.06 3.059C39.682 45 37.72 45 33.8 45H14.2c-3.92 0-5.88 0-7.378-.763a7 7 0 0 1-3.059-3.06C3 39.682 3 37.72 3 33.8z" style="mix-blend-mode:screen"/><path fill="%23000" fill-opacity=".2" fill-rule="evenodd" d="M3.594 9.643C3.5 10.785 3.5 12.232 3.5 14.2v19.6c0 1.968 0 3.415.094 4.557.093 1.136.275 1.928.614 2.594a6.5 6.5 0 0 0 2.841 2.84c.667.34 1.458.522 2.594.615 1.142.094 2.589.094 4.557.094h19.6c1.968 0 3.415 0 4.557-.094 1.136-.093 1.928-.275 2.594-.614a6.5 6.5 0 0 0 2.84-2.841c.34-.666.522-1.458.615-2.594.094-1.142.094-2.589.094-4.557V14.2c0-1.968 0-3.415-.094-4.557-.093-1.136-.275-1.927-.614-2.594a6.5 6.5 0 0 0-2.841-2.84c-.666-.34-1.458-.522-2.594-.615C37.215 3.5 35.768 3.5 33.8 3.5H14.2c-1.968 0-3.415 0-4.557.094-1.136.093-1.927.275-2.594.614A6.5 6.5 0 0 0 4.21 7.05c-.34.667-.522 1.458-.615 2.594Zm.169-2.82C3 8.318 3 10.28 3 14.2v19.6c0 3.92 0 5.88.763 7.378a7 7 0 0 0 3.06 3.059C8.318 45 10.28 45 14.2 45h19.6c3.92 0 5.88 0 7.378-.763a7 7 0 0 0 3.059-3.06C45 39.682 45 37.72 45 33.8V14.2c0-3.92 0-5.88-.763-7.378a7 7 0 0 0-3.06-3.059C39.682 3 37.72 3 33.8 3H14.2c-3.92 0-5.88 0-7.378.763a7 7 0 0 0-3.059 3.06" clip-rule="evenodd"/><path fill="%23fff" fill-opacity=".2" fill-rule="evenodd" d="M4.585 9.712C4.501 10.746 4.5 12.063 4.5 13.9v20.2c0 1.837 0 3.154.085 4.188.084 1.022.244 1.678.514 2.209A5.5 5.5 0 0 0 7.503 42.9c.53.27 1.187.43 2.21.514 1.033.084 2.35.085 4.187.085h20.2c1.837 0 3.154 0 4.188-.085 1.022-.084 1.678-.244 2.209-.514a5.5 5.5 0 0 0 2.404-2.404c.27-.53.43-1.187.514-2.21.084-1.033.085-2.35.085-4.187V13.9c0-1.837 0-3.154-.085-4.188-.084-1.022-.244-1.678-.514-2.209A5.5 5.5 0 0 0 40.496 5.1c-.53-.27-1.187-.43-2.21-.514-1.033-.084-2.35-.085-4.187-.085H13.9c-1.837 0-3.154 0-4.188.085-1.022.084-1.678.244-2.209.514A5.5 5.5 0 0 0 5.1 7.503c-.27.53-.43 1.187-.514 2.21ZM4.208 7.05C3.5 8.44 3.5 10.26 3.5 13.9v20.2c0 3.64 0 5.46.708 6.85a6.5 6.5 0 0 0 2.841 2.841c1.39.709 3.21.709 6.851.709h20.2c3.64 0 5.46 0 6.85-.709a6.5 6.5 0 0 0 2.841-2.84c.709-1.39.709-3.21.709-6.851V13.9c0-3.64 0-5.46-.709-6.85a6.5 6.5 0 0 0-2.84-2.842C39.56 3.5 37.74 3.5 34.1 3.5H13.9c-3.64 0-5.46 0-6.85.708A6.5 6.5 0 0 0 4.207 7.05Z" clip-rule="evenodd" style="mix-blend-mode:overlay"/><path fill="url(%23e)" d="M18 11.347c-4.73 2.247-8 7.068-8 12.653s3.27 10.406 8 12.653V23.908c0-.3 0-.565.047-.829q.061-.349.204-.674c.107-.245.254-.465.42-.715l.905-1.357a7 7 0 0 0 .212-.327L19.79 20l-.003-.006a7 7 0 0 0-.212-.327l-.904-1.357c-.167-.25-.314-.47-.421-.715a3 3 0 0 1-.204-.674C18 16.657 18 16.392 18 16.092z"/><path fill="url(%23f)" d="M30 36.653c4.73-2.247 8-7.068 8-12.653s-3.27-10.406-8-12.653v12.745c0 .3 0 .565-.047.829q-.061.349-.204.674c-.107.245-.254.465-.42.715l-.905 1.357a7 7 0 0 0-.212.327L28.21 28l.003.006c.039.067.098.156.212.327l.904 1.357c.167.25.314.47.421.715q.142.325.204.674c.047.264.047.529.047.829v4.745Z"/><path fill="%23fff" fill-opacity=".2" fill-rule="evenodd" d="M20.092 39.782a2 2 0 0 1-.874-.874C19 38.48 19 37.92 19 36.8V23.969c0-.36 0-.54.031-.714q.042-.233.136-.45c.07-.162.17-.311.37-.611l.871-1.306c.214-.321.321-.482.363-.655a1 1 0 0 0 0-.466c-.042-.173-.149-.334-.363-.654l-.87-1.307c-.2-.3-.3-.45-.37-.611a2 2 0 0 1-.137-.45c-.03-.174-.03-.354-.03-.714V11.2c0-1.12 0-1.68.217-2.108a2 2 0 0 1 .874-.874C20.52 8 21.08 8 22.2 8h3.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C29 9.52 29 10.08 29 11.2v12.831c0 .36 0 .54-.031.714a2 2 0 0 1-.136.45c-.07.162-.17.311-.37.611l-.871 1.306c-.214.321-.321.482-.363.655a1 1 0 0 0 0 .466c.042.173.149.334.363.654l.87 1.307c.2.3.3.45.371.611q.095.217.136.45c.031.174.031.354.031.714V36.8c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C27.48 40 26.92 40 25.8 40h-3.6c-1.12 0-1.68 0-2.108-.218M19.791 20l-.003-.006a7 7 0 0 0-.212-.327l-.87-1.306-.034-.05c-.167-.25-.314-.471-.421-.716a3 3 0 0 1-.204-.674C18 16.657 18 16.392 18 16.092v-4.93c0-.528 0-.982.03-1.357.033-.395.104-.789.297-1.167a3 3 0 0 1 1.311-1.311c.378-.193.772-.264 1.167-.296C21.18 7 21.635 7 22.162 7h3.677c.527 0 .982 0 1.356.03.395.033.789.104 1.167.297a3 3 0 0 1 1.311 1.311c.193.378.264.772.297 1.167.03.375.03.83.03 1.357v12.93c0 .3 0 .565-.047.829a3 3 0 0 1-.203.674c-.108.245-.255.465-.422.715l-.033.05-.871 1.307a7 7 0 0 0-.211.327l-.004.006.004.006c.038.067.097.156.21.327l.872 1.306.033.05c.167.25.314.471.422.716a3 3 0 0 1 .203.674c.047.264.047.529.047.829v4.93c0 .528 0 .983-.03 1.357-.033.395-.104.789-.297 1.167a3 3 0 0 1-1.311 1.311c-.378.193-.772.264-1.167.296-.375.031-.83.031-1.356.031h-3.677c-.528 0-.982 0-1.357-.03-.395-.033-.788-.104-1.167-.297a3 3 0 0 1-1.311-1.311c-.193-.378-.264-.772-.296-1.167a17 17 0 0 1-.03-1.356v-12.87L18 23.908c0-.3 0-.565.047-.829a3 3 0 0 1 .204-.674c.107-.245.254-.465.42-.715l.034-.05.871-1.307a7 7 0 0 0 .212-.327L19.79 20Z" clip-rule="evenodd" style="mix-blend-mode:overlay"/><path fill="%23000" fill-opacity=".7" d="M19 11.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C20.52 8 21.08 8 22.2 8h3.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C29 9.52 29 10.08 29 11.2v12.831c0 .36 0 .54-.031.714a2 2 0 0 1-.136.45c-.07.162-.17.311-.37.611l-.871 1.306c-.214.321-.321.482-.363.655a1 1 0 0 0 0 .466c.042.173.149.334.363.654l.87 1.307c.2.3.3.45.371.611q.094.217.136.45c.031.174.031.354.031.714V36.8c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C27.48 40 26.92 40 25.8 40h-3.6c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C19 38.48 19 37.92 19 36.8V23.969c0-.36 0-.54.031-.714q.042-.233.136-.45c.07-.162.17-.311.37-.611l.871-1.306c.214-.321.321-.482.363-.655a1 1 0 0 0 0-.466c-.042-.173-.149-.334-.363-.654l-.87-1.307c-.2-.3-.3-.45-.371-.611a2 2 0 0 1-.136-.45C19 16.571 19 16.391 19 16.031z"/><defs><linearGradient id="a" x1="24" x2="24" y1="0" y2="48" gradientUnits="userSpaceOnUse"><stop stop-color="%23174299"/><stop offset="1" stop-color="%23001E59"/></linearGradient><linearGradient id="b" x1="24" x2="24" y1="0" y2="48" gradientUnits="userSpaceOnUse"><stop stop-color="%23D2D8E4"/><stop offset="1" stop-color="%23C2C9D6"/></linearGradient><linearGradient id="e" x1="24" x2="24" y1="10" y2="38" gradientUnits="userSpaceOnUse"><stop stop-opacity=".12"/><stop offset="1" stop-opacity=".04"/></linearGradient><linearGradient id="f" x1="24" x2="24" y1="10" y2="38" gradientUnits="userSpaceOnUse"><stop stop-opacity=".12"/><stop offset="1" stop-opacity=".04"/></linearGradient><radialGradient id="c" cx="0" cy="0" r="1" gradientTransform="rotate(-40.077 69.815 48.665)scale(82.9048)" gradientUnits="userSpaceOnUse"><stop offset=".276" stop-color="%2320FF4D"/><stop offset=".464" stop-color="%231499FF"/><stop offset=".755" stop-color="%23FF6FC6"/><stop offset="1" stop-color="%23BC67FF"/></radialGradient><radialGradient id="d" cx="0" cy="0" r="1" gradientTransform="rotate(45 2.52 -6.082)scale(68.6777)" gradientUnits="userSpaceOnUse"><stop stop-color="red"/><stop offset="1" stop-color="%2300A3FF"/></radialGradient></defs></svg>';
|
|
5
|
-
export {
|
|
6
|
-
login_default as default
|
|
7
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { CheckoutModalCommonState, FunCheckoutStep, ModalStepComponentProps, ModalStepInfo } from './stepTransition';
|
|
5
|
-
interface MoonpayDepositData {
|
|
6
|
-
depositToken: string;
|
|
7
|
-
depositTokenAmount: number;
|
|
8
|
-
depositTokenChainId: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* controls in what interval to refresh the quote data in case of a hard refresh, in case of pre-loading it controls when to set the data, should be more than `BEFORE_COUNTDOWN_ENDS_SEC` by at least 10 seconds to provide the API the time needed to complete the call
|
|
12
|
-
*/
|
|
13
|
-
export declare const ESTIMATE_REFRESH_INTERVAL_SEC = 60;
|
|
14
|
-
/**
|
|
15
|
-
* controls how soon before the end of `ESTIMATE_REFRESH_INTERVAL_SEC` to pre-load the quote data
|
|
16
|
-
*/
|
|
17
|
-
export declare const BEFORE_COUNTDOWN_ENDS_SEC = 10;
|
|
18
|
-
export type ConfirmationStepState = CheckoutModalCommonState & {
|
|
19
|
-
paymentMethodInfo: PaymentMethodInfo;
|
|
20
|
-
isCloseButtonHidden: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type ConfirmationStepNext = {
|
|
23
|
-
depositAddress: Address;
|
|
24
|
-
moonpayData?: MoonpayDepositData;
|
|
25
|
-
paymentMethodInfo: PaymentMethodInfo;
|
|
26
|
-
};
|
|
27
|
-
export declare const ConfirmationStepInfo: ModalStepInfo<FunCheckoutStep.CONFIRMATION>;
|
|
28
|
-
export declare function ConfirmationStep({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.CONFIRMATION>): React.JSX.Element;
|
|
29
|
-
export {};
|
package/dist/utils/browsers.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function isSafari(): boolean;
|
|
2
|
-
export declare function isArc(): boolean;
|
|
3
|
-
export declare enum BrowserType {
|
|
4
|
-
Arc = "Arc",
|
|
5
|
-
Brave = "Brave",
|
|
6
|
-
Browser = "Browser",
|
|
7
|
-
Chrome = "Chrome",
|
|
8
|
-
Edge = "Edge",
|
|
9
|
-
Firefox = "Firefox",
|
|
10
|
-
Opera = "Opera",
|
|
11
|
-
Safari = "Safari"
|
|
12
|
-
}
|
|
13
|
-
export declare function getBrowser(): BrowserType;
|
package/dist/utils/colors.d.ts
DELETED
package/dist/utils/debounce.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function debounce(fn: () => void, ms: number): () => void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type DeepPartial<T> = T extends number | string | boolean | null | undefined ? T : {
|
|
2
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
3
|
-
};
|
|
4
|
-
/** NOTE: merging arrays is undefined behavior */
|
|
5
|
-
export declare function deepMerge<T extends object>(origin: T, ...objects: DeepPartial<T>[]): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function exhaustiveCheck(_value: never): any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface FormatDynamicFeeUsdOptions {
|
|
2
|
-
/**
|
|
3
|
-
* Threshold in USD above which the fee should be displayed in %
|
|
4
|
-
*
|
|
5
|
-
* Defauls to 2.5
|
|
6
|
-
*
|
|
7
|
-
* Pass null to disable % format altogether
|
|
8
|
-
*/
|
|
9
|
-
percentThreshold?: number | null;
|
|
10
|
-
}
|
|
11
|
-
export declare function formatDynamicFeeUsd(fee: number, total: number, options?: FormatDynamicFeeUsdOptions): string;
|
|
12
|
-
export declare function formatDynamicFeeToken(fee: number, symbol: string): string;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
interface FormatNumberOptions {
|
|
2
|
-
/** Numbers smaller than this will be converted to scientific notation */
|
|
3
|
-
minBeforeUseScientific?: number;
|
|
4
|
-
/** If the number part for suffixed # is >= this, will use sci notation (e.g. 1,000M -> 1E3M) */
|
|
5
|
-
maxNumberPartSizeForSuffix?: number;
|
|
6
|
-
/** The amount of decimal places to truncate to when softly truncating (to specify decimal places for suffix-truncation, e.g. 1.23M, use decimalPrecisionForSuffix) */
|
|
7
|
-
softDecimalPrecision?: number;
|
|
8
|
-
/** Numbers >= this will have their decimals truncated aggressively */
|
|
9
|
-
maxBeforeAggresiveDecimalTruncation?: number;
|
|
10
|
-
/** The amount of decimal places to truncate to when aggressively truncating (to specify decimal places for suffix-truncation, e.g. 1.23M, use decimalPrecisionForSuffix) */
|
|
11
|
-
aggresiveDecimalPrecision?: number;
|
|
12
|
-
/** Numbers >= this will have a suffix added during truncation (e.g. 1.23M) */
|
|
13
|
-
maxBeforeUseSuffix?: number;
|
|
14
|
-
/** The amount of decimal places to truncate suffix-truncated numbers to (e.g. 1.23M vs 1.2312M)*/
|
|
15
|
-
decimalPrecisionForSuffix?: number;
|
|
16
|
-
/** The largest suffix to use (e.g. if 1000000, we will stop at M and not use the B suffix) */
|
|
17
|
-
maxSuffixSize?: 1e3 | 1e6 | 1e9 | 1e12;
|
|
18
|
-
numberFormatOptions?: Intl.NumberFormatOptions;
|
|
19
|
-
/** Adds minimum significant digits value to force numbers to show decimal precision even when there are none 5 -> 5.00 */
|
|
20
|
-
minimumSignificantDigits?: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Formats a number with conditional truncation, suffixation, and scientific notation.
|
|
24
|
-
* @param number
|
|
25
|
-
* @param options Customize the formatting conditions/behavior
|
|
26
|
-
* @example Visualization, using default values:
|
|
27
|
-
* ```
|
|
28
|
-
* <--(1.23E-7)---0.00001------(0.12121)-------1-------(123,423.26)---1,000,000---(1.22M)--(100.23M)-->
|
|
29
|
-
* _______<-minBeforeScientific maxBeforeAggressive-> maxBeforeUseSuffix-> ^ w/ maxSuffixSize
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare function formatNumberAndStringify(number: number, options?: FormatNumberOptions, numberFormatOptions?: {}): string;
|
|
33
|
-
/** Formats a number for currency (default $) display */
|
|
34
|
-
export declare function formatCurrencyAndStringify(amount: number,
|
|
35
|
-
/** Options to pass `formatNumberAndStringify */
|
|
36
|
-
options?: FormatNumberOptions,
|
|
37
|
-
/** Options to pass toLocaleString */
|
|
38
|
-
numberFormatOptions?: Intl.NumberFormatOptions): string;
|
|
39
|
-
export declare function formatPercent(percent: number, decimalPlaces?: number): string;
|
|
40
|
-
/**
|
|
41
|
-
* Formats a cryptocurrency amount as a string for display.
|
|
42
|
-
*
|
|
43
|
-
* Can customize with options and whether to display currency abbreviation.
|
|
44
|
-
*/
|
|
45
|
-
export declare function formatCryptoAndStringify(
|
|
46
|
-
/** The currency amount **/
|
|
47
|
-
amount: number,
|
|
48
|
-
/** The currency abbreviation e.g. ETH, USDC, ... **/
|
|
49
|
-
platform?: string,
|
|
50
|
-
/** Displays abbreviation after amount, e.g. '1.25 ETH'; default true **/
|
|
51
|
-
useCurrencyAbbreviation?: boolean,
|
|
52
|
-
/** Used to format the number, can be used to customize decimal truncation etc. **/
|
|
53
|
-
options?: FormatNumberOptions): string;
|
|
54
|
-
export declare function parseInputToNumber(input: string | number | undefined): number;
|
|
55
|
-
export declare function roundUpToXDecimalPlaces(inputNumber: string, decimalPlaces: number): number;
|
|
56
|
-
export declare function normalizeSmallUsdNumber(usdNumber: string | number | null): number;
|
|
57
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const fullMonthNames: string[];
|
|
2
|
-
interface FormatDateOption {
|
|
3
|
-
year?: 'full' | 'short' | 'none';
|
|
4
|
-
month?: 'full' | 'short';
|
|
5
|
-
}
|
|
6
|
-
export declare function formatTimestampToDate(date: Date, { year, month }?: FormatDateOption): string;
|
|
7
|
-
interface FormatTimeOption extends FormatDateOption {
|
|
8
|
-
hours?: '24hr' | '12hr';
|
|
9
|
-
seconds?: 'none';
|
|
10
|
-
}
|
|
11
|
-
export declare function formatTimestamp(date: Date, opt?: FormatTimeOption): string;
|
|
12
|
-
/**
|
|
13
|
-
* Formats seconds to mins and seconds string
|
|
14
|
-
* - seconds = 10, output = '10 seconds'
|
|
15
|
-
* - seconds = 20.3, output = '21 seconds'
|
|
16
|
-
* - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
|
|
17
|
-
* - seconds = 60, output = '1min'
|
|
18
|
-
* - seconds = 61, output = '1min 1s'
|
|
19
|
-
* - seconds = 300, output = '5min'
|
|
20
|
-
* - seconds = 320, output = '5min 20s'
|
|
21
|
-
* - seconds = 320, omitSeconds=true, output = '6min'
|
|
22
|
-
* - seconds = 3600, output = '1h'
|
|
23
|
-
* - seconds = 3900, output = '1h 5min'
|
|
24
|
-
* - seconds = 3920, output = '1h 5min 20s'
|
|
25
|
-
*/
|
|
26
|
-
export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean, omitSeconds?: boolean): string;
|
|
27
|
-
export declare function formatSecondsToCountdownForm(seconds: number): string;
|
|
28
|
-
export {};
|
package/dist/utils/groupBy.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function groupBy<Item>(items: Item[], getKey: (item: Item) => string): Record<string, Item[]>;
|
package/dist/utils/indexBy.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function indexBy<Item>(items: Item[], getKey: (item: Item) => string): Record<string, Item>;
|
package/dist/utils/isMobile.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNotNullish<T>(value: T | null | undefined): value is T;
|
package/dist/utils/locale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const detectedBrowserLocale: () => string | undefined;
|
package/dist/utils/mobile.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function redirectInMobile(mobileUri: string): void;
|
package/dist/utils/noop.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const noop: () => undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function omitUndefinedValues<T>(obj: T): T;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/utils/isMobile.ts
|
|
4
|
-
function isAndroid() {
|
|
5
|
-
return typeof navigator !== "undefined" && /android/i.test(navigator.userAgent);
|
|
6
|
-
}
|
|
7
|
-
function isSmallIOS() {
|
|
8
|
-
return typeof navigator !== "undefined" && /iPhone|iPod/.test(navigator.userAgent);
|
|
9
|
-
}
|
|
10
|
-
function isLargeIOS() {
|
|
11
|
-
return typeof navigator !== "undefined" && (/iPad/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
|
|
12
|
-
}
|
|
13
|
-
function isIOS() {
|
|
14
|
-
return isSmallIOS() || isLargeIOS();
|
|
15
|
-
}
|
|
16
|
-
function isMobile() {
|
|
17
|
-
return isAndroid() || isIOS();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
isAndroid,
|
|
22
|
-
isIOS,
|
|
23
|
-
isMobile
|
|
24
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|