diff --git a/craft/src/panels/topbar/TopBar.tsx b/craft/src/panels/topbar/TopBar.tsx index 11a11a3..9a3d5e0 100644 --- a/craft/src/panels/topbar/TopBar.tsx +++ b/craft/src/panels/topbar/TopBar.tsx @@ -274,7 +274,7 @@ export const TopBar: React.FC = ({ showGuides, onToggleGuides }) => const win = window.open('', '_blank'); try { const serialized = query.serialize(); - Promise.all([import('../../utils/html-export'), import('../../utils/sandboxed-preview')]).then(([{ exportToHtml, exportBodyHtml, buildAnimationScript }, { openSandboxedPreview }]) => { + Promise.all([import('../../utils/html-export'), import('../../utils/sandboxed-preview')]).then(([{ exportComposedPreviewHtml, exportBodyHtml }, { openSandboxedPreview }]) => { // Get header HTML let headerHtml = ''; try { @@ -295,18 +295,11 @@ export const TopBar: React.FC = ({ showGuides, onToggleGuides }) => } } catch (e) { console.warn('Footer export failed:', e); } - // Compose full page: header + body + footer. `handlePreview` below - // replaces the ENTIRE wrapped-doc `` inner (including the - // in-body reveal `