Commit Graph
1300 Commits
Author SHA1 Message Date
Miguel Ángel efb540744c fix(studio): a sealed move of a layer with a later scale or rotation saves as a CSS translate (#8749)
* fix(studio): a sealed move of a layer with a later scale or rotation saves as a CSS translate

* fix(studio): a GSAP read puts back every attribute and nested cache field it changes
2026-11-24 19:28:54 +00:00
Miguel Ángel 2e1294649c fix(core): check never looks at a media file outside the project (#8742)
* fix(core): check never looks at a media file outside the project

* fix(parsers): a project file named with two leading dots counts as inside the project

* refactor(parsers): one containment check for composition srcs
2026-11-24 19:00:39 +00:00
Miguel Ángel 96ec31243a fix(player): a sealed preview whose runtime fails shows the film's error at once (#8746) 2026-11-24 19:00:34 +00:00
Miguel Ángel eae8504c2b fix(studio): a sealed scale resize no longer shows its old size for a frame after the drop (#8616)
* fix(studio): a sealed scale resize no longer shows its old size for a frame after the drop

* fix(core): gsap-set draws its drafts even when the set itself can't apply
2026-11-24 18:32:29 +00:00
Miguel Ángel 673f4b57ce fix(studio): a paste from another file cannot choose where its edits are written (#8730)
* fix(studio): a paste from another file cannot carry the marks Studio reads as its source file

* refactor(core): the marks Studio reads as an element's source file have one owner
2026-11-24 17:44:28 +00:00
Miguel Ángel 4821e02f2b fix(core): a rich-text style value is written from its own tokens, not copied (#8734) 2026-11-24 17:39:24 +00:00
Miguel Ángel d44c847ca7 fix(studio): a hand move in a sealed preview saves as the same CSS translate as unsealed (#8731) 2026-11-24 17:34:30 +00:00
James RussoandClaude Fable 5.2 07e03e8fed fix(studio-server): preview head scripts land in the head when an attribute holds <head> text (#8704)
* fix(studio-server): place the preview variables tag by reading the document

The tag that carries `?variables=` into a preview was placed after the
first "<head" text in the file. That text can also sit inside an attribute
value or a comment, and a tag placed there is not a script: the page got no
variables and the <html> element picked up extra attributes.

core gains headContentStart, built on the tokenizer helpers htmlDocument
already has. It reads the document prefix the way a browser does (comments,
doctype, quoted attribute values) and returns the position after the real
<head> start tag, else after <html>, else after the doctype, else 0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(studio-server): place the GSAP fallback script by reading the document

The preview route put this script after the first literal "<head>" in the
page, which can be text inside an attribute value or a comment. It now uses
headContentStart, the same as the preview variables tag. A page whose head
tag has attributes also gets the script inside the head now, where before it
went ahead of the doctype.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(core): headContentStart keeps a leading byte-order mark first

With no doctype, html or head tag the position was 0, ahead of the mark.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* chore(core): trim comments added with head placement

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:54 +00:00
Michael Wang 7975ecc423 fix(cli): media-use resolve reads each asset as one local self-contained container (#8713)
probe() and the vendored grade analyzer ran ffprobe and ffmpeg on project files with every reader
and the default protocols, so a media-named list, manifest or script under assets/ could open
other files, and a script reader could run its script. Every read that resolve starts (--adopt,
--from --source, --for, --analyze) now passes -protocol_whitelist file and a self-contained
container list before the file. The vendored analyzer's limits are now at least as strict as the
core module's, and the parity test fails when a vendored read allows a reader the core one would
not, or drops the file-only protocol. mp3, wav, mp4 and png assets keep their metadata.
2026-11-24 12:54:08 +00:00
James RussoandClaude Fable 5.2 260a8d81cc fix(cli): add refuses block and component scripts the project's Node tooling may run (#8703)
* fix(cli): add refuses block and component scripts the project's Node tooling may run

A block or component never installs a TypeScript, JSX or CommonJS file. From a
registry other than the public one, a .js or .mjs file is also refused where a
package.json above the target brings Node tooling, the rule Studio saves follow.
The rule moves into core so the installer and Studio share one copy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): add refuses a page whose own file link leads to a Node-only script

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 12:21:24 +00:00
Miguel Ángel 52e565ace0 fix(core): telemetry redaction stays fast on a huge token (#8672)
* fix(core): telemetry redaction stays fast on a huge token

* fix(core): a bounded redaction still redacts a path a long run or the cut touches

* fix(core): a shortened run keeps its end, which callers reading the tail need
2026-11-24 09:42:54 +00:00
Miguel Ángel 1c20a107a6 fix(player): a sealed player plays media from hosts without CORS and names a missing runtime (#8142)
* feat(player): a composition can no longer read the page that embeds the player

BREAKING CHANGE: the player's composition frame no longer shares the embedding page's origin
by default. Add sandbox-origin="same-origin" to keep reading the composition's DOM or runtime
directly (editors, recorders, custom timelines), only for compositions you trust.

* chore(skills): refresh the slideshow skill's manifest hash

* fix(player): a sealed player's timeout says how to play a composition without the runtime

A sealed player cannot add the runtime to a composition, so one with a GSAP timeline and no runtime never became
ready and failed with a bare timeout. The timeout now names the two fixes, the README says a sealed composition
brings its own runtime, and a browser test covers the sealed, trusted and runtime-bundled paths.

* test(player): the heavy-films bench embeds the trusted player, since it reads the film from inside

* test(player): the bench host stays sealed; only the bench that reads the film asks for trust

* test(player): the perf server answers CORS, so a sealed player's film loads its own media

* test(player): a sealed film on a host without CORS must still play its videos

* test(core): a sealed video whose CORS load fails loads again once without crossorigin

* fix(core): a sealed film's video loads once more without CORS when its host refuses CORS

* fix(core): the sealed media fallback reads its event target without a realm-bound instanceof

* fix(player): keep the player's origin sharing as today; sealing stays opt-in with sandbox-origin

* test(core): a failed sealed media source spares its siblings; a refused URL drops the helper's CORS

* fix(core): a sealed film tries every CORS source before falling back and drops CORS for refused URLs

* fix(cli): the play page shares its origin as today; docs say sealing is opt-in

* refactor(core): split the sealed media fallback into small steps

* test(player): sealed media decides CORS per element in Chrome; probe advice follows the policy

* fix(core): each sealed media element owns its CORS choice; probe advice follows the policy

* test(player): a sealed player's late timeline expects the sealed advice; media cases await each read

* test(player): sealed media rows for a skipped first source, author writes and a recovered URL

* fix(core): sealed media falls back only when the browser has no source left, once per URL

* test(player): the skipped-source row's loads are never cached, so each one is counted

* test(player): the skipped-source row bounds the video's load attempts as well as its requests

* test(player): sealed media rows for a mismatched-source reload, an outage and two refusing sources

* fix(core): a sealed media element owns one fallback state; only a played fallback is remembered

* test(player): a generated table of sealed media edits, each element checked on its own

* fix(core): sealed media CORS is decided per element and chosen source, with no shared cache

* test(player): the media table counts the runtime's loads against other selections

* fix(core): a sealed media element guesses the source it last played

* test(player): the media table attributes loads exactly and lets a failing host stay down

* test: sealed media rows check per-element CORS; the generated table replaces the hand-picked ones

* fix(core): a media element's own src counts as the source that failed

* fix(core): starting sealed media CORS twice adds no second set of listeners

* test(player): judge the sealed media table against frames without the runtime

* test(player): compare the sealed media table with the same film unsealed

* test(player): run the unsealed control film before the sealed one in one tab

* test(player): judge an authored crossorigin only on the composition's value

* test(player): an all-own list returning to an upgraded URL keeps its pixels

* test(player): source and playback against the sealed film with the helper off

* test(player): count every runtime load of a table video, net of the film without the helper

* test(player): the all-own return row plays the other clip alone before the URL comes back

* test(player): judge every round of the sealed media table, not only the end

* fix(core): sealed media keeps the browser's source choice and its playback across our reloads

* test(player): the table plays a video only after the runtime has bound it

* fix(core): a sealed video drops a stale crossorigin its source already refused

* test(player): the table exempts foreign hosts from pixels and allows a range request per load

* test(core): unit rows for the source choice, down hosts and playback across reloads

* refactor(core): sealed media restores time through the media clock, and its failure path is split

* test(player): the table compares play() outcomes, recovers a down host, and reads a seek at seeked

* test(player): the table judges a seek by where it settles and lets a composition pause on rejection

* test(player): the table holds the helper to a play() the film without it resolved

* test(player): pin the generated sequences that found the recovery and play() faults

* test(player): a slow host keeps the composition's play() pending when its source fails

* test(player): pin the sequences that find the play() and recovery faults with the slow host

* test(player): the table can start its generated sequences at any seed

* test(player): pin the generated sequences that find the recovered source skipped

* test(player): keep the pinned sequences that are red in every run in both browsers

* test(player): a looping video starting over is not a seek after the composition's

* fix(core): a sealed video retries a recovered source and keeps the composition's play() alive

* test(core): the playback row watches the play() the runtime's retry makes

* test(player): a slow host delays its first answer only; the composition's own abort is skipped

* test(player): a loop restart is told from a seek by where the seek began

* test(player): restarts are read at metadata, and a buffering control judges no playback

* test(player): the table counts and limits the comparisons it skips

* test(player): our restore after a composition seek stays within a frame; all selections count

* test(player): a playhead counts as moving if it moves within a second

* fix(core): only the composition's own load() makes a sealed video retry a down source

* fix(core): a sealed video's down source stays down through the runtime's preload load

* test(player): judge sealed media rows by what each step makes possible, not page timing

* test(player): print sealed and unsealed seek landings each sealed media run

* test(player): read a looping clip after its loop restart in every film alike

* fix(core): the runtime's preload loads a media element once per source list

* fix(core): the runtime's prefetch shares the preload's one load per source list

* test(player): a table step interrupts the CORS handling's own reload, not the runtime's preload

* test(core): an undo puts a clip's colour grade back in a sealed preview in place

* fix(core): an undo of a colour grade applies in place in a sealed preview

* test(player): a second table seek lands during the CORS reload of a playing clip

* test(core): an undo in a sealed preview keeps the media attributes the runtime added

* fix(core): an undo in a sealed preview keeps the media attributes the runtime added

* test(player): the playing-clip seek row plays a clip that starts past 0, as a trimmed one does

* test(player): the playing-clip seek is armed with its video, before the play step waits

* test(player): the down-then-back row reloads again, so every film's control has a frame

* test(player): the playing-clip seek row's host answers late, so the clip plays before its reload

* fix(player): a sealed player plays a same-site composition with the runtime it ships

* fix(player): a switch to video unloads a sealed composition shown as srcdoc

* test(core): the runtime's preload mid-selection keeps a down source's mark

* fix(core): a sealed film's down source keeps its mark through the runtime's own loads

* chore(player): fallow reads the cjs and iife runtime file as an entry

* fix(core): declare the html-tokens subpath where package exports are generated

* fix(player): a sealed composition that brings its runtime loads by src under its own headers

* test(player): expect the sealed player's own timeout message in the late-runtime tests

* test(core): a grade undo on a far clip whose length is loading applies in place

* fix(core): a far clip's length probe records the preload it sets, so a grade undo applies

* fix(player): a sealed film shown as srcdoc keeps its URL, so its sound still plays

* test(player): the late-timeline switch uses a film from another origin, which must still fail

* fix(player): a sealed Studio preview keeps its own runtime and loads by src

* fix(player): the player package carries the runtime once, and Studio none

* fix(core): a sealed video reads its own source's pixels in a list that names another host

* fix(player): a sealed player with no bundler still gets the runtime, only when it needs it

* fix(core): keep the mixed-list change within the comment budget

* fix(core): opt a mixed list in only when its first source plays, so a reload keeps that video

* fix(core): a CORS reload keeps the source that was playing

* fix(core): the composition's own load() picks from its full source list again

* fix(core): a reload's pin keeps a source type the composition wrote meanwhile

* fix(core): a reload's pin stops at the source the browser picked, not a skipped copy of its URL

* fix(core): a reload's pin stops at the source element that played, not the first copy of its URL

* fix(core): a reload's pin keeps the source element that played or refused

* style(core): format the source pin

* style(player): keep the runtime source comment under the line limit

* fix(player): only a real </script> closing tag ends a script in the runtime check

* test(player): count the sealed helper's loads by the crossorigin they change

* fix(core): a sealed video asks its host once before treating a failed CORS load as a refusal

* test(player): the sealed table expects pixels from a host that answers CORS after a failed load

* test(core): each refusal row waits for the CORS question it starts

* test(player): the sealed media table waits on each clip's own events

* refactor(core): a pinned-out source's error gets its own check in the sealed media helper

* test(player): the loop restart wait keeps its two-second window

* style(player): format the table's event wait

* chore(fallow): resolve workspace exports to source as bun does, so no false package cycle

* refactor(player): read script tag attributes in small steps, the same result

* refactor(player): the shader loading attribute reads its words from one table

* refactor(player): the attribute helpers' names say what their comments did

* fix(core): the CORS question never follows a redirect, and stays quiet while it waits

* style(core): format the CORS question's rows

* test(player): a sealed same-site page keeps its own policy; a stuck fetch reports the limit

* fix(player): a sealed same-site page keeps its own policy, and a stuck fetch ends at the limit

* fix(player): a sealed page whose headers can't all be read, as after a redirect, loads by src

* style(player): format the sealed player and name the probe's preparation state
2026-11-24 09:22:41 +00:00
Miguel Ángel 7b2bffef74 fix(studio): a sealed gesture recording shows every recorded value live (#8598)
* test(studio): a second sealed resize of a scaled layer starts from its saved size

* fix(studio): a second sealed resize of a scaled layer no longer jumps and saves the jump

* test(studio): count and time the two-resize bench cases

* test(studio): a sealed frame's GSAP values are read again after a save reruns its script

* fix(studio): a second sealed resize scales from the size the first one saved

* test(studio): leave GSAP value reads out of the sealed save's sent-edit list

* refactor(studio): name the sealed rerun's re-read so the answer handler stays simple

* test(studio): a sealed drag on GSAP's route leaves no offset on the stand-in, one re-read per rerun

* fix(studio): a sealed drag that GSAP saves clears Studio's offset, as an unsealed one does

* fix(studio): a sealed drag of a GSAP-held layer moves GSAP's x/y, as an open preview does

* fix(studio): a sealed gesture recording moves the layer live in the preview

* fix(studio): a sealed drag draws the rounded position an open preview's drag writes

* test(studio): a plain layer's frame draft is the open preview's rounded offset less its start

* fix(studio): a sealed recording sets every recorded GSAP value live, as unsealed does

* refactor(core): name the checks a recording's draft props pass

* fix(studio): queue every sealed recording sample in order instead of replacing a waiting one

* fix(studio): drop the move-only draw a merge doubled in the sealed recorder

* fix(studio): a sealed restore keeps a later position write, and a rejected undo redraws the drop

* fix(studio): a sealed restore keeps each axis a later write set, per landed patch

* fix(studio): a sealed restore keeps a tween edit's axes only once that edit has drawn

* fix(studio): a failed sealed batch keeps the axes an earlier landed batch queued

* fix(studio): a sealed restore shows the base and whatever the timeline draws over it

* fix(studio): restoring one sealed draft leaves every other live draft where it is drawn

* test(core): another layer's live recording survives a restore or a recording ending

* fix(studio): a sealed restore replays only what each live draft draws, rotation included

* test(core): the recording-ends row moves the other layer through the root timeline it redraws

* test(core): the recording-ends row animates the other layer on the root timeline at the playhead

* fix(core): replaying another layer's live recording leaves the playhead where it is

* refactor(core): split a live draft's carried rotation and merged props into named steps
2026-11-24 09:09:50 +00:00
Miguel Ángel 928f9eabb3 fix(core): sub-compositions load only from inside the project (#8670)
* fix(core): sub-compositions load only from inside the project

* fix(core): fetch the authored sub-composition source the check resolved
2026-11-24 08:54:32 +00:00
Miguel Ángel 2fee394a8f fix(core): drop a text style a browser would split differently from the filter (#8658)
* fix(core): drop a text style a browser would split differently from the filter

* fix(core): keep a quoted font family whose name reads like a function
2026-11-24 08:15:42 +00:00
Miguel Ángel 7a1828f8ee fix(studio): a sealed drag draws and saves from the open preview's rounded position (#8587)
* test(studio): a second sealed resize of a scaled layer starts from its saved size

* fix(studio): a second sealed resize of a scaled layer no longer jumps and saves the jump

* test(studio): count and time the two-resize bench cases

* test(studio): a sealed frame's GSAP values are read again after a save reruns its script

* fix(studio): a second sealed resize scales from the size the first one saved

* test(studio): leave GSAP value reads out of the sealed save's sent-edit list

* refactor(studio): name the sealed rerun's re-read so the answer handler stays simple

* test(studio): a sealed drag on GSAP's route leaves no offset on the stand-in, one re-read per rerun

* fix(studio): a sealed drag that GSAP saves clears Studio's offset, as an unsealed one does

* fix(studio): a sealed drag of a GSAP-held layer moves GSAP's x/y, as an open preview does

* fix(studio): a sealed drag draws the rounded position an open preview's drag writes

* test(studio): a plain layer's frame draft is the open preview's rounded offset less its start

* fix(studio): a sealed restore keeps a later position write, and a rejected undo redraws the drop

* fix(studio): a sealed restore keeps each axis a later write set, per landed patch

* fix(studio): a sealed restore keeps a tween edit's axes only once that edit has drawn

* fix(studio): a failed sealed batch keeps the axes an earlier landed batch queued

* fix(studio): a sealed restore shows the base and whatever the timeline draws over it

* fix(studio): restoring one sealed draft leaves every other live draft where it is drawn

* fix(studio): a sealed restore replays only what each live draft draws, rotation included
2026-11-24 07:05:46 +00:00
Miguel Ángel c5e3ac89e4 fix(core): a one-shot Studio capture shows a 4K clip as the server's frame instead of decoding it (#8626)
* fix(core): a one-shot Studio capture shows a 4K clip as the server's frame instead of decoding it

* fix(core): a capture stand-in video is marked, so a frame capture knows it is drawn

* fix(studio-server): a preview still shows the colours the browser decodes its video with

* test(core): a capture stand-in follows each seek of a page seeked many times

* fix(core): a failed capture still leaves the clip to decode its file; stills stay in the clip

* fix(core): a capture keeps see-through clips decoding and takes only the latest still

* refactor(core): one check says whether a capture still may stand in for a file

* fix(core): a capture still's answer leaves alone a poster the page set meanwhile

* fix(core): a capture page never hands a clip its still stands in for its own file

* fix(studio-server): a capture still keeps a browser's colours on every FFmpeg CI and Studio run
2026-11-24 06:55:36 +00:00
Miguel Ángel 66eeb13a92 fix(core): a held clip shows its own frame, not black, while its lighter copy is made (#8618)
* fix(core): a held clip shows its own frame, not black, while its lighter copy is made

* test(core): the held clip's still asks the auto variant like its copy
2026-11-24 04:18:05 +00:00
Miguel Ángel e2fe0e6f53 fix(core): the 4K clip on screen plays its own file while its preview copy is made (#8602)
* fix(core): the 4K clip on screen plays its own file while its preview copy is made

* fix(core): a clip that played its own file is held again once it leaves the screen
2026-11-24 01:58:38 +00:00
Miguel Ángel 32afb984bd fix(core): looped audio plays in sync with the picture in Safari (#8612)
* fix(core): looped audio plays in sync with the picture in Safari

A looped clip on WebKit now decodes and loops its buffer on the audio clock, like a plain clip, instead of playing from its element about 300 ms late.

* fix(core): a looped buffer wraps at the element's length, as media sync does

A decoded MP3 can run longer than the element reports, so looping at the buffer's end drifted a long loop off the picture each pass.
2026-11-23 20:31:30 +00:00
Miguel Ángel 19f98a3ed7 fix(core): a film without a declared size reports its measured size to a sealed Studio (#8578)
* fix(core): a film without a declared size reports its measured size to a sealed Studio

* fix(studio): say why a sealed press or nudge can't move a layer when the frame never answers

* refactor(studio): split the sealed press and nudge replies so each says why it didn't start
2026-11-23 19:57:39 +00:00
Miguel Ángel bebfdd13e9 fix(studio): a ProRes clip's preview copy is no longer starved by thumbnail capture copies (#8597)
* fix(studio): a ProRes clip's preview copy is no longer starved by thumbnail capture copies

* fix(studio): thumbnail capture pages keep their copies but ask for them behind the preview's
2026-11-23 15:35:57 +00:00
Miguel Ángel bc33d032e5 fix(core): a sealed recording starts on a composition without GSAP (#8593) 2026-11-23 15:16:26 +00:00
Miguel Ángel 8d2783561f feat(studio): edit text in place on a sealed preview's canvas (#8183)
* test(studio): text fields and text edits in a sealed preview

* fix(studio): text fields and text edits work in a sealed preview

* refactor(core): shorter notes on edit-element markup

* refactor(studio): name the sealed text edit's steps so the code audit passes

* refactor(studio): share the text commits' steps and split the put-back check

* refactor(studio): say the sealed text edit's steps in names, not comments

* feat(core): a sealed preview's frame runs an in-place text editing session for Studio

* fix(core): a text edit session restores a removed element and ends only for its own port

* feat(core): a sealed text edit ends keeping the text when its element loses focus

* test(studio): in-place text editing in a sealed preview runs in the frame and saves

* feat(studio): edit text in place on a sealed preview's canvas

* refactor(core): drop two comments the text edit helpers' names already carry

* fix(studio): a sealed text edit saves even when the selection moved before the frame replied

* fix(studio): a sealed text edit's selection box grows with the text as it is typed

* test(studio): a sealed text edit refuses a frame reply carrying a script or handler

* fix(studio): a sealed text edit saves only text markup the frame returns

Studio re-runs the frame's own test, isTextMarkup, on the html and previous a sealed frame returns, through
textEditResult and the ended-event parser in core. A reply or ended edit carrying anything else ends the edit
with the frame's original back and saves nothing.

* refactor(core): name the frame-reply markup check instead of explaining it

* test(studio): sealed text rollback, blur before unmount, and Enter on a refused layer

* fix(studio): sealed text edits keep newer drafts, save once on unmount, free Enter on refused layers

* test(studio): a blur-ended sealed save holds the drain, and over-limit text leaves Enter alone

* fix(studio): a blur-ended sealed save holds the drain; one size check for editable text

* test(studio): sealed inline tests dispose each frame's client, so no edit outlives its test

* refactor(studio): split the sealed end reply and edit-element parsing; share hook parameters

* test(studio): one table for an inline edit's save lifecycle, live and sealed

* fix(studio): an open inline text edit settles on a drain and ends when its element goes

* test(studio): an element removed mid-edit comes back showing its original, live and sealed

* fix(studio): a live edit's element removed mid-edit comes back clean, as a sealed one does

* test(studio): inline edit rows for a reopened draft, a re-added node and removal before focus

* fix(studio): an inline edit settles only its own session and ends when its element leaves

* test(studio): a reopened sealed edit types only after the frame handled its start

* test(studio): an untouched inline edit whose element goes saves nothing and says nothing

* fix(studio): an untouched inline edit settles with no save and no message

* test(studio): inline edit tests type before they commit; an untouched commit saves nothing

* test(studio): inline text saves keep their order per heading and a refused redraw shows after cancel

* fix(studio): inline text saves land in begin order per heading; an open edit shows a refused redraw

* test(studio): the sealed test frame reloads with a new runtime over the same heading

* refactor(studio): keep the rich text save order in one ref

* test(studio): a held lookup belongs to the save that reached it

* test(studio): inline text rows for late end replies, Design panel saves and refused redraws

* fix(studio): text saves land in request order per target; the canvas shows the newest landed save

* test(studio): Design panel rows edit a plain paragraph the panel can write

* test(studio): round-8 rows for late blurs, panel saves, skipped saves, reloads and retired edits

* fix(studio): the save pipeline owns the newest saved text per target, for every writer

* test(studio): a panel save made over an open inline draft saves the draft first

* fix(studio): a failed first text save draws the file again through the save drain

* test(studio): reload rows keep one hook across the reload, as the app does

* refactor(studio): move a text save's write steps out of the text commit hook

* fix(studio): the rich-text save imports the resync it uses from the moved steps

* test(studio): round-9 rows for an added field, an end in flight and a write after a cancel

* fix(studio): panel text saves plan against what landed and wait for a draft already ending

* test(studio): round-9 rows pin the added field whole and the superseded panel save

* test(studio): the added-field row keeps the space between the fields that were there

* test(studio): generated inline text sequences, sealed and unsealed, on the shared preview harness

* test(studio): a full reload loads the landed file, and an open edit ends at the sequence's end

* test(studio): each generated text seed reports every mismatch, sealed and unsealed

* test(studio): the text mount re-renders on each selection, and keys reach only an element in an edit

* test(studio): write fates follow write order per seed, and the model keeps frame reloads

* test(studio): the text table names writes Studio skipped, and compares styles in one order

* test(studio): saves queued on an element land before a new inline edit on it opens

* fix(studio): a new inline edit opens after the element's queued text saves settle

* test(studio): the queued-save rows act when the caret shows, as a person does

* test(studio): rows that reopened an edit before its save settled now open it after

* test(studio): the text table's frame reload waits for a live edit, as Studio's reload does

* test(studio): deadline seeds check a lost save is reported; reload-during-edit seeds wait on row 41

* test(studio): a sealed text edit holds a preview reload until it ends

* test(studio): reload-during-edit text seeds hold parity again

* fix(studio): a sealed text edit holds a preview reload until it ends, as an unsealed one does

* test(studio): the text table holds a reload by the preview's gesture document, as Studio does

* fix(studio): a sealed text edit's held reload waits for the end's reply, which carries the draft

* test(studio): a sealed edit's held reload waits for the end reply, and the port timeout releases it

* test(studio): a reload stays held until a frame-ended sealed edit's save has read the frame

* fix(studio): a frame-ended sealed edit holds the reload until its save has read the frame

* test(studio): the text table's reload also waits for pending saves, as Studio's shadow reload does

* test(studio): typing in a sealed edit whose start reply missed its deadline is saved

* fix(studio): a sealed edit whose start reply never came saves what was typed or says it could not

* test(studio): two panel saves on different fields of one element both land

* fix(studio): a panel text save composes on what landed, so a save on another field never drops it

* fix(studio): an older panel text save is superseded only by a newer one on the same field

* test(studio): a sealed edit stays open when its start reply misses the deadline

* fix(studio): a sealed edit whose start reply misses the deadline stays open and ends like any edit

* test(studio): a text table gesture waits for a reload in flight, as a person sees the frame first

* test(studio): the text table reads the caret after loads and edits only fields the panel shows

* test(studio): the text table tracks each text save as Studio's edit context does

* test(studio): a panel remove that ended an edit lands though a newer save claimed first

* test(studio): the remove rows answer the newest edit's end first, as the frame may

* test(studio): the remove rows open a second edit before the newer save, as seed 31 does

* test(studio): the remove rows release both held ends, newest first

* fix(studio): a field text save that waited on an edit lands though a newer save claimed first

* test(studio): a failed field save takes back its draw, and the next write waits for that

* test(studio): the failed add row saves from the panel as the canvas shows it

* fix(studio): a failed field text save takes back its own draw before the next save plans

* test(studio): a newer unsealed field save never writes a failed save's draw

* fix(studio): a field save re-reads its element only after an earlier save on it

* fix(studio): the newest failed text save still draws the file again; older ones take back their draw

* test(studio): the text table answers a request a released write sends while it settles

* test(studio): the text table releases a write that starts waiting while it settles

* refactor(studio): one serialization rule for text saves, and the queued-save wait clears its timer

* test(studio): the box-wake row's frame geometry carries its layout, as frames now send

* test(studio): a sealed text edit keeps the keys until it ends, in the sealed keyboard walk

* test(studio): a sealed text edit holds the frame's keyboard until it ends, then gives it back

* fix(studio): a sealed text edit keeps the keyboard in the frame until it ends

* test(studio): the keyboard rows' frame stays out of the DOM, so only the test loads it

* test(studio): a sealed text edit the frame never ends closes once Studio takes focus back

* fix(studio): Studio taking focus back ends a sealed text edit and its keyboard hold

* test(studio): the sealed keyboard walk ends an edit the film never ends by focusing Studio

* test(studio): the sealed keyboard walk follows the preview a save reloads

* test(studio): the sealed keyboard walk retries a step whose preview a save replaced

* test(studio): the sealed keyboard walk picks the heading again in the reloaded preview

* refactor(studio): split the text save helpers and harness so each stays within the audit limits

* test(studio): the sealed keyboard walk finds the live preview each step and types once it has focus

* test(studio): the sealed keyboard walk picks the heading again when a reload eats its Enter

* test(studio): the sealed keyboard walk retries a canvas pick a reload swallowed

* refactor(studio): group the text hooks' refs and session-end effects so each stays within the audit

* test(studio): a double press opens a sealed heading's text edit

* test(studio): split the seeded text sequences over two files so each fits the flake gate

* test(studio): an inline edit's text survives a panel edit of another field after it

* build(producer): its size budget covers the frame runtime's sealed text editing

* fix(studio): a sealed double press opens the layer it picked, at the press, and a lost edit says so

A sealed first press is often on a layer the frame has not picked yet, so sealed presses pair by time and place and the second must land on the selection's box. The caret goes where the press landed, and a frame that never answers an end is reported through the edit session's toast, which Desktop provides.

* fix(studio): a sealed text edit hands the keyboard back to the control that opened it

* test(studio): a panel remove made before the panel shows an add keeps the added field

* test(studio): a sealed inline text edit typed in steps saves as one undo step

* refactor(studio): a sealed press learns it hit the selection box from its own event

The selection box stays as on main. The press handler splits into pairing and opening, sealed presses pair by place in isDoublePress, and the edit session's existing complexity gets the next-line ignore its peers use.
2026-11-23 14:06:37 +00:00
Miguel Ángel 70d547cace fix(lint): read each linked file once and stop at one page's size limit (#8579) 2026-11-23 13:46:45 +00:00
Miguel Ángel 40ce145f27 fix(studio): a sealed gesture recording keeps the layer's offset and the film's scale (#8568)
* fix(studio): a sealed gesture recording keeps the layer's offset and the film's scale

* fix(studio): a sealed recording starts from the frame's static opacity and scale

* fix(studio): a recording stops at the layer's end and drops a stale sealed start

* fix(studio): a recording's last sample snaps to a frame at or before the layer's end

* chore(producer): raise the unpacked size budget to 5% above what main ships
2026-11-23 11:38:14 +00:00
Miguel Ángel 96abfaf0d0 fix(core): count copied stylesheets and scene scripts toward a bundle's size limit (#8573) 2026-11-23 10:07:30 +00:00
Miguel Ángel 8c31cb3f40 fix(core): a graded video that can no longer be sampled shows plainly instead of freezing (#8570) 2026-11-23 08:26:19 +00:00
Miguel Ángel 44c1e0c47f fix(studio): a sealed save draws in the reply's task and spares a regrab's draft (#8563)
* fix(studio): a sealed save draws in the reply's task and spares a regrab's draft

* fix(core): a sealed patch redraws a repeating timeline on the pass it's on
2026-11-23 07:39:03 +00:00
Miguel Ángel 88295d41fe fix(core): a page naming one script in thousands of tags builds once (#8549)
* test(core): a page naming one script in thousands of tags bundles once

* fix(core): a page naming one script in thousands of tags builds once

* test(core): a nomodule or data-block twin keeps the regular script, many spellings stay fast

* fix(core): keep the regular script beside a nomodule twin and index script tags once

* test(core): tags of many types naming one file add a bounded number of copies

* fix(core): one file is inlined at most four times, whatever types its tags name

* test(core): every data block keeps its text, and many copies of one file are refused

* fix(core): charge each inlined script copy to the page's size limit, not a per-type cap

* test(core): two data blocks of one type naming one file both keep their text

* fix(core): only runnable scripts are deduplicated; every data block keeps its text
2026-11-23 04:05:57 +00:00
Miguel Ángel a50baed348 fix(core): a sealed scale resize shows its new scale once saved, not the old one (#8554)
* test(core): a sealed draft's cancel leaves a transform it never drew to GSAP

* fix(core): a sealed scale resize shows its new scale once saved, not the old one
2026-11-23 02:52:23 +00:00
Miguel Ángel effc9586b9 fix(core): a sealed resize keeps a layer centred by a % translate under the pointer (#8547)
* test(core): a sealed resize probe measures a % translate the way the draft draws it

* fix(core): a sealed resize keeps a layer centred by a % translate under the pointer
2026-11-23 00:40:37 +00:00
Miguel Ángel 35a0d81c2b fix(studio): a sealed preview that can't swap scenes reloads without asking first (#8544)
* fix(studio): a sealed preview that can't swap scenes reloads without asking first

* fix(studio): type the timeline message's scene-swap answer
2026-11-23 00:13:49 +00:00
Miguel Ángel 60c0f9e279 perf(producer): compile time stays linear on pages with thousands of clips or style rules (#8528)
* perf(producer): compile time stays linear on pages with thousands of clips or style rules

* perf(producer): each background rule's selector matches in bounded time, :has() included

* fix(producer): a wrapper's escaped class selector still finds its background
2026-11-22 21:14:59 +00:00
Miguel Ángel 80f45de33d fix(core): the motion path plugin loads from beside the page's own GSAP, never a CDN it did not name (#8523)
* fix(core): the motion path plugin loads from beside the page's own GSAP, never a CDN it did not name

* test(core): local root, revalidation and path-free preload rows

* fix(core): the motion path plugin never falls back to jsDelivr, nor preloads for a page with none

* fix(core): the plugin path beside GSAP is cut in linear time

* test(core): the Desktop walk film's plugin request stays on its origin

* fix(core): preload the motion path plugin only from the page's origin or a configured mirror

* fix(core): the motion path preload compares with the preview document's own origin

* fix(core): one rule decides the motion path plugin URL, bound to the document's own origin

* fix(studio-server): the plugin tag sits beside the page's GSAP as the page wrote it

* test(studio): the plugin-load fixtures name a page GSAP or a configured mirror
2026-11-22 20:31:38 +00:00
Miguel Ángel e5e360154e fix(studio): a turned layer's cropped box is the bounds of its cut corners (#8502)
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not

* fix(core): the geometry stream keeps an element whose geometry now carries its layout size

* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's

* fix(studio): a turned layer's cropped box is the bounds of its cut corners

* test(studio): crossed and mirrored crop probes in both frames

* fix(studio): crossed insets meet and mirrored layers cut their own edge in both previews

* fix(studio): the CSS scale property counts in a cropped layer's box in both previews

* fix(studio): every overlay measure reads the transform the browser composes

* fix(studio): a layer turned out of its plane takes the box the browser paints

* fix(studio): a projected transform chain takes the box the browser paints

* fix(studio): a layer inside a 3D context takes the box the browser paints
2026-11-22 17:58:26 +00:00
Miguel Ángel 87fddbc1a1 fix(player): a sealed film is heard when its frame may not start sound (#8495)
* fix(player): a sealed film is heard when its frame may not start sound

When a browser refuses the film's own play (an iPhone, or Chrome's tap-first
rule for a sealed frame), the player plays copies of the film's media in its
page. A sealed player could not read the frame, so it made no copies and muted
the frame anyway: silence.

The runtime now sends the clips to copy with the refusal, and again whenever
they change. The player copies only files under the composition's own folder,
anonymously, and mutes the frame only while a copy plays instead.

* fix(player): a sealed film's copy plays its file from the composition's own origin

The copy's address is now the composition's origin followed by the checked
path, never the string the frame sent. The player's size budget rises by
exactly what the sealed copies add (npm pack, main vs this branch).

* fix(player): a sealed film's copy address is rebuilt from encoded path parts

* fix(player): a sealed film's copy refuses an encoded way out of its folder

* fix(player): a sealed film is muted only once its copy plays, and only from web addresses

Copies come only from http(s) addresses, so two opaque origins never match.
A clip with an invalid file address gets no copy, and the rest are still listed.
The frame is muted once a copy is playing, and gets its sound back when the
last one fails or is dropped.

* fix(player): a sealed film gets its sound back when its last playing copy fails

* fix(player): a sealed film's mute follows its copies' own state, whatever order events arrive in
2026-11-22 17:32:43 +00:00
Miguel Ángel 2425df5f4d fix(core): pasted or written markup never carries a composition source from elsewhere (#8520) 2026-11-22 17:16:16 +00:00
Miguel Ángel c19d98d9a1 fix(player): a late timeline from the old film no longer keeps a switched player ready (#8500)
* test(player): a late timeline from the old document must not make the next load ready

* fix(player): a late timeline from the old frame document no longer makes the next load ready

* test(player): type the announce filter in the late timeline rows

* test(player): a static ready at load still asks for the runtime's held timeline

* fix(player): a static ready at load still asks the runtime for the timeline it held

* test(player): a late message the left document stamped is dropped without waiting for load

* fix(player): drop a late message from the left document, so the next is ready before its load

* test(player): the late-timeline row replays the sealed document's own timeline

* chore(player): the player's size budget sits 5% above its measured size again

* test: runtime load draws no page randomness; Studio pins the announce capability

* fix(core): the runtime's document id comes from its time origin, so renders keep their random draws

* test(core): two documents loaded at one coarsened time get different runtime ids

* fix(core): the runtime's document id is a random UUID where the browser has one
2026-11-22 16:40:09 +00:00
Miguel Ángel ec9a3a8ef2 fix(core): a sealed move inside a nested composition shows where it was dropped (#8517)
* fix(core): a patched tween on a resting scene timeline is drawn before the frame says patched

* fix(core): the frame says patched only once each patched tween has rendered
2026-11-22 16:17:17 +00:00
Miguel Ángel 5d4420fee1 fix(core): a timeline whose labels throw no longer empties the clip list (#8512)
* test: one timeline's throwing labels don't empty the clip list

* fix(core): a timeline whose labels throw leaves only its own clips unlabeled
2026-11-22 15:24:10 +00:00
Miguel Ángel 2b1495f7af fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not (#8496)
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not

* fix(core): the geometry stream keeps an element whose geometry now carries its layout size

* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's
2026-11-22 14:59:34 +00:00
Miguel Ángel 4a47c33ea3 fix(core): a far clip whose source is swapped learns its new length (#8509)
* fix(core): a far clip whose source is swapped learns its new length

* test(core): the swapped-source case names a freed clip, not the proxy fallback
2026-11-22 14:58:03 +00:00
Miguel Ángel d4e8d6f983 fix(core): a preview of hundreds of clips with no set length no longer loads them all (#8303)
* test(core): a preview's far clip with no set length loads only its length and gives its decoder back

* fix(core): a preview frees a far clip with no set length once it knows its length

* fix(core): every timeline read of a clip's length keeps the one it reported before a release

* test(core): the released clip's length is read through the runtime's own resolver

* refactor(core): an animated element's clip reads its own attributes in one place

* test(core): a far clip with no set length is held to its length, now that armed clips prefetch

* refactor(core): the far-clip load handler keeps its own comment
2026-11-22 13:18:31 +00:00
Miguel Ángel 97b90d8fa2 fix(studio): a sealed preview's clips keep their GSAP transition label (#8499)
* test: a sealed preview's clips name their GSAP transition

* fix(studio): a sealed preview's clips keep their GSAP transition label

* fix(studio): GSAP scene and overlay clips carry their transition label too
2026-11-22 12:40:37 +00:00
Miguel Ángel 0b73069201 fix(studio): paste and duplicate write only allowed markup unless it comes from the same file (#8483)
* refactor(core): keep the SVG element and attribute allowlist in its own module

* test(studio): clipboard writes refuse markup a scripting preview reads differently

* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file

* test(core): inline SVG with its namespace declarations pastes from another file

* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link

* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
2026-11-22 12:05:34 +00:00
Miguel Ángel 039eca4f0f fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows (#8469)
* fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows

A sealed preview's stand-in carries only inline styles, so a rotate on a layer whose stylesheet sets its turn or a
centring transform started from 0 and turned about the wrong point. The frame's gesture-start answer now reports the
CSS turn (angle and where to draw it) from computed style, read by the same code Studio used, moved to
@hyperframes/core/runtime/css-rotation. The rotate draft gains a transform route, which the frame's validator now
accepts; both sides check the transform text before it can reach the saved source.

* fix(core): a sealed frame's transform text must parse as a transform list

A character allowlist let 'translate(1px' and '/*' through, so a frame could close the saved inline transform early
and swallow the element's other inline styles into it. isTransformList now folds innermost known calls until none
are left and accepts only what folds away: known function names, balanced parentheses, no comments.
2026-11-22 12:03:53 +00:00
Miguel Ángel bfd6cb755f fix(studio): a pasted element lands after its own original, never inside a script (#8489)
* fix(studio): a pasted element lands after its own original, never inside a script

* fix(studio): a paste compares the anchor id instead of building a pattern from it
2026-11-22 10:56:11 +00:00
Miguel Ángel 104eab37ad fix(core): a preview seek waits for each graded video to draw its new frame (#8488)
* test(core): a preview seek waits for each graded video to draw its new frame

* fix(core): a preview seek waits for each graded video to draw its new frame

* test(core): a graded video that cannot draw never holds a preview seek

* fix(core): a graded video that cannot draw never holds a preview seek
2026-11-22 10:55:49 +00:00
Miguel Ángel 5ae70826ed fix(core): a far clip the runtime lets go of keeps counting in the film's length (#8480)
* fix(core): a far clip the player lets go of keeps its measured length

* test(studio): a capture page keeps a far clip's length while the runtime lets go of it

* fix(core): a far clip the runtime lets go of stays in Studio's clip list
2026-11-22 10:29:19 +00:00