openpencil/tests
Danila Poyarkov 8404cee664
refactor(design-jsx): extract design JSX into its own package (#793)
* refactor(design-jsx): extract design JSX into its own package

Design JSX elements, helpers, schema, reference, and JSX export only need
the scene graph, yet lived in Core, so every consumer of the authoring API
pulled in the renderer, layout, and file formats.

@open-pencil/design-jsx now owns them and depends only on scene-graph. The
renderer takes icon lookup, SVG conversion, vector creation, and layout as
DesignJSXServices; Core binds its own and exports the bound renderJSX and
renderTree from @open-pencil/core/design-jsx.

* feat(design-jsx): export the JSX runtime for TSX authoring

The package already had a JSX runtime, but nothing exported it, so design
trees could only be written as function calls or JSX strings. Export
`./jsx-runtime` and `./jsx-dev-runtime` so `jsxImportSource` works, and make
`Fragment` produce the same empty-type node as `<>` in `renderJSX` strings.

* fix(design-jsx): render fragments nested in other elements

A fragment builds a node with an empty type, which only renderJSX expanded, and only at the root. Nested fragments and fragments passed to renderTree failed with 'Unknown element: <>'. Inline fragment children when trees are built, and share root expansion between renderTree and renderJSX.
2026-09-30 20:55:27 +04:00
..
app/shell/support fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
e2e test(storybook): refresh macOS button baselines 2026-09-30 02:01:34 +04:00
engine refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
figma style: tighten import grouping 2026-05-06 02:22:08 +03:00
fixtures build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
helpers refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
AGENTS.md test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00