Files
hyperframes/packages
Vance IngallsandClaude Opus 5 1e7799bfbb fix(core): let a composition declare its caption colour states
Classification by colour equality has to guess: it takes the first colour
tween's value as the dim baseline and calls everything else active. A
composition whose two states share a colour therefore has every tween
classified dim, and the caller's activeColor is silently dropped -- a real
failure, now covered by a test that fails without this change.

A tween may declare its state as data: { captionState: "dim" | "active" }.
GSAP passes unknown vars through untouched, so declaring costs nothing at
runtime, and resolution is per tween -- a composition can declare some and
leave the rest to the fallback, which is unchanged for anything undeclared.

This is the composition telling us what it built rather than us inferring it
from what it happens to look like. The data-driven caption templates already
author their state tweens from resolved values and never guess; this closes
part of that capability gap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 19:48:12 -07:00
..
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00
2026-08-07 16:12:25 -07:00