Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sitecore-jss-react] [sitecore-jss-nextjs] Add support for chrome's hydration for fields #1774

Closed
wants to merge 21 commits into from

Conversation

yavorsk
Copy link
Contributor

@yavorsk yavorsk commented Apr 17, 2024

Description / Motivation

This PR introduces FieldMetadata component and functionality to render it when metadata field property is provided in the field's layout data. In such case FieldMetadaComponent should be rendered instead of the actual field component to enable chrome's hydration when editing in pages.
Ability to render metadata has been added to the following field components:

  • [sitecore-jss-react] Date.tsx
  • [sitecore-jss-react] File.tsx
  • [sitecore-jss-react] Image.tsx
  • [sitecore-jss-react] Link.tsx
  • [sitecore-jss-react] RichText.tsx
  • [sitecore-jss-react] Text.tsx
  • [sitecore-jss-nextjs] Link.tsx
  • [sitecore-jss-nextjs] NextImage.tsx

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

yavorsk added 21 commits April 11, 2024 18:06
@yavorsk yavorsk requested a review from a team April 17, 2024 08:03
@yavorsk yavorsk changed the title Feature/jss 1827 [sitecore-jss-react] [sitecore-jss-nextjs] Add support for chrome's hydration for fields Apr 17, 2024
@yavorsk yavorsk closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant