mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 17:30:50 +00:00
* chore(studio): remove all console.* calls from studio package * chore(studio): address review — remove dead stubs, restore consent notice - Delete empty if-blocks left after console removal (snapTargetCollection, Player asset-poll, useTimelineSyncCallbacks 5s probe, useGestureRecording dev guard + now-unused isDevBuild) and the stale "surface in dev" comment. - Drop the dangling no-console pragma + dead duplicate-id branch in sourcePatcher. - Restore the one-time telemetry consent disclosure in showNoticeOnce (kept behind a pragma — it is a user-facing notice, not debug noise). - Remove the missed timelineIcons console.warn while preserving the `tag || "div"` null-safety fallback. - Route caption auto-save failures (a data-loss path) through telemetry instead of swallowing silently. - Restore the accidentally-clobbered css-var-fonts output.mp4 fixture. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
586 B
TypeScript
10 lines
586 B
TypeScript
// Gated strategic logging for the GSAP keyframe / manual-drag / gesture / razor
|
|
// edit flows. Silent in production; on in dev builds, or anywhere once you set
|
|
// `window.__hfDebug = true` in the console. Single `[hf-edit:<scope>]` prefix so
|
|
// the whole edit pipeline is greppable. Fires only at commit boundaries (user
|
|
// actions), never in render/raf loops, so it doesn't spam.
|
|
export function editLog(_scope: string, ..._args: unknown[]): void {
|
|
// ponytail: body removed — all console.* stripped from studio.
|
|
// Restore with: console.log(`[hf-edit:${_scope}]`, ..._args);
|
|
}
|