import { createUnderlinePlugin as r } from "@udecode/plate-basic-marks";
import { Plugin as n } from "../../Plugin.es.js";
import { UnderlineButton as t } from "./UnderlineButton.es.js";
import { UnderlineMarkupElement as o, UNDERLINE_CLASSES as l } from "./UnderlineMarkupElement.es.js";
import { UnderlineMarkupElementNode as L } from "./UnderlineMarkupElement.es.js";
import { UNDERLINE_PLUGIN as i } from "./id.es.js";
const m = [
  {
    validNodeName: ["U"]
  },
  {
    validStyle: {
      textDecoration: ["underline"]
    }
  }
];
class E extends n {
  constructor(e) {
    super(i, {
      button: t,
      markupElement: new o(),
      ...e
    });
  }
  plugins() {
    return [
      r({
        deserializeHtml: {
          rules: [...m, { validNodeName: ["SPAN"], validClassName: l }]
        },
        options: {
          hotkey: ["mod+u", "ctrl+u"]
        }
      })
    ];
  }
}
export {
  l as UNDERLINE_CLASSES,
  o as UnderlineMarkupElement,
  L as UnderlineMarkupElementNode,
  E as UnderlinePlugin
};
//# sourceMappingURL=index.es.js.map
