@b3dotfun/sdk 0.0.7-alpha.9 → 0.0.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/anyspend/abis/abi-usdc-base.js +97 -97
- package/dist/cjs/anyspend/abis/erc20-staking.js +51 -51
- package/dist/cjs/anyspend/abis/signature-minting.d.ts +79 -0
- package/dist/cjs/anyspend/abis/signature-minting.js +45 -0
- package/dist/cjs/anyspend/constants/index.js +10 -10
- package/dist/cjs/anyspend/index.d.ts +3 -2
- package/dist/cjs/anyspend/index.js +3 -4
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +69 -68
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +36 -34
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +122 -102
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +4 -4
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +17 -17
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +4 -4
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +77 -0
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +50 -61
- package/dist/cjs/anyspend/react/components/common/OrderHistory.js +6 -6
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderToken.js +4 -4
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +9 -9
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +15 -14
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +3 -3
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +26 -25
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/TokenBalance.js +2 -2
- package/dist/cjs/anyspend/react/components/common/Warning.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/common/Warning.js +7 -0
- package/dist/cjs/anyspend/react/components/index.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/index.js +5 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +6 -6
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +26 -25
- package/dist/cjs/anyspend/react/hooks/index.d.ts +1 -2
- package/dist/cjs/anyspend/react/hooks/index.js +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -70
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -70
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useGetGeo.js +1 -1
- package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +140 -0
- package/dist/cjs/anyspend/react/hooks/useSigMint.js +39 -0
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +2 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +7 -6
- package/dist/cjs/anyspend/services/anyspend.d.ts +7 -40
- package/dist/cjs/anyspend/services/anyspend.js +10 -23
- package/dist/cjs/anyspend/types/custom.js +2 -2
- package/dist/cjs/anyspend/types/globalWallet.js +1 -1
- package/dist/cjs/anyspend/types/index.d.ts +0 -1
- package/dist/cjs/anyspend/types/index.js +0 -1
- package/dist/cjs/anyspend/types/nft.js +6 -6
- package/dist/cjs/anyspend/types/onramp.d.ts +3 -0
- package/dist/cjs/anyspend/types/onramp.js +2 -1
- package/dist/cjs/anyspend/types/order.d.ts +30 -200
- package/dist/cjs/anyspend/types/order.js +7 -12
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +70 -235
- package/dist/cjs/anyspend/types/req-res/createOrder.js +9 -9
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -305
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +2 -2
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +35 -235
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +10 -8
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +3 -3
- package/dist/cjs/anyspend/types/req-res/index.d.ts +0 -1
- package/dist/cjs/anyspend/types/req-res/index.js +0 -1
- package/dist/cjs/anyspend/types/signature-mint.d.ts +69 -0
- package/dist/cjs/anyspend/types/signature-mint.js +2 -0
- package/dist/cjs/anyspend/types/swap.js +2 -2
- package/dist/cjs/anyspend/types/token.js +2 -2
- package/dist/cjs/anyspend/types/tournament.js +4 -4
- package/dist/cjs/anyspend/types/transaction.js +4 -4
- package/dist/cjs/anyspend/utils/chain.js +16 -16
- package/dist/cjs/anyspend/utils/format.js +2 -6
- package/dist/cjs/anyspend/utils/orderPayload.js +6 -6
- package/dist/cjs/anyspend/utils/token.js +10 -10
- package/dist/cjs/global-account/app.js +4 -4
- package/dist/cjs/global-account/app.native.js +4 -4
- package/dist/cjs/global-account/bsmnt.js +4 -4
- package/dist/cjs/global-account/bsmnt.native.js +4 -4
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +13 -3
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +16 -15
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
- package/dist/cjs/global-account/react/components/B3Provider/types.js +1 -1
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +5 -5
- package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/MintButton/MintButton.js +5 -5
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +2 -2
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +5 -5
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +12 -12
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
- package/dist/cjs/global-account/react/components/Transak/TransakModal.js +4 -4
- package/dist/cjs/global-account/react/components/custom/Button.js +5 -5
- package/dist/cjs/global-account/react/components/custom/Icon.js +1 -1
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +1 -1
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
- package/dist/cjs/global-account/react/components/index.d.ts +4 -4
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +1 -1
- package/dist/cjs/global-account/react/components/ui/Loading.js +2 -2
- package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/ShinyButton.js +3 -3
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +1 -1
- package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/Tabs.js +1 -1
- package/dist/cjs/global-account/react/components/ui/badge.js +4 -4
- package/dist/cjs/global-account/react/components/ui/button.js +5 -5
- package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +12 -12
- package/dist/cjs/global-account/react/components/ui/glare-card.js +11 -11
- package/dist/cjs/global-account/react/components/ui/input.js +1 -1
- package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/text-loop.js +2 -2
- package/dist/cjs/global-account/react/components/ui/text-shimmer.js +2 -2
- package/dist/cjs/global-account/react/components/ui/tooltip.js +1 -1
- package/dist/cjs/global-account/react/hooks/useAccountAssets.js +4 -4
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -8
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +6 -6
- package/dist/cjs/global-account/react/hooks/useAuthentication.js +3 -3
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
- package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +7 -0
- package/dist/cjs/global-account/react/hooks/useB3EnsName.js +15 -6
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +10 -10
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +1 -1
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
- package/dist/cjs/global-account/react/hooks/useClaim.js +4 -4
- package/dist/cjs/global-account/react/hooks/useConnect.js +3 -3
- package/dist/cjs/global-account/react/hooks/useExchangeRate.js +3 -3
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +7 -7
- package/dist/cjs/global-account/react/hooks/useGetGeo.js +1 -1
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
- package/dist/cjs/global-account/react/hooks/useNativeBalance.js +6 -6
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +10 -10
- package/dist/cjs/global-account/react/hooks/useOneBalance.js +2 -2
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +3 -3
- package/dist/cjs/global-account/react/hooks/useRouter.js +6 -6
- package/dist/cjs/global-account/react/hooks/useSiwe.js +4 -4
- package/dist/cjs/global-account/react/hooks/useTokenBalance.js +6 -6
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
- package/dist/cjs/global-account/react/hooks/useTokenData.js +3 -3
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +14 -14
- package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenPrice.js +6 -6
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +2 -2
- package/dist/cjs/global-account/react/hooks/useURLParams.js +1 -1
- package/dist/cjs/global-account/react/stores/index.d.ts +1 -1
- package/dist/cjs/global-account/react/stores/useAuthStore.js +3 -3
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +17 -2
- package/dist/cjs/global-account/react/stores/useModalStore.js +3 -3
- package/dist/cjs/global-account/server.js +3 -3
- package/dist/cjs/global-account/types/chain-networks.js +8 -8
- package/dist/cjs/global-account/types/feature-flags.js +1 -1
- package/dist/cjs/shared/constants/chains/b3Chain.js +35 -35
- package/dist/cjs/shared/constants/chains/chainPlatformMap.js +1 -1
- package/dist/cjs/shared/constants/chains/supported.js +1 -1
- package/dist/cjs/shared/constants/index.js +1 -1
- package/dist/cjs/shared/react/hooks/index.d.ts +1 -0
- package/dist/cjs/shared/react/hooks/index.js +17 -0
- package/dist/cjs/shared/react/hooks/useNavigation.d.ts +17 -0
- package/dist/cjs/shared/react/hooks/useNavigation.js +57 -0
- package/dist/cjs/shared/react/index.d.ts +1 -0
- package/dist/cjs/shared/react/index.js +17 -0
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +1 -1
- package/dist/cjs/shared/thirdweb/initiateClient.js +2 -2
- package/dist/cjs/shared/thirdweb/openapi-ts.config.js +1 -1
- package/dist/cjs/shared/utils/b3Ens.js +4 -4
- package/dist/cjs/shared/utils/chain-transformers.js +9 -9
- package/dist/cjs/shared/utils/fetchBalances.js +4 -4
- package/dist/cjs/shared/utils/formatUsername.d.ts +1 -0
- package/dist/cjs/shared/utils/formatUsername.js +8 -0
- package/dist/cjs/shared/utils/index.d.ts +3 -10
- package/dist/cjs/shared/utils/index.js +4 -23
- package/dist/cjs/shared/utils/insights.js +28 -28
- package/dist/cjs/shared/utils/ipfs.js +1 -1
- package/dist/cjs/shared/utils/number.js +3 -3
- package/dist/cjs/shared/utils/simplehash.js +22 -22
- package/dist/cjs/shared/utils/thirdweb-insights.js +15 -15
- package/dist/cjs/shared/utils/truncateAddress.d.ts +6 -0
- package/dist/cjs/shared/utils/truncateAddress.js +16 -0
- package/dist/esm/anyspend/abis/abi-usdc-base.js +97 -97
- package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
- package/dist/esm/anyspend/abis/signature-minting.d.ts +79 -0
- package/dist/esm/anyspend/abis/signature-minting.js +42 -0
- package/dist/esm/anyspend/constants/index.js +10 -10
- package/dist/esm/anyspend/index.d.ts +3 -2
- package/dist/esm/anyspend/index.js +3 -4
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpend.js +23 -22
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +37 -35
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +94 -74
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +4 -4
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +1 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +18 -18
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +4 -4
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +71 -0
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +1 -1
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +51 -62
- package/dist/esm/anyspend/react/components/common/OrderHistory.js +1 -1
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/OrderToken.js +4 -4
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +3 -3
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +9 -8
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +3 -3
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +14 -13
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/TokenBalance.js +2 -2
- package/dist/esm/anyspend/react/components/common/Warning.d.ts +3 -0
- package/dist/esm/anyspend/react/components/common/Warning.js +4 -0
- package/dist/esm/anyspend/react/components/index.d.ts +2 -0
- package/dist/esm/anyspend/react/components/index.js +2 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +2 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +16 -15
- package/dist/esm/anyspend/react/hooks/index.d.ts +1 -2
- package/dist/esm/anyspend/react/hooks/index.js +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +7 -7
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -70
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -70
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +3 -3
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useGetGeo.js +1 -1
- package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +140 -0
- package/dist/esm/anyspend/react/hooks/useSigMint.js +33 -0
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +2 -2
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +2 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +5 -4
- package/dist/esm/anyspend/services/anyspend.d.ts +7 -40
- package/dist/esm/anyspend/services/anyspend.js +11 -24
- package/dist/esm/anyspend/types/custom.js +2 -2
- package/dist/esm/anyspend/types/globalWallet.js +1 -1
- package/dist/esm/anyspend/types/index.d.ts +0 -1
- package/dist/esm/anyspend/types/index.js +0 -1
- package/dist/esm/anyspend/types/nft.js +6 -6
- package/dist/esm/anyspend/types/onramp.d.ts +3 -0
- package/dist/esm/anyspend/types/onramp.js +2 -1
- package/dist/esm/anyspend/types/order.d.ts +30 -200
- package/dist/esm/anyspend/types/order.js +7 -12
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +70 -235
- package/dist/esm/anyspend/types/req-res/createOrder.js +9 -9
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -305
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +2 -2
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +35 -235
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +10 -8
- package/dist/esm/anyspend/types/req-res/getTokenList.js +3 -3
- package/dist/esm/anyspend/types/req-res/index.d.ts +0 -1
- package/dist/esm/anyspend/types/req-res/index.js +0 -1
- package/dist/esm/anyspend/types/signature-mint.d.ts +69 -0
- package/dist/esm/anyspend/types/signature-mint.js +1 -0
- package/dist/esm/anyspend/types/swap.js +2 -2
- package/dist/esm/anyspend/types/token.js +2 -2
- package/dist/esm/anyspend/types/tournament.js +4 -4
- package/dist/esm/anyspend/types/transaction.js +4 -4
- package/dist/esm/anyspend/utils/chain.js +18 -18
- package/dist/esm/anyspend/utils/format.js +2 -6
- package/dist/esm/anyspend/utils/orderPayload.js +6 -6
- package/dist/esm/anyspend/utils/token.js +10 -10
- package/dist/esm/global-account/app.js +4 -4
- package/dist/esm/global-account/app.native.js +4 -4
- package/dist/esm/global-account/bsmnt.js +4 -4
- package/dist/esm/global-account/bsmnt.native.js +4 -4
- package/dist/esm/global-account/react/components/B3DynamicModal.js +14 -4
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +7 -6
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
- package/dist/esm/global-account/react/components/B3Provider/types.js +1 -1
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +6 -6
- package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/MintButton/MintButton.js +5 -5
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +2 -2
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +6 -6
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -13
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +3 -3
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
- package/dist/esm/global-account/react/components/Transak/TransakModal.js +4 -4
- package/dist/esm/global-account/react/components/custom/Button.js +5 -5
- package/dist/esm/global-account/react/components/custom/Icon.js +1 -1
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +1 -1
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +1 -1
- package/dist/esm/global-account/react/components/index.d.ts +4 -4
- package/dist/esm/global-account/react/components/index.js +4 -4
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +1 -1
- package/dist/esm/global-account/react/components/ui/Loading.js +2 -2
- package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/ShinyButton.js +3 -3
- package/dist/esm/global-account/react/components/ui/TabSystem.js +1 -1
- package/dist/esm/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/Tabs.js +1 -1
- package/dist/esm/global-account/react/components/ui/badge.js +4 -4
- package/dist/esm/global-account/react/components/ui/button.js +5 -5
- package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/command.js +1 -1
- package/dist/esm/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/dialog.js +1 -1
- package/dist/esm/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/drawer.js +1 -1
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +12 -12
- package/dist/esm/global-account/react/components/ui/glare-card.js +11 -11
- package/dist/esm/global-account/react/components/ui/input.js +1 -1
- package/dist/esm/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/text-loop.js +2 -2
- package/dist/esm/global-account/react/components/ui/text-shimmer.js +2 -2
- package/dist/esm/global-account/react/components/ui/tooltip.js +1 -1
- package/dist/esm/global-account/react/hooks/useAccountAssets.js +4 -4
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -8
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +6 -6
- package/dist/esm/global-account/react/hooks/useAuthentication.js +3 -3
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
- package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +7 -0
- package/dist/esm/global-account/react/hooks/useB3EnsName.js +15 -6
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +10 -10
- package/dist/esm/global-account/react/hooks/useBsmntProfile.js +1 -1
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
- package/dist/esm/global-account/react/hooks/useClaim.js +4 -4
- package/dist/esm/global-account/react/hooks/useConnect.js +3 -3
- package/dist/esm/global-account/react/hooks/useExchangeRate.js +3 -3
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +7 -7
- package/dist/esm/global-account/react/hooks/useGetGeo.js +1 -1
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
- package/dist/esm/global-account/react/hooks/useNativeBalance.js +6 -6
- package/dist/esm/global-account/react/hooks/useOnchainName.js +10 -10
- package/dist/esm/global-account/react/hooks/useOneBalance.js +2 -2
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +3 -3
- package/dist/esm/global-account/react/hooks/useRouter.js +6 -6
- package/dist/esm/global-account/react/hooks/useSiwe.js +4 -4
- package/dist/esm/global-account/react/hooks/useTokenBalance.js +6 -6
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
- package/dist/esm/global-account/react/hooks/useTokenData.js +3 -3
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -13
- package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenPrice.js +6 -6
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +2 -2
- package/dist/esm/global-account/react/hooks/useURLParams.js +1 -1
- package/dist/esm/global-account/react/stores/index.d.ts +1 -1
- package/dist/esm/global-account/react/stores/useAuthStore.js +3 -3
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +17 -2
- package/dist/esm/global-account/react/stores/useModalStore.js +3 -3
- package/dist/esm/global-account/server.js +3 -3
- package/dist/esm/global-account/types/chain-networks.js +8 -8
- package/dist/esm/global-account/types/feature-flags.js +1 -1
- package/dist/esm/shared/constants/chains/b3Chain.js +35 -35
- package/dist/esm/shared/constants/chains/chainPlatformMap.js +1 -1
- package/dist/esm/shared/constants/chains/supported.js +1 -1
- package/dist/esm/shared/constants/index.js +1 -1
- package/dist/esm/shared/react/hooks/index.d.ts +1 -0
- package/dist/esm/shared/react/hooks/index.js +1 -0
- package/dist/esm/shared/react/hooks/useNavigation.d.ts +17 -0
- package/dist/esm/shared/react/hooks/useNavigation.js +52 -0
- package/dist/esm/shared/react/index.d.ts +1 -0
- package/dist/esm/shared/react/index.js +1 -0
- package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/sdk.gen.js +1 -1
- package/dist/esm/shared/thirdweb/initiateClient.js +2 -2
- package/dist/esm/shared/thirdweb/openapi-ts.config.js +1 -1
- package/dist/esm/shared/utils/b3Ens.js +4 -4
- package/dist/esm/shared/utils/chain-transformers.js +9 -9
- package/dist/esm/shared/utils/fetchBalances.js +4 -4
- package/dist/esm/shared/utils/formatUsername.d.ts +1 -0
- package/dist/esm/shared/utils/formatUsername.js +5 -0
- package/dist/esm/shared/utils/index.d.ts +3 -10
- package/dist/esm/shared/utils/index.js +4 -20
- package/dist/esm/shared/utils/insights.js +28 -28
- package/dist/esm/shared/utils/ipfs.js +1 -1
- package/dist/esm/shared/utils/number.js +3 -3
- package/dist/esm/shared/utils/simplehash.js +23 -23
- package/dist/esm/shared/utils/thirdweb-insights.js +15 -15
- package/dist/esm/shared/utils/truncateAddress.d.ts +6 -0
- package/dist/esm/shared/utils/truncateAddress.js +12 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/abis/signature-minting.d.ts +79 -0
- package/dist/types/anyspend/index.d.ts +3 -2
- package/dist/types/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/Warning.d.ts +3 -0
- package/dist/types/anyspend/react/components/index.d.ts +2 -0
- package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/index.d.ts +1 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -70
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -70
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +140 -0
- package/dist/types/anyspend/services/anyspend.d.ts +7 -40
- package/dist/types/anyspend/types/index.d.ts +0 -1
- package/dist/types/anyspend/types/onramp.d.ts +3 -0
- package/dist/types/anyspend/types/order.d.ts +30 -200
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +70 -235
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -305
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +35 -235
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/types/anyspend/types/req-res/index.d.ts +0 -1
- package/dist/types/anyspend/types/signature-mint.d.ts +69 -0
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/types/global-account/react/components/index.d.ts +4 -4
- package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +7 -0
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/types/global-account/react/stores/index.d.ts +1 -1
- package/dist/types/global-account/react/stores/useModalStore.d.ts +17 -2
- package/dist/types/shared/react/hooks/index.d.ts +1 -0
- package/dist/types/shared/react/hooks/useNavigation.d.ts +17 -0
- package/dist/types/shared/react/index.d.ts +1 -0
- package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/types/shared/utils/formatUsername.d.ts +1 -0
- package/dist/types/shared/utils/index.d.ts +3 -10
- package/dist/types/shared/utils/truncateAddress.d.ts +6 -0
- package/package.json +3 -2
- package/src/anyspend/README.md +12 -0
- package/src/anyspend/abis/abi-usdc-base.ts +97 -97
- package/src/anyspend/abis/erc20-staking.ts +51 -51
- package/src/anyspend/abis/signature-minting.ts +43 -0
- package/src/anyspend/constants/index.ts +10 -10
- package/src/anyspend/index.ts +3 -6
- package/src/anyspend/react/components/AnySpend.tsx +44 -39
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +40 -36
- package/src/anyspend/react/components/AnySpendCustom.tsx +158 -82
- package/src/anyspend/react/components/AnySpendNFT.tsx +4 -4
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +18 -18
- package/src/anyspend/react/components/AnySpendTournament.tsx +4 -4
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +147 -0
- package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
- package/src/anyspend/react/components/common/OrderDetails.tsx +71 -73
- package/src/anyspend/react/components/common/OrderHistory.tsx +1 -1
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +3 -3
- package/src/anyspend/react/components/common/OrderToken.tsx +5 -5
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -4
- package/src/anyspend/react/components/common/PanelOnramp.tsx +4 -4
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +9 -17
- package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +1 -1
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +3 -3
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +16 -15
- package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
- package/src/anyspend/react/components/common/Warning.tsx +7 -0
- package/src/anyspend/react/components/index.ts +2 -0
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +2 -2
- package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +0 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +18 -20
- package/src/anyspend/react/hooks/index.ts +1 -2
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +10 -20
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +9 -8
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +3 -3
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +4 -4
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +6 -6
- package/src/anyspend/react/hooks/useAnyspendTokens.ts +4 -4
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -3
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +3 -3
- package/src/anyspend/react/hooks/useGetGeo.ts +1 -1
- package/src/anyspend/react/hooks/useSigMint.tsx +55 -0
- package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
- package/src/anyspend/react/hooks/useStripeSupport.ts +3 -3
- package/src/anyspend/react/providers/AnyspendProvider.tsx +9 -4
- package/src/anyspend/services/anyspend.ts +19 -37
- package/src/anyspend/types/chain.ts +1 -1
- package/src/anyspend/types/custom.ts +2 -2
- package/src/anyspend/types/globalWallet.ts +1 -1
- package/src/anyspend/types/index.ts +0 -1
- package/src/anyspend/types/nft.ts +7 -7
- package/src/anyspend/types/onramp.ts +3 -2
- package/src/anyspend/types/order.ts +9 -16
- package/src/anyspend/types/relay.ts +1 -1
- package/src/anyspend/types/req-res/createOrder.ts +9 -9
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +5 -5
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +4 -4
- package/src/anyspend/types/req-res/getOrderByCreator.ts +2 -2
- package/src/anyspend/types/req-res/getOrderHistory.ts +1 -1
- package/src/anyspend/types/req-res/getQuote.ts +10 -8
- package/src/anyspend/types/req-res/getTokenList.ts +4 -4
- package/src/anyspend/types/req-res/index.ts +0 -1
- package/src/anyspend/types/signature-mint.ts +77 -0
- package/src/anyspend/types/swap.ts +2 -2
- package/src/anyspend/types/token.ts +2 -2
- package/src/anyspend/types/tournament.ts +4 -4
- package/src/anyspend/types/transaction.ts +4 -4
- package/src/anyspend/utils/chain.ts +25 -25
- package/src/anyspend/utils/format.ts +2 -7
- package/src/anyspend/utils/orderPayload.ts +6 -6
- package/src/anyspend/utils/token.ts +10 -10
- package/src/global-account/app.native.ts +5 -5
- package/src/global-account/app.ts +5 -5
- package/src/global-account/bsmnt.native.ts +5 -5
- package/src/global-account/bsmnt.ts +5 -5
- package/src/global-account/react/components/B3DynamicModal.tsx +15 -6
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +21 -18
- package/src/global-account/react/components/B3Provider/types.ts +1 -1
- package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +6 -6
- package/src/global-account/react/components/MintButton/MintButton.tsx +5 -5
- package/src/global-account/react/components/RelayKitProviderWrapper.tsx +2 -2
- package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +7 -7
- package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +2 -2
- package/src/global-account/react/components/SignInWithB3/SignIn.tsx +4 -4
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +2 -2
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +14 -14
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +2 -2
- package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +1 -1
- package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +1 -1
- package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +10 -10
- package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +3 -3
- package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -2
- package/src/global-account/react/components/Transak/TransakModal.tsx +4 -4
- package/src/global-account/react/components/custom/Button.tsx +7 -7
- package/src/global-account/react/components/custom/Icon.tsx +1 -1
- package/src/global-account/react/components/custom/ManageAccountButton.tsx +1 -1
- package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +3 -3
- package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +1 -1
- package/src/global-account/react/components/index.ts +4 -4
- package/src/global-account/react/components/magicui/AnimatedLottie.tsx +5 -5
- package/src/global-account/react/components/ui/Loading.tsx +2 -2
- package/src/global-account/react/components/ui/ShinyButton.tsx +5 -5
- package/src/global-account/react/components/ui/TabSystem.tsx +2 -2
- package/src/global-account/react/components/ui/Tabs.tsx +4 -4
- package/src/global-account/react/components/ui/badge.tsx +5 -5
- package/src/global-account/react/components/ui/button.tsx +7 -7
- package/src/global-account/react/components/ui/command.tsx +5 -5
- package/src/global-account/react/components/ui/dialog.tsx +5 -5
- package/src/global-account/react/components/ui/drawer.tsx +2 -2
- package/src/global-account/react/components/ui/glare-card-rounded.tsx +12 -12
- package/src/global-account/react/components/ui/glare-card.tsx +11 -11
- package/src/global-account/react/components/ui/input.tsx +2 -2
- package/src/global-account/react/components/ui/popover.tsx +1 -1
- package/src/global-account/react/components/ui/scroll-area.tsx +1 -1
- package/src/global-account/react/components/ui/text-loop.tsx +2 -2
- package/src/global-account/react/components/ui/text-shimmer.tsx +3 -3
- package/src/global-account/react/components/ui/tooltip.tsx +2 -2
- package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
- package/src/global-account/react/hooks/useAccountWallet.tsx +9 -9
- package/src/global-account/react/hooks/useAddTWSessionKey.tsx +7 -7
- package/src/global-account/react/hooks/useAuthentication.ts +3 -3
- package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +9 -9
- package/src/global-account/react/hooks/useB3EnsName.ts +25 -7
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +11 -11
- package/src/global-account/react/hooks/useBsmntProfile.ts +1 -1
- package/src/global-account/react/hooks/useChainSwitchWithAction.ts +4 -4
- package/src/global-account/react/hooks/useClaim.tsx +5 -5
- package/src/global-account/react/hooks/useConnect.tsx +4 -4
- package/src/global-account/react/hooks/useExchangeRate.tsx +3 -3
- package/src/global-account/react/hooks/useGetAllTWSigners.tsx +9 -9
- package/src/global-account/react/hooks/useGetGeo.tsx +1 -1
- package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +2 -2
- package/src/global-account/react/hooks/useMediaQuery.tsx +1 -1
- package/src/global-account/react/hooks/useNativeBalance.tsx +7 -7
- package/src/global-account/react/hooks/useOnchainName.tsx +11 -11
- package/src/global-account/react/hooks/useOneBalance.tsx +2 -2
- package/src/global-account/react/hooks/useQueryB3.ts +2 -2
- package/src/global-account/react/hooks/useQueryBSMNT.ts +2 -2
- package/src/global-account/react/hooks/useRemoveSessionKey.tsx +5 -5
- package/src/global-account/react/hooks/useRouter.tsx +6 -6
- package/src/global-account/react/hooks/useSiwe.tsx +4 -4
- package/src/global-account/react/hooks/useTokenBalance.tsx +6 -6
- package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +10 -10
- package/src/global-account/react/hooks/useTokenData.ts +3 -3
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +14 -14
- package/src/global-account/react/hooks/useTokenPrice.tsx +7 -7
- package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +7 -7
- package/src/global-account/react/hooks/useTokensFromAddress.ts +2 -2
- package/src/global-account/react/hooks/useURLParams.ts +2 -2
- package/src/global-account/react/stores/index.ts +1 -1
- package/src/global-account/react/stores/useAuthStore.ts +3 -3
- package/src/global-account/react/stores/useModalStore.ts +22 -5
- package/src/global-account/server.ts +3 -3
- package/src/global-account/types/chain-networks.ts +10 -10
- package/src/global-account/types/feature-flags.ts +2 -2
- package/src/shared/constants/chains/b3Chain.ts +35 -35
- package/src/shared/constants/chains/chainPlatformMap.ts +1 -1
- package/src/shared/constants/chains/supported.ts +1 -1
- package/src/shared/constants/index.ts +1 -1
- package/src/shared/react/hooks/index.ts +1 -0
- package/src/shared/react/hooks/useNavigation.ts +61 -0
- package/src/shared/react/index.ts +1 -0
- package/src/shared/thirdweb/generated/sdk.gen.ts +3 -3
- package/src/shared/thirdweb/initiateClient.ts +2 -2
- package/src/shared/thirdweb/openapi-ts.config.ts +1 -1
- package/src/shared/utils/b3Ens.ts +4 -4
- package/src/shared/utils/chain-transformers.ts +9 -9
- package/src/shared/utils/fetchBalances.ts +5 -5
- package/src/shared/utils/fetchBsmntProfile.ts +1 -1
- package/src/shared/utils/formatUsername.ts +5 -0
- package/src/shared/utils/index.ts +4 -22
- package/src/shared/utils/insights.ts +31 -31
- package/src/shared/utils/ipfs.ts +1 -1
- package/src/shared/utils/number.ts +5 -5
- package/src/shared/utils/simplehash.ts +28 -28
- package/src/shared/utils/thirdweb-insights.ts +20 -20
- package/src/shared/utils/truncateAddress.ts +11 -0
- package/src/styles/index.css +5 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +0 -39
- package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/cjs/anyspend/react/hooks/usePermitData.js +0 -158
- package/dist/cjs/anyspend/types/permit.d.ts +0 -21
- package/dist/cjs/anyspend/types/permit.js +0 -11
- package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/dist/cjs/anyspend/types/req-res/sendPermitData.js +0 -11
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +0 -36
- package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/esm/anyspend/react/hooks/usePermitData.js +0 -154
- package/dist/esm/anyspend/types/permit.d.ts +0 -21
- package/dist/esm/anyspend/types/permit.js +0 -8
- package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/dist/esm/anyspend/types/req-res/sendPermitData.js +0 -8
- package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/types/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/types/anyspend/types/permit.d.ts +0 -21
- package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +0 -38
- package/src/anyspend/react/hooks/usePermitData.ts +0 -183
- package/src/anyspend/types/permit.ts +0 -10
- package/src/anyspend/types/req-res/sendPermitData.ts +0 -10
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
useGetAllTWSigners,
|
|
5
5
|
useSiwe,
|
|
6
6
|
SignInWithB3ModalProps,
|
|
7
|
-
useModalStore
|
|
7
|
+
useModalStore,
|
|
8
8
|
} from "@b3dotfun/sdk/global-account/react";
|
|
9
9
|
import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
|
|
10
10
|
import { useCallback, useEffect, useState } from "react";
|
|
@@ -32,7 +32,7 @@ export function SignInWithB3Flow({
|
|
|
32
32
|
closeAfterLogin = false,
|
|
33
33
|
loginWithSiwe = false,
|
|
34
34
|
source = "signInWithB3Button",
|
|
35
|
-
signersEnabled = false
|
|
35
|
+
signersEnabled = false,
|
|
36
36
|
}: SignInWithB3ModalProps) {
|
|
37
37
|
const { setUser, automaticallySetFirstEoa } = useB3();
|
|
38
38
|
const [step, setStep] = useState<"login" | "permissions" | null>(source === "requestPermissions" ? null : "login");
|
|
@@ -45,13 +45,13 @@ export function SignInWithB3Flow({
|
|
|
45
45
|
const {
|
|
46
46
|
data: signers,
|
|
47
47
|
refetch: refetchSigners,
|
|
48
|
-
isFetching: isFetchingSigners
|
|
48
|
+
isFetching: isFetchingSigners,
|
|
49
49
|
} = useGetAllTWSigners({
|
|
50
50
|
chain,
|
|
51
51
|
accountAddress: account?.address,
|
|
52
52
|
queryOptions: {
|
|
53
|
-
enabled: signersEnabled
|
|
54
|
-
}
|
|
53
|
+
enabled: signersEnabled,
|
|
54
|
+
},
|
|
55
55
|
});
|
|
56
56
|
const { authenticate } = useSiwe();
|
|
57
57
|
const [authenticatingWithB3, setAuthenticatingWithB3] = useState(false);
|
|
@@ -88,7 +88,7 @@ export function SignInWithB3Flow({
|
|
|
88
88
|
debug("@@SignInWithB3Flow:useEffect", {
|
|
89
89
|
loginComplete,
|
|
90
90
|
isFetchingSigners,
|
|
91
|
-
source
|
|
91
|
+
source,
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
if (loginComplete && !isFetchingSigners) {
|
|
@@ -103,7 +103,7 @@ export function SignInWithB3Flow({
|
|
|
103
103
|
setB3ModalContentType({
|
|
104
104
|
type: "manageAccount",
|
|
105
105
|
chain,
|
|
106
|
-
partnerId
|
|
106
|
+
partnerId,
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
} else if (source !== "requestPermissions") {
|
|
@@ -121,7 +121,7 @@ export function SignInWithB3Flow({
|
|
|
121
121
|
setB3ModalContentType({
|
|
122
122
|
type: "manageAccount",
|
|
123
123
|
chain,
|
|
124
|
-
partnerId
|
|
124
|
+
partnerId,
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
}, [
|
|
@@ -136,7 +136,7 @@ export function SignInWithB3Flow({
|
|
|
136
136
|
chain,
|
|
137
137
|
onSessionKeySuccess,
|
|
138
138
|
setB3ModalOpen,
|
|
139
|
-
signersEnabled
|
|
139
|
+
signersEnabled,
|
|
140
140
|
]);
|
|
141
141
|
|
|
142
142
|
debug("render", {
|
|
@@ -145,7 +145,7 @@ export function SignInWithB3Flow({
|
|
|
145
145
|
account,
|
|
146
146
|
signers,
|
|
147
147
|
refetchCount,
|
|
148
|
-
refetchError
|
|
148
|
+
refetchError,
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// Keep this effect for handling closeAfterLogin when adding new session keys
|
|
@@ -168,7 +168,7 @@ export function SignInWithB3Flow({
|
|
|
168
168
|
partnerId,
|
|
169
169
|
closeAfterLogin,
|
|
170
170
|
loginWithSiwe,
|
|
171
|
-
source: "requestPermissions"
|
|
171
|
+
source: "requestPermissions",
|
|
172
172
|
});
|
|
173
173
|
}, [
|
|
174
174
|
chain,
|
|
@@ -180,7 +180,7 @@ export function SignInWithB3Flow({
|
|
|
180
180
|
partnerId,
|
|
181
181
|
sessionKeyAddress,
|
|
182
182
|
setB3ModalContentType,
|
|
183
|
-
strategies
|
|
183
|
+
strategies,
|
|
184
184
|
]);
|
|
185
185
|
|
|
186
186
|
const handleLoginSuccess = useCallback(
|
|
@@ -196,7 +196,7 @@ export function SignInWithB3Flow({
|
|
|
196
196
|
setLoginComplete(true);
|
|
197
197
|
setAuthenticatingWithB3(false);
|
|
198
198
|
},
|
|
199
|
-
[authenticate, loginWithSiwe, onLoginSuccess, setUser]
|
|
199
|
+
[authenticate, loginWithSiwe, onLoginSuccess, setUser],
|
|
200
200
|
);
|
|
201
201
|
|
|
202
202
|
useEffect(() => {
|
|
@@ -206,7 +206,7 @@ export function SignInWithB3Flow({
|
|
|
206
206
|
chain,
|
|
207
207
|
sessionKeyAddress,
|
|
208
208
|
onSuccess: onSessionKeySuccessEnhanced,
|
|
209
|
-
onError
|
|
209
|
+
onError,
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
}, [chain, onError, onSessionKeySuccessEnhanced, sessionKeyAddress, setB3ModalContentType, step]);
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Loading,
|
|
3
3
|
useAuthentication,
|
|
4
4
|
useHandleConnectWithPrivy,
|
|
5
|
-
useAuthStore
|
|
5
|
+
useAuthStore,
|
|
6
6
|
} from "@b3dotfun/sdk/global-account/react";
|
|
7
7
|
import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
|
|
8
8
|
import { useEffect } from "react";
|
|
@@ -26,7 +26,7 @@ export function SignInWithB3Privy({ onSuccess, onError, partnerId, chain }: Sign
|
|
|
26
26
|
|
|
27
27
|
debug("@@SignInWithB3Privy", {
|
|
28
28
|
isLoading,
|
|
29
|
-
fullToken
|
|
29
|
+
fullToken,
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
useEffect(() => {
|
|
@@ -32,10 +32,10 @@ export function LoginStepContainer({ children, partnerId }: LoginStepContainerPr
|
|
|
32
32
|
{
|
|
33
33
|
query: {
|
|
34
34
|
partnerId,
|
|
35
|
-
$limit: 1
|
|
36
|
-
}
|
|
35
|
+
$limit: 1,
|
|
36
|
+
},
|
|
37
37
|
},
|
|
38
|
-
!!partnerId
|
|
38
|
+
!!partnerId,
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
const partnerLogo = partner?.data?.[0]?.loginCustomization?.logoUrl;
|
|
@@ -55,7 +55,7 @@ export function LoginStepContainer({ children, partnerId }: LoginStepContainerPr
|
|
|
55
55
|
|
|
56
56
|
export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepProps) {
|
|
57
57
|
const wallet = ecosystemWallet(ecosystemWalletId, {
|
|
58
|
-
partnerId: partnerId
|
|
58
|
+
partnerId: partnerId,
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
const { theme } = useB3();
|
|
@@ -74,20 +74,20 @@ export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepPro
|
|
|
74
74
|
theme === "light"
|
|
75
75
|
? lightTheme({
|
|
76
76
|
colors: {
|
|
77
|
-
modalBg: "hsl(var(--b3-react-background))"
|
|
78
|
-
}
|
|
77
|
+
modalBg: "hsl(var(--b3-react-background))",
|
|
78
|
+
},
|
|
79
79
|
})
|
|
80
80
|
: darkTheme({
|
|
81
81
|
colors: {
|
|
82
|
-
modalBg: "hsl(var(--b3-react-background))"
|
|
83
|
-
}
|
|
82
|
+
modalBg: "hsl(var(--b3-react-background))",
|
|
83
|
+
},
|
|
84
84
|
})
|
|
85
85
|
}
|
|
86
86
|
autoConnect
|
|
87
87
|
style={{
|
|
88
88
|
width: "100%",
|
|
89
89
|
height: "100%",
|
|
90
|
-
border: 0
|
|
90
|
+
border: 0,
|
|
91
91
|
}}
|
|
92
92
|
// TODO: Integrate with SIWE in useSIWE
|
|
93
93
|
// auth={{
|
|
@@ -108,7 +108,7 @@ export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepPro
|
|
|
108
108
|
// }}
|
|
109
109
|
header={{
|
|
110
110
|
title: "Sign in with B3",
|
|
111
|
-
titleIcon: "https://cdn.b3.fun/b3_logo.svg"
|
|
111
|
+
titleIcon: "https://cdn.b3.fun/b3_logo.svg",
|
|
112
112
|
}}
|
|
113
113
|
onConnect={async wallet => {
|
|
114
114
|
try {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useAuthStore,
|
|
9
9
|
AllowedStrategy,
|
|
10
10
|
getConnectOptionsFromStrategy,
|
|
11
|
-
isWalletType
|
|
11
|
+
isWalletType,
|
|
12
12
|
} from "@b3dotfun/sdk/global-account/react";
|
|
13
13
|
import { client } from "@b3dotfun/sdk/shared/utils/thirdweb";
|
|
14
14
|
import { useState } from "react";
|
|
@@ -33,7 +33,7 @@ export function LoginStepCustom({
|
|
|
33
33
|
chain,
|
|
34
34
|
strategies,
|
|
35
35
|
maxInitialWallets = 2,
|
|
36
|
-
automaticallySetFirstEoa
|
|
36
|
+
automaticallySetFirstEoa,
|
|
37
37
|
}: LoginStepCustomProps) {
|
|
38
38
|
const [isLoading, setIsLoading] = useState(false);
|
|
39
39
|
const [showAllWallets, setShowAllWallets] = useState(false);
|
|
@@ -63,7 +63,7 @@ export function LoginStepCustom({
|
|
|
63
63
|
connectResult = await connectTW(async () => {
|
|
64
64
|
const wallet = createWallet(options.wallet?.id as WalletId);
|
|
65
65
|
await wallet.connect({
|
|
66
|
-
client
|
|
66
|
+
client,
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
return wallet;
|
|
@@ -25,7 +25,7 @@ export const allowedStrategies = [
|
|
|
25
25
|
|
|
26
26
|
// Custom strategies
|
|
27
27
|
// TODO: Audit we don't use "privy" directly anymore
|
|
28
|
-
...customStrategies
|
|
28
|
+
...customStrategies,
|
|
29
29
|
] as const;
|
|
30
30
|
|
|
31
31
|
export type AllowedStrategy = (typeof allowedStrategies)[number];
|
|
@@ -62,7 +62,7 @@ export const strategyIcons: Record<string, string> = {
|
|
|
62
62
|
x: "https://cdn.b3.fun/x.svg?1",
|
|
63
63
|
discord: "https://cdn.b3.fun/discord.svg",
|
|
64
64
|
apple: "https://cdn.b3.fun/apple.svg",
|
|
65
|
-
guest: "https://cdn.b3.fun/incognito.svg"
|
|
65
|
+
guest: "https://cdn.b3.fun/incognito.svg",
|
|
66
66
|
// Add more strategies as needed
|
|
67
67
|
};
|
|
68
68
|
// Test it
|
|
@@ -31,7 +31,7 @@ export function TransakModal() {
|
|
|
31
31
|
exchangeScreenTitle: "Buy ETH on B3",
|
|
32
32
|
isFeeCalculationHidden: true,
|
|
33
33
|
cryptoCurrencyCode: "ETH",
|
|
34
|
-
network: "b3"
|
|
34
|
+
network: "b3",
|
|
35
35
|
};
|
|
36
36
|
}, [environment]);
|
|
37
37
|
|
|
@@ -53,7 +53,7 @@ export function TransakModal() {
|
|
|
53
53
|
defaultCryptoAmount,
|
|
54
54
|
disableWalletAddressForm: !!destinationWalletAddress || !!account?.address, // Only disable the form if we have an address
|
|
55
55
|
fiatAmount: fiatAmount,
|
|
56
|
-
countryCode: countryCode
|
|
56
|
+
countryCode: countryCode,
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
const transak = new Transak(config);
|
|
@@ -105,7 +105,7 @@ export function TransakModal() {
|
|
|
105
105
|
onSuccess,
|
|
106
106
|
fiatAmount,
|
|
107
107
|
transakConfig,
|
|
108
|
-
countryCode
|
|
108
|
+
countryCode,
|
|
109
109
|
]);
|
|
110
110
|
|
|
111
111
|
return (
|
|
@@ -123,7 +123,7 @@ export function TransakModal() {
|
|
|
123
123
|
width: "100%",
|
|
124
124
|
height: "650px",
|
|
125
125
|
borderRadius: "25px",
|
|
126
|
-
overflow: "hidden"
|
|
126
|
+
overflow: "hidden",
|
|
127
127
|
}}
|
|
128
128
|
/>
|
|
129
129
|
</>
|
|
@@ -14,20 +14,20 @@ const buttonVariants = cva(
|
|
|
14
14
|
secondary: "bg-secondary text-secondary-b3-react-foreground shadow-sm hover:bg-secondary/80",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
16
16
|
link: "text-b3-react-primary underline-offset-4 hover:underline",
|
|
17
|
-
b3: "bg-[#3368ef] text-white hover:bg-[#3368ef]/90"
|
|
17
|
+
b3: "bg-[#3368ef] text-white hover:bg-[#3368ef]/90",
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
20
|
default: "h-9 px-4 py-2",
|
|
21
21
|
sm: "h-8 rounded-md px-3 text-xs",
|
|
22
22
|
lg: "h-10 rounded-md px-8",
|
|
23
|
-
icon: "h-9 w-9"
|
|
24
|
-
}
|
|
23
|
+
icon: "h-9 w-9",
|
|
24
|
+
},
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: {
|
|
27
27
|
variant: "default",
|
|
28
|
-
size: "default"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
28
|
+
size: "default",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -44,7 +44,7 @@ export function Button({ variant = "default", className, ...props }: ButtonProps
|
|
|
44
44
|
variant === "default" && "bg-b3-react-primary text-b3-react-primary-foreground hover:bg-b3-react-primary/90",
|
|
45
45
|
variant === "outline" &&
|
|
46
46
|
"border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground border",
|
|
47
|
-
className
|
|
47
|
+
className,
|
|
48
48
|
)}
|
|
49
49
|
{...props}
|
|
50
50
|
/>
|
|
@@ -84,7 +84,7 @@ const icons: IconsType = {
|
|
|
84
84
|
"triangle-up":
|
|
85
85
|
"M11.291 8.493l-5.586 5.586c-.63.63-.184 1.707.707 1.707h11.172c.891 0 1.337-1.077.707-1.707l-5.586-5.586a1 1 0 0 0-1.414 0z",
|
|
86
86
|
wallet:
|
|
87
|
-
"M13.31 2.362c1.204-.556 1.457-.645 2.025-.549a2 2 0 0 1 1.314.841c.326.476.35.743.35 2.069v2.498l.8.001c1.517 0 1.938.028 2.472.282l.09.045a3 3 0 0 1 1.311 1.311c.296.581.327.961.327 2.562v6.6c0 1.601-.031 1.981-.327 2.562a3 3 0 0 1-1.311 1.311c-.581.296-.961.327-2.562.327H5.957c-1.399-.004-1.769-.046-2.319-.327a3 3 0 0 1-1.311-1.311C2.031 20.004 2 19.624 2 18.023v-6.6-1.152c0-1.065.017-1.333.173-1.773a3 3 0 0 1 .73-1.141 2.71 2.71 0 0 1 .482-.371c.237-.146.429-.24 1.054-.529l8.87-4.094zm4.49 6.86H6.2c-1.199 0-1.486.023-1.654.109a1 1 0 0 0-.437.437c-.086.168-.109.455-.109 1.654v6.802c.003 1.03.028 1.294.109 1.452a1 1 0 0 0 .437.437c.168.086.455.109 1.654.109h11.802c1.03-.003 1.294-.028 1.452-.109a1 1 0 0 0 .437-.437c.086-.168.109-.455.109-1.654v-6.6c0-1.199-.023-1.486-.109-1.654a1 1 0 0 0-.437-.437c-.168-.086-.455-.109-1.654-.109zm-1.3 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 1 1 0-3zm0 1a.5.5 0 1 0 0 1 .5.5 0 1 0 0-1zM14.987 3.8c-.062.033-.301.13-.838.378L7.553 7.222H15V4.723l-.008-.818v-.078-.024l.001-.008-.006.004z"
|
|
87
|
+
"M13.31 2.362c1.204-.556 1.457-.645 2.025-.549a2 2 0 0 1 1.314.841c.326.476.35.743.35 2.069v2.498l.8.001c1.517 0 1.938.028 2.472.282l.09.045a3 3 0 0 1 1.311 1.311c.296.581.327.961.327 2.562v6.6c0 1.601-.031 1.981-.327 2.562a3 3 0 0 1-1.311 1.311c-.581.296-.961.327-2.562.327H5.957c-1.399-.004-1.769-.046-2.319-.327a3 3 0 0 1-1.311-1.311C2.031 20.004 2 19.624 2 18.023v-6.6-1.152c0-1.065.017-1.333.173-1.773a3 3 0 0 1 .73-1.141 2.71 2.71 0 0 1 .482-.371c.237-.146.429-.24 1.054-.529l8.87-4.094zm4.49 6.86H6.2c-1.199 0-1.486.023-1.654.109a1 1 0 0 0-.437.437c-.086.168-.109.455-.109 1.654v6.802c.003 1.03.028 1.294.109 1.452a1 1 0 0 0 .437.437c.168.086.455.109 1.654.109h11.802c1.03-.003 1.294-.028 1.452-.109a1 1 0 0 0 .437-.437c.086-.168.109-.455.109-1.654v-6.6c0-1.199-.023-1.486-.109-1.654a1 1 0 0 0-.437-.437c-.168-.086-.455-.109-1.654-.109zm-1.3 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 1 1 0-3zm0 1a.5.5 0 1 0 0 1 .5.5 0 1 0 0-1zM14.987 3.8c-.062.033-.301.13-.838.378L7.553 7.222H15V4.723l-.008-.818v-.078-.024l.001-.008-.006.004z",
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
type IconProps = {
|
|
@@ -3,7 +3,7 @@ import { motion } from "framer-motion";
|
|
|
3
3
|
export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { className?: string; size?: number }) {
|
|
4
4
|
const circleVariants = {
|
|
5
5
|
hidden: { opacity: 0 },
|
|
6
|
-
visible: { opacity: 1 }
|
|
6
|
+
visible: { opacity: 1 },
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
const sizeClass =
|
|
@@ -12,7 +12,7 @@ export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { c
|
|
|
12
12
|
2: "h-2 w-2",
|
|
13
13
|
3: "h-3 w-3",
|
|
14
14
|
4: "h-4 w-4",
|
|
15
|
-
5: "h-5 w-5"
|
|
15
|
+
5: "h-5 w-5",
|
|
16
16
|
}?.[size] || "h-4 w-4";
|
|
17
17
|
|
|
18
18
|
return (
|
|
@@ -28,7 +28,7 @@ export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { c
|
|
|
28
28
|
duration: 0.9,
|
|
29
29
|
delay: index * 0.2,
|
|
30
30
|
repeat: Infinity,
|
|
31
|
-
repeatType: "reverse"
|
|
31
|
+
repeatType: "reverse",
|
|
32
32
|
}}
|
|
33
33
|
></motion.div>
|
|
34
34
|
))}
|
|
@@ -51,7 +51,7 @@ export {
|
|
|
51
51
|
CommandItem,
|
|
52
52
|
CommandList,
|
|
53
53
|
CommandSeparator,
|
|
54
|
-
CommandShortcut
|
|
54
|
+
CommandShortcut,
|
|
55
55
|
} from "./ui/command";
|
|
56
56
|
export {
|
|
57
57
|
Dialog,
|
|
@@ -63,7 +63,7 @@ export {
|
|
|
63
63
|
DialogOverlay,
|
|
64
64
|
DialogPortal,
|
|
65
65
|
DialogTitle,
|
|
66
|
-
DialogTrigger
|
|
66
|
+
DialogTrigger,
|
|
67
67
|
} from "./ui/dialog";
|
|
68
68
|
export {
|
|
69
69
|
Drawer,
|
|
@@ -75,7 +75,7 @@ export {
|
|
|
75
75
|
DrawerOverlay,
|
|
76
76
|
DrawerPortal,
|
|
77
77
|
DrawerTitle,
|
|
78
|
-
DrawerTrigger
|
|
78
|
+
DrawerTrigger,
|
|
79
79
|
} from "./ui/drawer";
|
|
80
80
|
export { GlareCard } from "./ui/glare-card";
|
|
81
81
|
export { GlareCardRounded } from "./ui/glare-card-rounded";
|
|
@@ -89,7 +89,7 @@ export {
|
|
|
89
89
|
TabsContent as TabsContentPrimitive,
|
|
90
90
|
TabsList as TabsListPrimitive,
|
|
91
91
|
Tabs as TabsPrimitive,
|
|
92
|
-
TabTrigger as TabTriggerPrimitive
|
|
92
|
+
TabTrigger as TabTriggerPrimitive,
|
|
93
93
|
} from "./ui/Tabs";
|
|
94
94
|
export { Tabs, TabsContent, TabsList, TabsTransitionWrapper, TabTrigger } from "./ui/TabSystem";
|
|
95
95
|
export { TextLoop } from "./ui/text-loop";
|
|
@@ -51,11 +51,11 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
|
|
|
51
51
|
console.error("Failed to play animation:", error);
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
delay ? delay * 1000 : 0
|
|
54
|
+
delay ? delay * 1000 : 0,
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
[autoplay, delay]
|
|
58
|
+
[autoplay, delay],
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
const handleMouseEnter = useCallback(() => {
|
|
@@ -73,9 +73,9 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
|
|
|
73
73
|
|
|
74
74
|
const animateProps = useMemo(
|
|
75
75
|
() => ({
|
|
76
|
-
scale: animateBounce ? [1, 0.95, 1.05, 1] : 1
|
|
76
|
+
scale: animateBounce ? [1, 0.95, 1.05, 1] : 1,
|
|
77
77
|
}),
|
|
78
|
-
[animateBounce]
|
|
78
|
+
[animateBounce],
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
return (
|
|
@@ -98,7 +98,7 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
|
|
|
98
98
|
/>
|
|
99
99
|
</motion.div>
|
|
100
100
|
);
|
|
101
|
-
}
|
|
101
|
+
},
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
AnimatedLottie.displayName = "AnimatedLottie";
|
|
@@ -11,12 +11,12 @@ export function Loading({ className, size = "md", variant = "white" }: LoadingPr
|
|
|
11
11
|
const sizeClass = {
|
|
12
12
|
sm: "h-6 w-6",
|
|
13
13
|
md: "h-8 w-8",
|
|
14
|
-
lg: "h-12 w-12"
|
|
14
|
+
lg: "h-12 w-12",
|
|
15
15
|
}[size];
|
|
16
16
|
|
|
17
17
|
const variantClass = {
|
|
18
18
|
primary: "text-b3-react-primary",
|
|
19
|
-
white: "text-white opacity-50"
|
|
19
|
+
white: "text-white opacity-50",
|
|
20
20
|
}[variant];
|
|
21
21
|
|
|
22
22
|
return (
|
|
@@ -16,7 +16,7 @@ export const ShinyButton = ({
|
|
|
16
16
|
disabled,
|
|
17
17
|
textColor = "",
|
|
18
18
|
textClassName = "",
|
|
19
|
-
type = "button"
|
|
19
|
+
type = "button",
|
|
20
20
|
}: {
|
|
21
21
|
text?: string;
|
|
22
22
|
accentColor?: string;
|
|
@@ -32,7 +32,7 @@ export const ShinyButton = ({
|
|
|
32
32
|
}) => {
|
|
33
33
|
const { ref, inView } = useInView({
|
|
34
34
|
triggerOnce: false,
|
|
35
|
-
threshold: 0.1
|
|
35
|
+
threshold: 0.1,
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
const computedTextColor =
|
|
@@ -51,10 +51,10 @@ export const ShinyButton = ({
|
|
|
51
51
|
disabled
|
|
52
52
|
? "grayscale-20 cursor-not-allowed opacity-60"
|
|
53
53
|
: "hover:border-black/30 hover:shadow-[0_0_20px_rgb(0,0,0,20%)]",
|
|
54
|
-
animatedPulse && inView && "animated-pulse"
|
|
54
|
+
animatedPulse && inView && "animated-pulse",
|
|
55
55
|
)}
|
|
56
56
|
style={{
|
|
57
|
-
backgroundColor: disabled ? "#94A3B8" : accentColor
|
|
57
|
+
backgroundColor: disabled ? "#94A3B8" : accentColor,
|
|
58
58
|
}}
|
|
59
59
|
onClick={!disabled ? onClick : undefined}
|
|
60
60
|
onClickCapture={onClickCapture}
|
|
@@ -66,7 +66,7 @@ export const ShinyButton = ({
|
|
|
66
66
|
<span
|
|
67
67
|
className={cn(
|
|
68
68
|
"font-sf-rounded relative block h-full w-full text-lg font-semibold tracking-wide",
|
|
69
|
-
computedTextColor
|
|
69
|
+
computedTextColor,
|
|
70
70
|
)}
|
|
71
71
|
>
|
|
72
72
|
<div className={cn("flex items-center justify-center gap-2", textClassName)}>
|
|
@@ -138,7 +138,7 @@ export function TabsTransitionWrapper({ children }: { children: ReactNode }) {
|
|
|
138
138
|
child =>
|
|
139
139
|
React.isValidElement(child) &&
|
|
140
140
|
"value" in (child.props as any) &&
|
|
141
|
-
(child.props as any).value === context.selectedTab
|
|
141
|
+
(child.props as any).value === context.selectedTab,
|
|
142
142
|
);
|
|
143
143
|
|
|
144
144
|
return (
|
|
@@ -149,7 +149,7 @@ export function TabsTransitionWrapper({ children }: { children: ReactNode }) {
|
|
|
149
149
|
variants={{
|
|
150
150
|
enter: { opacity: 0, filter: "blur(10px)", x: 20 },
|
|
151
151
|
center: { opacity: 1, filter: "blur(0px)", x: 0 },
|
|
152
|
-
exit: { opacity: 0, filter: "blur(10px)", x: -20 }
|
|
152
|
+
exit: { opacity: 0, filter: "blur(10px)", x: -20 },
|
|
153
153
|
}}
|
|
154
154
|
>
|
|
155
155
|
{childrenArray}
|
|
@@ -4,7 +4,7 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
4
4
|
export const Tabs = ({
|
|
5
5
|
defaultValue,
|
|
6
6
|
onValueChange,
|
|
7
|
-
children
|
|
7
|
+
children,
|
|
8
8
|
}: {
|
|
9
9
|
defaultValue: string;
|
|
10
10
|
onValueChange?: (value: string) => void;
|
|
@@ -20,7 +20,7 @@ export function TabsList({ className, ...props }: React.ComponentProps<typeof Ta
|
|
|
20
20
|
<TabsPrimitive.List
|
|
21
21
|
className={cn(
|
|
22
22
|
"border-b3-react-border bg-b3-react-background inline-flex h-12 w-full items-center justify-center rounded-lg border",
|
|
23
|
-
className
|
|
23
|
+
className,
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
26
26
|
/>
|
|
@@ -36,7 +36,7 @@ export function TabTrigger({ className, ...props }: React.ComponentProps<typeof
|
|
|
36
36
|
"data-[state=active]:bg-b3-react-subtle data-[state=active]:text-b3-react-primary data-[state=active]:font-bold",
|
|
37
37
|
"border-b3-react-border hover:text-b3-react-foreground data-[state=inactive]:border-b3-react-border data-[state=inactive]:text-b3-react-muted-foreground",
|
|
38
38
|
"flex-1 border-r",
|
|
39
|
-
className
|
|
39
|
+
className,
|
|
40
40
|
)}
|
|
41
41
|
{...props}
|
|
42
42
|
/>
|
|
@@ -48,7 +48,7 @@ export function TabsContent({ className, ...props }: React.ComponentProps<typeof
|
|
|
48
48
|
<TabsPrimitive.Content
|
|
49
49
|
className={cn(
|
|
50
50
|
"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",
|
|
51
|
-
className
|
|
51
|
+
className,
|
|
52
52
|
)}
|
|
53
53
|
{...props}
|
|
54
54
|
/>
|
|
@@ -12,13 +12,13 @@ const badgeVariants = cva(
|
|
|
12
12
|
secondary: "border-transparent bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
|
|
13
13
|
destructive:
|
|
14
14
|
"border-destructive bg-destructive/50 text-destructive-b3-react-foreground hover:bg-destructive/80",
|
|
15
|
-
outline: "text-b3-react-foreground"
|
|
16
|
-
}
|
|
15
|
+
outline: "text-b3-react-foreground",
|
|
16
|
+
},
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: {
|
|
19
|
-
variant: "default"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
19
|
+
variant: "default",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
|
|
@@ -15,20 +15,20 @@ const buttonVariants = cva(
|
|
|
15
15
|
outline: "border border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
16
16
|
secondary: "bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
|
|
17
17
|
ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
18
|
-
link: "text-b3-react-primary underline-offset-4 hover:underline"
|
|
18
|
+
link: "text-b3-react-primary underline-offset-4 hover:underline",
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
21
|
default: "h-10 px-4 py-2",
|
|
22
22
|
sm: "h-9 rounded-md px-3",
|
|
23
23
|
lg: "h-11 rounded-md px-8",
|
|
24
|
-
icon: "h-10 w-10"
|
|
25
|
-
}
|
|
24
|
+
icon: "h-10 w-10",
|
|
25
|
+
},
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
28
28
|
variant: "default",
|
|
29
|
-
size: "default"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
29
|
+
size: "default",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
export interface ButtonProps
|
|
@@ -50,7 +50,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
return <button className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />;
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
54
|
);
|
|
55
55
|
Button.displayName = "Button";
|
|
56
56
|
|
|
@@ -17,7 +17,7 @@ const Command = React.forwardRef<
|
|
|
17
17
|
ref={ref}
|
|
18
18
|
className={cn(
|
|
19
19
|
"bg-popover text-popover-b3-react-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
20
|
-
className
|
|
20
|
+
className,
|
|
21
21
|
)}
|
|
22
22
|
{...props}
|
|
23
23
|
/>
|
|
@@ -51,7 +51,7 @@ const CommandInput = React.forwardRef<
|
|
|
51
51
|
ref={ref}
|
|
52
52
|
className={cn(
|
|
53
53
|
"placeholder:text-b3-react-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
54
|
-
className
|
|
54
|
+
className,
|
|
55
55
|
)}
|
|
56
56
|
{...props}
|
|
57
57
|
/>
|
|
@@ -88,7 +88,7 @@ const CommandGroup = React.forwardRef<
|
|
|
88
88
|
ref={ref}
|
|
89
89
|
className={cn(
|
|
90
90
|
"text-b3-react-foreground [&_[cmdk-group-heading]]:text-b3-react-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
91
|
-
className
|
|
91
|
+
className,
|
|
92
92
|
)}
|
|
93
93
|
{...props}
|
|
94
94
|
/>
|
|
@@ -112,7 +112,7 @@ const CommandItem = React.forwardRef<
|
|
|
112
112
|
ref={ref}
|
|
113
113
|
className={cn(
|
|
114
114
|
"data-[selected='true']:bg-accent data-[selected=true]:text-accent-b3-react-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
115
|
-
className
|
|
115
|
+
className,
|
|
116
116
|
)}
|
|
117
117
|
{...props}
|
|
118
118
|
/>
|
|
@@ -136,5 +136,5 @@ export {
|
|
|
136
136
|
CommandItem,
|
|
137
137
|
CommandList,
|
|
138
138
|
CommandSeparator,
|
|
139
|
-
CommandShortcut
|
|
139
|
+
CommandShortcut,
|
|
140
140
|
};
|