var o = Object.defineProperty;
var s = (i, e, t) => e in i ? o(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
var r = (i, e, t) => s(i, typeof e != "symbol" ? e + "" : e, t);
import { createPluginFactory as m } from "@udecode/plate-core";
import { createListPlugin as n } from "@udecode/plate-list";
import { Plugin as a } from "../Plugin.es.js";
import { ListItemContentMarkupElement as f } from "./ListItemContentMarkupElement.es.js";
import { ListItemMarkupElement as l } from "./ListItemMarkupElement.es.js";
import { LIST_PLUGIN as u } from "./id.es.js";
import { withList as c } from "./withList.es.js";
const L = "textStyle", k = m({
  key: L,
  isLeaf: !0
});
class y extends a {
  constructor(t) {
    super(u, {
      leafMarkupElements: [new f(), new l()],
      ...t
    });
    r(this, "isSoftBreak");
    this.isSoftBreak = (t == null ? void 0 : t.isSoftBreak) ?? !1;
  }
  plugins() {
    return [
      n({
        withOverrides: c,
        options: {
          isSoftBreak: this.isSoftBreak
        }
      }),
      k()
    ];
  }
}
export {
  y as ListPlugin,
  L as MARK_TEXT_STYLE,
  k as createLicStylePlugin
};
//# sourceMappingURL=ListPlugin.es.js.map
