reactjs-tiptap-editor 0.0.30 → 0.0.31
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 +69 -39
- package/lib/index.d.ts +69 -39
- package/lib/locales-B608BFfQ.cjs +1 -0
- package/lib/{locales-D767TIQP.js → locales-BrSFP5MK.js} +138 -129
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +32 -31
- package/lib/style.css +1 -1
- package/lib/{tiptap-Dr2jJgw-.cjs → tiptap-BpA04puz.cjs} +1 -1
- package/lib/{tiptap-CK44C-2f.js → tiptap-CAUX0xVq.js} +36 -36
- package/lib/utils-CGZQDv8A.cjs +135 -0
- package/lib/{utils-DrrJak96.js → utils-DR1fgdST.js} +2494 -2161
- package/lib/{vendor-D533qV8r.js → vendor-CnblLvXI.js} +4288 -3922
- package/lib/vendor-xLJPanGi.cjs +17 -0
- package/package.json +5 -1
- package/lib/locales-CIjswkre.cjs +0 -1
- package/lib/utils-DW_zDPZv.cjs +0 -135
- package/lib/vendor-JmPfJfTA.cjs +0 -17
|
@@ -3,123 +3,8 @@ var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
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
5
|
import { proxy as u, useSnapshot as c } from "valtio";
|
|
6
|
-
import { m as h } from "./utils-
|
|
7
|
-
const b =
|
|
8
|
-
"#000000",
|
|
9
|
-
"#262626",
|
|
10
|
-
"#595959",
|
|
11
|
-
"#8C8C8C",
|
|
12
|
-
"#BFBFBF",
|
|
13
|
-
"#D9D9D9",
|
|
14
|
-
"#E9E9E9",
|
|
15
|
-
"#F5F5F5",
|
|
16
|
-
"#FAFAFA",
|
|
17
|
-
"#FFFFFF",
|
|
18
|
-
"#F5222D",
|
|
19
|
-
"#FA541C",
|
|
20
|
-
"#FA8C16",
|
|
21
|
-
"#FADB14",
|
|
22
|
-
"#52C41A",
|
|
23
|
-
"#13C2C2",
|
|
24
|
-
"#1890FF",
|
|
25
|
-
"#2F54EB",
|
|
26
|
-
"#722ED1",
|
|
27
|
-
"#EB2F96",
|
|
28
|
-
"#FFE8E6",
|
|
29
|
-
"#FFECE0",
|
|
30
|
-
"#FFEFD1",
|
|
31
|
-
"#FCFCCA",
|
|
32
|
-
"#E4F7D2",
|
|
33
|
-
"#D3F5F0",
|
|
34
|
-
"#D4EEFC",
|
|
35
|
-
"#DEE8FC",
|
|
36
|
-
"#EFE1FA",
|
|
37
|
-
"#FAE1EB",
|
|
38
|
-
"#FFA39E",
|
|
39
|
-
"#FFBB96",
|
|
40
|
-
"#FFD591",
|
|
41
|
-
"#FFFB8F",
|
|
42
|
-
"#B7EB8F",
|
|
43
|
-
"#87E8DE",
|
|
44
|
-
"#91D5FF",
|
|
45
|
-
"#ADC6FF",
|
|
46
|
-
"#D3ADF7",
|
|
47
|
-
"#FFADD2",
|
|
48
|
-
"#FF4D4F",
|
|
49
|
-
"#FF7A45",
|
|
50
|
-
"#FFA940",
|
|
51
|
-
"#FFEC3D",
|
|
52
|
-
"#73D13D",
|
|
53
|
-
"#36CFC9",
|
|
54
|
-
"#40A9FF",
|
|
55
|
-
"#597EF7",
|
|
56
|
-
"#9254DE",
|
|
57
|
-
"#F759AB",
|
|
58
|
-
"#CF1322",
|
|
59
|
-
"#D4380D",
|
|
60
|
-
"#D46B08",
|
|
61
|
-
"#D4B106",
|
|
62
|
-
"#389E0D",
|
|
63
|
-
"#08979C",
|
|
64
|
-
"#096DD9",
|
|
65
|
-
"#1D39C4",
|
|
66
|
-
"#531DAB",
|
|
67
|
-
"#C41D7F",
|
|
68
|
-
"#820014",
|
|
69
|
-
"#871400",
|
|
70
|
-
"#873800",
|
|
71
|
-
"#614700",
|
|
72
|
-
"#135200",
|
|
73
|
-
"#00474F",
|
|
74
|
-
"#003A8C",
|
|
75
|
-
"#061178",
|
|
76
|
-
"#22075E",
|
|
77
|
-
"#780650"
|
|
78
|
-
], H = [
|
|
79
|
-
"Inter",
|
|
80
|
-
"Comic Sans MS, Comic Sans",
|
|
81
|
-
"serif",
|
|
82
|
-
"monospace",
|
|
83
|
-
"cursive"
|
|
84
|
-
], W = [
|
|
85
|
-
"html",
|
|
86
|
-
"css",
|
|
87
|
-
"js",
|
|
88
|
-
"ts"
|
|
89
|
-
], P = {
|
|
90
|
-
html: "HTML",
|
|
91
|
-
css: "CSS",
|
|
92
|
-
js: "JavaScript",
|
|
93
|
-
ts: "TypeScript"
|
|
94
|
-
}, O = [
|
|
95
|
-
"10px",
|
|
96
|
-
"11px",
|
|
97
|
-
"12px",
|
|
98
|
-
"14px",
|
|
99
|
-
"16px",
|
|
100
|
-
"18px",
|
|
101
|
-
"20px",
|
|
102
|
-
"22px",
|
|
103
|
-
"24px",
|
|
104
|
-
"26px",
|
|
105
|
-
"28px",
|
|
106
|
-
"36px",
|
|
107
|
-
"48px",
|
|
108
|
-
"72px"
|
|
109
|
-
], G = "default";
|
|
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 j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
112
|
-
"bold",
|
|
113
|
-
"italic",
|
|
114
|
-
"underline",
|
|
115
|
-
"strike",
|
|
116
|
-
"code",
|
|
117
|
-
"link",
|
|
118
|
-
"divider",
|
|
119
|
-
"color",
|
|
120
|
-
"highlight",
|
|
121
|
-
"textAlign"
|
|
122
|
-
], k = {
|
|
6
|
+
import { m as h } from "./utils-DR1fgdST.js";
|
|
7
|
+
const b = {
|
|
123
8
|
"editor.remove": "Remove",
|
|
124
9
|
"editor.copy": "Copy",
|
|
125
10
|
"editor.words": "WORDS",
|
|
@@ -128,6 +13,9 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
128
13
|
"editor.recent": "Recently Used",
|
|
129
14
|
"editor.nofill": "No Fill",
|
|
130
15
|
"editor.format": "Format Painter",
|
|
16
|
+
"editor.delete": "Delete",
|
|
17
|
+
"editor.edit": "Edit",
|
|
18
|
+
"editor.settings": "Settings",
|
|
131
19
|
"editor.table_of_content": "Table of Content",
|
|
132
20
|
"editor.draghandle.tooltip": "Modify",
|
|
133
21
|
"editor.copyToClipboard": "CopyToClipboard",
|
|
@@ -266,7 +154,7 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
266
154
|
"editor.exportPdf.tooltip": "Export PDF",
|
|
267
155
|
"editor.exportWord.tooltip": "Export Word",
|
|
268
156
|
"editor.importWrod.tooltip": "Import Word"
|
|
269
|
-
},
|
|
157
|
+
}, f = b, F = {
|
|
270
158
|
"editor.remove": "Xóa",
|
|
271
159
|
"editor.copy": "Sao chép",
|
|
272
160
|
"editor.words": "TỪ",
|
|
@@ -275,6 +163,9 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
275
163
|
"editor.recent": "Đã sử dụng gần đây",
|
|
276
164
|
"editor.nofill": "Không tô",
|
|
277
165
|
"editor.format": "Format Painter",
|
|
166
|
+
"editor.delete": "Xóa",
|
|
167
|
+
"editor.edit": "Chỉnh sửa",
|
|
168
|
+
"editor.settings": "Cài đặt",
|
|
278
169
|
"editor.table_of_content": "Mục lục",
|
|
279
170
|
"editor.draghandle.tooltip": "Sửa đổi",
|
|
280
171
|
"editor.copyToClipboard": "CopyToClipboard",
|
|
@@ -413,7 +304,7 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
413
304
|
"editor.exportPdf.tooltip": "Xuất PDF",
|
|
414
305
|
"editor.exportWord.tooltip": "Xuất Word",
|
|
415
306
|
"editor.importWrod.tooltip": "Nhập Word"
|
|
416
|
-
},
|
|
307
|
+
}, T = F, k = {
|
|
417
308
|
"editor.remove": "移除",
|
|
418
309
|
"editor.copy": "复制",
|
|
419
310
|
"editor.words": "字数",
|
|
@@ -422,6 +313,9 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
422
313
|
"editor.recent": "最近使用",
|
|
423
314
|
"editor.nofill": "无填充",
|
|
424
315
|
"editor.format": "格式刷",
|
|
316
|
+
"editor.delete": "删除",
|
|
317
|
+
"editor.edit": "编辑",
|
|
318
|
+
"editor.settings": "设置",
|
|
425
319
|
"editor.table_of_content": "目录",
|
|
426
320
|
"editor.draghandle.tooltip": "修改",
|
|
427
321
|
"editor.copyToClipboard": "复制到剪贴板",
|
|
@@ -560,12 +454,127 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
|
560
454
|
"editor.exportPdf.tooltip": "导出 PDF",
|
|
561
455
|
"editor.exportWord.tooltip": "导出 Word",
|
|
562
456
|
"editor.importWrod.tooltip": "导入 Word"
|
|
563
|
-
},
|
|
564
|
-
|
|
457
|
+
}, C = k, _ = "en", A = 200, B = A - 80, w = 20, I = 1e5, R = 16, z = 10, N = 10, U = 2, M = [
|
|
458
|
+
"#000000",
|
|
459
|
+
"#262626",
|
|
460
|
+
"#595959",
|
|
461
|
+
"#8C8C8C",
|
|
462
|
+
"#BFBFBF",
|
|
463
|
+
"#D9D9D9",
|
|
464
|
+
"#E9E9E9",
|
|
465
|
+
"#F5F5F5",
|
|
466
|
+
"#FAFAFA",
|
|
467
|
+
"#FFFFFF",
|
|
468
|
+
"#F5222D",
|
|
469
|
+
"#FA541C",
|
|
470
|
+
"#FA8C16",
|
|
471
|
+
"#FADB14",
|
|
472
|
+
"#52C41A",
|
|
473
|
+
"#13C2C2",
|
|
474
|
+
"#1890FF",
|
|
475
|
+
"#2F54EB",
|
|
476
|
+
"#722ED1",
|
|
477
|
+
"#EB2F96",
|
|
478
|
+
"#FFE8E6",
|
|
479
|
+
"#FFECE0",
|
|
480
|
+
"#FFEFD1",
|
|
481
|
+
"#FCFCCA",
|
|
482
|
+
"#E4F7D2",
|
|
483
|
+
"#D3F5F0",
|
|
484
|
+
"#D4EEFC",
|
|
485
|
+
"#DEE8FC",
|
|
486
|
+
"#EFE1FA",
|
|
487
|
+
"#FAE1EB",
|
|
488
|
+
"#FFA39E",
|
|
489
|
+
"#FFBB96",
|
|
490
|
+
"#FFD591",
|
|
491
|
+
"#FFFB8F",
|
|
492
|
+
"#B7EB8F",
|
|
493
|
+
"#87E8DE",
|
|
494
|
+
"#91D5FF",
|
|
495
|
+
"#ADC6FF",
|
|
496
|
+
"#D3ADF7",
|
|
497
|
+
"#FFADD2",
|
|
498
|
+
"#FF4D4F",
|
|
499
|
+
"#FF7A45",
|
|
500
|
+
"#FFA940",
|
|
501
|
+
"#FFEC3D",
|
|
502
|
+
"#73D13D",
|
|
503
|
+
"#36CFC9",
|
|
504
|
+
"#40A9FF",
|
|
505
|
+
"#597EF7",
|
|
506
|
+
"#9254DE",
|
|
507
|
+
"#F759AB",
|
|
508
|
+
"#CF1322",
|
|
509
|
+
"#D4380D",
|
|
510
|
+
"#D46B08",
|
|
511
|
+
"#D4B106",
|
|
512
|
+
"#389E0D",
|
|
513
|
+
"#08979C",
|
|
514
|
+
"#096DD9",
|
|
515
|
+
"#1D39C4",
|
|
516
|
+
"#531DAB",
|
|
517
|
+
"#C41D7F",
|
|
518
|
+
"#820014",
|
|
519
|
+
"#871400",
|
|
520
|
+
"#873800",
|
|
521
|
+
"#614700",
|
|
522
|
+
"#135200",
|
|
523
|
+
"#00474F",
|
|
524
|
+
"#003A8C",
|
|
525
|
+
"#061178",
|
|
526
|
+
"#22075E",
|
|
527
|
+
"#780650"
|
|
528
|
+
], H = [
|
|
529
|
+
"Inter",
|
|
530
|
+
"Comic Sans MS, Comic Sans",
|
|
531
|
+
"serif",
|
|
532
|
+
"monospace",
|
|
533
|
+
"cursive"
|
|
534
|
+
], W = [
|
|
535
|
+
"html",
|
|
536
|
+
"css",
|
|
537
|
+
"js",
|
|
538
|
+
"ts"
|
|
539
|
+
], P = {
|
|
540
|
+
html: "HTML",
|
|
541
|
+
css: "CSS",
|
|
542
|
+
js: "JavaScript",
|
|
543
|
+
ts: "TypeScript"
|
|
544
|
+
}, O = [
|
|
545
|
+
"10px",
|
|
546
|
+
"11px",
|
|
547
|
+
"12px",
|
|
548
|
+
"14px",
|
|
549
|
+
"16px",
|
|
550
|
+
"18px",
|
|
551
|
+
"20px",
|
|
552
|
+
"22px",
|
|
553
|
+
"24px",
|
|
554
|
+
"26px",
|
|
555
|
+
"28px",
|
|
556
|
+
"36px",
|
|
557
|
+
"48px",
|
|
558
|
+
"72px"
|
|
559
|
+
], G = "default";
|
|
560
|
+
var x = /* @__PURE__ */ ((e) => (e[e["size-small"] = 200] = "size-small", e[e["size-medium"] = 500] = "size-medium", e["size-large"] = "100%", e))(x || {}), L = /* @__PURE__ */ ((e) => (e[e["size-small"] = 480] = "size-small", e[e["size-medium"] = 640] = "size-medium", e["size-large"] = "100%", e))(L || {});
|
|
561
|
+
const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
|
|
562
|
+
"bold",
|
|
563
|
+
"italic",
|
|
564
|
+
"underline",
|
|
565
|
+
"strike",
|
|
566
|
+
"code",
|
|
567
|
+
"link",
|
|
568
|
+
"divider",
|
|
569
|
+
"color",
|
|
570
|
+
"highlight",
|
|
571
|
+
"textAlign"
|
|
572
|
+
], i = {
|
|
573
|
+
lang: _,
|
|
565
574
|
message: {
|
|
566
|
-
en:
|
|
567
|
-
vi:
|
|
568
|
-
zh_CN:
|
|
575
|
+
en: f,
|
|
576
|
+
vi: T,
|
|
577
|
+
zh_CN: C
|
|
569
578
|
}
|
|
570
579
|
};
|
|
571
580
|
class D {
|
|
@@ -651,10 +660,10 @@ export {
|
|
|
651
660
|
M as C,
|
|
652
661
|
W as D,
|
|
653
662
|
B as E,
|
|
654
|
-
|
|
663
|
+
x as I,
|
|
655
664
|
P as M,
|
|
656
665
|
N as T,
|
|
657
|
-
|
|
666
|
+
L as V,
|
|
658
667
|
H as a,
|
|
659
668
|
O as b,
|
|
660
669
|
G as c,
|
|
@@ -667,8 +676,8 @@ export {
|
|
|
667
676
|
U as j,
|
|
668
677
|
V as k,
|
|
669
678
|
$ as l,
|
|
670
|
-
|
|
679
|
+
f as m,
|
|
671
680
|
K as u,
|
|
672
|
-
|
|
673
|
-
|
|
681
|
+
T as v,
|
|
682
|
+
C as z
|
|
674
683
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-CGZQDv8A.cjs"),o=require("./locales-B608BFfQ.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.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.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,5 +1,5 @@
|
|
|
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,
|
|
2
|
-
import { m as
|
|
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, N as C, A as c, G as g, F as k, b as x, u as S, H as f, d as h, j as B, i as I, y as H, q as L, r as z, D as A, n as E, I as F, K as T, o as b, L as M, M as U, w as v, O as y, z as K, p as O, S as R, l as V, t as j, J as q, g as w, T as N, U as P, V as W, s as D, R as G } from "./utils-DR1fgdST.js";
|
|
2
|
+
import { m as _, k as Q, v as X, z as Y } from "./locales-BrSFP5MK.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BaseKit,
|
|
5
5
|
o as Blockquote,
|
|
@@ -12,41 +12,42 @@ export {
|
|
|
12
12
|
m as Column,
|
|
13
13
|
u as ColumnActionButton,
|
|
14
14
|
p as Emoji,
|
|
15
|
-
C as
|
|
16
|
-
c as
|
|
17
|
-
g as
|
|
18
|
-
k as
|
|
15
|
+
C as Excalidraw,
|
|
16
|
+
c as ExportPdf,
|
|
17
|
+
g as ExportWord,
|
|
18
|
+
k as FontFamily,
|
|
19
|
+
x as FontSize,
|
|
19
20
|
S as FormatPainter,
|
|
20
21
|
f as Heading,
|
|
21
22
|
h as Highlight,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
B as History,
|
|
24
|
+
I as HorizontalRule,
|
|
25
|
+
H as Iframe,
|
|
26
|
+
L as Image,
|
|
27
|
+
z as ImageUpload,
|
|
28
|
+
A as ImportWord,
|
|
29
|
+
E as Indent,
|
|
29
30
|
F as Italic,
|
|
30
31
|
T as Katex,
|
|
31
32
|
b as LineHeight,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
M as Link,
|
|
34
|
+
U as MoreMark,
|
|
35
|
+
v as MultiColumn,
|
|
36
|
+
y as OrderedList,
|
|
37
|
+
K as SearchAndReplace,
|
|
38
|
+
O as SlashCommand,
|
|
39
|
+
R as Strike,
|
|
40
|
+
V as SubAndSuperScript,
|
|
41
|
+
j as Table,
|
|
42
|
+
q as TableOfContents,
|
|
43
|
+
w as TaskList,
|
|
44
|
+
N as TextAlign,
|
|
45
|
+
P as Underline,
|
|
46
|
+
W as Video,
|
|
46
47
|
D as VideoUpload,
|
|
47
48
|
G as default,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
_ as en,
|
|
50
|
+
Q as locale,
|
|
51
|
+
X as vi,
|
|
52
|
+
Y as zh_CN
|
|
52
53
|
};
|