Document prop schemas supported by the code component editor
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3557408. --> Reported by: [balintbrews](https://www.drupal.org/user/613760) Related to !315 >>> <p>Code Components have a <code>component.yml</code> file similar to SDCs when they're represented outside of Canvas, i.e. by using the CLI tool for synchronization.</p> <p>The in-browser code editor provides a UI for creating props and slots. It does a subset of what is allowed by the SDC schema and what is supported by the shape matching in Canvas. This is also enforced by our OpenAPI spec when saving Code Component data via the HTTP endpoints.</p> <p>When Code Components are developed outside of Canvas, the supported prop schemas need to be respected. But what are those exactly? The answer is in <a href="https://git.drupalcode.org/project/canvas/-/blob/5b2a5961b34279854a8a5cd9cf8471072ee0459c/ui/src/features/code-editor/component-data/derivedPropTypes.ts"><code>src/features/code-editor/component-data/derivedPropTypes.ts</code></a>.</p> <p>Let's create a documentation page out of it.</p>
issue