import { SpoilerEditorWrapper } from "./Components/Wrappers/spoiler-editor-wrapper.js";
import { DEFAULTS } from "./defaults.js";
import { getTextButtons } from "./get-text-buttons.js";
import { spoilerConverter } from "./spoiler-converter.js";
import { tiptapExtensions } from "./tiptap/tiptap.js";
import { SPOILER_TYPE } from "./types.js";
const pluginSpoiler = (config) => {
  const pluginConfig = {
    type: "spoiler",
    ...DEFAULTS.config,
    SpoilerEditorWrapper,
    ...config
  };
  return {
    config: pluginConfig,
    pmNodeConverters: [],
    pmMarkConverters: [spoilerConverter],
    type: SPOILER_TYPE,
    tiptapExtensions,
    textButtons: getTextButtons()
  };
};
export {
  SpoilerEditorWrapper,
  pluginSpoiler
};
//# sourceMappingURL=editor.js.map

import { injectCss } from "./viewer-styles-inject.js";
injectCss();
