UNPKG

@atlaskit/adf-schema

Version:

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

14 lines • 668 B
import { $onePlus } from '@atlaskit/adf-schema-generator/$onePlus'; import { $or } from '@atlaskit/adf-schema-generator/$or'; import { adfNode } from '@atlaskit/adf-schema-generator/adfNode'; import { unsupportedMark } from '../marks/unsupportedMark'; import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute'; import { media } from './media'; import { unsupportedBlock } from './unsupportedBlock'; export const mediaGroup = adfNode('mediaGroup').define({ selectable: false, marks: [unsupportedMark, unsupportedNodeAttribute], // Need to be empty object to match old PM Spec attrs: {}, content: [$onePlus($or(media, unsupportedBlock))] });