import { parseHTMLContent } from "@hyperframes/core/compiler"; function getSingleMeaningfulChild(container: Element): Element | null { let child: Element | null = null; for (const node of Array.from(container.childNodes)) { if (node.nodeType === 3 && !(node.textContent || "").trim()) continue; if (node.nodeType === 8) continue; if (node.nodeType !== 1) return null; if (child) return null; child = node as Element; } return child; } /** * Sub-compositions commonly use a single top-level