import { PmNodeType } from "./../../../_shared/pm-node-types.js";
const NAME = "isListItem";
const isListItemFn = ({ editorQuery }) => () => {
  const { doc } = editorQuery.selection();
  let hasDescendantListItem = false;
  doc.descendants((node) => {
    if (node.type() === PmNodeType.LIST_ITEM) {
      hasDescendantListItem = true;
      return false;
    }
    return true;
  });
  return hasDescendantListItem;
};
const isListItem = { NAME, query: isListItemFn };
export {
  isListItem
};
//# sourceMappingURL=is-list-item.js.map
