@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
18 lines • 583 B
JavaScript
import { adfNode } from '@atlaskit/adf-schema-generator';
import { breakout } from '../marks/breakout';
import { unsupportedMark } from '../marks/unsupportedMark';
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
export var rule = 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, unsupportedMark, unsupportedNodeAttribute]
});