@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
11 lines (10 loc) • 493 B
JavaScript
import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
import { createPanelNodeSpecOptions } from './create-panel-node-spec-options';
/**
* @name extended_panel
*
* it allows more content to be nested as compared to panel node.
* Specifically, it allows Media, action, code-block, rule and decision nodes in
* addition to content allowed inside panel
*/
export const extendedPanel = allowCustomPanel => panelFactory(createPanelNodeSpecOptions(allowCustomPanel));