UNPKG

@atlaskit/adf-schema

Version:

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

34 lines (33 loc) 867 B
import type { Inline } from './types/inline-content'; import type { ParagraphDefinition as Paragraph } from './paragraph'; import type { ExtensionDefinition as Extension } from './extension'; /** * @name taskItem_node */ export interface TaskItemDefinition { attrs: { localId: string; state: 'TODO' | 'DONE'; }; /** * @allowUnsupportedInline true */ content?: Array<Inline>; type: 'taskItem'; } /** * @name blockTaskItem_node */ export interface BlockTaskItemDefinition { attrs: { localId: string; state: 'TODO' | 'DONE'; }; /** * @allowUnsupportedInline true */ content?: Array<Paragraph | Extension>; type: 'blockTaskItem'; } export declare const taskItem: import("prosemirror-model").NodeSpec; export declare const blockTaskItem: import("prosemirror-model").NodeSpec;