@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
18 lines (17 loc) • 684 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.extendedPanel = void 0;
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
var _createPanelNodeSpecOptions = require("./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
*/
var extendedPanel = exports.extendedPanel = function extendedPanel(allowCustomPanel) {
return (0, _nodeTypes.panel)((0, _createPanelNodeSpecOptions.createPanelNodeSpecOptions)(allowCustomPanel));
};