UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

21 lines (20 loc) 723 B
import { BasePart, Part } from '.'; import { TemplateResult } from '@blinkk/selective-edit'; import { LiveEditor } from '../editor'; import { Modal } from '../ui/modal'; /** * Modals are centralized in the display to be outside of other * modals and structures. Modal windows live as siblings in the * DOM. * * This helps to prevent issues where one modal is clipping * another without having to pass the modal through the template * stack to be outside of another modal. * * This also allows reuse of modals across parts of the editor. */ export declare class ModalsPart extends BasePart implements Part { modals: Record<string, Modal>; constructor(); template(editor: LiveEditor): TemplateResult; }