openpencil/packages/docs
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
..
.vitepress docs: remove GitHub Discussions link from docs header 2026-09-18 23:58:37 +03:00
de feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
development test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
es feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
fr feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
it feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
overview fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
pl feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
programmable refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
public feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00
reference refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
ru feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
user-guide docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
AGENTS.md build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md Refine docs structure for SDK and automation 2026-03-24 23:24:08 +03:00
package.json build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00