@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
31 lines (30 loc) • 832 B
TypeScript
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
import type { AnnotationMarkDefinition } from '../marks/annotation';
/**
* @name status_node
*/
export interface StatusDefinition {
attrs: {
/**
* @pattern "^(neutral|purple|blue|red|yellow|green|#[0-9a-fA-F]{6})$"
*/
color: string;
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;