reactjs-tiptap-editor 0.0.48 → 0.0.49

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.
@@ -1,9 +1,9 @@
1
1
  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
- import { useMemo as g, useEffect as u } from "react";
5
- import { proxy as m, useSnapshot as c } from "valtio";
6
- import { m as h } from "./utils-cKV6nPN6.js";
4
+ import { useMemo as g, useEffect as m } from "react";
5
+ import { proxy as u, useSnapshot as c } from "valtio";
6
+ import { m as h } from "./utils-BnwdI_JH.js";
7
7
  const b = {
8
8
  "editor.remove": "Remove",
9
9
  "editor.copy": "Copy",
@@ -85,6 +85,7 @@ const b = {
85
85
  "editor.image.dialog.title": "Add an image",
86
86
  "editor.image.dialog.tab.url": "Url",
87
87
  "editor.image.dialog.tab.upload": "Upload",
88
+ "editor.image.dialog.tab.uploadCrop": "Upload & Crop",
88
89
  "editor.image.dialog.uploading": "Uploading",
89
90
  "editor.image.dialog.form.link": "Link",
90
91
  "editor.image.dialog.placeholder": "Link",
@@ -119,6 +120,8 @@ const b = {
119
120
  "editor.redo.tooltip": "Redo",
120
121
  "editor.fullscreen.tooltip.fullscreen": "Fullscreen",
121
122
  "editor.fullscreen.tooltip.exit": "Fullscreen Exit",
123
+ "editor.imageUpload.cancel": "Cancel",
124
+ "editor.imageUpload.crop": "Crop",
122
125
  "editor.imageUpload.fileTypeNotSupported": "File type not supported",
123
126
  "editor.imageUpload.fileSizeTooBig": "File size too big, Maximum size is",
124
127
  "editor.table.menu.insertColumnBefore": "Insert Column Before",
@@ -163,7 +166,7 @@ const b = {
163
166
  "editor.attachment.please_upload": "Please upload the file",
164
167
  "editor.imageGif.tooltip": "Gif",
165
168
  "editor.replace.caseSensitive": "Case Sensitive"
166
- }, f = b, k = {
169
+ }, f = b, C = {
167
170
  "editor.remove": "Remover",
168
171
  "editor.copy": "Copiar",
169
172
  "editor.words": "PALAVRAS",
@@ -244,6 +247,7 @@ const b = {
244
247
  "editor.image.dialog.title": "Adicionar uma imagem",
245
248
  "editor.image.dialog.tab.url": "Url",
246
249
  "editor.image.dialog.tab.upload": "Enviar",
250
+ "editor.image.dialog.tab.uploadCrop": "Enviar e cortar",
247
251
  "editor.image.dialog.uploading": "Enviando",
248
252
  "editor.image.dialog.form.link": "Link",
249
253
  "editor.image.dialog.placeholder": "Link",
@@ -278,6 +282,8 @@ const b = {
278
282
  "editor.redo.tooltip": "Refazer",
279
283
  "editor.fullscreen.tooltip.fullscreen": "Tela cheia",
280
284
  "editor.fullscreen.tooltip.exit": "Sair da tela cheia",
285
+ "editor.imageUpload.cancel": "Cancelar",
286
+ "editor.imageUpload.crop": "Cortar",
281
287
  "editor.imageUpload.fileTypeNotSupported": "Tipo de arquivo não suportado",
282
288
  "editor.imageUpload.fileSizeTooBig": "Tamanho do arquivo muito grande, tamanho máximo é",
283
289
  "editor.table.menu.insertColumnBefore": "Inserir coluna antes",
@@ -322,7 +328,7 @@ const b = {
322
328
  "editor.attachment.please_upload": "Por favor, envie o arquivo",
323
329
  "editor.imageGif.tooltip": "Gif",
324
330
  "editor.replace.caseSensitive": "Sensível a maiúsculas e minúsculas"
325
- }, C = k, F = {
331
+ }, k = C, T = {
326
332
  "editor.remove": "Xóa",
327
333
  "editor.copy": "Sao chép",
328
334
  "editor.words": "TỪ",
@@ -403,7 +409,7 @@ const b = {
403
409
  "editor.image.dialog.title": "Thêm hình ảnh",
404
410
  "editor.image.dialog.tab.url": "Url",
405
411
  "editor.image.dialog.tab.upload": "Tải lên",
406
- "editor.image.dialog.uploading": "Đang tải lên",
412
+ "editor.image.dialog.tab.uploadCrop": "Tải lên & Cắt",
407
413
  "editor.image.dialog.form.link": "Liên kết",
408
414
  "editor.image.dialog.placeholder": "Liên kết",
409
415
  "editor.image.dialog.form.alt": "Alt",
@@ -437,6 +443,8 @@ const b = {
437
443
  "editor.redo.tooltip": "Làm lại",
438
444
  "editor.fullscreen.tooltip.fullscreen": "Toàn màn hình",
439
445
  "editor.fullscreen.tooltip.exit": "Thoát toàn màn hình",
446
+ "editor.imageUpload.cancel": "Hủy",
447
+ "editor.imageUpload.crop": "Cắt",
440
448
  "editor.imageUpload.fileTypeNotSupported": "Loại tệp không được hỗ trợ",
441
449
  "editor.imageUpload.fileSizeTooBig": "Kích thước tệp quá lớn, Kích thước tối đa là",
442
450
  "editor.table.menu.insertColumnBefore": "Chèn cột trước",
@@ -481,7 +489,7 @@ const b = {
481
489
  "editor.attachment.please_upload": "Vui lòng tải lên tệp",
482
490
  "editor.imageGif.tooltip": "Gif",
483
491
  "editor.replace.caseSensitive": "Phân biệt chữ hoa chữ thường"
484
- }, T = F, _ = {
492
+ }, F = T, _ = {
485
493
  "editor.remove": "移除",
486
494
  "editor.copy": "复制",
487
495
  "editor.words": "字数",
@@ -571,6 +579,7 @@ const b = {
571
579
  "editor.image.dialog.button.apply": "应用",
572
580
  "editor.video.tooltip": "视频",
573
581
  "editor.video.dialog.tab.upload": "上传",
582
+ "editor.image.dialog.tab.uploadCrop": "上传并裁剪",
574
583
  "editor.video.dialog.uploading": "上传中",
575
584
  "editor.video.dialog.title": "嵌入或上传视频",
576
585
  "editor.video.dialog.link": "链接",
@@ -596,6 +605,8 @@ const b = {
596
605
  "editor.redo.tooltip": "重做",
597
606
  "editor.fullscreen.tooltip.fullscreen": "全屏",
598
607
  "editor.fullscreen.tooltip.exit": "退出全屏",
608
+ "editor.imageUpload.cancel": "取消",
609
+ "editor.imageUpload.crop": "裁剪",
599
610
  "editor.imageUpload.fileTypeNotSupported": "不支持的文件类型",
600
611
  "editor.imageUpload.fileSizeTooBig": "文件大小超出限制,最大大小为",
601
612
  "editor.table.menu.insertColumnBefore": "在前面插入列",
@@ -640,7 +651,7 @@ const b = {
640
651
  "editor.attachment.please_upload": "请上传文件",
641
652
  "editor.imageGif.tooltip": "Gif",
642
653
  "editor.replace.caseSensitive": "区分大小写"
643
- }, x = _, A = "en", D = 200, I = D - 80, w = 20, z = 1e5, P = 16, N = 10, M = 10, U = 2, H = [
654
+ }, x = _, A = "en", D = 200, I = D - 80, w = 20, z = 1e5, P = 16, U = 10, N = 10, M = 2, H = [
644
655
  "#000000",
645
656
  "#262626",
646
657
  "#595959",
@@ -771,9 +782,9 @@ const X = ["100%", "115%", "150%", "200%", "250%", "300%"], K = "1", V = [
771
782
  lang: A,
772
783
  message: {
773
784
  en: f,
774
- vi: T,
785
+ vi: F,
775
786
  zh_CN: x,
776
- pt_BR: C
787
+ pt_BR: k
777
788
  }
778
789
  };
779
790
  class L {
@@ -834,12 +845,12 @@ class L {
834
845
  };
835
846
  }
836
847
  }
837
- const l = new L(), r = m({
848
+ const l = new L(), r = u({
838
849
  lang: i.lang
839
850
  });
840
851
  function $() {
841
852
  const e = c(r), t = g(() => l.buildLocalesHandler(e.lang), [e.lang]);
842
- return u(() => {
853
+ return m(() => {
843
854
  const o = l.registerWatchLang((d) => {
844
855
  r.lang = d;
845
856
  });
@@ -861,7 +872,7 @@ export {
861
872
  I as E,
862
873
  v as I,
863
874
  G as M,
864
- M as T,
875
+ N as T,
865
876
  E as V,
866
877
  W as a,
867
878
  O as b,
@@ -871,13 +882,13 @@ export {
871
882
  z as f,
872
883
  P as g,
873
884
  w as h,
874
- N as i,
875
- U as j,
885
+ U as i,
886
+ M as j,
876
887
  Q as k,
877
888
  J as l,
878
889
  f as m,
879
- C as p,
890
+ k as p,
880
891
  $ as u,
881
- T as v,
892
+ F as v,
882
893
  x as z
883
894
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-Bu6dOXgc.cjs"),t=require("./locales-CHsNXqrk.cjs");exports.Attachment=e.Attachment;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.Excalidraw=e.Excalidraw;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.ImageGif=e.ImageGif;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.Mention=e.Mention;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.TextDirection=e.TextDirection;exports.Underline=e.Underline;exports.Video=e.Video;exports.VideoUpload=e.VideoUpload;exports.default=e.RichTextEditor;exports.en=t.en;exports.locale=t.locale;exports.pt_BR=t.pt_BR;exports.vi=t.vi;exports.zh_CN=t.zh_CN;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-BWwZ1a9t.cjs"),t=require("./locales-B9Twb8_i.cjs");exports.Attachment=e.Attachment;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.Excalidraw=e.Excalidraw;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.ImageGif=e.ImageGif;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.Mention=e.Mention;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.TextDirection=e.TextDirection;exports.Underline=e.Underline;exports.Video=e.Video;exports.VideoUpload=e.VideoUpload;exports.default=e.RichTextEditor;exports.en=t.en;exports.locale=t.locale;exports.pt_BR=t.pt_BR;exports.vi=t.vi;exports.zh_CN=t.zh_CN;
@@ -1,5 +1,5 @@
1
- import { W as e, k as o, h as t, B as i, e as l, f as n, C as r, a as d, c as m, v as p, x as c, E as u, N as C, A as g, G as x, F as f, b as h, u as k, H as B, d as I, j as S, i as A, y as H, q as L, X as T, r as z, D as E, n as F, I as M, K as b, o as R, L as U, Q as v, M as y, w as K, O, z as P, p as V, S as W, l as j, t as q, J as w, g as D, T as G, P as N, U as _, V as J, s as Q, R as X } from "./utils-cKV6nPN6.js";
2
- import { m as Z, k as $, p as aa, v as sa, z as ea } from "./locales--CXLyn-l.js";
1
+ import { W as e, k as o, h as t, B as i, e as l, f as n, C as r, a as d, c as m, v as p, x as c, E as u, N as C, A as g, G as x, F as f, b as h, u as k, H as B, d as I, j as S, i as A, y as H, q as L, X as T, r as z, D as E, n as F, I as M, K as b, o as R, L as U, Q as v, M as y, w as K, O, z as P, p as V, S as W, l as j, t as q, J as w, g as D, T as G, P as N, U as _, V as J, s as Q, R as X } from "./utils-BnwdI_JH.js";
2
+ import { m as Z, k as $, p as aa, v as sa, z as ea } from "./locales-CWlwSk1K.js";
3
3
  export {
4
4
  e as Attachment,
5
5
  o as BaseKit,