@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
14 lines (13 loc) • 620 B
JavaScript
import { panelC1Stage0 as panelC1Factory } from '../../next-schema/generated/nodeTypes';
import { createPanelNodeSpecOptions } from './create-panel-node-spec-options';
/**
* @name extended_panel_c1
*
* Depth-level-1 variant of panel. Allows all standard panel content
* plus table nodes. Derives its parseDOM/toDOM behaviour from the same
* createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
* and generateLocalId propagate identically.
*/
export var extendedPanelC1 = function extendedPanelC1(allowCustomPanel) {
return panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel));
};