import { insertBreakList as a, deleteBackwardList as F, deleteForwardList as i, deleteFragmentList as k, insertFragmentList as w, normalizeList as B } from "@udecode/plate-list";
const c = (e, { options: { validLiChildrenTypes: n, isSoftBreak: s } }) => {
  const { insertBreak: t, deleteBackward: l, deleteForward: m, deleteFragment: f } = e;
  return s ? e.insertSoftBreak = () => {
    a(e) || t();
  } : e.insertBreak = () => {
    a(e) || t();
  }, e.deleteBackward = (r) => {
    F(e, r) || l(r);
  }, e.deleteForward = (r) => {
    i(e, () => {
    }, r) || m(r);
  }, e.deleteFragment = (r) => {
    k(e) || f(r);
  }, e.insertFragment = w(e), e.normalizeNode = B(e, { validLiChildrenTypes: n }), e;
};
export {
  c as withList
};
//# sourceMappingURL=withList.es.js.map
