diff --git a/CHANGELOG.md b/CHANGELOG.md index 3390c42..bcc5aa5 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 +- **Combined-library namespace migration.** Production books/plays, Rehearser and Reader handoffs, and cast integration + now use a private scope with explicit compatibility exports and a `window.TTVC.library` API. - **Engine support namespace migration.** ElevenLabs browser state, custom engine cards, and local-container discovery now use a private scope with explicit compatibility exports and a `window.TTVC.engines` API. - **Routing namespace migration.** Route configuration, sound selection, speed previews, routing tests, and routing-log diff --git a/VERSION b/VERSION index 5297a1a..20cf08d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.79 +1.24.80 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 8bf824c..dbabd9d 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -69,6 +69,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ Voice-source discovery and import helpers use a private scope with explicit source-list/import compatibility exports. - ✅ TTS routing configuration and routing-log UI use a private scope with live route/sound compatibility accessors. - ✅ Engine browser, custom-card, and local-container helpers use a private scope with an explicit namespace API. +- ✅ Combined library production rendering and Reader/Rehearser handoffs use a private scope with an explicit namespace API. - ✅ `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 e6ce042..6b3eb03 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/library.js b/static/js/library.js index 89685cf..2edc2e7 100644 --- a/static/js/library.js +++ b/static/js/library.js @@ -7,6 +7,8 @@ // and share the character cast. This module owns the s-library section and // provides the cross-links that open a production in Read Aloud or the Rehearser. +(function (root) { + const LIB_READER_API = '/api/reader/docs'; // The universal join key across books, plays and characters (mirrors clKey). @@ -322,3 +324,19 @@ window.libraryRenderPlays = libraryRenderPlays; window.productionOpenInRehearser = productionOpenInRehearser; window.productionOpenInReader = productionOpenInReader; window.prodKey = prodKey; + +Object.assign(root, { + LIB_READER_API, prodKey, _libSkeleton, libraryRenderBooks, libraryRenderPlays, + openPlayInRehearser, productionOpenInRehearser, productionOpenInReader, + castForProduction, castWriteBack, libBookCover, libConfirmDelete, +}); +root.TTVC = root.TTVC || {}; +root.TTVC.library = root.TTVC.library || {}; +Object.assign(root.TTVC.library, { + renderBooks: libraryRenderBooks, + renderPlays: libraryRenderPlays, + openInRehearser: productionOpenInRehearser, + openInReader: productionOpenInReader, + castForProduction, +}); +})(window);