openpencil/packages/core/tests
Danila Poyarkov aeba9a6bd5
fix(scene-graph): leave a field a component property drives to its instance (#843)
* fix(scene-graph): leave a field a component property drives to its instance

A component states the default for a field a property reference drives,
but the enclosing instance's assignment decides the value. Synchronising
copied the default over it, so loading a page into an open document —
which synchronises every component it places — reset those layers. A
label a navigation item assigned came back as the component's default
when its page loaded on its own, while reading the whole archive gave
the assigned text.

Synchronising now skips a field whose reference names a property an
enclosing instance assigns, and carries everything else as before.

* fix(scene-graph): read an own assignment, not an inherited key

A document-authored component property id can collide with an Object
prototype key, and `in` would then report an assignment the instance
never made, silently leaving the referenced field unsynchronised.

* test(core): cover visibility and swap on an independent page load

The fix skips any field a component property reference drives, so the
page-scoped test should exercise VISIBLE and INSTANCE_SWAP alongside
TEXT rather than leaving the other two to full-document reads.

* fix(scene-graph): leave slot content to its own guard

#850 added a SLOT_CONTENT reference field, which drives a slot frame's
children rather than a scalar field, so the property-driven field map
no longer claims to cover every reference field.
2026-10-04 01:38:23 +04:00
..
canvas feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
clipboard/figma test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
design-jsx feat: add visual diff and patch apply tools and openpencil diff (#810) 2026-10-03 21:00:13 +04:00
editor feat(app): follow people and agents from the toolbar avatars (#807) 2026-10-04 00:09:40 +04:00
figma-api test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
helpers feat: add visual diff and patch apply tools and openpencil diff (#810) 2026-10-03 21:00:13 +04:00
io/formats/fig fix(scene-graph): leave a field a component property drives to its instance (#843) 2026-10-04 01:38:23 +04:00
layout/auto-layout/text fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
text/derived-text feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
tools fix(core): send image tool results in the AI SDK's file shape (#857) 2026-10-04 01:00:27 +04:00