refactor: scope combined library
This commit is contained in:
parent
260c5c22a7
commit
3fffae9015
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#2563EB">
|
||||
<meta name="app-version" content="1.24.79">
|
||||
<meta name="app-version" content="1.24.80">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/static/icon.svg">
|
||||
@ -27,12 +27,12 @@
|
||||
|
||||
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
||||
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.80">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.80">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.80">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.80">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.80">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.80">
|
||||
|
||||
|
||||
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
||||
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
|
||||
</script>
|
||||
|
||||
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
||||
<script src="/static/loader.js?v=1.24.79"></script>
|
||||
<script src="/static/loader.js?v=1.24.80"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user