@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
28 lines (27 loc) • 890 B
TypeScript
import { NodeSpec } from 'prosemirror-model';
import { NoMark } from './types/mark';
import { ParagraphDefinition as Paragraph } from './paragraph';
import { HeadingDefinition as Heading } from './heading';
import { MediaSingleDefinition as MediaSingle } from './media-single';
import { MediaGroupDefinition as MediaGroup } from './media-group';
/**
* @name nestedExpand_content
* @minItems 1
* @allowUnsupportedBlock true
*/
export declare type NestedExpandContent = Array<Paragraph | Heading | MediaSingle | MediaGroup>;
/**
* @name nestedExpand_node
*/
export interface NestedExpandBaseDefinition {
type: 'nestedExpand';
attrs: {
title?: string;
};
content: NestedExpandContent;
}
/**
* @name nestedExpand_with_no_marks_node
*/
export declare type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
export declare const nestedExpand: NodeSpec;