@funkit/connect 0.1.10 → 0.1.12
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/__private__/index.d.ts +8 -0
- package/dist/chunk-7BFJCGW2.js +24994 -0
- package/dist/{chunk-X25RSAGB.js → chunk-JC32QCLG.js} +8608 -8461
- package/dist/{chunk-W7RO4DCA.js → chunk-Q73FKLU4.js} +1 -0
- package/dist/{chunk-ZKI6VFDD.js → chunk-UOUEGWLS.js} +1 -0
- package/dist/components/AccountModal/AccountModal.d.ts +6 -0
- package/dist/components/AsyncImage/AsyncImage.d.ts +19 -0
- package/dist/components/AsyncImage/useAsyncImage.d.ts +3 -0
- package/dist/components/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Avatar/EmojiAvatar.d.ts +2 -0
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +106 -0
- package/dist/components/Box/Box.d.ts +86 -0
- package/dist/components/Button/ActionButton.d.ts +14 -0
- package/dist/components/ChainModal/ChainModal.css.d.ts +2 -0
- package/dist/components/ChainModal/ChainModal.d.ts +6 -0
- package/dist/components/CloseButton/CloseButton.d.ts +5 -0
- package/dist/components/ConnectButton/ConnectButton.d.ts +28 -0
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +39 -0
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +2 -0
- package/dist/components/ConnectButton/formatAddress.d.ts +1 -0
- package/dist/components/ConnectButton/formatENS.d.ts +1 -0
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +36 -0
- package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +4 -0
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +15 -0
- package/dist/components/ConnectOptions/FunConnectOptions.d.ts +11 -0
- package/dist/components/ConnectOptions/MobileOptions.css.d.ts +1 -0
- package/dist/components/ConnectOptions/MobileOptions.d.ts +4 -0
- package/dist/components/Dialog/Dialog.css.d.ts +5 -0
- package/dist/components/Dialog/Dialog.d.ts +12 -0
- package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
- package/dist/components/Dialog/DialogContent.d.ts +12 -0
- package/dist/components/Dialog/FocusTrap.d.ts +2 -0
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +5 -0
- package/dist/components/Disclaimer/DisclaimerText.d.ts +4 -0
- package/dist/components/FunButton/FunBackButton.d.ts +4 -0
- package/dist/components/FunButton/FunButton.css.d.ts +3 -0
- package/dist/components/FunButton/FunButton.d.ts +18 -0
- package/dist/components/FunButton/FunIconButton.d.ts +16 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +9 -0
- package/dist/components/FunButton/FunViewTxButton.d.ts +4 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +7 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +8 -0
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +7 -0
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +9 -0
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +15 -0
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +9 -0
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +7 -0
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +12 -0
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +6 -0
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +12 -0
- package/dist/components/FunConnectModal/FunConnectModal.d.ts +6 -0
- package/dist/components/FunContainer/FunContainer.d.ts +11 -0
- package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +6 -0
- package/dist/components/FunDivider/FunDivider.d.ts +7 -0
- package/dist/components/FunInput/FunInput.css.d.ts +2 -0
- package/dist/components/FunInput/FunInput.d.ts +28 -0
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +24 -0
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +9 -0
- package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +7 -0
- package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +12 -0
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +6 -0
- package/dist/components/FunNotification/FunNotification.d.ts +12 -0
- package/dist/components/FunOnramp/FunOnramp.css.d.ts +7 -0
- package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +7 -0
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +17 -0
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +8 -0
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +5 -0
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +6 -0
- package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +7 -0
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +10 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +52 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +10 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +13 -0
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +18 -0
- package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +7 -0
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +6 -0
- package/dist/components/FunPayments/FunPayments.css.d.ts +7 -0
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +7 -0
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +6 -0
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +14 -0
- package/dist/components/FunSelect/FunClickOutside.d.ts +8 -0
- package/dist/components/FunSelect/FunSelect.d.ts +24 -0
- package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +2 -0
- package/dist/components/FunSignInFlow/FunSignInStep.d.ts +14 -0
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +7 -0
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +9 -0
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +7 -0
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +9 -0
- package/dist/components/FunStates/FunErrorContent.d.ts +10 -0
- package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +2 -0
- package/dist/components/FunToast/FunShortToast.css.d.ts +10 -0
- package/dist/components/FunToast/FunShortToast.d.ts +3 -0
- package/dist/components/FunToast/FunToast.d.ts +18 -0
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +13 -0
- package/dist/components/FunkitProvider/AuthenticationContext.d.ts +35 -0
- package/dist/components/FunkitProvider/AvatarContext.d.ts +9 -0
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +2 -0
- package/dist/components/FunkitProvider/FunToastContext.d.ts +11 -0
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +130 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +18 -0
- package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +19 -0
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +18 -0
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +347 -0
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +19 -0
- package/dist/components/FunkitProvider/I18nContext.d.ts +9 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +41 -0
- package/dist/components/FunkitProvider/ModalSizeContext.d.ts +7 -0
- package/dist/components/FunkitProvider/provideFunkitConnectChains.d.ts +3 -0
- package/dist/components/FunkitProvider/useCoolMode.d.ts +2 -0
- package/dist/components/FunkitProvider/useFingerprint.d.ts +1 -0
- package/dist/components/FunkitProvider/usePreloadImages.d.ts +1 -0
- package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +5 -0
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +67 -0
- package/dist/components/Icons/AcornsIcon.d.ts +2 -0
- package/dist/components/Icons/AlpacaIcon.d.ts +2 -0
- package/dist/components/Icons/Assets.d.ts +3 -0
- package/dist/components/Icons/Back.d.ts +2 -0
- package/dist/components/Icons/BinanceIcon.d.ts +2 -0
- package/dist/components/Icons/BitFlyerIcon.d.ts +2 -0
- package/dist/components/Icons/BitstampIcon.d.ts +2 -0
- package/dist/components/Icons/BridgeIcon.d.ts +2 -0
- package/dist/components/Icons/BybitIcon.d.ts +2 -0
- package/dist/components/Icons/Cancel.d.ts +2 -0
- package/dist/components/Icons/CexloIcon.d.ts +2 -0
- package/dist/components/Icons/ClockIcon.d.ts +2 -0
- package/dist/components/Icons/Close.d.ts +2 -0
- package/dist/components/Icons/CoinIcon.d.ts +4 -0
- package/dist/components/Icons/Coinbase.d.ts +2 -0
- package/dist/components/Icons/CoinlistIcon.d.ts +2 -0
- package/dist/components/Icons/Connect.d.ts +3 -0
- package/dist/components/Icons/Copied.d.ts +2 -0
- package/dist/components/Icons/Copy.d.ts +2 -0
- package/dist/components/Icons/Create.d.ts +3 -0
- package/dist/components/Icons/CreditCardDots.d.ts +2 -0
- package/dist/components/Icons/CryptoComIcon.d.ts +2 -0
- package/dist/components/Icons/Disconnect.d.ts +2 -0
- package/dist/components/Icons/DisconnectSq.d.ts +4 -0
- package/dist/components/Icons/Dropdown.d.ts +2 -0
- package/dist/components/Icons/EthereumIcon.d.ts +4 -0
- package/dist/components/Icons/EtoroIcon.d.ts +2 -0
- package/dist/components/Icons/EtradeIcon.d.ts +2 -0
- package/dist/components/Icons/Explore.d.ts +2 -0
- package/dist/components/Icons/ExternalLink.d.ts +2 -0
- package/dist/components/Icons/FunArrows.d.ts +5 -0
- package/dist/components/Icons/FunBackIcon.d.ts +2 -0
- package/dist/components/Icons/GateIo.d.ts +2 -0
- package/dist/components/Icons/GeminiIcon.d.ts +2 -0
- package/dist/components/Icons/HuobiIcon.d.ts +2 -0
- package/dist/components/Icons/Icons.css.d.ts +3 -0
- package/dist/components/Icons/Info.d.ts +3 -0
- package/dist/components/Icons/KrakenIcon.d.ts +2 -0
- package/dist/components/Icons/KucoinIcon.d.ts +2 -0
- package/dist/components/Icons/LightningIcon.d.ts +2 -0
- package/dist/components/Icons/LinkIcon.d.ts +2 -0
- package/dist/components/Icons/Login.d.ts +3 -0
- package/dist/components/Icons/LogoutIcon.d.ts +2 -0
- package/dist/components/Icons/MastercardIcon.d.ts +2 -0
- package/dist/components/Icons/MmFox.d.ts +2 -0
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
- package/dist/components/Icons/OkcoinIcon.d.ts +2 -0
- package/dist/components/Icons/OkxIcon.d.ts +2 -0
- package/dist/components/Icons/PasskeyIcon.d.ts +2 -0
- package/dist/components/Icons/PaymentMethodIcons.d.ts +5 -0
- package/dist/components/Icons/PlusIcon.d.ts +2 -0
- package/dist/components/Icons/ProfileIcon.d.ts +2 -0
- package/dist/components/Icons/PublicIcon.d.ts +2 -0
- package/dist/components/Icons/ReceiptIcon.d.ts +2 -0
- package/dist/components/Icons/Refresh.d.ts +3 -0
- package/dist/components/Icons/RobinhoodIcon.d.ts +2 -0
- package/dist/components/Icons/Scan.d.ts +3 -0
- package/dist/components/Icons/SearchIcon.d.ts +4 -0
- package/dist/components/Icons/SettingsIcon.d.ts +2 -0
- package/dist/components/Icons/SocialMediaIcons.d.ts +4 -0
- package/dist/components/Icons/Spinner.d.ts +5 -0
- package/dist/components/Icons/StEthIcon.d.ts +2 -0
- package/dist/components/Icons/StashIcon.d.ts +2 -0
- package/dist/components/Icons/Success.d.ts +2 -0
- package/dist/components/Icons/SuccessNoBorder.d.ts +2 -0
- package/dist/components/Icons/SwapIcon.d.ts +2 -0
- package/dist/components/Icons/SwitchAccount.d.ts +2 -0
- package/dist/components/Icons/TransferIcon.d.ts +2 -0
- package/dist/components/Icons/USDCIcon.d.ts +2 -0
- package/dist/components/Icons/WalletIcon.d.ts +3 -0
- package/dist/components/Icons/WeBullIcon.d.ts +2 -0
- package/dist/components/Icons/WhiteDotIcon.d.ts +2 -0
- package/dist/components/InfoButton/InfoButton.d.ts +5 -0
- package/dist/components/MenuButton/MenuButton.css.d.ts +1 -0
- package/dist/components/MenuButton/MenuButton.d.ts +9 -0
- package/dist/components/ModalSelection/ModalSelection.css.d.ts +1 -0
- package/dist/components/ModalSelection/ModalSelection.d.ts +17 -0
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +15 -0
- package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +19 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +7 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +5 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +9 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +11 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +17 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +6 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +7 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +10 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +5 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +11 -0
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +10 -0
- package/dist/components/QRCode/QRCode.d.ts +13 -0
- package/dist/components/SignIn/SignIn.d.ts +5 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +18 -0
- package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +10 -0
- package/dist/components/Txs/TxItem.d.ts +7 -0
- package/dist/components/Txs/TxList.d.ts +7 -0
- package/dist/components/Txs/Txs.css.d.ts +2 -0
- package/dist/components/index.css +1584 -513
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +3 -3
- package/dist/consts/assets.d.ts +26 -0
- package/dist/consts/funkit.d.ts +9 -0
- package/dist/css/animations.css.d.ts +9 -0
- package/dist/css/atoms.d.ts +6 -0
- package/dist/css/cssObjectFromTheme.d.ts +6 -0
- package/dist/css/cssStringFromTheme.d.ts +4 -0
- package/dist/css/reset.css.d.ts +14 -0
- package/dist/css/sprinkles.css.d.ts +3492 -0
- package/dist/css/touchableStyles.css.d.ts +4 -0
- package/dist/css/touchableStyles.d.ts +8 -0
- package/dist/hooks/useChainId.d.ts +1 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +31 -0
- package/dist/hooks/useCheckoutStateBooleans.d.ts +9 -0
- package/dist/hooks/useConnectionStatus.d.ts +7 -0
- package/dist/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/hooks/useFunListeners.d.ts +8 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useMainnet.d.ts +4 -0
- package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -0
- package/dist/hooks/useMainnetEnsName.d.ts +1 -0
- package/dist/hooks/useMesh.d.ts +32 -0
- package/dist/hooks/useSymbolRefresh.d.ts +7 -0
- package/dist/hooks/useWindowSize.d.ts +4 -0
- package/dist/index.css +1584 -513
- package/dist/index.d.ts +18 -0
- package/dist/index.js +3 -3
- package/dist/locales/index.d.ts +3 -0
- package/dist/themes/baseTheme.d.ts +25 -0
- package/dist/themes/darkTheme.d.ts +85 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +85 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/transactions/TransactionStoreContext.d.ts +151 -0
- package/dist/transactions/transactionStore.d.ts +21 -0
- package/dist/transactions/useAddRecentTransaction.d.ts +2 -0
- package/dist/transactions/useClearRecentTransactions.d.ts +1 -0
- package/dist/transactions/useRecentTransactions.d.ts +2 -0
- package/dist/types.d.ts +4 -0
- package/dist/utils/Logger.d.ts +25 -0
- package/dist/utils/browsers.d.ts +13 -0
- package/dist/utils/chainToExplorerUrl.d.ts +2 -0
- package/dist/utils/checkout.d.ts +99 -0
- package/dist/utils/colors.d.ts +3 -0
- package/dist/utils/emailandPhoneValidator.d.ts +5 -0
- package/dist/utils/flatten.d.ts +1 -0
- package/dist/utils/formatNumber.d.ts +53 -0
- package/dist/utils/formatTimestamp.d.ts +1 -0
- package/dist/utils/funkitProvider.d.ts +6 -0
- package/dist/utils/funwallet.d.ts +1 -0
- package/dist/utils/getWalletConnectUri.d.ts +2 -0
- package/dist/utils/groupBy.d.ts +1 -0
- package/dist/utils/indexBy.d.ts +1 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isNotNullish.d.ts +1 -0
- package/dist/utils/locale.d.ts +1 -0
- package/dist/utils/mesh.d.ts +57 -0
- package/dist/utils/moonpay.d.ts +1 -0
- package/dist/utils/omitUndefinedValues.d.ts +1 -0
- package/dist/utils/platforms.d.ts +10 -0
- package/dist/wallets/Wallet.d.ts +86 -0
- package/dist/wallets/connectorsForWallets.d.ts +2 -0
- package/dist/wallets/downloadUrls.d.ts +4 -0
- package/dist/wallets/getDefaultWallets.d.ts +11 -0
- package/dist/wallets/getInjectedConnector.d.ts +10 -0
- package/dist/wallets/getWalletConnectConnector.d.ts +26 -0
- package/dist/wallets/recentWalletIds.d.ts +2 -0
- package/dist/wallets/useWalletConnectors.d.ts +13 -0
- package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +18 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +39 -0
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/{chunk-AFMQLXY2.js → chunk-363R4ANA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4FQ2OCM4.js → chunk-3AGSQ2RN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-PATI3A3F.js → chunk-3DY3HAMM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DS2NHYCT.js → chunk-3EHPYNDW.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-Y4EWYKDM.js → chunk-5FDGJMHJ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-TBZII4VB.js → chunk-AM2WFIQL.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-G2HR4ZFS.js → chunk-API5X5WH.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +52 -0
- package/dist/wallets/walletConnectors/{chunk-OV2JRO7A.js → chunk-BBVH7CPS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-EXTKISYU.js → chunk-BG2VHSGN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2T67SC63.js → chunk-BUX4O2MX.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4LHUAGGQ.js → chunk-CJA6ERXY.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-BYGJDC6Y.js → chunk-EHO5SY4G.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +71 -0
- package/dist/wallets/walletConnectors/chunk-FEDNFTC5.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-OH3HGTQV.js → chunk-G62ST53R.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-GAP7NFIO.js +84 -0
- package/dist/wallets/walletConnectors/{chunk-4CGDJKUJ.js → chunk-J3HOIBZW.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-M5VGZ2QW.js → chunk-JEVYZEBJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +114 -0
- package/dist/wallets/walletConnectors/chunk-K5J2FLUB.js +226 -0
- package/dist/wallets/walletConnectors/{chunk-JC5DQVHX.js → chunk-KQ3NBNAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-EUSM6MRB.js → chunk-OJAMLRYU.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-ZGVEVXA7.js → chunk-PX5UW3Z2.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +102 -0
- package/dist/wallets/walletConnectors/{chunk-TT2SHVBF.js → chunk-QOK4O2YL.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-RZE4WHVP.js +112 -0
- package/dist/wallets/walletConnectors/{chunk-THH76QKN.js → chunk-SMDKR4XA.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-SMEQQ574.js +117 -0
- package/dist/wallets/walletConnectors/{chunk-7HTS7H5B.js → chunk-TOIRQMDJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +105 -0
- package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +113 -0
- package/dist/wallets/walletConnectors/{chunk-237HEA4B.js → chunk-WSYSB5XX.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-YK74CZ2K.js +110 -0
- package/dist/wallets/walletConnectors/{chunk-IVIQBLOK.js → chunk-YUE47K7K.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +81 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +15 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +24 -0
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.d.ts +41 -0
- package/dist/wallets/walletConnectors/index.js +59 -59
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const contentAnimationDefaults: {
|
|
2
|
+
animationDuration: string;
|
|
3
|
+
animationTimingFunction: string;
|
|
4
|
+
animationFillMode: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const shortToastContainer: string;
|
|
7
|
+
export declare const shortToast: string;
|
|
8
|
+
export declare const shortToastExit: string;
|
|
9
|
+
export declare const typeDisplay: string;
|
|
10
|
+
export declare const descriptionDisplay: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare enum FunToastType {
|
|
3
|
+
INFO = 0,
|
|
4
|
+
ERROR = 1,
|
|
5
|
+
PENDING = 2,
|
|
6
|
+
SUCCESS = 3
|
|
7
|
+
}
|
|
8
|
+
export interface FunToastProps {
|
|
9
|
+
type?: FunToastType;
|
|
10
|
+
title: string;
|
|
11
|
+
hideTitleSuffix?: boolean;
|
|
12
|
+
titleSuffix?: ReactNode;
|
|
13
|
+
description: string | ReactNode;
|
|
14
|
+
isDescriptionText?: boolean;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
closing?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function FunToast({ type, title, titleSuffix, hideTitleSuffix, description, isDescriptionText, icon, }: FunToastProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, }: {
|
|
3
|
+
estFees: string | number | null;
|
|
4
|
+
estTime: string | number | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
hasTotal?: boolean;
|
|
7
|
+
hasPaymentToken?: boolean;
|
|
8
|
+
symbol?: string | null;
|
|
9
|
+
paymentTokenString?: string;
|
|
10
|
+
total?: string | number | null;
|
|
11
|
+
suffixComponent?: ReactNode;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,130 @@
|
|
|
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?: useFunkitCheckoutProps['config']) => Promise<void>;
|
|
129
|
+
};
|
|
130
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Chain as WagmiChain } from 'wagmi';
|
|
3
|
+
export interface FunkitConnectChain {
|
|
4
|
+
id: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
iconUrl?: string | (() => Promise<string>) | null;
|
|
7
|
+
iconBackground?: string;
|
|
8
|
+
}
|
|
9
|
+
export type Chain = WagmiChain & FunkitConnectChain;
|
|
10
|
+
interface FunkitConnectChainProviderProps {
|
|
11
|
+
chains: FunkitConnectChain[];
|
|
12
|
+
initialChain?: FunkitConnectChain | number;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function FunkitConnectChainProvider({ chains, children, initialChain, }: FunkitConnectChainProviderProps): React.JSX.Element;
|
|
16
|
+
export declare const useFunkitConnectChains: () => FunkitConnectChain[];
|
|
17
|
+
export declare const useInitialChainId: () => number | undefined;
|
|
18
|
+
export declare const useFunkitConnectChainsById: () => Record<number, FunkitConnectChain>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { CreateConfigParameters } from 'wagmi';
|
|
3
|
+
import { Locale } from '../../locales';
|
|
4
|
+
import { FunkitConfig } from './FunkitConfigContext';
|
|
5
|
+
import { FunkitConnectChain } from './FunkitConnectChainContext';
|
|
6
|
+
import { Theme } from './FunkitThemeProvider';
|
|
7
|
+
export interface FunkitProviderProps {
|
|
8
|
+
chains: FunkitConnectChain[];
|
|
9
|
+
initialChain?: FunkitConnectChain | number;
|
|
10
|
+
funkitConfig: FunkitConfig;
|
|
11
|
+
wagmiConfig: CreateConfigParameters;
|
|
12
|
+
id?: string;
|
|
13
|
+
theme?: Theme;
|
|
14
|
+
locale?: Locale;
|
|
15
|
+
debug?: boolean | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare function FunkitProvider(props: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
|
|
18
|
+
export declare function FunkitProviderInner({ chains, children, id, initialChain, locale, funkitConfig, debug, }: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeVars } from '../../css/sprinkles.css';
|
|
3
|
+
export declare const defaultTheme: {
|
|
4
|
+
colors: {
|
|
5
|
+
accentColor: string;
|
|
6
|
+
accentColorForeground: string;
|
|
7
|
+
actionButtonBorder: string;
|
|
8
|
+
actionButtonBorderMobile: string;
|
|
9
|
+
actionButtonSecondaryBackground: string;
|
|
10
|
+
actionButtonDisabled: string;
|
|
11
|
+
closeButton: string;
|
|
12
|
+
closeButtonBackground: string;
|
|
13
|
+
connectButtonBackground: string;
|
|
14
|
+
connectButtonBackgroundError: string;
|
|
15
|
+
connectButtonInnerBackground: string;
|
|
16
|
+
connectButtonText: string;
|
|
17
|
+
connectButtonTextError: string;
|
|
18
|
+
connectionIndicator: string;
|
|
19
|
+
downloadBottomCardBackground: string;
|
|
20
|
+
downloadTopCardBackground: string;
|
|
21
|
+
error: string;
|
|
22
|
+
generalBorder: string;
|
|
23
|
+
generalBorderDim: string;
|
|
24
|
+
menuItemBackground: string;
|
|
25
|
+
modalText: string;
|
|
26
|
+
modalTextDim: string;
|
|
27
|
+
modalTextSecondary: string;
|
|
28
|
+
profileAction: string;
|
|
29
|
+
profileActionHover: string;
|
|
30
|
+
profileForeground: string;
|
|
31
|
+
selectedOptionBorder: string;
|
|
32
|
+
solidLine: string;
|
|
33
|
+
rightTranslucentLine: string;
|
|
34
|
+
leftTranslucentLine: string;
|
|
35
|
+
standby: string;
|
|
36
|
+
loadingBase: string;
|
|
37
|
+
loadingAccent: string;
|
|
38
|
+
modalBackdrop: string;
|
|
39
|
+
modalBackground: string;
|
|
40
|
+
modalBorder: string;
|
|
41
|
+
notificationPrimary: string;
|
|
42
|
+
textPrimary: string;
|
|
43
|
+
textSecondary: string;
|
|
44
|
+
textTertiary: string;
|
|
45
|
+
textDisabled: string;
|
|
46
|
+
textSelection: string;
|
|
47
|
+
inputFieldPrimary: string;
|
|
48
|
+
inputFieldPlaceholder: string;
|
|
49
|
+
inputFieldDisabled: string;
|
|
50
|
+
strokePrimary: string;
|
|
51
|
+
strokeSecondary: string;
|
|
52
|
+
buttonPrimary: string;
|
|
53
|
+
buttonProcessing: string;
|
|
54
|
+
buttonDisabled: string;
|
|
55
|
+
buttonTextPrimary: string;
|
|
56
|
+
buttonTextSecondary: string;
|
|
57
|
+
buttonTextDisabled: string;
|
|
58
|
+
buttonWarning: string;
|
|
59
|
+
buttonTextWarning: string;
|
|
60
|
+
transparent: string;
|
|
61
|
+
};
|
|
62
|
+
shadows: {
|
|
63
|
+
connectButton: string;
|
|
64
|
+
dialog: string;
|
|
65
|
+
profileDetailsAction: string;
|
|
66
|
+
selectedOption: string;
|
|
67
|
+
selectedWallet: string;
|
|
68
|
+
walletLogo: string;
|
|
69
|
+
};
|
|
70
|
+
fonts: {
|
|
71
|
+
body: string;
|
|
72
|
+
};
|
|
73
|
+
radii: {
|
|
74
|
+
actionButton: string;
|
|
75
|
+
connectButton: string;
|
|
76
|
+
menuButton: string;
|
|
77
|
+
modal: string;
|
|
78
|
+
modalMobile: string;
|
|
79
|
+
};
|
|
80
|
+
blurs: {
|
|
81
|
+
modalOverlay: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const ThemeIdContext: React.Context<string | undefined>;
|
|
85
|
+
export declare const createThemeRootProps: (id: string | undefined) => {
|
|
86
|
+
"data-rk": string;
|
|
87
|
+
};
|
|
88
|
+
export declare const createThemeRootSelector: (id: string | undefined) => string;
|
|
89
|
+
export declare const useThemeRootProps: () => {
|
|
90
|
+
"data-rk": string;
|
|
91
|
+
};
|
|
92
|
+
export type Theme = ThemeVars | {
|
|
93
|
+
lightMode: ThemeVars;
|
|
94
|
+
darkMode: ThemeVars;
|
|
95
|
+
};
|
|
96
|
+
export declare const useActiveTheme: () => {
|
|
97
|
+
active: {
|
|
98
|
+
colors: {
|
|
99
|
+
accentColor: string;
|
|
100
|
+
accentColorForeground: string;
|
|
101
|
+
actionButtonBorder: string;
|
|
102
|
+
actionButtonBorderMobile: string;
|
|
103
|
+
actionButtonSecondaryBackground: string;
|
|
104
|
+
actionButtonDisabled: string;
|
|
105
|
+
closeButton: string;
|
|
106
|
+
closeButtonBackground: string;
|
|
107
|
+
connectButtonBackground: string;
|
|
108
|
+
connectButtonBackgroundError: string;
|
|
109
|
+
connectButtonInnerBackground: string;
|
|
110
|
+
connectButtonText: string;
|
|
111
|
+
connectButtonTextError: string;
|
|
112
|
+
connectionIndicator: string;
|
|
113
|
+
downloadBottomCardBackground: string;
|
|
114
|
+
downloadTopCardBackground: string;
|
|
115
|
+
error: string;
|
|
116
|
+
generalBorder: string;
|
|
117
|
+
generalBorderDim: string;
|
|
118
|
+
menuItemBackground: string;
|
|
119
|
+
modalText: string;
|
|
120
|
+
modalTextDim: string;
|
|
121
|
+
modalTextSecondary: string;
|
|
122
|
+
profileAction: string;
|
|
123
|
+
profileActionHover: string;
|
|
124
|
+
profileForeground: string;
|
|
125
|
+
selectedOptionBorder: string;
|
|
126
|
+
standby: string;
|
|
127
|
+
solidLine: string;
|
|
128
|
+
leftTranslucentLine: string;
|
|
129
|
+
rightTranslucentLine: string;
|
|
130
|
+
loadingBase: string;
|
|
131
|
+
loadingAccent: string;
|
|
132
|
+
modalBackdrop: string;
|
|
133
|
+
modalBackground: string;
|
|
134
|
+
modalBorder: string;
|
|
135
|
+
notificationPrimary: string;
|
|
136
|
+
textPrimary: string;
|
|
137
|
+
textSecondary: string;
|
|
138
|
+
textTertiary: string;
|
|
139
|
+
textDisabled: string;
|
|
140
|
+
textSelection: string;
|
|
141
|
+
inputFieldPrimary: string;
|
|
142
|
+
inputFieldPlaceholder: string;
|
|
143
|
+
inputFieldDisabled: string;
|
|
144
|
+
strokePrimary: string;
|
|
145
|
+
strokeSecondary: string;
|
|
146
|
+
buttonPrimary: string;
|
|
147
|
+
buttonProcessing: string;
|
|
148
|
+
buttonDisabled: string;
|
|
149
|
+
buttonWarning: string;
|
|
150
|
+
buttonTextWarning: string;
|
|
151
|
+
buttonTextPrimary: string;
|
|
152
|
+
buttonTextSecondary: string;
|
|
153
|
+
buttonTextDisabled: string;
|
|
154
|
+
transparent: string;
|
|
155
|
+
};
|
|
156
|
+
fonts: {
|
|
157
|
+
body: string;
|
|
158
|
+
};
|
|
159
|
+
radii: {
|
|
160
|
+
actionButton: string;
|
|
161
|
+
connectButton: string;
|
|
162
|
+
menuButton: string;
|
|
163
|
+
modal: string;
|
|
164
|
+
modalMobile: string;
|
|
165
|
+
};
|
|
166
|
+
shadows: {
|
|
167
|
+
connectButton: string;
|
|
168
|
+
dialog: string;
|
|
169
|
+
profileDetailsAction: string;
|
|
170
|
+
selectedOption: string;
|
|
171
|
+
selectedWallet: string;
|
|
172
|
+
walletLogo: string;
|
|
173
|
+
};
|
|
174
|
+
blurs: {
|
|
175
|
+
modalOverlay: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
setTheme: (theme: ThemeVars) => void;
|
|
179
|
+
lightMode: {
|
|
180
|
+
colors: {
|
|
181
|
+
accentColor: string;
|
|
182
|
+
accentColorForeground: string;
|
|
183
|
+
actionButtonBorder: string;
|
|
184
|
+
actionButtonBorderMobile: string;
|
|
185
|
+
actionButtonSecondaryBackground: string;
|
|
186
|
+
actionButtonDisabled: string;
|
|
187
|
+
closeButton: string;
|
|
188
|
+
closeButtonBackground: string;
|
|
189
|
+
connectButtonBackground: string;
|
|
190
|
+
connectButtonBackgroundError: string;
|
|
191
|
+
connectButtonInnerBackground: string;
|
|
192
|
+
connectButtonText: string;
|
|
193
|
+
connectButtonTextError: string;
|
|
194
|
+
connectionIndicator: string;
|
|
195
|
+
downloadBottomCardBackground: string;
|
|
196
|
+
downloadTopCardBackground: string;
|
|
197
|
+
error: string;
|
|
198
|
+
generalBorder: string;
|
|
199
|
+
generalBorderDim: string;
|
|
200
|
+
menuItemBackground: string;
|
|
201
|
+
modalText: string;
|
|
202
|
+
modalTextDim: string;
|
|
203
|
+
modalTextSecondary: string;
|
|
204
|
+
profileAction: string;
|
|
205
|
+
profileActionHover: string;
|
|
206
|
+
profileForeground: string;
|
|
207
|
+
selectedOptionBorder: string;
|
|
208
|
+
standby: string;
|
|
209
|
+
solidLine: string;
|
|
210
|
+
leftTranslucentLine: string;
|
|
211
|
+
rightTranslucentLine: string;
|
|
212
|
+
loadingBase: string;
|
|
213
|
+
loadingAccent: string;
|
|
214
|
+
modalBackdrop: string;
|
|
215
|
+
modalBackground: string;
|
|
216
|
+
modalBorder: string;
|
|
217
|
+
notificationPrimary: string;
|
|
218
|
+
textPrimary: string;
|
|
219
|
+
textSecondary: string;
|
|
220
|
+
textTertiary: string;
|
|
221
|
+
textDisabled: string;
|
|
222
|
+
textSelection: string;
|
|
223
|
+
inputFieldPrimary: string;
|
|
224
|
+
inputFieldPlaceholder: string;
|
|
225
|
+
inputFieldDisabled: string;
|
|
226
|
+
strokePrimary: string;
|
|
227
|
+
strokeSecondary: string;
|
|
228
|
+
buttonPrimary: string;
|
|
229
|
+
buttonProcessing: string;
|
|
230
|
+
buttonDisabled: string;
|
|
231
|
+
buttonWarning: string;
|
|
232
|
+
buttonTextWarning: string;
|
|
233
|
+
buttonTextPrimary: string;
|
|
234
|
+
buttonTextSecondary: string;
|
|
235
|
+
buttonTextDisabled: string;
|
|
236
|
+
transparent: string;
|
|
237
|
+
};
|
|
238
|
+
fonts: {
|
|
239
|
+
body: string;
|
|
240
|
+
};
|
|
241
|
+
radii: {
|
|
242
|
+
actionButton: string;
|
|
243
|
+
connectButton: string;
|
|
244
|
+
menuButton: string;
|
|
245
|
+
modal: string;
|
|
246
|
+
modalMobile: string;
|
|
247
|
+
};
|
|
248
|
+
shadows: {
|
|
249
|
+
connectButton: string;
|
|
250
|
+
dialog: string;
|
|
251
|
+
profileDetailsAction: string;
|
|
252
|
+
selectedOption: string;
|
|
253
|
+
selectedWallet: string;
|
|
254
|
+
walletLogo: string;
|
|
255
|
+
};
|
|
256
|
+
blurs: {
|
|
257
|
+
modalOverlay: string;
|
|
258
|
+
};
|
|
259
|
+
} | null | undefined;
|
|
260
|
+
darkMode: {
|
|
261
|
+
colors: {
|
|
262
|
+
accentColor: string;
|
|
263
|
+
accentColorForeground: string;
|
|
264
|
+
actionButtonBorder: string;
|
|
265
|
+
actionButtonBorderMobile: string;
|
|
266
|
+
actionButtonSecondaryBackground: string;
|
|
267
|
+
actionButtonDisabled: string;
|
|
268
|
+
closeButton: string;
|
|
269
|
+
closeButtonBackground: string;
|
|
270
|
+
connectButtonBackground: string;
|
|
271
|
+
connectButtonBackgroundError: string;
|
|
272
|
+
connectButtonInnerBackground: string;
|
|
273
|
+
connectButtonText: string;
|
|
274
|
+
connectButtonTextError: string;
|
|
275
|
+
connectionIndicator: string;
|
|
276
|
+
downloadBottomCardBackground: string;
|
|
277
|
+
downloadTopCardBackground: string;
|
|
278
|
+
error: string;
|
|
279
|
+
generalBorder: string;
|
|
280
|
+
generalBorderDim: string;
|
|
281
|
+
menuItemBackground: string;
|
|
282
|
+
modalText: string;
|
|
283
|
+
modalTextDim: string;
|
|
284
|
+
modalTextSecondary: string;
|
|
285
|
+
profileAction: string;
|
|
286
|
+
profileActionHover: string;
|
|
287
|
+
profileForeground: string;
|
|
288
|
+
selectedOptionBorder: string;
|
|
289
|
+
standby: string;
|
|
290
|
+
solidLine: string;
|
|
291
|
+
leftTranslucentLine: string;
|
|
292
|
+
rightTranslucentLine: string;
|
|
293
|
+
loadingBase: string;
|
|
294
|
+
loadingAccent: string;
|
|
295
|
+
modalBackdrop: string;
|
|
296
|
+
modalBackground: string;
|
|
297
|
+
modalBorder: string;
|
|
298
|
+
notificationPrimary: string;
|
|
299
|
+
textPrimary: string;
|
|
300
|
+
textSecondary: string;
|
|
301
|
+
textTertiary: string;
|
|
302
|
+
textDisabled: string;
|
|
303
|
+
textSelection: string;
|
|
304
|
+
inputFieldPrimary: string;
|
|
305
|
+
inputFieldPlaceholder: string;
|
|
306
|
+
inputFieldDisabled: string;
|
|
307
|
+
strokePrimary: string;
|
|
308
|
+
strokeSecondary: string;
|
|
309
|
+
buttonPrimary: string;
|
|
310
|
+
buttonProcessing: string;
|
|
311
|
+
buttonDisabled: string;
|
|
312
|
+
buttonWarning: string;
|
|
313
|
+
buttonTextWarning: string;
|
|
314
|
+
buttonTextPrimary: string;
|
|
315
|
+
buttonTextSecondary: string;
|
|
316
|
+
buttonTextDisabled: string;
|
|
317
|
+
transparent: string;
|
|
318
|
+
};
|
|
319
|
+
fonts: {
|
|
320
|
+
body: string;
|
|
321
|
+
};
|
|
322
|
+
radii: {
|
|
323
|
+
actionButton: string;
|
|
324
|
+
connectButton: string;
|
|
325
|
+
menuButton: string;
|
|
326
|
+
modal: string;
|
|
327
|
+
modalMobile: string;
|
|
328
|
+
};
|
|
329
|
+
shadows: {
|
|
330
|
+
connectButton: string;
|
|
331
|
+
dialog: string;
|
|
332
|
+
profileDetailsAction: string;
|
|
333
|
+
selectedOption: string;
|
|
334
|
+
selectedWallet: string;
|
|
335
|
+
walletLogo: string;
|
|
336
|
+
};
|
|
337
|
+
blurs: {
|
|
338
|
+
modalOverlay: string;
|
|
339
|
+
};
|
|
340
|
+
} | null | undefined;
|
|
341
|
+
toggleTheme: () => void;
|
|
342
|
+
};
|
|
343
|
+
export interface FunkitThemeProps {
|
|
344
|
+
children: React.ReactNode;
|
|
345
|
+
theme?: Theme;
|
|
346
|
+
}
|
|
347
|
+
export declare const FunkitThemeProvider: ({ children, theme, }: FunkitThemeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Auth, FunWallet } from '@funkit/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type GeneralWalletAssets = null | {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
};
|
|
6
|
+
interface GeneralWalletContextProps {
|
|
7
|
+
walletAddress: string;
|
|
8
|
+
isWeb2Login: boolean;
|
|
9
|
+
isWeb3Login: boolean;
|
|
10
|
+
isFetchingAssets: boolean;
|
|
11
|
+
walletAssets: GeneralWalletAssets;
|
|
12
|
+
startAssetsListener: () => void;
|
|
13
|
+
stopAssetsListener: () => void;
|
|
14
|
+
funWallet: FunWallet | null;
|
|
15
|
+
funWalletAuth: Auth | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function GeneralWalletProvider({ children }: any): React.JSX.Element;
|
|
18
|
+
export declare const useGeneralWallet: () => GeneralWalletContextProps;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|