@b3dotfun/sdk 0.0.7 → 0.0.8
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 +13 -10
- package/dist/cjs/anyspend/index.d.ts +4 -2
- package/dist/cjs/anyspend/index.js +4 -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 +68 -66
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +4 -4
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +158 -101
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +3 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +7 -5
- 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 +21 -20
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +7 -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 +52 -63
- 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 +14 -70
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -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 +9 -40
- package/dist/cjs/anyspend/services/anyspend.js +11 -24
- 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 +1 -1
- package/dist/cjs/anyspend/types/index.js +1 -1
- package/dist/cjs/anyspend/types/metadata.d.ts +26 -0
- package/dist/cjs/anyspend/types/metadata.js +16 -0
- package/dist/cjs/anyspend/types/nft.d.ts +7 -0
- package/dist/cjs/anyspend/types/nft.js +8 -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 +40 -200
- package/dist/cjs/anyspend/types/order.js +7 -12
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +98 -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 +63 -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 +49 -235
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +37 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +14 -9
- 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.d.ts +3 -3
- package/dist/cjs/anyspend/utils/orderPayload.js +22 -8
- 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 +3 -3
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +17 -16
- 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.d.ts +14 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +50 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +12 -17
- 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/StyleRoot.js +0 -1
- 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.d.ts +7 -0
- package/dist/cjs/global-account/react/components/custom/Icon.js +52 -0
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +20 -0
- 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 +8 -4
- package/dist/cjs/global-account/react/hooks/useB3EnsName.js +32 -23
- 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 +18 -1
- 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/index.d.ts +0 -0
- package/dist/cjs/index.js +2 -0
- 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 +4 -1
- package/dist/cjs/shared/constants/index.d.ts +1 -0
- package/dist/cjs/shared/constants/index.js +3 -2
- 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 -1
- package/dist/cjs/shared/utils/index.js +4 -6
- 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 +13 -10
- package/dist/esm/anyspend/index.d.ts +4 -2
- package/dist/esm/anyspend/index.js +4 -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 +41 -39
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +4 -4
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +138 -81
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +3 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +7 -5
- 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 +22 -21
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +7 -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 +53 -64
- 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 +14 -70
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -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 +9 -40
- package/dist/esm/anyspend/services/anyspend.js +12 -25
- 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 +1 -1
- package/dist/esm/anyspend/types/index.js +1 -1
- package/dist/esm/anyspend/types/metadata.d.ts +26 -0
- package/dist/esm/anyspend/types/metadata.js +11 -0
- package/dist/esm/anyspend/types/nft.d.ts +7 -0
- package/dist/esm/anyspend/types/nft.js +8 -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 +40 -200
- package/dist/esm/anyspend/types/order.js +7 -12
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +98 -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 +63 -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 +49 -235
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +37 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +14 -9
- 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.d.ts +3 -3
- package/dist/esm/anyspend/utils/orderPayload.js +23 -9
- 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 +3 -3
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +8 -7
- 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.d.ts +14 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +44 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +8 -13
- 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/StyleRoot.js +0 -1
- 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.d.ts +7 -0
- package/dist/esm/global-account/react/components/custom/Icon.js +50 -0
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +17 -0
- 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 +8 -4
- package/dist/esm/global-account/react/hooks/useB3EnsName.js +34 -22
- 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 +18 -1
- 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/index.d.ts +0 -0
- package/dist/esm/index.js +2 -0
- 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 +4 -1
- package/dist/esm/shared/constants/index.d.ts +1 -0
- package/dist/esm/shared/constants/index.js +2 -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 -1
- package/dist/esm/shared/utils/index.js +4 -5
- 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 +4 -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 +4 -4
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +3 -2
- 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 +14 -70
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -70
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +140 -0
- package/dist/types/anyspend/services/anyspend.d.ts +9 -40
- package/dist/types/anyspend/types/index.d.ts +1 -1
- package/dist/types/anyspend/types/metadata.d.ts +26 -0
- package/dist/types/anyspend/types/nft.d.ts +7 -0
- package/dist/types/anyspend/types/onramp.d.ts +3 -0
- package/dist/types/anyspend/types/order.d.ts +40 -200
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +98 -235
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +63 -305
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +49 -235
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +37 -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/anyspend/utils/orderPayload.d.ts +3 -3
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
- 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/SignIn.d.ts +14 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
- 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/custom/Icon.d.ts +7 -0
- package/dist/types/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
- 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 +8 -4
- 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 +18 -1
- package/dist/types/index.d.ts +0 -0
- package/dist/types/shared/constants/index.d.ts +1 -0
- 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 -1
- package/dist/types/shared/utils/truncateAddress.d.ts +6 -0
- package/package.json +24 -4
- 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 +13 -11
- package/src/anyspend/index.ts +4 -6
- package/src/anyspend/react/components/AnySpend.tsx +44 -39
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +46 -41
- package/src/anyspend/react/components/AnySpendCustom.tsx +214 -89
- package/src/anyspend/react/components/AnySpendNFT.tsx +11 -6
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +23 -22
- package/src/anyspend/react/components/AnySpendTournament.tsx +7 -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 +75 -77
- 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 +21 -39
- 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 +1 -1
- package/src/anyspend/types/metadata.ts +41 -0
- package/src/anyspend/types/nft.ts +10 -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 +14 -9
- 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 +21 -9
- 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 +22 -20
- 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 +190 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +16 -28
- 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/StyleRoot.tsx +0 -1
- 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 +102 -0
- package/src/global-account/react/components/custom/ManageAccountButton.tsx +33 -0
- 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 +43 -31
- 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 +23 -4
- 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/index.ts +1 -0
- 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 +6 -1
- package/src/shared/constants/index.ts +3 -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 -6
- 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,8 @@ import {
|
|
|
4
4
|
AnySpendNFT,
|
|
5
5
|
AnySpendStakeB3,
|
|
6
6
|
AnySpendTournament,
|
|
7
|
-
|
|
7
|
+
AnyspendSignatureMint,
|
|
8
|
+
OrderHistory,
|
|
8
9
|
} from "@b3dotfun/sdk/anyspend/react";
|
|
9
10
|
import { useIsMobile, useModalStore } from "@b3dotfun/sdk/global-account/react";
|
|
10
11
|
import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
|
|
@@ -34,16 +35,22 @@ export function B3DynamicModal() {
|
|
|
34
35
|
"anySpendStakeB3",
|
|
35
36
|
"anySpendBuySpin",
|
|
36
37
|
"anySpendOrderHistory",
|
|
37
|
-
"signInWithB3"
|
|
38
|
+
"signInWithB3",
|
|
39
|
+
"anySpendSignatureMint",
|
|
38
40
|
].find(type => contentType?.type === type)
|
|
39
41
|
) {
|
|
40
42
|
contentClass += " max-h-[90dvh] overflow-y-auto no-scrollbar w-full";
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
if (
|
|
44
|
-
[
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
[
|
|
47
|
+
"anySpendNft",
|
|
48
|
+
"anySpendJoinTournament",
|
|
49
|
+
"anySpendFundTournament",
|
|
50
|
+
"anySpendStakeB3",
|
|
51
|
+
"anySpendBuySpin",
|
|
52
|
+
"anySpendSignatureMint",
|
|
53
|
+
].find(type => contentType?.type === type)
|
|
47
54
|
) {
|
|
48
55
|
// Due to the dynamic of (Pay with crypto),(Pay with fiat), we want the height fixed to 90dvh but still scrollable.
|
|
49
56
|
// NOTE: Just leave it here in case we want the fixed height
|
|
@@ -85,6 +92,8 @@ export function B3DynamicModal() {
|
|
|
85
92
|
return <AnySpendStakeB3 {...contentType} mode="modal" />;
|
|
86
93
|
case "anySpendBuySpin":
|
|
87
94
|
return <AnySpendBuySpin {...contentType} mode="modal" />;
|
|
95
|
+
case "anySpendSignatureMint":
|
|
96
|
+
return <AnyspendSignatureMint {...contentType} mode="modal" />;
|
|
88
97
|
// Add other modal types here
|
|
89
98
|
default:
|
|
90
99
|
return null;
|
|
@@ -101,7 +110,7 @@ export function B3DynamicModal() {
|
|
|
101
110
|
<ModalContent className={contentClass} hideCloseButton={hideCloseButton}>
|
|
102
111
|
<ModalTitle className="sr-only hidden">{contentType?.type || "Modal"}</ModalTitle>
|
|
103
112
|
<ModalDescription className="sr-only hidden">{contentType?.type || "Modal Body"}</ModalDescription>
|
|
104
|
-
<div className="overflow-
|
|
113
|
+
<div className="overflow-auto">
|
|
105
114
|
{history.length > 0 && contentType?.showBackButton && (
|
|
106
115
|
<button
|
|
107
116
|
onClick={navigateBack}
|
|
@@ -15,7 +15,7 @@ const DEFAULT_PERMISSIONS = {
|
|
|
15
15
|
approvedTargets: ["0xa8e42121e318e3D3BeD7f5969AF6D360045317DD"], // Example contract
|
|
16
16
|
nativeTokenLimitPerTransaction: 0.1, // in ETH
|
|
17
17
|
startDate: new Date(),
|
|
18
|
-
endDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365) // 1 year from now
|
|
18
|
+
endDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365), // 1 year from now
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// Create queryClient instance
|
|
@@ -29,7 +29,7 @@ export function B3Provider({
|
|
|
29
29
|
theme = "light",
|
|
30
30
|
children,
|
|
31
31
|
accountOverride,
|
|
32
|
-
environment
|
|
32
|
+
environment,
|
|
33
33
|
}: {
|
|
34
34
|
isMainnetAnySpend?: boolean;
|
|
35
35
|
theme: "light" | "dark";
|
|
@@ -58,7 +58,7 @@ export function InnerProvider({
|
|
|
58
58
|
accountOverride,
|
|
59
59
|
environment,
|
|
60
60
|
defaultPermissions = DEFAULT_PERMISSIONS,
|
|
61
|
-
theme = "light"
|
|
61
|
+
theme = "light",
|
|
62
62
|
}: {
|
|
63
63
|
children: React.ReactNode;
|
|
64
64
|
accountOverride?: Account;
|
|
@@ -91,7 +91,7 @@ export function InnerProvider({
|
|
|
91
91
|
ready: !!effectiveAccount,
|
|
92
92
|
environment,
|
|
93
93
|
defaultPermissions,
|
|
94
|
-
theme
|
|
94
|
+
theme,
|
|
95
95
|
}}
|
|
96
96
|
>
|
|
97
97
|
{children}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TooltipProvider } from "@b3dotfun/sdk/global-account/react";
|
|
1
2
|
import { User } from "@b3dotfun/sdk/global-account/types/b3-api.types";
|
|
2
3
|
import { PermissionsConfig } from "@b3dotfun/sdk/global-account/types/permissions";
|
|
3
4
|
import { supportedChains } from "@b3dotfun/sdk/shared/constants/chains/supported";
|
|
@@ -9,9 +10,9 @@ import { Account, Wallet } from "thirdweb/wallets";
|
|
|
9
10
|
import { createConfig, http, WagmiProvider } from "wagmi";
|
|
10
11
|
import { RelayKitProviderWrapper } from "../RelayKitProviderWrapper";
|
|
11
12
|
import { StyleRoot } from "../StyleRoot";
|
|
13
|
+
import { B3Context, B3ContextType } from "./types";
|
|
12
14
|
|
|
13
15
|
import "@reservoir0x/relay-kit-ui/styles.css";
|
|
14
|
-
import { B3Context, B3ContextType } from "./types";
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Default permissions configuration for B3 provider
|
|
@@ -20,12 +21,12 @@ const DEFAULT_PERMISSIONS = {
|
|
|
20
21
|
approvedTargets: ["0xa8e42121e318e3D3BeD7f5969AF6D360045317DD"], // Example contract
|
|
21
22
|
nativeTokenLimitPerTransaction: 0.1, // in ETH
|
|
22
23
|
startDate: new Date(),
|
|
23
|
-
endDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365) // 1 year from now
|
|
24
|
+
endDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365), // 1 year from now
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const wagmiConfig = createConfig({
|
|
27
28
|
chains: [supportedChains[0], ...supportedChains.slice(1)],
|
|
28
|
-
transports: Object.fromEntries(supportedChains.map(chain => [chain.id, http()])) as any
|
|
29
|
+
transports: Object.fromEntries(supportedChains.map(chain => [chain.id, http()])) as any,
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
// Create queryClient instance
|
|
@@ -40,7 +41,7 @@ export function B3Provider({
|
|
|
40
41
|
children,
|
|
41
42
|
accountOverride,
|
|
42
43
|
environment,
|
|
43
|
-
automaticallySetFirstEoa
|
|
44
|
+
automaticallySetFirstEoa,
|
|
44
45
|
}: {
|
|
45
46
|
isMainnetAnySpend?: boolean;
|
|
46
47
|
theme: "light" | "dark";
|
|
@@ -53,20 +54,21 @@ export function B3Provider({
|
|
|
53
54
|
<WagmiProvider config={wagmiConfig}>
|
|
54
55
|
<QueryClientProvider client={queryClient}>
|
|
55
56
|
<ThirdwebProvider>
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
<TooltipProvider>
|
|
58
|
+
<InnerProvider
|
|
59
|
+
accountOverride={accountOverride}
|
|
60
|
+
environment={environment}
|
|
61
|
+
theme={theme}
|
|
62
|
+
automaticallySetFirstEoa={!!automaticallySetFirstEoa}
|
|
63
|
+
>
|
|
64
|
+
<RelayKitProviderWrapper isMainnet={isMainnetAnySpend}>
|
|
65
|
+
{children}
|
|
66
|
+
{/* For the modal https://github.com/b3-fun/b3/blob/main/packages/sdk/src/global-account/react/components/ui/dialog.tsx#L46 */}
|
|
67
|
+
<StyleRoot id="b3-root" />
|
|
68
|
+
<Toaster theme={theme} />
|
|
69
|
+
</RelayKitProviderWrapper>
|
|
70
|
+
</InnerProvider>
|
|
71
|
+
</TooltipProvider>
|
|
70
72
|
</ThirdwebProvider>
|
|
71
73
|
</QueryClientProvider>
|
|
72
74
|
</WagmiProvider>
|
|
@@ -82,7 +84,7 @@ export function InnerProvider({
|
|
|
82
84
|
environment,
|
|
83
85
|
defaultPermissions = DEFAULT_PERMISSIONS,
|
|
84
86
|
automaticallySetFirstEoa,
|
|
85
|
-
theme = "light"
|
|
87
|
+
theme = "light",
|
|
86
88
|
}: {
|
|
87
89
|
children: React.ReactNode;
|
|
88
90
|
accountOverride?: Account;
|
|
@@ -143,7 +145,7 @@ export function InnerProvider({
|
|
|
143
145
|
automaticallySetFirstEoa,
|
|
144
146
|
environment,
|
|
145
147
|
defaultPermissions,
|
|
146
|
-
theme
|
|
148
|
+
theme,
|
|
147
149
|
}}
|
|
148
150
|
>
|
|
149
151
|
{children}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TabsPrimitive,
|
|
13
13
|
TabsContentPrimitive,
|
|
14
14
|
TabsListPrimitive,
|
|
15
|
-
TabTriggerPrimitive
|
|
15
|
+
TabTriggerPrimitive,
|
|
16
16
|
} from "@b3dotfun/sdk/global-account/react";
|
|
17
17
|
import { formatAddress } from "@b3dotfun/sdk/shared/utils/formatAddress";
|
|
18
18
|
import { formatNumber } from "@b3dotfun/sdk/shared/utils/formatNumber";
|
|
@@ -42,7 +42,7 @@ export function ManageAccount({
|
|
|
42
42
|
onSwap: _onSwap,
|
|
43
43
|
onDeposit: _onDeposit,
|
|
44
44
|
chain,
|
|
45
|
-
partnerId
|
|
45
|
+
partnerId,
|
|
46
46
|
}: ManageAccountProps) {
|
|
47
47
|
const [activeTab, setActiveTab] = useState("balance");
|
|
48
48
|
const [revokingSignerId, setRevokingSignerId] = useState<string | null>(null);
|
|
@@ -52,7 +52,7 @@ export function ManageAccount({
|
|
|
52
52
|
const { data: nativeBalance } = useNativeBalance(account?.address);
|
|
53
53
|
const { data: signers, refetch: refetchSigners } = useGetAllTWSigners({
|
|
54
54
|
chain,
|
|
55
|
-
accountAddress: account?.address
|
|
55
|
+
accountAddress: account?.address,
|
|
56
56
|
});
|
|
57
57
|
const { setB3ModalOpen, setB3ModalContentType } = useModalStore();
|
|
58
58
|
const { logout } = useAuthentication(partnerId);
|
|
@@ -70,7 +70,7 @@ export function ManageAccount({
|
|
|
70
70
|
console.error("Error revoking access:", error);
|
|
71
71
|
setRevokingSignerId(null);
|
|
72
72
|
},
|
|
73
|
-
refetchSigners: () => refetchSigners()
|
|
73
|
+
refetchSigners: () => refetchSigners(),
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
const handleRevoke = async (signer: TWSignerWithMetadata) => {
|
|
@@ -126,7 +126,7 @@ export function ManageAccount({
|
|
|
126
126
|
setB3ModalContentType({
|
|
127
127
|
type: "anySpend",
|
|
128
128
|
defaultActiveTab: "fiat",
|
|
129
|
-
showBackButton: true
|
|
129
|
+
showBackButton: true,
|
|
130
130
|
});
|
|
131
131
|
}}
|
|
132
132
|
>
|
|
@@ -139,7 +139,7 @@ export function ManageAccount({
|
|
|
139
139
|
setB3ModalOpen(true);
|
|
140
140
|
setB3ModalContentType({
|
|
141
141
|
type: "anySpend",
|
|
142
|
-
showBackButton: true
|
|
142
|
+
showBackButton: true,
|
|
143
143
|
});
|
|
144
144
|
}}
|
|
145
145
|
>
|
|
@@ -28,7 +28,7 @@ export function MintButton({
|
|
|
28
28
|
className,
|
|
29
29
|
children = "Mint",
|
|
30
30
|
onSuccess,
|
|
31
|
-
onError
|
|
31
|
+
onError,
|
|
32
32
|
}: MintButtonProps) {
|
|
33
33
|
const ecoSystemWallet = useActiveAccount();
|
|
34
34
|
console.log("@@ecoSystemWallet", ecoSystemWallet);
|
|
@@ -38,7 +38,7 @@ export function MintButton({
|
|
|
38
38
|
quantity,
|
|
39
39
|
chain,
|
|
40
40
|
to,
|
|
41
|
-
tokenId
|
|
41
|
+
tokenId,
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
const smartAccountWithSignerOverride = ecoSystemWallet?.address !== to;
|
|
@@ -50,13 +50,13 @@ export function MintButton({
|
|
|
50
50
|
chain,
|
|
51
51
|
sponsorGas: true,
|
|
52
52
|
overrides: {
|
|
53
|
-
accountAddress: ecoSystemWallet?.address
|
|
54
|
-
}
|
|
53
|
+
accountAddress: ecoSystemWallet?.address,
|
|
54
|
+
},
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
const smartAccountWithSigner = await wallet.connect({
|
|
58
58
|
client,
|
|
59
|
-
personalAccount: account
|
|
59
|
+
personalAccount: account,
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
const tx = await claim(smartAccountWithSigner);
|
|
@@ -20,12 +20,12 @@ export function RelayKitProviderWrapper({ isMainnet, children }: { isMainnet: bo
|
|
|
20
20
|
source: "anyspend",
|
|
21
21
|
duneConfig: {
|
|
22
22
|
apiKey: "OkvN2bWlBPwXkvtmnTeYMQR1hYZBGDJt",
|
|
23
|
-
apiBaseUrl: "https://api.dune.com"
|
|
23
|
+
apiBaseUrl: "https://api.dune.com",
|
|
24
24
|
},
|
|
25
25
|
chains: relayChains,
|
|
26
26
|
privateChainIds: undefined,
|
|
27
27
|
appName: "AnySpend",
|
|
28
|
-
useGasFeeEstimations: true
|
|
28
|
+
useGasFeeEstimations: true,
|
|
29
29
|
}}
|
|
30
30
|
>
|
|
31
31
|
<>{children}</>
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
useB3,
|
|
4
4
|
useAddTWSessionKey,
|
|
5
5
|
useGetAllTWSigners,
|
|
6
|
-
RequestPermissionsModalProps
|
|
6
|
+
RequestPermissionsModalProps,
|
|
7
7
|
} from "@b3dotfun/sdk/global-account/react";
|
|
8
8
|
import { PermissionItem } from "@b3dotfun/sdk/global-account/react";
|
|
9
9
|
import { PermissionsConfig } from "@b3dotfun/sdk/global-account/types/permissions";
|
|
@@ -26,19 +26,19 @@ export function RequestPermissions({
|
|
|
26
26
|
onError,
|
|
27
27
|
chain,
|
|
28
28
|
sessionKeyAddress,
|
|
29
|
-
permissions
|
|
29
|
+
permissions,
|
|
30
30
|
}: RequestPermissionsModalProps) {
|
|
31
31
|
const [isApproving, setIsApproving] = useState(false);
|
|
32
32
|
const account = useActiveAccount();
|
|
33
33
|
const { defaultPermissions } = useB3();
|
|
34
34
|
const DEFAULT_PERMISSIONS = useMemo(
|
|
35
35
|
() => permissions ?? (defaultPermissions as PermissionsConfig),
|
|
36
|
-
[defaultPermissions, permissions]
|
|
36
|
+
[defaultPermissions, permissions],
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
const { refetch: refetchSigners } = useGetAllTWSigners({
|
|
40
40
|
chain,
|
|
41
|
-
accountAddress: account?.address
|
|
41
|
+
accountAddress: account?.address,
|
|
42
42
|
});
|
|
43
43
|
const { newSessionKey } = useAddTWSessionKey({
|
|
44
44
|
onSuccess: transactionResult => {
|
|
@@ -52,7 +52,7 @@ export function RequestPermissions({
|
|
|
52
52
|
refetchSigners: () => {
|
|
53
53
|
return refetchSigners();
|
|
54
54
|
},
|
|
55
|
-
chain
|
|
55
|
+
chain,
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
const handleApprove = useCallback(async () => {
|
|
@@ -68,7 +68,7 @@ export function RequestPermissions({
|
|
|
68
68
|
approvedTargets: DEFAULT_PERMISSIONS.approvedTargets as Address[],
|
|
69
69
|
nativeTokenLimitPerTransaction: DEFAULT_PERMISSIONS.nativeTokenLimitPerTransaction,
|
|
70
70
|
permissionStartTimestamp: DEFAULT_PERMISSIONS.startDate,
|
|
71
|
-
permissionEndTimestamp: DEFAULT_PERMISSIONS.endDate
|
|
71
|
+
permissionEndTimestamp: DEFAULT_PERMISSIONS.endDate,
|
|
72
72
|
});
|
|
73
73
|
} catch (error) {
|
|
74
74
|
console.error("@@error:", error);
|
|
@@ -81,7 +81,7 @@ export function RequestPermissions({
|
|
|
81
81
|
const formatDate = (date: Date) => {
|
|
82
82
|
return new Intl.DateTimeFormat("en-US", {
|
|
83
83
|
dateStyle: "medium",
|
|
84
|
-
timeStyle: "short"
|
|
84
|
+
timeStyle: "short",
|
|
85
85
|
}).format(date);
|
|
86
86
|
};
|
|
87
87
|
return (
|
|
@@ -16,7 +16,7 @@ export function RequestPermissionsButton({
|
|
|
16
16
|
onSuccess,
|
|
17
17
|
onError,
|
|
18
18
|
permissions,
|
|
19
|
-
closeOnSuccess = true
|
|
19
|
+
closeOnSuccess = true,
|
|
20
20
|
}: RequestPermissionsButtonProps) {
|
|
21
21
|
const { setB3ModalOpen, setB3ModalContentType } = useModalStore();
|
|
22
22
|
|
|
@@ -32,7 +32,7 @@ export function RequestPermissionsButton({
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
onError,
|
|
35
|
-
permissions
|
|
35
|
+
permissions,
|
|
36
36
|
});
|
|
37
37
|
setB3ModalOpen(true);
|
|
38
38
|
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SignInWithB3,
|
|
3
|
+
SignInWithB3ModalProps,
|
|
4
|
+
StyleRoot,
|
|
5
|
+
useAccountWallet,
|
|
6
|
+
useAuthentication,
|
|
7
|
+
useB3,
|
|
8
|
+
useIsMobile,
|
|
9
|
+
} from "@b3dotfun/sdk/global-account/react";
|
|
10
|
+
import Icon from "@b3dotfun/sdk/global-account/react/components/custom/Icon";
|
|
11
|
+
import { ecosystemWalletId } from "@b3dotfun/sdk/shared/constants";
|
|
12
|
+
import { cn, truncateAddress } from "@b3dotfun/sdk/shared/utils";
|
|
13
|
+
import { Menu, MenuButton, MenuItems, Transition } from "@headlessui/react";
|
|
14
|
+
import { ReactNode, useEffect } from "react";
|
|
15
|
+
import { useConnectedWallets, useSetActiveWallet, useWalletInfo } from "thirdweb/react";
|
|
16
|
+
import { ManageAccountButton } from "../custom/ManageAccountButton";
|
|
17
|
+
|
|
18
|
+
type SignInProps = {
|
|
19
|
+
className?: string;
|
|
20
|
+
isMobile?: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type SignInWithB3Props = Omit<SignInWithB3ModalProps, "type" | "showBackButton"> & {
|
|
24
|
+
buttonText?: string | ReactNode;
|
|
25
|
+
loggedInButtonText?: string | ReactNode;
|
|
26
|
+
loadingButtonText?: string | ReactNode;
|
|
27
|
+
withLogo?: boolean;
|
|
28
|
+
} & SignInProps;
|
|
29
|
+
|
|
30
|
+
export function SignIn(props: SignInWithB3Props) {
|
|
31
|
+
const { className } = props;
|
|
32
|
+
const { automaticallySetFirstEoa } = useB3();
|
|
33
|
+
const {
|
|
34
|
+
wallet,
|
|
35
|
+
address: globalAddress,
|
|
36
|
+
ensName,
|
|
37
|
+
connectedSmartWallet,
|
|
38
|
+
connectedEOAWallet,
|
|
39
|
+
isActiveSmartWallet,
|
|
40
|
+
isActiveEOAWallet,
|
|
41
|
+
smartWalletIcon,
|
|
42
|
+
eoaWalletIcon,
|
|
43
|
+
} = useAccountWallet();
|
|
44
|
+
|
|
45
|
+
const isMobile = useIsMobile();
|
|
46
|
+
const { logout } = useAuthentication(String(process.env.NEXT_PUBLIC_GLOBAL_ACCOUNTS_PARTNER_ID));
|
|
47
|
+
const onDisconnect = async () => {
|
|
48
|
+
await logout();
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const connectedWallets = useConnectedWallets();
|
|
52
|
+
|
|
53
|
+
const { data: walletInfo } = useWalletInfo(isActiveSmartWallet ? connectedSmartWallet?.id : connectedEOAWallet?.id);
|
|
54
|
+
|
|
55
|
+
const setActiveWallet = useSetActiveWallet();
|
|
56
|
+
|
|
57
|
+
const handleSetActiveAccount = (selectedWalletId: string | undefined) => {
|
|
58
|
+
if (
|
|
59
|
+
!selectedWalletId ||
|
|
60
|
+
!connectedWallets ||
|
|
61
|
+
!connectedEOAWallet ||
|
|
62
|
+
!connectedSmartWallet ||
|
|
63
|
+
!automaticallySetFirstEoa
|
|
64
|
+
)
|
|
65
|
+
return;
|
|
66
|
+
setActiveWallet(selectedWalletId === ecosystemWalletId ? connectedSmartWallet : connectedEOAWallet);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// Automatically set EOA wallet as active when available
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (connectedEOAWallet && automaticallySetFirstEoa) {
|
|
72
|
+
setActiveWallet(connectedEOAWallet);
|
|
73
|
+
}
|
|
74
|
+
}, [connectedEOAWallet, isActiveEOAWallet, setActiveWallet, automaticallySetFirstEoa]);
|
|
75
|
+
|
|
76
|
+
// Desktop version - original dropdown menu
|
|
77
|
+
return (
|
|
78
|
+
<StyleRoot>
|
|
79
|
+
<Menu className={`relative flex items-center ${className || ""}`} as="div">
|
|
80
|
+
{globalAddress ? (
|
|
81
|
+
<>
|
|
82
|
+
<MenuButton className="bg-theme-on-surface-2 group flex h-10 items-center gap-1 rounded-xl px-3">
|
|
83
|
+
{!!wallet.meta?.icon && (
|
|
84
|
+
<img
|
|
85
|
+
src={wallet.meta.icon}
|
|
86
|
+
alt={wallet.meta.icon}
|
|
87
|
+
className="bg-theme-primary h-6 w-6 rounded-full object-cover opacity-100"
|
|
88
|
+
/>
|
|
89
|
+
)}
|
|
90
|
+
<div className="text-body-1m text-theme-secondary">
|
|
91
|
+
{ensName ? ensName : truncateAddress(globalAddress)}
|
|
92
|
+
</div>
|
|
93
|
+
</MenuButton>
|
|
94
|
+
<Transition
|
|
95
|
+
enter="duration-200 ease-out"
|
|
96
|
+
enterFrom="scale-95 opacity-0"
|
|
97
|
+
enterTo="scale-100 opacity-100"
|
|
98
|
+
leave="duration-300 ease-out"
|
|
99
|
+
leaveFrom="scale-100 opacity-100"
|
|
100
|
+
leaveTo="scale-95 opacity-0"
|
|
101
|
+
>
|
|
102
|
+
<MenuItems
|
|
103
|
+
className="b3-root shadow-depth-1 absolute -right-4 top-full min-w-64 rounded-2xl border lg:right-0"
|
|
104
|
+
modal={false}
|
|
105
|
+
// TODO: Figure out why setting anchor on mobile causes z-index issues where it appears under elements
|
|
106
|
+
anchor={isMobile ? "top end" : undefined}
|
|
107
|
+
>
|
|
108
|
+
<div className="bg-b3-react-background">
|
|
109
|
+
{connectedEOAWallet ? (
|
|
110
|
+
<div
|
|
111
|
+
className={cn(
|
|
112
|
+
"border-b3-react-subtle bg-b3-react-background flex cursor-pointer items-center justify-between rounded-xl p-3",
|
|
113
|
+
"hover:bg-theme-on-surface-2",
|
|
114
|
+
)}
|
|
115
|
+
onClick={() => handleSetActiveAccount(connectedEOAWallet?.id)}
|
|
116
|
+
>
|
|
117
|
+
<div className="flex items-center">
|
|
118
|
+
<img
|
|
119
|
+
className="bg-theme-primary h-16 w-16 rounded-full opacity-100"
|
|
120
|
+
src={eoaWalletIcon}
|
|
121
|
+
alt={connectedEOAWallet?.id}
|
|
122
|
+
/>
|
|
123
|
+
<div className="ml-4 grow">
|
|
124
|
+
{ensName && <div className="text-title-1s">{ensName}</div>}
|
|
125
|
+
<div className="text-title-1s">{truncateAddress(globalAddress)}</div>
|
|
126
|
+
<div className="text-body-1m text-theme-secondary">{walletInfo?.name}</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
{isActiveEOAWallet && <Icon className="fill-theme-primary" name="check" />}
|
|
130
|
+
</div>
|
|
131
|
+
) : (
|
|
132
|
+
connectedSmartWallet && (
|
|
133
|
+
<div
|
|
134
|
+
className={cn(
|
|
135
|
+
"mb-2 flex cursor-pointer items-center justify-between rounded-xl p-3",
|
|
136
|
+
isActiveSmartWallet ? "bg-theme-n-8" : "bg-b3-react-background hover:bg-theme-on-surface-2",
|
|
137
|
+
)}
|
|
138
|
+
onClick={() => handleSetActiveAccount(connectedSmartWallet?.id)}
|
|
139
|
+
>
|
|
140
|
+
<div className="flex items-center">
|
|
141
|
+
<img
|
|
142
|
+
className="bg-theme-primary h-16 w-16 rounded-full opacity-100"
|
|
143
|
+
src={smartWalletIcon}
|
|
144
|
+
alt={connectedSmartWallet?.id}
|
|
145
|
+
/>
|
|
146
|
+
<div className="pl-4.5 grow">
|
|
147
|
+
{ensName && <div className="text-title-1s">{ensName}</div>}
|
|
148
|
+
<div className="text-title-1s">{truncateAddress(globalAddress)}</div>
|
|
149
|
+
<div className="text-body-1m text-theme-secondary">Smart wallet</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
{isActiveSmartWallet && <Icon className="fill-theme-primary" name="check" />}
|
|
153
|
+
</div>
|
|
154
|
+
)
|
|
155
|
+
)}
|
|
156
|
+
|
|
157
|
+
<div className="ml-3">
|
|
158
|
+
<ManageAccountButton {...props} className="w-[calc(100%-12px)]" />
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<button className="mb-2 w-full space-y-1" onClick={onDisconnect}>
|
|
162
|
+
<div className="hover:bg-theme-on-surface-2 group flex h-12 items-center rounded-xl px-4 transition-colors">
|
|
163
|
+
<Icon
|
|
164
|
+
className="fill-theme-secondary group-hover:fill-theme-primary mr-4 shrink-0 transition-colors"
|
|
165
|
+
name="logout"
|
|
166
|
+
/>
|
|
167
|
+
<div className="text-base-1s text-theme-secondary group-hover:text-theme-primary mr-auto transition-colors">
|
|
168
|
+
Disconnect
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</button>
|
|
172
|
+
</div>
|
|
173
|
+
</MenuItems>
|
|
174
|
+
</Transition>
|
|
175
|
+
</>
|
|
176
|
+
) : (
|
|
177
|
+
<SignInWithB3
|
|
178
|
+
closeAfterLogin={true}
|
|
179
|
+
onLoginSuccess={async globalAccount => {
|
|
180
|
+
console.log("User authenticated with Global Account!", globalAccount);
|
|
181
|
+
}}
|
|
182
|
+
{...props}
|
|
183
|
+
/>
|
|
184
|
+
)}
|
|
185
|
+
</Menu>
|
|
186
|
+
</StyleRoot>
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export default SignIn;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
SignInWithB3ModalProps,
|
|
4
|
+
StyleRoot,
|
|
5
|
+
useAuthentication,
|
|
6
|
+
useIsMobile,
|
|
7
|
+
useModalStore,
|
|
8
|
+
} from "@b3dotfun/sdk/global-account/react";
|
|
3
9
|
import { ReactNode, useEffect } from "react";
|
|
4
10
|
import { useActiveAccount } from "thirdweb/react";
|
|
11
|
+
import { ManageAccountButton } from "../custom/ManageAccountButton";
|
|
12
|
+
import { Loading } from "../ui/Loading";
|
|
5
13
|
|
|
6
|
-
type SignInWithB3Props = Omit<SignInWithB3ModalProps, "type" | "showBackButton"> & {
|
|
14
|
+
export type SignInWithB3Props = Omit<SignInWithB3ModalProps, "type" | "showBackButton"> & {
|
|
7
15
|
buttonText?: string | ReactNode;
|
|
8
16
|
loggedInButtonText?: string | ReactNode;
|
|
9
17
|
loadingButtonText?: string | ReactNode;
|
|
@@ -14,6 +22,7 @@ export function SignInWithB3(props: SignInWithB3Props) {
|
|
|
14
22
|
const { setB3ModalOpen, setB3ModalContentType, setEcoSystemAccountAddress } = useModalStore();
|
|
15
23
|
const account = useActiveAccount();
|
|
16
24
|
const { isAuthenticating, isAuthenticated } = useAuthentication(props.partnerId, props.loginWithSiwe);
|
|
25
|
+
const isMobile = useIsMobile();
|
|
17
26
|
|
|
18
27
|
useEffect(() => {
|
|
19
28
|
if (account) {
|
|
@@ -25,34 +34,13 @@ export function SignInWithB3(props: SignInWithB3Props) {
|
|
|
25
34
|
setB3ModalContentType({
|
|
26
35
|
...props,
|
|
27
36
|
type: "signInWithB3",
|
|
28
|
-
showBackButton: false
|
|
29
|
-
});
|
|
30
|
-
setB3ModalOpen(true);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const handleClickManageAccount = () => {
|
|
34
|
-
setB3ModalContentType({
|
|
35
|
-
...props,
|
|
36
|
-
type: "manageAccount"
|
|
37
|
+
showBackButton: false,
|
|
37
38
|
});
|
|
38
39
|
setB3ModalOpen(true);
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
if (isAuthenticated) {
|
|
42
|
-
return
|
|
43
|
-
<StyleRoot>
|
|
44
|
-
<Button
|
|
45
|
-
onClick={handleClickManageAccount}
|
|
46
|
-
style={{ backgroundColor: "#3368ef" }}
|
|
47
|
-
className="flex items-center gap-2 text-white"
|
|
48
|
-
>
|
|
49
|
-
{props.withLogo !== false && (
|
|
50
|
-
<img src="https://cdn.b3.fun/b3_logo_white.svg" alt="B3 Logo" className="h-5 w-5" />
|
|
51
|
-
)}
|
|
52
|
-
{props.loggedInButtonText || "Manage Account"}
|
|
53
|
-
</Button>
|
|
54
|
-
</StyleRoot>
|
|
55
|
-
);
|
|
43
|
+
return <ManageAccountButton {...props} />;
|
|
56
44
|
}
|
|
57
45
|
|
|
58
46
|
if (isAuthenticating) {
|
|
@@ -62,7 +50,7 @@ export function SignInWithB3(props: SignInWithB3Props) {
|
|
|
62
50
|
{props.withLogo !== false && (
|
|
63
51
|
<img src="https://cdn.b3.fun/b3_logo_white.svg" alt="B3 Logo" className="h-5 w-5" />
|
|
64
52
|
)}
|
|
65
|
-
{props.loadingButtonText || "Signing in
|
|
53
|
+
{props.loadingButtonText || (isMobile ? <Loading size="sm" /> : "Signing in…")}
|
|
66
54
|
</Button>
|
|
67
55
|
</StyleRoot>
|
|
68
56
|
);
|
|
@@ -73,7 +61,7 @@ export function SignInWithB3(props: SignInWithB3Props) {
|
|
|
73
61
|
<Button
|
|
74
62
|
onClick={handleClick}
|
|
75
63
|
style={{ backgroundColor: "#3368ef" }}
|
|
76
|
-
className="flex items-center gap-2 font-medium text-white"
|
|
64
|
+
className="b3-sign-in-button flex items-center gap-2 font-medium text-white"
|
|
77
65
|
>
|
|
78
66
|
{props.buttonText ? (
|
|
79
67
|
props.buttonText
|