@b3dotfun/sdk 0.0.7-alpha.12 → 0.0.7-alpha.14
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/constants/index.js +10 -10
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +20 -20
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +32 -32
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +29 -29
- 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/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 +9 -9
- 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 +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +7 -7
- 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 +12 -12
- 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/index.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/index.js +3 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +1 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +14 -14
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.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/usePermitData.js +19 -19
- 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 +3 -3
- package/dist/cjs/anyspend/services/anyspend.d.ts +6 -1
- package/dist/cjs/anyspend/services/anyspend.js +13 -13
- package/dist/cjs/anyspend/types/custom.js +2 -2
- package/dist/cjs/anyspend/types/globalWallet.js +1 -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 -0
- package/dist/cjs/anyspend/types/order.js +7 -7
- package/dist/cjs/anyspend/types/permit.js +1 -1
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +70 -0
- 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 -0
- 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 -0
- 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/sendPermitData.js +2 -2
- 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 -2
- 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 +1 -1
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +5 -5
- 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/hooks/useAccountAssets.js +4 -4
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +4 -4
- 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.js +5 -5
- 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 +10 -10
- 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.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/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/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/esm/anyspend/abis/abi-usdc-base.js +97 -97
- package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
- package/dist/esm/anyspend/constants/index.js +10 -10
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpend.js +22 -22
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +33 -33
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +31 -31
- 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/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 +12 -12
- 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 +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -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 +12 -12
- 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/index.d.ts +1 -0
- package/dist/esm/anyspend/react/components/index.js +1 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +1 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +15 -15
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.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/usePermitData.js +19 -19
- 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 +3 -3
- package/dist/esm/anyspend/services/anyspend.d.ts +6 -1
- package/dist/esm/anyspend/services/anyspend.js +14 -14
- package/dist/esm/anyspend/types/custom.js +2 -2
- package/dist/esm/anyspend/types/globalWallet.js +1 -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 -0
- package/dist/esm/anyspend/types/order.js +7 -7
- package/dist/esm/anyspend/types/permit.js +1 -1
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +70 -0
- 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 -0
- 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 -0
- 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/sendPermitData.js +2 -2
- 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 -2
- 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 +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +5 -5
- 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/hooks/useAccountAssets.js +4 -4
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +4 -4
- 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.js +5 -5
- 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 +10 -10
- 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.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/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/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/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/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/index.d.ts +1 -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/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/types/anyspend/services/anyspend.d.ts +6 -1
- package/dist/types/anyspend/types/onramp.d.ts +3 -0
- package/dist/types/anyspend/types/order.d.ts +30 -0
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +70 -0
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -0
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +35 -0
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +26 -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/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/package.json +1 -1
- package/src/anyspend/abis/abi-usdc-base.ts +97 -97
- package/src/anyspend/abis/erc20-staking.ts +51 -51
- package/src/anyspend/constants/index.ts +10 -10
- package/src/anyspend/react/components/AnySpend.tsx +33 -32
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +34 -34
- package/src/anyspend/react/components/AnySpendCustom.tsx +39 -39
- 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/common/ChainTokenIcon.tsx +1 -1
- package/src/anyspend/react/components/common/OrderDetails.tsx +15 -15
- 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 +3 -3
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +8 -8
- 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 +14 -14
- package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
- package/src/anyspend/react/components/index.ts +1 -0
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +1 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +18 -18
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +7 -7
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +7 -7
- 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 +5 -5
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +3 -3
- 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/usePermitData.ts +19 -19
- 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 +3 -3
- package/src/anyspend/services/anyspend.ts +23 -23
- 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/nft.ts +7 -7
- package/src/anyspend/types/onramp.ts +3 -2
- package/src/anyspend/types/order.ts +9 -9
- package/src/anyspend/types/permit.ts +1 -1
- 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/sendPermitData.ts +2 -2
- 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 -2
- 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 +3 -3
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +5 -5
- 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 +1 -1
- package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
- package/src/global-account/react/hooks/useAccountWallet.tsx +5 -5
- 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 +6 -6
- 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 +11 -11
- 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 +3 -3
- 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/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/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
|
@@ -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
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useAccountWallet,
|
|
6
6
|
useAuthentication,
|
|
7
7
|
useB3,
|
|
8
|
-
useIsMobile
|
|
8
|
+
useIsMobile,
|
|
9
9
|
} from "@b3dotfun/sdk/global-account/react";
|
|
10
10
|
import Icon from "@b3dotfun/sdk/global-account/react/components/custom/Icon";
|
|
11
11
|
import { ecosystemWalletId } from "@b3dotfun/sdk/shared/constants";
|
|
@@ -39,7 +39,7 @@ export function SignIn(props: SignInWithB3Props) {
|
|
|
39
39
|
isActiveSmartWallet,
|
|
40
40
|
isActiveEOAWallet,
|
|
41
41
|
smartWalletIcon,
|
|
42
|
-
eoaWalletIcon
|
|
42
|
+
eoaWalletIcon,
|
|
43
43
|
} = useAccountWallet();
|
|
44
44
|
|
|
45
45
|
const isMobile = useIsMobile();
|
|
@@ -110,7 +110,7 @@ export function SignIn(props: SignInWithB3Props) {
|
|
|
110
110
|
<div
|
|
111
111
|
className={cn(
|
|
112
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"
|
|
113
|
+
"hover:bg-theme-on-surface-2",
|
|
114
114
|
)}
|
|
115
115
|
onClick={() => handleSetActiveAccount(connectedEOAWallet?.id)}
|
|
116
116
|
>
|
|
@@ -133,7 +133,7 @@ export function SignIn(props: SignInWithB3Props) {
|
|
|
133
133
|
<div
|
|
134
134
|
className={cn(
|
|
135
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"
|
|
136
|
+
isActiveSmartWallet ? "bg-theme-n-8" : "bg-b3-react-background hover:bg-theme-on-surface-2",
|
|
137
137
|
)}
|
|
138
138
|
onClick={() => handleSetActiveAccount(connectedSmartWallet?.id)}
|
|
139
139
|
>
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
StyleRoot,
|
|
5
5
|
useAuthentication,
|
|
6
6
|
useIsMobile,
|
|
7
|
-
useModalStore
|
|
7
|
+
useModalStore,
|
|
8
8
|
} from "@b3dotfun/sdk/global-account/react";
|
|
9
9
|
import { ReactNode, useEffect } from "react";
|
|
10
10
|
import { useActiveAccount } from "thirdweb/react";
|
|
@@ -34,7 +34,7 @@ export function SignInWithB3(props: SignInWithB3Props) {
|
|
|
34
34
|
setB3ModalContentType({
|
|
35
35
|
...props,
|
|
36
36
|
type: "signInWithB3",
|
|
37
|
-
showBackButton: false
|
|
37
|
+
showBackButton: false,
|
|
38
38
|
});
|
|
39
39
|
setB3ModalOpen(true);
|
|
40
40
|
};
|
|
@@ -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}
|