mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
chore(studio): remove all console.* calls from studio package (#1691)
* 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>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ae8b94c518
commit
adb40321d6
@@ -126,9 +126,7 @@ export function useDomEditTextCommits({
|
||||
? (html, sourceFile) => ensureImportedFontFace(html, importedFont, sourceFile)
|
||||
: undefined,
|
||||
});
|
||||
} catch (err) {
|
||||
console.warn("[Studio] Style persist failed:", err instanceof Error ? err.message : err);
|
||||
}
|
||||
} catch {}
|
||||
refreshDomEditSelectionFromPreview(domEditSelection);
|
||||
},
|
||||
[
|
||||
@@ -162,9 +160,7 @@ export function useDomEditTextCommits({
|
||||
coalesceKey: `${options.coalescePrefix}:${attr}:${getDomEditTargetKey(domEditSelection)}`,
|
||||
skipRefresh: options.skipRefresh,
|
||||
});
|
||||
} catch (err) {
|
||||
console.warn(options.warningMessage, err instanceof Error ? err.message : err);
|
||||
}
|
||||
} catch {}
|
||||
if (options.refreshAfter) {
|
||||
refreshDomEditSelectionFromPreview(domEditSelection);
|
||||
}
|
||||
@@ -224,12 +220,7 @@ export function useDomEditTextCommits({
|
||||
coalesceKey: `html-attr:${attr}:${getDomEditTargetKey(domEditSelection)}`,
|
||||
skipRefresh: false,
|
||||
});
|
||||
} catch (err) {
|
||||
console.warn(
|
||||
"[Studio] HTML attribute persist failed:",
|
||||
err instanceof Error ? err.message : err,
|
||||
);
|
||||
}
|
||||
} catch {}
|
||||
refreshDomEditSelectionFromPreview(domEditSelection);
|
||||
},
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user