"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var text_color_editor_exports = {};
__export(text_color_editor_exports, {
  pluginTextColor: () => pluginTextColor
});
module.exports = __toCommonJS(text_color_editor_exports);
var import_color_converter = require("./color-converter.js");
var import_get_text_color_text_buttons = require("./get-text-color-text-buttons.js");
var import_tiptap_foreground = require("./tiptap-foreground.js");
var import_types = require("./types.js");
const pluginTextColor = (config = {}) => {
  return {
    config: { ...config, type: "textColor" },
    pmMarkConverters: [import_color_converter.textColorConverter],
    pmNodeConverters: [],
    type: import_types.TEXT_COLOR_TYPE,
    textButtons: (0, import_get_text_color_text_buttons.getTextColorTextButtons)(config),
    tiptapExtensions: [import_tiptap_foreground.tiptapColorForegroundExtension]
  };
};
//# sourceMappingURL=text-color-editor.js.map
