feat: forward @prismicio/react components through @prismicio/next #123
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. ↩