UNPKG

@atlaskit/adf-schema

Version:

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

24 lines (23 loc) 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rule = void 0; var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator"); var _breakout = require("../marks/breakout"); var _unsupportedMark = require("../marks/unsupportedMark"); var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute"); var rule = exports.rule = (0, _adfSchemaGenerator.adfNode)('rule').define({ attrs: { localId: { type: 'string', default: null, optional: true } } }) // this variant is used to support breakout resizing for rule nodes at the document root .variant('root_only', { stage0: true, marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute] });