Changeset 0.37.4 (#216)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-21 01:15:09 +00:00
committed by xcaliber
parent fc43618501
commit 05b5affdac
7 changed files with 294 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
/**
* 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} />
`;
}