"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isListNodeValidContent = isListNodeValidContent;
var _model = require("@atlaskit/editor-prosemirror/model");
var _utils = require("../utils");
function isListNodeValidContent(node) {
  var bulletList = node.type.schema.nodes.bulletList;
  if (!bulletList) {
    return false;
  }
  var listFragment = _model.Fragment.from(bulletList.createAndFill());
  return !(0, _utils.isListItemNode)(node) && node.type.validContent(listFragment);
}