ID:WORK-119Status:done
Update Svelte renderer to pass props and snippets to component overrides
Priority:highComplexity:complexMilestone:v1.0.0Source:ADR-008
Update the Svelte 5 Renderer to use the extraction utility from WORK-100 when dispatching to a registered component override. Properties become scalar props, top-level refs become Svelte 5 snippets, anonymous content becomes the children snippet, and the original tag object is passed alongside as an escape hatch.
extractComponentInterface before dispatching to registered componentsprepTime="15 min")createRawSnippet or equivalent)children snippettag prop still passed alongside for backwards compatibilityRenderer.svelte, call extraction utilitytag as props to the componentCompleted: 2026-04-04
Branch: claude/adr-008-implementation-nBN9K
packages/svelte/src/Renderer.svelte with extraction and snippet creationnodeToHtml() for HTML serialization with codeblock/raw-html supportcreateRawSnippet for ref and children snippetstag alongsidepackages/svelte/test/renderer-extraction.test.ts