var _nodes;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Schema } from 'prosemirror-model';
import BlockquoteNodeSpec from './BlockquoteNodeSpec.js';
import BookmarkNodeSpec from './BookmarkNodeSpec.js';
import BulletListNodeSpec from './BulletListNodeSpec.js';
import DocNodeSpec from './DocNodeSpec.js';
import HardBreakNodeSpec from './HardBreakNodeSpec.js';
import HorizontalRuleNodeSpec from './HorizontalRuleNodeSpec.js';
import ListItemNodeSpec from './ListItemNodeSpec.js';
import * as NodeNames from './NodeNames.js';
import OrderedListNodeSpec from './OrderedListNodeSpec.js';
import ParagraphNodeSpec from './ParagraphNodeSpec.js';
import TableNodesSpecs from './TableNodesSpecs.js';
import TextNodeSpec from './TextNodeSpec.js';
var BLOCKQUOTE = NodeNames.BLOCKQUOTE,
  BOOKMARK = NodeNames.BOOKMARK,
  BULLET_LIST = NodeNames.BULLET_LIST,
  DOC = NodeNames.DOC,
  HARD_BREAK = NodeNames.HARD_BREAK,
  HEADING = NodeNames.HEADING,
  HORIZONTAL_RULE = NodeNames.HORIZONTAL_RULE,
  LIST_ITEM = NodeNames.LIST_ITEM,
  ORDERED_LIST = NodeNames.ORDERED_LIST,
  PARAGRAPH = NodeNames.PARAGRAPH,
  TEXT = NodeNames.TEXT;

// https://github.com/ProseMirror/prosemirror-schema-basic/blob/master/src/schema-basic.js

// !! Be careful with the order of these nodes, which may effect the parsing
// outcome.!!
// [FS-SEA][06-04-2023]
// Changed HeadingNodeSpec to ParagraphNodeSpec for HEADING to handle Header as a paragraph
var nodes = (_nodes = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_nodes, DOC, DocNodeSpec), PARAGRAPH, ParagraphNodeSpec), BLOCKQUOTE, BlockquoteNodeSpec), HORIZONTAL_RULE, HorizontalRuleNodeSpec), HEADING, ParagraphNodeSpec), TEXT, TextNodeSpec), HARD_BREAK, HardBreakNodeSpec), BULLET_LIST, BulletListNodeSpec), ORDERED_LIST, OrderedListNodeSpec), LIST_ITEM, ListItemNodeSpec), _defineProperty(_nodes, BOOKMARK, BookmarkNodeSpec));
var marks = {};
var schema = new Schema({
  nodes: nodes,
  marks: marks
});
var EditorNodes = schema.spec.nodes.append(TableNodesSpecs);
export default EditorNodes;