issues
search
Sitecore
/
jss
Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263
stars
275
forks
source link
[Angular] XM Cloud Forms support
#1951
Closed
illiakovalenko
closed
1 month ago
illiakovalenko
commented
1 month ago
[x] This PR follows the
Contribution Guide
[x] Changelog updated
[x] Upgrade guide entry added
Description / Motivation
Introduced a new Form component:
The component is a wrapper around the built Sitecore Form that allows you to fetch and render the form from Sitecore Edge.
The component is a part of the @sitecore-jss/sitecore-jss-angular package.
Component is rendered only on the client side.
Handles the case when FormId is not provided, custom error message is displayed.
Handles the case when network error occurs during fetching the form from Sitecore Edge, custom error message is displayed.
Introduced a new InjectionToken EDGE_CONFIG to provide the configuration for the Form component to be able to fetch the form from Sitecore Edge.
Introduced a plugins technique for the component factory generation to add extensebility for add-ons.
Introduced a new "getEdgeProxyFormsUrl" method to get the URL for fetching the form from Sitecore Edge.
Testing Details
[x] Unit Test Added
[x] Manual Test/Other (Please elaborate)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description / Motivation
Testing Details
Types of changes