mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(producer): probe sub-composition media defaults Sub-composition defaults declared on <html> disappear from the DOM during inlining. The browser-probe gate then misses data-var-src bindings, causing renders to use the authored placeholder source. Pass the inliner's variablesByComp table through CompiledComposition and consult the nearest composition scope when checking media bindings. Give anonymous mounts distinct runtime scopes and reserve IDs as nested mounts are processed, preserving each instance's variable values. Add regression coverage for declared defaults, repeated mounts, nested scopes, and named/anonymous mount collisions. Fixes #7505 * fix(core): keep anonymous hosts unnamed, key their variables by the authored id The previous commit made an anonymous mount claim its sub-composition's id on the host element, which changed the DOM contract the runtime mount path and the `missing-host-comp-id` regression golden pin: the compile paths put the host's start/duration on the composition while the mount path kept them on an unnamed timed element, so the producer parity test and the regression shard failed on the first CI run. Restore the contract: an anonymous host carries no composition id and its flattened wrapper keeps the authored one. For #7505 that wrapper is already the scope the probe gate (and `variableScope.ts`) resolves through, so the inliner now keys an anonymous mount's merged defaults by the authored id instead of skipping them. A named mount of the same file shares that scope; its explicit instance values win regardless of inlining order, which the replacement unit test pins in both orders. The id-reservation machinery for claimed ids goes with the claim. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>