Render component instance form for `ContentTemplate` and support updating static props
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3541034. --> Reported by: [hooroomoo](https://www.drupal.org/user/3688872) Related to !56 >>> <h3 id="overview">Overview</h3> <p>After templates are rendered in the preview canvas (done in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3541031" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3541031</a></span>) we can implement the component props form to save static inputs. This issue is to render the component instance form for a component in a template and be able to update the props from the form and have it reflect in the preview. </p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Introduce new endpoints to our frontend service</p> <p>1. <code>canvas/api/v0/layout-content-template/{entity_type}.{template_bundle}.{template_view_mode}/{entity_id}</code> for updating a component and getting the updated HTML back for the preview.</p> <p>2. <code>canvas/api/v0/form/component-instance/content_template/{entity_type}.{template_bundle}.{template_view_mode}/{entity_id}</code> for updating the component instance form and getting the new html back for the component instance form.</p> <p><strong>Dynamic inputs are not in scope, that will be handled in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/canvas/issues/3541037" title="Status: Closed (fixed)">#3541037: Allow linking `ContentTemplate` SDC/code component instance props to fields (aka finally use `DynamicPropSource`s!)</a></span>.</strong></p> <h3 id="ui-changes">User interface changes</h3> <p><a href="https://www.figma.com/design/0NFfNz2uJWs8Kr2pMpLXPf/External---Experience-Builder---Design-System?node-id=7163-43365&amp;m=dev">https://www.figma.com/design/0NFfNz2uJWs8Kr2pMpLXPf/External---Experience-Builder---Design-System?node-id=7163-43365&amp;m=dev</a></p> > Related issue: [Issue #3541021](https://www.drupal.org/node/3541021) > Related issue: [Issue #3541031](https://www.drupal.org/node/3541031) > Related issue: [Issue #3541131](https://www.drupal.org/node/3541131) > Related issue: [Issue #3541000](https://www.drupal.org/node/3541000)
issue