@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
12 lines (11 loc) • 585 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 const extendedPanelC1 = allowCustomPanel => panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel));