@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
34 lines (33 loc) • 953 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.emoji = void 0;
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
var _annotation = require("../marks/annotation");
var _unsupportedMark = require("../marks/unsupportedMark");
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
var emoji = exports.emoji = (0, _adfSchemaGenerator.adfNode)('emoji').define({
inline: true,
selectable: true,
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
attrs: {
shortName: {
type: 'string',
default: ''
},
id: {
type: 'string',
default: '',
optional: true
},
text: {
type: 'string',
default: '',
optional: true
}
},
stage0: {
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation]
}
});