UNPKG

@atlaskit/adf-schema

Version:

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

27 lines (26 loc) • 836 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.annotationGroup = exports.annotation = void 0; var _adfMark = require("@atlaskit/adf-schema-generator/adfMark"); var _adfMarkGroup = require("@atlaskit/adf-schema-generator/adfMarkGroup"); var _ADFMarkSpec = require("@atlaskit/adf-schema-generator/types/ADFMarkSpec"); var annotation = exports.annotation = (0, _adfMark.adfMark)('annotation'); var annotationGroup = exports.annotationGroup = (0, _adfMarkGroup.adfMarkGroup)('annotation', [annotation]); annotation.define({ inclusive: true, excludes: _ADFMarkSpec.MarkExcludesNone, group: annotationGroup, attrs: { id: { type: 'string', default: '' }, annotationType: { type: 'enum', values: ['inlineComment'], default: 'inlineComment' } } });