@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
21 lines • 627 B
JavaScript
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 var annotation = adfMark('annotation');
export var annotationGroup = adfMarkGroup('annotation', [annotation]);
annotation.define({
inclusive: true,
excludes: MarkExcludesNone,
group: annotationGroup,
attrs: {
id: {
type: 'string',
default: ''
},
annotationType: {
type: 'enum',
values: ['inlineComment'],
default: 'inlineComment'
}
}
});