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][templates/nextjs] Add support for client BYOC imports and import new SitecoreForm component #1628

Merged
merged 14 commits into from Oct 12, 2023

Conversation

art-alexeyenko
Copy link
Contributor

@art-alexeyenko art-alexeyenko commented Oct 9, 2023

Description / Motivation

BYOC components need to be imported into app's Layout in order to be available for use. Initial introduction of BYOC in JSS enabled component auto-import through component-builder.
Moving forward, we want to allow a more controlled approach to BYOC registration and import. This PR adds two points for this:

  • index.client.ts - for client-only component imports
  • index.ts - for SSR/hybrid (sever side with client hydration) components

This PR also adds a deafult import for new SitecoreForm BYOC component using this approach.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate) Smoke test with XM Cloud

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)

@art-alexeyenko art-alexeyenko requested a review from a team October 9, 2023 18:59
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one update to the changelog, and maybe give @Inviz a chance to take a peek, otherwise 👍. Nice work!

@Inviz
Copy link
Collaborator

Inviz commented Oct 11, 2023

Added some comments. Looking good so far! thanks a lot guys!

…s-528-integrate-forms-client-byoc

# Conflicts:
#	packages/create-sitecore-jss/src/templates/nextjs/package.json
#	packages/sitecore-jss-react/package.json
#	yarn.lock
@art-alexeyenko art-alexeyenko merged commit 626f91b into dev Oct 12, 2023
1 check passed
@art-alexeyenko art-alexeyenko deleted the feature/jss-528-integrate-forms-client-byoc branch October 12, 2023 19:28
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.

None yet

3 participants