Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Jun 3, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 3, 2025

🦋 Changeset detected

Latest commit: 40f565a

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit 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

@netlify
Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for cube-uikit-docs failed.

Name Link
🔨 Latest commit 40f565a
🔍 Latest deploy log https://app.netlify.com/projects/cube-uikit-docs/deploys/683f2d653509d80008c77a5b
@vercel
Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cube-ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 5:15pm
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-48ab13c.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

🏗 Docs are successfully deployed!

👀 Preview: https://683f2da9f274be0cfa1ac8c8--cube-uikit-docs.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

🏋️ Size limit report

Name Size Passed?
All 252.27 KB (+10.14% 🔺) Yes 🎉
Tree shaking (just a Button) 21.71 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 11.4 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

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 replaces direct PrismJS usage with prism-react-renderer for syntax highlighting in the PrismCode component.

  • Switch from Prism.highlightAll to <Highlight> from prism-react-renderer and manual token rendering
  • Bridge the renderer’s Prism instance to global and dynamically import grammars
  • Update dependencies to include prism-react-renderer

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/components/content/PrismCode/PrismCode.tsx Replace PrismJS usage with prism-react-renderer and dynamic grammar imports
package.json Add prism-react-renderer dependency
.changeset/fair-turtles-switch.md Note change of rendering engine in changelog
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

src/components/content/PrismCode/PrismCode.tsx:87

  • This new rendering logic isn't covered by existing tests. Consider adding unit or snapshot tests for both standard code blocks and diff highlighting scenarios to prevent regressions.
function PrismCode(props: CubePrismCodeProps, ref) { 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants