@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
17 lines • 604 B
JavaScript
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
import { unsupportedMark } from '../marks/unsupportedMark';
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
import { decisionItem } from './decisionItem';
import { unsupportedBlock } from './unsupportedBlock';
export var decisionList = adfNode('decisionList').define({
defining: true,
selectable: false,
marks: [unsupportedMark, unsupportedNodeAttribute],
attrs: {
localId: {
type: 'string',
default: ''
}
},
content: [$onePlus($or(decisionItem, unsupportedBlock))]
});