thirdweb 5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334 → 5.70.0-nightly-ecaa304a812188da3c81888bb52ca6064093c139-20241121000332
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/client/client.js +1 -0
- package/dist/cjs/client/client.js.map +1 -1
- package/dist/cjs/exports/react.js +32 -3
- package/dist/cjs/exports/react.js.map +1 -1
- package/dist/cjs/extensions/erc721/lazyMinting/read/getBatchesToReveal.js +1 -1
- package/dist/cjs/extensions/modules/common/checkModulesCompatibility.js +5 -0
- package/dist/cjs/extensions/modules/common/checkModulesCompatibility.js.map +1 -1
- package/dist/cjs/extensions/prebuilts/deploy-pack.js +1 -0
- package/dist/cjs/extensions/prebuilts/deploy-pack.js.map +1 -1
- package/dist/cjs/extensions/thirdweb/write/publish.js +4 -0
- package/dist/cjs/extensions/thirdweb/write/publish.js.map +1 -1
- package/dist/cjs/react/core/hooks/others/useChainQuery.js +3 -3
- package/dist/cjs/react/core/hooks/rpc/useBlockNumber.js +1 -1
- package/dist/cjs/react/core/hooks/wallets/useCapabilities.js +1 -1
- package/dist/cjs/react/core/hooks/wallets/useSendCalls.js +3 -3
- package/dist/cjs/react/core/providers/connection-manager.js +3 -0
- package/dist/cjs/react/core/providers/connection-manager.js.map +1 -1
- package/dist/cjs/react/core/utils/wallet.js +2 -1
- package/dist/cjs/react/core/utils/wallet.js.map +1 -1
- package/dist/cjs/react/core/utils/walletIcon.js +2 -0
- package/dist/cjs/react/core/utils/walletIcon.js.map +1 -1
- package/dist/cjs/react/native/hooks/wallets/useProfiles.js +1 -1
- package/dist/cjs/react/native/providers/thirdweb-provider.js +1 -0
- package/dist/cjs/react/native/providers/thirdweb-provider.js.map +1 -1
- package/dist/cjs/react/native/ui/AutoConnect/AutoConnect.js +1 -0
- package/dist/cjs/react/native/ui/AutoConnect/AutoConnect.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectModal.js +1 -0
- package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/cjs/react/native/ui/transaction/TransactionButton.js +1 -0
- package/dist/cjs/react/native/ui/transaction/TransactionButton.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js +1 -1
- package/dist/cjs/react/web/providers/thirdweb-provider.js +1 -0
- package/dist/cjs/react/web/providers/thirdweb-provider.js.map +1 -1
- package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js +1 -0
- package/dist/cjs/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Blobbie.js +19 -4
- package/dist/cjs/react/web/ui/ConnectWallet/Blobbie.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +21 -19
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +18 -13
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/PayEmbed.js +1 -0
- package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/SiteEmbed.js +3 -2
- package/dist/cjs/react/web/ui/SiteEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/SiteLink.js +2 -1
- package/dist/cjs/react/web/ui/SiteLink.js.map +1 -1
- package/dist/cjs/react/web/ui/TransactionButton/index.js +1 -0
- package/dist/cjs/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/Account/address.js +49 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/address.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/avatar.js +144 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/avatar.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/balance.js +122 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/balance.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/blobbie.js +16 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/blobbie.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/name.js +106 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/name.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/provider.js +43 -0
- package/dist/cjs/react/web/ui/prebuilt/Account/provider.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/description.js +69 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/description.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/hooks.js +45 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/hooks.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/media.js +82 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/media.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/name.js +68 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/name.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/provider.js +55 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/provider.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/icon.js +113 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/icon.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/name.js +137 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/name.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/provider.js +54 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/provider.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/symbol.js +134 -0
- package/dist/cjs/react/web/ui/prebuilt/Token/symbol.js.map +1 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +1 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +1 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +1 -0
- package/dist/cjs/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
- package/dist/cjs/storage/unpin.js +1 -1
- package/dist/cjs/storage/upload.js +1 -0
- package/dist/cjs/storage/upload.js.map +1 -1
- package/dist/cjs/transaction/actions/to-serializable-transaction.js +1 -1
- package/dist/cjs/transaction/actions/zksync/send-eip712-transaction.js +5 -0
- package/dist/cjs/transaction/actions/zksync/send-eip712-transaction.js.map +1 -1
- package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js +5 -0
- package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
- package/dist/cjs/utils/config.js +9 -0
- package/dist/cjs/utils/config.js.map +1 -1
- package/dist/cjs/utils/json.js +7 -4
- package/dist/cjs/utils/json.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/eip5792/get-calls-status.js +1 -1
- package/dist/cjs/wallets/eip5792/get-capabilities.js +1 -1
- package/dist/cjs/wallets/eip5792/send-calls.js +2 -2
- package/dist/cjs/wallets/eip5792/wait-for-bundle.js +1 -1
- package/dist/cjs/wallets/in-app/core/users/getUser.js +1 -1
- package/dist/cjs/wallets/smart/smart-wallet.js +1 -0
- package/dist/cjs/wallets/smart/smart-wallet.js.map +1 -1
- package/dist/esm/client/client.js +1 -0
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/exports/react.js +17 -1
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/extensions/erc721/lazyMinting/read/getBatchesToReveal.js +1 -1
- package/dist/esm/extensions/modules/common/checkModulesCompatibility.js +5 -0
- package/dist/esm/extensions/modules/common/checkModulesCompatibility.js.map +1 -1
- package/dist/esm/extensions/prebuilts/deploy-pack.js +1 -0
- package/dist/esm/extensions/prebuilts/deploy-pack.js.map +1 -1
- package/dist/esm/extensions/thirdweb/write/publish.js +4 -0
- package/dist/esm/extensions/thirdweb/write/publish.js.map +1 -1
- package/dist/esm/react/core/hooks/others/useChainQuery.js +3 -3
- package/dist/esm/react/core/hooks/rpc/useBlockNumber.js +1 -1
- package/dist/esm/react/core/hooks/wallets/useCapabilities.js +1 -1
- package/dist/esm/react/core/hooks/wallets/useSendCalls.js +3 -3
- package/dist/esm/react/core/providers/connection-manager.js +3 -0
- package/dist/esm/react/core/providers/connection-manager.js.map +1 -1
- package/dist/esm/react/core/utils/wallet.js +2 -1
- package/dist/esm/react/core/utils/wallet.js.map +1 -1
- package/dist/esm/react/core/utils/walletIcon.js +2 -0
- package/dist/esm/react/core/utils/walletIcon.js.map +1 -1
- package/dist/esm/react/native/hooks/wallets/useProfiles.js +1 -1
- package/dist/esm/react/native/providers/thirdweb-provider.js +1 -0
- package/dist/esm/react/native/providers/thirdweb-provider.js.map +1 -1
- package/dist/esm/react/native/ui/AutoConnect/AutoConnect.js +1 -0
- package/dist/esm/react/native/ui/AutoConnect/AutoConnect.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectModal.js +1 -0
- package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/esm/react/native/ui/transaction/TransactionButton.js +1 -0
- package/dist/esm/react/native/ui/transaction/TransactionButton.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useProfiles.js +1 -1
- package/dist/esm/react/web/providers/thirdweb-provider.js +1 -0
- package/dist/esm/react/web/providers/thirdweb-provider.js.map +1 -1
- package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js +1 -0
- package/dist/esm/react/web/ui/AutoConnect/AutoConnect.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Blobbie.js +19 -4
- package/dist/esm/react/web/ui/ConnectWallet/Blobbie.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +21 -19
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +19 -14
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/PayEmbed.js +1 -0
- package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/SiteEmbed.js +3 -2
- package/dist/esm/react/web/ui/SiteEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/SiteLink.js +2 -1
- package/dist/esm/react/web/ui/SiteLink.js.map +1 -1
- package/dist/esm/react/web/ui/TransactionButton/index.js +1 -0
- package/dist/esm/react/web/ui/TransactionButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/Account/address.js +46 -0
- package/dist/esm/react/web/ui/prebuilt/Account/address.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Account/avatar.js +141 -0
- package/dist/esm/react/web/ui/prebuilt/Account/avatar.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Account/balance.js +119 -0
- package/dist/esm/react/web/ui/prebuilt/Account/balance.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Account/blobbie.js +13 -0
- package/dist/esm/react/web/ui/prebuilt/Account/blobbie.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Account/name.js +103 -0
- package/dist/esm/react/web/ui/prebuilt/Account/name.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Account/provider.js +39 -0
- package/dist/esm/react/web/ui/prebuilt/Account/provider.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/description.js +66 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/description.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/hooks.js +41 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/hooks.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/media.js +79 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/media.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/name.js +65 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/name.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/provider.js +50 -0
- package/dist/esm/react/web/ui/prebuilt/NFT/provider.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Token/icon.js +110 -0
- package/dist/esm/react/web/ui/prebuilt/Token/icon.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Token/name.js +134 -0
- package/dist/esm/react/web/ui/prebuilt/Token/name.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Token/provider.js +50 -0
- package/dist/esm/react/web/ui/prebuilt/Token/provider.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/Token/symbol.js +131 -0
- package/dist/esm/react/web/ui/prebuilt/Token/symbol.js.map +1 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js +1 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js +1 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/ClaimButton/index.js.map +1 -1
- package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js +1 -0
- package/dist/esm/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.js.map +1 -1
- package/dist/esm/storage/unpin.js +1 -1
- package/dist/esm/storage/upload.js +1 -0
- package/dist/esm/storage/upload.js.map +1 -1
- package/dist/esm/transaction/actions/to-serializable-transaction.js +1 -1
- package/dist/esm/transaction/actions/zksync/send-eip712-transaction.js +5 -0
- package/dist/esm/transaction/actions/zksync/send-eip712-transaction.js.map +1 -1
- package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js +5 -0
- package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
- package/dist/esm/utils/config.js +9 -0
- package/dist/esm/utils/config.js.map +1 -1
- package/dist/esm/utils/json.js +6 -2
- package/dist/esm/utils/json.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/eip5792/get-calls-status.js +1 -1
- package/dist/esm/wallets/eip5792/get-capabilities.js +1 -1
- package/dist/esm/wallets/eip5792/send-calls.js +2 -2
- package/dist/esm/wallets/eip5792/wait-for-bundle.js +1 -1
- package/dist/esm/wallets/in-app/core/users/getUser.js +1 -1
- package/dist/esm/wallets/smart/smart-wallet.js +1 -0
- package/dist/esm/wallets/smart/smart-wallet.js.map +1 -1
- package/dist/types/client/client.d.ts +1 -0
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/exports/react.d.ts +14 -1
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/extensions/erc721/lazyMinting/read/getBatchesToReveal.d.ts +1 -1
- package/dist/types/extensions/modules/common/checkModulesCompatibility.d.ts +5 -0
- package/dist/types/extensions/modules/common/checkModulesCompatibility.d.ts.map +1 -1
- package/dist/types/extensions/prebuilts/deploy-pack.d.ts +1 -0
- package/dist/types/extensions/prebuilts/deploy-pack.d.ts.map +1 -1
- package/dist/types/extensions/thirdweb/write/publish.d.ts +4 -0
- package/dist/types/extensions/thirdweb/write/publish.d.ts.map +1 -1
- package/dist/types/react/core/hooks/others/useChainQuery.d.ts +3 -3
- package/dist/types/react/core/hooks/rpc/useBlockNumber.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useCapabilities.d.ts +1 -1
- package/dist/types/react/core/hooks/wallets/useSendCalls.d.ts +3 -3
- package/dist/types/react/core/providers/connection-manager.d.ts +3 -0
- package/dist/types/react/core/providers/connection-manager.d.ts.map +1 -1
- package/dist/types/react/core/utils/wallet.d.ts +2 -1
- package/dist/types/react/core/utils/wallet.d.ts.map +1 -1
- package/dist/types/react/core/utils/walletIcon.d.ts +2 -0
- package/dist/types/react/core/utils/walletIcon.d.ts.map +1 -1
- package/dist/types/react/native/hooks/wallets/useProfiles.d.ts +1 -1
- package/dist/types/react/native/providers/thirdweb-provider.d.ts +1 -0
- package/dist/types/react/native/providers/thirdweb-provider.d.ts.map +1 -1
- package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts +1 -0
- package/dist/types/react/native/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
- package/dist/types/react/native/ui/connect/ConnectModal.d.ts +1 -0
- package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
- package/dist/types/react/native/ui/transaction/TransactionButton.d.ts +1 -0
- package/dist/types/react/native/ui/transaction/TransactionButton.d.ts.map +1 -1
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +1 -1
- package/dist/types/react/web/providers/thirdweb-provider.d.ts +1 -0
- package/dist/types/react/web/providers/thirdweb-provider.d.ts.map +1 -1
- package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts +1 -0
- package/dist/types/react/web/ui/AutoConnect/AutoConnect.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts +22 -5
- package/dist/types/react/web/ui/ConnectWallet/Blobbie.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +2 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/PayEmbed.d.ts +2 -2
- package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/SiteEmbed.d.ts +3 -2
- package/dist/types/react/web/ui/SiteEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/SiteLink.d.ts +2 -1
- package/dist/types/react/web/ui/SiteLink.d.ts.map +1 -1
- package/dist/types/react/web/ui/TransactionButton/index.d.ts +1 -0
- package/dist/types/react/web/ui/TransactionButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/Account/address.d.ts +52 -0
- package/dist/types/react/web/ui/prebuilt/Account/address.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts +142 -0
- package/dist/types/react/web/ui/prebuilt/Account/avatar.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts +137 -0
- package/dist/types/react/web/ui/prebuilt/Account/balance.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts +8 -0
- package/dist/types/react/web/ui/prebuilt/Account/blobbie.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Account/name.d.ts +119 -0
- package/dist/types/react/web/ui/prebuilt/Account/name.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Account/provider.d.ts +45 -0
- package/dist/types/react/web/ui/prebuilt/Account/provider.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts +59 -0
- package/dist/types/react/web/ui/prebuilt/NFT/description.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/NFT/hooks.d.ts +14 -0
- package/dist/types/react/web/ui/prebuilt/NFT/hooks.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts +75 -0
- package/dist/types/react/web/ui/prebuilt/NFT/media.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts +59 -0
- package/dist/types/react/web/ui/prebuilt/NFT/name.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts +55 -0
- package/dist/types/react/web/ui/prebuilt/NFT/provider.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts +95 -0
- package/dist/types/react/web/ui/prebuilt/Token/icon.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Token/name.d.ts +140 -0
- package/dist/types/react/web/ui/prebuilt/Token/name.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts +61 -0
- package/dist/types/react/web/ui/prebuilt/Token/provider.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts +137 -0
- package/dist/types/react/web/ui/prebuilt/Token/symbol.d.ts.map +1 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts +1 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts +1 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/ClaimButton/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts +1 -0
- package/dist/types/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.d.ts.map +1 -1
- package/dist/types/storage/unpin.d.ts +1 -1
- package/dist/types/storage/upload.d.ts +1 -0
- package/dist/types/storage/upload.d.ts.map +1 -1
- package/dist/types/transaction/actions/to-serializable-transaction.d.ts +1 -1
- package/dist/types/transaction/actions/zksync/send-eip712-transaction.d.ts +5 -0
- package/dist/types/transaction/actions/zksync/send-eip712-transaction.d.ts.map +1 -1
- package/dist/types/utils/any-evm/zksync/isZkSyncChain.d.ts +5 -0
- package/dist/types/utils/any-evm/zksync/isZkSyncChain.d.ts.map +1 -1
- package/dist/types/utils/config.d.ts +9 -0
- package/dist/types/utils/config.d.ts.map +1 -1
- package/dist/types/utils/json.d.ts +1 -1
- package/dist/types/utils/json.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/eip5792/get-calls-status.d.ts +1 -1
- package/dist/types/wallets/eip5792/get-capabilities.d.ts +1 -1
- package/dist/types/wallets/eip5792/send-calls.d.ts +2 -2
- package/dist/types/wallets/eip5792/wait-for-bundle.d.ts +1 -1
- package/dist/types/wallets/in-app/core/users/getUser.d.ts +1 -1
- package/dist/types/wallets/smart/smart-wallet.d.ts +1 -0
- package/dist/types/wallets/smart/smart-wallet.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/client.ts +1 -0
- package/src/exports/react.ts +56 -2
- package/src/extensions/erc721/lazyMinting/read/getBatchesToReveal.ts +1 -1
- package/src/extensions/modules/common/checkModulesCompatibility.ts +5 -0
- package/src/extensions/prebuilts/deploy-pack.ts +1 -0
- package/src/extensions/thirdweb/write/publish.ts +4 -0
- package/src/react/core/hooks/others/useChainQuery.ts +3 -3
- package/src/react/core/hooks/rpc/useBlockNumber.ts +1 -1
- package/src/react/core/hooks/wallets/useCapabilities.ts +1 -1
- package/src/react/core/hooks/wallets/useSendCalls.ts +3 -3
- package/src/react/core/providers/connection-manager.tsx +3 -0
- package/src/react/core/utils/wallet.ts +2 -1
- package/src/react/core/utils/walletIcon.ts +2 -0
- package/src/react/native/hooks/wallets/useProfiles.ts +1 -1
- package/src/react/native/providers/thirdweb-provider.tsx +1 -0
- package/src/react/native/ui/AutoConnect/AutoConnect.tsx +1 -0
- package/src/react/native/ui/connect/ConnectModal.tsx +1 -0
- package/src/react/native/ui/transaction/TransactionButton.tsx +1 -0
- package/src/react/web/hooks/wallets/useProfiles.ts +1 -1
- package/src/react/web/providers/thirdweb-provider.tsx +1 -0
- package/src/react/web/ui/AutoConnect/AutoConnect.tsx +1 -0
- package/src/react/web/ui/ConnectWallet/Blobbie.tsx +31 -4
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +36 -32
- package/src/react/web/ui/ConnectWallet/Details.tsx +91 -58
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +1 -0
- package/src/react/web/ui/PayEmbed.tsx +2 -2
- package/src/react/web/ui/SiteEmbed.tsx +3 -2
- package/src/react/web/ui/SiteLink.tsx +2 -1
- package/src/react/web/ui/TransactionButton/index.tsx +1 -0
- package/src/react/web/ui/prebuilt/Account/address.test.tsx +28 -0
- package/src/react/web/ui/prebuilt/Account/address.tsx +64 -0
- package/src/react/web/ui/prebuilt/Account/avatar.test.tsx +48 -0
- package/src/react/web/ui/prebuilt/Account/avatar.tsx +221 -0
- package/src/react/web/ui/prebuilt/Account/balance.test.tsx +54 -0
- package/src/react/web/ui/prebuilt/Account/balance.tsx +202 -0
- package/src/react/web/ui/prebuilt/Account/blobbie.tsx +12 -0
- package/src/react/web/ui/prebuilt/Account/name.test.tsx +62 -0
- package/src/react/web/ui/prebuilt/Account/name.tsx +175 -0
- package/src/react/web/ui/prebuilt/Account/provider.test.tsx +38 -0
- package/src/react/web/ui/prebuilt/Account/provider.tsx +69 -0
- package/src/react/web/ui/prebuilt/NFT/NFT.test.tsx +17 -14
- package/src/react/web/ui/prebuilt/NFT/description.tsx +87 -0
- package/src/react/web/ui/prebuilt/NFT/hooks.tsx +53 -0
- package/src/react/web/ui/prebuilt/NFT/media.tsx +119 -0
- package/src/react/web/ui/prebuilt/NFT/name.tsx +85 -0
- package/src/react/web/ui/prebuilt/NFT/provider.tsx +75 -0
- package/src/react/web/ui/prebuilt/Token/icon.tsx +164 -0
- package/src/react/web/ui/prebuilt/Token/name.tsx +201 -0
- package/src/react/web/ui/prebuilt/Token/provider.tsx +86 -0
- package/src/react/web/ui/prebuilt/Token/symbol.tsx +201 -0
- package/src/react/web/ui/prebuilt/thirdweb/BuyDirectListingButton/index.tsx +1 -0
- package/src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx +1 -0
- package/src/react/web/ui/prebuilt/thirdweb/CreateDirectListingButton/index.tsx +1 -0
- package/src/storage/unpin.ts +1 -1
- package/src/storage/upload.ts +1 -0
- package/src/transaction/actions/to-serializable-transaction.ts +1 -1
- package/src/transaction/actions/zksync/send-eip712-transaction.ts +5 -0
- package/src/utils/any-evm/zksync/isZkSyncChain.ts +5 -0
- package/src/utils/config.ts +9 -0
- package/src/utils/json.ts +8 -2
- package/src/version.ts +1 -1
- package/src/wallets/eip5792/get-calls-status.ts +1 -1
- package/src/wallets/eip5792/get-capabilities.ts +1 -1
- package/src/wallets/eip5792/send-calls.ts +2 -2
- package/src/wallets/eip5792/wait-for-bundle.ts +1 -1
- package/src/wallets/in-app/core/users/getUser.ts +1 -1
- package/src/wallets/smart/smart-wallet.ts +1 -0
- package/dist/cjs/react/web/ui/prebuilt/NFT/NFT.js +0 -217
- package/dist/cjs/react/web/ui/prebuilt/NFT/NFT.js.map +0 -1
- package/dist/esm/react/web/ui/prebuilt/NFT/NFT.js +0 -212
- package/dist/esm/react/web/ui/prebuilt/NFT/NFT.js.map +0 -1
- package/dist/types/react/web/ui/prebuilt/NFT/NFT.d.ts +0 -76
- package/dist/types/react/web/ui/prebuilt/NFT/NFT.d.ts.map +0 -1
- package/src/extensions/prebuilts/deploy-published.test.ts +0 -132
- package/src/react/web/ui/prebuilt/NFT/NFT.tsx +0 -272
- package/src/wallets/smart/smart-wallet-integration-v07.test.ts +0 -270
- package/src/wallets/smart/smart-wallet-integration.test.ts +0 -375
@@ -0,0 +1,142 @@
|
|
1
|
+
import { type UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type React from "react";
|
3
|
+
import type { JSX } from "react";
|
4
|
+
import { type ResolveNameOptions } from "../../../../../extensions/ens/resolve-name.js";
|
5
|
+
import type { SocialProfile } from "../../../../../social/types.js";
|
6
|
+
/**
|
7
|
+
* Props for the AccountAvatar component
|
8
|
+
* @component
|
9
|
+
* @account
|
10
|
+
*/
|
11
|
+
export interface AccountAvatarProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src">, Omit<ResolveNameOptions, "client" | "address"> {
|
12
|
+
/**
|
13
|
+
* Use this prop to prioritize the social profile that you want to display
|
14
|
+
* This is useful for a wallet containing multiple social profiles.
|
15
|
+
* This component inherits all attributes of a HTML's <img />, so you can interact with it just like a normal <img />
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* If you have ENS, Lens and Farcaster profiles linked to your wallet
|
19
|
+
* you can prioritize showing the image for Lens by:
|
20
|
+
* ```tsx
|
21
|
+
* <AccountAvatar
|
22
|
+
* socialType="lens" // Choose between: "farcaster" | "lens" | "ens"
|
23
|
+
* />
|
24
|
+
* ```
|
25
|
+
*/
|
26
|
+
socialType?: SocialProfile["type"];
|
27
|
+
/**
|
28
|
+
* This component will be shown while the avatar of the account is being fetched
|
29
|
+
* If not passed, the component will return `null`.
|
30
|
+
*
|
31
|
+
* You can pass a loading sign or spinner to this prop.
|
32
|
+
* @example
|
33
|
+
* ```tsx
|
34
|
+
* <AccountAvatar loadingComponent={<Spinner />} />
|
35
|
+
* ```
|
36
|
+
*/
|
37
|
+
loadingComponent?: JSX.Element;
|
38
|
+
/**
|
39
|
+
* This component will be shown if the request for fetching the avatar is done
|
40
|
+
* but could not retreive any result.
|
41
|
+
* You can pass a dummy avatar/image to this prop.
|
42
|
+
*
|
43
|
+
* If not passed, the component will return `null`
|
44
|
+
*
|
45
|
+
* @example
|
46
|
+
* ```tsx
|
47
|
+
* <AccountAvatar fallbackComponent={<DummyImage />} />
|
48
|
+
* ```
|
49
|
+
*/
|
50
|
+
fallbackComponent?: JSX.Element;
|
51
|
+
/**
|
52
|
+
* Optional query options for `useQuery`
|
53
|
+
*/
|
54
|
+
queryOptions?: Omit<UseQueryOptions<string>, "queryFn" | "queryKey">;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* The component for showing the avatar of the account.
|
58
|
+
* If fetches all the social profiles linked to your wallet, including: Farcaster, ENS, Lens (more to be added)
|
59
|
+
* You can choose which social profile you want to display. Defaults to the first item in the list.
|
60
|
+
*
|
61
|
+
* @example
|
62
|
+
* ### Basic usage
|
63
|
+
* ```tsx
|
64
|
+
* import { AccountProvider, AccountAvatar } from "thirdweb/react";
|
65
|
+
*
|
66
|
+
* <AccountProvider address="0x...">
|
67
|
+
* <AccountAvatar />
|
68
|
+
* </AccountProvider>
|
69
|
+
* ```
|
70
|
+
* Result: An <img /> component, if the avatar is resolved successfully
|
71
|
+
* ```html
|
72
|
+
* <img alt="" src="resolved-url-for-the-avatar" />
|
73
|
+
* ```
|
74
|
+
*
|
75
|
+
* ### Show a loading sign when the avatar is being resolved
|
76
|
+
* ```tsx
|
77
|
+
* import { AccountProvider, AccountAvatar } from "thirdweb/react";
|
78
|
+
*
|
79
|
+
* <AccountProvider address="0x...">
|
80
|
+
* <AccountAvatar
|
81
|
+
* loadingComponent={<YourLoadingComponent />}
|
82
|
+
* />
|
83
|
+
* </AccountProvider>
|
84
|
+
* ```
|
85
|
+
*
|
86
|
+
* ### Fallback to something when the avatar fails to resolve
|
87
|
+
* ```tsx
|
88
|
+
* import { AccountProvider, AccountAvatar } from "thirdweb/react";
|
89
|
+
*
|
90
|
+
* <AccountProvider address="0x...">
|
91
|
+
* <AccountAvatar
|
92
|
+
* fallbackComponent={<DummyImage />}
|
93
|
+
* />
|
94
|
+
* </AccountProvider>
|
95
|
+
* ```
|
96
|
+
*
|
97
|
+
* ### Select a social profile to display
|
98
|
+
* If you wallet associates with more than one social profiles (Lens, Farcaster, ENS, etc.)
|
99
|
+
* You can specify which service you want to prioritize using the `socialType` props
|
100
|
+
* ```tsx
|
101
|
+
* import { AccountProvider, AccountAvatar } from "thirdweb/react";
|
102
|
+
*
|
103
|
+
* <AccountProvider address="0x...">
|
104
|
+
* <AccountAvatar
|
105
|
+
* // Choose between: "farcaster" | "lens" | "ens"
|
106
|
+
* socialType={"ens"}
|
107
|
+
* />
|
108
|
+
* </AccountProvider>
|
109
|
+
* ```
|
110
|
+
*
|
111
|
+
* ### Custom ENS resolver chain
|
112
|
+
* This component shares the same props with the ENS extension `resolveAvatar`
|
113
|
+
* ```tsx
|
114
|
+
* import { AccountProvider, AccountAvatar } from "thirdweb/react";
|
115
|
+
* import { base } from "thirdweb/chains";
|
116
|
+
*
|
117
|
+
* <AccountProvider address="0x...">
|
118
|
+
* <AccountAvatar
|
119
|
+
* resolverAddress={"0x..."}
|
120
|
+
* resolverChain={base}
|
121
|
+
* />
|
122
|
+
* </AccountProvider>
|
123
|
+
* ```
|
124
|
+
*
|
125
|
+
* ### Custom query options for useQuery
|
126
|
+
* This component uses `@tanstack-query`'s useQuery internally.
|
127
|
+
* You can use the `queryOptions` prop for more fine-grained control
|
128
|
+
* ```tsx
|
129
|
+
* <AccountAvatar
|
130
|
+
* queryOptions={{
|
131
|
+
* enabled: isEnabled,
|
132
|
+
* retry: 3,
|
133
|
+
* }}
|
134
|
+
* />
|
135
|
+
* ```
|
136
|
+
* @returns An <img /> if the avatar is resolved successfully
|
137
|
+
* @component
|
138
|
+
* @account
|
139
|
+
* @beta
|
140
|
+
*/
|
141
|
+
export declare function AccountAvatar({ socialType, resolverAddress, resolverChain, loadingComponent, fallbackComponent, queryOptions, ...restProps }: AccountAvatarProps): import("react/jsx-runtime.js").JSX.Element | null;
|
142
|
+
//# sourceMappingURL=avatar.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Account/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAIpE;;;;GAIG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,EAC5D,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChD;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEnC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,kBAAkB,qDAyDpB"}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
import { type UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type React from "react";
|
3
|
+
import type { JSX } from "react";
|
4
|
+
import type { Chain } from "../../../../../chains/types.js";
|
5
|
+
import { type GetWalletBalanceResult } from "../../../../../wallets/utils/getWalletBalance.js";
|
6
|
+
/**
|
7
|
+
* Props for the AccountBalance component
|
8
|
+
* @component
|
9
|
+
* @account
|
10
|
+
*/
|
11
|
+
export interface AccountBalanceProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
12
|
+
/**
|
13
|
+
* The network to fetch balance on
|
14
|
+
* If not passed, the component will use the current chain that the wallet is connected to (`useActiveWalletChain()`)
|
15
|
+
*/
|
16
|
+
chain?: Chain;
|
17
|
+
/**
|
18
|
+
* By default this component will fetch the balance for the native token on a given chain
|
19
|
+
* If you want to fetch balance for an ERC20 token, use the `tokenAddress` props
|
20
|
+
*/
|
21
|
+
tokenAddress?: string;
|
22
|
+
/**
|
23
|
+
* A function to format the balance's display value
|
24
|
+
* use this function to transform the balance display value like round up the number
|
25
|
+
* Particularly useful to avoid overflowing-UI issues
|
26
|
+
*/
|
27
|
+
formatFn?: (num: number) => number;
|
28
|
+
/**
|
29
|
+
* This component will be shown while the balance of the account is being fetched
|
30
|
+
* If not passed, the component will return `null`.
|
31
|
+
*
|
32
|
+
* You can/should pass a loading sign or spinner to this prop.
|
33
|
+
* @example
|
34
|
+
* ```tsx
|
35
|
+
* <AccountBalance
|
36
|
+
* chain={ethereum}
|
37
|
+
* loadingComponent={<Spinner />}
|
38
|
+
* />
|
39
|
+
* ```
|
40
|
+
*/
|
41
|
+
loadingComponent?: JSX.Element;
|
42
|
+
/**
|
43
|
+
* This component will be shown if the balance fails to be retreived
|
44
|
+
* If not passed, the component will return `null`.
|
45
|
+
*
|
46
|
+
* You can/should pass a descriptive text/component to this prop, indicating that the
|
47
|
+
* balance was not fetched succesfully
|
48
|
+
* @example
|
49
|
+
* ```tsx
|
50
|
+
* <AccountBalance
|
51
|
+
* chain={nonExistentChain}
|
52
|
+
* fallbackComponent={"Failed to load"}
|
53
|
+
* />
|
54
|
+
* ```
|
55
|
+
*/
|
56
|
+
fallbackComponent?: JSX.Element;
|
57
|
+
/**
|
58
|
+
* Optional `useQuery` params
|
59
|
+
*/
|
60
|
+
queryOptions?: Omit<UseQueryOptions<GetWalletBalanceResult>, "queryFn" | "queryKey">;
|
61
|
+
}
|
62
|
+
/**
|
63
|
+
* This component fetches and shows the balance of the wallet address on a given chain.
|
64
|
+
* It inherits all the attributes of a HTML <span> component, hence you can style it just like how you would style a normal <span>
|
65
|
+
*
|
66
|
+
*
|
67
|
+
* @example
|
68
|
+
* ### Basic usage
|
69
|
+
* ```tsx
|
70
|
+
* import { AccountProvider, AccountBalance } from "thirdweb/react";
|
71
|
+
* import { ethereum } from "thirdweb/chains";
|
72
|
+
*
|
73
|
+
* <AccountProvider address="0x...">
|
74
|
+
* <AccountBalance chain={ethereum} />
|
75
|
+
* </AccountProvider>
|
76
|
+
* ```
|
77
|
+
* Result:
|
78
|
+
* ```html
|
79
|
+
* <span>1.091435 ETH</span>
|
80
|
+
* ```
|
81
|
+
*
|
82
|
+
*
|
83
|
+
* ### Format the balance (round up, shorten etc.)
|
84
|
+
* The AccountBalance component accepts a `formatFn` which takes in a number and outputs a number
|
85
|
+
* The function is used to modify the display value of the wallet balance
|
86
|
+
*
|
87
|
+
* ```tsx
|
88
|
+
* const roundTo1Decimal = (num: number):number => Math.round(num * 10) / 10;
|
89
|
+
*
|
90
|
+
* <AccountBalance formatFn={roundTo1Decimal} />
|
91
|
+
* ```
|
92
|
+
*
|
93
|
+
* Result:
|
94
|
+
* ```html
|
95
|
+
* <span>1.1 ETH</span>
|
96
|
+
* ```
|
97
|
+
*
|
98
|
+
* ### Show a loading sign when the balance is being fetched
|
99
|
+
* ```tsx
|
100
|
+
* import { AccountProvider, AccountBalance } from "thirdweb/react";
|
101
|
+
*
|
102
|
+
* <AccountProvider address="0x...">
|
103
|
+
* <AccountBalance
|
104
|
+
* chain={ethereum}
|
105
|
+
* loadingComponent={<Spinner />}
|
106
|
+
* />
|
107
|
+
* </AccountProvider>
|
108
|
+
* ```
|
109
|
+
*
|
110
|
+
* ### Fallback to something when the balance fails to resolve
|
111
|
+
* ```tsx
|
112
|
+
* <AccountProvider address="0x...">
|
113
|
+
* <AccountBalance
|
114
|
+
* chain={nonExistentChain}
|
115
|
+
* fallbackComponent={"Failed to load"}
|
116
|
+
* />
|
117
|
+
* </AccountProvider>
|
118
|
+
* ```
|
119
|
+
*
|
120
|
+
* ### Custom query options for useQuery
|
121
|
+
* This component uses `@tanstack-query`'s useQuery internally.
|
122
|
+
* You can use the `queryOptions` prop for more fine-grained control
|
123
|
+
* ```tsx
|
124
|
+
* <AccountBalance
|
125
|
+
* queryOptions={{
|
126
|
+
* enabled: isEnabled,
|
127
|
+
* retry: 4,
|
128
|
+
* }}
|
129
|
+
* />
|
130
|
+
* ```
|
131
|
+
*
|
132
|
+
* @component
|
133
|
+
* @account
|
134
|
+
* @beta
|
135
|
+
*/
|
136
|
+
export declare function AccountBalance({ chain, tokenAddress, formatFn, loadingComponent, fallbackComponent, queryOptions, ...restProps }: AccountBalanceProps): import("react/jsx-runtime.js").JSX.Element | null;
|
137
|
+
//# sourceMappingURL=balance.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Account/balance.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,kDAAkD,CAAC;AAG1D;;;;GAIG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CACjB,eAAe,CAAC,sBAAsB,CAAC,EACvC,SAAS,GAAG,UAAU,CACvB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,mBAAmB,qDA6CrB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type BlobbieProps } from "../../ConnectWallet/Blobbie.js";
|
2
|
+
/**
|
3
|
+
* A wrapper for the Blobbie component
|
4
|
+
* @param props BlobbieProps
|
5
|
+
* @beta
|
6
|
+
*/
|
7
|
+
export declare function AccountBlobbie(props: Omit<BlobbieProps, "address">): import("react/jsx-runtime.js").JSX.Element;
|
8
|
+
//# sourceMappingURL=blobbie.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"blobbie.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Account/blobbie.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAG5E;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,8CAGlE"}
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import { type UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type React from "react";
|
3
|
+
import type { JSX } from "react";
|
4
|
+
import { type ResolveNameOptions } from "../../../../../extensions/ens/resolve-name.js";
|
5
|
+
import type { SocialProfile } from "../../../../../social/types.js";
|
6
|
+
/**
|
7
|
+
* Props for the AccountName component
|
8
|
+
* @component
|
9
|
+
* @account
|
10
|
+
*/
|
11
|
+
export interface AccountNameProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children">, Omit<ResolveNameOptions, "client" | "address"> {
|
12
|
+
/**
|
13
|
+
* A function used to transform (format) the name of the account.
|
14
|
+
* it should take in a string and output a string.
|
15
|
+
*
|
16
|
+
* This function is particularly useful
|
17
|
+
*/
|
18
|
+
formatFn?: (str: string) => string;
|
19
|
+
/**
|
20
|
+
* Use this prop to prioritize the social profile that you want to display
|
21
|
+
* This is useful for a wallet containing multiple social profiles
|
22
|
+
*/
|
23
|
+
socialType?: SocialProfile["type"];
|
24
|
+
/**
|
25
|
+
* This component will be shown while the name of the account is being fetched
|
26
|
+
* If not passed, the component will return `null`.
|
27
|
+
*
|
28
|
+
* You can pass a loading sign or spinner to this prop.
|
29
|
+
* @example
|
30
|
+
* ```tsx
|
31
|
+
* <AccountName loadingComponent={<Spinner />} />
|
32
|
+
* ```
|
33
|
+
*/
|
34
|
+
loadingComponent?: JSX.Element;
|
35
|
+
/**
|
36
|
+
* This component will be shown if the request for fetching the name is done but could not retreive any result.
|
37
|
+
* You can pass the wallet address as the fallback option if that's the case.
|
38
|
+
*
|
39
|
+
* If not passed, the component will return `null`
|
40
|
+
*
|
41
|
+
* @example
|
42
|
+
* ```tsx
|
43
|
+
* <AccountName fallbackComponent={"0x1234....3f3f"} />
|
44
|
+
* ```
|
45
|
+
*/
|
46
|
+
fallbackComponent?: JSX.Element;
|
47
|
+
/**
|
48
|
+
* Optional `useQuery` params
|
49
|
+
*/
|
50
|
+
queryOptions?: Omit<UseQueryOptions<string>, "queryKey" | "queryFn">;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* This component is used to display the name of the account.
|
54
|
+
* A "name" in this context is the username, or account of the social profiles that the wallet may have.
|
55
|
+
* In case a name is not found or failed to resolve, you can always fallback to displaying the wallet address instead by using the `fallbackComponent` prop.
|
56
|
+
*
|
57
|
+
* This component inherits all attribute of a native HTML <span> element, so you can style it just like how you would style a <span>.
|
58
|
+
*
|
59
|
+
* @param props
|
60
|
+
* @returns A `<span>` containing the name of the account
|
61
|
+
* ```html
|
62
|
+
* <span>{name}</span>
|
63
|
+
* ```
|
64
|
+
*
|
65
|
+
* @example
|
66
|
+
* ### Basic usage
|
67
|
+
* ```tsx
|
68
|
+
* import { AccountProvider, AccountName } from "thirdweb/react";
|
69
|
+
*
|
70
|
+
* <AccountProvider address="0x1234...3f3f" client={client}>
|
71
|
+
* <AccountName />
|
72
|
+
* </AccountProvider>
|
73
|
+
* ```
|
74
|
+
*
|
75
|
+
* ### Show wallet address while social name is being loaded
|
76
|
+
* ```tsx
|
77
|
+
* <AccountName
|
78
|
+
* loadingComponent={<AccountAddress />}
|
79
|
+
* />
|
80
|
+
* ```
|
81
|
+
*
|
82
|
+
*
|
83
|
+
* ### Fallback to showing wallet address if fail to resolve social name
|
84
|
+
* ```tsx
|
85
|
+
* <AccountName
|
86
|
+
* fallbackComponent={<AccountAddress />}
|
87
|
+
* />
|
88
|
+
* ```
|
89
|
+
*
|
90
|
+
* ### Transform the account name using `formatFn` prop
|
91
|
+
* ```tsx
|
92
|
+
* import { isAddress, shortenAddress } from "thirdweb/utils";
|
93
|
+
* import { AccountProvider, AccountName } from "thirdweb/react";
|
94
|
+
*
|
95
|
+
* // Let's say we want the name to be capitalized without using CSS
|
96
|
+
* const formatName = (name: string) => name.toUpperCase();
|
97
|
+
*
|
98
|
+
* return <AccountName formatFn={formatName} />
|
99
|
+
* ```
|
100
|
+
*
|
101
|
+
*
|
102
|
+
* ### Custom query options for useQuery
|
103
|
+
* This component uses `@tanstack-query`'s useQuery internally.
|
104
|
+
* You can use the `queryOptions` prop for more fine-grained control
|
105
|
+
* ```tsx
|
106
|
+
* <AccountName
|
107
|
+
* queryOptions={{
|
108
|
+
* enabled: isEnabled,
|
109
|
+
* retry: 3
|
110
|
+
* }}
|
111
|
+
* />
|
112
|
+
* ```
|
113
|
+
*
|
114
|
+
* @component
|
115
|
+
* @account
|
116
|
+
* @beta
|
117
|
+
*/
|
118
|
+
export declare function AccountName({ resolverAddress, resolverChain, socialType, formatFn, queryOptions, loadingComponent, fallbackComponent, ...restProps }: AccountNameProps): import("react/jsx-runtime.js").JSX.Element | null;
|
119
|
+
//# sourceMappingURL=name.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Account/name.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAGpE;;;;GAIG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,EAC7D,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACnC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,eAAe,EACf,aAAa,EACb,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,GAAG,SAAS,EACb,EAAE,gBAAgB,qDAqClB"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import type { Address } from "abitype";
|
2
|
+
import type React from "react";
|
3
|
+
import type { ThirdwebClient } from "../../../../../client/client.js";
|
4
|
+
/**
|
5
|
+
* Props for the <AccountProvider /> component
|
6
|
+
* @component
|
7
|
+
* @account
|
8
|
+
*/
|
9
|
+
export type AccountProviderProps = {
|
10
|
+
/**
|
11
|
+
* The user's wallet address
|
12
|
+
*/
|
13
|
+
address: Address;
|
14
|
+
/**
|
15
|
+
* thirdweb Client
|
16
|
+
*/
|
17
|
+
client: ThirdwebClient;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* A React context provider component that supplies Account-related data to its child components.
|
21
|
+
*
|
22
|
+
* This component serves as a wrapper around the `AccountProviderContext.Provider` and passes
|
23
|
+
* the provided account data down to all of its child components through the context API.
|
24
|
+
*
|
25
|
+
* @example
|
26
|
+
* ```tsx
|
27
|
+
* import { AccountProvider, AccountAvatar, AccountName, AccountAddress } from "thirdweb/react";
|
28
|
+
*
|
29
|
+
* <AccountProvider>
|
30
|
+
* <AccountAvatar />
|
31
|
+
* <AccountName />
|
32
|
+
* <AccountAddress />
|
33
|
+
* </AccountProvider>
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* @component
|
37
|
+
* @account
|
38
|
+
* @beta
|
39
|
+
*/
|
40
|
+
export declare function AccountProvider(props: React.PropsWithChildren<AccountProviderProps>): import("react/jsx-runtime.js").JSX.Element;
|
41
|
+
/**
|
42
|
+
* @internal
|
43
|
+
*/
|
44
|
+
export declare function useAccountContext(): AccountProviderProps;
|
45
|
+
//# sourceMappingURL=provider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/Account/provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,8CAOrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,yBAQhC"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import type { UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type { JSX } from "react";
|
3
|
+
import type { NFT } from "../../../../../utils/nft/parseNft.js";
|
4
|
+
export interface NFTDescriptionProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
5
|
+
loadingComponent?: JSX.Element;
|
6
|
+
fallbackComponent?: JSX.Element;
|
7
|
+
/**
|
8
|
+
* Optional `useQuery` params
|
9
|
+
*/
|
10
|
+
queryOptions?: Omit<UseQueryOptions<NFT>, "queryFn" | "queryKey">;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* This component fetches and displays an NFT's description. It inherits all the attributes of a <span>
|
14
|
+
* so you can style it just like how you would style a <span> element.
|
15
|
+
* @returns A <span> element containing the description of the NFT
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* ### Basic usage
|
19
|
+
* ```tsx
|
20
|
+
* import { NFTProvider, NFTDescription } from "thirdweb/react";
|
21
|
+
*
|
22
|
+
* <NFTProvider>
|
23
|
+
* <NFTDescription />
|
24
|
+
* </NFTProvider>
|
25
|
+
* ```
|
26
|
+
*
|
27
|
+
* ### Show a loading sign while the description is being fetched
|
28
|
+
* ```tsx
|
29
|
+
* import { NFTProvider, NFTDescription } from "thirdweb/react";
|
30
|
+
*
|
31
|
+
* <NFTProvider>
|
32
|
+
* <NFTDescription loadingComponent={<YourLoadingSign />} />
|
33
|
+
* </NFTProvider>
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* ### Show something in case the description failed to resolve
|
37
|
+
* ```tsx
|
38
|
+
* import { NFTProvider, NFTDescription } from "thirdweb/react";
|
39
|
+
*
|
40
|
+
* <NFTProvider>
|
41
|
+
* <NFTDescription fallbackComponent={<span>Failed to load description</span>} />
|
42
|
+
* </NFTProvider>
|
43
|
+
* ```
|
44
|
+
*
|
45
|
+
* ### Custom query options for useQuery (tanstack-query)
|
46
|
+
* ```tsx
|
47
|
+
* import { NFTProvider, NFTDescription } from "thirdweb/react";
|
48
|
+
*
|
49
|
+
* <NFTProvider>
|
50
|
+
* <NFTDescription queryOptions={{ retry: 3, enabled: false, }} />
|
51
|
+
* </NFTProvider>
|
52
|
+
* ```
|
53
|
+
*
|
54
|
+
* @component
|
55
|
+
* @nft
|
56
|
+
* @beta
|
57
|
+
*/
|
58
|
+
export declare function NFTDescription({ loadingComponent, fallbackComponent, queryOptions, ...restProps }: NFTDescriptionProps): import("react/jsx-runtime.js").JSX.Element | null;
|
59
|
+
//# sourceMappingURL=description.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"description.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/NFT/description.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAIhE,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,mBAAmB,qDAiBrB"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type { NFT } from "../../../../../utils/nft/parseNft.js";
|
3
|
+
import type { NFTProviderProps } from "./provider.js";
|
4
|
+
/**
|
5
|
+
* @internal Only used for the NFT prebuilt components
|
6
|
+
*/
|
7
|
+
export declare function useNftInfo(props: NFTProviderProps & {
|
8
|
+
queryOptions?: Omit<UseQueryOptions<NFT>, "queryFn" | "queryKey">;
|
9
|
+
}): import("@tanstack/react-query").UseQueryResult<NFT, Error>;
|
10
|
+
/**
|
11
|
+
* @internal
|
12
|
+
*/
|
13
|
+
export declare function getNFTInfo(options: NFTProviderProps): Promise<NFT>;
|
14
|
+
//# sourceMappingURL=hooks.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/NFT/hooks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AAGvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD;;GAEG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,gBAAgB,GAAG;IACxB,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACnE,8DAaF;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CAsBxE"}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import type { UseQueryOptions } from "@tanstack/react-query";
|
2
|
+
import type { JSX } from "react";
|
3
|
+
import type { NFT } from "../../../../../utils/nft/parseNft.js";
|
4
|
+
import type { MediaRendererProps } from "../../MediaRenderer/types.js";
|
5
|
+
/**
|
6
|
+
* @component
|
7
|
+
* The props for the <NFTMedia /> component
|
8
|
+
* It is similar to the [`MediaRendererProps`](https://portal.thirdweb.com/references/typescript/v5/MediaRendererProps)
|
9
|
+
* (excluding `src`, `poster` and `client`) that you can
|
10
|
+
* use to style the NFTMedia
|
11
|
+
*/
|
12
|
+
export type NFTMediaProps = Omit<MediaRendererProps, "src" | "poster" | "client"> & {
|
13
|
+
loadingComponent?: JSX.Element;
|
14
|
+
fallbackComponent?: JSX.Element;
|
15
|
+
/**
|
16
|
+
* Optional `useQuery` params
|
17
|
+
*/
|
18
|
+
queryOptions?: Omit<UseQueryOptions<NFT>, "queryFn" | "queryKey">;
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* This component fetches and displays an NFT's media. It uses thirdweb [`MediaRenderer`](https://portal.thirdweb.com/refernces/typescript/v5/MediaRenderer) under the hood
|
22
|
+
* so you can style it just like how you would style a MediaRenderer.
|
23
|
+
* @returns A MediaRenderer component
|
24
|
+
*
|
25
|
+
* @component
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* ### Basic usage
|
29
|
+
* ```tsx
|
30
|
+
* import { NFTProvider, NFTMedia } from "thirdweb/react";
|
31
|
+
*
|
32
|
+
* <NFTProvider>
|
33
|
+
* <NFTMedia />
|
34
|
+
* </NFTProvider>
|
35
|
+
* ```
|
36
|
+
*
|
37
|
+
* ### Show a loading sign while the media is being fetched
|
38
|
+
* ```tsx
|
39
|
+
* import { NFTProvider, NFTMedia } from "thirdweb/react";
|
40
|
+
*
|
41
|
+
* <NFTProvider>
|
42
|
+
* <NFTMedia loadingComponent={<YourLoadingSign />} />
|
43
|
+
* </NFTProvider>
|
44
|
+
* ```
|
45
|
+
*
|
46
|
+
* ### Show something in case the media failed to resolve
|
47
|
+
* ```tsx
|
48
|
+
* import { NFTProvider, NFTMedia } from "thirdweb/react";
|
49
|
+
*
|
50
|
+
* <NFTProvider>
|
51
|
+
* <NFTMedia fallbackComponent={<span>Failed to load media</span>} />
|
52
|
+
* </NFTProvider>
|
53
|
+
* ```
|
54
|
+
*
|
55
|
+
* ### Custom query options for useQuery (tanstack-query)
|
56
|
+
* ```tsx
|
57
|
+
* import { NFTProvider, NFTMedia } from "thirdweb/react";
|
58
|
+
*
|
59
|
+
* <NFTProvider>
|
60
|
+
* <NFTMedia queryOptions={{ retry: 3, enabled: false, }} />
|
61
|
+
* </NFTProvider>
|
62
|
+
* ```
|
63
|
+
*
|
64
|
+
* ### Basic stylings
|
65
|
+
*
|
66
|
+
* You can style NFTMedia with the `style` and `className` props.
|
67
|
+
*
|
68
|
+
* ```tsx
|
69
|
+
* <NFTMedia style={{ borderRadius: "8px" }} className="mx-auto" />
|
70
|
+
* ```
|
71
|
+
* @nft
|
72
|
+
* @beta
|
73
|
+
*/
|
74
|
+
export declare function NFTMedia({ loadingComponent, fallbackComponent, queryOptions, ...mediaRendererProps }: NFTMediaProps): import("react/jsx-runtime.js").JSX.Element | null;
|
75
|
+
//# sourceMappingURL=media.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/prebuilt/NFT/media.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIvE;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,kBAAkB,EAClB,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAC5B,GAAG;IACF,gBAAgB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACnE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAgB,QAAQ,CAAC,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,GAAG,kBAAkB,EACtB,EAAE,aAAa,qDAgCf"}
|