UNPKG

@atlaskit/adf-schema

Version:

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

13 lines (12 loc) 526 B
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 var extendedPanel = function extendedPanel(allowCustomPanel) { return panelFactory(createPanelNodeSpecOptions(allowCustomPanel)); };