UNPKG

@atlaskit/adf-schema

Version:

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

21 lines • 631 B
import { adfMark } from '@atlaskit/adf-schema-generator/adfMark'; import { adfMarkGroup } from '@atlaskit/adf-schema-generator/adfMarkGroup'; import { MarkExcludesNone } from '@atlaskit/adf-schema-generator/types/ADFMarkSpec'; export const annotation = adfMark('annotation'); export const annotationGroup = adfMarkGroup('annotation', [annotation]); annotation.define({ inclusive: true, excludes: MarkExcludesNone, group: annotationGroup, attrs: { id: { type: 'string', default: '' }, annotationType: { type: 'enum', values: ['inlineComment'], default: 'inlineComment' } } });