@imtbl/checkout-widgets 2.0.0-alpha.0
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/LICENSE.md +176 -0
- package/README.md +3 -0
- package/dist/browser/AddTokensWidget-QGKGQBKZ.js +1 -0
- package/dist/browser/BridgeWidget-2JZZV7LZ.js +1 -0
- package/dist/browser/CommerceWidget-IVNOVHCZ.js +1 -0
- package/dist/browser/ConnectWidget-ZM6T4NZJ.js +1 -0
- package/dist/browser/OnRampWidget-CXSJR4D2.js +1 -0
- package/dist/browser/SaleWidget-NS5UQNBN.js +1 -0
- package/dist/browser/SwapWidget-3DWYEOCD.js +1 -0
- package/dist/browser/WalletWidget-XWB6VELR.js +1 -0
- package/dist/browser/chunk-273L75VZ.js +26 -0
- package/dist/browser/chunk-3AHRPZYV.js +2 -0
- package/dist/browser/chunk-5AVK5XOU.js +4 -0
- package/dist/browser/chunk-5U7AR7XV.js +1 -0
- package/dist/browser/chunk-65KT4KZW.js +1 -0
- package/dist/browser/chunk-AWLYHJ5L.js +2 -0
- package/dist/browser/chunk-BVF4MRFQ.js +2 -0
- package/dist/browser/chunk-DVUYKTGV.js +2 -0
- package/dist/browser/chunk-ECAH5RC3.js +1 -0
- package/dist/browser/chunk-EEDQFEKZ.js +2 -0
- package/dist/browser/chunk-EZWBOX2K.js +1 -0
- package/dist/browser/chunk-I3HZNWUF.js +1 -0
- package/dist/browser/chunk-JF3XWEEL.js +2 -0
- package/dist/browser/chunk-JV43EWXA.js +1 -0
- package/dist/browser/chunk-K3KIUMY7.js +1 -0
- package/dist/browser/chunk-KOBELCOG.js +1 -0
- package/dist/browser/chunk-MADECDXT.js +2 -0
- package/dist/browser/chunk-ME7FB46X.js +1 -0
- package/dist/browser/chunk-NNMZJ5NV.js +2 -0
- package/dist/browser/chunk-OPMBNAY3.js +1 -0
- package/dist/browser/chunk-P7Y5EGBN.js +1 -0
- package/dist/browser/chunk-QJTHBCR2.js +1 -0
- package/dist/browser/chunk-QPOHDTWR.js +12 -0
- package/dist/browser/chunk-R5TRMOBS.js +1 -0
- package/dist/browser/chunk-R7NCCCUY.js +1 -0
- package/dist/browser/chunk-RTSPX46P.js +1 -0
- package/dist/browser/chunk-UNEH2WXY.js +1 -0
- package/dist/browser/chunk-UNLLKACC.js +1 -0
- package/dist/browser/chunk-WCTMM2S2.js +2 -0
- package/dist/browser/chunk-WWUSGIQB.js +2 -0
- package/dist/browser/chunk-XE2T4YRZ.js +2 -0
- package/dist/browser/chunk-Y7N65KJX.js +1 -0
- package/dist/browser/chunk-YOCWSYBR.js +1 -0
- package/dist/browser/chunk-Z52PVTUZ.js +2 -0
- package/dist/browser/index.cdn.js +2611 -0
- package/dist/browser/index.js +14 -0
- package/dist/node/AddTokensWidget-JVV5SAXW.js +1 -0
- package/dist/node/AddTokensWidget-LS55AEAX.cjs +1 -0
- package/dist/node/BridgeWidget-ANWHTETV.cjs +1 -0
- package/dist/node/BridgeWidget-BEHWLY4M.js +1 -0
- package/dist/node/CommerceWidget-572UHGHP.js +1 -0
- package/dist/node/CommerceWidget-RJBIBYDR.cjs +1 -0
- package/dist/node/ConnectWidget-KSU76TQZ.cjs +1 -0
- package/dist/node/ConnectWidget-SUTP57IU.js +1 -0
- package/dist/node/OnRampWidget-KWATCRL6.cjs +1 -0
- package/dist/node/OnRampWidget-XTLZQCYU.js +1 -0
- package/dist/node/SaleWidget-AKMOR4MS.cjs +1 -0
- package/dist/node/SaleWidget-MHO7WXRH.js +1 -0
- package/dist/node/SwapWidget-MNOU735K.js +1 -0
- package/dist/node/SwapWidget-OAO2LUH7.cjs +1 -0
- package/dist/node/WalletWidget-3O2ZGGS3.js +1 -0
- package/dist/node/WalletWidget-6EVH2BKX.cjs +1 -0
- package/dist/node/chunk-22SKYDXN.cjs +13 -0
- package/dist/node/chunk-2MYO4ISV.js +13 -0
- package/dist/node/chunk-3U2JWMZP.js +1 -0
- package/dist/node/chunk-3YTH4LI4.js +1 -0
- package/dist/node/chunk-4IFPHDUT.js +1 -0
- package/dist/node/chunk-6H2BBDML.js +1 -0
- package/dist/node/chunk-6TWJH2AM.js +1 -0
- package/dist/node/chunk-7UY5KYHG.cjs +1 -0
- package/dist/node/chunk-AAYNER66.js +1 -0
- package/dist/node/chunk-AIYMKAUY.cjs +1 -0
- package/dist/node/chunk-BYAQUPEK.js +1 -0
- package/dist/node/chunk-C6FRHKWB.js +2 -0
- package/dist/node/chunk-CB2MUIJZ.cjs +1 -0
- package/dist/node/chunk-FNPSTVDH.cjs +1 -0
- package/dist/node/chunk-GLDQ7MF4.js +1 -0
- package/dist/node/chunk-GNHN2ICF.cjs +1 -0
- package/dist/node/chunk-HDLNJM65.js +1 -0
- package/dist/node/chunk-HI6MCAVV.cjs +1 -0
- package/dist/node/chunk-HZLDGMYD.js +1 -0
- package/dist/node/chunk-HZNOURGW.js +1 -0
- package/dist/node/chunk-JKILWATI.js +1 -0
- package/dist/node/chunk-K52NEJW2.cjs +1 -0
- package/dist/node/chunk-KGOQ6VFE.js +1 -0
- package/dist/node/chunk-KNH42REY.js +1 -0
- package/dist/node/chunk-KSTBNWCA.js +1 -0
- package/dist/node/chunk-KWBEZYZZ.cjs +1 -0
- package/dist/node/chunk-LJK7NSTD.js +1 -0
- package/dist/node/chunk-MD2VWWAQ.js +1 -0
- package/dist/node/chunk-MKJ4R6WO.cjs +1 -0
- package/dist/node/chunk-NZFR53NE.cjs +1 -0
- package/dist/node/chunk-OQQYEFTA.js +1 -0
- package/dist/node/chunk-OXPQRBCG.js +1 -0
- package/dist/node/chunk-PBOKGTIX.cjs +1 -0
- package/dist/node/chunk-PH7MBID7.cjs +2 -0
- package/dist/node/chunk-PUPRBAZB.cjs +1 -0
- package/dist/node/chunk-QCLRQLDO.cjs +1 -0
- package/dist/node/chunk-QHSNFLEV.cjs +1 -0
- package/dist/node/chunk-QRVHE5Y7.cjs +1 -0
- package/dist/node/chunk-QYNUE7DW.js +1 -0
- package/dist/node/chunk-RA25BPS6.cjs +1 -0
- package/dist/node/chunk-RJ7GFDCE.cjs +26 -0
- package/dist/node/chunk-RLN6G3DA.js +1 -0
- package/dist/node/chunk-ROFHVMKI.cjs +1 -0
- package/dist/node/chunk-RXF5UFTS.cjs +1 -0
- package/dist/node/chunk-SLZNA32D.cjs +1 -0
- package/dist/node/chunk-TR6RIRY5.js +1 -0
- package/dist/node/chunk-U35NC4YR.js +1 -0
- package/dist/node/chunk-U3UYGXTO.cjs +1 -0
- package/dist/node/chunk-U5NIPQGN.js +1 -0
- package/dist/node/chunk-UAFMLOWU.cjs +1 -0
- package/dist/node/chunk-UQ6XJRZD.cjs +1 -0
- package/dist/node/chunk-VBZYATUZ.cjs +1 -0
- package/dist/node/chunk-VRNYQKKE.js +1 -0
- package/dist/node/chunk-WFETTIGN.cjs +1 -0
- package/dist/node/chunk-WM3DCFTT.cjs +1 -0
- package/dist/node/chunk-WMW6GDIT.cjs +1 -0
- package/dist/node/chunk-WRCRJRRN.cjs +1 -0
- package/dist/node/chunk-WX7AXFHF.js +1 -0
- package/dist/node/chunk-XOR3FOOQ.cjs +1 -0
- package/dist/node/chunk-XPPN74JV.js +1 -0
- package/dist/node/chunk-Y4BXGSPS.cjs +1 -0
- package/dist/node/chunk-YWKKC4WT.cjs +1 -0
- package/dist/node/chunk-YZP7VIZZ.js +1 -0
- package/dist/node/chunk-Z3BWDS2L.js +1 -0
- package/dist/node/chunk-ZDBKUGOB.js +26 -0
- package/dist/node/chunk-ZESSPNGI.js +1 -0
- package/dist/node/chunk-ZHUX33PW.cjs +1 -0
- package/dist/node/chunk-ZMA2BB4P.js +1 -0
- package/dist/node/index.cjs +13 -0
- package/dist/node/index.js +13 -0
- package/dist/types/components/Body/SimpleTextBody.d.ts +5 -0
- package/dist/types/components/Body/SimpleTextBodyStyles.d.ts +10 -0
- package/dist/types/components/CenteredBoxContent/CenteredBoxContent.d.ts +5 -0
- package/dist/types/components/CenteredBoxContent/CenteredBoxStyles.d.ts +6 -0
- package/dist/types/components/ChangedYourMindDrawer/ChangedYourMindDrawer.d.ts +8 -0
- package/dist/types/components/CoinSelector/CoinSelector.d.ts +12 -0
- package/dist/types/components/CoinSelector/CoinSelectorOption.d.ts +15 -0
- package/dist/types/components/CoinSelector/CoinSelectorStyles.d.ts +12 -0
- package/dist/types/components/ConnectLoader/ConnectLoader.d.ts +21 -0
- package/dist/types/components/ConnectLoader/ConnectLoaderSuccess.d.ts +5 -0
- package/dist/types/components/EOAWarningDrawer/EOAWarningDrawer.d.ts +5 -0
- package/dist/types/components/Fees/FeeStyles.d.ts +18 -0
- package/dist/types/components/Fees/Fees.d.ts +14 -0
- package/dist/types/components/FeesBreakdown/FeeItem.d.ts +9 -0
- package/dist/types/components/FeesBreakdown/FeesBreakdown.d.ts +13 -0
- package/dist/types/components/FeesBreakdown/FeesBreakdownStyles.d.ts +28 -0
- package/dist/types/components/Footer/FooterButton.d.ts +9 -0
- package/dist/types/components/Footer/FooterLogo.d.ts +4 -0
- package/dist/types/components/Footer/FooterStyles.d.ts +41 -0
- package/dist/types/components/Footer/QuickswapFooter.d.ts +7 -0
- package/dist/types/components/FormComponents/FormControlWrapper/FormControlWrapper.d.ts +12 -0
- package/dist/types/components/FormComponents/SelectForm/SelectForm.d.ts +21 -0
- package/dist/types/components/FormComponents/SelectInput/SelectInput.d.ts +34 -0
- package/dist/types/components/FormComponents/SelectInput/SelectInputStyles.d.ts +12 -0
- package/dist/types/components/FormComponents/TextInputForm/TextInputForm.d.ts +21 -0
- package/dist/types/components/Handover/Handover.d.ts +5 -0
- package/dist/types/components/Handover/HandoverAnimation.d.ts +4 -0
- package/dist/types/components/Handover/HandoverContent.d.ts +9 -0
- package/dist/types/components/Header/HeaderNavigation.d.ts +10 -0
- package/dist/types/components/Header/HeaderStyles.d.ts +6 -0
- package/dist/types/components/Hero/BridgeHero.d.ts +1 -0
- package/dist/types/components/Hero/CreditCardWarningHero.d.ts +1 -0
- package/dist/types/components/Hero/EthereumPlanetHero.d.ts +1 -0
- package/dist/types/components/Hero/HeroImageStyles.d.ts +19 -0
- package/dist/types/components/Hero/IMXCoinsHero.d.ts +1 -0
- package/dist/types/components/Hero/ImmutablePlanetHero.d.ts +1 -0
- package/dist/types/components/Hero/MetamaskConnectHero.d.ts +1 -0
- package/dist/types/components/Hero/NoServiceHero.d.ts +1 -0
- package/dist/types/components/Hero/PassportConnectHero.d.ts +1 -0
- package/dist/types/components/Hero/RocketHero.d.ts +6 -0
- package/dist/types/components/Hero/SanctionsHero.d.ts +1 -0
- package/dist/types/components/Hero/SatelliteHero.d.ts +1 -0
- package/dist/types/components/Hero/SpendingCapHero.d.ts +1 -0
- package/dist/types/components/Hero/TransferAssetsL1WarningHero.d.ts +1 -0
- package/dist/types/components/Hero/WalletApproveHero.d.ts +1 -0
- package/dist/types/components/Hero/WalletWarningHero.d.ts +1 -0
- package/dist/types/components/Hero/WarningHero.d.ts +1 -0
- package/dist/types/components/NetworkSwitchDrawer/NetworkSwitchDrawer.d.ts +10 -0
- package/dist/types/components/NotEnoughGas/NotEnoughGas.d.ts +11 -0
- package/dist/types/components/NotEnoughGas/NotEnoughGasStyles.d.ts +40 -0
- package/dist/types/components/NotEnoughImx/NotEnoughImx.d.ts +11 -0
- package/dist/types/components/NotEnoughImx/NotEnoughImxStyles.d.ts +33 -0
- package/dist/types/components/RawImage/RawImage.d.ts +6 -0
- package/dist/types/components/RawImage/RawImageStyles.d.ts +22 -0
- package/dist/types/components/SimpleLayout/SimpleLayout.d.ts +13 -0
- package/dist/types/components/SimpleLayout/SimpleLayoutStyles.d.ts +49 -0
- package/dist/types/components/Status/StatusBox.d.ts +7 -0
- package/dist/types/components/Status/StatusType.d.ts +7 -0
- package/dist/types/components/Status/StatusView.d.ts +14 -0
- package/dist/types/components/Status/StatusViewStyles.d.ts +22 -0
- package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +10 -0
- package/dist/types/components/ThemeProvider/themeProviderStyles.d.ts +9 -0
- package/dist/types/components/TokenImage/TokenImage.d.ts +19 -0
- package/dist/types/components/TransactionRejected/TransactionRejected.d.ts +8 -0
- package/dist/types/components/TransactionRejected/TransactionRejectedStyles.d.ts +26 -0
- package/dist/types/components/Transactions/ChangeWallet.d.ts +4 -0
- package/dist/types/components/Transactions/ChangeWalletStyles.d.ts +31 -0
- package/dist/types/components/Transactions/ClaimWithdrawalInProgress.d.ts +6 -0
- package/dist/types/components/Transactions/EmptyStateNotConnected.d.ts +5 -0
- package/dist/types/components/Transactions/EmptyStateNotConnectedStyles.d.ts +10 -0
- package/dist/types/components/Transactions/NoTransactions.d.ts +8 -0
- package/dist/types/components/Transactions/NotEnoughEthToWithdraw.d.ts +6 -0
- package/dist/types/components/Transactions/NotEnoughEthToWithdrawStyles.d.ts +37 -0
- package/dist/types/components/Transactions/Shimmer.d.ts +1 -0
- package/dist/types/components/Transactions/SupportMessage.d.ts +7 -0
- package/dist/types/components/Transactions/SupportMessageStyles.d.ts +9 -0
- package/dist/types/components/Transactions/TransactionDetails.d.ts +7 -0
- package/dist/types/components/Transactions/TransactionItem.d.ts +18 -0
- package/dist/types/components/Transactions/TransactionItemWithdrawPending.d.ts +13 -0
- package/dist/types/components/Transactions/TransactionList.d.ts +13 -0
- package/dist/types/components/Transactions/TransactionListStyles.d.ts +16 -0
- package/dist/types/components/Transactions/Transactions.d.ts +6 -0
- package/dist/types/components/Transactions/TransactionsStyles.d.ts +26 -0
- package/dist/types/components/Transactions/noTransactionStyles.d.ts +26 -0
- package/dist/types/components/Transactions/transactionItemStyles.d.ts +30 -0
- package/dist/types/components/Transactions/transactionsType.d.ts +6 -0
- package/dist/types/components/Transak/TransakEvents.d.ts +42 -0
- package/dist/types/components/Transak/TransakIframe.d.ts +13 -0
- package/dist/types/components/Transak/TransakTypes.d.ts +9 -0
- package/dist/types/components/Transak/useTransakEvents.d.ts +24 -0
- package/dist/types/components/Transak/useTransakIframe.d.ts +41 -0
- package/dist/types/components/UnableToConnectDrawer/UnableToConnectDrawer.d.ts +8 -0
- package/dist/types/components/WalletDrawer/ConnectWalletDrawer.d.ts +23 -0
- package/dist/types/components/WalletDrawer/DeliverToWalletDrawer.d.ts +9 -0
- package/dist/types/components/WalletDrawer/PayWithWalletDrawer.d.ts +12 -0
- package/dist/types/components/WalletDrawer/WalletConnectItem.d.ts +7 -0
- package/dist/types/components/WalletDrawer/WalletDrawer.d.ts +25 -0
- package/dist/types/components/WalletDrawer/WalletDrawerEvents.d.ts +6 -0
- package/dist/types/components/WalletDrawer/WalletDrawerStyles.d.ts +7 -0
- package/dist/types/components/WalletDrawer/WalletItem.d.ts +15 -0
- package/dist/types/components/WithdrawalQueueDrawer/WithdrawalQueueDrawer.d.ts +14 -0
- package/dist/types/context/analytics-provider/CustomAnalyticsProvider.d.ts +7 -0
- package/dist/types/context/analytics-provider/SegmentAnalyticsProvider.d.ts +42 -0
- package/dist/types/context/analytics-provider/SetupAnalytics.d.ts +7 -0
- package/dist/types/context/connect-loader-context/ConnectLoader.test.d.ts +1 -0
- package/dist/types/context/connect-loader-context/ConnectLoaderContext.d.ts +48 -0
- package/dist/types/context/connect-loader-context/test-components/ConnectLoaderTestComponent.d.ts +7 -0
- package/dist/types/context/crypto-fiat-context/CryptoFiat.d.ts +4 -0
- package/dist/types/context/crypto-fiat-context/CryptoFiatContext.d.ts +45 -0
- package/dist/types/context/crypto-fiat-context/CryptoFiatContext.test.d.ts +1 -0
- package/dist/types/context/crypto-fiat-context/CryptoFiatProvider.d.ts +9 -0
- package/dist/types/context/crypto-fiat-context/test-components/CryptoFiatTestComponent.d.ts +5 -0
- package/dist/types/context/event-target-context/EventTarget.test.d.ts +1 -0
- package/dist/types/context/event-target-context/EventTargetContext.d.ts +24 -0
- package/dist/types/context/event-target-context/test-components/EventTargetTestComponent.d.ts +7 -0
- package/dist/types/context/handover-context/HandoverContext.d.ts +29 -0
- package/dist/types/context/handover-context/HandoverProvider.d.ts +11 -0
- package/dist/types/context/providers-context/ProvidersContext.d.ts +59 -0
- package/dist/types/context/view-context/AddTokensViewContextTypes.d.ts +29 -0
- package/dist/types/context/view-context/BridgeViewContextTypes.d.ts +66 -0
- package/dist/types/context/view-context/CheckoutWidgetViewContextTypes.d.ts +53 -0
- package/dist/types/context/view-context/ConnectViewContextTypes.d.ts +18 -0
- package/dist/types/context/view-context/OnRampViewContextTypes.d.ts +35 -0
- package/dist/types/context/view-context/PurchaseViewContextTypes.d.ts +20 -0
- package/dist/types/context/view-context/SaleViewContextTypes.d.ts +44 -0
- package/dist/types/context/view-context/SwapViewContextTypes.d.ts +64 -0
- package/dist/types/context/view-context/ViewContext.d.ts +75 -0
- package/dist/types/context/view-context/ViewContext.test.d.ts +1 -0
- package/dist/types/context/view-context/ViewType.d.ts +4 -0
- package/dist/types/context/view-context/WalletViewContextTypes.d.ts +26 -0
- package/dist/types/context/view-context/test-components/ViewContextTestComponent.d.ts +7 -0
- package/dist/types/factory.d.ts +9 -0
- package/dist/types/hooks/useMount.d.ts +9 -0
- package/dist/types/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/addressUtils.d.ts +1 -0
- package/dist/types/lib/addressUtils.test.d.ts +1 -0
- package/dist/types/lib/analytics/identifyUser.d.ts +8 -0
- package/dist/types/lib/analytics/identifyUser.test.d.ts +1 -0
- package/dist/types/lib/animation/listAnimation.d.ts +23 -0
- package/dist/types/lib/async/cancellablePromise.d.ts +19 -0
- package/dist/types/lib/async/cancellablePromise.test.d.ts +1 -0
- package/dist/types/lib/balance.d.ts +15 -0
- package/dist/types/lib/balance.test.d.ts +1 -0
- package/dist/types/lib/chains.d.ts +5 -0
- package/dist/types/lib/chains.test.d.ts +1 -0
- package/dist/types/lib/clients/checkoutApi.d.ts +39 -0
- package/dist/types/lib/clients/checkoutApi.test.d.ts +1 -0
- package/dist/types/lib/clients/checkoutApiType.d.ts +34 -0
- package/dist/types/lib/clients/index.d.ts +2 -0
- package/dist/types/lib/connectEIP6963Provider.d.ts +10 -0
- package/dist/types/lib/constants.d.ts +88 -0
- package/dist/types/lib/eip1193Events.d.ts +12 -0
- package/dist/types/lib/feeEstimation.d.ts +5 -0
- package/dist/types/lib/feeEstimation.test.d.ts +1 -0
- package/dist/types/lib/fetchTokenSymbols.d.ts +2 -0
- package/dist/types/lib/fetchTokenSymbols.test.d.ts +1 -0
- package/dist/types/lib/gasBalanceCheck.d.ts +2 -0
- package/dist/types/lib/gasBalanceCheck.test.d.ts +1 -0
- package/dist/types/lib/hooks/useAsyncMemo.d.ts +5 -0
- package/dist/types/lib/hooks/useBalance.d.ts +11 -0
- package/dist/types/lib/hooks/useDebounce.d.ts +2 -0
- package/dist/types/lib/hooks/useHandover.d.ts +12 -0
- package/dist/types/lib/hooks/useInjectedProviders.d.ts +16 -0
- package/dist/types/lib/hooks/useInterval.d.ts +1 -0
- package/dist/types/lib/hooks/useIsSmallScreen.d.ts +4 -0
- package/dist/types/lib/hooks/usePortalId.d.ts +1 -0
- package/dist/types/lib/hooks/useQuoteOrder.d.ts +12 -0
- package/dist/types/lib/hooks/useSignOrder.d.ts +12 -0
- package/dist/types/lib/hooks/useWalletConnect.d.ts +15 -0
- package/dist/types/lib/index.d.ts +6 -0
- package/dist/types/lib/logoUtils.d.ts +3 -0
- package/dist/types/lib/metrics.d.ts +3 -0
- package/dist/types/lib/networkStyles.d.ts +22 -0
- package/dist/types/lib/networkUtils.d.ts +3 -0
- package/dist/types/lib/orchestrationEvents.d.ts +14 -0
- package/dist/types/lib/primary-sales.d.ts +221 -0
- package/dist/types/lib/provider/index.d.ts +2 -0
- package/dist/types/lib/provider/providers.d.ts +3 -0
- package/dist/types/lib/provider/providers.test.d.ts +1 -0
- package/dist/types/lib/provider/utils.d.ts +21 -0
- package/dist/types/lib/provider/utils.test.d.ts +1 -0
- package/dist/types/lib/providerEvents.d.ts +2 -0
- package/dist/types/lib/retry.d.ts +7 -0
- package/dist/types/lib/retry.test.d.ts +1 -0
- package/dist/types/lib/squid/components/SquidFooter.d.ts +1 -0
- package/dist/types/lib/squid/components/SquidIcon.d.ts +5 -0
- package/dist/types/lib/squid/config.d.ts +2 -0
- package/dist/types/lib/squid/functions/convertToUsd.d.ts +3 -0
- package/dist/types/lib/squid/functions/fetchBalances.d.ts +5 -0
- package/dist/types/lib/squid/functions/fetchChains.d.ts +9 -0
- package/dist/types/lib/squid/functions/fetchTokens.d.ts +2 -0
- package/dist/types/lib/squid/functions/getRouteAndTokenBalances.d.ts +8 -0
- package/dist/types/lib/squid/functions/getRouteChains.d.ts +12 -0
- package/dist/types/lib/squid/functions/getTotalRouteFees.d.ts +12 -0
- package/dist/types/lib/squid/functions/isSquidNativeToken.d.ts +1 -0
- package/dist/types/lib/squid/functions/sortRoutesByFastestTime.d.ts +2 -0
- package/dist/types/lib/squid/hooks/useExecute.d.ts +13 -0
- package/dist/types/lib/squid/hooks/useRoutes.d.ts +9 -0
- package/dist/types/lib/squid/hooks/useSquid.d.ts +3 -0
- package/dist/types/lib/squid/hooks/useTokens.d.ts +3 -0
- package/dist/types/lib/squid/types.d.ts +40 -0
- package/dist/types/lib/storage.d.ts +4 -0
- package/dist/types/lib/theme.d.ts +3 -0
- package/dist/types/lib/theme.test.d.ts +1 -0
- package/dist/types/lib/utils.d.ts +28 -0
- package/dist/types/lib/utils.test.d.ts +1 -0
- package/dist/types/lib/validations/amountInputValidations.d.ts +1 -0
- package/dist/types/lib/validations/amountInputValidations.test.d.ts +1 -0
- package/dist/types/lib/validations/widgetValidators.d.ts +3 -0
- package/dist/types/lib/validations/widgetValidators.test.d.ts +1 -0
- package/dist/types/lib/walletConnect.d.ts +40 -0
- package/dist/types/lib/withDefaultWidgetConfig.d.ts +11 -0
- package/dist/types/lib/withDefaultWidgetConfig.test.d.ts +1 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/dist/types/views/error/ErrorView.d.ts +8 -0
- package/dist/types/views/error/ServiceUnavailableErrorView.d.ts +5 -0
- package/dist/types/views/error/ServiceUnavailableToRegionErrorView.d.ts +10 -0
- package/dist/types/views/error/serviceTypes.d.ts +5 -0
- package/dist/types/views/loading/LoadingView.d.ts +7 -0
- package/dist/types/views/top-up/TopUpMenuItem.d.ts +14 -0
- package/dist/types/views/top-up/TopUpView.d.ts +29 -0
- package/dist/types/widgets/BaseWidgetRoot.d.ts +39 -0
- package/dist/types/widgets/add-tokens/AddTokensRoot.d.ts +8 -0
- package/dist/types/widgets/add-tokens/AddTokensWidget.d.ts +6 -0
- package/dist/types/widgets/add-tokens/AddTokensWidgetEvents.d.ts +5 -0
- package/dist/types/widgets/add-tokens/components/AddressMissmatchDrawer.d.ts +5 -0
- package/dist/types/widgets/add-tokens/components/FiatOption.d.ts +11 -0
- package/dist/types/widgets/add-tokens/components/OnboardingDrawer.d.ts +5 -0
- package/dist/types/widgets/add-tokens/components/Options.d.ts +16 -0
- package/dist/types/widgets/add-tokens/components/OptionsDrawer.d.ts +17 -0
- package/dist/types/widgets/add-tokens/components/RouteFees.d.ts +9 -0
- package/dist/types/widgets/add-tokens/components/RouteOption.d.ts +14 -0
- package/dist/types/widgets/add-tokens/components/SelectedRouteOption.d.ts +14 -0
- package/dist/types/widgets/add-tokens/components/SelectedWallet.d.ts +20 -0
- package/dist/types/widgets/add-tokens/components/TokenDrawerMenu.d.ts +12 -0
- package/dist/types/widgets/add-tokens/context/AddTokensContext.d.ts +87 -0
- package/dist/types/widgets/add-tokens/functions/amountValidation.d.ts +10 -0
- package/dist/types/widgets/add-tokens/functions/checkSanctionedAddresses.d.ts +2 -0
- package/dist/types/widgets/add-tokens/functions/convertToNetworkChangeableProvider.d.ts +2 -0
- package/dist/types/widgets/add-tokens/functions/delay.d.ts +1 -0
- package/dist/types/widgets/add-tokens/functions/errorType.d.ts +1 -0
- package/dist/types/widgets/add-tokens/functions/getDurationFormatted.d.ts +1 -0
- package/dist/types/widgets/add-tokens/functions/getFormattedNumber.d.ts +9 -0
- package/dist/types/widgets/add-tokens/functions/onboardingState.d.ts +7 -0
- package/dist/types/widgets/add-tokens/hooks/useError.d.ts +5 -0
- package/dist/types/widgets/add-tokens/types.d.ts +28 -0
- package/dist/types/widgets/add-tokens/utils/animation.d.ts +1 -0
- package/dist/types/widgets/add-tokens/utils/config.d.ts +6 -0
- package/dist/types/widgets/add-tokens/views/AddTokens.d.ts +16 -0
- package/dist/types/widgets/add-tokens/views/Review.d.ts +9 -0
- package/dist/types/widgets/bridge/BridgeWidget.d.ts +8 -0
- package/dist/types/widgets/bridge/BridgeWidgetEvents.d.ts +5 -0
- package/dist/types/widgets/bridge/BridgeWidgetRoot.d.ts +8 -0
- package/dist/types/widgets/bridge/components/BridgeForm.d.ts +13 -0
- package/dist/types/widgets/bridge/components/BridgeFormStyles.d.ts +18 -0
- package/dist/types/widgets/bridge/components/BridgeReviewSummary.d.ts +1 -0
- package/dist/types/widgets/bridge/components/BridgeReviewSummaryStyles.d.ts +65 -0
- package/dist/types/widgets/bridge/components/NetworkItem.d.ts +10 -0
- package/dist/types/widgets/bridge/components/TokenSelectShimmer.d.ts +4 -0
- package/dist/types/widgets/bridge/components/WalletAndNetworkSelector.d.ts +1 -0
- package/dist/types/widgets/bridge/components/WalletAndNetworkSelectorStyles.d.ts +15 -0
- package/dist/types/widgets/bridge/components/WalletNetworkButton.d.ts +16 -0
- package/dist/types/widgets/bridge/components/WalletNetworkButtonStyles.d.ts +51 -0
- package/dist/types/widgets/bridge/context/BridgeContext.d.ts +78 -0
- package/dist/types/widgets/bridge/context/BridgeContext.test.d.ts +1 -0
- package/dist/types/widgets/bridge/functions/BridgeFees.d.ts +4 -0
- package/dist/types/widgets/bridge/functions/BridgeFormValidator.d.ts +3 -0
- package/dist/types/widgets/bridge/functions/TransferErc20.d.ts +2 -0
- package/dist/types/widgets/bridge/test-components/BridgeWidgetTestComponent.d.ts +8 -0
- package/dist/types/widgets/bridge/views/ApproveTransaction.d.ts +12 -0
- package/dist/types/widgets/bridge/views/Bridge.d.ts +8 -0
- package/dist/types/widgets/bridge/views/BridgeReview.d.ts +1 -0
- package/dist/types/widgets/bridge/views/ClaimWithdrawal.d.ts +5 -0
- package/dist/types/widgets/bridge/views/MoveInProgress.d.ts +5 -0
- package/dist/types/widgets/bridge/views/WalletNetworkSelectionView.d.ts +5 -0
- package/dist/types/widgets/connect/ConnectWidget.d.ts +16 -0
- package/dist/types/widgets/connect/ConnectWidgetRoot.d.ts +8 -0
- package/dist/types/widgets/connect/components/BrowserWalletItem.d.ts +6 -0
- package/dist/types/widgets/connect/components/NonPassportWarningDrawer.d.ts +5 -0
- package/dist/types/widgets/connect/components/WalletConnectItem.d.ts +5 -0
- package/dist/types/widgets/connect/components/WalletItem.d.ts +10 -0
- package/dist/types/widgets/connect/components/WalletList.d.ts +9 -0
- package/dist/types/widgets/connect/components/WalletListStyles.d.ts +8 -0
- package/dist/types/widgets/connect/connectWidgetEvents.d.ts +6 -0
- package/dist/types/widgets/connect/connectWidgetStyles.d.ts +17 -0
- package/dist/types/widgets/connect/context/ConnectContext.d.ts +50 -0
- package/dist/types/widgets/connect/context/ConnectContext.test.d.ts +1 -0
- package/dist/types/widgets/connect/views/ConnectWallet.d.ts +11 -0
- package/dist/types/widgets/connect/views/ReadyToConnect.d.ts +6 -0
- package/dist/types/widgets/connect/views/SwitchNetworkEth.d.ts +1 -0
- package/dist/types/widgets/connect/views/SwitchNetworkZkEVM.d.ts +1 -0
- package/dist/types/widgets/immutable-commerce/CommerceWidget.d.ts +10 -0
- package/dist/types/widgets/immutable-commerce/CommerceWidgetEvents.d.ts +6 -0
- package/dist/types/widgets/immutable-commerce/CommerceWidgetRoot.d.ts +66 -0
- package/dist/types/widgets/immutable-commerce/context/CommerceContext.d.ts +37 -0
- package/dist/types/widgets/immutable-commerce/functions/deduplicateSaleItemsArray.d.ts +2 -0
- package/dist/types/widgets/immutable-commerce/functions/getCommerceWidgetEvent.d.ts +5 -0
- package/dist/types/widgets/immutable-commerce/functions/getConnectLoaderParams.d.ts +7 -0
- package/dist/types/widgets/immutable-commerce/functions/getFlowRequiresContext.d.ts +8 -0
- package/dist/types/widgets/immutable-commerce/functions/getViewFromOrchestrationEventType.d.ts +5 -0
- package/dist/types/widgets/immutable-commerce/functions/isOrchestrationEvent.d.ts +7 -0
- package/dist/types/widgets/immutable-commerce/functions/isValidCommerceFlow.d.ts +7 -0
- package/dist/types/widgets/immutable-commerce/hooks/useMount.d.ts +5 -0
- package/dist/types/widgets/immutable-commerce/hooks/useWidgetEvents.d.ts +6 -0
- package/dist/types/widgets/on-ramp/OnRampWidget.d.ts +6 -0
- package/dist/types/widgets/on-ramp/OnRampWidgetEvents.d.ts +3 -0
- package/dist/types/widgets/on-ramp/OnRampWidgetRoot.d.ts +9 -0
- package/dist/types/widgets/on-ramp/TransakEvents.d.ts +19 -0
- package/dist/types/widgets/on-ramp/views/OnRampMain.d.ts +10 -0
- package/dist/types/widgets/on-ramp/views/OrderInProgress.d.ts +1 -0
- package/dist/types/widgets/on-ramp/views/onRampStyles.d.ts +14 -0
- package/dist/types/widgets/purchase/PurchaseWidget.d.ts +6 -0
- package/dist/types/widgets/purchase/PurchaseWidgetEvents.d.ts +5 -0
- package/dist/types/widgets/purchase/PurchaseWidgetRoot.d.ts +8 -0
- package/dist/types/widgets/purchase/context/PurchaseContext.d.ts +24 -0
- package/dist/types/widgets/purchase/types.d.ts +0 -0
- package/dist/types/widgets/purchase/views/Purchase.d.ts +7 -0
- package/dist/types/widgets/purchase/views/Review.d.ts +1 -0
- package/dist/types/widgets/sale/SaleWidget.d.ts +13 -0
- package/dist/types/widgets/sale/SaleWidgetEvents.d.ts +8 -0
- package/dist/types/widgets/sale/SaleWidgetRoot.d.ts +10 -0
- package/dist/types/widgets/sale/components/CoinsDrawer.d.ts +19 -0
- package/dist/types/widgets/sale/components/CoinsDrawerItem.d.ts +17 -0
- package/dist/types/widgets/sale/components/CreditCardWarningDrawer.d.ts +1 -0
- package/dist/types/widgets/sale/components/FundingRouteExecute/FundingRouteExecute.d.ts +7 -0
- package/dist/types/widgets/sale/components/OrderFees.d.ts +15 -0
- package/dist/types/widgets/sale/components/OrderItem.d.ts +14 -0
- package/dist/types/widgets/sale/components/OrderItems.d.ts +12 -0
- package/dist/types/widgets/sale/components/OrderReview.d.ts +15 -0
- package/dist/types/widgets/sale/components/PaymentOption.d.ts +12 -0
- package/dist/types/widgets/sale/components/PaymentOptions.d.ts +11 -0
- package/dist/types/widgets/sale/components/SelectCoinDropdown.d.ts +13 -0
- package/dist/types/widgets/sale/components/WithCard.d.ts +9 -0
- package/dist/types/widgets/sale/context/SaleContextProvider.d.ts +57 -0
- package/dist/types/widgets/sale/functions/fetchFundingBalances.d.ts +20 -0
- package/dist/types/widgets/sale/functions/fetchFundingBalancesUtils.d.ts +12 -0
- package/dist/types/widgets/sale/functions/fetchFundingBalancesUtils.test.d.ts +4 -0
- package/dist/types/widgets/sale/functions/fundingBalanceFees.d.ts +7 -0
- package/dist/types/widgets/sale/functions/fundingBalanceFees.test.d.ts +2 -0
- package/dist/types/widgets/sale/functions/getTopUpViewData.d.ts +16 -0
- package/dist/types/widgets/sale/functions/getTopUpViewData.test.d.ts +1 -0
- package/dist/types/widgets/sale/functions/signUtils.d.ts +3 -0
- package/dist/types/widgets/sale/functions/transformToOrderQuote.d.ts +28 -0
- package/dist/types/widgets/sale/functions/transformToOrderQuote.test.d.ts +1 -0
- package/dist/types/widgets/sale/functions/utils.d.ts +5 -0
- package/dist/types/widgets/sale/functions/utils.test.d.ts +1 -0
- package/dist/types/widgets/sale/hooks/useFundingBalances.d.ts +10 -0
- package/dist/types/widgets/sale/hooks/useHandoverSteps.d.ts +26 -0
- package/dist/types/widgets/sale/hooks/useQuoteOrder.d.ts +21 -0
- package/dist/types/widgets/sale/hooks/useSaleEvents.d.ts +36 -0
- package/dist/types/widgets/sale/hooks/useSignOrder.d.ts +12 -0
- package/dist/types/widgets/sale/types.d.ts +119 -0
- package/dist/types/widgets/sale/utils/analytics.d.ts +3 -0
- package/dist/types/widgets/sale/utils/config.d.ts +4 -0
- package/dist/types/widgets/sale/utils/pricing.d.ts +2 -0
- package/dist/types/widgets/sale/utils/pricing.test.d.ts +1 -0
- package/dist/types/widgets/sale/views/LoadingHandover.d.ts +7 -0
- package/dist/types/widgets/sale/views/OrderSummary.d.ts +6 -0
- package/dist/types/widgets/sale/views/PayWithCard.d.ts +1 -0
- package/dist/types/widgets/sale/views/PayWithCoins.d.ts +1 -0
- package/dist/types/widgets/sale/views/PaymentMethods.d.ts +1 -0
- package/dist/types/widgets/sale/views/SaleErrorView.d.ts +10 -0
- package/dist/types/widgets/swap/GeoblockLoader.d.ts +8 -0
- package/dist/types/widgets/swap/SwapStyles.d.ts +26 -0
- package/dist/types/widgets/swap/SwapWidget.d.ts +6 -0
- package/dist/types/widgets/swap/SwapWidgetEvents.d.ts +4 -0
- package/dist/types/widgets/swap/SwapWidgetRoot.d.ts +10 -0
- package/dist/types/widgets/swap/components/SwapButton.d.ts +6 -0
- package/dist/types/widgets/swap/components/SwapButtonStyles.d.ts +9 -0
- package/dist/types/widgets/swap/components/SwapForm.d.ts +8 -0
- package/dist/types/widgets/swap/components/TokenSelect.d.ts +10 -0
- package/dist/types/widgets/swap/components/UnableToSwap.d.ts +6 -0
- package/dist/types/widgets/swap/components/UnableToSwapStyles.d.ts +40 -0
- package/dist/types/widgets/swap/components/swapFormTypes.d.ts +8 -0
- package/dist/types/widgets/swap/context/SwapContext.d.ts +73 -0
- package/dist/types/widgets/swap/context/SwapContext.test.d.ts +6 -0
- package/dist/types/widgets/swap/functions/FetchQuote.d.ts +6 -0
- package/dist/types/widgets/swap/functions/FetchQuote.test.d.ts +1 -0
- package/dist/types/widgets/swap/functions/SwapValidator.d.ts +5 -0
- package/dist/types/widgets/swap/functions/SwapValidator.test.d.ts +1 -0
- package/dist/types/widgets/swap/functions/processGasFree.d.ts +8 -0
- package/dist/types/widgets/swap/functions/processGasFree.test.d.ts +1 -0
- package/dist/types/widgets/swap/functions/processQuoteToken.d.ts +8 -0
- package/dist/types/widgets/swap/functions/processSecondaryFees.d.ts +10 -0
- package/dist/types/widgets/swap/functions/processSecondaryFees.test.d.ts +1 -0
- package/dist/types/widgets/swap/functions/swapConversionRate.d.ts +4 -0
- package/dist/types/widgets/swap/functions/swapConversionRate.test.d.ts +1 -0
- package/dist/types/widgets/swap/functions/swapFees.d.ts +18 -0
- package/dist/types/widgets/swap/functions/swapFees.test.d.ts +1 -0
- package/dist/types/widgets/swap/helpers.d.ts +10 -0
- package/dist/types/widgets/swap/test-components/SwapWidgetTestComponent.d.ts +8 -0
- package/dist/types/widgets/swap/views/ApproveERC20Onboarding.d.ts +5 -0
- package/dist/types/widgets/swap/views/SwapCoins.d.ts +11 -0
- package/dist/types/widgets/swap/views/SwapInProgress.d.ts +8 -0
- package/dist/types/widgets/wallet/WalletWidget.d.ts +8 -0
- package/dist/types/widgets/wallet/WalletWidgetEvents.d.ts +4 -0
- package/dist/types/widgets/wallet/WalletWidgetRoot.d.ts +8 -0
- package/dist/types/widgets/wallet/components/BalanceItem/BalanceItem.d.ts +8 -0
- package/dist/types/widgets/wallet/components/BalanceItem/BalanceItemStyles.d.ts +3 -0
- package/dist/types/widgets/wallet/components/NetworkMenu/NetworkMenu.d.ts +1 -0
- package/dist/types/widgets/wallet/components/NetworkMenu/NetworkMenuStyles.d.ts +22 -0
- package/dist/types/widgets/wallet/components/TokenBalanceList/TokenBalanceList.d.ts +9 -0
- package/dist/types/widgets/wallet/components/TokenBalanceList/TokenBalanceListStyles.d.ts +14 -0
- package/dist/types/widgets/wallet/components/TotalTokenBalance/TotalTokenBalance.d.ts +6 -0
- package/dist/types/widgets/wallet/components/TotalTokenBalance/TotalTokenBalanceStyles.d.ts +20 -0
- package/dist/types/widgets/wallet/components/TransferAssetsL1Warning.d.ts +6 -0
- package/dist/types/widgets/wallet/components/WalletAddress/WalletAddress.d.ts +6 -0
- package/dist/types/widgets/wallet/context/WalletContext.d.ts +54 -0
- package/dist/types/widgets/wallet/context/WalletContext.test.d.ts +1 -0
- package/dist/types/widgets/wallet/functions/tokenBalances.d.ts +12 -0
- package/dist/types/widgets/wallet/functions/tokenBalances.test.d.ts +1 -0
- package/dist/types/widgets/wallet/test-components/WalletWidgetTestComponent.d.ts +8 -0
- package/dist/types/widgets/wallet/tokenDataStub.d.ts +6 -0
- package/dist/types/widgets/wallet/views/CoinInfo.d.ts +1 -0
- package/dist/types/widgets/wallet/views/Settings.d.ts +4 -0
- package/dist/types/widgets/wallet/views/SettingsStyles.d.ts +9 -0
- package/dist/types/widgets/wallet/views/WalletBalances.d.ts +8 -0
- package/dist/types/widgets/wallet/views/WalletBalancesStyles.d.ts +23 -0
- package/package.json +116 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const FIXED_HANDOVER_DURATION = 2000;
|
|
2
|
+
export declare const APPROVE_TXN_ANIMATION = "/access_coins.riv";
|
|
3
|
+
export declare const EXECUTE_TXN_ANIMATION = "/swapping_coins.riv";
|
|
4
|
+
export declare const BLOCK_TXN_ANIMATION = "/blocked.riv";
|
|
5
|
+
export declare const ERROR_TXN_ANIMATION = "/error.riv";
|
|
6
|
+
export declare const TOKEN_PRIORITY_ORDER: string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Checkout } from '@imtbl/checkout-sdk';
|
|
2
|
+
import type { StrongCheckoutWidgetsConfig } from '../../../lib/withDefaultWidgetConfig';
|
|
3
|
+
interface AddTokensProps {
|
|
4
|
+
checkout: Checkout;
|
|
5
|
+
showBackButton?: boolean;
|
|
6
|
+
showOnrampOption?: boolean;
|
|
7
|
+
showSwapOption?: boolean;
|
|
8
|
+
showBridgeOption?: boolean;
|
|
9
|
+
toTokenAddress?: string;
|
|
10
|
+
toAmount?: string;
|
|
11
|
+
onCloseButtonClick?: () => void;
|
|
12
|
+
onBackButtonClick?: () => void;
|
|
13
|
+
config: StrongCheckoutWidgetsConfig;
|
|
14
|
+
}
|
|
15
|
+
export declare function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOption, showSwapOption, showBridgeOption, onCloseButtonClick, showBackButton, onBackButtonClick, }: AddTokensProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AddTokensReviewData } from '../../../context/view-context/AddTokensViewContextTypes';
|
|
2
|
+
interface ReviewProps {
|
|
3
|
+
data: AddTokensReviewData;
|
|
4
|
+
showBackButton: boolean;
|
|
5
|
+
onBackButtonClick?: () => void;
|
|
6
|
+
onCloseButtonClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function Review({ data, showBackButton, onBackButtonClick, onCloseButtonClick, }: ReviewProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BridgeWidgetParams, Checkout, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { StrongCheckoutWidgetsConfig } from '../../lib/withDefaultWidgetConfig';
|
|
3
|
+
export type BridgeWidgetInputs = BridgeWidgetParams & {
|
|
4
|
+
config: StrongCheckoutWidgetsConfig;
|
|
5
|
+
checkout: Checkout;
|
|
6
|
+
browserProvider?: WrappedBrowserProvider;
|
|
7
|
+
};
|
|
8
|
+
export default function BridgeWidget({ checkout, browserProvider, config, amount, tokenAddress, showBackButton, }: BridgeWidgetInputs): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const sendBridgeTransactionSentEvent: (eventTarget: Window | EventTarget, transactionHash: string) => void;
|
|
2
|
+
export declare const sendBridgeFailedEvent: (eventTarget: Window | EventTarget, reason: string) => void;
|
|
3
|
+
export declare function sendBridgeWidgetCloseEvent(eventTarget: Window | EventTarget): void;
|
|
4
|
+
export declare const sendBridgeClaimWithdrawalSuccessEvent: (eventTarget: Window | EventTarget, transactionHash: string) => void;
|
|
5
|
+
export declare const sendBridgeClaimWithdrawalFailedEvent: (eventTarget: Window | EventTarget, transactionHash: string, reason: string) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BridgeWidgetParams, IMTBLWidgetEvents, WidgetProperties, WidgetType } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Base } from '../BaseWidgetRoot';
|
|
3
|
+
export declare class Bridge extends Base<WidgetType.BRIDGE> {
|
|
4
|
+
protected eventTopic: IMTBLWidgetEvents;
|
|
5
|
+
protected getValidatedProperties({ config }: WidgetProperties<WidgetType.BRIDGE>): WidgetProperties<WidgetType.BRIDGE>;
|
|
6
|
+
protected getValidatedParameters(params: BridgeWidgetParams): BridgeWidgetParams;
|
|
7
|
+
protected render(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetTheme } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Environment } from '@imtbl/config';
|
|
3
|
+
interface BridgeFormProps {
|
|
4
|
+
testId?: string;
|
|
5
|
+
defaultAmount?: string;
|
|
6
|
+
defaultTokenAddress?: string;
|
|
7
|
+
isTokenBalancesLoading?: boolean;
|
|
8
|
+
defaultTokenImage: string;
|
|
9
|
+
environment?: Environment;
|
|
10
|
+
theme?: WidgetTheme;
|
|
11
|
+
}
|
|
12
|
+
export declare function BridgeForm(props: BridgeFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const bridgeFormWrapperStyles: {
|
|
2
|
+
height: string;
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
justifyContent: string;
|
|
6
|
+
paddingTop: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const formInputsContainerStyles: {
|
|
9
|
+
paddingTop: string;
|
|
10
|
+
display: string;
|
|
11
|
+
gap: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const bridgeFormButtonContainerStyles: {
|
|
14
|
+
display: string;
|
|
15
|
+
flexDirection: string;
|
|
16
|
+
paddingY: string;
|
|
17
|
+
paddingX: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BridgeReviewSummary(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const topMenuItemStyles: {
|
|
2
|
+
borderBottomLeftRadius: string;
|
|
3
|
+
borderBottomRightRadius: string;
|
|
4
|
+
marginBottom: string;
|
|
5
|
+
position: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const bottomMenuItemStyles: {
|
|
8
|
+
borderTopLeftRadius: string;
|
|
9
|
+
borderTopRightRadius: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
position: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const wcWalletLogoStyles: {
|
|
14
|
+
width: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const wcStickerLogoStyles: {
|
|
17
|
+
position: string;
|
|
18
|
+
top: string;
|
|
19
|
+
left: string;
|
|
20
|
+
width: string;
|
|
21
|
+
padding: string;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const bridgeReviewWrapperStyles: {
|
|
26
|
+
height: string;
|
|
27
|
+
display: string;
|
|
28
|
+
flexDirection: string;
|
|
29
|
+
paddingX: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const bridgeReviewHeadingStyles: {
|
|
32
|
+
paddingTop: string;
|
|
33
|
+
paddingBottom: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const arrowIconWrapperStyles: {
|
|
36
|
+
display: string;
|
|
37
|
+
flexDirection: string;
|
|
38
|
+
alignItems: string;
|
|
39
|
+
paddingY: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const arrowIconStyles: {
|
|
42
|
+
width: string;
|
|
43
|
+
transform: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const gasAmountHeadingStyles: {
|
|
46
|
+
marginBottom: string;
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const bridgeButtonIconLoadingStyle: {
|
|
50
|
+
width: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const rawImageStyle: {
|
|
53
|
+
backgroundColor: string;
|
|
54
|
+
position: string;
|
|
55
|
+
width: string;
|
|
56
|
+
height: string;
|
|
57
|
+
padding: string;
|
|
58
|
+
left: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const networkIconStyles: {
|
|
61
|
+
position: string;
|
|
62
|
+
right: string;
|
|
63
|
+
w: string;
|
|
64
|
+
h: string;
|
|
65
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChainId, ChainName } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Environment } from '@imtbl/config';
|
|
3
|
+
export interface BridgeNetworkProps {
|
|
4
|
+
testId: string;
|
|
5
|
+
chainId: ChainId;
|
|
6
|
+
chainName: ChainName;
|
|
7
|
+
onNetworkClick: (chainId: ChainId) => Promise<void>;
|
|
8
|
+
environment: Environment;
|
|
9
|
+
}
|
|
10
|
+
export declare function NetworkItem({ testId, chainId, chainName, onNetworkClick, environment, }: BridgeNetworkProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WalletAndNetworkSelector(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const brigdeWalletWrapperStyles: {
|
|
2
|
+
height: string;
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
paddingX: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const bridgeHeadingStyles: {
|
|
8
|
+
paddingTop: string;
|
|
9
|
+
paddingBottom: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const submitButtonWrapperStyles: {
|
|
12
|
+
display: string;
|
|
13
|
+
flexDirection: string;
|
|
14
|
+
paddingY: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChainId, EIP6963ProviderDetail, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Environment } from '@imtbl/config';
|
|
3
|
+
interface WalletNetworkButtonProps {
|
|
4
|
+
testId: string;
|
|
5
|
+
walletProvider: WrappedBrowserProvider;
|
|
6
|
+
walletProviderDetail: EIP6963ProviderDetail | undefined;
|
|
7
|
+
walletAddress: string;
|
|
8
|
+
walletName: string;
|
|
9
|
+
chainId: ChainId;
|
|
10
|
+
disableNetworkButton?: boolean;
|
|
11
|
+
onWalletClick: (e: any) => void;
|
|
12
|
+
onNetworkClick: (e: any) => void;
|
|
13
|
+
environment: Environment;
|
|
14
|
+
}
|
|
15
|
+
export declare function WalletNetworkButton({ testId, walletProvider, walletProviderDetail, walletAddress, walletName, chainId, disableNetworkButton, onWalletClick, onNetworkClick, environment, }: WalletNetworkButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { WalletProviderName } from '@imtbl/checkout-sdk';
|
|
2
|
+
export declare const logoColour: {
|
|
3
|
+
15003: string;
|
|
4
|
+
13473: string;
|
|
5
|
+
13371: string;
|
|
6
|
+
1: string;
|
|
7
|
+
11155111: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const walletButtonOuterStyles: {
|
|
10
|
+
position: string;
|
|
11
|
+
width: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
paddingX: string;
|
|
15
|
+
paddingY: string;
|
|
16
|
+
display: string;
|
|
17
|
+
flexDirection: string;
|
|
18
|
+
gap: string;
|
|
19
|
+
alignItems: string;
|
|
20
|
+
'&:hover': {
|
|
21
|
+
cursor: string;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const wcWalletLogoStyles: {
|
|
26
|
+
width: string;
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const wcStickerLogoStyles: {
|
|
31
|
+
position: string;
|
|
32
|
+
top: string;
|
|
33
|
+
left: string;
|
|
34
|
+
width: string;
|
|
35
|
+
padding: string;
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
borderRadius: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const walletLogoStyles: (walletName: WalletProviderName | string) => {
|
|
40
|
+
width: string;
|
|
41
|
+
padding: string;
|
|
42
|
+
backgroundColor: string;
|
|
43
|
+
borderRadius: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const walletCaptionStyles: {
|
|
46
|
+
color: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const networkButtonStyles: {
|
|
49
|
+
paddingY: string;
|
|
50
|
+
borderRadius: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { TokenBridge } from '@imtbl/bridge-sdk';
|
|
2
|
+
import { WalletProviderName, GetBalanceResult, TokenInfo, Checkout, ChainId, EIP6963ProviderInfo, AssessmentResult, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
3
|
+
export type WalletAndNetworkDetails = {
|
|
4
|
+
browserProvider: WrappedBrowserProvider;
|
|
5
|
+
walletProviderInfo: EIP6963ProviderInfo | undefined;
|
|
6
|
+
walletAddress: string;
|
|
7
|
+
network: ChainId;
|
|
8
|
+
};
|
|
9
|
+
export interface BridgeState {
|
|
10
|
+
checkout: Checkout;
|
|
11
|
+
browserProvider: WrappedBrowserProvider | null;
|
|
12
|
+
walletProviderName: WalletProviderName | null;
|
|
13
|
+
from: WalletAndNetworkDetails | null;
|
|
14
|
+
to: WalletAndNetworkDetails | null;
|
|
15
|
+
tokenBridge: TokenBridge | null;
|
|
16
|
+
tokenBalances: GetBalanceResult[];
|
|
17
|
+
allowedTokens: TokenInfo[];
|
|
18
|
+
token: TokenInfo | null;
|
|
19
|
+
amount: string;
|
|
20
|
+
riskAssessment: AssessmentResult | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare const initialBridgeState: Omit<BridgeState, 'checkout'>;
|
|
23
|
+
export interface BridgeContextState {
|
|
24
|
+
bridgeState: BridgeState;
|
|
25
|
+
bridgeDispatch: React.Dispatch<BridgeAction>;
|
|
26
|
+
}
|
|
27
|
+
export interface BridgeAction {
|
|
28
|
+
payload: ActionPayload;
|
|
29
|
+
}
|
|
30
|
+
type ActionPayload = SetWalletProviderNamePayload | SetProviderPayload | SetTokenBridgePayload | SetTokenBalancesPayload | SetAllowedTokensPayload | SetTokenAndAmountPayload | SetWalletsAndNetworksPayload | SetRiskAssessmentPayload;
|
|
31
|
+
export declare enum BridgeActions {
|
|
32
|
+
SET_WALLETS_AND_NETWORKS = "SET_WALLETS_AND_NETWORKS",
|
|
33
|
+
SET_WALLET_PROVIDER_NAME = "SET_WALLET_PROVIDER_NAME",
|
|
34
|
+
SET_PROVIDER = "SET_PROVIDER",
|
|
35
|
+
SET_TOKEN_BRIDGE = "SET_TOKEN_BRIDGE",
|
|
36
|
+
SET_TOKEN_BALANCES = "SET_TOKEN_BALANCES",
|
|
37
|
+
SET_ALLOWED_TOKENS = "SET_ALLOWED_TOKENS",
|
|
38
|
+
SET_TOKEN_AND_AMOUNT = "SET_TOKEN_AND_AMOUNT",
|
|
39
|
+
SET_RISK_ASSESSMENT = "SET_RISK_ASSESSMENT"
|
|
40
|
+
}
|
|
41
|
+
export interface SetWalletProviderNamePayload {
|
|
42
|
+
type: BridgeActions.SET_WALLET_PROVIDER_NAME;
|
|
43
|
+
walletProviderName: WalletProviderName;
|
|
44
|
+
}
|
|
45
|
+
export interface SetProviderPayload {
|
|
46
|
+
type: BridgeActions.SET_PROVIDER;
|
|
47
|
+
browserProvider: WrappedBrowserProvider | null;
|
|
48
|
+
}
|
|
49
|
+
export interface SetTokenBridgePayload {
|
|
50
|
+
type: BridgeActions.SET_TOKEN_BRIDGE;
|
|
51
|
+
tokenBridge: TokenBridge;
|
|
52
|
+
}
|
|
53
|
+
export interface SetWalletsAndNetworksPayload {
|
|
54
|
+
type: BridgeActions.SET_WALLETS_AND_NETWORKS;
|
|
55
|
+
from: WalletAndNetworkDetails | null;
|
|
56
|
+
to: WalletAndNetworkDetails | null;
|
|
57
|
+
}
|
|
58
|
+
export interface SetTokenBalancesPayload {
|
|
59
|
+
type: BridgeActions.SET_TOKEN_BALANCES;
|
|
60
|
+
tokenBalances: GetBalanceResult[];
|
|
61
|
+
}
|
|
62
|
+
export interface SetAllowedTokensPayload {
|
|
63
|
+
type: BridgeActions.SET_ALLOWED_TOKENS;
|
|
64
|
+
allowedTokens: TokenInfo[];
|
|
65
|
+
}
|
|
66
|
+
export interface SetTokenAndAmountPayload {
|
|
67
|
+
type: BridgeActions.SET_TOKEN_AND_AMOUNT;
|
|
68
|
+
token: TokenInfo | null;
|
|
69
|
+
amount: string;
|
|
70
|
+
}
|
|
71
|
+
export interface SetRiskAssessmentPayload {
|
|
72
|
+
type: BridgeActions.SET_RISK_ASSESSMENT;
|
|
73
|
+
riskAssessment: AssessmentResult;
|
|
74
|
+
}
|
|
75
|
+
export declare const BridgeContext: import("react").Context<BridgeContextState>;
|
|
76
|
+
export type Reducer<S, A> = (prevState: S, action: A) => S;
|
|
77
|
+
export declare const bridgeReducer: Reducer<BridgeState, BridgeAction>;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GasEstimateBridgeToL2Result } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { FormattedFee } from '../../swap/functions/swapFees';
|
|
3
|
+
import { CryptoFiatState } from '../../../context/crypto-fiat-context/CryptoFiatContext';
|
|
4
|
+
export declare const formatBridgeFees: (estimates: GasEstimateBridgeToL2Result | undefined, isDeposit: boolean, cryptoFiatState: CryptoFiatState, t: any) => FormattedFee[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BridgeState } from '../context/BridgeContext';
|
|
3
|
+
export interface TestProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
initialStateOverride?: BridgeState;
|
|
6
|
+
cryptoConversionsOverride?: Map<string, number>;
|
|
7
|
+
}
|
|
8
|
+
export declare function BridgeWidgetTestComponent({ children, initialStateOverride, cryptoConversionsOverride }: TestProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApproveBridgeResponse, BridgeTxResponse } from '@imtbl/bridge-sdk';
|
|
2
|
+
export interface BridgeTransaction {
|
|
3
|
+
approveTransaction: ApproveBridgeResponse;
|
|
4
|
+
transaction: BridgeTxResponse;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @param bridgeTransaction if provided the transaction is a bridge, if not it's a transfer
|
|
8
|
+
*/
|
|
9
|
+
export interface ApproveTransactionProps {
|
|
10
|
+
bridgeTransaction: BridgeTransaction | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function ApproveTransaction({ bridgeTransaction }: ApproveTransactionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetTheme } from '@imtbl/checkout-sdk';
|
|
2
|
+
export interface BridgeProps {
|
|
3
|
+
amount?: string;
|
|
4
|
+
tokenAddress?: string;
|
|
5
|
+
defaultTokenImage: string;
|
|
6
|
+
theme: WidgetTheme;
|
|
7
|
+
}
|
|
8
|
+
export declare function Bridge({ amount, tokenAddress, defaultTokenImage, theme, }: BridgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BridgeReview(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChainId, Checkout, ConnectWidgetParams, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { ConnectWidgetViews } from '../../context/view-context/ConnectViewContextTypes';
|
|
3
|
+
import { StrongCheckoutWidgetsConfig } from '../../lib/withDefaultWidgetConfig';
|
|
4
|
+
export type ConnectWidgetInputs = ConnectWidgetParams & {
|
|
5
|
+
config: StrongCheckoutWidgetsConfig;
|
|
6
|
+
deepLink?: ConnectWidgetViews;
|
|
7
|
+
sendSuccessEventOverride?: () => void;
|
|
8
|
+
sendCloseEventOverride?: () => void;
|
|
9
|
+
allowedChains?: ChainId[];
|
|
10
|
+
checkout: Checkout;
|
|
11
|
+
browserProvider?: WrappedBrowserProvider;
|
|
12
|
+
isCheckNetworkEnabled?: boolean;
|
|
13
|
+
sendGoBackEventOverride?: () => void;
|
|
14
|
+
showBackButton?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export default function ConnectWidget({ config, sendSuccessEventOverride, sendCloseEventOverride, browserProvider, checkout, targetWalletRdns, targetChainId, allowedChains, blocklistWalletRdns, deepLink, isCheckNetworkEnabled, sendGoBackEventOverride, showBackButton, }: ConnectWidgetInputs): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConnectWidgetParams, IMTBLWidgetEvents, WidgetProperties, WidgetType } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Base } from '../BaseWidgetRoot';
|
|
3
|
+
export declare class Connect extends Base<WidgetType.CONNECT> {
|
|
4
|
+
protected eventTopic: IMTBLWidgetEvents;
|
|
5
|
+
protected getValidatedProperties({ config }: WidgetProperties<WidgetType.CONNECT>): WidgetProperties<WidgetType.CONNECT>;
|
|
6
|
+
protected getValidatedParameters(params: ConnectWidgetParams): ConnectWidgetParams;
|
|
7
|
+
protected render(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EIP6963ProviderDetail } from '@imtbl/checkout-sdk';
|
|
2
|
+
export type BrowserWalletItemProps = {
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
providers?: EIP6963ProviderDetail[];
|
|
5
|
+
};
|
|
6
|
+
export declare function BrowserWalletItem({ onClick, providers, }: BrowserWalletItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EIP6963ProviderInfo } from '@imtbl/checkout-sdk';
|
|
3
|
+
export interface WalletProps<RC extends ReactElement | undefined = undefined> {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
recommended?: boolean;
|
|
6
|
+
onWalletItemClick: () => void;
|
|
7
|
+
providerInfo: EIP6963ProviderInfo;
|
|
8
|
+
rc?: RC;
|
|
9
|
+
}
|
|
10
|
+
export declare function WalletItem<RC extends ReactElement | undefined = undefined>({ rc, loading, recommended, providerInfo, onWalletItemClick, }: WalletProps<RC>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@imtbl/checkout-sdk';
|
|
2
|
+
export interface WalletListProps {
|
|
3
|
+
targetWalletRdns?: string;
|
|
4
|
+
targetChainId: ChainId;
|
|
5
|
+
allowedChains: ChainId[];
|
|
6
|
+
blocklistWalletRdns?: string[];
|
|
7
|
+
isCheckNetworkEnabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function WalletList(props: WalletListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WalletProviderName, WalletConnectManager, EIP6963ProviderInfo, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
2
|
+
import EthereumProvider from '@walletconnect/ethereum-provider';
|
|
3
|
+
export declare function sendConnectSuccessEvent(eventTarget: Window | EventTarget, provider: WrappedBrowserProvider, walletProviderName?: WalletProviderName, walletProviderInfo?: EIP6963ProviderInfo): void;
|
|
4
|
+
export declare function sendCloseWidgetEvent(eventTarget: Window | EventTarget): void;
|
|
5
|
+
export declare function sendConnectFailedEvent(eventTarget: Window | EventTarget, reason: string): void;
|
|
6
|
+
export declare function sendWalletConnectProviderUpdatedEvent(eventTarget: Window | EventTarget, ethereumProvider: EthereumProvider | null, walletConnectManager: WalletConnectManager): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const ButtonWrapperStyle: {
|
|
2
|
+
marginBottom: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const WidgetHeaderStyle: {
|
|
5
|
+
width: string;
|
|
6
|
+
display: string;
|
|
7
|
+
flexWrap: string;
|
|
8
|
+
justifyContent: string;
|
|
9
|
+
marginBottom: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const InactiveStyle: {
|
|
12
|
+
display: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ActiveStyle: {};
|
|
15
|
+
export declare const BackButtonStyle: {
|
|
16
|
+
flexGrow: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Checkout, EIP6963ProviderInfo, WrappedBrowserProvider, WalletProviderName } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { Passport } from '@imtbl/passport';
|
|
3
|
+
export interface ConnectState {
|
|
4
|
+
checkout: Checkout | null;
|
|
5
|
+
provider: WrappedBrowserProvider | null;
|
|
6
|
+
passport: Passport | undefined;
|
|
7
|
+
walletProviderName: WalletProviderName | null;
|
|
8
|
+
walletProviderInfo: EIP6963ProviderInfo | null;
|
|
9
|
+
sendCloseEvent: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const initialConnectState: ConnectState;
|
|
12
|
+
export interface ConnectContextState {
|
|
13
|
+
connectState: ConnectState;
|
|
14
|
+
connectDispatch: React.Dispatch<ConnectAction>;
|
|
15
|
+
}
|
|
16
|
+
export interface ConnectAction {
|
|
17
|
+
payload: ActionPayload;
|
|
18
|
+
}
|
|
19
|
+
type ActionPayload = SetCheckoutPayload | SetProviderPayload | SetPassportPayload | SetProviderNamePayload | SetSendCloseEventPayload;
|
|
20
|
+
export declare enum ConnectActions {
|
|
21
|
+
SET_CHECKOUT = "SET_CHECKOUT",
|
|
22
|
+
SET_PROVIDER = "SET_PROVIDER",
|
|
23
|
+
SET_PASSPORT = "SET_PASSPORT",
|
|
24
|
+
SET_WALLET_PROVIDER_NAME = "SET_WALLET_PROVIDER_NAME",
|
|
25
|
+
SET_SEND_CLOSE_EVENT = "SET_SEND_CLOSE_EVENT"
|
|
26
|
+
}
|
|
27
|
+
export interface SetCheckoutPayload {
|
|
28
|
+
type: ConnectActions.SET_CHECKOUT;
|
|
29
|
+
checkout: Checkout;
|
|
30
|
+
}
|
|
31
|
+
export interface SetProviderPayload {
|
|
32
|
+
type: ConnectActions.SET_PROVIDER;
|
|
33
|
+
provider: WrappedBrowserProvider;
|
|
34
|
+
}
|
|
35
|
+
export interface SetPassportPayload {
|
|
36
|
+
type: ConnectActions.SET_PASSPORT;
|
|
37
|
+
passport: Passport;
|
|
38
|
+
}
|
|
39
|
+
export interface SetProviderNamePayload {
|
|
40
|
+
type: ConnectActions.SET_WALLET_PROVIDER_NAME;
|
|
41
|
+
walletProviderName: WalletProviderName;
|
|
42
|
+
}
|
|
43
|
+
export interface SetSendCloseEventPayload {
|
|
44
|
+
type: ConnectActions.SET_SEND_CLOSE_EVENT;
|
|
45
|
+
sendCloseEvent: () => void;
|
|
46
|
+
}
|
|
47
|
+
export declare const ConnectContext: import("react").Context<ConnectContextState>;
|
|
48
|
+
export type Reducer<S, A> = (prevState: S, action: A) => S;
|
|
49
|
+
export declare const connectReducer: Reducer<ConnectState, ConnectAction>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChainId } from '@imtbl/checkout-sdk';
|
|
2
|
+
export interface ConnectWalletProps {
|
|
3
|
+
targetWalletRdns?: string;
|
|
4
|
+
targetChainId: ChainId;
|
|
5
|
+
allowedChains: ChainId[];
|
|
6
|
+
blocklistWalletRdns?: string[];
|
|
7
|
+
checkNetwork: boolean;
|
|
8
|
+
showBackButton?: boolean;
|
|
9
|
+
onBackButtonClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ConnectWallet({ targetWalletRdns, targetChainId, allowedChains, blocklistWalletRdns, checkNetwork, showBackButton, onBackButtonClick, }: ConnectWalletProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChainId } from '@imtbl/checkout-sdk';
|
|
2
|
+
export interface ReadyToConnectProps {
|
|
3
|
+
targetChainId: ChainId;
|
|
4
|
+
allowedChains: ChainId[];
|
|
5
|
+
}
|
|
6
|
+
export declare function ReadyToConnect({ targetChainId, allowedChains }: ReadyToConnectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SwitchNetworkEth(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SwitchNetworkZkEVM(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommerceWidgetParams, CommerceWidgetConfiguration, Checkout, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
|
|
2
|
+
import { StrongCheckoutWidgetsConfig } from '../../lib/withDefaultWidgetConfig';
|
|
3
|
+
export type CommerceWidgetInputs = {
|
|
4
|
+
checkout: Checkout;
|
|
5
|
+
browserProvider?: WrappedBrowserProvider;
|
|
6
|
+
flowParams: CommerceWidgetParams;
|
|
7
|
+
flowConfig: CommerceWidgetConfiguration;
|
|
8
|
+
widgetsConfig: StrongCheckoutWidgetsConfig;
|
|
9
|
+
};
|
|
10
|
+
export default function CommerceWidget(props: CommerceWidgetInputs): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommerceEventType, WidgetType, WidgetEventData } from '@imtbl/checkout-sdk';
|
|
2
|
+
export type CommerceEventDetail = {
|
|
3
|
+
type: CommerceEventType;
|
|
4
|
+
data: WidgetEventData[WidgetType.IMMUTABLE_COMMERCE][keyof WidgetEventData[WidgetType.IMMUTABLE_COMMERCE]];
|
|
5
|
+
};
|
|
6
|
+
export declare const sendCheckoutEvent: (eventTarget: Window | EventTarget, detail: CommerceEventDetail) => void;
|