Skip to content

Conversation

@marklundin
Copy link
Collaborator

@marklundin marklundin commented Sep 18, 2025

This PR fully removes the <EnvAtlas/> component which has been deprecated and replaces internal references to the newer <Environment/> component

  • EnvAtlas Component removed
  • Docs updated

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: 03844b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@playcanvas/react Minor
@playcanvas/blocks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the deprecated <EnvAtlas/> component and updates all references to use the newer <Environment/> component instead.

  • Completely removes the EnvAtlas.tsx component file and its documentation
  • Updates code examples and documentation to use <Environment envAtlas={asset} /> instead of <EnvAtlas asset={asset} />
  • Removes imports of the deprecated component from relevant files

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/lib/src/hooks/use-asset.ts Updates JSDoc example to use Environment component
packages/lib/src/components/EnvAtlas.tsx Completely removes the deprecated EnvAtlas component
packages/docs/templates/HomePageExample.jsx Migrates from EnvAtlas to Environment component with conditional rendering
packages/docs/content/docs/api/hooks/use-asset.mdx Updates documentation examples to use Environment component
packages/docs/content/docs/api/components/envatlas.mdx Removes EnvAtlas component documentation
packages/docs/client-mdx-components.js Removes EnvAtlas from component imports

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@marklundin marklundin marked this pull request as ready for review September 18, 2025 16:39
@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 19, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@playcanvas/blocks@247
npm i https://pkg.pr.new/@playcanvas/react@247

commit: 03844b7

@marklundin marklundin requested a review from a team September 19, 2025 11:52
@marklundin marklundin merged commit 617939a into main Sep 19, 2025
6 checks passed
@marklundin marklundin deleted the chore-remove-env-atlas branch September 19, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants