Files
hyperframes/packages
Miguel Angel Simon Sierra 86d3693401 fix(core): restore composition id on the wrapper for anonymous hosts
flattenInnerRoot strips data-composition-id from the flattened wrapper,
assuming the host already carries the composition's identity. That's true
for hosts authored with their own data-composition-id, but not for a host
mounted via data-composition-src with no id of its own (an "anonymous"
host) — a pattern the producer already had a dedicated regression test for
(missing-host-comp-id) and correctly supported before flattenInnerRoot was
wired in, via a different code path that preserved the whole composition
element as-is.

Once nothing in the render DOM carries the composition's own id, its root-
styling CSS (`[data-composition-id="X"] { ... }`) and any script that
self-references it (e.g. `document.querySelector('[data-composition-id="X"]')`)
both silently stop resolving. Restore the id onto the wrapper specifically
when the host has none of its own, matching what the pre-flatten producer
path did and what preview visually expects.
2026-07-02 13:56:56 -07:00
..
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-06-16 13:16:09 -04:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00