import type { SiteDesign } from '../state/SiteDesignContext'; import { templateComponentToTreeNode } from '../templates/apply-template'; import { flattenTreeForCraft } from '../utils/craft-tree'; import { exportToHtml } from '../utils/html-export'; import type { SectionDef } from './catalog'; /** Full HTML document of one section rendered with the site's own tokens and * fonts, for a sandboxed (script-less) `