mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 16:37:32 +00:00
* fix(studio): a refused delete no longer brings back another delete still saving A refused delete, or a ripple shift that fails after its delete, now moves back only the clips that delete shifted, on the timeline as it is now, instead of restoring the timeline from before it. * fix(studio): a refused delete also refuses the ripple shifts queued behind it A delete's ripple shift saves absolute starts worked out with every earlier pending delete applied. When one of those is refused, the shifts queued behind it are refused too and leave their gap, so the saved file never puts a clip on top of the restored one. * fix(studio): a ripple shift queued behind a refused edit is refused before it writes The timeline's edit queue now has one owner. It knows when an edit still pending is refused, and a ripple shift (after a delete or a trim) queued behind it is refused instead of saving starts that assumed that edit. The trim ripple's rollback moves clips back by its own shift only. Drags, single-clip timing and link edits are unchanged. * fix(studio): a refused edit refuses trims behind it, per project, until every save settles - A queued save stays tracked until it settles, so a later failure still refuses the ripple queued behind it. - A trim's own resize is refused behind a refused edit too: its start and duration were read from the timeline that edit left. - Each project gets its own queue. - A refused trim shift reloads the preview, as a refused delete does. * test(studio): the project-switch case keeps the old project's save pending * fix(studio): a single-clip SDK timing save waits its turn in the edit queue The SDK move and resize now run inside the queued edit, with the file-write fallback in the same entry, so the earlier-refusal check guards both paths and later edits see these saves. * test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path * fix(studio): a queued timeline edit reads and writes only the project it was queued in Each edit queue now carries the project it was made for and hands that id to every queued edit, so the SDK readers, the file writes and the tween rewrite never follow a project switch that happens while an edit waits. * test(studio): hold the old project's save from the start in the project-switch case * revert(studio): leave project isolation of queued edits to its own change Takes out the per-project queue and the project binding of queued edits. Main already lets a queued edit follow a project switch, through more handles than the project id (preview, timeline store, history), so that fix moves to one change that covers every handle. * fix(studio): a timeline edit queued before a project switch stays in its own project Each edit queue carries the project it was made for and is closed when the editor shows another one. A queued edit reads, writes and records history in its own project; its live side (preview patches and reloads, the SDK session, the timeline store and its rollbacks, the pending-path set) runs only while that project is shown. Gestures still saving are forgotten on a switch, so no drag or resize rolls back the new project's timeline. * test(studio): the project-switch test covers a single-clip move and every reach into the preview * test(studio): type the preview spy's traps * refactor(studio): let the queue's names carry what two doc lines said * fix(studio): a queued single-clip SDK save reads the project it was made in Main read the project as the save started, right away; queued, it read it when its turn came. The move and resize now take the project when the gesture queues them, for the SDK reader and the tween rewrite. * fix(studio): a project's edits keep one order across a switch away and back A new project's queue starts from the previous queue's tail, so returning to a project never runs its next edit beside a save it left waiting. Refusals and the closed flag stay per queue. The old queue is closed, and pending gestures forgotten, when the switch commits, not during render. * fix(studio): a refused edit refuses only later edits of its own project Each queued edit carries the project it was queued in, and the queue tracks refusals per project, so a refusal left behind by a project the editor has moved away from never refuses an edit in the one now open. * test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target
@hyperframes/studio
Browser-based composition editor UI for Hyperframes. Provides a visual timeline, code editor, and live preview for building video compositions.
Install
npm install @hyperframes/studio
What it does
The studio is a React application with:
- Visual timeline — drag, resize, and arrange elements on tracks
- Code editor — edit HTML and GSAP scripts with CodeMirror (syntax highlighting, autocomplete)
- Live preview — see changes in real time as you edit
- Composition inspector — view and modify element properties
Development
The studio is embedded in the hyperframes preview command. To develop the studio UI itself:
cd packages/studio
bun run dev # Start Vite dev server
bun run build # Build for production
bun run typecheck # Type-check
Tech stack
- React 19, Zustand 4/5 (state management; development uses Zustand 5)
- CodeMirror 6 (editor)
- Tailwind CSS (styling)
- Vite (bundler)
- Phosphor Icons
Documentation
Full documentation: hyperframes.heygen.com/packages/studio
Related packages
@hyperframes/core— types and parsers used by the editorhyperframes— CLI that serves the studio viahyperframes preview