@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
28 lines (27 loc) • 781 B
TypeScript
import type { AnnotationMarkDefinition } from '../marks/annotation';
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
/**
* @name status_node
*/
export interface StatusDefinition {
attrs: {
color: 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
localId?: string;
/**
* Supported values are bold, subtle, and mixedCase
*/
style?: string;
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @minLength 1
*/
text: string;
};
/**
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
* @stage 0
*/
marks?: Array<AnnotationMarkDefinition>;
type: 'status';
}
export declare const status: NodeSpec;