Commit Graph

6 Commits

Author SHA1 Message Date
Miguel Angel Simon Sierra b28a773d4f fix(studio): format QA fixture html, escape backslashes in test CSS.escape stub 2026-07-03 12:34:39 -07:00
Miguel Angel Simon Sierra f004016014 fix(studio): per-child patch ops for multi-text-field edits
- PatchOperation gains childSelector/childIndex resolved under the matched parent
- child style and content edits persist per field instead of escaped innerHTML
- batch aborts with no partial write when a child locator misses
- SDK cutover declines child-scoped batches (hfId mapping would hit the parent)
2026-07-02 22:40:03 -07:00
Miguel Angel Simon Sierra 429700e322 docs(studio): complete design-panel QA matrix results 2026-07-02 22:14:28 -07:00
Miguel Angel Simon Sierra 40537d2846 docs(studio): record embedded-mode re-verification of selection fixes 2026-07-02 21:38:59 -07:00
Miguel Angel Simon Sierra 2ac098122c test(studio): add design-panel QA fixture and step-0 triage findings 2026-07-02 21:03:00 -07:00
Miguel Ángel fb2e21090f feat(studio): GSAP tween editing in Design panel (#1102)
* feat(studio): GSAP tween editing in Design panel

Add a GSAP animation editor to the studio Design panel: select an element,
view and edit its tweens (properties, easing, timing), add/delete animations,
and drag custom bezier speed curves — all persisted back to the composition
HTML. Gated behind VITE_STUDIO_ENABLE_GSAP_PANEL.

Parsing of existing GSAP source now uses a recast + Babel AST parser instead of
regex, giving scope resolution, stable tween IDs, and round-trip preservation of
extras and unresolved raw values.

recast compiles to CommonJS that calls require("fs"), which breaks browser and
Vite SSR bundles. To contain it, @hyperframes/core is split into an isomorphic
layer and a Node-only AST layer:

- gsapSerialize.ts holds the recast-free helpers (serialization, keyframe
  conversion, validation, shared types). htmlParser.ts is now fully isomorphic.
- parseGsapScript and the script-mutation helpers live in gsapParser.ts,
  reachable only via the @hyperframes/core/gsap-parser subpath, loaded
  server-side by the studio-api mutation routes and the linter via dynamic
  import (recast stays external under SSR).
- The barrel and the gsap-constants subpath are recast-free, so studio browser
  bundles never trace recast.

Adds AST parser unit + stress coverage and e2e helpers for the panel.

* fix(lint): await async lintHyperframeHtml in all callers

lintHyperframeHtml became async (gsap rules use dynamic import)
but lintProject and check-hyperframe-static weren't awaiting it,
causing typecheck failures and runtime crashes in CI.

Also wire LintRule type in gsap rules to fix fallow unused-type
finding, and suppress render.ts exported-for-tests symbols.
2026-05-28 19:16:34 -04:00