UNPKG

@atlaskit/adf-schema

Version:

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

30 lines (29 loc) 895 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.date = 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 date = exports.date = (0, _adfSchemaGenerator.adfNode)('date').define({ inline: true, selectable: true, marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark], attrs: { timestamp: { minLength: 1, type: 'string', default: '' }, localId: { type: 'string', default: null, optional: true } }, stage0: { marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark, _annotation.annotation] } });