openpencil/tests/engine
Danila Poyarkov 1d5558ddc3 feat: JSX reference, multi-root JSX, prompts as markdown files
- Move CODEGEN_PROMPT to codegen.md, loaded via raw-md bundler plugin
- Add JSX_REFERENCE as jsx-reference.md with full prop/tag/example docs
- Copy JSX Reference button (book icon) in Code panel header
- Multi-root JSX: try parsing as-is, wrap in fragment on failure
- Component and Instance tag aliases in JSX renderer
- renderJSX returns RenderResult[] to support fragments
- raw-md plugin for both tsdown and Vite

Co-authored-by: sld0Ant <sld0Ant@users.noreply.github.com>
2026-04-22 17:51:41 +03:00
..
abspos-cache.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
acp-permission.test.ts Harden ACP transport, MCP server, and add permission dialog 2026-03-15 16:49:43 +03:00
acp-transport.test.ts fix(acp): show install errors for missing agent CLIs (#176) 2026-04-06 14:19:38 +03:00
clipboard-derived-text.test.ts Add clipboard text v4 export (#164) 2026-04-08 15:35:00 +03:00
clipboard-text-outlines.test.ts Add clipboard text v4 export (#164) 2026-04-08 15:35:00 +03:00
clipboard.test.ts Add clipboard text v4 export (#164) 2026-04-08 15:35:00 +03:00
color-picker-model.test.ts Move reusable color picker logic into Vue SDK 2026-03-29 18:54:14 +03:00
color.test.ts Centralize all color utilities in color.ts 2026-03-07 10:02:11 +03:00
copy.test.ts Restructure @open-pencil/core into domain modules 2026-04-06 14:39:53 +03:00
editor-store-path.test.ts test: fix pre-existing failures and add coverage for new features 2026-04-22 17:20:09 +03:00
effects-and-resize.test.ts Fix effects rendering: shadows, blur, spread (#24) 2026-03-03 09:53:39 +03:00
eval-cli.test.ts Fix hit-testing: scope hover to current page, click-through empty containers 2026-03-05 08:56:35 +03:00
export-jsx.test.ts feat: add Arabic and RTL support 2026-03-29 11:42:30 +02:00
fig-export-variables.test.ts Add roundtrip tests for COLOR variable alpha handling 2026-03-16 14:23:19 +03:00
fig-export-worker.test.ts Fix .fig export roundtrip: variable GUIDs colliding with document 2026-03-13 13:27:15 +03:00
fig-import.test.ts Don't clip content on group-like frames (resizeToFit) 2026-03-13 19:43:52 +03:00
fig-roundtrip.test.ts Add clipboard text v4 export (#164) 2026-04-08 15:35:00 +03:00
figma-api.test.ts feat: add Arabic and RTL support 2026-03-29 11:42:30 +02:00
font-normalize-export.test.ts fix: default TEXT nodes to solid black fill 2026-03-24 23:47:56 +03:00
fonts.test.ts fix: normalize font family names on .fig export 2026-03-24 23:47:56 +03:00
hit-test-scope.test.ts fix(hit): fix hit area when parent rotation (#195) 2026-04-15 10:53:47 +03:00
iconify.test.ts Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
image.test.ts Image drag-and-drop, clipboard paste, and paste-at-cursor (#92) 2026-03-11 07:52:04 +03:00
individual-strokes.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
instance-overrides.test.ts Fix instance swap override propagation through clone chains 2026-03-13 18:58:33 +03:00
kiwi-serialize-fixes.test.ts feat: add Arabic and RTL support 2026-03-29 11:42:30 +02:00
label-cache.test.ts Perf: 5.4× faster file open, worker-based parsing, instance index (#96) 2026-03-12 14:49:28 +03:00
layout.test.ts fix(layout): use stored .fig dimensions for headless text measurement 2026-04-22 14:00:07 +03:00
lint.test.ts Port design linter from figma-use 2026-03-28 16:33:40 +03:00
mcp-path-scoping.test.ts test: fix pre-existing failures and add coverage for new features 2026-04-22 17:20:09 +03:00
mcp-server.test.ts test: fix pre-existing failures and add coverage for new features 2026-04-22 17:20:09 +03:00
mcp-stdio.test.ts test: fix pre-existing failures and add coverage for new features 2026-04-22 17:20:09 +03:00
mcp.test.ts Fix hit-testing: scope hover to current page, click-through empty containers 2026-03-05 08:56:35 +03:00
multi-selection.test.ts Rename format files to match io folders 2026-03-28 14:33:28 +03:00
mutation.test.ts Add mutation unit tests: toggleBoldInRange, vectorNetworkBlob precision, SceneGraph+UndoManager integration 2026-03-07 23:11:03 +03:00
nudge.test.ts Add arrow key nudge and fix undo/redo bugs 2026-04-10 00:26:13 +03:00
okhcl-toggle-conversion.test.ts Add OkHCL color picker support 2026-03-28 20:33:35 +03:00
okhcl-ui-logic.test.ts Add OkHCL color picker support 2026-03-28 20:33:35 +03:00
okhcl.test.ts Add OkHCL color picker support 2026-03-28 20:33:35 +03:00
pen-file.test.ts Add .pen document import 2026-03-28 13:57:32 +03:00
pen-var-padding.test.ts fix(layout): resolve design token variables before passing to yoga-layout (#202) 2026-04-16 10:11:28 +03:00
perf.bench.ts Restructure @open-pencil/core into domain modules 2026-04-06 14:39:53 +03:00
plugin-data.test.ts Add .fig plugin data support 2026-03-28 18:18:55 +03:00
profiler.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
render-text.test.ts Restructure @open-pencil/core into domain modules 2026-04-06 14:39:53 +03:00
render.test.ts feat: JSX reference, multi-root JSX, prompts as markdown files 2026-04-22 17:51:41 +03:00
renderer-effects.test.ts Restructure @open-pencil/core into domain modules 2026-04-06 14:39:53 +03:00
rtl-auto-layout-input.test.ts feat: add Arabic and RTL support 2026-03-29 11:42:30 +02:00
scene-graph.test.ts fix(hit): fix hit area when parent rotation (#195) 2026-04-15 10:53:47 +03:00
snap.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
solid-color-commit.test.ts Move reusable color picker logic into Vue SDK 2026-03-29 18:54:14 +03:00
style-runs.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
svg-export.test.ts feat: add Arabic and RTL support 2026-03-29 11:42:30 +02:00
svg-path-parse.test.ts Add step budget warnings and Continue button for AI chat 2026-03-13 10:18:20 +03:00
tailwind-jsx.test.ts CSS Grid layout mode (#73) 2026-03-08 18:23:53 +03:00
text-edit-undo.test.ts Include styleRuns in text edit undo 2026-04-06 15:59:57 +03:00
text-editor.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
tools-ai-adapter.test.ts Unify tool definitions: define once, adapt for AI/CLI/MCP 2026-03-01 15:02:05 +03:00
tools-cli.test.ts Fix hit-testing: scope hover to current page, click-through empty containers 2026-03-05 08:56:35 +03:00
tools.test.ts fix(tools): set_font_range now produces valid style runs 2026-04-22 16:01:03 +03:00
undo-batch-idle.test.ts refactor(vue): extract useUndoBatch composable and add batch tests 2026-04-13 09:46:09 +03:00
undo-create-shape.test.ts Add arrow key nudge and fix undo/redo bugs 2026-04-10 00:26:13 +03:00
undo-redo-sequence.test.ts Add arrow key nudge and fix undo/redo bugs 2026-04-10 00:26:13 +03:00
undo.test.ts Clean up tools/schema, add geometry.ts, isMixed helper, fix imports, add tests 2026-03-06 22:33:10 +03:00
vector.test.ts fix(vector): validate VectorNetwork input in create_vector 2026-04-22 14:35:25 +03:00
xpath.test.ts feat: copy node ID / XPath from context menu, CLI selection command 2026-04-15 10:09:52 +03:00