UNPKG

@atlaskit/adf-schema

Version:

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

39 lines (38 loc) • 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.emoji = 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 emoji = exports.emoji = (0, _adfNode.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 }, localId: { type: 'string', default: null, optional: true } }, stage0: { marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation] } });