@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
45 lines (44 loc) • 2.19 kB
TypeScript
import { BreakoutMarkDefinition } from '../marks';
import { ExpandDefinition as Expand } from './expand';
import { PanelDefinition as Panel } from './panel';
import { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from './paragraph';
import { BlockQuoteDefinition as Blockquote } from './blockquote';
import { OrderedListDefinition as OrderedList } from './types/list';
import { BulletListDefinition as BulletList } from './types/list';
import { RuleDefinition as Rule } from './rule';
import { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
import { CodeBlockDefinition as CodeBlock } from './code-block';
import { MediaGroupDefinition as MediaGroup } from './media-group';
import { MediaSingleDefinition as MediaSingle } from './media-single';
import { DecisionListDefinition as DecisionList } from './decision-list';
import { TaskListDefinition as TaskList } from './task-list';
import { TableDefinition as Table } from './tableNodes';
import { BlockCardDefinition as BlockCard } from './block-card';
import { EmbedCardDefinition as EmbedCard } from './embed-card';
import { LayoutSectionDefinition as LayoutSection } from './layout-section';
export interface BodiedSyncBlockAttrs {
/**
* The ID of the resource to be synchronized.
*/
resourceId: string;
/**
* Required UUID attribute used for unique identification of the node
*/
localId: string;
}
/**
* Represents a block node that is designed to be synchronized
* with an external resource across different products.
* @name bodiedSyncBlock_node
*/
export interface BodiedSyncBlockDefinition {
type: 'bodiedSyncBlock';
marks?: Array<BreakoutMarkDefinition>;
attrs: BodiedSyncBlockAttrs;
/**
* @minItems 1
* @allowUnsupportedBlock true
*/
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Rule | Table | TaskList>;
}
export declare const bodiedSyncBlock: import("prosemirror-model").NodeSpec;