@b3dotfun/sdk 0.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +345 -0
- package/constants/chains/b3Chain.js +2 -0
- package/dist/cjs/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/cjs/anyspend/abis/abi-usdc-base.js +602 -0
- package/dist/cjs/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/cjs/anyspend/abis/erc20-staking.js +301 -0
- package/dist/cjs/anyspend/constants/index.d.ts +28 -0
- package/dist/cjs/anyspend/constants/index.js +72 -0
- package/dist/cjs/anyspend/index.d.ts +13 -0
- package/dist/cjs/anyspend/index.js +35 -0
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/cjs/anyspend/react/components/AnySpend.js +700 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +333 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +399 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +31 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +19 -0
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +269 -0
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +21 -0
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/cjs/anyspend/react/components/common/HowItWorks.js +7 -0
- package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +391 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistory.js +24 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +38 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +14 -0
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/cjs/anyspend/react/components/common/OrderToken.js +59 -0
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +50 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +46 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +124 -0
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +15 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +27 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOptions.js +7 -0
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +153 -0
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +23 -0
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/cjs/anyspend/react/components/common/TokenBalance.js +21 -0
- package/dist/cjs/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/EthIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/SolIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/USDCIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +21 -0
- package/dist/cjs/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/cjs/anyspend/react/hooks/index.js +29 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +83 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +68 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +37 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +20 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +52 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +39 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +18 -0
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +19 -0
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +53 -0
- package/dist/cjs/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/cjs/anyspend/react/hooks/useGetGeo.js +15 -0
- package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/cjs/anyspend/react/hooks/usePermitData.js +158 -0
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +18 -0
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +20 -0
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +42 -0
- package/dist/cjs/anyspend/services/anyspend.d.ts +372 -0
- package/dist/cjs/anyspend/services/anyspend.js +126 -0
- package/dist/cjs/anyspend/types/chain.d.ts +26 -0
- package/dist/cjs/anyspend/types/chain.js +8 -0
- package/dist/cjs/anyspend/types/custom.d.ts +130 -0
- package/dist/cjs/anyspend/types/custom.js +19 -0
- package/dist/cjs/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/cjs/anyspend/types/globalWallet.js +10 -0
- package/dist/cjs/anyspend/types/index.d.ts +13 -0
- package/dist/cjs/anyspend/types/index.js +29 -0
- package/dist/cjs/anyspend/types/nft.d.ts +267 -0
- package/dist/cjs/anyspend/types/nft.js +36 -0
- package/dist/cjs/anyspend/types/onramp.d.ts +25 -0
- package/dist/cjs/anyspend/types/onramp.js +17 -0
- package/dist/cjs/anyspend/types/order.d.ts +1771 -0
- package/dist/cjs/anyspend/types/order.js +85 -0
- package/dist/cjs/anyspend/types/permit.d.ts +21 -0
- package/dist/cjs/anyspend/types/permit.js +11 -0
- package/dist/cjs/anyspend/types/relay.d.ts +10 -0
- package/dist/cjs/anyspend/types/relay.js +12 -0
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/cjs/anyspend/types/req-res/createOrder.js +60 -0
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +31 -0
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +23 -0
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +11 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +11 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +46 -0
- package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +18 -0
- package/dist/cjs/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/cjs/anyspend/types/req-res/index.js +24 -0
- package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/cjs/anyspend/types/req-res/sendPermitData.js +11 -0
- package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/cjs/anyspend/types/req-res/stripe.js +1 -0
- package/dist/cjs/anyspend/types/swap.d.ts +119 -0
- package/dist/cjs/anyspend/types/swap.js +13 -0
- package/dist/cjs/anyspend/types/token.d.ts +34 -0
- package/dist/cjs/anyspend/types/token.js +14 -0
- package/dist/cjs/anyspend/types/tournament.d.ts +174 -0
- package/dist/cjs/anyspend/types/tournament.js +24 -0
- package/dist/cjs/anyspend/types/transaction.d.ts +84 -0
- package/dist/cjs/anyspend/types/transaction.js +34 -0
- package/dist/cjs/anyspend/utils/address.d.ts +4 -0
- package/dist/cjs/anyspend/utils/address.js +29 -0
- package/dist/cjs/anyspend/utils/chain.d.ts +25 -0
- package/dist/cjs/anyspend/utils/chain.js +294 -0
- package/dist/cjs/anyspend/utils/format.d.ts +6 -0
- package/dist/cjs/anyspend/utils/format.js +59 -0
- package/dist/cjs/anyspend/utils/index.d.ts +8 -0
- package/dist/cjs/anyspend/utils/index.js +24 -0
- package/dist/cjs/anyspend/utils/json.d.ts +1 -0
- package/dist/cjs/anyspend/utils/json.js +6 -0
- package/dist/cjs/anyspend/utils/number.d.ts +13 -0
- package/dist/cjs/anyspend/utils/number.js +90 -0
- package/dist/cjs/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/cjs/anyspend/utils/orderPayload.js +56 -0
- package/dist/cjs/anyspend/utils/string.d.ts +1 -0
- package/dist/cjs/anyspend/utils/string.js +9 -0
- package/dist/cjs/anyspend/utils/token.d.ts +7 -0
- package/dist/cjs/anyspend/utils/token.js +73 -0
- package/dist/cjs/generated/chain-networks.json +483 -0
- package/dist/cjs/global-account/app.d.ts +4 -0
- package/dist/cjs/global-account/app.js +65 -0
- package/dist/cjs/global-account/app.native.d.ts +5 -0
- package/dist/cjs/global-account/app.native.js +90 -0
- package/dist/cjs/global-account/bsmnt.d.ts +4 -0
- package/dist/cjs/global-account/bsmnt.js +69 -0
- package/dist/cjs/global-account/bsmnt.native.d.ts +5 -0
- package/dist/cjs/global-account/bsmnt.native.js +93 -0
- package/dist/cjs/global-account/index.d.ts +9 -0
- package/dist/cjs/global-account/index.js +27 -0
- package/dist/cjs/global-account/index.native.d.ts +3 -0
- package/dist/cjs/global-account/index.native.js +18 -0
- package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.js +13 -0
- package/dist/cjs/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +92 -0
- package/dist/cjs/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/cjs/global-account/react/components/B3Provider.js +118 -0
- package/dist/cjs/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/cjs/global-account/react/components/B3Provider.native.js +76 -0
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +85 -0
- package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/cjs/global-account/react/components/MintButton/MintButton.js +51 -0
- package/dist/cjs/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/cjs/global-account/react/components/ProfileAvatar.js +127 -0
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +29 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +83 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +26 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +45 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +203 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +51 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +9 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.js +8 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +9 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +89 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +76 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +56 -0
- package/dist/cjs/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/cjs/global-account/react/components/StyleRoot.js +10 -0
- package/dist/cjs/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/cjs/global-account/react/components/Transak/TransakModal.js +113 -0
- package/dist/cjs/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/cjs/global-account/react/components/custom/Button.js +36 -0
- package/dist/cjs/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/cjs/global-account/react/components/custom/ClientOnly.js +13 -0
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.js +21 -0
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +24 -0
- package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.js +27 -0
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +93 -0
- package/dist/cjs/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/cjs/global-account/react/components/ui/Loading.js +18 -0
- package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/cjs/global-account/react/components/ui/ShinyButton.js +29 -0
- package/dist/cjs/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +86 -0
- package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/cjs/global-account/react/components/ui/Tabs.js +53 -0
- package/dist/cjs/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/cjs/global-account/react/components/ui/badge.js +24 -0
- package/dist/cjs/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ui/button.js +72 -0
- package/dist/cjs/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/cjs/global-account/react/components/ui/command.js +74 -0
- package/dist/cjs/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/cjs/global-account/react/components/ui/dialog.js +71 -0
- package/dist/cjs/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/cjs/global-account/react/components/ui/drawer.js +71 -0
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +146 -0
- package/dist/cjs/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/cjs/global-account/react/components/ui/glare-card.js +108 -0
- package/dist/cjs/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/cjs/global-account/react/components/ui/input.js +46 -0
- package/dist/cjs/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/cjs/global-account/react/components/ui/popover.js +52 -0
- package/dist/cjs/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/cjs/global-account/react/components/ui/scroll-area.js +47 -0
- package/dist/cjs/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/cjs/global-account/react/components/ui/skeleton.js +8 -0
- package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ui/text-loop.js +29 -0
- package/dist/cjs/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/cjs/global-account/react/components/ui/text-shimmer.js +22 -0
- package/dist/cjs/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/cjs/global-account/react/components/ui/tooltip.js +50 -0
- package/dist/cjs/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/cjs/global-account/react/components/ui/transition-panel.js +10 -0
- package/dist/cjs/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/cjs/global-account/react/hooks/useAccountAssets.js +35 -0
- package/dist/cjs/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +70 -0
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +56 -0
- package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/cjs/global-account/react/hooks/useAuthentication.js +123 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +70 -0
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +150 -0
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +13 -0
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +73 -0
- package/dist/cjs/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/cjs/global-account/react/hooks/useClaim.js +50 -0
- package/dist/cjs/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/cjs/global-account/react/hooks/useConnect.js +52 -0
- package/dist/cjs/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/cjs/global-account/react/hooks/useExchangeRate.js +30 -0
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +77 -0
- package/dist/cjs/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useGetGeo.js +20 -0
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +69 -0
- package/dist/cjs/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/cjs/global-account/react/hooks/useHasMounted.js +11 -0
- package/dist/cjs/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useIsMobile.js +8 -0
- package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/cjs/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/cjs/global-account/react/hooks/useMediaQuery.js +47 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.js +76 -0
- package/dist/cjs/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +193 -0
- package/dist/cjs/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/cjs/global-account/react/hooks/useOneBalance.js +69 -0
- package/dist/cjs/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/cjs/global-account/react/hooks/useQueryB3.js +40 -0
- package/dist/cjs/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/cjs/global-account/react/hooks/useQueryBSMNT.js +40 -0
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +49 -0
- package/dist/cjs/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/cjs/global-account/react/hooks/useRouter.js +78 -0
- package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.js +31 -0
- package/dist/cjs/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/cjs/global-account/react/hooks/useSiwe.js +38 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalance.js +64 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +58 -0
- package/dist/cjs/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/cjs/global-account/react/hooks/useTokenData.js +47 -0
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +30 -0
- package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useTokenPrice.js +48 -0
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +34 -0
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +51 -0
- package/dist/cjs/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/cjs/global-account/react/hooks/useURLParams.js +38 -0
- package/dist/cjs/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/cjs/global-account/react/stores/useAuthStore.js +39 -0
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/cjs/global-account/react/stores/useModalStore.js +36 -0
- package/dist/cjs/global-account/server.d.ts +8 -0
- package/dist/cjs/global-account/server.js +26 -0
- package/dist/cjs/global-account/types/b3-api.d.ts +3 -0
- package/dist/cjs/global-account/types/b3-api.js +41 -0
- package/dist/cjs/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/cjs/global-account/types/b3-api.types.js +4 -0
- package/dist/cjs/global-account/types/chain-networks.d.ts +44 -0
- package/dist/cjs/global-account/types/chain-networks.js +48 -0
- package/dist/cjs/global-account/types/feature-flags.d.ts +8 -0
- package/dist/cjs/global-account/types/feature-flags.js +10 -0
- package/dist/cjs/global-account/types/permissions.d.ts +21 -0
- package/dist/cjs/global-account/types/permissions.js +2 -0
- package/dist/cjs/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/cjs/global-account/types/reservoir.types.js +2 -0
- package/dist/cjs/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/cjs/global-account/types/simplehash.types.js +2 -0
- package/dist/cjs/global-account/types.d.ts +19 -0
- package/dist/cjs/global-account/types.js +2 -0
- package/dist/cjs/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/cjs/shared/constants/chains/b3Chain.js +167 -0
- package/dist/cjs/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/cjs/shared/constants/chains/chainPlatformMap.js +47 -0
- package/dist/cjs/shared/constants/chains/supported.d.ts +53 -0
- package/dist/cjs/shared/constants/chains/supported.js +31 -0
- package/dist/cjs/shared/constants/index.d.ts +15 -0
- package/dist/cjs/shared/constants/index.js +21 -0
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +1355 -0
- package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/cjs/shared/thirdweb/generated/client.gen.js +6 -0
- package/dist/cjs/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/cjs/shared/thirdweb/generated/index.js +19 -0
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +1037 -0
- package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/cjs/shared/thirdweb/generated/types.gen.js +3 -0
- package/dist/cjs/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/cjs/shared/thirdweb/initiateClient.js +27 -0
- package/dist/cjs/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/cjs/shared/thirdweb/openapi-ts.config.js +8 -0
- package/dist/cjs/shared/utils/b3Ens.d.ts +5 -0
- package/dist/cjs/shared/utils/b3Ens.js +27 -0
- package/dist/cjs/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/cjs/shared/utils/centerTruncate.js +14 -0
- package/dist/cjs/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/cjs/shared/utils/chain-transformers.js +50 -0
- package/dist/cjs/shared/utils/chains.d.ts +6 -0
- package/dist/cjs/shared/utils/chains.js +38 -0
- package/dist/cjs/shared/utils/cn.d.ts +2 -0
- package/dist/cjs/shared/utils/cn.js +8 -0
- package/dist/cjs/shared/utils/colors.d.ts +2 -0
- package/dist/cjs/shared/utils/colors.js +33 -0
- package/dist/cjs/shared/utils/cookies.d.ts +3 -0
- package/dist/cjs/shared/utils/cookies.js +17 -0
- package/dist/cjs/shared/utils/debug.d.ts +4 -0
- package/dist/cjs/shared/utils/debug.js +20 -0
- package/dist/cjs/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/cjs/shared/utils/fetchBalances.js +64 -0
- package/dist/cjs/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/cjs/shared/utils/fetchBsmntProfile.js +26 -0
- package/dist/cjs/shared/utils/formatAddress.d.ts +2 -0
- package/dist/cjs/shared/utils/formatAddress.js +19 -0
- package/dist/cjs/shared/utils/formatNumber.d.ts +7 -0
- package/dist/cjs/shared/utils/formatNumber.js +49 -0
- package/dist/cjs/shared/utils/index.d.ts +2 -0
- package/dist/cjs/shared/utils/index.js +23 -0
- package/dist/cjs/shared/utils/insights.d.ts +7 -0
- package/dist/cjs/shared/utils/insights.js +388 -0
- package/dist/cjs/shared/utils/ipfs.d.ts +12 -0
- package/dist/cjs/shared/utils/ipfs.js +32 -0
- package/dist/cjs/shared/utils/number.d.ts +11 -0
- package/dist/cjs/shared/utils/number.js +110 -0
- package/dist/cjs/shared/utils/payment.utils.d.ts +5 -0
- package/dist/cjs/shared/utils/payment.utils.js +36 -0
- package/dist/cjs/shared/utils/simplehash.d.ts +12 -0
- package/dist/cjs/shared/utils/simplehash.js +308 -0
- package/dist/cjs/shared/utils/sprinter.d.ts +1 -0
- package/dist/cjs/shared/utils/sprinter.js +15 -0
- package/dist/cjs/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/cjs/shared/utils/thirdweb-insights.js +200 -0
- package/dist/cjs/shared/utils/thirdweb.d.ts +1 -0
- package/dist/cjs/shared/utils/thirdweb.js +11 -0
- package/dist/cjs/styles/index.d.ts +20 -0
- package/dist/cjs/styles/index.js +22 -0
- package/dist/esm/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/esm/anyspend/abis/abi-usdc-base.js +599 -0
- package/dist/esm/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/esm/anyspend/abis/erc20-staking.js +298 -0
- package/dist/esm/anyspend/constants/index.d.ts +28 -0
- package/dist/esm/anyspend/constants/index.js +69 -0
- package/dist/esm/anyspend/index.d.ts +13 -0
- package/dist/esm/anyspend/index.js +19 -0
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/esm/anyspend/react/components/AnySpend.js +693 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +327 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +393 -0
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +25 -0
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +16 -0
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +263 -0
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +15 -0
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +4 -0
- package/dist/esm/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/esm/anyspend/react/components/common/HowItWorks.js +4 -0
- package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +385 -0
- package/dist/esm/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/esm/anyspend/react/components/common/OrderHistory.js +18 -0
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +32 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +11 -0
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/esm/anyspend/react/components/common/OrderToken.js +56 -0
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +47 -0
- package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +40 -0
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +118 -0
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +12 -0
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +21 -0
- package/dist/esm/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/esm/anyspend/react/components/common/PaymentOptions.js +4 -0
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +147 -0
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +17 -0
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/esm/anyspend/react/components/common/TokenBalance.js +18 -0
- package/dist/esm/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/EthIcon.js +4 -0
- package/dist/esm/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/SolIcon.js +4 -0
- package/dist/esm/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/USDCIcon.js +4 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +15 -0
- package/dist/esm/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/esm/anyspend/react/hooks/index.js +13 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +80 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +65 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +31 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +17 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +49 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +36 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +15 -0
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +16 -0
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +50 -0
- package/dist/esm/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/esm/anyspend/react/hooks/useGetGeo.js +12 -0
- package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/esm/anyspend/react/hooks/usePermitData.js +154 -0
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +15 -0
- package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +17 -0
- package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +38 -0
- package/dist/esm/anyspend/services/anyspend.d.ts +372 -0
- package/dist/esm/anyspend/services/anyspend.js +120 -0
- package/dist/esm/anyspend/types/chain.d.ts +26 -0
- package/dist/esm/anyspend/types/chain.js +5 -0
- package/dist/esm/anyspend/types/custom.d.ts +130 -0
- package/dist/esm/anyspend/types/custom.js +13 -0
- package/dist/esm/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/esm/anyspend/types/globalWallet.js +7 -0
- package/dist/esm/anyspend/types/index.d.ts +13 -0
- package/dist/esm/anyspend/types/index.js +13 -0
- package/dist/esm/anyspend/types/nft.d.ts +267 -0
- package/dist/esm/anyspend/types/nft.js +33 -0
- package/dist/esm/anyspend/types/onramp.d.ts +25 -0
- package/dist/esm/anyspend/types/onramp.js +14 -0
- package/dist/esm/anyspend/types/order.d.ts +1771 -0
- package/dist/esm/anyspend/types/order.js +82 -0
- package/dist/esm/anyspend/types/permit.d.ts +21 -0
- package/dist/esm/anyspend/types/permit.js +8 -0
- package/dist/esm/anyspend/types/relay.d.ts +10 -0
- package/dist/esm/anyspend/types/relay.js +9 -0
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/esm/anyspend/types/req-res/createOrder.js +57 -0
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +28 -0
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +20 -0
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +8 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +8 -0
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +43 -0
- package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/esm/anyspend/types/req-res/getTokenList.js +15 -0
- package/dist/esm/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/esm/anyspend/types/req-res/index.js +8 -0
- package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/esm/anyspend/types/req-res/sendPermitData.js +8 -0
- package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/esm/anyspend/types/req-res/stripe.js +1 -0
- package/dist/esm/anyspend/types/swap.d.ts +119 -0
- package/dist/esm/anyspend/types/swap.js +10 -0
- package/dist/esm/anyspend/types/token.d.ts +34 -0
- package/dist/esm/anyspend/types/token.js +11 -0
- package/dist/esm/anyspend/types/tournament.d.ts +174 -0
- package/dist/esm/anyspend/types/tournament.js +21 -0
- package/dist/esm/anyspend/types/transaction.d.ts +84 -0
- package/dist/esm/anyspend/types/transaction.js +31 -0
- package/dist/esm/anyspend/utils/address.d.ts +4 -0
- package/dist/esm/anyspend/utils/address.js +23 -0
- package/dist/esm/anyspend/utils/chain.d.ts +25 -0
- package/dist/esm/anyspend/utils/chain.js +271 -0
- package/dist/esm/anyspend/utils/format.d.ts +6 -0
- package/dist/esm/anyspend/utils/format.js +54 -0
- package/dist/esm/anyspend/utils/index.d.ts +8 -0
- package/dist/esm/anyspend/utils/index.js +8 -0
- package/dist/esm/anyspend/utils/json.d.ts +1 -0
- package/dist/esm/anyspend/utils/json.js +3 -0
- package/dist/esm/anyspend/utils/number.d.ts +13 -0
- package/dist/esm/anyspend/utils/number.js +79 -0
- package/dist/esm/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/esm/anyspend/utils/orderPayload.js +51 -0
- package/dist/esm/anyspend/utils/string.d.ts +1 -0
- package/dist/esm/anyspend/utils/string.js +5 -0
- package/dist/esm/anyspend/utils/token.d.ts +7 -0
- package/dist/esm/anyspend/utils/token.js +65 -0
- package/dist/esm/generated/chain-networks.json +483 -0
- package/dist/esm/global-account/app.d.ts +4 -0
- package/dist/esm/global-account/app.js +57 -0
- package/dist/esm/global-account/app.native.d.ts +5 -0
- package/dist/esm/global-account/app.native.js +83 -0
- package/dist/esm/global-account/bsmnt.d.ts +4 -0
- package/dist/esm/global-account/bsmnt.js +61 -0
- package/dist/esm/global-account/bsmnt.native.d.ts +5 -0
- package/dist/esm/global-account/bsmnt.native.js +86 -0
- package/dist/esm/global-account/index.d.ts +9 -0
- package/dist/esm/global-account/index.js +11 -0
- package/dist/esm/global-account/index.native.d.ts +3 -0
- package/dist/esm/global-account/index.native.js +11 -0
- package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.js +10 -0
- package/dist/esm/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/esm/global-account/react/components/B3DynamicModal.js +86 -0
- package/dist/esm/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/esm/global-account/react/components/B3Provider.js +109 -0
- package/dist/esm/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/esm/global-account/react/components/B3Provider.native.js +70 -0
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +79 -0
- package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/esm/global-account/react/components/MintButton/MintButton.js +48 -0
- package/dist/esm/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/esm/global-account/react/components/ProfileAvatar.js +127 -0
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +26 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +77 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +23 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +39 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +200 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +45 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.js +5 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +82 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +70 -0
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +50 -0
- package/dist/esm/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/esm/global-account/react/components/StyleRoot.js +7 -0
- package/dist/esm/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/esm/global-account/react/components/Transak/TransakModal.js +107 -0
- package/dist/esm/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/esm/global-account/react/components/custom/Button.js +32 -0
- package/dist/esm/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/esm/global-account/react/components/custom/ClientOnly.js +10 -0
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.js +18 -0
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +21 -0
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +24 -0
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +58 -0
- package/dist/esm/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/esm/global-account/react/components/ui/Loading.js +15 -0
- package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/esm/global-account/react/components/ui/ShinyButton.js +24 -0
- package/dist/esm/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/esm/global-account/react/components/ui/TabSystem.js +46 -0
- package/dist/esm/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/esm/global-account/react/components/ui/Tabs.js +13 -0
- package/dist/esm/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/esm/global-account/react/components/ui/badge.js +20 -0
- package/dist/esm/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/esm/global-account/react/components/ui/button.js +35 -0
- package/dist/esm/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/esm/global-account/react/components/ui/command.js +30 -0
- package/dist/esm/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/esm/global-account/react/components/ui/dialog.js +26 -0
- package/dist/esm/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/esm/global-account/react/components/ui/drawer.js +26 -0
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +142 -0
- package/dist/esm/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/esm/global-account/react/components/ui/glare-card.js +104 -0
- package/dist/esm/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/esm/global-account/react/components/ui/input.js +10 -0
- package/dist/esm/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/esm/global-account/react/components/ui/popover.js +11 -0
- package/dist/esm/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/esm/global-account/react/components/ui/scroll-area.js +10 -0
- package/dist/esm/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/esm/global-account/react/components/ui/skeleton.js +6 -0
- package/dist/esm/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/esm/global-account/react/components/ui/text-loop.js +26 -0
- package/dist/esm/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/esm/global-account/react/components/ui/text-shimmer.js +19 -0
- package/dist/esm/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/esm/global-account/react/components/ui/tooltip.js +11 -0
- package/dist/esm/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/esm/global-account/react/components/ui/transition-panel.js +7 -0
- package/dist/esm/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/esm/global-account/react/hooks/useAccountAssets.js +32 -0
- package/dist/esm/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +67 -0
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +50 -0
- package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/esm/global-account/react/hooks/useAuthentication.js +117 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +67 -0
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +147 -0
- package/dist/esm/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/esm/global-account/react/hooks/useBsmntProfile.js +9 -0
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +70 -0
- package/dist/esm/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/esm/global-account/react/hooks/useClaim.js +46 -0
- package/dist/esm/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/esm/global-account/react/hooks/useConnect.js +49 -0
- package/dist/esm/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/esm/global-account/react/hooks/useExchangeRate.js +27 -0
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +71 -0
- package/dist/esm/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useGetGeo.js +18 -0
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +66 -0
- package/dist/esm/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/esm/global-account/react/hooks/useHasMounted.js +8 -0
- package/dist/esm/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useIsMobile.js +6 -0
- package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.js +2 -0
- package/dist/esm/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/esm/global-account/react/hooks/useMediaQuery.js +44 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.js +72 -0
- package/dist/esm/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/esm/global-account/react/hooks/useOnchainName.js +187 -0
- package/dist/esm/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/esm/global-account/react/hooks/useOneBalance.js +65 -0
- package/dist/esm/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/esm/global-account/react/hooks/useQueryB3.js +34 -0
- package/dist/esm/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/esm/global-account/react/hooks/useQueryBSMNT.js +34 -0
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +43 -0
- package/dist/esm/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/esm/global-account/react/hooks/useRouter.js +75 -0
- package/dist/esm/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useSearchParamsSSR.js +27 -0
- package/dist/esm/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/esm/global-account/react/hooks/useSiwe.js +32 -0
- package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/esm/global-account/react/hooks/useTokenBalance.js +61 -0
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +55 -0
- package/dist/esm/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/esm/global-account/react/hooks/useTokenData.js +44 -0
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +27 -0
- package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useTokenPrice.js +45 -0
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +31 -0
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +45 -0
- package/dist/esm/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/esm/global-account/react/hooks/useURLParams.js +32 -0
- package/dist/esm/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/esm/global-account/react/stores/useAuthStore.js +36 -0
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/esm/global-account/react/stores/useModalStore.js +33 -0
- package/dist/esm/global-account/server.d.ts +8 -0
- package/dist/esm/global-account/server.js +22 -0
- package/dist/esm/global-account/types/b3-api.d.ts +3 -0
- package/dist/esm/global-account/types/b3-api.js +3 -0
- package/dist/esm/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/esm/global-account/types/b3-api.types.js +3 -0
- package/dist/esm/global-account/types/chain-networks.d.ts +44 -0
- package/dist/esm/global-account/types/chain-networks.js +45 -0
- package/dist/esm/global-account/types/feature-flags.d.ts +8 -0
- package/dist/esm/global-account/types/feature-flags.js +7 -0
- package/dist/esm/global-account/types/permissions.d.ts +21 -0
- package/dist/esm/global-account/types/permissions.js +1 -0
- package/dist/esm/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/esm/global-account/types/reservoir.types.js +1 -0
- package/dist/esm/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/esm/global-account/types/simplehash.types.js +1 -0
- package/dist/esm/global-account/types.d.ts +19 -0
- package/dist/esm/global-account/types.js +1 -0
- package/dist/esm/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/esm/shared/constants/chains/b3Chain.js +161 -0
- package/dist/esm/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/esm/shared/constants/chains/chainPlatformMap.js +43 -0
- package/dist/esm/shared/constants/chains/supported.d.ts +53 -0
- package/dist/esm/shared/constants/chains/supported.js +25 -0
- package/dist/esm/shared/constants/index.d.ts +15 -0
- package/dist/esm/shared/constants/index.js +18 -0
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +1225 -0
- package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/esm/shared/thirdweb/generated/client.gen.js +3 -0
- package/dist/esm/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/esm/shared/thirdweb/generated/index.js +3 -0
- package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/esm/shared/thirdweb/generated/sdk.gen.js +995 -0
- package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/esm/shared/thirdweb/generated/types.gen.js +2 -0
- package/dist/esm/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/esm/shared/thirdweb/initiateClient.js +25 -0
- package/dist/esm/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/esm/shared/thirdweb/openapi-ts.config.js +6 -0
- package/dist/esm/shared/utils/b3Ens.d.ts +5 -0
- package/dist/esm/shared/utils/b3Ens.js +23 -0
- package/dist/esm/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/esm/shared/utils/centerTruncate.js +11 -0
- package/dist/esm/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/esm/shared/utils/chain-transformers.js +46 -0
- package/dist/esm/shared/utils/chains.d.ts +6 -0
- package/dist/esm/shared/utils/chains.js +31 -0
- package/dist/esm/shared/utils/cn.d.ts +2 -0
- package/dist/esm/shared/utils/cn.js +5 -0
- package/dist/esm/shared/utils/colors.d.ts +2 -0
- package/dist/esm/shared/utils/colors.js +29 -0
- package/dist/esm/shared/utils/cookies.d.ts +3 -0
- package/dist/esm/shared/utils/cookies.js +12 -0
- package/dist/esm/shared/utils/debug.d.ts +4 -0
- package/dist/esm/shared/utils/debug.js +13 -0
- package/dist/esm/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/esm/shared/utils/fetchBalances.js +60 -0
- package/dist/esm/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/esm/shared/utils/fetchBsmntProfile.js +23 -0
- package/dist/esm/shared/utils/formatAddress.d.ts +2 -0
- package/dist/esm/shared/utils/formatAddress.js +14 -0
- package/dist/esm/shared/utils/formatNumber.d.ts +7 -0
- package/dist/esm/shared/utils/formatNumber.js +45 -0
- package/dist/esm/shared/utils/index.d.ts +2 -0
- package/dist/esm/shared/utils/index.js +6 -0
- package/dist/esm/shared/utils/insights.d.ts +7 -0
- package/dist/esm/shared/utils/insights.js +381 -0
- package/dist/esm/shared/utils/ipfs.d.ts +12 -0
- package/dist/esm/shared/utils/ipfs.js +29 -0
- package/dist/esm/shared/utils/number.d.ts +11 -0
- package/dist/esm/shared/utils/number.js +102 -0
- package/dist/esm/shared/utils/payment.utils.d.ts +5 -0
- package/dist/esm/shared/utils/payment.utils.js +30 -0
- package/dist/esm/shared/utils/simplehash.d.ts +12 -0
- package/dist/esm/shared/utils/simplehash.js +286 -0
- package/dist/esm/shared/utils/sprinter.d.ts +1 -0
- package/dist/esm/shared/utils/sprinter.js +11 -0
- package/dist/esm/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/esm/shared/utils/thirdweb-insights.js +192 -0
- package/dist/esm/shared/utils/thirdweb.d.ts +1 -0
- package/dist/esm/shared/utils/thirdweb.js +8 -0
- package/dist/esm/styles/index.d.ts +20 -0
- package/dist/esm/styles/index.js +20 -0
- package/dist/styles/index.css +1 -0
- package/dist/types/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/types/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/types/anyspend/constants/index.d.ts +28 -0
- package/dist/types/anyspend/index.d.ts +13 -0
- package/dist/types/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/types/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/types/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/types/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/types/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/types/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/types/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/types/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/types/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/types/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/types/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/types/anyspend/services/anyspend.d.ts +372 -0
- package/dist/types/anyspend/types/chain.d.ts +26 -0
- package/dist/types/anyspend/types/custom.d.ts +130 -0
- package/dist/types/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/types/anyspend/types/index.d.ts +13 -0
- package/dist/types/anyspend/types/nft.d.ts +267 -0
- package/dist/types/anyspend/types/onramp.d.ts +25 -0
- package/dist/types/anyspend/types/order.d.ts +1771 -0
- package/dist/types/anyspend/types/permit.d.ts +21 -0
- package/dist/types/anyspend/types/relay.d.ts +10 -0
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/types/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/types/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/types/anyspend/types/swap.d.ts +119 -0
- package/dist/types/anyspend/types/token.d.ts +34 -0
- package/dist/types/anyspend/types/tournament.d.ts +174 -0
- package/dist/types/anyspend/types/transaction.d.ts +84 -0
- package/dist/types/anyspend/utils/address.d.ts +4 -0
- package/dist/types/anyspend/utils/chain.d.ts +25 -0
- package/dist/types/anyspend/utils/format.d.ts +6 -0
- package/dist/types/anyspend/utils/index.d.ts +8 -0
- package/dist/types/anyspend/utils/json.d.ts +1 -0
- package/dist/types/anyspend/utils/number.d.ts +13 -0
- package/dist/types/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/types/anyspend/utils/string.d.ts +1 -0
- package/dist/types/anyspend/utils/token.d.ts +7 -0
- package/dist/types/global-account/app.d.ts +4 -0
- package/dist/types/global-account/app.native.d.ts +5 -0
- package/dist/types/global-account/bsmnt.d.ts +4 -0
- package/dist/types/global-account/bsmnt.native.d.ts +5 -0
- package/dist/types/global-account/index.d.ts +9 -0
- package/dist/types/global-account/index.native.d.ts +3 -0
- package/dist/types/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/types/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/types/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/types/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/types/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/types/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/types/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/types/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/types/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/types/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/types/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/types/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/types/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/types/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/types/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/types/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/types/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/types/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/types/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/types/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/types/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/types/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/types/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/types/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/types/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/types/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/types/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/types/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/types/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/types/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/types/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/types/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/types/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/types/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/types/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/types/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/types/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/types/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/types/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/types/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/types/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/types/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/types/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/types/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/types/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/types/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/types/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/types/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/types/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/types/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/types/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/types/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/types/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/types/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/types/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/types/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/types/global-account/server.d.ts +8 -0
- package/dist/types/global-account/types/b3-api.d.ts +3 -0
- package/dist/types/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/types/global-account/types/chain-networks.d.ts +44 -0
- package/dist/types/global-account/types/feature-flags.d.ts +8 -0
- package/dist/types/global-account/types/permissions.d.ts +21 -0
- package/dist/types/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/types/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/types/global-account/types.d.ts +19 -0
- package/dist/types/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/types/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/types/shared/constants/chains/supported.d.ts +53 -0
- package/dist/types/shared/constants/index.d.ts +15 -0
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/types/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/types/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/types/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/types/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/types/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/types/shared/utils/b3Ens.d.ts +5 -0
- package/dist/types/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/types/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/types/shared/utils/chains.d.ts +6 -0
- package/dist/types/shared/utils/cn.d.ts +2 -0
- package/dist/types/shared/utils/colors.d.ts +2 -0
- package/dist/types/shared/utils/cookies.d.ts +3 -0
- package/dist/types/shared/utils/debug.d.ts +4 -0
- package/dist/types/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/types/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/types/shared/utils/formatAddress.d.ts +2 -0
- package/dist/types/shared/utils/formatNumber.d.ts +7 -0
- package/dist/types/shared/utils/index.d.ts +2 -0
- package/dist/types/shared/utils/insights.d.ts +7 -0
- package/dist/types/shared/utils/ipfs.d.ts +12 -0
- package/dist/types/shared/utils/number.d.ts +11 -0
- package/dist/types/shared/utils/payment.utils.d.ts +5 -0
- package/dist/types/shared/utils/simplehash.d.ts +12 -0
- package/dist/types/shared/utils/sprinter.d.ts +1 -0
- package/dist/types/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/types/shared/utils/thirdweb.d.ts +1 -0
- package/dist/types/styles/index.d.ts +20 -0
- package/package.json +340 -0
- package/src/anyspend/abis/abi-usdc-base.ts +600 -0
- package/src/anyspend/abis/erc20-staking.ts +299 -0
- package/src/anyspend/constants/index.ts +88 -0
- package/src/anyspend/index.ts +24 -0
- package/src/anyspend/react/components/AnySpend.tsx +1144 -0
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +623 -0
- package/src/anyspend/react/components/AnySpendCustom.tsx +812 -0
- package/src/anyspend/react/components/AnySpendNFT.tsx +134 -0
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +33 -0
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +491 -0
- package/src/anyspend/react/components/AnySpendTournament.tsx +109 -0
- package/src/anyspend/react/components/common/ChainTokenIcon.tsx +18 -0
- package/src/anyspend/react/components/common/HowItWorks.tsx +37 -0
- package/src/anyspend/react/components/common/OrderDetails.tsx +1195 -0
- package/src/anyspend/react/components/common/OrderHistory.tsx +64 -0
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +189 -0
- package/src/anyspend/react/components/common/OrderStatus.tsx +39 -0
- package/src/anyspend/react/components/common/OrderToken.tsx +132 -0
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +168 -0
- package/src/anyspend/react/components/common/PanelOnramp.tsx +108 -0
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +354 -0
- package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +22 -0
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +42 -0
- package/src/anyspend/react/components/common/PaymentOptions.tsx +36 -0
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +368 -0
- package/src/anyspend/react/components/common/PaymentVendorUI.tsx +26 -0
- package/src/anyspend/react/components/common/TokenBalance.tsx +63 -0
- package/src/anyspend/react/components/icons/EthIcon.tsx +31 -0
- package/src/anyspend/react/components/icons/SolIcon.tsx +39 -0
- package/src/anyspend/react/components/icons/USDCIcon.tsx +19 -0
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +50 -0
- package/src/anyspend/react/hooks/index.ts +13 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +131 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +102 -0
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +36 -0
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +29 -0
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +58 -0
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +38 -0
- package/src/anyspend/react/hooks/useAnyspendTokens.ts +24 -0
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +21 -0
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +58 -0
- package/src/anyspend/react/hooks/useGetGeo.ts +31 -0
- package/src/anyspend/react/hooks/usePermitData.ts +183 -0
- package/src/anyspend/react/hooks/useStripeClientSecret.ts +20 -0
- package/src/anyspend/react/hooks/useStripeSupport.ts +22 -0
- package/src/anyspend/react/providers/AnyspendProvider.tsx +45 -0
- package/src/anyspend/services/anyspend.ts +191 -0
- package/src/anyspend/types/chain.ts +30 -0
- package/src/anyspend/types/custom.ts +17 -0
- package/src/anyspend/types/globalWallet.ts +9 -0
- package/src/anyspend/types/index.ts +14 -0
- package/src/anyspend/types/nft.ts +50 -0
- package/src/anyspend/types/onramp.ts +15 -0
- package/src/anyspend/types/order.ts +94 -0
- package/src/anyspend/types/permit.ts +10 -0
- package/src/anyspend/types/relay.ts +13 -0
- package/src/anyspend/types/req-res/createOrder.ts +66 -0
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +34 -0
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +23 -0
- package/src/anyspend/types/req-res/getOrderByCreator.ts +9 -0
- package/src/anyspend/types/req-res/getOrderHistory.ts +9 -0
- package/src/anyspend/types/req-res/getQuote.ts +60 -0
- package/src/anyspend/types/req-res/getTokenList.ts +18 -0
- package/src/anyspend/types/req-res/index.ts +8 -0
- package/src/anyspend/types/req-res/sendPermitData.ts +10 -0
- package/src/anyspend/types/req-res/stripe.ts +0 -0
- package/src/anyspend/types/swap.ts +12 -0
- package/src/anyspend/types/token.ts +13 -0
- package/src/anyspend/types/tournament.ts +26 -0
- package/src/anyspend/types/transaction.ts +39 -0
- package/src/anyspend/utils/address.ts +25 -0
- package/src/anyspend/utils/chain.ts +342 -0
- package/src/anyspend/utils/format.ts +64 -0
- package/src/anyspend/utils/index.ts +8 -0
- package/src/anyspend/utils/json.ts +3 -0
- package/src/anyspend/utils/number.ts +93 -0
- package/src/anyspend/utils/orderPayload.ts +63 -0
- package/src/anyspend/utils/string.ts +4 -0
- package/src/anyspend/utils/token.ts +72 -0
- package/src/generated/chain-networks.json +483 -0
- package/src/global-account/app.native.ts +105 -0
- package/src/global-account/app.ts +68 -0
- package/src/global-account/bsmnt.native.ts +108 -0
- package/src/global-account/bsmnt.ts +73 -0
- package/src/global-account/index.native.ts +17 -0
- package/src/global-account/index.ts +17 -0
- package/src/global-account/react/components/AccountAssets/AccountAssets.tsx +48 -0
- package/src/global-account/react/components/B3DynamicModal.tsx +118 -0
- package/src/global-account/react/components/B3Provider.native.tsx +141 -0
- package/src/global-account/react/components/B3Provider.tsx +201 -0
- package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +242 -0
- package/src/global-account/react/components/MintButton/MintButton.tsx +83 -0
- package/src/global-account/react/components/ProfileAvatar.tsx +138 -0
- package/src/global-account/react/components/RelayKitProviderWrapper.tsx +34 -0
- package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +167 -0
- package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +51 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +93 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +255 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +60 -0
- package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +23 -0
- package/src/global-account/react/components/SignInWithB3/components/PermissionItem.tsx +22 -0
- package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +32 -0
- package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +135 -0
- package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +148 -0
- package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +70 -0
- package/src/global-account/react/components/StyleRoot.tsx +12 -0
- package/src/global-account/react/components/Transak/TransakModal.tsx +134 -0
- package/src/global-account/react/components/custom/Button.tsx +54 -0
- package/src/global-account/react/components/custom/ClientOnly.tsx +20 -0
- package/src/global-account/react/components/custom/CopyToClipboard.tsx +47 -0
- package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +43 -0
- package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +32 -0
- package/src/global-account/react/components/magicui/AnimatedLottie.tsx +106 -0
- package/src/global-account/react/components/ui/Loading.tsx +27 -0
- package/src/global-account/react/components/ui/ShinyButton.tsx +82 -0
- package/src/global-account/react/components/ui/TabSystem.tsx +157 -0
- package/src/global-account/react/components/ui/Tabs.tsx +56 -0
- package/src/global-account/react/components/ui/badge.tsx +30 -0
- package/src/global-account/react/components/ui/button.tsx +57 -0
- package/src/global-account/react/components/ui/command.tsx +140 -0
- package/src/global-account/react/components/ui/dialog.tsx +131 -0
- package/src/global-account/react/components/ui/drawer.tsx +97 -0
- package/src/global-account/react/components/ui/glare-card-rounded.tsx +182 -0
- package/src/global-account/react/components/ui/glare-card.tsx +138 -0
- package/src/global-account/react/components/ui/input.tsx +25 -0
- package/src/global-account/react/components/ui/popover.tsx +34 -0
- package/src/global-account/react/components/ui/scroll-area.tsx +40 -0
- package/src/global-account/react/components/ui/skeleton.tsx +7 -0
- package/src/global-account/react/components/ui/text-loop.tsx +61 -0
- package/src/global-account/react/components/ui/text-shimmer.tsx +47 -0
- package/src/global-account/react/components/ui/tooltip.tsx +34 -0
- package/src/global-account/react/components/ui/transition-panel.tsx +38 -0
- package/src/global-account/react/hooks/useAccountAssets.ts +34 -0
- package/src/global-account/react/hooks/useAccountWallet.tsx +110 -0
- package/src/global-account/react/hooks/useAddTWSessionKey.tsx +85 -0
- package/src/global-account/react/hooks/useAuthentication.ts +127 -0
- package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +91 -0
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +202 -0
- package/src/global-account/react/hooks/useBsmntProfile.ts +14 -0
- package/src/global-account/react/hooks/useChainSwitchWithAction.ts +79 -0
- package/src/global-account/react/hooks/useClaim.tsx +66 -0
- package/src/global-account/react/hooks/useConnect.tsx +60 -0
- package/src/global-account/react/hooks/useExchangeRate.tsx +43 -0
- package/src/global-account/react/hooks/useGetAllTWSigners.tsx +139 -0
- package/src/global-account/react/hooks/useGetGeo.tsx +40 -0
- package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +78 -0
- package/src/global-account/react/hooks/useHasMounted.ts +11 -0
- package/src/global-account/react/hooks/useIsMobile.tsx +9 -0
- package/src/global-account/react/hooks/useIsomorphicLayoutEffect.tsx +3 -0
- package/src/global-account/react/hooks/useMediaQuery.tsx +60 -0
- package/src/global-account/react/hooks/useNativeBalance.tsx +90 -0
- package/src/global-account/react/hooks/useOnchainName.tsx +198 -0
- package/src/global-account/react/hooks/useOneBalance.tsx +95 -0
- package/src/global-account/react/hooks/useQueryB3.ts +72 -0
- package/src/global-account/react/hooks/useQueryBSMNT.ts +72 -0
- package/src/global-account/react/hooks/useRemoveSessionKey.tsx +69 -0
- package/src/global-account/react/hooks/useRouter.tsx +103 -0
- package/src/global-account/react/hooks/useSearchParamsSSR.tsx +34 -0
- package/src/global-account/react/hooks/useSiwe.tsx +39 -0
- package/src/global-account/react/hooks/useTokenBalance.tsx +85 -0
- package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +93 -0
- package/src/global-account/react/hooks/useTokenData.ts +56 -0
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +46 -0
- package/src/global-account/react/hooks/useTokenPrice.tsx +85 -0
- package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +58 -0
- package/src/global-account/react/hooks/useTokensFromAddress.ts +118 -0
- package/src/global-account/react/hooks/useURLParams.ts +43 -0
- package/src/global-account/react/stores/useAuthStore.ts +64 -0
- package/src/global-account/react/stores/useModalStore.ts +325 -0
- package/src/global-account/server.ts +23 -0
- package/src/global-account/types/b3-api.ts +4 -0
- package/src/global-account/types/b3-api.types.ts +83 -0
- package/src/global-account/types/chain-networks.ts +54 -0
- package/src/global-account/types/feature-flags.ts +13 -0
- package/src/global-account/types/permissions.ts +24 -0
- package/src/global-account/types/react-timeago.d.ts +18 -0
- package/src/global-account/types/reservoir.types.ts +94 -0
- package/src/global-account/types/simplehash.types.ts +301 -0
- package/src/global-account/types.ts +24 -0
- package/src/shared/constants/chains/b3Chain.ts +177 -0
- package/src/shared/constants/chains/chainPlatformMap.ts +47 -0
- package/src/shared/constants/chains/supported.ts +33 -0
- package/src/shared/constants/index.ts +26 -0
- package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1363 -0
- package/src/shared/thirdweb/generated/client.gen.ts +16 -0
- package/src/shared/thirdweb/generated/index.ts +3 -0
- package/src/shared/thirdweb/generated/sdk.gen.ts +1051 -0
- package/src/shared/thirdweb/generated/types.gen.ts +4349 -0
- package/src/shared/thirdweb/initiateClient.ts +30 -0
- package/src/shared/thirdweb/insight-service.json +12664 -0
- package/src/shared/thirdweb/openapi-ts.config.ts +7 -0
- package/src/shared/utils/b3Ens.ts +28 -0
- package/src/shared/utils/centerTruncate.ts +12 -0
- package/src/shared/utils/chain-transformers.ts +51 -0
- package/src/shared/utils/chains.ts +38 -0
- package/src/shared/utils/cn.ts +6 -0
- package/src/shared/utils/colors.ts +33 -0
- package/src/shared/utils/cookies.ts +13 -0
- package/src/shared/utils/debug.ts +17 -0
- package/src/shared/utils/fetchBalances.ts +89 -0
- package/src/shared/utils/fetchBsmntProfile.ts +29 -0
- package/src/shared/utils/formatAddress.ts +16 -0
- package/src/shared/utils/formatNumber.ts +43 -0
- package/src/shared/utils/index.ts +7 -0
- package/src/shared/utils/insights.ts +409 -0
- package/src/shared/utils/ipfs.ts +33 -0
- package/src/shared/utils/number.ts +142 -0
- package/src/shared/utils/payment.utils.ts +34 -0
- package/src/shared/utils/simplehash.ts +372 -0
- package/src/shared/utils/sprinter.ts +14 -0
- package/src/shared/utils/thirdweb-insights.ts +338 -0
- package/src/shared/utils/thirdweb.ts +11 -0
- package/src/styles/index.css +279 -0
- package/src/styles/index.ts +24 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useB3 } from "../../../../global-account";
|
|
4
|
+
import { TextShimmer } from "../../../../global-account/react/components/ui/text-shimmer";
|
|
5
|
+
import { useAccountWallet } from "../../../../global-account/react/hooks/useAccountWallet";
|
|
6
|
+
import { useModalStore } from "../../../../global-account/react/stores/useModalStore";
|
|
7
|
+
import debug from "../../../../shared/utils/debug";
|
|
8
|
+
import { Transak } from "@transak/transak-sdk";
|
|
9
|
+
import { Loader2 } from "lucide-react";
|
|
10
|
+
import { useEffect, useMemo, useState } from "react";
|
|
11
|
+
import { toast } from "sonner";
|
|
12
|
+
export default function TransakModal() {
|
|
13
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
14
|
+
const [_error, setError] = useState(null);
|
|
15
|
+
const account = useAccountWallet();
|
|
16
|
+
const { environment } = useB3();
|
|
17
|
+
console.log(`process.env.NEXT_PUBLIC_TRANSAK_API_KEY`, process.env.NEXT_PUBLIC_TRANSAK_API_KEY); // d1f4e8be-cacb-4cfa-b2cd-c591084b5ef6
|
|
18
|
+
const transakConfig = useMemo(() => {
|
|
19
|
+
return {
|
|
20
|
+
apiKey: process.env.NEXT_PUBLIC_TRANSAK_API_KEY || "", // (Required)
|
|
21
|
+
// Yes, I know it looks weird to use isDevelopment for staging, but this is how this was done on Basement. Leaving till confirming difference
|
|
22
|
+
environment: environment === "development" ? Transak.ENVIRONMENTS.STAGING : Transak.ENVIRONMENTS.PRODUCTION, // (Required)
|
|
23
|
+
containerId: "transakMount", // Id of the element where you want to initialize the iframe
|
|
24
|
+
themeColor: "0c68e9",
|
|
25
|
+
widgetHeight: "650px",
|
|
26
|
+
productsAvailed: "BUY",
|
|
27
|
+
hideMenu: true,
|
|
28
|
+
colorMode: "DARK",
|
|
29
|
+
backgroundColors: "000000", // TODO: figure out why this doesn't work
|
|
30
|
+
exchangeScreenTitle: "Buy ETH on B3",
|
|
31
|
+
isFeeCalculationHidden: true,
|
|
32
|
+
cryptoCurrencyCode: "ETH",
|
|
33
|
+
network: "b3"
|
|
34
|
+
};
|
|
35
|
+
}, [environment]);
|
|
36
|
+
const { ready } = useB3();
|
|
37
|
+
const modalOptions = useModalStore(state => state.contentType);
|
|
38
|
+
const isOnRamp = modalOptions?.type === "transak";
|
|
39
|
+
const destinationWalletAddress = isOnRamp ? modalOptions?.destinationWalletAddress : undefined;
|
|
40
|
+
const defaultCryptoAmount = isOnRamp ? modalOptions?.defaultCryptoAmount : undefined;
|
|
41
|
+
const onSuccess = isOnRamp ? modalOptions?.onSuccess : undefined;
|
|
42
|
+
const fiatAmount = isOnRamp ? modalOptions?.fiatAmount : undefined;
|
|
43
|
+
const countryCode = isOnRamp ? modalOptions?.countryCode : undefined;
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (!ready || !isOnRamp)
|
|
46
|
+
return;
|
|
47
|
+
const config = {
|
|
48
|
+
...transakConfig,
|
|
49
|
+
walletAddress: destinationWalletAddress || account?.address, // In the future, this should be set to the new global B3 SCW address
|
|
50
|
+
defaultCryptoAmount,
|
|
51
|
+
disableWalletAddressForm: !!destinationWalletAddress || !!account?.address, // Only disable the form if we have an address
|
|
52
|
+
fiatAmount: fiatAmount,
|
|
53
|
+
countryCode: countryCode
|
|
54
|
+
};
|
|
55
|
+
const transak = new Transak(config);
|
|
56
|
+
try {
|
|
57
|
+
transak.init();
|
|
58
|
+
// Add event listeners
|
|
59
|
+
Transak.on("*", data => {
|
|
60
|
+
debug("@@transak", data);
|
|
61
|
+
});
|
|
62
|
+
Transak.on(Transak.EVENTS.TRANSAK_WIDGET_CLOSE, () => {
|
|
63
|
+
setIsLoading(false);
|
|
64
|
+
debug("@@transak", "Transak SDK closed!");
|
|
65
|
+
});
|
|
66
|
+
Transak.on(Transak.EVENTS.TRANSAK_WIDGET_INITIALISED, () => {
|
|
67
|
+
debug("@@transak", "Transak SDK initialized!");
|
|
68
|
+
setIsLoading(false);
|
|
69
|
+
});
|
|
70
|
+
Transak.on(Transak.EVENTS.TRANSAK_ORDER_FAILED, orderData => {
|
|
71
|
+
debug("@@transak", orderData);
|
|
72
|
+
toast.error("Oh no! Something went wrong. Please try again.");
|
|
73
|
+
});
|
|
74
|
+
Transak.on(Transak.EVENTS.TRANSAK_ORDER_SUCCESSFUL, orderData => {
|
|
75
|
+
debug("@@transak", orderData);
|
|
76
|
+
toast.success("Successfully purchased ETH with credit card!");
|
|
77
|
+
onSuccess?.();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
setError(err instanceof Error ? err : new Error("Failed to initialize Transak"));
|
|
82
|
+
toast.error("Oh no! Something went wrong. Please try again.");
|
|
83
|
+
setIsLoading(false);
|
|
84
|
+
}
|
|
85
|
+
// Cleanup code
|
|
86
|
+
return () => {
|
|
87
|
+
transak.close();
|
|
88
|
+
};
|
|
89
|
+
}, [
|
|
90
|
+
ready,
|
|
91
|
+
account?.address,
|
|
92
|
+
destinationWalletAddress,
|
|
93
|
+
defaultCryptoAmount,
|
|
94
|
+
isOnRamp,
|
|
95
|
+
onSuccess,
|
|
96
|
+
fiatAmount,
|
|
97
|
+
transakConfig,
|
|
98
|
+
countryCode
|
|
99
|
+
]);
|
|
100
|
+
return (_jsxs(_Fragment, { children: [isLoading && (_jsxs("div", { className: "flex h-full min-h-[650px] flex-col items-center justify-center gap-4", children: [_jsx(Loader2, { className: "h-24 w-24 animate-spin opacity-10" }), _jsx(TextShimmer, { children: "Powering up our credit card processor..." })] })), _jsx("div", { id: "transakMount", style: {
|
|
101
|
+
display: isLoading ? "none" : "block",
|
|
102
|
+
width: "100%",
|
|
103
|
+
height: "650px",
|
|
104
|
+
borderRadius: "25px",
|
|
105
|
+
overflow: "hidden"
|
|
106
|
+
} })] }));
|
|
107
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const buttonVariants: (props?: ({
|
|
3
|
+
variant?: "link" | "default" | "b3" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
4
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
+
variant?: "default" | "outline";
|
|
8
|
+
size?: "default" | "sm" | "lg";
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function Button({ variant, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { buttonVariants };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../../shared/utils";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
const buttonVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-b3-react-ring disabled:pointer-events-none disabled:opacity-50", {
|
|
5
|
+
variants: {
|
|
6
|
+
// TODO: these variats aren't working atm maybe since TW isn't properly installed on react sdk
|
|
7
|
+
variant: {
|
|
8
|
+
default: "bg-b3-react-primary text-b3-react-primary-foreground shadow hover:bg-b3-react-primary/90",
|
|
9
|
+
destructive: "bg-destructive text-destructive-b3-react-foreground shadow-sm hover:bg-destructive/90",
|
|
10
|
+
outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
11
|
+
secondary: "bg-secondary text-secondary-b3-react-foreground shadow-sm hover:bg-secondary/80",
|
|
12
|
+
ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
13
|
+
link: "text-b3-react-primary underline-offset-4 hover:underline",
|
|
14
|
+
b3: "bg-[#3368ef] text-white hover:bg-[#3368ef]/90"
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: "h-9 px-4 py-2",
|
|
18
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
19
|
+
lg: "h-10 rounded-md px-8",
|
|
20
|
+
icon: "h-9 w-9"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export function Button({ variant = "default", className, ...props }) {
|
|
29
|
+
return (_jsx("button", { className: cn("flex items-center justify-center rounded-lg px-4 py-2 font-medium transition-colors", variant === "default" && "bg-b3-react-primary text-b3-react-primary-foreground hover:bg-b3-react-primary/90", variant === "outline" &&
|
|
30
|
+
"border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground border", className), ...props }));
|
|
31
|
+
}
|
|
32
|
+
export { buttonVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useHasMounted } from "../../../../global-account/react/hooks/useHasMounted";
|
|
3
|
+
export default function ClientOnly({ children, fallback }) {
|
|
4
|
+
const hasMounted = useHasMounted();
|
|
5
|
+
// During SSR and initial client render, show fallback
|
|
6
|
+
if (!hasMounted) {
|
|
7
|
+
return fallback || null;
|
|
8
|
+
}
|
|
9
|
+
return children;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check, Copy } from "lucide-react";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
export function CopyToClipboard({ text, onCopy, children }) {
|
|
5
|
+
const [copied, setCopied] = useState(false);
|
|
6
|
+
const handleCopy = async () => {
|
|
7
|
+
if (!text)
|
|
8
|
+
return;
|
|
9
|
+
await navigator.clipboard.writeText(text);
|
|
10
|
+
setCopied(true);
|
|
11
|
+
onCopy?.();
|
|
12
|
+
setTimeout(() => setCopied(false), 2000);
|
|
13
|
+
};
|
|
14
|
+
if (children) {
|
|
15
|
+
return (_jsx("div", { onClick: handleCopy, className: "cursor-pointer", children: children }));
|
|
16
|
+
}
|
|
17
|
+
return (_jsx("div", { onClick: handleCopy, className: "text-b3-react-muted-foreground hover:text-b3-react-foreground flex cursor-pointer items-center gap-1 text-xs transition-all duration-200", children: copied ? (_jsxs(_Fragment, { children: [_jsx(Check, { className: "h-4 w-4" }), _jsx("span", { children: "Copied" })] })) : (_jsxs(_Fragment, { children: [_jsx(Copy, { className: "h-4 w-4" }), _jsx("span", { children: "Copy" })] })) }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from "framer-motion";
|
|
3
|
+
export default function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }) {
|
|
4
|
+
const circleVariants = {
|
|
5
|
+
hidden: { opacity: 0 },
|
|
6
|
+
visible: { opacity: 1 }
|
|
7
|
+
};
|
|
8
|
+
const sizeClass = {
|
|
9
|
+
1: "h-1 w-1",
|
|
10
|
+
2: "h-2 w-2",
|
|
11
|
+
3: "h-3 w-3",
|
|
12
|
+
4: "h-4 w-4",
|
|
13
|
+
5: "h-5 w-5"
|
|
14
|
+
}?.[size] || "h-4 w-4";
|
|
15
|
+
return (_jsx("div", { className: `flex items-center justify-center ${size <= 2 ? "space-x-1" : "space-x-2"}`, children: [...Array(3)].map((_, index) => (_jsx(motion.div, { className: `${sizeClass} rounded-full ${className}`, variants: circleVariants, initial: "hidden", animate: "visible", transition: {
|
|
16
|
+
duration: 0.9,
|
|
17
|
+
delay: index * 0.2,
|
|
18
|
+
repeat: Infinity,
|
|
19
|
+
repeatType: "reverse"
|
|
20
|
+
} }, index))) }));
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { WalletCoinbase, WalletMetamask, WalletPhantom, WalletRabby, WalletRainbow, WalletWalletConnect } from "@web3icons/react";
|
|
3
|
+
import { Wallet } from "lucide-react";
|
|
4
|
+
const getWalletIcon = (connectorType, size = 24) => {
|
|
5
|
+
switch (connectorType?.toLowerCase()) {
|
|
6
|
+
case "metamask":
|
|
7
|
+
return _jsx(WalletMetamask, { width: size, height: size });
|
|
8
|
+
case "coinbase":
|
|
9
|
+
return _jsx(WalletCoinbase, { width: size, height: size });
|
|
10
|
+
case "phantom":
|
|
11
|
+
return _jsx(WalletPhantom, { width: size, height: size });
|
|
12
|
+
case "walletconnect":
|
|
13
|
+
return _jsx(WalletWalletConnect, { width: size, height: size });
|
|
14
|
+
case "rabby":
|
|
15
|
+
return _jsx(WalletRabby, { width: size, height: size });
|
|
16
|
+
case "rainbow":
|
|
17
|
+
return _jsx(WalletRainbow, { width: size, height: size });
|
|
18
|
+
default:
|
|
19
|
+
return _jsx(Wallet, { width: size, height: size });
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export default function WalletConnectorIcon({ connectorType, size = 24 }) {
|
|
23
|
+
return getWalletIcon(connectorType, size);
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface AnimatedLottieProps {
|
|
3
|
+
src: string;
|
|
4
|
+
autoplay?: boolean;
|
|
5
|
+
loop?: boolean;
|
|
6
|
+
delay?: number;
|
|
7
|
+
animateBounce?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
reverse?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const AnimatedLottie: React.FC<AnimatedLottieProps>;
|
|
13
|
+
export default AnimatedLottie;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { DotLottieReact } from "@lottiefiles/dotlottie-react";
|
|
4
|
+
import { motion } from "framer-motion";
|
|
5
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
6
|
+
const AnimatedLottie = React.memo(({ src, autoplay = false, loop = false, delay = 0, animateBounce = true, className, style, reverse = false }) => {
|
|
7
|
+
const [dotLottie, setDotLottie] = useState(null);
|
|
8
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
9
|
+
const onComplete = useCallback(() => {
|
|
10
|
+
if (!isHovered && dotLottie) {
|
|
11
|
+
try {
|
|
12
|
+
dotLottie.pause();
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.error("Failed to pause animation:", error);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, [isHovered, dotLottie]);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (dotLottie) {
|
|
21
|
+
dotLottie.addEventListener("complete", onComplete);
|
|
22
|
+
return () => {
|
|
23
|
+
dotLottie.removeEventListener("complete", onComplete);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}, [dotLottie, onComplete]);
|
|
27
|
+
const dotLottieRefCallback = useCallback((instance) => {
|
|
28
|
+
setDotLottie(instance);
|
|
29
|
+
if (autoplay && instance) {
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
try {
|
|
32
|
+
instance.play();
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
console.error("Failed to play animation:", error);
|
|
36
|
+
}
|
|
37
|
+
}, delay ? delay * 1000 : 0);
|
|
38
|
+
}
|
|
39
|
+
}, [autoplay, delay]);
|
|
40
|
+
const handleMouseEnter = useCallback(() => {
|
|
41
|
+
setIsHovered(true);
|
|
42
|
+
try {
|
|
43
|
+
dotLottie?.play();
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
console.error("Failed to play animation:", error);
|
|
47
|
+
}
|
|
48
|
+
}, [dotLottie]);
|
|
49
|
+
const handleMouseLeave = useCallback(() => {
|
|
50
|
+
setIsHovered(false);
|
|
51
|
+
}, []);
|
|
52
|
+
const animateProps = useMemo(() => ({
|
|
53
|
+
scale: animateBounce ? [1, 0.95, 1.05, 1] : 1
|
|
54
|
+
}), [animateBounce]);
|
|
55
|
+
return (_jsx(motion.div, { whileHover: { scale: 1.05 }, initial: { scale: 1 }, animate: animateProps, transition: { duration: 0.3, ease: "easeInOut" }, className: className, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: _jsx(DotLottieReact, { src: src, dotLottieRefCallback: dotLottieRefCallback, style: style, autoplay: autoplay, loop: loop, mode: reverse ? "reverse" : "forward" }) }));
|
|
56
|
+
});
|
|
57
|
+
AnimatedLottie.displayName = "AnimatedLottie";
|
|
58
|
+
export default AnimatedLottie;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../../shared/utils";
|
|
3
|
+
import { Loader2 } from "lucide-react";
|
|
4
|
+
export function Loading({ className, size = "md", variant = "white" }) {
|
|
5
|
+
const sizeClass = {
|
|
6
|
+
sm: "h-6 w-6",
|
|
7
|
+
md: "h-8 w-8",
|
|
8
|
+
lg: "h-12 w-12"
|
|
9
|
+
}[size];
|
|
10
|
+
const variantClass = {
|
|
11
|
+
primary: "text-b3-react-primary",
|
|
12
|
+
white: "text-white opacity-50"
|
|
13
|
+
}[variant];
|
|
14
|
+
return (_jsx("div", { className: cn("relative", sizeClass, className), children: _jsx(Loader2, { className: cn("animate-spin", sizeClass, variantClass) }) }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const ShinyButton: ({ text, accentColor, animatedPulse, className, children, onClick, onClickCapture, disabled, textColor, textClassName, type }: {
|
|
2
|
+
text?: string;
|
|
3
|
+
accentColor?: string;
|
|
4
|
+
animatedPulse?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
onClickCapture?: () => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
textClassName?: string;
|
|
12
|
+
type?: "button" | "submit" | "reset";
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default ShinyButton;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import StaggeredFadeLoader from "../../../../global-account/react/components/custom/StaggeredFadeLoader";
|
|
4
|
+
import { cn } from "../../../../shared/utils";
|
|
5
|
+
import { isLightColor } from "../../../../shared/utils/colors";
|
|
6
|
+
import { useInView } from "react-intersection-observer";
|
|
7
|
+
const ShinyButton = ({ text = "shiny-button", accentColor, animatedPulse = true, className = "", children, onClick, onClickCapture, disabled, textColor = "", textClassName = "", type = "button" }) => {
|
|
8
|
+
const { ref, inView } = useInView({
|
|
9
|
+
triggerOnce: false,
|
|
10
|
+
threshold: 0.1
|
|
11
|
+
});
|
|
12
|
+
const computedTextColor = textColor ||
|
|
13
|
+
(accentColor?.startsWith("hsl")
|
|
14
|
+
? "text-[rgb(0,0,0,65%)] dark:text-[rgb(255,255,255,90%)]"
|
|
15
|
+
: accentColor && isLightColor(accentColor)
|
|
16
|
+
? "text-black/90"
|
|
17
|
+
: "text-white");
|
|
18
|
+
return (_jsxs("button", { ref: ref, className: cn(`shiny-button relative min-h-fit rounded-2xl border border-black/10 px-6 py-3 tracking-wide backdrop-blur-xl transition-all duration-300 ease-in-out dark:bg-[radial-gradient(ellipse_at_50%_0%,hsl(var(--b3-react-primary)/25%)_0%,transparent_70%)] ${className}`, disabled
|
|
19
|
+
? "grayscale-20 cursor-not-allowed opacity-60"
|
|
20
|
+
: "hover:border-black/30 hover:shadow-[0_0_20px_rgb(0,0,0,20%)]", animatedPulse && inView && "animated-pulse"), style: {
|
|
21
|
+
backgroundColor: disabled ? "#94A3B8" : accentColor
|
|
22
|
+
}, onClick: !disabled ? onClick : undefined, onClickCapture: onClickCapture, disabled: disabled, type: type, children: [_jsx("div", { className: "absolute inset-0 bottom-0 left-0 right-0 top-0 rounded-2xl border border-white/10" }), _jsx("span", { className: cn("font-sf-rounded relative block h-full w-full text-lg font-semibold tracking-wide", computedTextColor), children: _jsxs("div", { className: cn("flex items-center justify-center gap-2", textClassName), children: [children || text, text === "Loading" && _jsx(StaggeredFadeLoader, { size: 2 })] }) }), _jsx("span", { className: "shiny-overlay" })] }));
|
|
23
|
+
};
|
|
24
|
+
export default ShinyButton;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface TabsRootProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onValueChange: (value: string) => void;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Tabs({ value, onValueChange, children, className }: TabsRootProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
interface TabsListProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
hideGradient?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function TabsList({ children, className, hideGradient }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
interface TabTriggerProps {
|
|
16
|
+
value: string;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function TabTrigger({ value, children, icon, disabled }: TabTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
interface TabsContentProps {
|
|
23
|
+
value: string;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare function TabsContent({ value, children }: TabsContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
export declare function TabsTransitionWrapper({ children }: {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { TransitionPanel } from "../../../../global-account/react/components/ui/transition-panel";
|
|
4
|
+
import { cn } from "../../../../shared/utils/cn";
|
|
5
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
6
|
+
import React, { createContext, useContext } from "react";
|
|
7
|
+
const TabsContext = createContext(undefined);
|
|
8
|
+
export function Tabs({ value, onValueChange, children, className = "" }) {
|
|
9
|
+
return (_jsx(TabsContext.Provider, { value: { selectedTab: value, onTabChange: onValueChange }, children: _jsx("div", { className: className, children: children }) }));
|
|
10
|
+
}
|
|
11
|
+
export function TabsList({ children, className = "", hideGradient = false }) {
|
|
12
|
+
return (_jsxs("div", { className: "relative w-full", children: [_jsx("div", { role: "tablist", className: cn("no-scrollbar relative mb-4 flex items-center gap-2 whitespace-nowrap", className), children: children }), _jsx(AnimatePresence, { mode: "wait", children: !hideGradient && (_jsxs(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.2, delay: 0.2 }, children: [_jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 top-0 z-10 w-8 bg-gradient-to-r from-[#15121c] to-transparent md:hidden" }), _jsx("div", { className: "pointer-events-none absolute bottom-0 right-0 top-0 z-10 w-8 bg-gradient-to-l from-[#15121c] to-transparent md:hidden" })] }, "gradients-container")) })] }));
|
|
13
|
+
}
|
|
14
|
+
export function TabTrigger({ value, children, icon, disabled = false }) {
|
|
15
|
+
const context = useContext(TabsContext);
|
|
16
|
+
if (!context)
|
|
17
|
+
throw new Error("TabTrigger must be used within Tabs");
|
|
18
|
+
const { selectedTab, onTabChange } = context;
|
|
19
|
+
const isSelected = selectedTab === value;
|
|
20
|
+
return (_jsxs("button", { role: "tab", "aria-selected": isSelected, "aria-controls": `panel-${value}`, id: `tab-${value}`, onClick: () => onTabChange(value), className: `relative rounded-full px-4 py-2 text-sm text-white transition-all duration-200 hover:text-white focus:outline-none`, disabled: disabled, children: [_jsxs("span", { className: `${isSelected ? "opacity-100" : "opacity-50"} relative z-10 flex items-center gap-2 font-semibold uppercase`, children: [children, icon] }), isSelected && (_jsx(motion.span, { layoutId: "activeTab", transition: { type: "spring", duration: 0.4 }, className: "from-as-light-brand to-as-brand/10 border-as-brand/30 absolute inset-0 z-0 rounded-full border border-t-white/15 bg-gradient-to-b shadow-lg" }))] }));
|
|
21
|
+
}
|
|
22
|
+
export function TabsContent({ value, children }) {
|
|
23
|
+
const context = useContext(TabsContext);
|
|
24
|
+
if (!context)
|
|
25
|
+
throw new Error("TabsContent must be used within Tabs");
|
|
26
|
+
const { selectedTab } = context;
|
|
27
|
+
const isSelected = selectedTab === value;
|
|
28
|
+
if (!isSelected)
|
|
29
|
+
return null;
|
|
30
|
+
return (_jsx("div", { role: "tabpanel", id: `panel-${value}`, "aria-labelledby": `tab-${value}`, tabIndex: 0, className: "focus:outline-none", children: children }));
|
|
31
|
+
}
|
|
32
|
+
export function TabsTransitionWrapper({ children }) {
|
|
33
|
+
const context = useContext(TabsContext);
|
|
34
|
+
if (!context)
|
|
35
|
+
throw new Error("TabsTransitionWrapper must be used within Tabs");
|
|
36
|
+
// Find the index of the selected tab among the children
|
|
37
|
+
const childrenArray = React.Children.toArray(children);
|
|
38
|
+
const activeIndex = childrenArray.findIndex(child => React.isValidElement(child) &&
|
|
39
|
+
"value" in child.props &&
|
|
40
|
+
child.props.value === context.selectedTab);
|
|
41
|
+
return (_jsx(TransitionPanel, { activeIndex: activeIndex, className: "w-full", transition: { type: "spring", stiffness: 300, damping: 30 }, variants: {
|
|
42
|
+
enter: { opacity: 0, filter: "blur(10px)", x: 20 },
|
|
43
|
+
center: { opacity: 1, filter: "blur(0px)", x: 0 },
|
|
44
|
+
exit: { opacity: 0, filter: "blur(10px)", x: -20 }
|
|
45
|
+
}, children: childrenArray }));
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
|
+
export declare const Tabs: ({ defaultValue, onValueChange, children }: {
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
onValueChange?: (value: string) => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TabTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../../shared/utils";
|
|
3
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
|
+
export const Tabs = ({ defaultValue, onValueChange, children }) => (_jsx(TabsPrimitive.Root, { defaultValue: defaultValue, onValueChange: onValueChange, children: children }));
|
|
5
|
+
export function TabsList({ className, ...props }) {
|
|
6
|
+
return (_jsx(TabsPrimitive.List, { className: cn("border-b3-react-border bg-b3-react-background inline-flex h-12 w-full items-center justify-center rounded-lg border", className), ...props }));
|
|
7
|
+
}
|
|
8
|
+
export function TabTrigger({ className, ...props }) {
|
|
9
|
+
return (_jsx(TabsPrimitive.Trigger, { className: cn("inline-flex h-full items-center justify-center whitespace-nowrap px-3 text-sm font-medium transition-all", "focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-b3-react-subtle data-[state=active]:text-b3-react-primary data-[state=active]:font-bold", "border-b3-react-border hover:text-b3-react-foreground data-[state=inactive]:border-b3-react-border data-[state=inactive]:text-b3-react-muted-foreground", "flex-1 border-r", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
export function TabsContent({ className, ...props }) {
|
|
12
|
+
return (_jsx(TabsPrimitive.Content, { className: cn("ring-offset-b3-react-background focus-visible:ring-b3-react-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", className), ...props }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { cn } from "../../../../shared/utils";
|
|
4
|
+
const badgeVariants = cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-b3-react-ring focus:ring-offset-2", {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "border-transparent bg-b3-react-primary text-b3-react-primary-foreground hover:bg-b3-react-primary/80",
|
|
8
|
+
secondary: "border-transparent bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
|
|
9
|
+
destructive: "border-destructive bg-destructive/50 text-destructive-b3-react-foreground hover:bg-destructive/80",
|
|
10
|
+
outline: "text-b3-react-foreground"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "default"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
function Badge({ className, variant, ...props }) {
|
|
18
|
+
return _jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
19
|
+
}
|
|
20
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "../../../../shared/utils";
|
|
6
|
+
const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-b3-react-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-b3-react-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-b3-react-primary text-b3-react-primary-foreground hover:bg-b3-react-primary/90",
|
|
10
|
+
destructive: "bg-destructive text-destructive-b3-react-foreground hover:bg-destructive/90 bg-red-600/80 border border-red-500/80 backdrop-blur-sm hover:bg-red-500 transition-colors",
|
|
11
|
+
outline: "border border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
12
|
+
secondary: "bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
|
|
13
|
+
ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
14
|
+
link: "text-b3-react-primary underline-offset-4 hover:underline"
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
default: "h-10 px-4 py-2",
|
|
18
|
+
sm: "h-9 rounded-md px-3",
|
|
19
|
+
lg: "h-11 rounded-md px-8",
|
|
20
|
+
icon: "h-10 w-10"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
size: "default"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
29
|
+
if (asChild) {
|
|
30
|
+
return (_jsx(Slot, { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props }));
|
|
31
|
+
}
|
|
32
|
+
return _jsx("button", { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props });
|
|
33
|
+
});
|
|
34
|
+
Button.displayName = "Button";
|
|
35
|
+
export { Button, buttonVariants };
|