UNPKG

890 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2import { NoMark } from './types/mark';
3import { ParagraphDefinition as Paragraph } from './paragraph';
4import { HeadingDefinition as Heading } from './heading';
5import { MediaSingleDefinition as MediaSingle } from './media-single';
6import { MediaGroupDefinition as MediaGroup } from './media-group';
7/**
8 * @name nestedExpand_content
9 * @minItems 1
10 * @allowUnsupportedBlock true
11 */
12export declare type NestedExpandContent = Array<Paragraph | Heading | MediaSingle | MediaGroup>;
13/**
14 * @name nestedExpand_node
15 */
16export interface NestedExpandBaseDefinition {
17 type: 'nestedExpand';
18 attrs: {
19 title?: string;
20 };
21 content: NestedExpandContent;
22}
23/**
24 * @name nestedExpand_with_no_marks_node
25 */
26export declare type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
27export declare const nestedExpand: NodeSpec;