UNPKG

@atlaskit/adf-schema

Version:

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

36 lines (35 loc) 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator"); var _blockGroup = require("./groups/blockGroup"); var _layoutSection = require("./nodes/layoutSection"); var _blockRootOnlyGroup = require("./groups/blockRootOnlyGroup"); var _blockContentGroup = require("./groups/blockContentGroup"); var _expand = require("./nodes/expand"); var _codeBlock = require("./nodes/codeBlock"); var _syncBlock = require("./nodes/syncBlock"); var _bodiedSyncBlock = require("./nodes/bodiedSyncBlock"); var _panel = require("./nodes/panel"); var _rule = require("./nodes/rule"); var _tableNodes = require("./nodes/tableNodes"); // Wire cross-container content after all node modules are fully evaluated, // so neither import is undefined when the $or() expression is constructed. _panel.panel.use('c1').addContent(_tableNodes.table); _panel.panel.use('c1_root_only').addContent(_tableNodes.table); var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({ root: true, version: 1, content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _panel.panel.use('root_only'), _rule.rule.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('root_only'), _syncBlock.syncBlock, _bodiedSyncBlock.bodiedSyncBlock))], DANGEROUS_MANUAL_OVERRIDE: { 'validator-spec': { 'props.content.minItems': { remove: true, reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema." } } } }); var _default = exports.default = doc;