reactjs-tiptap-editor 0.0.28 → 0.0.30
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.
- package/lib/index.d.cts +54 -529
- package/lib/index.d.ts +54 -529
- package/lib/locales-CIjswkre.cjs +1 -0
- package/lib/{locales-CReRRAlY.js → locales-D767TIQP.js} +32 -69
- package/lib/reactjs-tiptap-editor.cjs +1 -2
- package/lib/reactjs-tiptap-editor.js +50 -145
- package/lib/{tiptap-oijPpdck.js → tiptap-CK44C-2f.js} +1192 -1442
- package/lib/tiptap-Dr2jJgw-.cjs +116 -0
- package/lib/utils-DW_zDPZv.cjs +135 -0
- package/lib/{utils-B4dNn5Nv.js → utils-DrrJak96.js} +2255 -2481
- package/lib/vendor-D533qV8r.js +17535 -0
- package/lib/vendor-JmPfJfTA.cjs +17 -0
- package/package.json +3 -3
- package/lib/locales-BW5KWG4_.cjs +0 -2
- package/lib/locales-BW5KWG4_.cjs.map +0 -1
- package/lib/locales-CReRRAlY.js.map +0 -1
- package/lib/radix-BnsE5jjU.cjs +0 -2
- package/lib/radix-BnsE5jjU.cjs.map +0 -1
- package/lib/radix-DynsTgIE.js +0 -3104
- package/lib/radix-DynsTgIE.js.map +0 -1
- package/lib/reactjs-tiptap-editor.cjs.map +0 -1
- package/lib/reactjs-tiptap-editor.js.map +0 -1
- package/lib/tiptap-CMeHtctt.cjs +0 -117
- package/lib/tiptap-CMeHtctt.cjs.map +0 -1
- package/lib/tiptap-oijPpdck.js.map +0 -1
- package/lib/utils-B4dNn5Nv.js.map +0 -1
- package/lib/utils-Bvt21Jwu.cjs +0 -136
- package/lib/utils-Bvt21Jwu.cjs.map +0 -1
- package/lib/vendor-Btqs8WA3.cjs +0 -453
- package/lib/vendor-Btqs8WA3.cjs.map +0 -1
- package/lib/vendor-CCqRdwcC.js +0 -27904
- package/lib/vendor-CCqRdwcC.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty;var _=(e,t,o)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var n=(e,t,o)=>_(e,typeof t!="symbol"?t+"":t,o);const p=require("react"),s=require("valtio"),T=require("./utils-DW_zDPZv.cjs"),f="en",F=200,A=F-80,C=20,E=1e5,k=16,L=10,D=10,x=2,I=["#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"],S=["Inter","Comic Sans MS, Comic Sans","serif","monospace","cursive"],y=["html","css","js","ts"],v={html:"HTML",css:"CSS",js:"JavaScript",ts:"TypeScript"},B=["10px","11px","12px","14px","16px","18px","20px","22px","24px","26px","28px","36px","48px","72px"],R="default";var g=(e=>(e[e["size-small"]=200]="size-small",e[e["size-medium"]=500]="size-medium",e["size-large"]="100%",e))(g||{}),u=(e=>(e[e["size-small"]=480]="size-small",e[e["size-medium"]=640]="size-medium",e["size-large"]="100%",e))(u||{});const w=["100%","115%","150%","200%","250%","300%"],U="1",N=["bold","italic","underline","strike","code","link","divider","color","highlight","textAlign"],M={"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.table_of_content":"Table of Content","editor.draghandle.tooltip":"Modify","editor.copyToClipboard":"CopyToClipboard","editor.importWord.tooltip":"Import Word","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.uploading":"Uploading","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.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.importWrod.tooltip":"Import Word"},m=M,H={"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.table_of_content":"Mục lục","editor.draghandle.tooltip":"Sửa đổi","editor.copyToClipboard":"CopyToClipboard","editor.importWord.tooltip":"Nhập Word","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.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.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.importWrod.tooltip":"Nhập Word"},c=H,z={"editor.remove":"移除","editor.copy":"复制","editor.words":"字数","editor.characters":"字符数","editor.default":"默认","editor.recent":"最近使用","editor.nofill":"无填充","editor.format":"格式刷","editor.table_of_content":"目录","editor.draghandle.tooltip":"修改","editor.copyToClipboard":"复制到剪贴板","editor.importWord.tooltip":"导入 Word","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.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.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.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.importWrod.tooltip":"导入 Word"},h=z,i={lang:f,message:{en:m,vi:c,zh_CN:h}};class O{constructor(){n(this,"emitter");this.emitter=T.mitt()}get lang(){return i.lang}set lang(t){if(!this.isLangSupported(t)){console.warn(`Can't find the current language "${t}", Using language "${i.lang}" by default`);return}i.lang=t,this.emitter.emit("lang",t)}get message(){return i.message}set message(t){i.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(a){return o[a]||a}}}const l=new O,r=s.proxy({lang:i.lang});function G(){const e=s.useSnapshot(r),t=p.useMemo(()=>l.buildLocalesHandler(e.lang),[e.lang]);return p.useEffect(()=>{const o=l.registerWatchLang(d=>{r.lang=d});return()=>{o.unsubscribe()}},[]),{lang:e.lang,t}}const W={t:e=>l.buildLocalesHandler(r.lang)(e)},P=l;exports.BUBBLE_TEXT_LIST=N;exports.COLORS_LIST=I;exports.DEFAULT_FONT_FAMILY_LIST=S;exports.DEFAULT_FONT_SIZE_LIST=B;exports.DEFAULT_FONT_SIZE_VALUE=R;exports.DEFAULT_LANGUAGE_CODE_BLOCK=y;exports.DEFAULT_LINE_HEIGHT=U;exports.DEFAULT_LINE_HEIGHT_LIST=w;exports.EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME=A;exports.IMAGE_MAX_SIZE=E;exports.IMAGE_MIN_SIZE=C;exports.IMAGE_SIZE=g;exports.IMAGE_THROTTLE_WAIT_TIME=k;exports.MAP_LANGUAGE_CODE_LABELS=v;exports.TABLE_DEFAULT_SELECTED_GRID_SIZE=x;exports.TABLE_INIT_GRID_SIZE=L;exports.TABLE_MAX_GRID_SIZE=D;exports.VIDEO_SIZE=u;exports.en=m;exports.locale=P;exports.localeActions=W;exports.useLocale=G;exports.vi=c;exports.zh_CN=h;
|
|
@@ -2,9 +2,9 @@ var p = Object.defineProperty;
|
|
|
2
2
|
var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var n = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { useMemo as g, useEffect as m } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const b = "en", f = 200, B = f - 80, w = 20, I = 1e5,
|
|
5
|
+
import { proxy as u, useSnapshot as c } from "valtio";
|
|
6
|
+
import { m as h } from "./utils-DrrJak96.js";
|
|
7
|
+
const b = "en", f = 200, B = f - 80, w = 20, I = 1e5, R = 16, z = 10, N = 10, U = 2, M = [
|
|
8
8
|
"#000000",
|
|
9
9
|
"#262626",
|
|
10
10
|
"#595959",
|
|
@@ -75,7 +75,7 @@ const b = "en", f = 200, B = f - 80, w = 20, I = 1e5, z = 16, R = 10, N = 10, U
|
|
|
75
75
|
"#061178",
|
|
76
76
|
"#22075E",
|
|
77
77
|
"#780650"
|
|
78
|
-
],
|
|
78
|
+
], H = [
|
|
79
79
|
"Inter",
|
|
80
80
|
"Comic Sans MS, Comic Sans",
|
|
81
81
|
"serif",
|
|
@@ -86,12 +86,12 @@ const b = "en", f = 200, B = f - 80, w = 20, I = 1e5, z = 16, R = 10, N = 10, U
|
|
|
86
86
|
"css",
|
|
87
87
|
"js",
|
|
88
88
|
"ts"
|
|
89
|
-
],
|
|
89
|
+
], P = {
|
|
90
90
|
html: "HTML",
|
|
91
91
|
css: "CSS",
|
|
92
92
|
js: "JavaScript",
|
|
93
93
|
ts: "TypeScript"
|
|
94
|
-
},
|
|
94
|
+
}, O = [
|
|
95
95
|
"10px",
|
|
96
96
|
"11px",
|
|
97
97
|
"12px",
|
|
@@ -106,40 +106,9 @@ const b = "en", f = 200, B = f - 80, w = 20, I = 1e5, z = 16, R = 10, N = 10, U
|
|
|
106
106
|
"36px",
|
|
107
107
|
"48px",
|
|
108
108
|
"72px"
|
|
109
|
-
],
|
|
109
|
+
], G = "default";
|
|
110
110
|
var F = /* @__PURE__ */ ((e) => (e[e["size-small"] = 200] = "size-small", e[e["size-medium"] = 500] = "size-medium", e["size-large"] = "100%", e))(F || {}), T = /* @__PURE__ */ ((e) => (e[e["size-small"] = 480] = "size-small", e[e["size-medium"] = 640] = "size-medium", e["size-large"] = "100%", e))(T || {});
|
|
111
|
-
const
|
|
112
|
-
image: [
|
|
113
|
-
"divider",
|
|
114
|
-
"image-size-small",
|
|
115
|
-
"image-size-medium",
|
|
116
|
-
"image-size-large",
|
|
117
|
-
"divider",
|
|
118
|
-
"image-left",
|
|
119
|
-
"image-center",
|
|
120
|
-
"image-right",
|
|
121
|
-
"divider",
|
|
122
|
-
"image-aspect-ratio",
|
|
123
|
-
"remove"
|
|
124
|
-
],
|
|
125
|
-
text: [
|
|
126
|
-
"divider",
|
|
127
|
-
"text-bubble",
|
|
128
|
-
"divider",
|
|
129
|
-
"bold",
|
|
130
|
-
"italic",
|
|
131
|
-
"underline",
|
|
132
|
-
"strike",
|
|
133
|
-
"code",
|
|
134
|
-
"link",
|
|
135
|
-
"divider",
|
|
136
|
-
"color",
|
|
137
|
-
"highlight",
|
|
138
|
-
"textAlign"
|
|
139
|
-
],
|
|
140
|
-
video: ["video-size-small", "video-size-medium", "video-size-large", "divider", "remove"],
|
|
141
|
-
table: ["removeTable"]
|
|
142
|
-
}, V = [
|
|
111
|
+
const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
143
112
|
"bold",
|
|
144
113
|
"italic",
|
|
145
114
|
"underline",
|
|
@@ -150,7 +119,7 @@ const X = ["100%", "115%", "150%", "200%", "250%", "300%"], q = 1.7, K = "1", $
|
|
|
150
119
|
"color",
|
|
151
120
|
"highlight",
|
|
152
121
|
"textAlign"
|
|
153
|
-
],
|
|
122
|
+
], k = {
|
|
154
123
|
"editor.remove": "Remove",
|
|
155
124
|
"editor.copy": "Copy",
|
|
156
125
|
"editor.words": "WORDS",
|
|
@@ -297,7 +266,7 @@ const X = ["100%", "115%", "150%", "200%", "250%", "300%"], q = 1.7, K = "1", $
|
|
|
297
266
|
"editor.exportPdf.tooltip": "Export PDF",
|
|
298
267
|
"editor.exportWord.tooltip": "Export Word",
|
|
299
268
|
"editor.importWrod.tooltip": "Import Word"
|
|
300
|
-
},
|
|
269
|
+
}, C = k, _ = {
|
|
301
270
|
"editor.remove": "Xóa",
|
|
302
271
|
"editor.copy": "Sao chép",
|
|
303
272
|
"editor.words": "TỪ",
|
|
@@ -444,7 +413,7 @@ const X = ["100%", "115%", "150%", "200%", "250%", "300%"], q = 1.7, K = "1", $
|
|
|
444
413
|
"editor.exportPdf.tooltip": "Xuất PDF",
|
|
445
414
|
"editor.exportWord.tooltip": "Xuất Word",
|
|
446
415
|
"editor.importWrod.tooltip": "Nhập Word"
|
|
447
|
-
}, A =
|
|
416
|
+
}, A = _, x = {
|
|
448
417
|
"editor.remove": "移除",
|
|
449
418
|
"editor.copy": "复制",
|
|
450
419
|
"editor.words": "字数",
|
|
@@ -594,15 +563,15 @@ const X = ["100%", "115%", "150%", "200%", "250%", "300%"], q = 1.7, K = "1", $
|
|
|
594
563
|
}, L = x, i = {
|
|
595
564
|
lang: b,
|
|
596
565
|
message: {
|
|
597
|
-
en:
|
|
566
|
+
en: C,
|
|
598
567
|
vi: A,
|
|
599
568
|
zh_CN: L
|
|
600
569
|
}
|
|
601
570
|
};
|
|
602
|
-
class
|
|
571
|
+
class D {
|
|
603
572
|
constructor() {
|
|
604
573
|
n(this, "emitter");
|
|
605
|
-
this.emitter =
|
|
574
|
+
this.emitter = h();
|
|
606
575
|
}
|
|
607
576
|
// Getter and setter for current language
|
|
608
577
|
get lang() {
|
|
@@ -657,11 +626,11 @@ class E {
|
|
|
657
626
|
};
|
|
658
627
|
}
|
|
659
628
|
}
|
|
660
|
-
const l = new
|
|
629
|
+
const l = new D(), r = u({
|
|
661
630
|
lang: i.lang
|
|
662
631
|
});
|
|
663
|
-
function
|
|
664
|
-
const e =
|
|
632
|
+
function K() {
|
|
633
|
+
const e = c(r), t = g(() => l.buildLocalesHandler(e.lang), [e.lang]);
|
|
665
634
|
return m(() => {
|
|
666
635
|
const o = l.registerWatchLang((d) => {
|
|
667
636
|
r.lang = d;
|
|
@@ -674,38 +643,32 @@ function J() {
|
|
|
674
643
|
t
|
|
675
644
|
};
|
|
676
645
|
}
|
|
677
|
-
const
|
|
646
|
+
const $ = {
|
|
678
647
|
t: (e) => l.buildLocalesHandler(r.lang)(e)
|
|
679
|
-
},
|
|
648
|
+
}, V = l;
|
|
680
649
|
export {
|
|
681
|
-
|
|
650
|
+
q as B,
|
|
682
651
|
M as C,
|
|
683
652
|
W as D,
|
|
684
653
|
B as E,
|
|
685
654
|
F as I,
|
|
686
|
-
|
|
687
|
-
O as M,
|
|
688
|
-
$ as N,
|
|
655
|
+
P as M,
|
|
689
656
|
N as T,
|
|
690
657
|
T as V,
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
658
|
+
H as a,
|
|
659
|
+
O as b,
|
|
660
|
+
G as c,
|
|
661
|
+
X as d,
|
|
662
|
+
j as e,
|
|
696
663
|
I as f,
|
|
697
|
-
|
|
664
|
+
R as g,
|
|
698
665
|
w as h,
|
|
699
|
-
|
|
666
|
+
z as i,
|
|
700
667
|
U as j,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
f as o,
|
|
706
|
-
H as p,
|
|
707
|
-
J as u,
|
|
668
|
+
V as k,
|
|
669
|
+
$ as l,
|
|
670
|
+
C as m,
|
|
671
|
+
K as u,
|
|
708
672
|
A as v,
|
|
709
673
|
L as z
|
|
710
674
|
};
|
|
711
|
-
//# sourceMappingURL=locales-CReRRAlY.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
//# sourceMappingURL=reactjs-tiptap-editor.cjs.map
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-DW_zDPZv.cjs"),o=require("./locales-CIjswkre.cjs");exports.BaseKit=e.BaseKit;exports.Blockquote=e.Blockquote;exports.Bold=e.Bold;exports.BulletList=e.BulletList;exports.Clear=e.Clear;exports.Code=e.Code;exports.CodeBlock=e.CodeBlock;exports.Color=e.Color;exports.Column=e.Column;exports.ColumnActionButton=e.ColumnActionButton;exports.Emoji=e.Emoji;exports.ExportPdf=e.ExportPdf;exports.ExportWord=e.ExportWord;exports.FontFamily=e.FontFamily;exports.FontSize=e.FontSize;exports.FormatPainter=e.FormatPainter;exports.Heading=e.Heading;exports.Highlight=e.Highlight;exports.History=e.History;exports.HorizontalRule=e.HorizontalRule;exports.Iframe=e.Iframe;exports.Image=e.Image;exports.ImageUpload=e.ImageUpload;exports.ImportWord=e.ImportWord;exports.Indent=e.Indent;exports.Italic=e.Italic;exports.Katex=e.Katex;exports.LineHeight=e.LineHeight;exports.Link=e.Link;exports.MoreMark=e.MoreMark;exports.MultiColumn=e.MultiColumn;exports.OrderedList=e.OrderedList;exports.SearchAndReplace=e.SearchAndReplace;exports.SlashCommand=e.SlashCommand;exports.Strike=e.Strike;exports.SubAndSuperScript=e.SubAndSuperScript;exports.Table=e.Table;exports.TableOfContents=e.TableOfContents;exports.TaskList=e.TaskList;exports.TextAlign=e.TextAlign;exports.Underline=e.Underline;exports.Video=e.Video;exports.VideoUpload=e.VideoUpload;exports.default=e.RichTextEditor;exports.en=o.en;exports.locale=o.locale;exports.vi=o.vi;exports.zh_CN=o.zh_CN;
|
|
@@ -1,147 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { k as e, h as o, B as t, e as l, f as i, C as r, a as n, c as d, v as m, x as u, E as p, A as C, G as c, F as g, b as k, u as S, H as f, d as h, j as x, i as B, y as I, q as H, r as L, D as z, n as A, I as F, K as T, o as b, L as E, M, w as U, O as v, z as y, p as K, S as O, l as R, t as V, J as j, g as q, T as P, U as W, V as w, s as D, R as G } from "./utils-DrrJak96.js";
|
|
2
|
+
import { m as N, k as _, v as Q, z as X } from "./locales-D767TIQP.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
La as DropdownMenuSubTrigger,
|
|
53
|
-
da as DropdownMenuTrigger,
|
|
54
|
-
_ as EDITOR_UPDATE_THROTTLE_WAIT_TIME,
|
|
55
|
-
I as EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME,
|
|
56
|
-
Ma as Emoji,
|
|
57
|
-
pa as ExportPdf,
|
|
58
|
-
Aa as ExportWord,
|
|
59
|
-
Da as FileWordOutline,
|
|
60
|
-
ba as FontFamily,
|
|
61
|
-
Sa as FontSize,
|
|
62
|
-
Ca as FormatLineHeight,
|
|
63
|
-
Ba as FormatPainter,
|
|
64
|
-
ga as Heading,
|
|
65
|
-
ma as Highlight,
|
|
66
|
-
ca as History,
|
|
67
|
-
Oa as HorizontalRule,
|
|
68
|
-
L as IMAGE_MAX_SIZE,
|
|
69
|
-
d as IMAGE_MIN_SIZE,
|
|
70
|
-
M as IMAGE_SIZE,
|
|
71
|
-
p as IMAGE_THROTTLE_WAIT_TIME,
|
|
72
|
-
Ua as IconComponent,
|
|
73
|
-
wa as Iframe,
|
|
74
|
-
Fa as Image,
|
|
75
|
-
Ga as ImageUpload,
|
|
76
|
-
Ha as ImportWord,
|
|
77
|
-
Ra as Indent,
|
|
78
|
-
Na as Input,
|
|
79
|
-
Pa as Italic,
|
|
80
|
-
ha as Katex,
|
|
81
|
-
A as LINE_HEIGHT_100,
|
|
82
|
-
ka as Label,
|
|
83
|
-
Va as LineHeight,
|
|
84
|
-
xa as Link,
|
|
85
|
-
D as MAP_LANGUAGE_CODE_LABELS,
|
|
86
|
-
Za as MenuDown,
|
|
87
|
-
fa as MoreMark,
|
|
88
|
-
va as MultiColumn,
|
|
89
|
-
b as NODE_TYPE_MENU,
|
|
90
|
-
za as OrderedList,
|
|
91
|
-
Wa as Popover,
|
|
92
|
-
Ka as PopoverContent,
|
|
93
|
-
Xa as PopoverTrigger,
|
|
94
|
-
ja as SearchAndReplace,
|
|
95
|
-
qa as Separator,
|
|
96
|
-
ya as SizeL,
|
|
97
|
-
Ya as SizeM,
|
|
98
|
-
Ja as SizeS,
|
|
99
|
-
Qa as SlashCommand,
|
|
100
|
-
$a as Strike,
|
|
101
|
-
as as SubAndSuperScript,
|
|
102
|
-
ss as Switch,
|
|
103
|
-
S as TABLE_DEFAULT_SELECTED_GRID_SIZE,
|
|
104
|
-
C as TABLE_INIT_GRID_SIZE,
|
|
105
|
-
B as TABLE_MAX_GRID_SIZE,
|
|
106
|
-
os as Table,
|
|
107
|
-
es as TableBubbleMenu,
|
|
108
|
-
ts as TableOfContents,
|
|
109
|
-
ns as Tabs,
|
|
110
|
-
Ts as TabsContent,
|
|
111
|
-
rs as TabsList,
|
|
112
|
-
is as TabsTrigger,
|
|
113
|
-
us as TaskList,
|
|
114
|
-
Es as TextAlign,
|
|
115
|
-
ls as Toast,
|
|
116
|
-
_s as ToastAction,
|
|
117
|
-
Is as ToastClose,
|
|
118
|
-
Ls as ToastDescription,
|
|
119
|
-
ds as ToastProvider,
|
|
120
|
-
Ms as ToastTitle,
|
|
121
|
-
ps as ToastViewport,
|
|
122
|
-
As as Toggle,
|
|
123
|
-
Ds as Toolbar,
|
|
124
|
-
bs as Tooltip,
|
|
125
|
-
Ss as TooltipContent,
|
|
126
|
-
Cs as TooltipProvider,
|
|
127
|
-
Bs as TooltipTrigger,
|
|
128
|
-
gs as Underline,
|
|
129
|
-
g as VIDEO_SIZE,
|
|
130
|
-
ms as Video,
|
|
131
|
-
cs as VideoUpload,
|
|
132
|
-
Os as buttonVariants,
|
|
133
|
-
Us as default,
|
|
134
|
-
m as en,
|
|
135
|
-
ws as getBubbleImage,
|
|
136
|
-
Fs as getBubbleText,
|
|
137
|
-
Gs as getBubbleVideo,
|
|
138
|
-
Hs as icons,
|
|
139
|
-
c as locale,
|
|
140
|
-
Rs as reducer,
|
|
141
|
-
Ns as toast,
|
|
142
|
-
Ps as toggleVariants,
|
|
143
|
-
hs as useToast,
|
|
144
|
-
O as vi,
|
|
145
|
-
U as zh_CN
|
|
4
|
+
e as BaseKit,
|
|
5
|
+
o as Blockquote,
|
|
6
|
+
t as Bold,
|
|
7
|
+
l as BulletList,
|
|
8
|
+
i as Clear,
|
|
9
|
+
r as Code,
|
|
10
|
+
n as CodeBlock,
|
|
11
|
+
d as Color,
|
|
12
|
+
m as Column,
|
|
13
|
+
u as ColumnActionButton,
|
|
14
|
+
p as Emoji,
|
|
15
|
+
C as ExportPdf,
|
|
16
|
+
c as ExportWord,
|
|
17
|
+
g as FontFamily,
|
|
18
|
+
k as FontSize,
|
|
19
|
+
S as FormatPainter,
|
|
20
|
+
f as Heading,
|
|
21
|
+
h as Highlight,
|
|
22
|
+
x as History,
|
|
23
|
+
B as HorizontalRule,
|
|
24
|
+
I as Iframe,
|
|
25
|
+
H as Image,
|
|
26
|
+
L as ImageUpload,
|
|
27
|
+
z as ImportWord,
|
|
28
|
+
A as Indent,
|
|
29
|
+
F as Italic,
|
|
30
|
+
T as Katex,
|
|
31
|
+
b as LineHeight,
|
|
32
|
+
E as Link,
|
|
33
|
+
M as MoreMark,
|
|
34
|
+
U as MultiColumn,
|
|
35
|
+
v as OrderedList,
|
|
36
|
+
y as SearchAndReplace,
|
|
37
|
+
K as SlashCommand,
|
|
38
|
+
O as Strike,
|
|
39
|
+
R as SubAndSuperScript,
|
|
40
|
+
V as Table,
|
|
41
|
+
j as TableOfContents,
|
|
42
|
+
q as TaskList,
|
|
43
|
+
P as TextAlign,
|
|
44
|
+
W as Underline,
|
|
45
|
+
w as Video,
|
|
46
|
+
D as VideoUpload,
|
|
47
|
+
G as default,
|
|
48
|
+
N as en,
|
|
49
|
+
_ as locale,
|
|
50
|
+
Q as vi,
|
|
51
|
+
X as zh_CN
|
|
146
52
|
};
|
|
147
|
-
//# sourceMappingURL=reactjs-tiptap-editor.js.map
|