const includesGroup = (groups, groupName) => {
  return groups.some(
    (group) => group === groupName || typeof group === "object" && group?.group === groupName
  );
};
const Mark_Type = {
  ANCHOR: "ANCHOR",
  BOLD: "BOLD",
  COLOR_BACKGROUND: "COLOR_BACKGROUND",
  COLOR_FOREGROUND: "COLOR_FOREGROUND",
  EXTERNAL: "EXTERNAL",
  FONT_SIZE: "FONT_SIZE",
  HASHTAG: "HASHTAG",
  ITALIC: "ITALIC",
  LINK: "LINK",
  MENTION: "MENTION",
  SPOILER: "SPOILER",
  UNDERLINE: "UNDERLINE",
  UNRECOGNIZED: "UNRECOGNIZED",
  STRIKETHROUGH: "STRIKETHROUGH",
  SUPERSCRIPT: "SUPERSCRIPT",
  SUBSCRIPT: "SUBSCRIPT",
  FONT_FAMILY: "FONT_FAMILY",
  SKETCH: "SKETCH"
};
const isRicosNodeExtension = (ext) => ext.type === "react-node" || ext.type === "html-node";
const isRicosMarkExtension = (ext) => ext.type === "mark";
const isRicosFunctionalExtension = (ext) => ext.type === "extension";
export {
  Mark_Type,
  includesGroup,
  isRicosFunctionalExtension,
  isRicosMarkExtension,
  isRicosNodeExtension
};
//# sourceMappingURL=tiptap.js.map
