@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.
Files changed (388) hide show
  1. package/dist/__private__/index.d.ts +8 -0
  2. package/dist/chunk-7BFJCGW2.js +24994 -0
  3. package/dist/{chunk-X25RSAGB.js → chunk-JC32QCLG.js} +8608 -8461
  4. package/dist/{chunk-W7RO4DCA.js → chunk-Q73FKLU4.js} +1 -0
  5. package/dist/{chunk-ZKI6VFDD.js → chunk-UOUEGWLS.js} +1 -0
  6. package/dist/components/AccountModal/AccountModal.d.ts +6 -0
  7. package/dist/components/AsyncImage/AsyncImage.d.ts +19 -0
  8. package/dist/components/AsyncImage/useAsyncImage.d.ts +3 -0
  9. package/dist/components/Avatar/Avatar.d.ts +9 -0
  10. package/dist/components/Avatar/EmojiAvatar.d.ts +2 -0
  11. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +106 -0
  12. package/dist/components/Box/Box.d.ts +86 -0
  13. package/dist/components/Button/ActionButton.d.ts +14 -0
  14. package/dist/components/ChainModal/ChainModal.css.d.ts +2 -0
  15. package/dist/components/ChainModal/ChainModal.d.ts +6 -0
  16. package/dist/components/CloseButton/CloseButton.d.ts +5 -0
  17. package/dist/components/ConnectButton/ConnectButton.d.ts +28 -0
  18. package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +39 -0
  19. package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +2 -0
  20. package/dist/components/ConnectButton/formatAddress.d.ts +1 -0
  21. package/dist/components/ConnectButton/formatENS.d.ts +1 -0
  22. package/dist/components/ConnectOptions/ConnectDetails.d.ts +36 -0
  23. package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +4 -0
  24. package/dist/components/ConnectOptions/DesktopOptions.d.ts +15 -0
  25. package/dist/components/ConnectOptions/FunConnectOptions.d.ts +11 -0
  26. package/dist/components/ConnectOptions/MobileOptions.css.d.ts +1 -0
  27. package/dist/components/ConnectOptions/MobileOptions.d.ts +4 -0
  28. package/dist/components/Dialog/Dialog.css.d.ts +5 -0
  29. package/dist/components/Dialog/Dialog.d.ts +12 -0
  30. package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
  31. package/dist/components/Dialog/DialogContent.d.ts +12 -0
  32. package/dist/components/Dialog/FocusTrap.d.ts +2 -0
  33. package/dist/components/Disclaimer/DisclaimerLink.d.ts +5 -0
  34. package/dist/components/Disclaimer/DisclaimerText.d.ts +4 -0
  35. package/dist/components/FunButton/FunBackButton.d.ts +4 -0
  36. package/dist/components/FunButton/FunButton.css.d.ts +3 -0
  37. package/dist/components/FunButton/FunButton.d.ts +18 -0
  38. package/dist/components/FunButton/FunIconButton.d.ts +16 -0
  39. package/dist/components/FunButton/FunLinkButton.d.ts +9 -0
  40. package/dist/components/FunButton/FunViewTxButton.d.ts +4 -0
  41. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +7 -0
  42. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +8 -0
  43. package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +7 -0
  44. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +9 -0
  45. package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +15 -0
  46. package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +9 -0
  47. package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +7 -0
  48. package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +12 -0
  49. package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +6 -0
  50. package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +12 -0
  51. package/dist/components/FunConnectModal/FunConnectModal.d.ts +6 -0
  52. package/dist/components/FunContainer/FunContainer.d.ts +11 -0
  53. package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +6 -0
  54. package/dist/components/FunDivider/FunDivider.d.ts +7 -0
  55. package/dist/components/FunInput/FunInput.css.d.ts +2 -0
  56. package/dist/components/FunInput/FunInput.d.ts +28 -0
  57. package/dist/components/FunKeyValue/FunKeyValue.d.ts +24 -0
  58. package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +9 -0
  59. package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +7 -0
  60. package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +12 -0
  61. package/dist/components/FunNotification/FunCheckoutNotification.d.ts +6 -0
  62. package/dist/components/FunNotification/FunNotification.d.ts +12 -0
  63. package/dist/components/FunOnramp/FunOnramp.css.d.ts +7 -0
  64. package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +7 -0
  65. package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +17 -0
  66. package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +8 -0
  67. package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +5 -0
  68. package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +6 -0
  69. package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +7 -0
  70. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +10 -0
  71. package/dist/components/FunPayments/FunPaymentMethods.d.ts +52 -0
  72. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +10 -0
  73. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +13 -0
  74. package/dist/components/FunPayments/FunPaymentSetup.d.ts +18 -0
  75. package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +7 -0
  76. package/dist/components/FunPayments/FunPaymentTransferType.d.ts +6 -0
  77. package/dist/components/FunPayments/FunPayments.css.d.ts +7 -0
  78. package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +7 -0
  79. package/dist/components/FunProgressBar/FunProgressBar.d.ts +6 -0
  80. package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +14 -0
  81. package/dist/components/FunSelect/FunClickOutside.d.ts +8 -0
  82. package/dist/components/FunSelect/FunSelect.d.ts +24 -0
  83. package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +2 -0
  84. package/dist/components/FunSignInFlow/FunSignInStep.d.ts +14 -0
  85. package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +7 -0
  86. package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +9 -0
  87. package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +7 -0
  88. package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +9 -0
  89. package/dist/components/FunStates/FunErrorContent.d.ts +10 -0
  90. package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +2 -0
  91. package/dist/components/FunToast/FunShortToast.css.d.ts +10 -0
  92. package/dist/components/FunToast/FunShortToast.d.ts +3 -0
  93. package/dist/components/FunToast/FunToast.d.ts +18 -0
  94. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +13 -0
  95. package/dist/components/FunkitProvider/AuthenticationContext.d.ts +35 -0
  96. package/dist/components/FunkitProvider/AvatarContext.d.ts +9 -0
  97. package/dist/components/FunkitProvider/CoolModeContext.d.ts +2 -0
  98. package/dist/components/FunkitProvider/FunToastContext.d.ts +11 -0
  99. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +130 -0
  100. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +18 -0
  101. package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +19 -0
  102. package/dist/components/FunkitProvider/FunkitProvider.d.ts +18 -0
  103. package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +347 -0
  104. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +19 -0
  105. package/dist/components/FunkitProvider/I18nContext.d.ts +9 -0
  106. package/dist/components/FunkitProvider/ModalContext.d.ts +41 -0
  107. package/dist/components/FunkitProvider/ModalSizeContext.d.ts +7 -0
  108. package/dist/components/FunkitProvider/provideFunkitConnectChains.d.ts +3 -0
  109. package/dist/components/FunkitProvider/useCoolMode.d.ts +2 -0
  110. package/dist/components/FunkitProvider/useFingerprint.d.ts +1 -0
  111. package/dist/components/FunkitProvider/usePreloadImages.d.ts +1 -0
  112. package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +5 -0
  113. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +67 -0
  114. package/dist/components/Icons/AcornsIcon.d.ts +2 -0
  115. package/dist/components/Icons/AlpacaIcon.d.ts +2 -0
  116. package/dist/components/Icons/Assets.d.ts +3 -0
  117. package/dist/components/Icons/Back.d.ts +2 -0
  118. package/dist/components/Icons/BinanceIcon.d.ts +2 -0
  119. package/dist/components/Icons/BitFlyerIcon.d.ts +2 -0
  120. package/dist/components/Icons/BitstampIcon.d.ts +2 -0
  121. package/dist/components/Icons/BridgeIcon.d.ts +2 -0
  122. package/dist/components/Icons/BybitIcon.d.ts +2 -0
  123. package/dist/components/Icons/Cancel.d.ts +2 -0
  124. package/dist/components/Icons/CexloIcon.d.ts +2 -0
  125. package/dist/components/Icons/ClockIcon.d.ts +2 -0
  126. package/dist/components/Icons/Close.d.ts +2 -0
  127. package/dist/components/Icons/CoinIcon.d.ts +4 -0
  128. package/dist/components/Icons/Coinbase.d.ts +2 -0
  129. package/dist/components/Icons/CoinlistIcon.d.ts +2 -0
  130. package/dist/components/Icons/Connect.d.ts +3 -0
  131. package/dist/components/Icons/Copied.d.ts +2 -0
  132. package/dist/components/Icons/Copy.d.ts +2 -0
  133. package/dist/components/Icons/Create.d.ts +3 -0
  134. package/dist/components/Icons/CreditCardDots.d.ts +2 -0
  135. package/dist/components/Icons/CryptoComIcon.d.ts +2 -0
  136. package/dist/components/Icons/Disconnect.d.ts +2 -0
  137. package/dist/components/Icons/DisconnectSq.d.ts +4 -0
  138. package/dist/components/Icons/Dropdown.d.ts +2 -0
  139. package/dist/components/Icons/EthereumIcon.d.ts +4 -0
  140. package/dist/components/Icons/EtoroIcon.d.ts +2 -0
  141. package/dist/components/Icons/EtradeIcon.d.ts +2 -0
  142. package/dist/components/Icons/Explore.d.ts +2 -0
  143. package/dist/components/Icons/ExternalLink.d.ts +2 -0
  144. package/dist/components/Icons/FunArrows.d.ts +5 -0
  145. package/dist/components/Icons/FunBackIcon.d.ts +2 -0
  146. package/dist/components/Icons/GateIo.d.ts +2 -0
  147. package/dist/components/Icons/GeminiIcon.d.ts +2 -0
  148. package/dist/components/Icons/HuobiIcon.d.ts +2 -0
  149. package/dist/components/Icons/Icons.css.d.ts +3 -0
  150. package/dist/components/Icons/Info.d.ts +3 -0
  151. package/dist/components/Icons/KrakenIcon.d.ts +2 -0
  152. package/dist/components/Icons/KucoinIcon.d.ts +2 -0
  153. package/dist/components/Icons/LightningIcon.d.ts +2 -0
  154. package/dist/components/Icons/LinkIcon.d.ts +2 -0
  155. package/dist/components/Icons/Login.d.ts +3 -0
  156. package/dist/components/Icons/LogoutIcon.d.ts +2 -0
  157. package/dist/components/Icons/MastercardIcon.d.ts +2 -0
  158. package/dist/components/Icons/MmFox.d.ts +2 -0
  159. package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
  160. package/dist/components/Icons/OkcoinIcon.d.ts +2 -0
  161. package/dist/components/Icons/OkxIcon.d.ts +2 -0
  162. package/dist/components/Icons/PasskeyIcon.d.ts +2 -0
  163. package/dist/components/Icons/PaymentMethodIcons.d.ts +5 -0
  164. package/dist/components/Icons/PlusIcon.d.ts +2 -0
  165. package/dist/components/Icons/ProfileIcon.d.ts +2 -0
  166. package/dist/components/Icons/PublicIcon.d.ts +2 -0
  167. package/dist/components/Icons/ReceiptIcon.d.ts +2 -0
  168. package/dist/components/Icons/Refresh.d.ts +3 -0
  169. package/dist/components/Icons/RobinhoodIcon.d.ts +2 -0
  170. package/dist/components/Icons/Scan.d.ts +3 -0
  171. package/dist/components/Icons/SearchIcon.d.ts +4 -0
  172. package/dist/components/Icons/SettingsIcon.d.ts +2 -0
  173. package/dist/components/Icons/SocialMediaIcons.d.ts +4 -0
  174. package/dist/components/Icons/Spinner.d.ts +5 -0
  175. package/dist/components/Icons/StEthIcon.d.ts +2 -0
  176. package/dist/components/Icons/StashIcon.d.ts +2 -0
  177. package/dist/components/Icons/Success.d.ts +2 -0
  178. package/dist/components/Icons/SuccessNoBorder.d.ts +2 -0
  179. package/dist/components/Icons/SwapIcon.d.ts +2 -0
  180. package/dist/components/Icons/SwitchAccount.d.ts +2 -0
  181. package/dist/components/Icons/TransferIcon.d.ts +2 -0
  182. package/dist/components/Icons/USDCIcon.d.ts +2 -0
  183. package/dist/components/Icons/WalletIcon.d.ts +3 -0
  184. package/dist/components/Icons/WeBullIcon.d.ts +2 -0
  185. package/dist/components/Icons/WhiteDotIcon.d.ts +2 -0
  186. package/dist/components/InfoButton/InfoButton.d.ts +5 -0
  187. package/dist/components/MenuButton/MenuButton.css.d.ts +1 -0
  188. package/dist/components/MenuButton/MenuButton.d.ts +9 -0
  189. package/dist/components/ModalSelection/ModalSelection.css.d.ts +1 -0
  190. package/dist/components/ModalSelection/ModalSelection.d.ts +17 -0
  191. package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +15 -0
  192. package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +19 -0
  193. package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +7 -0
  194. package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +5 -0
  195. package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +9 -0
  196. package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +11 -0
  197. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +17 -0
  198. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +4 -0
  199. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +4 -0
  200. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +6 -0
  201. package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +7 -0
  202. package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +10 -0
  203. package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +5 -0
  204. package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +4 -0
  205. package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +11 -0
  206. package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +10 -0
  207. package/dist/components/QRCode/QRCode.d.ts +13 -0
  208. package/dist/components/SignIn/SignIn.d.ts +5 -0
  209. package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
  210. package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
  211. package/dist/components/Text/Text.d.ts +18 -0
  212. package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +10 -0
  213. package/dist/components/Txs/TxItem.d.ts +7 -0
  214. package/dist/components/Txs/TxList.d.ts +7 -0
  215. package/dist/components/Txs/Txs.css.d.ts +2 -0
  216. package/dist/components/index.css +1584 -513
  217. package/dist/components/index.d.ts +4 -0
  218. package/dist/components/index.js +3 -3
  219. package/dist/consts/assets.d.ts +26 -0
  220. package/dist/consts/funkit.d.ts +9 -0
  221. package/dist/css/animations.css.d.ts +9 -0
  222. package/dist/css/atoms.d.ts +6 -0
  223. package/dist/css/cssObjectFromTheme.d.ts +6 -0
  224. package/dist/css/cssStringFromTheme.d.ts +4 -0
  225. package/dist/css/reset.css.d.ts +14 -0
  226. package/dist/css/sprinkles.css.d.ts +3492 -0
  227. package/dist/css/touchableStyles.css.d.ts +4 -0
  228. package/dist/css/touchableStyles.d.ts +8 -0
  229. package/dist/hooks/useChainId.d.ts +1 -0
  230. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +31 -0
  231. package/dist/hooks/useCheckoutStateBooleans.d.ts +9 -0
  232. package/dist/hooks/useConnectionStatus.d.ts +7 -0
  233. package/dist/hooks/useDebouncedCallback.d.ts +1 -0
  234. package/dist/hooks/useFunListeners.d.ts +8 -0
  235. package/dist/hooks/useIsMounted.d.ts +1 -0
  236. package/dist/hooks/useMainnet.d.ts +4 -0
  237. package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -0
  238. package/dist/hooks/useMainnetEnsName.d.ts +1 -0
  239. package/dist/hooks/useMesh.d.ts +32 -0
  240. package/dist/hooks/useSymbolRefresh.d.ts +7 -0
  241. package/dist/hooks/useWindowSize.d.ts +4 -0
  242. package/dist/index.css +1584 -513
  243. package/dist/index.d.ts +18 -0
  244. package/dist/index.js +3 -3
  245. package/dist/locales/index.d.ts +3 -0
  246. package/dist/themes/baseTheme.d.ts +25 -0
  247. package/dist/themes/darkTheme.d.ts +85 -0
  248. package/dist/themes/darkTheme.js +1 -1
  249. package/dist/themes/lightTheme.d.ts +85 -0
  250. package/dist/themes/lightTheme.js +1 -1
  251. package/dist/transactions/TransactionStoreContext.d.ts +151 -0
  252. package/dist/transactions/transactionStore.d.ts +21 -0
  253. package/dist/transactions/useAddRecentTransaction.d.ts +2 -0
  254. package/dist/transactions/useClearRecentTransactions.d.ts +1 -0
  255. package/dist/transactions/useRecentTransactions.d.ts +2 -0
  256. package/dist/types.d.ts +4 -0
  257. package/dist/utils/Logger.d.ts +25 -0
  258. package/dist/utils/browsers.d.ts +13 -0
  259. package/dist/utils/chainToExplorerUrl.d.ts +2 -0
  260. package/dist/utils/checkout.d.ts +99 -0
  261. package/dist/utils/colors.d.ts +3 -0
  262. package/dist/utils/emailandPhoneValidator.d.ts +5 -0
  263. package/dist/utils/flatten.d.ts +1 -0
  264. package/dist/utils/formatNumber.d.ts +53 -0
  265. package/dist/utils/formatTimestamp.d.ts +1 -0
  266. package/dist/utils/funkitProvider.d.ts +6 -0
  267. package/dist/utils/funwallet.d.ts +1 -0
  268. package/dist/utils/getWalletConnectUri.d.ts +2 -0
  269. package/dist/utils/groupBy.d.ts +1 -0
  270. package/dist/utils/indexBy.d.ts +1 -0
  271. package/dist/utils/isMobile.d.ts +5 -0
  272. package/dist/utils/isNotNullish.d.ts +1 -0
  273. package/dist/utils/locale.d.ts +1 -0
  274. package/dist/utils/mesh.d.ts +57 -0
  275. package/dist/utils/moonpay.d.ts +1 -0
  276. package/dist/utils/omitUndefinedValues.d.ts +1 -0
  277. package/dist/utils/platforms.d.ts +10 -0
  278. package/dist/wallets/Wallet.d.ts +86 -0
  279. package/dist/wallets/connectorsForWallets.d.ts +2 -0
  280. package/dist/wallets/downloadUrls.d.ts +4 -0
  281. package/dist/wallets/getDefaultWallets.d.ts +11 -0
  282. package/dist/wallets/getInjectedConnector.d.ts +10 -0
  283. package/dist/wallets/getWalletConnectConnector.d.ts +26 -0
  284. package/dist/wallets/recentWalletIds.d.ts +2 -0
  285. package/dist/wallets/useWalletConnectors.d.ts +13 -0
  286. package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +7 -0
  287. package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +16 -0
  288. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  289. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +18 -0
  290. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  291. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +39 -0
  292. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  293. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +7 -0
  294. package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +7 -0
  295. package/dist/wallets/walletConnectors/{chunk-AFMQLXY2.js → chunk-363R4ANA.js} +1 -1
  296. package/dist/wallets/walletConnectors/{chunk-4FQ2OCM4.js → chunk-3AGSQ2RN.js} +4 -4
  297. package/dist/wallets/walletConnectors/{chunk-PATI3A3F.js → chunk-3DY3HAMM.js} +1 -1
  298. package/dist/wallets/walletConnectors/{chunk-DS2NHYCT.js → chunk-3EHPYNDW.js} +4 -4
  299. package/dist/wallets/walletConnectors/{chunk-Y4EWYKDM.js → chunk-5FDGJMHJ.js} +4 -4
  300. package/dist/wallets/walletConnectors/{chunk-TBZII4VB.js → chunk-AM2WFIQL.js} +4 -4
  301. package/dist/wallets/walletConnectors/{chunk-G2HR4ZFS.js → chunk-API5X5WH.js} +4 -4
  302. package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +52 -0
  303. package/dist/wallets/walletConnectors/{chunk-OV2JRO7A.js → chunk-BBVH7CPS.js} +1 -1
  304. package/dist/wallets/walletConnectors/{chunk-EXTKISYU.js → chunk-BG2VHSGN.js} +1 -1
  305. package/dist/wallets/walletConnectors/{chunk-2T67SC63.js → chunk-BUX4O2MX.js} +4 -4
  306. package/dist/wallets/walletConnectors/{chunk-4LHUAGGQ.js → chunk-CJA6ERXY.js} +4 -4
  307. package/dist/wallets/walletConnectors/{chunk-BYGJDC6Y.js → chunk-EHO5SY4G.js} +1 -1
  308. package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +71 -0
  309. package/dist/wallets/walletConnectors/chunk-FEDNFTC5.js +71 -0
  310. package/dist/wallets/walletConnectors/{chunk-OH3HGTQV.js → chunk-G62ST53R.js} +1 -1
  311. package/dist/wallets/walletConnectors/chunk-GAP7NFIO.js +84 -0
  312. package/dist/wallets/walletConnectors/{chunk-4CGDJKUJ.js → chunk-J3HOIBZW.js} +4 -4
  313. package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +71 -0
  314. package/dist/wallets/walletConnectors/{chunk-M5VGZ2QW.js → chunk-JEVYZEBJ.js} +1 -1
  315. package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +114 -0
  316. package/dist/wallets/walletConnectors/chunk-K5J2FLUB.js +226 -0
  317. package/dist/wallets/walletConnectors/{chunk-JC5DQVHX.js → chunk-KQ3NBNAM.js} +1 -1
  318. package/dist/wallets/walletConnectors/{chunk-EUSM6MRB.js → chunk-OJAMLRYU.js} +4 -4
  319. package/dist/wallets/walletConnectors/{chunk-ZGVEVXA7.js → chunk-PX5UW3Z2.js} +1 -1
  320. package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +102 -0
  321. package/dist/wallets/walletConnectors/{chunk-TT2SHVBF.js → chunk-QOK4O2YL.js} +4 -4
  322. package/dist/wallets/walletConnectors/chunk-RZE4WHVP.js +112 -0
  323. package/dist/wallets/walletConnectors/{chunk-THH76QKN.js → chunk-SMDKR4XA.js} +4 -4
  324. package/dist/wallets/walletConnectors/chunk-SMEQQ574.js +117 -0
  325. package/dist/wallets/walletConnectors/{chunk-7HTS7H5B.js → chunk-TOIRQMDJ.js} +1 -1
  326. package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +105 -0
  327. package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +113 -0
  328. package/dist/wallets/walletConnectors/{chunk-237HEA4B.js → chunk-WSYSB5XX.js} +1 -1
  329. package/dist/wallets/walletConnectors/chunk-YK74CZ2K.js +110 -0
  330. package/dist/wallets/walletConnectors/{chunk-IVIQBLOK.js → chunk-YUE47K7K.js} +1 -1
  331. package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +81 -0
  332. package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +15 -0
  333. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  334. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +22 -0
  335. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  336. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -0
  337. package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +24 -0
  338. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  339. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +7 -0
  340. package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +7 -0
  341. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +16 -0
  342. package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +11 -0
  343. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  344. package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +7 -0
  345. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +22 -0
  346. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  347. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +16 -0
  348. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
  349. package/dist/wallets/walletConnectors/index.d.ts +41 -0
  350. package/dist/wallets/walletConnectors/index.js +59 -59
  351. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +7 -0
  352. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +16 -0
  353. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  354. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +17 -0
  355. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  356. package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +7 -0
  357. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +16 -0
  358. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  359. package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +17 -0
  360. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  361. package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +16 -0
  362. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  363. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +11 -0
  364. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +7 -0
  365. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +7 -0
  366. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +17 -0
  367. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  368. package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +7 -0
  369. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +12 -0
  370. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +22 -0
  371. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  372. package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +16 -0
  373. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  374. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +12 -0
  375. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +12 -0
  376. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +17 -0
  377. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  378. package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +22 -0
  379. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  380. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +16 -0
  381. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
  382. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +16 -0
  383. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  384. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +12 -0
  385. package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +7 -0
  386. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +17 -0
  387. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  388. package/package.json +4 -5
@@ -0,0 +1,18 @@
1
+ export { __private__ } from './__private__';
2
+ export * from './components';
3
+ export type { AuthenticationConfig, AuthenticationStatus, } from './components/FunkitProvider/AuthenticationContext';
4
+ export { createAuthenticationAdapter, RainbowKitAuthenticationProvider, } from './components/FunkitProvider/AuthenticationContext';
5
+ export type { AvatarComponent } from './components/FunkitProvider/AvatarContext';
6
+ export type { Chain } from './components/FunkitProvider/FunkitConnectChainContext';
7
+ export type { Theme } from './components/FunkitProvider/FunkitThemeProvider';
8
+ export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
9
+ export { useAccountModal, useChainModal, useConnectModal, useFunCheckoutHistoryModal, useFunCheckoutModal, } from './components/FunkitProvider/ModalContext';
10
+ export { cssObjectFromTheme } from './css/cssObjectFromTheme';
11
+ export { cssStringFromTheme } from './css/cssStringFromTheme';
12
+ export type { Locale } from './locales/';
13
+ export { darkTheme } from './themes/darkTheme';
14
+ export { lightTheme } from './themes/lightTheme';
15
+ export { connectorsForWallets } from './wallets/connectorsForWallets';
16
+ export { getDefaultWallets } from './wallets/getDefaultWallets';
17
+ export { getWalletConnectConnector } from './wallets/getWalletConnectConnector';
18
+ export type { Wallet, WalletList } from './wallets/Wallet';
package/dist/index.js CHANGED
@@ -31,13 +31,13 @@ import {
31
31
  useFunCheckoutModal,
32
32
  useFunkitCheckout,
33
33
  useWalletConnectors
34
- } from "./chunk-X25RSAGB.js";
34
+ } from "./chunk-JC32QCLG.js";
35
35
  import {
36
36
  darkTheme
37
- } from "./chunk-ZKI6VFDD.js";
37
+ } from "./chunk-UOUEGWLS.js";
38
38
  import {
39
39
  lightTheme
40
- } from "./chunk-W7RO4DCA.js";
40
+ } from "./chunk-Q73FKLU4.js";
41
41
  import "./chunk-VP4CAK4A.js";
42
42
 
43
43
  // src/components/ConnectOptions/MobileOptions.tsx
@@ -0,0 +1,3 @@
1
+ import type * as I18nTypes from 'i18n-js';
2
+ export type Locale = 'ar' | 'ar-AR' | 'en' | 'en-US' | 'es' | 'es-419' | 'fr' | 'fr-FR' | 'hi' | 'hi-IN' | 'id' | 'id-ID' | 'ja' | 'ja-JP' | 'ko' | 'ko-KR' | 'pt' | 'pt-BR' | 'ru' | 'ru-RU' | 'th' | 'th-TH' | 'tr' | 'tr-TR' | 'zh' | 'zh-CN';
3
+ export declare const i18n: I18nTypes.I18n;
@@ -0,0 +1,25 @@
1
+ import { ThemeVars } from '../css/sprinkles.css';
2
+ declare const fontStacks: {
3
+ readonly rounded: "SFRounded, ui-rounded, \"SF Pro Rounded\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
4
+ readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
5
+ readonly fun: "SF Pro, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
6
+ };
7
+ type FontStack = keyof typeof fontStacks;
8
+ type RadiusScale = 'large' | 'medium' | 'small' | 'none';
9
+ type Blurs = 'large' | 'small' | 'none';
10
+ interface BaseThemeOptions {
11
+ borderRadius?: RadiusScale;
12
+ fontStack?: FontStack;
13
+ overlayBlur?: Blurs;
14
+ }
15
+ export declare const baseTheme: ({ borderRadius, fontStack, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, 'radii' | 'fonts' | 'blurs'>;
16
+ export interface AccentColor {
17
+ accentColor: string;
18
+ accentColorForeground: string;
19
+ }
20
+ export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange' | 'white';
21
+ export interface ThemeOptions extends BaseThemeOptions {
22
+ accentColor?: string;
23
+ accentColorForeground?: string;
24
+ }
25
+ export {};
@@ -0,0 +1,85 @@
1
+ import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
2
+ export declare const darkTheme: {
3
+ ({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
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
+ accentColors: Record<AccentColorPreset, AccentColor>;
85
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-ZKI6VFDD.js";
4
+ } from "../chunk-UOUEGWLS.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  darkTheme
@@ -0,0 +1,85 @@
1
+ import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
2
+ export declare const lightTheme: {
3
+ ({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
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
+ buttonWarning: string;
56
+ buttonTextWarning: string;
57
+ buttonTextPrimary: string;
58
+ buttonTextSecondary: string;
59
+ buttonTextDisabled: 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
+ accentColors: Record<AccentColorPreset, AccentColor>;
85
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-W7RO4DCA.js";
4
+ } from "../chunk-Q73FKLU4.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  lightTheme
@@ -0,0 +1,151 @@
1
+ import React from 'react';
2
+ export declare function TransactionStoreProvider({ children, }: {
3
+ children: React.ReactNode;
4
+ }): React.JSX.Element;
5
+ export declare function useTransactionStore(): {
6
+ addTransaction: (account: string, chainId: number, transaction: import("./transactionStore").NewTransaction) => void;
7
+ clearTransactions: (account: string, chainId: number) => void;
8
+ getTransactions: (account: string, chainId: number) => import("./transactionStore").Transaction[];
9
+ onChange: (fn: () => void) => () => void;
10
+ setProvider: (newProvider: {
11
+ account: undefined;
12
+ batch?: {
13
+ multicall?: boolean | {
14
+ batchSize?: number | undefined;
15
+ wait?: number | undefined;
16
+ } | undefined;
17
+ } | undefined;
18
+ cacheTime: number;
19
+ chain: import("viem").Chain | undefined;
20
+ key: string;
21
+ name: string;
22
+ pollingInterval: number;
23
+ request: import("viem").EIP1193RequestFn<import("viem").PublicRpcSchema>;
24
+ transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
25
+ type: string;
26
+ uid: string;
27
+ call: (parameters: import("viem").CallParameters<import("viem").Chain | undefined>) => Promise<import("viem").CallReturnType>;
28
+ createBlockFilter: () => Promise<{
29
+ id: `0x${string}`;
30
+ request: import("viem").EIP1193RequestFn<readonly [{
31
+ Method: "eth_getFilterChanges";
32
+ Parameters: [filterId: `0x${string}`];
33
+ ReturnType: `0x${string}`[] | import("viem").RpcLog[];
34
+ }, {
35
+ Method: "eth_getFilterLogs";
36
+ Parameters: [filterId: `0x${string}`];
37
+ ReturnType: import("viem").RpcLog[];
38
+ }, {
39
+ Method: "eth_uninstallFilter";
40
+ Parameters: [filterId: `0x${string}`];
41
+ ReturnType: boolean;
42
+ }]>;
43
+ type: "block";
44
+ }>;
45
+ createContractEventFilter: <const TAbi extends unknown, TEventName extends string | undefined, TArgs extends import("viem/_types/types/contract").MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").CreateContractEventFilterParameters<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>) => Promise<import("viem").CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>;
46
+ createEventFilter: <const TAbiEvent extends unknown = undefined, const TAbiEvents extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TStrict_1 extends boolean | undefined = undefined, TFromBlock_1 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_1 extends bigint | import("viem").BlockTag | undefined = undefined, _EventName extends string | undefined = import("viem/_types/types/contract").MaybeAbiEventName<TAbiEvent>, _Args extends import("viem/_types/types/contract").MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined = undefined>(args?: import("viem").CreateEventFilterParameters<TAbiEvent, TAbiEvents, TStrict_1, TFromBlock_1, TToBlock_1, _EventName, _Args> | undefined) => Promise<import("viem").Filter<"event", TAbiEvents, _EventName, _Args, TStrict_1, TFromBlock_1, TToBlock_1> extends infer T ? { [K in keyof T]: import("viem").Filter<"event", TAbiEvents, _EventName, _Args, TStrict_1, TFromBlock_1, TToBlock_1>[K]; } : never>;
47
+ createPendingTransactionFilter: () => Promise<{
48
+ id: `0x${string}`;
49
+ request: import("viem").EIP1193RequestFn<readonly [{
50
+ Method: "eth_getFilterChanges";
51
+ Parameters: [filterId: `0x${string}`];
52
+ ReturnType: `0x${string}`[] | import("viem").RpcLog[];
53
+ }, {
54
+ Method: "eth_getFilterLogs";
55
+ Parameters: [filterId: `0x${string}`];
56
+ ReturnType: import("viem").RpcLog[];
57
+ }, {
58
+ Method: "eth_uninstallFilter";
59
+ Parameters: [filterId: `0x${string}`];
60
+ ReturnType: boolean;
61
+ }]>;
62
+ type: "transaction";
63
+ }>;
64
+ estimateContractGas: <TChain extends import("viem").Chain | undefined, const TAbi_1 extends unknown, TFunctionName extends string>(args: import("viem").EstimateContractGasParameters<TAbi_1, TFunctionName, TChain, import("viem").Account | undefined>) => Promise<bigint>;
65
+ estimateGas: (args: import("viem").EstimateGasParameters<import("viem").Chain | undefined, import("viem").Account | undefined>) => Promise<bigint>;
66
+ getBalance: (args: import("viem").GetBalanceParameters) => Promise<bigint>;
67
+ getBlock: <TIncludeTransactions extends boolean = false, TBlockTag extends import("viem").BlockTag = "latest">(args?: import("viem").GetBlockParameters<TIncludeTransactions, TBlockTag> | undefined) => Promise<import("viem").GetBlockReturnType<import("viem").Chain | undefined, TIncludeTransactions, TBlockTag>>;
68
+ getBlockNumber: (args?: import("viem").GetBlockNumberParameters | undefined) => Promise<bigint>;
69
+ getBlockTransactionCount: (args?: import("viem").GetBlockTransactionCountParameters | undefined) => Promise<number>;
70
+ getBytecode: (args: import("viem").GetBytecodeParameters) => Promise<import("viem").GetBytecodeReturnType>;
71
+ getChainId: () => Promise<number>;
72
+ getContractEvents: <const TAbi_2 extends unknown, TEventName_1 extends string | undefined = undefined, TStrict_2 extends boolean | undefined = undefined, TFromBlock_2 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_2 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem/_types/actions/public/getContractEvents").GetContractEventsParameters<TAbi_2, TEventName_1, TStrict_2, TFromBlock_2, TToBlock_2>) => Promise<import("viem/_types/actions/public/getContractEvents").GetContractEventsReturnType<TAbi_2, TEventName_1, TStrict_2, TFromBlock_2, TToBlock_2>>;
73
+ getEnsAddress: (args: {
74
+ blockNumber?: bigint | undefined;
75
+ blockTag?: import("viem").BlockTag | undefined;
76
+ coinType?: number | undefined;
77
+ name: string;
78
+ universalResolverAddress?: any;
79
+ }) => Promise<any>;
80
+ getEnsAvatar: (args: {
81
+ name: string;
82
+ blockNumber?: bigint | undefined;
83
+ blockTag?: import("viem").BlockTag | undefined;
84
+ universalResolverAddress?: any;
85
+ gatewayUrls?: import("viem").AssetGatewayUrls | undefined;
86
+ }) => Promise<import("viem/ens").GetEnsAvatarReturnType>;
87
+ getEnsName: (args: {
88
+ blockNumber?: bigint | undefined;
89
+ blockTag?: import("viem").BlockTag | undefined;
90
+ address: Address;
91
+ universalResolverAddress?: any;
92
+ }) => Promise<import("viem").GetEnsNameReturnType>;
93
+ getEnsResolver: (args: {
94
+ blockNumber?: bigint | undefined;
95
+ blockTag?: import("viem").BlockTag | undefined;
96
+ name: string;
97
+ universalResolverAddress?: any;
98
+ }) => Promise<Address>;
99
+ getEnsText: (args: {
100
+ blockNumber?: bigint | undefined;
101
+ blockTag?: import("viem").BlockTag | undefined;
102
+ name: string;
103
+ key: string;
104
+ universalResolverAddress?: any;
105
+ }) => Promise<import("viem/ens").GetEnsTextReturnType>;
106
+ getFeeHistory: (args: import("viem").GetFeeHistoryParameters) => Promise<import("viem").GetFeeHistoryReturnType>;
107
+ estimateFeesPerGas: <TChainOverride extends import("viem").Chain | undefined, TType extends import("viem").FeeValuesType = "eip1559">(args?: import("viem").EstimateFeesPerGasParameters<import("viem").Chain | undefined, TChainOverride, TType> | undefined) => Promise<import("viem").EstimateFeesPerGasReturnType>;
108
+ getFilterChanges: <TFilterType extends import("viem/_types/types/filter").FilterType, const TAbi_3 extends unknown, TEventName_2 extends string | undefined, TStrict_3 extends boolean | undefined = undefined, TFromBlock_3 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_3 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").GetFilterChangesParameters<TFilterType, TAbi_3, TEventName_2, TStrict_3, TFromBlock_3, TToBlock_3>) => Promise<import("viem").GetFilterChangesReturnType<TFilterType, TAbi_3, TEventName_2, TStrict_3, TFromBlock_3, TToBlock_3>>;
109
+ getFilterLogs: <const TAbi_4 extends unknown, TEventName_3 extends string | undefined, TStrict_4 extends boolean | undefined = undefined, TFromBlock_4 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_4 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").GetFilterLogsParameters<TAbi_4, TEventName_3, TStrict_4, TFromBlock_4, TToBlock_4>) => Promise<import("viem").GetFilterLogsReturnType<TAbi_4, TEventName_3, TStrict_4, TFromBlock_4, TToBlock_4>>;
110
+ getGasPrice: () => Promise<bigint>;
111
+ getLogs: <const TAbiEvent_1 extends unknown = undefined, const TAbiEvents_1 extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent_1 extends AbiEvent ? [TAbiEvent_1] : undefined, TStrict_5 extends boolean | undefined = undefined, TFromBlock_5 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_5 extends bigint | import("viem").BlockTag | undefined = undefined>(args?: import("viem").GetLogsParameters<TAbiEvent_1, TAbiEvents_1, TStrict_5, TFromBlock_5, TToBlock_5> | undefined) => Promise<import("viem").GetLogsReturnType<TAbiEvent_1, TAbiEvents_1, TStrict_5, TFromBlock_5, TToBlock_5>>;
112
+ getProof: (args: import("viem/_types/actions/public/getProof").GetProofParameters) => Promise<import("viem/_types/actions/public/getProof").GetProofReturnType>;
113
+ estimateMaxPriorityFeePerGas: <TChainOverride_1 extends import("viem").Chain | undefined>(args?: {
114
+ chain: TChainOverride_1 | null;
115
+ } | undefined) => Promise<bigint>;
116
+ getStorageAt: (args: import("viem").GetStorageAtParameters) => Promise<import("viem").GetStorageAtReturnType>;
117
+ getTransaction: <TBlockTag_1 extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<TBlockTag_1>) => Promise<import("viem").GetTransactionReturnType<import("viem").Chain | undefined, TBlockTag_1>>;
118
+ getTransactionConfirmations: (args: import("viem").GetTransactionConfirmationsParameters<import("viem").Chain | undefined>) => Promise<bigint>;
119
+ getTransactionCount: (args: import("viem").GetTransactionCountParameters) => Promise<number>;
120
+ getTransactionReceipt: (args: import("viem").GetTransactionReceiptParameters) => Promise<import("viem").TransactionReceipt>;
121
+ multicall: <TContracts extends import("viem").ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: import("viem").MulticallParameters<TContracts, TAllowFailure>) => Promise<import("viem").MulticallReturnType<TContracts, TAllowFailure>>;
122
+ prepareTransactionRequest: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_2>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
123
+ readContract: <const TAbi_5 extends unknown, TFunctionName_1 extends string>(args: import("viem").ReadContractParameters<TAbi_5, TFunctionName_1>) => Promise<unknown>;
124
+ sendRawTransaction: (args: import("viem/_types/actions/wallet/sendRawTransaction").SendRawTransactionParameters) => Promise<`0x${string}`>;
125
+ simulateContract: <const TAbi_6 extends unknown, TFunctionName_2 extends string, TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem").SimulateContractParameters<TAbi_6, TFunctionName_2, import("viem").Chain | undefined, TChainOverride_3>) => Promise<import("viem").SimulateContractReturnType<TAbi_6, TFunctionName_2, import("viem").Chain | undefined, TChainOverride_3>>;
126
+ verifyMessage: (args: import("viem/_types/actions/public/verifyMessage").VerifyMessageParameters) => Promise<boolean>;
127
+ verifyTypedData: (args: import("viem/_types/actions/public/verifyTypedData").VerifyTypedDataParameters) => Promise<boolean>;
128
+ uninstallFilter: (args: import("viem").UninstallFilterParameters) => Promise<boolean>;
129
+ waitForTransactionReceipt: (args: import("viem").WaitForTransactionReceiptParameters<import("viem").Chain | undefined>) => Promise<import("viem").TransactionReceipt>;
130
+ watchBlockNumber: (args: import("viem").WatchBlockNumberParameters) => import("viem").WatchBlockNumberReturnType;
131
+ watchBlocks: <TIncludeTransactions_1 extends boolean = false, TBlockTag_2 extends import("viem").BlockTag = "latest">(args: import("viem").WatchBlocksParameters<import("viem").Transport, import("viem").Chain | undefined, TIncludeTransactions_1, TBlockTag_2>) => import("viem").WatchBlocksReturnType;
132
+ watchContractEvent: <const TAbi_7 extends unknown, TEventName_4 extends string, TStrict_6 extends boolean | undefined = undefined>(args: import("viem").WatchContractEventParameters<TAbi_7, TEventName_4, TStrict_6>) => import("viem").WatchContractEventReturnType;
133
+ watchEvent: <const TAbiEvent_2 extends unknown = undefined, const TAbiEvents_2 extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent_2 extends AbiEvent ? [TAbiEvent_2] : undefined, TStrict_7 extends boolean | undefined = undefined>(args: import("viem").WatchEventParameters<TAbiEvent_2, TAbiEvents_2, TStrict_7>) => import("viem").WatchEventReturnType;
134
+ watchPendingTransactions: (args: import("viem").WatchPendingTransactionsParameters<import("viem").Transport>) => import("viem").WatchPendingTransactionsReturnType;
135
+ extend: <const client extends {
136
+ [x: string]: unknown;
137
+ account?: undefined;
138
+ batch?: undefined;
139
+ cacheTime?: undefined;
140
+ chain?: undefined;
141
+ key?: undefined;
142
+ name?: undefined;
143
+ pollingInterval?: undefined;
144
+ request?: undefined;
145
+ transport?: undefined;
146
+ type?: undefined;
147
+ uid?: undefined;
148
+ }>(fn: (client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, undefined, import("viem").PublicRpcSchema, import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined>>) => client) => import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, undefined, import("viem").PublicRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined>>;
149
+ }) => void;
150
+ waitForPendingTransactions: (account: string, chainId: number) => Promise<void>;
151
+ };
@@ -0,0 +1,21 @@
1
+ import type { PublicClient } from 'viem';
2
+ type TransactionStatus = 'pending' | 'confirmed' | 'failed';
3
+ export interface Transaction {
4
+ hash: string;
5
+ description: string;
6
+ status: TransactionStatus;
7
+ confirmations?: number;
8
+ }
9
+ export type NewTransaction = Omit<Transaction, 'status'>;
10
+ export declare function createTransactionStore({ provider: initialProvider, }: {
11
+ provider: PublicClient;
12
+ }): {
13
+ addTransaction: (account: string, chainId: number, transaction: NewTransaction) => void;
14
+ clearTransactions: (account: string, chainId: number) => void;
15
+ getTransactions: (account: string, chainId: number) => Transaction[];
16
+ onChange: (fn: () => void) => () => void;
17
+ setProvider: (newProvider: PublicClient) => void;
18
+ waitForPendingTransactions: (account: string, chainId: number) => Promise<void>;
19
+ };
20
+ export type TransactionStore = ReturnType<typeof createTransactionStore>;
21
+ export {};
@@ -0,0 +1,2 @@
1
+ import { NewTransaction } from './transactionStore';
2
+ export declare function useAddRecentTransaction(): (transaction: NewTransaction) => void;
@@ -0,0 +1 @@
1
+ export declare function useClearRecentTransactions(): () => void;
@@ -0,0 +1,2 @@
1
+ import type { Transaction } from './transactionStore';
2
+ export declare function useRecentTransactions(): Transaction[];
@@ -0,0 +1,4 @@
1
+ import { useBalance, useEnsAvatar, useEnsName } from 'wagmi';
2
+ export type UseBalanceOptions = Parameters<typeof useBalance>[0];
3
+ export type UseEnsAvatarOptions = Parameters<typeof useEnsAvatar>[0];
4
+ export type UseEnsNameOptions = Parameters<typeof useEnsName>[0];
@@ -0,0 +1,25 @@
1
+ declare class FunLogger {
2
+ protected apiKey: string | null;
3
+ protected isDebugMode: boolean;
4
+ protected userId: string | null;
5
+ constructor();
6
+ private getFunLogEnv;
7
+ private decorateLogDataForDdog;
8
+ private onDebug;
9
+ private onInfo;
10
+ private onWarn;
11
+ private onError;
12
+ /**========================
13
+ * PUBLIC LOGGER FUNCTIONS
14
+ *=========================*/
15
+ log(title: string, data?: object): void;
16
+ info(title: string, data?: object): void;
17
+ debug(title: string, data?: object): void;
18
+ warn(title: string, data?: object): void;
19
+ error(title: string, error: Error, data?: object): void;
20
+ configure(apiKey: string | null, isDebug: boolean): void;
21
+ getUserId(): string | null;
22
+ setUserId(userId: string): void;
23
+ }
24
+ declare const logger: FunLogger;
25
+ export { logger };
@@ -0,0 +1,13 @@
1
+ export declare function isSafari(): boolean;
2
+ export declare function isArc(): boolean;
3
+ export declare enum BrowserType {
4
+ Arc = "Arc",
5
+ Brave = "Brave",
6
+ Browser = "Browser",
7
+ Chrome = "Chrome",
8
+ Edge = "Edge",
9
+ Firefox = "Firefox",
10
+ Opera = "Opera",
11
+ Safari = "Safari"
12
+ }
13
+ export declare function getBrowser(): BrowserType;
@@ -0,0 +1,2 @@
1
+ import { Chain } from '../components/FunkitProvider/FunkitConnectChainContext';
2
+ export declare const chainToExplorerUrl: (chain?: Chain) => string | undefined;
@@ -0,0 +1,99 @@
1
+ import { CheckoutHistoryItem, CheckoutState, FunWallet } from '@funkit/core';
2
+ import { Hex } from 'viem';
3
+ import { FunkitCheckoutConfig } from '../components/FunkitProvider/FunkitCheckoutContext';
4
+ export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
5
+ /**
6
+ * Validates the checkout configuration.
7
+ * @param config - The checkout configuration to validate.
8
+ * @returns An object indicating whether the configuration is valid and a message if it is not.
9
+ */
10
+ export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
11
+ isValid: boolean;
12
+ message: string;
13
+ };
14
+ /**
15
+ * Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
16
+ */
17
+ export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, wallet: FunWallet) => Promise<{
18
+ result: boolean;
19
+ tokenTicker: string;
20
+ } | {
21
+ result: boolean;
22
+ tokenTicker: null;
23
+ }>;
24
+ export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
25
+ export declare function getFunkitEnvForDirectExecution({ chainId, }: {
26
+ chainId: string;
27
+ }): {
28
+ chain: string;
29
+ gasSponsor: {
30
+ sponsorAddress?: `0x${string}` | undefined;
31
+ token?: string | undefined;
32
+ usePermit?: boolean | undefined;
33
+ useCheckoutSponsor?: boolean | undefined;
34
+ };
35
+ apiKey?: string | undefined;
36
+ fee?: {
37
+ token?: string | undefined;
38
+ amount?: number | undefined;
39
+ gasPercent?: number | undefined;
40
+ recipient: `0x${string}`;
41
+ } | undefined;
42
+ skipDBAction?: boolean | undefined;
43
+ nonce?: bigint | undefined;
44
+ bypassInit?: boolean | undefined;
45
+ };
46
+ /**
47
+ * Generates an env config for checkout estimation
48
+ * So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
49
+ */
50
+ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalletInit, }: {
51
+ chainId: string;
52
+ bypassWalletInit: boolean;
53
+ }): {
54
+ chain: string;
55
+ gasSponsor: {
56
+ useCheckoutSponsor: boolean;
57
+ sponsorAddress: any;
58
+ token?: string | undefined;
59
+ usePermit?: boolean | undefined;
60
+ };
61
+ bypassInit: boolean;
62
+ apiKey?: string | undefined;
63
+ fee?: {
64
+ token?: string | undefined;
65
+ amount?: number | undefined;
66
+ gasPercent?: number | undefined;
67
+ recipient: `0x${string}`;
68
+ } | undefined;
69
+ skipDBAction?: boolean | undefined;
70
+ nonce?: bigint | undefined;
71
+ };
72
+ /**
73
+ * Decorates a list of token strings with their chainId-specific tokenAddress and pickedChainId
74
+ * @param tokenList List of token strings e.g. ['ETH', 'MATIC', ...]
75
+ * @param targetChainId The targetChain identifier of the checkout
76
+ * @returns List of tokenItem objects
77
+ */
78
+ export declare function decorateTokenList(tokensChainMap: {
79
+ [ticker: string]: {
80
+ [chainId: string]: true;
81
+ };
82
+ }, targetChainId: string): Promise<{
83
+ symbol: string;
84
+ tokenAddress: null | Hex;
85
+ tokenUnitPriceUsd: null | number;
86
+ pickedChainId: string;
87
+ }[]>;
88
+ export interface CheckoutHistoryDepositAddrMap {
89
+ [depositAddr: string]: CheckoutHistoryItem;
90
+ }
91
+ export interface CheckoutHistoryStateMap {
92
+ [checkoutState: string]: CheckoutHistoryItem[];
93
+ }
94
+ export declare function categorizeCheckoutHistories(checkoutHistoryList: CheckoutHistoryItem[]): {
95
+ stateMap: CheckoutHistoryStateMap;
96
+ depositAddrMap: CheckoutHistoryDepositAddrMap;
97
+ };
98
+ export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
99
+ export declare function formatTokenAmountForMoonpay(amount: number): string;
@@ -0,0 +1,3 @@
1
+ export declare const convertHexToRGBA: (hexCode: string, opacity?: number) => string;
2
+ export declare const getGradientRGBAs: (hexColor?: string) => string[] | null;
3
+ export declare const isHexString: (color: string) => boolean;
@@ -0,0 +1,5 @@
1
+ export type ValidationResult = {
2
+ type: 'phone' | 'email';
3
+ valid: boolean;
4
+ };
5
+ export declare const validateOTPInput: (input: string) => ValidationResult;
@@ -0,0 +1 @@
1
+ export declare function flatten<Item>(array: Item[][]): Item[];