@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
20 lines (19 loc) • 565 B
TypeScript
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
import type { BreakoutMarkDefinition } from '../marks';
import type { MarksObject } from './types/mark';
/**
* @name rule_node
*/
export interface RuleDefinition {
attrs?: {
localId?: string;
};
type: 'rule';
}
/**
* @name rule_root_only_node
*/
export type RuleRootOnlyDefinition = RuleDefinition & MarksObject<BreakoutMarkDefinition>;
export declare const rule: NodeSpec;
export declare const ruleWithLocalId: NodeSpec;
export declare const ruleRootOnlyStage0: NodeSpec;