reactjs-tiptap-editor-pro 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty;var T=(e,t,o)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var a=(e,t,o)=>T(e,typeof t!="symbol"?t+"":t,o);const n=require("react"),p=require("./vendor-CRmKyn1B.cjs"),F="en",A=200,C=A-80,E=20,x=1e5,v=16,z=10,L=10,D=2,S=["#000000","#262626","#595959","#8C8C8C","#BFBFBF","#D9D9D9","#E9E9E9","#F5F5F5","#FAFAFA","#FFFFFF","#F5222D","#FA541C","#FA8C16","#FADB14","#52C41A","#13C2C2","#1890FF","#2F54EB","#722ED1","#EB2F96","#FFE8E6","#FFECE0","#FFEFD1","#FCFCCA","#E4F7D2","#D3F5F0","#D4EEFC","#DEE8FC","#EFE1FA","#FAE1EB","#FFA39E","#FFBB96","#FFD591","#FFFB8F","#B7EB8F","#87E8DE","#91D5FF","#ADC6FF","#D3ADF7","#FFADD2","#FF4D4F","#FF7A45","#FFA940","#FFEC3D","#73D13D","#36CFC9","#40A9FF","#597EF7","#9254DE","#F759AB","#CF1322","#D4380D","#D46B08","#D4B106","#389E0D","#08979C","#096DD9","#1D39C4","#531DAB","#C41D7F","#820014","#871400","#873800","#614700","#135200","#00474F","#003A8C","#061178","#22075E","#780650"],y=["Inter","Comic Sans MS, Comic Sans","serif","cursive","Arial","Arial Black","Georgia","Impact","Tahoma","Times New Roman","Verdana","Courier New","Lucida Console","Monaco","monospace"],I=["html","css","js","ts","bash"],B={html:"HTML",css:"CSS",js:"JavaScript",ts:"TypeScript",bash:"Bash"},w=["10px","11px","12px","14px","16px","18px","20px","22px","24px","26px","28px","36px","48px","72px"],R="default";var s=(e=>(e[e["size-small"]=200]="size-small",e[e["size-medium"]=500]="size-medium",e["size-large"]="100%",e))(s||{}),m=(e=>(e[e["size-small"]=480]="size-small",e[e["size-medium"]=640]="size-medium",e["size-large"]="100%",e))(m||{});const U=["100%","115%","150%","200%","250%","300%"],W="1",M=["bold","italic","underline","strike","code","link","divider","color","highlight","textAlign"],g={"editor.remove":"Remove","editor.copy":"Copy","editor.words":"WORDS","editor.characters":"CHARACTERS","editor.default":"Default","editor.recent":"Recently Used","editor.nofill":"No Fill","editor.format":"Format Painter","editor.delete":"Delete","editor.edit":"Edit","editor.settings":"Settings","editor.table_of_content":"Table of Content","editor.draghandle.tooltip":"Modify","editor.copyToClipboard":"CopyToClipboard","editor.slash":"Press '/' for commands","editor.slash.empty":"No Result","editor.slash.format":"Format","editor.slash.insert":"Insert","editor.slash.embed":"Embed Services","editor.content":"Please input content","editor.fontFamily.tooltip":"Font Family","editor.fontFamily.default.tooltip":"Default","editor.moremark":"More Text Styles","editor.size.small.tooltip":"Small","editor.size.medium.tooltip":"Medium","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Bold","editor.italic.tooltip":"Italic","editor.underline.tooltip":"Underline","editor.strike.tooltip":"Strike","editor.color.tooltip":"Color","editor.color.more":"More Colors","editor.highlight.tooltip":"Highlight","editor.lineheight.tooltip":"Line Height","editor.heading.tooltip":"Headings","editor.heading.h1.tooltip":"Heading 1","editor.heading.h2.tooltip":"Heading 2","editor.heading.h3.tooltip":"Heading 3","editor.heading.h4.tooltip":"Heading 4","editor.heading.h5.tooltip":"Heading 5","editor.heading.h6.tooltip":"Heading 6","editor.paragraph.tooltip":"Paragraph","editor.textalign.tooltip":"Align","editor.textalign.left.tooltip":"Left","editor.textalign.center.tooltip":"Center","editor.textalign.right.tooltip":"Right","editor.textalign.justify.tooltip":"Justify","editor.indent":"Indent","editor.indent.indent":"Increase Indent","editor.indent.outdent":"Decrease Indent","editor.fontSize.tooltip":"Font size","editor.fontSize.default.tooltip":"Default","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Bullet List","editor.orderedlist.tooltip":"Ordered List","editor.tasklist.tooltip":"Task List","editor.indent.tooltip":"Indent","editor.outdent.tooltip":"Outdent","editor.columns.tooltip":"Columns","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"UnLink","editor.link.open.tooltip":"Open Link","editor.link.edit.tooltip":"Edit Link","editor.link.dialog.title":"Insert Link","editor.link.dialog.link":"Link","editor.link.dialog.text":"Text","editor.link.dialog.openInNewTab":"Open In New Tab","editor.link.dialog.link.placeholder":"Link Address","editor.link.dialog.text.placeholder":"Add Description","editor.link.dialog.button.apply":"Apply","editor.image.tooltip":"Image","editor.image.dragger.tooltip":"Click or drag the image to the area to upload","editor.image.float.left.tooltip":"Float left","editor.image.float.none.tooltip":"Float none","editor.image.float.right.tooltip":"Float right","editor.image.dialog.title":"Add an image","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Upload","editor.image.dialog.tab.uploadCrop":"Upload & Crop","editor.image.dialog.uploading":"Uploading","editor.link.dialog.inline":"Inline","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Lock original aspect ratio","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"Apply","editor.video.tooltip":"Video","editor.video.dialog.tab.upload":"Upload","editor.video.dialog.uploading":"Uploading","editor.video.dialog.title":"Embed or upload a video","editor.video.dialog.link":"Link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"Apply","editor.table.tooltip":"Table","editor.table.menu.insert_table":"Insert Table","editor.table.menu.insert_table.with_header_row":"With header row","editor.table.menu.add_column_before":"Add Column Before","editor.table.menu.add_column_after":"Add Column After","editor.table.menu.delete_column":"Delete Column","editor.table.menu.add_row_before":"Add Row Before","editor.table.menu.add_row_after":"Add Row After","editor.table.menu.delete_row":"Delete Row","editor.table.menu.merge_or_split_cells":"Merge Or Split Cells","editor.table.menu.delete_table":"Delete Table","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Horizontal Rule","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code Block","editor.clear.tooltip":"Clear Format","editor.undo.tooltip":"Undo","editor.redo.tooltip":"Redo","editor.fullscreen.tooltip.fullscreen":"Fullscreen","editor.fullscreen.tooltip.exit":"Fullscreen Exit","editor.imageUpload.cancel":"Cancel","editor.imageUpload.crop":"Crop","editor.imageUpload.fileTypeNotSupported":"File type not supported","editor.imageUpload.fileSizeTooBig":"File size too big, Maximum size is","editor.table.menu.insertColumnBefore":"Insert Column Before","editor.table.menu.insertColumnAfter":"Insert Column After","editor.table.menu.deleteColumn":"Delete Column","editor.table.menu.insertRowAbove":"Insert Row Above","editor.table.menu.insertRowBelow":"Insert Row Below","editor.table.menu.deleteRow":"Delete Row","editor.table.menu.mergeCells":"Merge Cells","editor.table.menu.splitCells":"Split Cells","editor.table.menu.deleteTable":"Delete Table","editor.table.menu.setCellsBgColor":"Cell Background Color","editor.emoji.tooltip":"Emoji","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Search and Replace","editor.search.dialog.text":"Search","editor.replace.dialog.text":"Replace","editor.replaceAll.dialog.text":"Replace All","editor.previous.dialog.text":"Previous","editor.next.dialog.text":"Next",no_result_found:"No results found","Smileys & People":"Smileys & People","Animals & Nature":"Animals & Nature","Food & Drink":"Food & Drink",Activity:"Activity","Travel & Places":"Travel & Places",Object:"Objects",Symbol:"Symbols",Flags:"Flags","Frequently used":"Frequently used","editor.formula.dialog.text":"Formula","editor.katex.tooltip":"Math Formula","editor.exportPdf.tooltip":"Export PDF","editor.exportWord.tooltip":"Export Word","editor.importWord.tooltip":"Import Word","editor.importWord.limitSize":"File size cannot exceed","editor.importWord.converting":"Converting Word document, please wait...","editor.importWord.convertError":"Error parsing Word document","editor.importWord.importError":"Error importing Word document","editor.textDirection.tooltip":"Text Direction","editor.textDirection.auto.tooltip":"Auto","editor.textDirection.ltr.tooltip":"Left to Right","editor.textDirection.rtl.tooltip":"Right to Left","editor.attachment.tooltip":"Attachment","editor.attachment.uploading":"Uploading","editor.attachment.please_upload":"Please upload the file","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Case Sensitive","editor.mermaid.tooltip":"Mermaid","editor.twitter.tooltip":"Twitter","editor.tooltip.flipX":"Flip Horizontal","editor.tooltip.flipY":"Flip Vertical"},u={"editor.remove":"Remover","editor.copy":"Copiar","editor.words":"PALAVRAS","editor.characters":"CARACTERES","editor.default":"Padrão","editor.recent":"Usado recentemente","editor.nofill":"Sem preenchimento","editor.format":"Format Painter","editor.delete":"Deletar","editor.edit":"Editar","editor.settings":"Configurações","editor.table_of_content":"Tabela de conteúdos","editor.draghandle.tooltip":"Modificar","editor.copyToClipboard":"Copiar para a área de transferência","editor.slash":"Pressione '/' para comandos","editor.slash.empty":"Nenhum resultado","editor.slash.format":"Formato","editor.slash.insert":"Inserir","editor.slash.embed":"Incorporar serviços","editor.content":"Por favor, insira o conteúdo","editor.fontFamily.tooltip":"Fonte","editor.fontFamily.default.tooltip":"Padrão","editor.moremark":"Mais estilos de texto","editor.size.small.tooltip":"Pequeno","editor.size.medium.tooltip":"Médio","editor.size.large.tooltip":"Grande","editor.bold.tooltip":"Negrito","editor.italic.tooltip":"Itálico","editor.underline.tooltip":"Sublinhado","editor.strike.tooltip":"Riscado","editor.color.tooltip":"Cor","editor.color.more":"Mais cores","editor.highlight.tooltip":"Destaque","editor.lineheight.tooltip":"Altura da linha","editor.heading.tooltip":"Cabeçalhos","editor.heading.h1.tooltip":"Cabeçalho 1","editor.heading.h2.tooltip":"Cabeçalho 2","editor.heading.h3.tooltip":"Cabeçalho 3","editor.heading.h4.tooltip":"Cabeçalho 4","editor.heading.h5.tooltip":"Cabeçalho 5","editor.heading.h6.tooltip":"Cabeçalho 6","editor.paragraph.tooltip":"Parágrafo","editor.textalign.tooltip":"Alinhar","editor.textalign.left.tooltip":"Esquerda","editor.textalign.center.tooltip":"Centro","editor.textalign.right.tooltip":"Direita","editor.textalign.justify.tooltip":"Justificar","editor.indent":"Recuo","editor.indent.indent":"Aumentar recuo","editor.indent.outdent":"Diminuir recuo","editor.fontSize.tooltip":"Tamanho da fonte","editor.fontSize.default.tooltip":"Padrão","editor.superscript.tooltip":"Sobrescrito","editor.subscript.tooltip":"Subscrito","editor.bulletlist.tooltip":"Lista de marcadores","editor.orderedlist.tooltip":"Lista numerada","editor.tasklist.tooltip":"Lista de tarefas","editor.indent.tooltip":"Recuo","editor.outdent.tooltip":"Diminuir recuo","editor.columns.tooltip":"Colunas","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Desvincular","editor.link.open.tooltip":"Abrir link","editor.link.edit.tooltip":"Editar link","editor.link.dialog.title":"Inserir link","editor.link.dialog.link":"Link","editor.link.dialog.text":"Texto","editor.link.dialog.openInNewTab":"Abrir em nova guia","editor.link.dialog.link.placeholder":"Endereço do link","editor.link.dialog.text.placeholder":"Texto do link","editor.link.dialog.button.apply":"Aplicar","editor.image.tooltip":"Imagem","editor.image.dragger.tooltip":"Clique ou arraste a imagem para a área de upload","editor.image.float.left.tooltip":"Flutuar à esquerda","editor.image.float.none.tooltip":"Nenhum flutuante","editor.image.float.right.tooltip":"Flutuar à direita","editor.image.dialog.title":"Adicionar uma imagem","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Enviar","editor.link.dialog.inline":"Inline","editor.image.dialog.tab.uploadCrop":"Enviar e cortar","editor.image.dialog.uploading":"Enviando","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Bloquear proporção original","editor.image.dialog.form.file":"Arquivo","editor.image.dialog.button.apply":"Aplicar","editor.video.tooltip":"Vídeo","editor.video.dialog.tab.upload":"Enviar","editor.video.dialog.uploading":"Enviando","editor.video.dialog.title":"Incorporar ou enviar um vídeo","editor.video.dialog.link":"Link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"Aplicar","editor.table.tooltip":"Tabela","editor.table.menu.insert_table":"Inserir tabela","editor.table.menu.insert_table.with_header_row":"Com linha de cabeçalho","editor.table.menu.add_column_before":"Adicionar coluna antes","editor.table.menu.add_column_after":"Adicionar coluna depois","editor.table.menu.delete_column":"Excluir coluna","editor.table.menu.add_row_before":"Adicionar linha antes","editor.table.menu.add_row_after":"Adicionar linha depois","editor.table.menu.delete_row":"Deletar linha","editor.table.menu.merge_or_split_cells":"Mesclar ou dividir células","editor.table.menu.delete_table":"Deletar tabela","editor.blockquote.tooltip":"Citação","editor.horizontalrule.tooltip":"Regra horizontal","editor.code.tooltip":"Código","editor.codeblock.tooltip":"Bloco de código","editor.clear.tooltip":"Limpar formato","editor.undo.tooltip":"Desfazer","editor.redo.tooltip":"Refazer","editor.fullscreen.tooltip.fullscreen":"Tela cheia","editor.fullscreen.tooltip.exit":"Sair da tela cheia","editor.imageUpload.cancel":"Cancelar","editor.imageUpload.crop":"Cortar","editor.imageUpload.fileTypeNotSupported":"Tipo de arquivo não suportado","editor.imageUpload.fileSizeTooBig":"Tamanho do arquivo muito grande, tamanho máximo é","editor.table.menu.insertColumnBefore":"Inserir coluna antes","editor.table.menu.insertColumnAfter":"Inserir coluna depois","editor.table.menu.deleteColumn":"Excluir coluna","editor.table.menu.insertRowAbove":"Inserir linha acima","editor.table.menu.insertRowBelow":"Inserir linha abaixo","editor.table.menu.deleteRow":"Deletar linha","editor.table.menu.mergeCells":"Mesclar células","editor.table.menu.splitCells":"Dividir células","editor.table.menu.deleteTable":"Deletar tabela","editor.table.menu.setCellsBgColor":"Cor de fundo da célula","editor.emoji.tooltip":"Emoji","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Pesquisar e substituir","editor.search.dialog.text":"Pesquisar","editor.replace.dialog.text":"Substituir","editor.replaceAll.dialog.text":"Substituir tudo","editor.previous.dialog.text":"Anterior","editor.next.dialog.text":"Próximo",no_result_found:"Nenhum resultado encontrado","Smileys & People":"Emoticons & Pessoas","Animals & Nature":"Animais & Natureza","Food & Drink":"Comida & Bebida",Activity:"Atividade","Travel & Places":"Viagem & Lugares",Object:"Objetos",Symbol:"Símbolos",Flags:"Bandeiras","Frequently used":"Frequentemente usado","editor.formula.dialog.text":"Fórmula","editor.katex.tooltip":"Fórmula matemática","editor.exportPdf.tooltip":"Exportar PDF","editor.exportWord.tooltip":"Exportar Word","editor.importWord.tooltip":"Importar Word","editor.importWord.limitSize":"O tamanho do arquivo não pode exceder","editor.importWord.converting":"Convertendo documento do Word, aguarde...","editor.importWord.convertError":"Erro ao analisar documento do Word","editor.importWord.importError":"Erro ao importar documento do Word","editor.textDirection.tooltip":"Direção do texto","editor.textDirection.auto.tooltip":"Automático","editor.textDirection.ltr.tooltip":"Esquerda para Direita","editor.textDirection.rtl.tooltip":"Direita para Esquerda","editor.attachment.tooltip":"Anexo","editor.attachment.uploading":"Enviando","editor.attachment.please_upload":"Por favor, envie o arquivo","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Sensível a maiúsculas e minúsculas","editor.mermaid.tooltip":"Mermaid","editor.twitter.tooltip":"Twitter","editor.tooltip.flipX":"Inverter Horizontal","editor.tooltip.flipY":"Inverter Vertical"},c={"editor.remove":"Xóa","editor.copy":"Sao chép","editor.words":"TỪ","editor.characters":"KÝ TỰ","editor.default":"Mặc định","editor.recent":"Đã sử dụng gần đây","editor.nofill":"Không tô","editor.format":"Format Painter","editor.delete":"Xóa","editor.edit":"Chỉnh sửa","editor.settings":"Cài đặt","editor.table_of_content":"Mục lục","editor.draghandle.tooltip":"Sửa đổi","editor.copyToClipboard":"CopyToClipboard","editor.slash":"Nhấn '/' để biết lệnh","editor.slash.empty":"Không có kết quả","editor.slash.format":"Định dạng","editor.slash.insert":"Chèn","editor.slash.embed":"Dịch vụ nhúng","editor.content":"Vui lòng nhập nội dung","editor.moremark":"Nhiều kiểu văn bản hơn","editor.size.small.tooltip":"Nhỏ","editor.fontFamily.tooltip":"Phông chữ","editor.fontFamily.default.tooltip":"Mặc định","editor.size.medium.tooltip":"Trung bình","editor.size.large.tooltip":"Lớn","editor.bold.tooltip":"Đậm","editor.italic.tooltip":"In nghiêng","editor.underline.tooltip":"Gạch chân","editor.strike.tooltip":"Gạch","editor.color.tooltip":"Màu","editor.color.more":"Nhiều màu hơn","editor.highlight.tooltip":"Đánh dấu","editor.lineheight.tooltip":"Chiều cao dòng","editor.heading.tooltip":"Tiêu đề","editor.heading.h1.tooltip":"Tiêu đề 1","editor.heading.h2.tooltip":"Tiêu đề 2","editor.heading.h3.tooltip":"Tiêu đề 3","editor.heading.h4.tooltip":"Tiêu đề 4","editor.heading.h5.tooltip":"Tiêu đề 5","editor.heading.h6.tooltip":"Tiêu đề 6","editor.paragraph.tooltip":"Đoạn văn","editor.textalign.tooltip":"Căn chỉnh","editor.textalign.left.tooltip":"Trái","editor.textalign.center.tooltip":"Giữa","editor.textalign.right.tooltip":"Phải","editor.textalign.justify.tooltip":"Căn đều","editor.indent":"Thụt lề","editor.indent.indent":"Tăng thụt lề","editor.indent.outdent":"Giảm thụt lề","editor.fontSize.tooltip":"Kích thước phông chữ","editor.fontSize.default.tooltip":"Mặc định","editor.superscript.tooltip":"Chỉ số trên","editor.subscript.tooltip":"Chỉ số dưới","editor.bulletlist.tooltip":"Danh sách dấu đầu dòng","editor.orderedlist.tooltip":"Danh sách có thứ tự","editor.tasklist.tooltip":"Danh sách tác vụ","editor.indent.tooltip":"Tăng thụt lề","editor.outdent.tooltip":"Giảm thụt lề","editor.columns.tooltip":"Cột","editor.link.tooltip":"Liên kết","editor.link.unlink.tooltip":"Hủy liên kết","editor.link.open.tooltip":"Mở liên kết","editor.link.edit.tooltip":"Chỉnh sửa liên kết","editor.link.dialog.title":"Chèn liên kết","editor.link.dialog.link":"Liên kết","editor.link.dialog.text":"Văn bản","editor.link.dialog.openInNewTab":"Mở trong tab mới","editor.link.dialog.link.placeholder":"Địa chỉ liên kết","editor.link.dialog.text.placeholder":"Thêm mô tả","editor.link.dialog.button.apply":"Áp dụng","editor.image.tooltip":"Hình ảnh","editor.image.dragger.tooltip":"Nhấp hoặc kéo hình ảnh đến khu vực để tải lên","editor.image.float.left.tooltip":"Trôi sang trái","editor.image.float.none.tooltip":"Trôi không","editor.image.float.right.tooltip":"Trôi sang phải","editor.image.dialog.title":"Thêm hình ảnh","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Tải lên","editor.link.dialog.inline":"Inline","editor.image.dialog.tab.uploadCrop":"Tải lên & Cắt","editor.image.dialog.uploading":"Đang tải lên","editor.image.dialog.form.link":"Liên kết","editor.image.dialog.placeholder":"Liên kết","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Khóa tỷ lệ khung hình gốc","editor.image.dialog.form.file":"Tệp","editor.image.dialog.button.apply":"Áp dụng","editor.video.tooltip":"Video","editor.video.dialog.tab.upload":"Tải lên","editor.video.dialog.uploading":"Đang tải lên","editor.video.dialog.title":"Nhúng hoặc tải lên video","editor.video.dialog.link":"Liên kết","editor.video.dialog.placeholder":"Liên kết","editor.video.dialog.button.apply":"Áp dụng","editor.table.tooltip":"Bảng","editor.table.menu.insert_table":"Chèn Bảng","editor.table.menu.insert_table.with_header_row":"Có hàng tiêu đề","editor.table.menu.add_column_before":"Thêm Cột Trước","editor.table.menu.add_column_after":"Thêm Cột Sau","editor.table.menu.delete_column":"Xóa Cột","editor.table.menu.add_row_before":"Thêm Hàng Trước","editor.table.menu.add_row_after":"Thêm Hàng Sau","editor.table.menu.delete_row":"Xóa Hàng","editor.table.menu.merge_or_split_cells":"Gộp Hoặc Tách Ô","editor.table.menu.delete_table":"Xóa Bảng","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Quy tắc ngang","editor.code.tooltip":"Mã","editor.codeblock.tooltip":"Khối mã","editor.clear.tooltip":"Xóa định dạng","editor.undo.tooltip":"Hoàn tác","editor.redo.tooltip":"Làm lại","editor.fullscreen.tooltip.fullscreen":"Toàn màn hình","editor.fullscreen.tooltip.exit":"Thoát toàn màn hình","editor.imageUpload.cancel":"Hủy","editor.imageUpload.crop":"Cắt","editor.imageUpload.fileTypeNotSupported":"Loại tệp không được hỗ trợ","editor.imageUpload.fileSizeTooBig":"Kích thước tệp quá lớn, Kích thước tối đa là","editor.table.menu.insertColumnBefore":"Chèn cột trước","editor.table.menu.insertColumnAfter":"Chèn cột sau","editor.table.menu.deleteColumn":"Xóa cột","editor.table.menu.insertRowAbove":"Chèn hàng ở trên","editor.table.menu.insertRowBelow":"Chèn hàng ở dưới","editor.table.menu.deleteRow":"Xóa hàng","editor.table.menu.mergeCells":"Gộp các ô","editor.table.menu.splitCells":"Chia ô","editor.table.menu.deleteTable":"Xóa bảng","editor.table.menu.setCellsBgColor":"Màu nền ô","editor.emoji.tooltip":"Biểu tượng","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Tìm kiếm và thay thế","editor.search.dialog.text":"Tìm kiếm","editor.replace.dialog.text":"Thay thế","editor.replaceAll.dialog.text":"Thay thế tất cả","editor.previous.dialog.text":"Trước","editor.next.dialog.text":"Tiếp theo",no_result_found:"Không tìm thấy kết quả","Smileys & People":"Cười & Mọi người","Animals & Nature":"Động vật & Thiên nhiên","Food & Drink":"Thức ăn & Đồ uống",Activity:"Hoạt động","Travel & Places":"Du lịch & Địa điểm",Object:"Vật",Symbol:"Ký hiệu",Flags:"Cờ","Frequently used":"Thường xuyên sử dụng","editor.formula.dialog.text":"Công thức","editor.katex.tooltip":"Công thức toán học","editor.exportPdf.tooltip":"Xuất PDF","editor.exportWord.tooltip":"Xuất Word","editor.importWord.tooltip":"Nhập Word","editor.importWord.limitSize":"Kích thước tệp không được vượt quá","editor.importWord.converting":"Đang chuyển đổi tài liệu Word, vui lòng đợi...","editor.importWord.convertError":"Lỗi khi phân tích tài liệu Word","editor.importWord.importError":"Lỗi khi nhập tài liệu Word","editor.textDirection.tooltip":"Hướng văn bản","editor.textDirection.auto.tooltip":"Tự động","editor.textDirection.ltr.tooltip":"Trái sang Phải","editor.textDirection.rtl.tooltip":"Phải sang Trái","editor.attachment.tooltip":"Đính kèm","editor.attachment.uploading":"Đang tải lên","editor.attachment.please_upload":"Vui lòng tải lên tệp","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Phân biệt chữ hoa chữ thường","editor.mermaid.tooltip":"Mermaid","editor.twitter.tooltip":"Twitter","editor.tooltip.flipX":"Lật Ngang","editor.tooltip.flipY":"Lật Dọc"},h={"editor.remove":"移除","editor.copy":"复制","editor.words":"字数","editor.characters":"字符数","editor.default":"默认","editor.recent":"最近使用","editor.nofill":"无填充","editor.format":"格式刷","editor.delete":"删除","editor.edit":"编辑","editor.settings":"设置","editor.table_of_content":"目录","editor.draghandle.tooltip":"修改","editor.copyToClipboard":"复制到剪贴板","editor.slash":"按 '/' 使用命令","editor.slash.empty":"无结果","editor.slash.format":"格式","editor.slash.insert":"插入","editor.slash.embed":"嵌入服务","editor.content":"请输入内容","editor.fontFamily.tooltip":"字体","editor.fontFamily.default.tooltip":"默认","editor.moremark":"更多文本样式","editor.size.small.tooltip":"小","editor.size.medium.tooltip":"中","editor.size.large.tooltip":"封面","editor.bold.tooltip":"粗体","editor.italic.tooltip":"斜体","editor.underline.tooltip":"下划线","editor.strike.tooltip":"删除线","editor.color.tooltip":"颜色","editor.color.more":"更多颜色","editor.highlight.tooltip":"高亮","editor.lineheight.tooltip":"行高","editor.heading.tooltip":"标题","editor.heading.h1.tooltip":"标题 1","editor.heading.h2.tooltip":"标题 2","editor.heading.h3.tooltip":"标题 3","editor.heading.h4.tooltip":"标题 4","editor.heading.h5.tooltip":"标题 5","editor.heading.h6.tooltip":"标题 6","editor.paragraph.tooltip":"段落","editor.textalign.tooltip":"对齐","editor.textalign.left.tooltip":"左对齐","editor.textalign.center.tooltip":"居中","editor.textalign.right.tooltip":"右对齐","editor.textalign.justify.tooltip":"两端对齐","editor.indent":"缩进","editor.indent.indent":"增加缩进","editor.indent.outdent":"减少缩进","editor.fontSize.tooltip":"字号","editor.fontSize.default.tooltip":"默认","editor.superscript.tooltip":"上标","editor.subscript.tooltip":"下标","editor.bulletlist.tooltip":"无序列表","editor.orderedlist.tooltip":"有序列表","editor.tasklist.tooltip":"任务列表","editor.indent.tooltip":"缩进","editor.outdent.tooltip":"减少缩进","editor.columns.tooltip":"列","editor.link.tooltip":"链接","editor.link.unlink.tooltip":"取消链接","editor.link.open.tooltip":"打开链接","editor.link.edit.tooltip":"编辑链接","editor.link.dialog.title":"插入链接","editor.link.dialog.link":"链接","editor.link.dialog.text":"文本","editor.link.dialog.openInNewTab":"在新标签页中打开","editor.link.dialog.link.placeholder":"链接地址","editor.link.dialog.text.placeholder":"添加描述","editor.link.dialog.button.apply":"应用","editor.image.tooltip":"图片","editor.image.dragger.tooltip":"点击或拖拽图片到此区域上传","editor.image.float.left.tooltip":"左浮动","editor.image.float.none.tooltip":"无浮动","editor.image.float.right.tooltip":"右浮动","editor.image.dialog.title":"添加图片","editor.image.dialog.tab.url":"链接","editor.image.dialog.tab.upload":"上传","editor.link.dialog.inline":"行内嵌入图片","editor.image.dialog.uploading":"上传中","editor.image.dialog.form.link":"链接","editor.image.dialog.placeholder":"链接","editor.image.dialog.form.alt":"替代文本","editor.image.dialog.form.aspectRatio":"锁定原始宽高比","editor.image.dialog.form.file":"文件","editor.image.dialog.button.apply":"应用","editor.video.tooltip":"视频","editor.video.dialog.tab.upload":"上传","editor.image.dialog.tab.uploadCrop":"上传并裁剪","editor.video.dialog.uploading":"上传中","editor.video.dialog.title":"嵌入或上传视频","editor.video.dialog.link":"链接","editor.video.dialog.placeholder":"链接","editor.video.dialog.button.apply":"应用","editor.table.tooltip":"表格","editor.table.menu.insert_table":"插入表格","editor.table.menu.insert_table.with_header_row":"带标题行","editor.table.menu.add_column_before":"在前面插入列","editor.table.menu.add_column_after":"在后面插入列","editor.table.menu.delete_column":"删除列","editor.table.menu.add_row_before":"在上方插入行","editor.table.menu.add_row_after":"在下方插入行","editor.table.menu.delete_row":"删除行","editor.table.menu.merge_or_split_cells":"合并或拆分单元格","editor.table.menu.delete_table":"删除表格","editor.blockquote.tooltip":"引用","editor.horizontalrule.tooltip":"水平线","editor.code.tooltip":"代码","editor.codeblock.tooltip":"代码块","editor.clear.tooltip":"清除格式","editor.undo.tooltip":"撤销","editor.redo.tooltip":"重做","editor.fullscreen.tooltip.fullscreen":"全屏","editor.fullscreen.tooltip.exit":"退出全屏","editor.imageUpload.cancel":"取消","editor.imageUpload.crop":"裁剪","editor.imageUpload.fileTypeNotSupported":"不支持的文件类型","editor.imageUpload.fileSizeTooBig":"文件大小超出限制,最大大小为","editor.table.menu.insertColumnBefore":"在前面插入列","editor.table.menu.insertColumnAfter":"在后面插入列","editor.table.menu.deleteColumn":"删除列","editor.table.menu.insertRowAbove":"在上方插入行","editor.table.menu.insertRowBelow":"在下方插入行","editor.table.menu.deleteRow":"删除行","editor.table.menu.mergeCells":"合并单元格","editor.table.menu.splitCells":"拆分单元格","editor.table.menu.deleteTable":"删除表格","editor.table.menu.setCellsBgColor":"设置单元格背景色","editor.emoji.tooltip":"表情","editor.iframe.tooltip":"内嵌框架","editor.searchAndReplace.tooltip":"搜索和替换","editor.search.dialog.text":"搜索","editor.replace.dialog.text":"替换","editor.replaceAll.dialog.text":"全部替换","editor.previous.dialog.text":"上一个","editor.next.dialog.text":"下一个",no_result_found:"未找到结果","Smileys & People":"笑脸和人","Animals & Nature":"动物和自然","Food & Drink":"食物和饮料",Activity:"活动","Travel & Places":"旅行和地点",Object:"物体",Symbol:"符号",Flags:"旗帜","Frequently used":"常用","editor.formula.dialog.text":"公式","editor.katex.tooltip":"数学公式","editor.exportPdf.tooltip":"导出 PDF","editor.exportWord.tooltip":"导出 Word","editor.importWord.tooltip":"导入 Word","editor.importWord.limitSize":"文件大小不能超过","editor.importWord.converting":"正在转换 Word 文档,请稍后...","editor.importWord.convertError":"解析 Word 文档出错","editor.importWord.importError":"导入 Word 文档出错","editor.textDirection.tooltip":"文本方向","editor.textDirection.auto.tooltip":"自动","editor.textDirection.ltr.tooltip":"从左到右","editor.textDirection.rtl.tooltip":"从右到左","editor.attachment.tooltip":"附件","editor.attachment.uploading":"上传中","editor.attachment.please_upload":"请上传文件","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"区分大小写","editor.mermaid.tooltip":"Mermaid","editor.twitter.tooltip":"Twitter","editor.tooltip.flipX":"水平翻转","editor.tooltip.flipY":"垂直翻转"},b={"editor.remove":"Eltávolítás","editor.copy":"Másolás","editor.words":"SZAVAK","editor.characters":"KARAKTEREK","editor.default":"Alapértelmezett","editor.recent":"Gyakran használt","editor.nofill":"Kitöltés törlése","editor.format":"Formátummásoló","editor.delete":"Törlés","editor.edit":"Szerkesztés","editor.settings":"Beállítások","editor.table_of_content":"Tartalomjegyzék","editor.draghandle.tooltip":"Módosítás","editor.copyToClipboard":"Másolás vágólapra","editor.slash":"Nyomja meg a '/' gombot a parancsokhoz","editor.slash.empty":"Nincs találat","editor.slash.format":"Formátum","editor.slash.insert":"Beszúrás","editor.slash.embed":"Szolgáltatások beágyazása","editor.content":"Írjon be tartalmat","editor.fontFamily.tooltip":"Betűtípus","editor.fontFamily.default.tooltip":"Alapértelmezett","editor.moremark":"Több betűstílus","editor.size.small.tooltip":"Kicsi","editor.size.medium.tooltip":"Közepes","editor.size.large.tooltip":"Borítókép","editor.bold.tooltip":"Félkövér","editor.italic.tooltip":"Dőlt betű","editor.underline.tooltip":"Aláhúzott","editor.strike.tooltip":"Áthúzott","editor.color.tooltip":"Szín","editor.color.more":"Több szín","editor.highlight.tooltip":"Kiemelés","editor.lineheight.tooltip":"Sorköz","editor.heading.tooltip":"Fejlécek","editor.heading.h1.tooltip":"Fejléc 1","editor.heading.h2.tooltip":"Fejléc 2","editor.heading.h3.tooltip":"Fejléc 3","editor.heading.h4.tooltip":"Fejléc 4","editor.heading.h5.tooltip":"Fejléc 5","editor.heading.h6.tooltip":"Fejléc 6","editor.paragraph.tooltip":"Bekezdés","editor.textalign.tooltip":"Igazítás","editor.textalign.left.tooltip":"Bal","editor.textalign.center.tooltip":"Közép","editor.textalign.right.tooltip":"Jobb","editor.textalign.justify.tooltip":"Sorkizárt","editor.indent":"Behúzás","editor.indent.indent":"Behúzás Növelése","editor.indent.outdent":"Behúzás Csökkentése","editor.fontSize.tooltip":"Betűméret","editor.fontSize.default.tooltip":"Alapértelmezett","editor.superscript.tooltip":"Felső index","editor.subscript.tooltip":"Alsó index","editor.bulletlist.tooltip":"Felsorolás","editor.orderedlist.tooltip":"Rendezett lista","editor.tasklist.tooltip":"Feladat lista","editor.indent.tooltip":"Behúzás növelése","editor.outdent.tooltip":"Behúzás csökkentése","editor.columns.tooltip":"Oszlopok","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Link törlése","editor.link.open.tooltip":"Link megnyitása","editor.link.edit.tooltip":"Link szerkesztése","editor.link.dialog.title":"Link beszúrása","editor.link.dialog.link":"Link","editor.link.dialog.text":"Szöveg","editor.link.dialog.openInNewTab":"Megnyitás új lapon","editor.link.dialog.link.placeholder":"Link célpont","editor.link.dialog.text.placeholder":"Szöveg","editor.link.dialog.button.apply":"Alkalmaz","editor.image.tooltip":"Kép","editor.image.dragger.tooltip":"Kattintson vagy húzza a feltölteni kívánt képet a területre","editor.image.float.left.tooltip":"Lebegtetés balra","editor.image.float.none.tooltip":"Lebegtetés törlése","editor.image.float.right.tooltip":"Lebegtetés jobbra","editor.image.dialog.title":"Kép hozzáadása","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Feltöltés","editor.image.dialog.tab.uploadCrop":"Feltöltés és körbevágás","editor.image.dialog.uploading":"Feltöltés alatt","editor.link.dialog.inline":"Soron belüli","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alternatív szöveg","editor.image.dialog.form.aspectRatio":"Eredeti képarány megtartása","editor.image.dialog.form.file":"Fájl","editor.image.dialog.button.apply":"Alkalmaz","editor.video.tooltip":"Videó","editor.video.dialog.tab.upload":"Feltöltés","editor.video.dialog.uploading":"Feltöltés alatt","editor.video.dialog.title":"Videó beágyazása vagy feltöltése","editor.video.dialog.link":"Link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"Alkalmaz","editor.table.tooltip":"Táblázat","editor.table.menu.insert_table":"Táblázat beszúrása","editor.table.menu.insert_table.with_header_row":"Fejléc sorral","editor.table.menu.add_column_before":"Oszlop beszúrása balra","editor.table.menu.add_column_after":"Oszlop beszúrása jobbra","editor.table.menu.delete_column":"Oszlop törlése","editor.table.menu.add_row_before":"Sor beszúrása felülre","editor.table.menu.add_row_after":"Sor beszúrása alulra","editor.table.menu.delete_row":"Sor törlése","editor.table.menu.merge_or_split_cells":"Cellák egyesítése vagy szétválasztása","editor.table.menu.delete_table":"Táblázat törlése","editor.blockquote.tooltip":"Blokkidézet","editor.horizontalrule.tooltip":"Vízszintes vonal","editor.code.tooltip":"Kód","editor.codeblock.tooltip":"Kód Blokk","editor.clear.tooltip":"Formatálás Törlése","editor.undo.tooltip":"Visszavonás","editor.redo.tooltip":"Visszaállítás","editor.fullscreen.tooltip.fullscreen":"Teljes képernyős mód","editor.fullscreen.tooltip.exit":"Kilépés teljes képernyős módból","editor.imageUpload.cancel":"Mégsem","editor.imageUpload.crop":"Körbevágás","editor.imageUpload.fileTypeNotSupported":"Fájltípus nem támogatott","editor.imageUpload.fileSizeTooBig":"A fájlméret túl nagy, a maximum méret","editor.table.menu.insertColumnBefore":"Oszlop beszúrása balra","editor.table.menu.insertColumnAfter":"Oszlop beszúrása jobbra","editor.table.menu.deleteColumn":"Oszlop törlése","editor.table.menu.insertRowAbove":"Sor beszúrása felülre","editor.table.menu.insertRowBelow":"Sor beszúrása alulra","editor.table.menu.deleteRow":"Sor törlése","editor.table.menu.mergeCells":"Cellák egyesítése","editor.table.menu.splitCells":"Cellék szétválasztása","editor.table.menu.deleteTable":"Táblázat törlése","editor.table.menu.setCellsBgColor":"Cella háttérszín","editor.emoji.tooltip":"Emoji","editor.iframe.tooltip":"Beágyazás","editor.searchAndReplace.tooltip":"Keresés és csere","editor.search.dialog.text":"Keres","editor.replace.dialog.text":"Csere","editor.replaceAll.dialog.text":"Összes cseréje","editor.previous.dialog.text":"Előző","editor.next.dialog.text":"Következő",no_result_found:"Nincs találat","Smileys & People":"Arcok és emberek","Animals & Nature":"Állatok és természet","Food & Drink":"Étel és ital",Activity:"Aktivitás","Travel & Places":"Utazás és helyek",Object:"Tárgyak",Symbol:"Szimbólumok",Flags:"Zászlók","Frequently used":"Gyakran használt","editor.formula.dialog.text":"Formula","editor.katex.tooltip":"Matematikai formula","editor.exportPdf.tooltip":"PDF exportálása","editor.exportWord.tooltip":"Word exportálása","editor.importWord.tooltip":"Word importálása","editor.importWord.limitSize":"A fájl mérete nem haladhatja meg","editor.importWord.converting":"Word dokumentum konvertálása, kérjük, várjon...","editor.importWord.convertError":"Hiba a Word-dokumentum elemzésekor","editor.importWord.importError":"Hiba a Word dokumentum importálásakor","editor.textDirection.tooltip":"Szövegirány","editor.textDirection.auto.tooltip":"Automatikus","editor.textDirection.ltr.tooltip":"Balról jobbra","editor.textDirection.rtl.tooltip":"Jobbról balra","editor.attachment.tooltip":"Csatolmány","editor.attachment.uploading":"Feltöltés alatt","editor.attachment.please_upload":"Töltse fel a fájlt","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Kisbetű-nagybetű érzékenység","editor.mermaid.tooltip":"Mermaid","editor.twitter.tooltip":"Twitter","editor.tooltip.flipX":"Vízszintes tükrözés","editor.tooltip.flipY":"Függőleges tükrözés"};function f(e){return e=e||new Map,{all:e,on(t,o){const i=e.get(t);i?i.push(o):e.set(t,[o])},off(t,o){const i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit(t,o){let i=e.get(t);i&&[...i].map(r=>{r(o)}),i=e.get("*"),i&&[...i].map(r=>{r(t,o)})}}}const l={lang:F,message:{en:g,hu_HU:b,vi:c,zh_CN:h,pt_BR:u}};class N{constructor(){a(this,"emitter");this.emitter=f()}get lang(){return l.lang}set lang(t){if(!this.isLangSupported(t)){console.warn(`Can't find the current language "${t}", Using language "${l.lang}" by default`);return}l.lang=t,this.emitter.emit("lang",t)}get message(){return l.message}set message(t){l.message=t}loadLangMessage(t){return this.message[t]}isLangSupported(t){return Object.keys(this.message).includes(t)}setLang(t){this.lang=t}registerWatchLang(t){return this.emitter.on("lang",t),{unsubscribe:()=>{this.emitter.off("lang",t)}}}setMessage(t,o){this.message[t]=o}buildLocalesHandler(t){t||(t=this.lang);const o=this.loadLangMessage(t);return function(r){return o[r]||r}}}const d=new N,k=p.d(l.lang);function P(){const[e,t]=p.x(k),o=n.useMemo(()=>d.buildLocalesHandler(e),[e]);return n.useEffect(()=>{const i=d.registerWatchLang(r=>{t(r)});return()=>{i.unsubscribe()}},[]),{lang:e,t:o}}const j={t:e=>d.buildLocalesHandler(k())(e)};exports.BUBBLE_TEXT_LIST=M;exports.COLORS_LIST=S;exports.DEFAULT_FONT_FAMILY_LIST=y;exports.DEFAULT_FONT_SIZE_LIST=w;exports.DEFAULT_FONT_SIZE_VALUE=R;exports.DEFAULT_LANGUAGE_CODE_BLOCK=I;exports.DEFAULT_LINE_HEIGHT=W;exports.DEFAULT_LINE_HEIGHT_LIST=U;exports.EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME=C;exports.IMAGE_MAX_SIZE=x;exports.IMAGE_MIN_SIZE=E;exports.IMAGE_SIZE=s;exports.IMAGE_THROTTLE_WAIT_TIME=v;exports.MAP_LANGUAGE_CODE_LABELS=B;exports.TABLE_DEFAULT_SELECTED_GRID_SIZE=D;exports.TABLE_INIT_GRID_SIZE=z;exports.TABLE_MAX_GRID_SIZE=L;exports.VIDEO_SIZE=m;exports.locale=d;exports.locale$1=g;exports.locale$2=b;exports.locale$3=c;exports.locale$4=h;exports.locale$5=u;exports.localeActions=j;exports.mitt=f;exports.useLocale=P;
package/lib/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-CRJ-dSCW.cjs"),c=require("./tiptap-Ufn12SjW.cjs");function a(){var r;const e=t.useRef({editor:null}),[i,o]=t.useState(!1),[s,n]=t.useState(null);return t.useEffect(()=>{var u;(u=e.current)!=null&&u.editor&&(o(!0),n(e.current.editor))},[e,(r=e.current)==null?void 0:r.editor]),{isReady:i,editor:s,editorRef:e}}exports.default=d.RichTextEditor;exports.BubbleMenu=c.BubbleMenu;exports.useEditorState=a;
@@ -0,0 +1,511 @@
1
+ import { AnyExtension } from '@tiptap/core';
2
+ import { BubbleMenu } from '@tiptap/react';
3
+ import { default as default_2 } from 'react';
4
+ import { Editor } from '@tiptap/react';
5
+ import { Editor as Editor_2 } from '@tiptap/core';
6
+ import { ForwardRefExoticComponent } from 'react';
7
+ import { RefAttributes } from 'react';
8
+ import { TooltipContentProps } from '@radix-ui/react-tooltip';
9
+ import { UseEditorOptions } from '@tiptap/react';
10
+
11
+ declare interface ActionButtonProps {
12
+ icon?: string;
13
+ title?: string;
14
+ tooltip?: string;
15
+ disabled?: boolean;
16
+ shortcutKeys?: string[];
17
+ customClass?: string;
18
+ loading?: boolean;
19
+ tooltipOptions?: TooltipContentProps;
20
+ color?: string;
21
+ action?: ButtonViewReturnComponentProps['action'];
22
+ isActive?: ButtonViewReturnComponentProps['isActive'];
23
+ children?: default_2.ReactNode;
24
+ asChild?: boolean;
25
+ upload?: boolean;
26
+ }
27
+
28
+ export { BubbleMenu }
29
+
30
+ declare interface BubbleMenuConfig {
31
+ /**
32
+ * @description Column menu hidden
33
+ * @default false
34
+ */
35
+ hidden?: boolean;
36
+ /**
37
+ * custom menu actions
38
+ */
39
+ actions?: ActionButtonProps[];
40
+ }
41
+
42
+ /**
43
+ * Represents the BubbleMenuProps.
44
+ */
45
+ declare interface BubbleMenuProps {
46
+ columnConfig?: {
47
+ /**
48
+ * @description Column menu hidden
49
+ * @default false
50
+ */
51
+ hidden?: boolean;
52
+ };
53
+ tableConfig?: BubbleMenuConfig;
54
+ floatingMenuConfig?: {
55
+ /**
56
+ * @description Floating menu hidden
57
+ * @default false
58
+ */
59
+ hidden?: boolean;
60
+ };
61
+ linkConfig?: {
62
+ /**
63
+ * @description Link menu hidden
64
+ * @default false
65
+ */
66
+ hidden?: boolean;
67
+ };
68
+ textConfig?: {
69
+ /**
70
+ * @description Text menu hidden
71
+ * @default false
72
+ */
73
+ hidden?: boolean;
74
+ };
75
+ imageConfig?: {
76
+ /**
77
+ * @description Image menu hidden
78
+ * @default false
79
+ */
80
+ hidden?: boolean;
81
+ };
82
+ imageGifConfig?: {
83
+ /**
84
+ * @description Image menu hidden
85
+ * @default false
86
+ */
87
+ hidden?: boolean;
88
+ };
89
+ videoConfig?: {
90
+ /**
91
+ * @description Video menu hidden
92
+ * @default false
93
+ */
94
+ hidden?: boolean;
95
+ };
96
+ katexConfig?: {
97
+ /**
98
+ * @description katex menu hidden
99
+ * @default false
100
+ */
101
+ hidden?: boolean;
102
+ };
103
+ excalidrawConfig?: {
104
+ /**
105
+ * @description excalidraw menu hidden
106
+ * @default false
107
+ */
108
+ hidden?: boolean;
109
+ };
110
+ iframeConfig?: {
111
+ /**
112
+ * @description iframe menu hidden
113
+ * @default false
114
+ */
115
+ hidden?: boolean;
116
+ };
117
+ mermaidConfig?: {
118
+ /**
119
+ * @description mermaid menu hidden
120
+ * @default false
121
+ */
122
+ hidden?: boolean;
123
+ };
124
+ twitterConfig?: {
125
+ /**
126
+ * @description twitter menu hidden
127
+ * @default false
128
+ */
129
+ hidden?: boolean;
130
+ };
131
+ drawerConfig?: {
132
+ /**
133
+ * @description twitter menu hidden
134
+ * @default false
135
+ */
136
+ hidden?: boolean;
137
+ };
138
+ render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
139
+ }
140
+
141
+ /**
142
+ * Represents the BubbleMenuRenderProps.
143
+ */
144
+ declare interface BubbleMenuRenderProps {
145
+ editor: Editor;
146
+ disabled: boolean;
147
+ bubbleMenu: BubbleMenuProps;
148
+ }
149
+
150
+ /**
151
+ * Represents the props for the ButtonView component.
152
+ */
153
+ declare interface ButtonViewReturnComponentProps {
154
+ /** Method triggered when action is performed */
155
+ action?: (value?: any) => void;
156
+ /** Whether it is in the active state */
157
+ isActive?: () => boolean;
158
+ /** Button icon */
159
+ icon?: any;
160
+ /** Text displayed on hover */
161
+ tooltip?: string;
162
+ [x: string]: any;
163
+ }
164
+
165
+ declare const _default: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes< {
166
+ editor: Editor_2 | null;
167
+ }>>;
168
+ export default _default;
169
+
170
+ export { Editor }
171
+
172
+ /**
173
+ * Interface for RichTextEditor component props
174
+ */
175
+ declare interface RichTextEditorProps {
176
+ /** Content of the editor */
177
+ content: string;
178
+ /** Extensions for the editor */
179
+ extensions: AnyExtension[];
180
+ /** Output format */
181
+ output: 'html' | 'json' | 'text';
182
+ /** Model value */
183
+ modelValue?: string | object;
184
+ /** Dark mode flag */
185
+ dark?: boolean;
186
+ /** Dense mode flag */
187
+ dense?: boolean;
188
+ /** Disabled flag */
189
+ disabled?: boolean;
190
+ /** Label for the editor */
191
+ label?: string;
192
+ /** Hide toolbar flag */
193
+ hideToolbar?: boolean;
194
+ /** Disable bubble menu flag */
195
+ disableBubble?: boolean;
196
+ /** Hide bubble menu flag */
197
+ hideBubble?: boolean;
198
+ /** Remove default wrapper flag */
199
+ removeDefaultWrapper?: boolean;
200
+ /** Maximum width */
201
+ maxWidth?: string | number;
202
+ /** Minimum height */
203
+ minHeight?: string | number;
204
+ /** Maximum height */
205
+ maxHeight?: string | number;
206
+ /** Content class */
207
+ contentClass?: string | string[] | Record<string, any>;
208
+ /** Content change callback */
209
+ onChangeContent?: (val: any) => void;
210
+ /** Bubble menu props */
211
+ bubbleMenu?: BubbleMenuProps;
212
+ /** Toolbar props */
213
+ toolbar?: ToolbarProps;
214
+ /** Use editor options */
215
+ useEditorOptions?: UseEditorOptions;
216
+ /** Use editor options */
217
+ resetCSS?: boolean;
218
+ }
219
+
220
+ /**
221
+ * Represents the ToolbarItemProps.
222
+ */
223
+ declare interface ToolbarItemProps {
224
+ button: {
225
+ component: React.ComponentType<any>;
226
+ componentProps: Record<string, any>;
227
+ };
228
+ divider: boolean;
229
+ spacer: boolean;
230
+ type: string;
231
+ name: string;
232
+ }
233
+
234
+ declare interface ToolbarProps {
235
+ render?: (props: ToolbarRenderProps, toolbarItems: ToolbarItemProps[], dom: any[], containerDom: (innerContent: React.ReactNode) => React.ReactNode) => React.ReactNode;
236
+ }
237
+
238
+ declare interface ToolbarRenderProps {
239
+ editor: Editor;
240
+ disabled: boolean;
241
+ }
242
+
243
+ export { UseEditorOptions }
244
+
245
+ export declare function useEditorState(): UseEditorStateReturn;
246
+
247
+ export declare interface UseEditorStateReturn {
248
+ isReady: boolean;
249
+ editor: Editor_2 | null;
250
+ editorRef: React.MutableRefObject<{
251
+ editor: Editor_2 | null;
252
+ }>;
253
+ }
254
+
255
+ export { }
256
+
257
+
258
+ declare module '@tiptap/core' {
259
+ interface Commands<ReturnType> {
260
+ video: {
261
+ /**
262
+ * Add an video
263
+ */
264
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
265
+ /**
266
+ * Update an video
267
+ */
268
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
269
+ };
270
+ }
271
+ }
272
+
273
+
274
+ declare module '@tiptap/core' {
275
+ interface Commands<ReturnType> {
276
+ fontSize: {
277
+ /**
278
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
279
+ * CSS font-size
280
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
281
+ */
282
+ setFontSize: (fontSize: string) => ReturnType;
283
+ /**
284
+ * Unset the font size
285
+ */
286
+ unsetFontSize: () => ReturnType;
287
+ };
288
+ }
289
+ }
290
+
291
+
292
+ declare module '@tiptap/core' {
293
+ interface Commands<ReturnType> {
294
+ columns: {
295
+ insertColumns: (attrs?: {
296
+ cols: number;
297
+ }) => ReturnType;
298
+ addColBefore: () => ReturnType;
299
+ addColAfter: () => ReturnType;
300
+ deleteCol: () => ReturnType;
301
+ };
302
+ }
303
+ }
304
+
305
+
306
+ declare module '@tiptap/core' {
307
+ interface Commands<ReturnType> {
308
+ painter: {
309
+ setPainter: (marks: Mark[]) => ReturnType;
310
+ };
311
+ }
312
+ }
313
+
314
+
315
+ declare module '@tiptap/core' {
316
+ interface Commands<ReturnType> {
317
+ lineHeight: {
318
+ setLineHeight: (lineHeight: string) => ReturnType;
319
+ unsetLineHeight: () => ReturnType;
320
+ };
321
+ }
322
+ }
323
+
324
+
325
+ declare module '@tiptap/core' {
326
+ interface Commands<ReturnType> {
327
+ indent: {
328
+ /**
329
+ * Set the indent attribute
330
+ */
331
+ indent: () => ReturnType;
332
+ /**
333
+ * Set the outdent attribute
334
+ */
335
+ outdent: () => ReturnType;
336
+ };
337
+ }
338
+ }
339
+
340
+
341
+ declare module '@tiptap/core' {
342
+ interface Commands<ReturnType> {
343
+ imageUpload: {
344
+ /**
345
+ * Add an image
346
+ */
347
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
348
+ /**
349
+ * Update an image
350
+ */
351
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
352
+ /**
353
+ * Set image alignment
354
+ */
355
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
356
+ };
357
+ }
358
+ }
359
+
360
+
361
+ declare module '@tiptap/core' {
362
+ interface Commands<ReturnType> {
363
+ tableCellBackground: {
364
+ setTableCellBackground: (color: string) => ReturnType;
365
+ unsetTableCellBackground: () => ReturnType;
366
+ };
367
+ }
368
+ }
369
+
370
+
371
+ declare module '@tiptap/core' {
372
+ interface Commands<ReturnType> {
373
+ katex: {
374
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
375
+ };
376
+ }
377
+ }
378
+
379
+
380
+ declare module '@tiptap/core' {
381
+ interface Commands<ReturnType> {
382
+ tableOfContents: {
383
+ setTableOfContents: () => ReturnType;
384
+ removeTableOfContents: () => ReturnType;
385
+ };
386
+ }
387
+ }
388
+
389
+
390
+ declare module '@tiptap/core' {
391
+ interface Commands<ReturnType> {
392
+ excalidraw: {
393
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
394
+ };
395
+ }
396
+ }
397
+
398
+
399
+ declare module '@tiptap/core' {
400
+ interface Commands<ReturnType> {
401
+ emoji: {
402
+ setEmoji: (emoji: {
403
+ name: string;
404
+ emoji: string;
405
+ }) => ReturnType;
406
+ };
407
+ }
408
+ }
409
+
410
+
411
+ declare module '@tiptap/core' {
412
+ interface Commands<ReturnType> {
413
+ iframe: {
414
+ /**
415
+ * Add an iframe
416
+ */
417
+ setIframe: (options: {
418
+ src: string;
419
+ service: string;
420
+ }) => ReturnType;
421
+ };
422
+ }
423
+ }
424
+
425
+
426
+ declare module '@tiptap/core' {
427
+ interface Commands<ReturnType> {
428
+ exportWord: {
429
+ exportToWord: () => ReturnType;
430
+ };
431
+ }
432
+ }
433
+
434
+
435
+ declare module '@tiptap/core' {
436
+ interface Commands<ReturnType> {
437
+ search: {
438
+ setSearchTerm: (searchTerm: string) => ReturnType;
439
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
440
+ replace: () => ReturnType;
441
+ replaceAll: () => ReturnType;
442
+ goToPrevSearchResult: () => void;
443
+ goToNextSearchResult: () => void;
444
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
445
+ };
446
+ }
447
+ }
448
+
449
+
450
+ declare module '@tiptap/core' {
451
+ interface Commands<ReturnType> {
452
+ imageGifUpload: {
453
+ /**
454
+ * Add an image gif
455
+ */
456
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
457
+ /**
458
+ * Update an image gif
459
+ */
460
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
461
+ /**
462
+ * Set image alignment
463
+ */
464
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
465
+ };
466
+ }
467
+ }
468
+
469
+
470
+ declare module '@tiptap/core' {
471
+ interface Commands<ReturnType> {
472
+ mermaid: {
473
+ setMermaid: (options: any, replace?: any) => ReturnType;
474
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
475
+ };
476
+ }
477
+ }
478
+
479
+
480
+ declare module '@tiptap/core' {
481
+ interface Commands<ReturnType> {
482
+ attachment: {
483
+ setAttachment: (attrs?: unknown) => ReturnType;
484
+ };
485
+ }
486
+ }
487
+
488
+
489
+ declare module '@tiptap/core' {
490
+ interface Commands<ReturnType> {
491
+ twitter: {
492
+ /**
493
+ * Insert a tweet
494
+ * @param options The tweet attributes
495
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
496
+ */
497
+ setTweet: (options: SetTweetOptions) => ReturnType;
498
+ updateTweet: (options: SetTweetOptions) => ReturnType;
499
+ };
500
+ }
501
+ }
502
+
503
+
504
+ declare module '@tiptap/core' {
505
+ interface Commands<ReturnType> {
506
+ drawer: {
507
+ setDrawer: (options: any, replace?: any) => ReturnType;
508
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
509
+ };
510
+ }
511
+ }