diff --git a/CHANGELOG.md b/CHANGELOG.md index 102fc70..0d02c30 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 voice-picker namespace migration.** Local matching, preview state, Fish.audio search/import, and candidate + assignment now use a private scope with explicit compatibility exports. - **Rehearser stage namespace migration.** Stage scaling, cast-sidebar controls, and strip rendering now use a private scope with explicit compatibility exports and the existing stage namespace. - **Audiobook network namespace migration.** Timeout, streaming, and attribution transport helpers now use a private diff --git a/VERSION b/VERSION index c04d7d8..ca69093 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.68 +1.24.69 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index ac698a3..715f6b8 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -58,6 +58,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ Rehearser library persistence uses a private scope with explicit SQLite/IndexedDB compatibility exports. - ✅ Audiobook network transport uses a private scope with explicit timeout/stream compatibility exports. - ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports. +- ✅ Rehearser voice-picker uses a private scope with explicit preview, search, and assignment 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 6c44c0d..5b409b7 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-voice-picker.js b/static/js/rehearser-voice-picker.js index b543a7d..77f08f0 100644 --- a/static/js/rehearser-voice-picker.js +++ b/static/js/rehearser-voice-picker.js @@ -2,6 +2,8 @@ // Preview, local-library matching, and online search/import actions share this // module; DOM event registration remains in the cast renderer. +(function (root) { + let _rehAudEl = null, _rehAudBtn = null, _rehAudObjectUrl = null; function _rehStopAudition() { if (_rehAudEl) { try { _rehAudEl.pause(); } catch (_) {} } @@ -270,9 +272,16 @@ async function _rehUseCandidate(sp, idx, btn) { } } -window.TTVC = window.TTVC || {}; -window.TTVC.rehearser = window.TTVC.rehearser || {}; -window.TTVC.rehearser.voicePicker = { +Object.assign(root, { + _rehAudEl, _rehAudBtn, _rehAudObjectUrl, _rehStopAudition, _rehAudition, + _REH_PREVIEW_TEXT, _rehSearchCache, _rehVoiceRow, castOnlinePanelHtml, + _rehPreviewLocal, _rehPickOneLiner, _rehPreviewCastLine, _rehAssignLocal, + _rehRenderLocalResults, _rehSearchOnline, _rehUseSearchResult, _rehFishImported, + _rehImportFishCandidate, _rehUseCandidate, +}); +root.TTVC = root.TTVC || {}; +root.TTVC.rehearser = root.TTVC.rehearser || {}; +root.TTVC.rehearser.voicePicker = { castOnlinePanelHtml, preview: _rehAudition, stopPreview: _rehStopAudition, @@ -280,3 +289,4 @@ window.TTVC.rehearser.voicePicker = { assignLocal: _rehAssignLocal, useCandidate: _rehUseCandidate, }; +})(window);