This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/src/js/sw/shell/dialog-stack.js
gobha 05b5affdac Changeset 0.37.4 (#216)
Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
2026-03-21 01:15:09 +00:00

18 lines
449 B
JavaScript

/**
* 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} />
`;
}