feat: forward @prismicio/react components through @prismicio/next#123
Draft
angeloashmore wants to merge 2 commits intomainfrom
Draft
feat: forward @prismicio/react components through @prismicio/next#123angeloashmore wants to merge 2 commits intomainfrom
angeloashmore wants to merge 2 commits intomainfrom
Conversation
This change simplifies the developer experience by: - Renaming `PrismicNextImage` to `PrismicImage` (old name deprecated) - Renaming `PrismicNextLink` to `PrismicLink` (old name deprecated) - Re-exporting `PrismicText`, `SliceZone`, and related types from @prismicio/react - Creating Next.js-specific `PrismicRichText` with optimized image/link defaults - Creating Next.js-specific `PrismicTable` with optimized rich text defaults Developers can now import most Prismic React components directly from @prismicio/next without needing to import from @prismicio/react separately. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: N/A
Description
This change simplifies the developer experience by forwarding common Prismic React components through
@prismicio/next:PrismicNextImagetoPrismicImage(old name kept as deprecated alias)PrismicNextLinktoPrismicLink(old name kept as deprecated alias)PrismicText,SliceZone, and related types from@prismicio/reactPrismicRichTextwith optimized image/link defaults usingnext/imageandnext/linkPrismicTablewith optimized rich text defaultsDevelopers can now import most Prismic React components directly from
@prismicio/nextwithout needing to import from@prismicio/reactseparately.Note: This PR depends on prismicio/prismic-react#241 for the
RichTextComponentstype alias.Checklist
Preview
N/A
How to QA 1
PrismicRichTextrenders images usingnext/imageand links usingnext/link🤖
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩