openpencil/packages/core
Danila Poyarkov d93c4752cb Fix DSD resolution for swapped instance children
After an instance swap, the DSD guidPath still references the
pre-swap slot's overrideKey (e.g. bold icon), but the actual child
is the swapped-in component (e.g. code-2). resolveOverrideTarget
couldn't find the target because the child's componentId no longer
matched the guidPath element.

When findNodeByComponentId fails, fall back to the single child
of the parent node — after a swap, it occupies the same slot.

Fixes cropped toolbar icons (bold, italic, underline, strikethrough,
link, lists, code) in the WYSIWYG editor.
2026-03-14 12:47:51 +03:00
..
src Fix DSD resolution for swapped instance children 2026-03-14 12:47:51 +03:00
package.json Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
tsconfig.json Fix core tsconfig: add ESNext and DOM libs for npm publish 2026-03-04 01:58:37 +03:00