UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

41 lines (40 loc) 1.73 kB
import type { NoMark } from './types/mark'; import type { ParagraphDefinition as Paragraph } from './paragraph'; import type { HeadingDefinition as Heading } from './heading'; import type { MediaSingleDefinition as MediaSingle } from './media-single'; import type { MediaGroupDefinition as MediaGroup } from './media-group'; import type { CodeBlockDefinition as CodeBlock } from './code-block'; import type { BulletListDefinition as BulletList, OrderedListDefinition as OrderedList } from './types/list'; import type { TaskListDefinition as TaskList } from './task-list'; import type { DecisionListDefinition as DecisionList } from './decision-list'; import type { RuleDefinition as Rule } from './rule'; import type { PanelDefinition as Panel } from './panel'; import type { BlockQuoteDefinition as BlockQuote } from './blockquote'; /** * @name nestedExpand_content * @minItems 1 * @allowUnsupportedBlock true */ export type NestedExpandContent = Array<Paragraph | Heading | MediaSingle | MediaGroup | CodeBlock | BulletList | OrderedList | TaskList | DecisionList | Rule | Panel | BlockQuote>; /** * @name nestedExpand_node */ export interface NestedExpandBaseDefinition { attrs: { __expanded?: boolean; localId?: string; title?: string; }; content: NestedExpandContent; type: 'nestedExpand'; } /** * @name nestedExpand_with_no_marks_node */ export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark; /** * @name nestedExpand * @description an expand that can be nested (eg. inside table, layout). */ export declare const nestedExpand: import("prosemirror-model").NodeSpec; export declare const nestedExpandWithLocalId: import("prosemirror-model").NodeSpec;