@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
25 lines (24 loc) • 707 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.annotationGroup = exports.annotation = void 0;
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
var annotation = exports.annotation = (0, _adfSchemaGenerator.adfMark)('annotation');
var annotationGroup = exports.annotationGroup = (0, _adfSchemaGenerator.adfMarkGroup)('annotation', [annotation]);
annotation.define({
inclusive: true,
excludes: _adfSchemaGenerator.MarkExcludesNone,
group: annotationGroup,
attrs: {
id: {
type: 'string',
default: ''
},
annotationType: {
type: 'enum',
values: ['inlineComment'],
default: 'inlineComment'
}
}
});
;