UNPKG

781 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2import { ParagraphDefinition as Paragraph } from './paragraph';
3import { OrderedListDefinition as OrderedList } from './ordered-list';
4import { BulletListDefinition as BulletList } from './bullet-list';
5import { HeadingDefinition as Heading } from './heading';
6export declare type PanelType = 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success';
7export interface PanelAttributes {
8 panelType: PanelType;
9}
10/**
11 * @name panel_node
12 */
13export interface PanelDefinition {
14 type: 'panel';
15 attrs: PanelAttributes;
16 /**
17 * @minItems 1
18 */
19 content: Array<Paragraph | Heading | OrderedList | BulletList>;
20}
21export interface DOMAttributes {
22 [propName: string]: string;
23}
24export declare const panel: NodeSpec;