@funkit/connect 0.1.8 → 0.1.9
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/dist/{chunk-KQXRSMJW.js → chunk-6NU6GSSJ.js} +10152 -9735
- package/dist/{chunk-3A7E2IPT.js → chunk-W7RO4DCA.js} +33 -14
- package/dist/{chunk-PKSFBURG.js → chunk-ZKI6VFDD.js} +24 -5
- package/dist/components/index.css +861 -341
- package/dist/components/index.js +3 -2
- package/dist/index.css +848 -328
- package/dist/index.js +9 -6
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-4TBAMXD2.js → chunk-237HEA4B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BZWTTESU.js → chunk-3YVOYNPH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DTCZLIMY.js → chunk-74BR2RAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-C6BBHBY3.js → chunk-7HTS7H5B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-Z47L7SO3.js → chunk-D76EMZT2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-WPGD3FGN.js → chunk-EBNKDT5H.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TFHNF64Z.js → chunk-ECNJY6H5.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-EUSM6MRB.js +158 -0
- package/dist/wallets/walletConnectors/{chunk-WCZ37NN2.js → chunk-IVIQBLOK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TTTMI2Z2.js → chunk-JARWK7S5.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-PVTJW4KE.js → chunk-JC5DQVHX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-LU3HYLHT.js → chunk-JVF24YQM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4VG2VEG2.js → chunk-K4AO45B3.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-EINKDQQW.js → chunk-KGIRU665.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JU27WJ7W.js → chunk-M5VGZ2QW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-32KC4FTG.js → chunk-NJGDUFM2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-C3X4W5P4.js → chunk-OH3HGTQV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-K342MEBF.js → chunk-PATI3A3F.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HHEZNZRR.js → chunk-RLZP75FI.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HKBLG5YG.js → chunk-W4DY35PZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M4KIVTE3.js → chunk-WXWQQHAQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-UM7QXLQE.js → chunk-YJR5S7NP.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RMJYZWKN.js → chunk-ZGVEVXA7.js} +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +64 -64
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +9 -6
- package/dist/__private__/index.d.ts +0 -8
- package/dist/chunk-N5FOZIDQ.js +0 -24430
- package/dist/components/AccountModal/AccountModal.d.ts +0 -6
- package/dist/components/AsyncImage/AsyncImage.d.ts +0 -19
- package/dist/components/AsyncImage/useAsyncImage.d.ts +0 -3
- package/dist/components/Avatar/Avatar.d.ts +0 -9
- package/dist/components/Avatar/EmojiAvatar.d.ts +0 -2
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +0 -106
- package/dist/components/Box/Box.d.ts +0 -82
- package/dist/components/Button/ActionButton.d.ts +0 -14
- package/dist/components/ChainModal/ChainModal.css.d.ts +0 -2
- package/dist/components/ChainModal/ChainModal.d.ts +0 -6
- package/dist/components/CloseButton/CloseButton.d.ts +0 -5
- package/dist/components/ConnectButton/ConnectButton.d.ts +0 -28
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +0 -39
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +0 -2
- package/dist/components/ConnectButton/formatAddress.d.ts +0 -1
- package/dist/components/ConnectButton/formatENS.d.ts +0 -1
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +0 -36
- package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +0 -4
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +0 -15
- package/dist/components/ConnectOptions/FunConnectOptions.d.ts +0 -11
- package/dist/components/ConnectOptions/MobileOptions.css.d.ts +0 -1
- package/dist/components/ConnectOptions/MobileOptions.d.ts +0 -4
- package/dist/components/Dialog/Dialog.css.d.ts +0 -5
- package/dist/components/Dialog/Dialog.d.ts +0 -12
- package/dist/components/Dialog/DialogContent.css.d.ts +0 -6
- package/dist/components/Dialog/DialogContent.d.ts +0 -12
- package/dist/components/Dialog/FocusTrap.d.ts +0 -2
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +0 -5
- package/dist/components/Disclaimer/DisclaimerText.d.ts +0 -4
- package/dist/components/FunButton/FunBackButton.d.ts +0 -4
- package/dist/components/FunButton/FunButton.css.d.ts +0 -3
- package/dist/components/FunButton/FunButton.d.ts +0 -17
- package/dist/components/FunButton/FunIconButton.d.ts +0 -16
- package/dist/components/FunButton/FunLinkButton.d.ts +0 -8
- package/dist/components/FunButton/FunViewTxButton.d.ts +0 -4
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +0 -7
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +0 -8
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +0 -15
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +0 -12
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +0 -6
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
- package/dist/components/FunConnectModal/FunConnectModal.d.ts +0 -6
- package/dist/components/FunContainer/FunContainer.d.ts +0 -11
- package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +0 -6
- package/dist/components/FunDivider/FunDivider.d.ts +0 -7
- package/dist/components/FunInput/FunInput.d.ts +0 -29
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +0 -24
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +0 -9
- package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +0 -7
- package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +0 -12
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +0 -6
- package/dist/components/FunNotification/FunNotification.d.ts +0 -12
- package/dist/components/FunOnramp/FunOnramp.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +0 -17
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +0 -8
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +0 -5
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +0 -6
- package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -52
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +0 -13
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +0 -18
- package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +0 -6
- package/dist/components/FunPayments/FunPayments.css.d.ts +0 -7
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +0 -7
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +0 -6
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +0 -14
- package/dist/components/FunSelect/FunClickOutside.d.ts +0 -8
- package/dist/components/FunSelect/FunSelect.d.ts +0 -24
- package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +0 -2
- package/dist/components/FunSignInFlow/FunSignInStep.d.ts +0 -14
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +0 -9
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +0 -9
- package/dist/components/FunStates/FunErrorContent.d.ts +0 -10
- package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +0 -2
- package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
- package/dist/components/FunToast/FunShortToast.d.ts +0 -3
- package/dist/components/FunToast/FunToast.d.ts +0 -18
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +0 -12
- package/dist/components/FunkitProvider/AuthenticationContext.d.ts +0 -35
- package/dist/components/FunkitProvider/AvatarContext.d.ts +0 -9
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +0 -2
- package/dist/components/FunkitProvider/FunToastContext.d.ts +0 -11
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +0 -130
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +0 -18
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +0 -25
- package/dist/components/FunkitProvider/FunkitWalletProvider.d.ts +0 -17
- package/dist/components/FunkitProvider/I18nContext.d.ts +0 -9
- package/dist/components/FunkitProvider/ModalContext.d.ts +0 -41
- package/dist/components/FunkitProvider/ModalSizeContext.d.ts +0 -7
- package/dist/components/FunkitProvider/RainbowKitChainContext.d.ts +0 -19
- package/dist/components/FunkitProvider/provideRainbowKitChains.d.ts +0 -3
- package/dist/components/FunkitProvider/useCoolMode.d.ts +0 -2
- package/dist/components/FunkitProvider/useFingerprint.d.ts +0 -1
- package/dist/components/FunkitProvider/usePreloadImages.d.ts +0 -1
- package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +0 -5
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +0 -58
- package/dist/components/Icons/AcornsIcon.d.ts +0 -2
- package/dist/components/Icons/AlpacaIcon.d.ts +0 -2
- package/dist/components/Icons/Assets.d.ts +0 -3
- package/dist/components/Icons/Back.d.ts +0 -2
- package/dist/components/Icons/BinanceIcon.d.ts +0 -2
- package/dist/components/Icons/BitFlyerIcon.d.ts +0 -2
- package/dist/components/Icons/BitstampIcon.d.ts +0 -2
- package/dist/components/Icons/BridgeIcon.d.ts +0 -2
- package/dist/components/Icons/BybitIcon.d.ts +0 -2
- package/dist/components/Icons/Cancel.d.ts +0 -2
- package/dist/components/Icons/CexloIcon.d.ts +0 -2
- package/dist/components/Icons/ClockIcon.d.ts +0 -2
- package/dist/components/Icons/Close.d.ts +0 -2
- package/dist/components/Icons/Coinbase.d.ts +0 -2
- package/dist/components/Icons/CoinlistIcon.d.ts +0 -2
- package/dist/components/Icons/Connect.d.ts +0 -3
- package/dist/components/Icons/Copied.d.ts +0 -2
- 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/CryptoComIcon.d.ts +0 -2
- package/dist/components/Icons/Disconnect.d.ts +0 -2
- package/dist/components/Icons/DisconnectSq.d.ts +0 -4
- package/dist/components/Icons/Dropdown.d.ts +0 -2
- package/dist/components/Icons/EthereumIcon.d.ts +0 -2
- package/dist/components/Icons/EtoroIcon.d.ts +0 -2
- package/dist/components/Icons/EtradeIcon.d.ts +0 -2
- 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 -5
- package/dist/components/Icons/FunBackIcon.d.ts +0 -2
- package/dist/components/Icons/GateIo.d.ts +0 -2
- package/dist/components/Icons/GeminiIcon.d.ts +0 -2
- package/dist/components/Icons/HuobiIcon.d.ts +0 -2
- package/dist/components/Icons/Icons.css.d.ts +0 -3
- package/dist/components/Icons/Info.d.ts +0 -3
- package/dist/components/Icons/KrakenIcon.d.ts +0 -2
- package/dist/components/Icons/KucoinIcon.d.ts +0 -2
- package/dist/components/Icons/LightningIcon.d.ts +0 -2
- package/dist/components/Icons/LinkIcon.d.ts +0 -2
- package/dist/components/Icons/Login.d.ts +0 -3
- package/dist/components/Icons/LogoutIcon.d.ts +0 -2
- package/dist/components/Icons/MastercardIcon.d.ts +0 -2
- package/dist/components/Icons/MmFox.d.ts +0 -2
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +0 -4
- package/dist/components/Icons/OkcoinIcon.d.ts +0 -2
- package/dist/components/Icons/OkxIcon.d.ts +0 -2
- package/dist/components/Icons/PasskeyIcon.d.ts +0 -2
- package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -5
- package/dist/components/Icons/PlusIcon.d.ts +0 -2
- package/dist/components/Icons/ProfileIcon.d.ts +0 -2
- package/dist/components/Icons/PublicIcon.d.ts +0 -2
- package/dist/components/Icons/ReceiptIcon.d.ts +0 -2
- package/dist/components/Icons/Refresh.d.ts +0 -3
- package/dist/components/Icons/RobinhoodIcon.d.ts +0 -2
- package/dist/components/Icons/Scan.d.ts +0 -3
- package/dist/components/Icons/SearchIcon.d.ts +0 -4
- package/dist/components/Icons/SettingsIcon.d.ts +0 -2
- package/dist/components/Icons/SocialMediaIcons.d.ts +0 -4
- package/dist/components/Icons/Spinner.d.ts +0 -5
- package/dist/components/Icons/StEthIcon.d.ts +0 -2
- package/dist/components/Icons/StashIcon.d.ts +0 -2
- package/dist/components/Icons/Success.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/WalletIcon.d.ts +0 -3
- package/dist/components/Icons/WeBullIcon.d.ts +0 -2
- package/dist/components/Icons/WhiteDotIcon.d.ts +0 -2
- package/dist/components/InfoButton/InfoButton.d.ts +0 -5
- package/dist/components/MenuButton/MenuButton.css.d.ts +0 -1
- package/dist/components/MenuButton/MenuButton.d.ts +0 -9
- package/dist/components/ModalSelection/ModalSelection.css.d.ts +0 -1
- package/dist/components/ModalSelection/ModalSelection.d.ts +0 -17
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
- package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +0 -19
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +0 -9
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +0 -11
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +0 -17
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +0 -6
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +0 -10
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +0 -11
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +0 -10
- package/dist/components/QRCode/QRCode.d.ts +0 -13
- package/dist/components/SignIn/SignIn.d.ts +0 -5
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +0 -1
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +0 -2
- package/dist/components/Text/Text.d.ts +0 -18
- package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +0 -10
- package/dist/components/Txs/TxItem.d.ts +0 -7
- package/dist/components/Txs/TxList.d.ts +0 -7
- package/dist/components/Txs/Txs.css.d.ts +0 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/consts/funkit.d.ts +0 -7
- package/dist/css/animations.css.d.ts +0 -9
- package/dist/css/atoms.d.ts +0 -6
- package/dist/css/cssObjectFromTheme.d.ts +0 -6
- package/dist/css/cssStringFromTheme.d.ts +0 -4
- package/dist/css/reset.css.d.ts +0 -14
- package/dist/css/sprinkles.css.d.ts +0 -2798
- package/dist/css/touchableStyles.css.d.ts +0 -4
- package/dist/css/touchableStyles.d.ts +0 -8
- package/dist/hooks/useChainId.d.ts +0 -1
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +0 -31
- package/dist/hooks/useCheckoutStateBooleans.d.ts +0 -9
- package/dist/hooks/useConnectionStatus.d.ts +0 -7
- package/dist/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/hooks/useFunListeners.d.ts +0 -8
- package/dist/hooks/useIsMounted.d.ts +0 -1
- package/dist/hooks/useMainnet.d.ts +0 -4
- package/dist/hooks/useMainnetEnsAvatar.d.ts +0 -1
- package/dist/hooks/useMainnetEnsName.d.ts +0 -1
- package/dist/hooks/useMesh.d.ts +0 -25
- package/dist/hooks/useSymbolRefresh.d.ts +0 -7
- package/dist/hooks/useWindowSize.d.ts +0 -4
- package/dist/index.d.ts +0 -16
- package/dist/locales/index.d.ts +0 -3
- package/dist/themes/baseTheme.d.ts +0 -25
- package/dist/themes/darkTheme.d.ts +0 -65
- package/dist/themes/lightTheme.d.ts +0 -65
- package/dist/transactions/TransactionStoreContext.d.ts +0 -151
- package/dist/transactions/transactionStore.d.ts +0 -21
- package/dist/transactions/useAddRecentTransaction.d.ts +0 -2
- package/dist/transactions/useClearRecentTransactions.d.ts +0 -1
- package/dist/transactions/useRecentTransactions.d.ts +0 -2
- package/dist/types.d.ts +0 -4
- package/dist/utils/browsers.d.ts +0 -13
- package/dist/utils/chainToExplorerUrl.d.ts +0 -2
- package/dist/utils/checkout.d.ts +0 -94
- package/dist/utils/colors.d.ts +0 -3
- package/dist/utils/emailandPhoneValidator.d.ts +0 -5
- package/dist/utils/flatten.d.ts +0 -1
- package/dist/utils/formatNumber.d.ts +0 -53
- package/dist/utils/formatTimestamp.d.ts +0 -1
- package/dist/utils/funwallet.d.ts +0 -1
- package/dist/utils/getWalletConnectUri.d.ts +0 -2
- 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/mesh.d.ts +0 -53
- package/dist/utils/miniAbi/balanceOf.d.ts +0 -16
- package/dist/utils/moonpay.d.ts +0 -1
- package/dist/utils/omitUndefinedValues.d.ts +0 -1
- package/dist/utils/platforms.d.ts +0 -10
- package/dist/wallets/Wallet.d.ts +0 -86
- package/dist/wallets/connectorsForWallets.d.ts +0 -2
- package/dist/wallets/downloadUrls.d.ts +0 -4
- package/dist/wallets/getDefaultWallets.d.ts +0 -11
- package/dist/wallets/getInjectedConnector.d.ts +0 -10
- package/dist/wallets/getWalletConnectConnector.d.ts +0 -26
- package/dist/wallets/recentWalletIds.d.ts +0 -2
- package/dist/wallets/useWalletConnectors.d.ts +0 -13
- package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +0 -18
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +0 -39
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/chunk-4ACOCJJZ.js +0 -54
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +0 -15
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +0 -24
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/index.d.ts +0 -41
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +0 -17
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare enum AuthenticationStatus {
|
|
3
|
-
LOADING = "loading",
|
|
4
|
-
UNAUTHENTICATED = "unauthenticated",
|
|
5
|
-
AUTHENTICATED = "authenticated"
|
|
6
|
-
}
|
|
7
|
-
export interface AuthenticationAdapter<Message> {
|
|
8
|
-
getNonce: () => Promise<string>;
|
|
9
|
-
createMessage: (args: {
|
|
10
|
-
nonce: string;
|
|
11
|
-
address: string;
|
|
12
|
-
chainId: number;
|
|
13
|
-
}) => Message;
|
|
14
|
-
getMessageBody: (args: {
|
|
15
|
-
message: Message;
|
|
16
|
-
}) => string;
|
|
17
|
-
verify: (args: {
|
|
18
|
-
message: Message;
|
|
19
|
-
signature: string;
|
|
20
|
-
}) => Promise<boolean>;
|
|
21
|
-
signOut: () => Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
export interface AuthenticationConfig<Message> {
|
|
24
|
-
adapter: AuthenticationAdapter<Message>;
|
|
25
|
-
status: AuthenticationStatus;
|
|
26
|
-
}
|
|
27
|
-
export declare function createAuthenticationAdapter<Message>(adapter: AuthenticationAdapter<Message>): AuthenticationAdapter<Message>;
|
|
28
|
-
interface RainbowKitAuthenticationProviderProps<Message> extends AuthenticationConfig<Message> {
|
|
29
|
-
enabled?: boolean;
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
}
|
|
32
|
-
export declare function RainbowKitAuthenticationProvider<Message = unknown>({ adapter, children, enabled, status, }: RainbowKitAuthenticationProviderProps<Message>): React.JSX.Element;
|
|
33
|
-
export declare function useAuthenticationAdapter(): AuthenticationAdapter<any>;
|
|
34
|
-
export declare function useAuthenticationStatus(): AuthenticationStatus | null;
|
|
35
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type AvatarComponentProps = {
|
|
3
|
-
address: string;
|
|
4
|
-
ensImage?: string | null;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
export type AvatarComponent = React.FunctionComponent<AvatarComponentProps>;
|
|
8
|
-
export declare const defaultAvatar: AvatarComponent;
|
|
9
|
-
export declare const AvatarContext: React.Context<AvatarComponent>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FunToastProps } from '../FunToast/FunToast';
|
|
3
|
-
interface FunToastContextProps {
|
|
4
|
-
showToast: (args: FunToastProps, displayTimeMs?: number) => void;
|
|
5
|
-
hideToast: () => void;
|
|
6
|
-
toastContent: FunToastProps | null;
|
|
7
|
-
closing: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function useFunToast(): FunToastContextProps;
|
|
10
|
-
export declare function FunToastProvider({ children }: any): React.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { CheckoutCoreQuoteResponse, CheckoutHistoryItem } from '@funkit/core';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { Abi, Address } from 'viem';
|
|
4
|
-
import { CheckoutHistoryStateMap } from '../../utils/checkout';
|
|
5
|
-
import { PaymentMethod } from '../FunPayments/FunPaymentMethods';
|
|
6
|
-
export interface FunkitCheckoutActionParams {
|
|
7
|
-
contractAbi: Abi;
|
|
8
|
-
contractAddress: Address;
|
|
9
|
-
functionName: string;
|
|
10
|
-
functionArgs: any[];
|
|
11
|
-
}
|
|
12
|
-
export interface FunkitCheckoutConfig {
|
|
13
|
-
/** ****************************
|
|
14
|
-
* Api-related configurations *
|
|
15
|
-
******************************/
|
|
16
|
-
/** List of contract action params **/
|
|
17
|
-
actionsParams: FunkitCheckoutActionParams[];
|
|
18
|
-
/** The ID of the chain where the checkout operation is to be performed. **/
|
|
19
|
-
targetChain: string;
|
|
20
|
-
/** The wanted asset for the checkout operation. This can be either a chain native token (by specifying NATIVE_TOKEN) or an ERC-20 token (by specifying actual token address) on the target chain. **/
|
|
21
|
-
targetAsset: Address;
|
|
22
|
-
/** The amount of wanted asset for the checkout operation. **/
|
|
23
|
-
targetAssetAmount: number;
|
|
24
|
-
/** Timestamp (in milliseconds) after which the checkout should not be performed, and the funds will become rescuable. Min: 300000 (5 mins), Max: 3600000 (1 hour). **/
|
|
25
|
-
expirationTimestampMs: number;
|
|
26
|
-
/** ****************************************
|
|
27
|
-
* Checkout ModalUI-related configurations *
|
|
28
|
-
*******************************************/
|
|
29
|
-
/** Title to show in the checkout modal. Defaults to "Checkout" **/
|
|
30
|
-
modalTitle?: string;
|
|
31
|
-
/** Icon to show in the checkout modal (50px x 50px). If not specified, no icon will be shown. **/
|
|
32
|
-
iconSrc?: null | string;
|
|
33
|
-
/** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
|
|
34
|
-
checkoutItemTitle: string;
|
|
35
|
-
/** Description of the item being checked out. If not specified, it will default to blank. **/
|
|
36
|
-
checkoutItemDescription?: string;
|
|
37
|
-
/** The quantity of the item being checked out. If not specified (0, null, undefined), it will default to blank. **/
|
|
38
|
-
checkoutItemAmount?: number;
|
|
39
|
-
}
|
|
40
|
-
interface FunkitCheckoutValidationResult {
|
|
41
|
-
isValid: boolean;
|
|
42
|
-
message: string;
|
|
43
|
-
}
|
|
44
|
-
type FunkitCheckoutQuoteResult = CheckoutCoreQuoteResponse;
|
|
45
|
-
export type FunkitCheckoutResult = {
|
|
46
|
-
type: 'error' | 'success';
|
|
47
|
-
message: string;
|
|
48
|
-
metadata: object | Error;
|
|
49
|
-
};
|
|
50
|
-
interface useFunkitCheckoutProps {
|
|
51
|
-
/** @required the checkout config object **/
|
|
52
|
-
config: FunkitCheckoutConfig;
|
|
53
|
-
/** @optional fires when checkout config is done validating **/
|
|
54
|
-
onValidation?: (result: FunkitCheckoutValidationResult) => void;
|
|
55
|
-
/** @optional fires when a checkout quote is received **/
|
|
56
|
-
onEstimation?: (result: FunkitCheckoutQuoteResult) => void;
|
|
57
|
-
/** @optional fires when a checkout if confirmed with the funkit server **/
|
|
58
|
-
onConfirmation?: () => void;
|
|
59
|
-
/** @optional fires if the checkout fails at any point */
|
|
60
|
-
onError?: (result: FunkitCheckoutResult) => void;
|
|
61
|
-
/** @optional fires if the checkout fails at any point */
|
|
62
|
-
onSuccess?: (result: FunkitCheckoutResult) => void;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Checkout Item for frontend use
|
|
66
|
-
*/
|
|
67
|
-
export interface FunkitActiveCheckoutItem {
|
|
68
|
-
/** Unique identifier for frontend use only. */
|
|
69
|
-
id: string;
|
|
70
|
-
/** Time of creation of the active checkout item. For frontend use only. **/
|
|
71
|
-
startTimestampMs: number;
|
|
72
|
-
/** The draft dollar value estimate of the checkout. Not the actual quote. **/
|
|
73
|
-
draftDollarValue: null | number;
|
|
74
|
-
/** Whether the checkout quote is being fetched **/
|
|
75
|
-
isQuoting: boolean;
|
|
76
|
-
/** Latest checkout estimated fees and time **/
|
|
77
|
-
latestQuote: null | FunkitCheckoutQuoteResult;
|
|
78
|
-
/** Error messages associated with checkout quote **/
|
|
79
|
-
quoteErrorMessage: string;
|
|
80
|
-
/** The deposit address provided by server after the checkout is confirmed. If `null`, it is not confirmed yet. **/
|
|
81
|
-
depositAddress: null | Address;
|
|
82
|
-
/** Settings the checkout was init-ed with **/
|
|
83
|
-
initSettings: useFunkitCheckoutProps;
|
|
84
|
-
/** User's choice of source asset to fund the checkout operation **/
|
|
85
|
-
selectedSourceAssetInfo: {
|
|
86
|
-
address: Address | null;
|
|
87
|
-
symbol: string | null;
|
|
88
|
-
chainId: string;
|
|
89
|
-
};
|
|
90
|
-
/** Whether the checkout is fastforwarded to confirmation page because the user's funwallet already has sufficient target asset */
|
|
91
|
-
isFastForwarded: boolean;
|
|
92
|
-
}
|
|
93
|
-
export declare function FunkitCheckoutProvider({ children }: {
|
|
94
|
-
children: ReactNode;
|
|
95
|
-
}): React.JSX.Element;
|
|
96
|
-
interface useFunkitPreCheckoutInternalReturn {
|
|
97
|
-
checkoutItem: null | FunkitActiveCheckoutItem;
|
|
98
|
-
updateSourceAsset: (newSourceAsset: Address, newSourceAssetSymbol: string, newSourceAssetChainId: string) => void;
|
|
99
|
-
confirmCheckout: (shouldBatchOpBypassInit: boolean) => Promise<Address>;
|
|
100
|
-
getCheckoutDraftDollarValue: () => Promise<void>;
|
|
101
|
-
getCheckoutQuote: (sponsorInitialTransferGasLimit: number, paymentMethod: PaymentMethod) => Promise<void>;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Internal hook to handle frontend pre-checkout operations, PER-CHECKOUT ITEM.
|
|
105
|
-
*/
|
|
106
|
-
export declare const useFunkitPreCheckoutInternal: (checkoutId: string | null) => useFunkitPreCheckoutInternalReturn;
|
|
107
|
-
/**
|
|
108
|
-
* Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
|
|
109
|
-
*/
|
|
110
|
-
export declare const useFunkitPostCheckoutInternal: (depositAddress: Address) => {
|
|
111
|
-
checkoutHistoryInfo: CheckoutHistoryItem;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Internal hook to get all post-checkout items
|
|
115
|
-
*/
|
|
116
|
-
export declare const useFunkitAllPostCheckoutsInternal: () => {
|
|
117
|
-
checkoutHistoryList: CheckoutHistoryItem[];
|
|
118
|
-
checkoutHistoryStateMap: CheckoutHistoryStateMap;
|
|
119
|
-
isCheckoutHistoryInited: boolean;
|
|
120
|
-
isRefreshingCheckoutHistory: boolean;
|
|
121
|
-
startCheckoutHistoryListener: () => void;
|
|
122
|
-
stopCheckoutHistoryListener: () => void;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* External hook for user to kickstart a checkout in their app
|
|
126
|
-
*/
|
|
127
|
-
export declare const useFunkitCheckout: (props: useFunkitCheckoutProps) => {
|
|
128
|
-
beginCheckout: (inputConfig?: FunkitCheckoutConfig) => Promise<void>;
|
|
129
|
-
};
|
|
130
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface LoginOptions {
|
|
3
|
-
web2: boolean;
|
|
4
|
-
web3: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface FunkitConfig {
|
|
7
|
-
/** Funkit api key **/
|
|
8
|
-
apiKey: string;
|
|
9
|
-
/** Privy app id **/
|
|
10
|
-
privyAppId: string;
|
|
11
|
-
/** Login options toggle **/
|
|
12
|
-
enabledLoginOptions: LoginOptions;
|
|
13
|
-
/** App name **/
|
|
14
|
-
appName: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
|
|
17
|
-
export declare function useFunkitConfig(): FunkitConfig;
|
|
18
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { CreateConfigParameters } from 'wagmi';
|
|
3
|
-
import { ThemeVars } from '../../css/sprinkles.css';
|
|
4
|
-
import { Locale } from '../../locales';
|
|
5
|
-
import { FunkitConfig } from './FunkitConfigContext';
|
|
6
|
-
import { RainbowKitChain } from './RainbowKitChainContext';
|
|
7
|
-
export declare const useThemeRootProps: () => {
|
|
8
|
-
"data-rk": string;
|
|
9
|
-
};
|
|
10
|
-
export type Theme = ThemeVars | {
|
|
11
|
-
lightMode: ThemeVars;
|
|
12
|
-
darkMode: ThemeVars;
|
|
13
|
-
};
|
|
14
|
-
export interface FunkitProviderProps {
|
|
15
|
-
chains: RainbowKitChain[];
|
|
16
|
-
initialChain?: RainbowKitChain | number;
|
|
17
|
-
funkitConfig: FunkitConfig;
|
|
18
|
-
wagmiConfig: CreateConfigParameters;
|
|
19
|
-
id?: string;
|
|
20
|
-
theme?: Theme | null;
|
|
21
|
-
locale?: Locale;
|
|
22
|
-
}
|
|
23
|
-
export declare const RESERVED_GROUP_NAME = "funkit-web2";
|
|
24
|
-
export declare function FunkitProvider(props: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
|
|
25
|
-
export declare function FunkitProviderInner({ chains, children, id, initialChain, locale, theme, funkitConfig, }: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Auth, FunWallet } from '@funkit/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type FunWalletAssets = null | {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
};
|
|
6
|
-
interface FunkitWalletContextProps {
|
|
7
|
-
isLoggedIn: boolean;
|
|
8
|
-
funWallet: FunWallet | null;
|
|
9
|
-
auth: Auth | null;
|
|
10
|
-
funWalletAssets: FunWalletAssets;
|
|
11
|
-
isFetchingAssets: boolean;
|
|
12
|
-
startAssetsListener: () => void;
|
|
13
|
-
stopAssetsListener: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare function FunkitWalletProvider({ children }: any): React.JSX.Element;
|
|
16
|
-
export declare const useFunkitWallet: () => FunkitWalletContextProps;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { Locale } from '../../locales';
|
|
3
|
-
export declare const I18nContext: React.Context<import("i18n-js").I18n>;
|
|
4
|
-
interface I18nProviderProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
locale?: Locale;
|
|
7
|
-
}
|
|
8
|
-
export declare const I18nProvider: ({ children, locale }: I18nProviderProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { FunConfirmDialogMenuTypes } from '../FunConfirmDialog/FunConfirmDialog';
|
|
3
|
-
interface ModalProviderProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare function ModalProvider({ children }: ModalProviderProps): React.JSX.Element;
|
|
7
|
-
export declare function useModalState(): {
|
|
8
|
-
accountModalOpen: boolean;
|
|
9
|
-
chainModalOpen: boolean;
|
|
10
|
-
connectModalOpen: boolean;
|
|
11
|
-
funCheckoutModalOpen: boolean;
|
|
12
|
-
funDevTestModalOpen: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function useAccountModal(): {
|
|
15
|
-
accountModalOpen: boolean;
|
|
16
|
-
openAccountModal: (() => void) | undefined;
|
|
17
|
-
};
|
|
18
|
-
export declare function useChainModal(): {
|
|
19
|
-
chainModalOpen: boolean;
|
|
20
|
-
openChainModal: (() => void) | undefined;
|
|
21
|
-
};
|
|
22
|
-
export declare function useConnectModal(): {
|
|
23
|
-
connectModalOpen: boolean;
|
|
24
|
-
openConnectModal: (() => void) | undefined;
|
|
25
|
-
};
|
|
26
|
-
export declare function useFunCheckoutModal(): {
|
|
27
|
-
funCheckoutModalOpen: boolean;
|
|
28
|
-
openFunCheckoutModal: ((checkoutId: string) => void) | undefined;
|
|
29
|
-
};
|
|
30
|
-
export declare function useFunCheckoutHistoryModal(): {
|
|
31
|
-
funCheckoutHistoryModalOpen: boolean;
|
|
32
|
-
openFunCheckoutHistoryModal: ((depositAddress: string) => void) | undefined;
|
|
33
|
-
};
|
|
34
|
-
export declare function useFunDevTestModal(): {
|
|
35
|
-
funDevTestModalOpen: boolean;
|
|
36
|
-
openFunDevTestModal: (() => void) | undefined;
|
|
37
|
-
};
|
|
38
|
-
export declare function useConfirmModal(): {
|
|
39
|
-
openConfirmModal: ((type: FunConfirmDialogMenuTypes.CONFIRM_LOGOUT, action: (() => void) | (() => Promise<void>)) => void) | undefined;
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ModalSizeOptions: {
|
|
3
|
-
readonly COMPACT: "compact";
|
|
4
|
-
readonly WIDE: "wide";
|
|
5
|
-
};
|
|
6
|
-
export type ModalSizes = (typeof ModalSizeOptions)[keyof typeof ModalSizeOptions];
|
|
7
|
-
export declare const ModalSizeContext: import("react").Context<ModalSizes>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { Chain as WagmiChain } from 'wagmi';
|
|
3
|
-
export interface RainbowKitChain {
|
|
4
|
-
id: number;
|
|
5
|
-
name?: string;
|
|
6
|
-
iconUrl?: string | (() => Promise<string>) | null;
|
|
7
|
-
iconBackground?: string;
|
|
8
|
-
}
|
|
9
|
-
export type Chain = WagmiChain & RainbowKitChain;
|
|
10
|
-
interface RainbowKitChainProviderProps {
|
|
11
|
-
chains: RainbowKitChain[];
|
|
12
|
-
initialChain?: RainbowKitChain | number;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function RainbowKitChainProvider({ chains, children, initialChain, }: RainbowKitChainProviderProps): React.JSX.Element;
|
|
16
|
-
export declare const useRainbowKitChains: () => RainbowKitChain[];
|
|
17
|
-
export declare const useInitialChainId: () => number | undefined;
|
|
18
|
-
export declare const useRainbowKitChainsById: () => Record<number, RainbowKitChain>;
|
|
19
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RainbowKitChain } from './RainbowKitChainContext';
|
|
2
|
-
/** @description Decorates an array of wagmi `Chain` objects with RainbowKitChain property overrides */
|
|
3
|
-
export declare const provideRainbowKitChains: <Chain extends RainbowKitChain>(chains: Chain[]) => Chain[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useFingerprint(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function usePreloadImages(): void;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import PrivyJS from '@privy-io/js-sdk-core';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
interface UserInfoDisplay {
|
|
4
|
-
type: string;
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
interface OtpErrors {
|
|
10
|
-
code: string;
|
|
11
|
-
otpValue: string;
|
|
12
|
-
}
|
|
13
|
-
type OtpErrorType = OtpErrors | null;
|
|
14
|
-
export declare const PRIVY_ERROR_CODES: {
|
|
15
|
-
readonly INVALID_CREDENTIALS: "invalid_credentials";
|
|
16
|
-
readonly NETWORK_ERROR: "network_error";
|
|
17
|
-
};
|
|
18
|
-
export declare const privyOauthProvider: {
|
|
19
|
-
readonly GOOGLE: "google";
|
|
20
|
-
readonly APPLE: "apple";
|
|
21
|
-
readonly TWITTER: "twitter";
|
|
22
|
-
readonly EMAIL: "email";
|
|
23
|
-
};
|
|
24
|
-
export type PrivyOauthProviderType = (typeof privyOauthProvider)[keyof typeof privyOauthProvider];
|
|
25
|
-
interface FunkitWeb2ContextType {
|
|
26
|
-
privy: PrivyJS | null;
|
|
27
|
-
loading: boolean;
|
|
28
|
-
verifying: boolean;
|
|
29
|
-
loginInput: string;
|
|
30
|
-
setLoginInput: (value: string) => void;
|
|
31
|
-
isLoginInputValid: boolean;
|
|
32
|
-
type: Web2LoginType;
|
|
33
|
-
codeInput: string;
|
|
34
|
-
otpError: OtpErrorType;
|
|
35
|
-
resetError: () => void;
|
|
36
|
-
setCodeInput: (value: string) => void;
|
|
37
|
-
sendOTPCode: (bypass?: boolean) => Promise<boolean>;
|
|
38
|
-
verifyOTPCode: (code?: string) => Promise<boolean>;
|
|
39
|
-
handleOauthRedirect: (oAuthProvider: PrivyOauthProviderType) => void;
|
|
40
|
-
user: any;
|
|
41
|
-
userEmail: UserInfoDisplay;
|
|
42
|
-
token: string | null;
|
|
43
|
-
refreshToken: string | null;
|
|
44
|
-
logout: () => void;
|
|
45
|
-
}
|
|
46
|
-
declare const FunkitWeb2Context: React.Context<FunkitWeb2ContextType>;
|
|
47
|
-
interface FunkitWeb2ProviderProps {
|
|
48
|
-
children: ReactNode;
|
|
49
|
-
}
|
|
50
|
-
type Web2LoginType = 'Email' | 'Phone' | PrivyOauthProviderType;
|
|
51
|
-
/**
|
|
52
|
-
* Handles web2 signins for funwallets
|
|
53
|
-
* - Privy (Email only, Social Auth TBD)
|
|
54
|
-
* - Turnkey (TBD)
|
|
55
|
-
*/
|
|
56
|
-
declare const FunkitWeb2Provider: React.FC<FunkitWeb2ProviderProps>;
|
|
57
|
-
export { FunkitWeb2Context, FunkitWeb2Provider };
|
|
58
|
-
export declare const useFunkitWeb2Login: () => FunkitWeb2ContextType;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const FunDownArrow: () => React.JSX.Element;
|
|
3
|
-
export declare const FunUpArrow: () => React.JSX.Element;
|
|
4
|
-
export declare const FunNarrowRightArrow: () => React.JSX.Element;
|
|
5
|
-
export declare const FunNarrowDownArrow: () => React.JSX.Element;
|