import { Node_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
const isInsideList = (state) => {
  let listNode = false;
  const { from, to } = state.selection;
  state.doc.nodesBetween(from, to, (node) => {
    if (node.attrs.id && [Node_Type.ORDERED_LIST, Node_Type.BULLETED_LIST, Node_Type.CHECKBOX_LIST].includes(
      node.type.name
    )) {
      listNode = true;
    }
  });
  return listNode;
};
export {
  isInsideList
};
//# sourceMappingURL=is-inside-list.js.map
