diff --git a/CHANGELOG.md b/CHANGELOG.md index a2a060e..a6ddcf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi ## [Unreleased] ### Changed +- **Rehearser recording namespace migration.** Microphone overlay, recording controls, and shared microphone errors now + use a private implementation scope with explicit compatibility exports. - **Rehearser I/O namespace migration.** Serialization, library persistence, import/export, and PDF helpers now use a private implementation scope with explicit compatibility exports and the existing namespace API. - **Rehearser playback namespace migration.** WebAudio transport, decoded-buffer caching, line-audio caching, and batch diff --git a/VERSION b/VERSION index c69cdff..c0e9e42 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.60 +1.24.61 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index c1e4ee7..6a6335f 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -51,6 +51,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ Stateful Audiobook modules use private scopes with explicit legacy exports; their public APIs are namespace-tested. - ✅ Rehearser playback uses a private scope with explicit transport/cache compatibility exports and a namespace-tested API. - ✅ Rehearser I/O uses a private scope with explicit serialization/library/import compatibility exports. +- ✅ Rehearser recording uses a private scope with explicit microphone/overlay compatibility exports. - ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles. - ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles. - ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles. diff --git a/static/index.html b/static/index.html index 22f12f6..ee8fc9e 100644 --- a/static/index.html +++ b/static/index.html @@ -10,7 +10,7 @@ - + @@ -27,12 +27,12 @@ - - - - - - + + + + + + @@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) { - + diff --git a/static/js/rehearser-recording.js b/static/js/rehearser-recording.js index 0a92641..b2d818f 100644 --- a/static/js/rehearser-recording.js +++ b/static/js/rehearser-recording.js @@ -1,6 +1,8 @@ // Rehearser microphone recording overlay and controls. // Loaded before rehearser.js; shared state and playback helpers resolve at call time. +(function (root) { + // ── Recording overlay ─────────────────────────────────────────────────────── function showRecOverlay(line) { @@ -138,9 +140,17 @@ $('reh-skip-line')?.addEventListener('click', () => { }); -window.TTVC=window.TTVC||{}; -window.TTVC.rehearser=window.TTVC.rehearser||{}; -Object.assign(window.TTVC.rehearser,{ +Object.assign(root, { + showRecOverlay, + hideRecOverlay, + startRehMic, + stopRehMic, + microphoneErrorMessage, +}); + +root.TTVC=root.TTVC||{}; +root.TTVC.rehearser=root.TTVC.rehearser||{}; +Object.assign(root.TTVC.rehearser,{ recording:{ showOverlay:showRecOverlay, hideOverlay:hideRecOverlay, @@ -148,4 +158,4 @@ Object.assign(window.TTVC.rehearser,{ stop:stopRehMic, }, }); - +})(window);