- SvgRenderer: <img> data-URI -> sanitized inline DOM. Dependency-free
sanitizeSvg strips script/foreignObject/on*/js-urls and scopes element ids +
url()/href/aria refs so multiple inlined svgs don't collide. Multi-<svg>
content is split into independent figures.
- svg-theme.css: themed class system (t/ts/th, box/node/arr, c-* 9-ramp)
following light/dark via CSS vars and the app Geist font; svg sized width:100%
by viewBox to avoid the 300x150 inline collapse.
- HtmlRenderer: iframe height auto-fit + receives the widget's sendPrompt.
- iframe-html.ts: inject the sendPrompt bridge + a ResizeObserver height report.
Frontend visualize only — the chat page.tsx composer-prefill listener is left in
the working tree alongside the unrelated chat changes there.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>