@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
34 lines (33 loc) • 852 B
TypeScript
import { Inline } from './types/inline-content';
import { ParagraphDefinition as Paragraph } from './paragraph';
import { ExtensionDefinition as Extension } from './extension';
/**
* @name taskItem_node
*/
export interface TaskItemDefinition {
type: 'taskItem';
/**
* @allowUnsupportedInline true
*/
content?: Array<Inline>;
attrs: {
localId: string;
state: 'TODO' | 'DONE';
};
}
/**
* @name blockTaskItem_node
*/
export interface BlockTaskItemDefinition {
type: 'blockTaskItem';
/**
* @allowUnsupportedInline true
*/
content?: Array<Paragraph | Extension>;
attrs: {
localId: string;
state: 'TODO' | 'DONE';
};
}
export declare const taskItem: import("prosemirror-model").NodeSpec;
export declare const blockTaskItem: import("prosemirror-model").NodeSpec;