diff --git a/CHANGELOG.md b/CHANGELOG.md index bcc5aa5..3f251db 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 +- **Integrations namespace migration.** Endpoint helpers, active-voice listings, virtual design IDs, and API snippet + rendering now use a private scope with explicit compatibility exports and a `window.TTVC.integrations` API. - **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 diff --git a/VERSION b/VERSION index 20cf08d..b9961ac 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.80 +1.24.81 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index dbabd9d..7eb77f2 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -70,6 +70,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ 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. +- ✅ Integration endpoint and API-snippet helpers use a private scope with explicit voice/endpoint 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 6b3eb03..ef3815f 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/integrations.js b/static/js/integrations.js index e185ecf..102e2eb 100644 --- a/static/js/integrations.js +++ b/static/js/integrations.js @@ -1,5 +1,7 @@ // ── Integration samples ────────────────────────────────────────────────── +(function (root) { + function cleanBaseUrl(url) { return String(url || '').trim().replace(/\/+$/, ''); } @@ -213,3 +215,16 @@ $('copy-active-voices-btn-integrations')?.addEventListener('click', async () => status('Copied active voices to clipboard'); }); +Object.assign(root, { + cleanBaseUrl, getTtsBaseUrl, getTtsV1Url, getTtsStreamBaseUrl, getTtsStreamV1Url, + getCreatorV1Url, updateCreatorUrlHints, activeVoiceIds, integrationVoiceExample, + integrationVoiceList, virtualDesignVoiceIds, renderIntegrationSnippets, +}); +root.TTVC = root.TTVC || {}; +root.TTVC.integrations = root.TTVC.integrations || {}; +Object.assign(root.TTVC.integrations, { + endpoints: { tts: getTtsV1Url, stream: getTtsStreamV1Url, creator: getCreatorV1Url }, + voices: { active: activeVoiceIds, list: integrationVoiceList }, + render: renderIntegrationSnippets, +}); +})(window);