@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
40 lines (39 loc) • 1.1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.status = void 0;
var _adfNode = require("@atlaskit/adf-schema-generator/adfNode");
var _annotation = require("../marks/annotation");
var _unsupportedMark = require("../marks/unsupportedMark");
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
var status = exports.status = (0, _adfNode.adfNode)('status').define({
inline: true,
selectable: true,
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
attrs: {
text: {
minLength: 1,
type: 'string',
default: ''
},
color: {
type: 'string',
pattern: '^(neutral|purple|blue|red|yellow|green|#[0-9a-fA-F]{6})$',
default: ''
},
localId: {
type: 'string',
optional: true,
default: ''
},
style: {
type: 'string',
optional: true,
default: ''
}
},
stage0: {
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation]
}
});