/* designer-host.js: the editor-side half of the designer, with no vscode import so it can be tested. * extension.js hands it the real vscode API; the tests hand it a fake one. */ const TABS = ['aura', 'texture', 'slider']; /** the HTML shell for the panel. `uri('media/designer.js')` turns an extension-relative path into a webview URI. */ export function designerHtml({ cspSource, uri, tab = 'aura' }) { const t = TABS.includes(tab) ? tab : 'aura'; // The panel needs: its own module scripts (script-src), data: images for textures, and // inline