/** * DialogStack — mounts imperative dialog hosts (ConfirmHost, PromptHost) * * Must be rendered once at the root level and never unmounted, * so sw.confirm() and sw.prompt() work globally. */ const { html } = window; import { ConfirmHost } from '../primitives/confirm.js'; import { PromptHost } from '../primitives/prompt.js'; export function DialogStack() { return html` <${ConfirmHost} /> <${PromptHost} /> `; }