Files
js/packages/thirdweb
MananTank 70e024f43e [TOOL-4831] SDK: Fix MediaRenderer not showing poster for 3d models (#7387)
<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing the display of the `poster` in the `MediaRenderer` component for 3D models and adding tests to ensure expected behavior.

### Detailed summary
- Updated the `MediaRenderer` component to show a `poster` image for 3D models.
- Added a new test case to verify rendering of the `poster` image when a 3D model is provided.
- Replaced hardcoded image URL with a constant `imageLink` for clarity in tests.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
	- Fixed an issue where the poster image was not displayed when rendering 3D models in the MediaRenderer component. Now, if a poster image is available, it will be shown as a fallback for unsupported 3D models.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-19 17:16:55 +00:00
..
2025-06-11 23:24:45 -07:00
2025-06-11 23:24:45 -07:00
2024-08-22 16:36:54 +00:00
2025-06-18 09:37:52 -07:00
2025-06-16 10:39:31 -07:00
2025-06-18 09:37:52 -07:00
2025-02-24 19:31:58 -08:00
2024-03-27 17:13:03 -07:00
2024-08-22 16:36:54 +00:00



thirdweb

npm version Build Status

All-in-one web3 SDK for Browser, Node and Mobile apps

Installation

npm install thirdweb

Features

thirdweb Wagmi Viem Ethers@6
Type safe contract API ✅ ✅ ✅ ✅
Type safe wallet API ✅ ✅ ✅ ✅
EVM utils ✅ ❌ ✅ ✅
RPC for any EVM ✅  ⚠️ public RPC only ⚠️ public RPC only ❌
Automatic ABI Resolution ✅ ❌ ❌ ❌
IPFS Upload/Download ✅ ❌ ❌ ❌
Embedded wallet (email/ social login) ✅ ⚠️ via 3rd party ❌ ❌
Account abstraction (ERC4337) support ✅ ⚠️ via 3rd party ⚠️ via 3rd party ❌
Web3 wallet connectors ✅ ✅ ❌ ❌
Local wallet creation ✅ ❌ ✅ ✅
Auth (SIWE) ✅ ⚠️ via 3rd party ❌ ❌
Extensions functions for common standards ✅ ❌ ❌ ❌
React Hooks ✅ ✅ ❌ ❌
React UI components ✅ ❌ ❌ ❌
React Native Hooks ✅ ❌ ❌ ❌
React Native UI Components ✅ ❌ ❌ ❌

Documentation

Visit the thirdweb developer portal to view the full documentation.

Migrating from previous versions

Follow the migration guide to learn how to progrssively upgrade to the unified thirdweb SDK from previous versions.

Starter kits

Contributing

We welcome contributions from all developers, regardless of experience level. If you are interested in contributing, please read our Contributing Guide where you'll learn how the repo works, how to test your changes, and how to submit a pull request.