1 | import { NodeSpec } from 'prosemirror-model';
|
2 | import { ParagraphDefinition as Paragraph } from './paragraph';
|
3 | import { OrderedListDefinition as OrderedList } from './types/list';
|
4 | import { BulletListDefinition as BulletList } from './types/list';
|
5 | import { HeadingDefinition as Heading } from './heading';
|
6 | import { BlockCardDefinition as BlockCard } from './block-card';
|
7 | export declare enum PanelType {
|
8 | INFO = "info",
|
9 | NOTE = "note",
|
10 | TIP = "tip",
|
11 | WARNING = "warning",
|
12 | ERROR = "error",
|
13 | SUCCESS = "success",
|
14 | CUSTOM = "custom"
|
15 | }
|
16 | export interface PanelAttributes {
|
17 | panelType: PanelType;
|
18 | panelIcon?: string;
|
19 | panelIconId?: string;
|
20 | panelIconText?: string;
|
21 | panelColor?: string;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | export interface PanelDefinition {
|
27 | type: 'panel';
|
28 | attrs: PanelAttributes;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard>;
|
34 | }
|
35 | export interface DOMAttributes {
|
36 | [propName: string]: string;
|
37 | }
|
38 | export declare const panel: (allowCustomPanel: boolean) => NodeSpec;
|