[ ] Chore (a non-breaking change which is related to package maintenance)
[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This PR correctly handles all types of empty Rich Text fields when using <PrismicRichText> and <PrismicText>. It uses @prismicio/helpers's isFilled.richText() helper internally.
This PR was done specifically to fix an unhandled case where a Rich Text field could contain a single empty paragraph block. This is treated as empty when using isFilled.richText(), but it was not handled properly in @prismicio/react before this PR.
Checklist:
[ ] My change requires an update to the official documentation.
[x] All TSDoc comments are up-to-date and new ones have been added where necessary.
Types of changes
Description
This PR correctly handles all types of empty Rich Text fields when using
<PrismicRichText>
and<PrismicText>
. It uses@prismicio/helpers
'sisFilled.richText()
helper internally.This PR was done specifically to fix an unhandled case where a Rich Text field could contain a single empty
paragraph
block. This is treated as empty when usingisFilled.richText()
, but it was not handled properly in@prismicio/react
before this PR.Checklist:
🐕🦺