mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
Remove the Split and Delete toolbar buttons which had many edge cases (style capture, media offset, depth counting, DOMParser + regex hybrid). Replace with an Edit button that: 1. Opens a modal with time range selection (start/end sliders) 2. Shows all elements that overlap the selected range 3. Provides a prompt textarea for describing the desired change 4. "Copy to Agent" button copies structured context to clipboard The AI agent handles the actual HTML mutation — which is what it's good at. This eliminates ~300 lines of fragile split/delete code. Removed: splitElement, deleteElement, applyBakedStyles, styleCapture.ts Kept: parseStyleString, mergeStyleIntoTag, findElementBlock (useful utilities)