import { createStrikethroughPlugin as t } from "@udecode/plate-basic-marks";
import { Plugin as e } from "../../Plugin.es.js";
import { StrikethroughButton as o } from "./StrikethroughButton.es.js";
import { StrikethroughMarkupElement as i, STRIKETHROUGH_CLASSES as m } from "./StrikethroughMarkupElement.es.js";
import { StrikethroughMarkupElementNode as k } from "./StrikethroughMarkupElement.es.js";
import { STRIKETHROUGH_PLUGIN as u } from "./id.es.js";
class g extends e {
  constructor(r) {
    super(u, {
      button: o,
      markupElement: new i(),
      ...r
    });
  }
  plugins() {
    return [
      t({
        deserializeHtml: {
          rules: [
            {
              validNodeName: ["S", "DEL", "STRIKE"]
            },
            {
              validStyle: {
                textDecoration: ["line-through"]
              }
            },
            {
              validNodeName: ["SPAN"],
              validClassName: m
            }
          ]
        }
      })
    ];
  }
}
export {
  m as STRIKETHROUGH_CLASSES,
  i as StrikethroughMarkupElement,
  k as StrikethroughMarkupElementNode,
  g as StrikethroughPlugin
};
//# sourceMappingURL=index.es.js.map
