fix: propagate data-timeline-locked in compiler inliners

The runtime path (compositionLoader.ts) already propagated
data-timeline-locked from inner root to host, but both compiler
inliners (bundler + producer) did not. Bundled output re-opened in
Studio would lose the lock. Now propagated in inlineSubCompositions
alongside the existing data-hf-authored-id propagation.
This commit is contained in:
Miguel Ángel
2026-05-20 02:40:49 -04:00
parent 9c159ad96d
commit 3e17ef7447
2 changed files with 23 additions and 0 deletions
@@ -302,6 +302,10 @@ export function inlineSubCompositions(
);
}
if (innerRoot?.hasAttribute("data-timeline-locked")) {
hostEl.setAttribute("data-timeline-locked", "");
}
// Copy dimension attributes from inner root to host if missing
if (innerRoot) {
const innerW = innerRoot.getAttribute("data-width");